Month: February 2011

  • Another useful collection method? Enumerable#select_first

    For a personal project I’m working on, I need to find out the smallest time period with more than 5 records. I essentially wrote this code: period = [1.week, 1.month, 1.year].select_first do |period| Record.where(“published_at >= ?”, period.ago).count >= 5 end only to find out that the select_first method doesn’t exist. So I wrote it: module…

  • A hash map method that returns a hash

    I’ve just released another gem, this one extends Hash to contain another method called hmap. This solves a problem I face ofter: how to run a map in a hash that returns another hash, for example: {:a => 1, :b => 2, :c => 3} being converted into {:a => 2, :b => 3, :c…

  • Have a sense of humor

    I love it when company have a sense of humor that shows they are not enterprise drones but people like their users, with normally the same goals and intentions. Way to go JetBrains with your new install screen for RubyMine.

  • My idea got validated

    Some time ago I had an idea for a web application. That idea was essentially Gist. I couldn’t convince people to go after it, thankfully because I wouldn’t like to compete with a Brad Feld backed company. It’s nice to see that the idea was good, as Gist got bought by RIM. Congratulations Gist!

  • A mistake for Nokia

    I think this partnership with Microsoft was a mistake for Nokia. It was great for Microsoft though. Every time you show an old Nokia phone you get the same comment: “Oh, those phones were built to last, I went through 3 iPhones and the Nokia still works…” or “That is the only phone that will…

  • Skype and Regular Expressions

  • Going viral

    I was just pointed to Checkmint, a tool for monitoring servers that is being developed. I’m not sure if it’s going to be a good one or not, but upon subscribing to get the news I was forwarded to this page: That is brilliant, great move to get people to invite more people to try…

  • DNSk9, my latest project

    I’ve made a continuous DNS checker called DNSk9. I’ve made a video explaining it: