Couple months ago I was working on my personal website that I decided to re-write from scratch since most of the existing things had to be scratched off and replaced.
This site has a really simple purpose: present myself, my knowledges and projects I work on. A way for potential customers & ...
Chef is a Ruby Gem which aims to help sys admins in the process of managing servers.
Chef brings the ability to write ruby code rather than running commands on the servers to manage them. You’ll be able to install softwares, create users, write configuration files and so on through code.
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 k...
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 a...