Here’s a simple way to add rvm to your zsh prompt. I think it should work for bash too. It’ll only show when rvm is in use. And here’s how it looks. [URL=http://img252.imageshack.us/i/rvmzshprompt.png/][IMG]http://img252.imageshack.us/img252/1047/rvmzshprompt.png[/IMG][/URL]
How to test for blank elements when using culerity
While preparing for a presentation on Scala, I added some jokes on the functional languages. Here’s the original version and the new editions Erlang You create a dozen clones of youself, pass the gun to one another in turn to shoot at each other’s foot Python You have to align your foot 10 steps below [...]
I was using thoughtbot’s paperclip to attach files. I realised that paperclip only provide shoulda macros for test::unit. No cucumber macros? In the end, I got to write it. Its very simple. The feature is shown here: Define your steps: As celerity does not have an attach_file method, I got to write my own. You [...]
For people using the action mailer cache delivery plugin, you can now add the email_spec plugin. The email_spec plugin provides many wonderful helpers to test your emails. Both plugins are now integrated. To use them you need to install both my forks of the plugins: action_mailer_cache_delivery email_spec Install them as plugins following the same instructions [...]
In this post, I’ll share what I’ve learnt trying to run an Eclipse PDE build. The specific version is Eclipse 3.2. This took me a while to get right(a few months in fact!). The key to getting it right is getting The Dependencies right. So let’s dive in! Setting up I’m following the example by [...]
Here I would like to share with you the steps to set up the basic project infrastructure. For a project, there’re a few tools which are absolutely necessary to function File Server Project Wiki Continuous Integration Server Bug/Issue Tracking Source Control With these features in mind, I have identified the software necessary to provide all [...]
Comparing the various payment gateway options in Singapore
I had always wanted a dual monitor setup. It helps you get more things done. Especially in cases when you have to read the manual and configure something at the same time. If you don’t believe me, Slashdot has some research to prove it. So how do you get it to work? At the moment, [...]
This is the best book I’ve read on software best practices: Steve McConnell’s Code Complete. It is full of gems. It is so good that I decided to summarise it and placed it on my desktop so I could look over it whenever I have the time. So here’s the summary. It’s far better to [...]