Couple weeks ago I switched from RVM to rbenv because I think it’s a cleaner and faster way to handle Ruby versions. It is more respecful of the Unix philosophy.
It worked like a charm right after the installation but Pow wasn’t working anymore. There’s just a little trick to know.
I18nFloat is a Ruby gem to use with Rails. I18nFloat allows your users to use format number like “1 200,84” in forms. ActiveRecord Float attributes don’t care anymore if you like commas or dots!.
With this gem loaded, your users are able to use comma style decimal in forms.
You’ll sometimes have to use the notion of infinity in your Ruby code. There isn’t any way to directly use infinity in Ruby, at least none that I know of… But there’s a tip to get it.
Let’s say that you have a next_row method which has to return next line of an infinite array – rows are added on...
Thor is a simple and efficient tool for building self-documenting command line utilities. I’m a shell guy, I use a terminal everyday and most of my job is done in my favorite text editor or in a terminal. To be effective I need to have a suitable text editor and the ability to automate most of th...
On Friday I was having slowdowns on Textmate focus. I never had this problem before and this “bug” was only happening on this given project. I had to wait for about 5 to 10 seconds to be able to use my text editor. Really annoying when you need to switch beetween your editor and a web browser to ...