Category: Code
Asynchronous Task Processing in WordPress: Improving Performance with RabbitMQ Message Broker
WordPress is a great tool for many things though one of the challenges you may run into is handling time-consuming tasks such as sending emails, processing images, and running database queries. These tasks can slow down the website’s performance and lead to a poor user experience. One way to address this challenge is to use […]
Getting Started with Amazon Cognito: Part 1
I first worked with Amazon Web Services (AWS) Cognito in 2018 while building a financial web app that was deeply tied to the AWS infrastructure. It made use of AWS lambas, AWS Dynamo DB, the API gateway and AWS Cognito to process data from banks and create a rewards platform for businesses. Cognitoās documentation then, […]
Ahead of Facebook Dev Circle Ask Me Anything session
I’ll be hosted by the Kampala Facebook Developer Circle to an Ask Me Anything session. To give context for some questions, here’s a bit more about me and my journey as a software engineer in Uganda: A friend, Andrew, and I had an idea to start a job-matching/sports-betting site in our S.6 vacation. I say […]
Virtualbox in Secure Boot Kernel upgrade error
If you run Ubuntu (and probably many other Linux distros) and you run virtualbox/vagrant and have Secure Boot enabled, you are likely to run into the following error every time you upgrade your Kernel (which in Ubuntu’s case is very often): If you use vvv for WordPress development, you’ll run into this quite often. […]
Google reCAPTCHA client-side validation
Released less than two months ago, Google reCAPTCHA is the pretty new on the block. And she’s clad in skimpy clothes. That’s another way of saying that the documentation is still scanty but the first imagery seemed more appropriate for an audience of solid developers like you. The need for client-side validation arose when users […]
WordPress admin Pointers with navigation
WordPress admin pointers are generally used to give an introductory tour to where different features are in WordPress. They are mainly used by WordPress in the admin section to show you, especially after upgrades, where different (new) functionality is. In plugin development, they make it easy for you, the developer, to show off some features […]
Nagios event handlers for NRPE
I used to use custom scripts to monitor services and get alerts of failures till Bas Moussa introduced me to Nagios. Monitoring and self-healing has been flowers and rainbows since. Nagios event handlers allow you to put in place measures to self-heal your services. The Nagios documentation on setting them up is superb. How do […]
Adding screen options to a WordPress plugin
In WordPress, adding screen options during plugin development is not one of those things with a lot of documentation. There’s a great tutorial on this by Chris Marslender. There’s one here too by someone I’m a fan of, Pippin Williamson. Both went a long way to get me started. I differ from these approaches in […]
How to update your local yum repo
There are a number of Ā great resources on how to set-up a local yum repo. This one from Digital Ocean is particularly good: https://www.digitalocean.com/community/tutorials/how-to-set-up-and-use-yum-repositories-on-a-centos-6-vps How though do you update the said yum repo? I needed to upgrade bash on some hosts to protect them against being ShellShock-ed.Ā This required anĀ upgrade toĀ theĀ local repo from which all these […]
Run a Java Application as a linux service
I needed to run a Java program as a service on a server running RHEL. I used the script below to get it working. I got direction from 1. http://stackoverflow.com/questions/11203483/run-a-java-application-as-a-service-on-linux 2. http://www.apexninjas.com/blog/2011/02/start-java-program-as-linux-daemon/ and 3. http://fedoraproject.org/wiki/Packaging:SysVInitScript#Initscript_template The third link provides a detailed explanation on init scripts; I recommend that, at the very least, you skim through […]