Since I saw the presentation about Couch Potato, a library for using CouchDB with your Ruby applications I was very curious about how to map a relational schema (that is the most common way to model entities and their relationship) in a document / plain schema where each element has no relation with the others. And at last, today I found a co...
If you work in a project with i18n maybe you found useful this small trick for forcing the locale in a block: module I18n class This is very useful, for example, when you have to send a notification to a user in his locale, not in the current locale, so you have to do it in this way: I18n.in_locale(@user) { UserMailer.deliver...
Two weekends ago we celebrated the first Rails Hackathon in Madrid: the idea was to make groups of two or the people, select a ticket from the Rails core, and create a patch for it. Sam Lown and me, decided to work in a plugin for allowing compatibility between GetText and the new Rails i18n support. The result is our beta plugin i18n_gettext, ...
In La Coctelera we offer to the users the possibility to automatically update their Twitter status with a link to the last post or the last published photos (shortly :). The tests for notifying twitter are very easy if you use the powerful Mocha (in the beginning we tried to simulate the Twitter::Base class, but it gets a little bit more comp...
After a lot of time without having time I decided to update query_memcached plugin with a lot of changes that the github collaborators pushed some weeks ago. These are the major changes: there was a bug that made the plugin don't work in some situations the philosophy have changed a bit and now not all is magic, and you have to indicate in ...
This days I have been working on a small library for the i-Buddy device, a small gadget for MSN Messenger lovers, that you can connect to your computer through a USB port and has some functionality like light its head with different colours, light a small hearth, move the flaps and turn left or right. The main attractive is the price (no more t...
Today we had to find a small bug in La Coctelera's javascript: the bug was a hash with a colon after the last element. The problem was that, of course, it didn't work on IE 6 and don't have any debugger for Javascript installed on my Vmware. The ...