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 […]
How to court an ex-Prime Minister
I’m publishing this a day late; Mondays lately are pretty heavy. I hope you enjoy the read nonetheless In a rather curt fashion, we got a new Prime Minister last week. If the letter announcing the change were a tweet, it’d have said, “It’s been real. No offense, it’s not you.” If it were a […]
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 […]
Add WordPress Related Posts without a plugin
There are several articles out there on how to add WordPress related posts without using a plugin. I’m adding one more to the fray only because all the other posts do one thing; they match related posts based on those posts being in the same category or having the same tag as the current post. […]
Watch out for the mafia in Uganda
A few weeks back, a minister declared that the mafia were out to have him sacked. As a fearless writer, I immediately reached for my overcoat and a magnifying glass and headed out to āthe fieldā to gather all kinds of information about this clandestine criminal gang. Itās not the first time that these Mafioso […]
WordPress Multiple Excerpt Lengths
There are times you need to have multiple excerpt lengths. You might have a page (usually the homepage) that in one section displays more text that it does in another section. As all things WordPress, there are a number of ways to do this. There might even be a number of plugins for this. You […]
Why did the Presidentās car cross the border?
Last week, we all gasped in disbelief when we heard that Kenyaās Presidentās car had sneaked out of Kenya with the aid of some uncouth individuals. The vehicle sauntered across the border and was found parting, popping Uganda waragi bottles and living it large in Uganda. All requests for an interview with it were turned […]
Let’s invest in foreign ghosts
We were thrilled when news broke that the Uganda National Roads Authority (UNRA) allegedly paid about 24 billion to a ghost company from outside countries to do the Mukono-Katosi Road. It was hard for us to hide our excitement as a nation; UNRA had finally broken free of the grip local ghosts had on us. […]
Fix for jQuery selector not working
I stopped short of givingĀ my PC a bath when for some strange reason, the jQuery selectors I was using weren’t working. Thing is when doing basic testing for jQuery, you’llĀ write something to console.logĀ (either that or you’llĀ put an alertĀ and wait for it to annoyingly pop-upĀ ). Things were so bad, I did both! Many, many hoops later, […]
[WordPress Plugin Development] Handling Forms
There are some great resources on how best to add a form to your plugin. Notably, there’s this from Tutsplus (They write very solid tutorials; Love them): http://code.tutsplus.com/tutorials/create-a-custom-wordpress-plugin-from-scratch–net-2668 In it, Cristian proposes that you use this for your form’s action and use this to handle the submission: This is fine if you aren’t using OOP […]