Having fun with Philips Hue and Gmail API

Ever since I got the Philips Hue bulbs, I have been waiting to try out their incredibly open and flexible API. Big kudos to Philips for making such an impressive open source community for the Hue. »

Using cattr_accessor with caution

Setters and getters provide a great deal of convenience and flexibility with classes. Today, lets take a quick look into cattr_accessor in Rails and possible things to watch out for. »

Compare two different values for a single variable in Ruby

About time to write one those Benchmark ruby articles. So, writing in Ruby and Rails lately, I often see myself asking questions on the semantics. Do I write it this way or that way and so on. Recently, I came across a scenario where I saw myself comparing two different values for the same variable. Something like: »