By the end of March I started to feel wrong with what seemed a sinusitis with a lot of mocus and fever. My doctor prescribed antibiotics, and I spent a whole week taking them. I took April 1st and 2nd off from work because I still wasn’t feeling totally OK… On Monday April 4th I …
Category: Blog
Turning the door intercom into a smart intercom (I)
Keeping on with the hard task of turning my home into a smart home, I want to build a VoIP gateway for the door intercom. Using it, if the postman brings an Amazon parcel and rings the intercom I won’t have to rush down two floors of stairs (as my office is in the attic) …
Validating JWT Access Tokens in PHP using AWS API Gateway and Lambda Authorizers
I’ve written an article for the Okta Developer blog about how to validate JWT Access Tokens using an AWS Lambda Authorizer written in PHP to secure access to an AWS API Gateway. It seems complicated, isn’t it? To write this article I had to make some R+D work, as it includes up-to-date pieces of information …
SQL Injection in PHP: Practices to Avoid
I’ve written an article for the Okta blog about SQL Injection vulnerabilities in PHP and how to avoid them. You can check it here: https://developer.okta.com/blog/2020/06/15/sql-injection-in-php
O Holy Night, Spanish version
Recently, according my English listening abilities have improved, I’ve discovered the depth of some English and American Christmas Carols. In Spanish, most of the existing Christmas Carols can be summarized as: party, fiesta, fish which are drinking in the river, trotting donkeys, and other consequences related to happiness caused by God becoming a man. Only …
I want to automate my home lights, but nobody sells me what I need
I’d like to automate my home. I’d like having all my electrical circuits centralized and remotely managed, and being able to turn on and off lights from outside home, or in a scheduled way. Pressing a button when exiting home so all the house lights turn off immediately would be very cool, and the perfect …
Can you license under the GPL a software requiring payments to work?
Some days ago, in the local Spanish WordPress Slack, I kept an interesting conversation about if a WordPress plugin, licensed under the GPLv2, may include a piece of code that disables the plugin, totally or partially, if a valid activation code is not entered in the plugin configuration backend. That is: if GPL-licensed software can …
Error when installing customized SELinux policy in CentOS 7 Core
If, in CentOS 7 Core, when you try to install a customized SELinux policy like the ones generated with # grep sshd /var/log/audit/audit.log | audit2allow -M test_new_policy “` you get this error: # semodule -i test_new_policy.pp libsemanage.semanage_exec_prog: Child process /sbin/load_policy did not exit cleanly. (No such file or directory). libsemanage.semanage_reload_policy: load_policy returned error code -1. …
Tongue-twister
This is a little tongue-twister composed by my daughter and me today while having dinner. The hare of the heart in the hair on the head had a ham in the hand and went home with a hen. What in hell did they hum? Did they hiss in the hall? No, the hen and the …
Potato and Onion Stew
A Spanish warm first course, savoury and very easy for these coming cold months. Ingredients for four people: 1 kg of potatoes 2 medium-sized onions 1 egg Water Salt Olive oil Vinegar Peel the potates and split the potatoes in pieces, cracking them so the broth thickens when the potatoes are boiled. Peel the onions …