Blog Posts

11 Nov 2009 » Working with MySQL and GMT Dates
A project I am currently working on requires dates and times to be shown in many different timezones, so I needed to store the dates in GMT and convert them to the local timezone when displaying the dates and times.
07 Nov 2009 » Git, Submodules and Rails
In a recent project, I migrated from SVN to Git. We were using piston to share modules between two rails projects, which worked fine for subversion, but git worked a little differently.
09 Oct 2009 » Migrating from Wordpress to Jekyll
The blog is in the process of being migrated from Wordpress to Jekyll. I am getting a design done for me, as I am a coder not a designer :)
13 Aug 2009 » Building a debian package from source
From time to time, you may have needed or wanted a package that wasn’t in the Debian repositories. Well, no need to worry. Here is a simple way to create a Debian Package from the Source files.
29 May 2009 » Revoking OpenVPN Keys
For various reasons, when I needed to VPN together a few peers/networks, I chose to use OpenVPN. It’s simple and very powerful.
03 Jan 2009 » Linux Permissions
Yesterday I had this problem, a problem where multiple users were sharing files, and when creating files the group permissions did not have a w flag set on the files.
11 Nov 2008 » Debian on an eeepc not booting without AC
I’ve had an issue with my eeepc of late with Debian Lenny where it will not boot when running without the AC. This is due to a kernel bug, which will be in one of the latest kernels. But for now we need a work around.
02 Nov 2008 » Executing mysql from a bash script
Executing a mysql query form a shell script is as easy as
14 Oct 2008 » PHP 5.2 on RHEL5
So today I had the need for PHP 5.2 on a RHEL5 System. RHEL5 comes with 5.1. So I did some googling, and I came across someone who has been building a few packages for Centos and RHEL4/5.
28 Sep 2008 » Ruby + Rails
So this week I start a rails project with a mate. I have been playing around with it for a while now, but really need to start using it properly (ie doing some proper dev). I will also be playing with Puppet some more, creating some templates for use with a few boxes manage as well an my LAN machines.
28 Sep 2008 » Freezing Rails
This morning I wanted to play around with a rails applications, one that required an older version of rails. I have rails 2.1.1 installed for a project that I will be working on. So what I needed to do was freeze a specific version of rails for use with that applications. Here’s how to do it.
19 Sep 2008 » A post about web dev and custom check/radio boxes
In a project that I’m currently working on, we have the need for custom checkboxes and radiobuttons. We used one called crir which worked until we needed support for Safari.
15 Sep 2008 » A handy SQL snippet
If you need to find/replace some content in a MySql Database, you could use the following