You are here: Home . Code

On Code

I document solutions to challenges I run into during application creation or while troubleshooting the amazing issues code throws. Here's what that process has yielded so far .

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 […]

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 […]

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, […]