I will start blogging from my phone now!

February 21st, 2014

So cool now can start sharing my travels from my phone!

Testing posting from my iPhone!

February 21st, 2014

So cool now. I can post from my phone to my blog :)


September 3rd, 2013

to add sidekiq try this:


bundle exec sidekiq -C config/sidekiq.yml  

quite funky, it takes care of emails nicely.

git ps1

September 3rd, 2013
function color_my_prompt {
    local __user_and_host="\[\033[01;32m\]\u@\h"
    local __cur_location="\[\033[01;34m\]\w"
    local __git_branch_color="\[\033[31m\]"
    #local __git_branch="\`ruby -e \"print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`"
    local __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E  s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`'
    local __prompt_tail="\[\033[35m\]$"
    local __last_color="\[\033[00m\]"
    export PS1="$__user_and_host $__cur_location $__git_branch_color$__git_branch$__prompt_tail$__last_color "

add the above to the .bashrc file.

Testing code against older IE versions

September 22nd, 2009

Many of us has come across problems of running our code in older IEs to check for compatibility issues.

Vista Users:


Alternatively a sun-vm can be setup with a different windows and a version of IE can be run on the vm.

Mac Users:

ie for mac.




mysql throwing error

June 12th, 2009


if you are having problems getting mysql running on ubuntu the following needs to be checked:

= the loopback device was down; check first with ifconfig; if it’s missing do a ‘ifup lo’
= check permissions on /tmp; should be 777

doing select in rails

June 10th, 2009



The IN clause in activerecord

June 4th, 2009



Topic.find(:all, :conditions => { :forum_id => @forums.map(&:id) })

Ruby Arrays Explained

June 4th, 2009



rails collect method for collecting object attributes

June 4th, 2009