Software, zsh

Adding rvm to zsh prompt

07.26.10 | Permalink | Comment?

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]

Tags: ,

Rails, Software

Test for blank elements with Culerity-Cucumber

04.07.10 | Permalink | Comment?

How to test for blank elements when using culerity

Tags: ,

Software

How to shoot yourself in the foot using a functional programming language

03.09.10 | Permalink | Comment?

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

Tags:

Rails

Selectively load Ruby Facets modules

01.12.10 | Permalink | 2 Comments

Ruby facets has a lot of useful libraries. Sometimes you only want to load the ones that you need. Here’s a little snippet that you can use Rails won’t load facets as the ‘lib’ param is false. We then load the libraries manually through initializers. This helps when facets unwittingly clobbers some of the other [...]

Tags:

Rails

Testing PDFs with Celerity-Culerity and Cucumber

12.11.09 | Permalink | 1 Comment

Here’re the code to test the content of the pdfs. But first you need the pdf-reader gem. The feature file is above. Add the code above as a helper file. And lastly, the steps. Remember to add a @pdf tag to your feature files.

Rails, Software

Using Cucumber to test Paperclip file attachments

08.31.09 | Permalink | Comment?

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

Tags: , , ,

Rails, Software

Email_Spec Integrated with Action_Mailer_Cache_Delivery

08.20.09 | Permalink | Comment?

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

Software

Troubleshooting an Eclipse PDE Build

06.10.09 | Permalink | Comment?

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

Guitar

Fly away – Corrinne May Guitar Chords

11.09.08 | Permalink | 2 Comments

This is a sad sad song. Well it happened to be my best friend’s favourite. Reminds her of her Mom. Anyway this is for you MF! F major, capo 1 F Am “When will you be home?” she asks F Am as we watch the planes take off F Am Dm We both know we [...]

Software

Setting up a basic project infrastructure with Redmine, Hudson, VSFTP

10.23.08 | Permalink | Comment?

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

« Previous Entries