Recent posts

Ruby Lazy chunked hash like behavior

2 minute read

When we want to iterate a long list, we can simply write a query and get a cursor, ActiveRecord will do all the heavy lifting for us.What happens when we nee...

Rubymine on OSX memory issues

less than 1 minute read

I found this only today, you should run Rubymine as 32 bit process.It works much faster and consume half the memory.To set this got to the Applicaitons folde...

Get the user locale from http headers

less than 1 minute read

If you want to provide default localization support for guest user in your website yo can locate their browser locale by the following code:<pre style="ba...