PHP array of Singapore road names (For Drupal)

Posted by on Jun 8, 2014 in Drupal, PHP | 0 comments

Have recently compiled a list of Singapore road names as a PHP array for Drupal. Download it at: You can easily run a regexp filter to remove the enclosing t function on the values to use it in any other applications.

read more

Using multiple accounts for Git through multiple remotes

Posted by on Nov 14, 2013 in Git, Tips | 0 comments

In certain cases, more than 1 person might be assigned to pull and update a local repository. The below is a simple way for anyone to use their own git login to pull from the repository by setting up additional remotes: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote “origin”] fetch = +refs/heads/*:refs/remotes/origin/* url = [remote “origin-a”] fetch = +refs/heads/*:refs/remotes/origin/* url =...

read more

Android DiskLruCache delete vs deleteContents

Posted by on Oct 10, 2013 in Android, Tips | 1 comment

A quick note that if you are using DiskLruCache for disk caching, the delete() method actually closes the cache first and then deletes the contents of the directory. If you would like to simply clear the cache without closing it, use the deleteContents() method which takes the cache directory as a parameter.

read more

EC2 automated snapshot backup – Auto purging tips

Posted by on Jul 29, 2013 in Amazon EC2, Tips | 1 comment

When using available at, it is useful to note the following: The -r parameter sets the region of the snapshots/EBS volumes which is crucial The -k parameter sets the number of days that each snapshot can live, if you set this parameter, read the next point - If you set the -k parameter above, remember to set the -p paramter to 1. Which will actually tell the script to do the actual purging of snapshots. Without this, the script will...

read more

Tips to setting up OpenVPN on CentOS 6

Posted by on May 31, 2013 in Uncategorized | 0 comments

Here is a good guide to setting up OpenVPN on CentOS 6: Was following the guide but ran into a few issues which I wanted to share below: Easy RSA is no longer bundled with OpenVPN, so you should git clone it ( or download it from The Diffie hellman key generated is now 2048 bits by default, edit /etc/openvpn/server.conf to reflect that change. The default is 1024...

read more


Posted by on Apr 19, 2013 in Uncategorized | 0 comments

Have decided to bring this blog back to life! Watch this space as I share the work I do, food, my thoughts, photos and what I think is a very exciting journey ahead with my new startup, Red Airship!

read more

PHP Session lost after header redirect

Posted by on Mar 29, 2009 in PHP, Tips | 0 comments

I was just working on some PHP and encountered a problem where my session was lost after doing a header redirect. After googling and doing some read up, I realised that the problem lies with using simplexml with the session variables: For example: $name = $simplexml -> table[0] -> name $_SESSION[“name”] = $name; if you attempt to do a header redirect thereafter: header(“anotherpage.php”); , and try to access the session variable in anotherpage.php like echo $_SESSION[“name”]; Then an error might occur which...

read more

Rear DI Multi touch Set Up Part 2

Posted by on Mar 6, 2009 in Cool, Multitouch, Rear DI | 4 comments

With the camera set up in the previous part I proceeded to IKEA in search of a suitable cabinet which I found a perfect one that has an open top (Its supposed to be for the kitchen, but it fit the purpose of a multi touch anyways ) Here is the IKEA code for the cabinet I bought: The table with makeshift cardboard to hold the mini acrylic piece I got from Art Friends at Bras Basah Complex for around $8 SGD: The projector and materials in the cabinet, notice the cables running out from a small hole through the top, it was pretty convenient...

read more

A special post (Non-technical)

Posted by on Feb 22, 2009 in Uncategorized | 0 comments

I am writing this special post to bring attention to this outstanding young lady who is fighting a disease known as neuroblastoma. I came to know about her condition through a friend and was deeply saddened that a three year old has to put up with these cruel facets of life. So I urge anyone who is reading this post to (stop coding) for a moment, head over and help by clicking the banner in the site which contributes to the funds that helps the girl. Or even just offer a word of sincere encouragement. Get this badge to help Char! (Copy the...

read more

On the road to my first Rear DI Multi touch table

Posted by on Feb 19, 2009 in Cool, Multitouch | 2 comments

Thanks to the help and advice from the guys over at NUI Group ( forums especially the wonderful information supplied by PeauProductions (, I have embarked on a project to build my own Rear DI Multi Touch table. I will be posting photographs and the progress of the building of the table. This is the Playstation 3 EYE camera that will be modified to become IR capable. For people residing in Singapore, this is the packaging for the correct version of the camera to get. You can buy this at any...

read more