Missing fetch method in Redis ruby wrapper? This is a version, using YAML to serialize the information: class Redis def fetch(key, options = {}) if !options[:force] and value = get(key) YAML.load(value) elsif block_given? value = yield set(key, value.to_yaml) value end ...
Finding the tools that make you feel comfortable in your work could be quite hard sometimes. One of tools I'm pretty sure you use is a personal task manager. There are a lot of alternatives, on-line and off-line, such as the task list in Gmail, the task list in the mail program, Basecamp, Remember the milk. I have tried most of them but I always...
I'm going to start a new project which can have in very short time hard requirements on database performance: there are two entities, let's say items and users that will be related (a common one-to-many relationship). The question is that this relation is very probable to grow a lot and the item will be related with thousands of users. In or...
Tomorrow I'm leaving to Baltimore, I'll be attending to the RailsConf 2010 (as part as the Spanish noisy crew). It will be my first American Rails Conference (three years ago we went to London, when RailsConf was also european. And in the next week I'll be in New York, picking our Webby award as part of the founder team of i wanna go there. So ...