At home, we have our washing machine and tumble dryier in the laundry room in the attic. When the attic door is closed it’s really difficult for us realizing when the washing machine and/or the tumble dryer have finished the corresponding washing/drying cycles. Because of this, taking advantage of the home automation system based on …
Category: Blog
Turning the door intercom into a smart intercom (and II)
Several months ago I proposed turning my door intercom into a smart intercom by using an Asterisk IP PBX installed on a Raspberry Pi, and with an I/O hat, according to what I explained in a previous post. I managed to progress up to the point I already could pick up and hang the intercom, …
My personal experience with COVID
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 …
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. …