released my first ruby gem

Aug 04, 2010|1 Min Read|Comments|

Released my first ruby gem. :-)


looks like its time for a reboot

Aug 04, 2010|1 Min Read|Comments|

Looks like it’s time for a reboot…


[jQuery] Releasing Inline Confirmation, Confirm Actions Done Right

Aug 03, 2010|1 Min Read|Comments|

In a web app, it is very common to have actions that destroy (delete/remove) data. These actions, if you don’t already know, should always map to POST methods. On top of that, because these actions are destructive, the UI should always ask the user for confirmation. But how do we actually implement the confirmation dialogue though? The vanilla JavaScript confirm box would be the easiest but at the same time the ugliest - this thing stalls most web browsers until the user acts on it. An inline…


I'm Now a Ruby on Rails Contributor

Aug 02, 2010|1 Min Read|Comments|

I am extremely happy that my patch was accepted, so I am now one of the 1600 odd people who have contributed to the Rails project! :D


[PHP] Releasing KThrottler, A Kohana Module for Throttling Actions

Jul 28, 2010|1 Min Read|Comments|

Similarly to Action Throttler for Rails, KThrottler is an easy to use Kohana module to quickly throttle application actions based on configurable duration and limit. Go check out the code now! :)


#whatdatingislike What Dating Is Like

Jul 26, 2010|2 Min Read|Comments|

Dating girls is like calling a callback function without knowing the accepted arguments. Random exceptions would throw right in your face. Dating girls is like running prerelease ruby gems. Things might not be compatible, there might be memory leaks and other weirdnesses. Dating girls is like reading a tutorial in a foreign language. You think you got it, but you don’t. Dating girls is like using a ruby class with lots of mixins. You’re looking right at a class method, but you don’t know where…


[Rails] Introducing Datamappify - ActiveRecord Without DB Migrations

Introduction ActiveRecord is without doubt the de facto ORM library for Rails and many Ruby web frameworks. Many developers however, do not like database migrations and prefer to use DSL for data mapping. Datamappify is created with the sole purpose of getting rid of the DB migration headaches. Why Not DB Migrations? Well, depending on your specific project, DB migrations might create more trouble than it’s worth. Besides, your code is already version controlled, so why create a separate version…


Fuck GPL!

Jul 15, 2010|1 Min Read|Comments

Fuck GPL!


just some late night sketches done with a finger

Jul 14, 2010|1 Min Read|Comments|

Just some late night sketches, done with a finger, an iPad and some wine.


Wuit.com Now Runs on Padrino

A few days ago I discovered Padrino, an excellent ruby framework built on top of Sinatra. What can be a better than experimenting with it? Build an actual website with it! So last night I ported Wuit.com from using vanilla PHP + Flourish to using Padrino + DataMapper + Haml. The entire porting experience was positive, albeit the website only has two pages. I did encounter a strange problem with Capistrano though - both current_release and latest_release were giving me strange results. In the end…