Rss Directory > Programming > Article > Ruby Fleebie
Because programming should be fun
 
  Tue, 07 Oct 2008 15:54:25 +0200
It’s been a while since the latest release of XMPP4r. I was starting to think that the development for this great library had been stopped. Fortunately, version 0.4 has been released on August 5th 2008. We’re going to try this new version internally and eventually use it for TimmyOnTime. I am personnally hoping for less memory [...]
  Fri, 03 Oct 2008 23:39:25 +0200
Pretty easy stuff today, but this is not something you may need to do often so maybe you don’t know how to do it. Say I have these 2 arrays : colors1 = [:blue, :red, :green, :orange, :purple] colors2 = [:yellow, :cyan, :green, :blue, :purple] Now what if I want a new array that contains only the elements present [...]
has_many :through limitations
acts_as_state_machine is a great plugin really useful when you want to add constraints and behavior to your model objects. Note : Those who don’t know what this plugin is all about should stop reading right there or risk being completely lost. One thing that seems impossible to do with the plugin is to have variable “initial states” [...]
I used to be a fan of the has_finder gem written by Nick Kallen. Now with Rails 2.1, this functionnality is built-in so you don’t need to install the gem. The named_scope method allows you to add finders to any model. A code snippet is worth 10000 words : class Story < ActiveRecord::Base   named_scope :hilarious, :conditions => ["type [...]
Being a Linux/Ubuntu user, i cannot use the praised Textmate editor to develop ruby applications. I tried a lot of editors, some of them being very good ones, but in the end I always end up using gedit. gedit is great… but it is rather limited features-wise. Recently I have tried Komodo Edit and I can [...]
  Fri, 23 May 2008 02:11:03 +0200
I feel so weird. Maybe it’s just the side-effects of eating that old, pinky-brown colored and talking piece of raw meat that was sitting in the corner of my kitchen since a month or two… but as strange as it may sound, I think it’s something else. I think it is something related to Rails that [...]
For many of us, databases are no fun… surely not as fun as ActiveRecord or Rails in general. Every railers I know love the “dot notation” offered by ActiveRecord associations immensely… while refering to the vast majority of raw SQL queries as “Some ugly non-sense gibberish that we would all prefer not know the [...]
  Thu, 17 Apr 2008 02:21:05 +0200
Oh, my… God. What is this? First post in a century? What’s going on here Fleebie? Our beloved readers are going to stop respecting us, and for good reasons. For those who care, I am not dead, I am not sick… I am just working like crazy on Azanka, the company I started with Dan recently. Ok now [...]
  Mon, 25 Feb 2008 04:37:38 +0100
Today I will take a break from the IM integration with XMPP4r series and write about something completely different. Writing about XMPP4r just for the heck of it would become boring for everyone quite fast. Let me dim the light, start some sentimental music, light some candles, make an exaggerated smile so I can become intimate [...]