1. 13 October 2008

    itunes.rb

    655 days ago

    So I never really post any code here. But why not? Who knows. Maybe I’ll start. Here’s a little script I wrote to drive iTunes in an alarm–clock–inspired fashion. It puts me to bed and wakes me up in the morning. Pretty good for 37 LOC huh?

  2. 09 June 2006

    1512 days ago

    Dynamic time based finder for ActiveRecord

    Holy shit, ruby rocks. (self-link).

    Kjell Olsen1512 days ago
  3. 05 June 2006

    Rails minutiae

    1516 days ago

    So there isn’t anything harder to take then a subtle bug with little apparent cause. That’s why this sort of thing kills me:

    
    /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/errors.rb:94:in `check': cannot rollback - no transaction is active (SQLite3::SQLException)
            from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/resultset.rb:76:in `check'
            from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/resultset.rb:68:in `commence'
            from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/resultset.rb:61:in `initialize'
            from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/statement.rb:158:in `execute'
            from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:211:in `execute'
            from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:186:in `prepare'
            from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:210:in `execute'
            from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/database.rb:620:in `rollback'
             ... 13 levels...
            from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:200:in `run'
            from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:13:in `run'
            from /usr/local/lib/ruby/1.8/test/unit.rb:285
            from test/unit/workout_test.rb:10
    

    There are time when I’ll just get fed up with the damn computer, and this caused me to wrap up last night and go try to learn to read music1. There was even less information in that error as there is in musical notation! I can almost deal with sound visually on a staff, but it’s real troubling to deal with a bug that won’t leave the slightest clue.

    But I think I’ve got it scrubbed out. Commenting things out strategically leads me to not want fixtures with nil values. Changing this:

    
    invalid_exercise:
      id: 4
      name:  
      description:
    

    into this:

    
    invalid_exercise:
      id: 4
      name: ""
      description: ""
    

    mopped things up real well for me. Now there’s just one more thing that is making me want to bash my laptop with a rock, as soon as I can find it, I’ll be for smooth sailing.

    1 Quite the feat actually: I quit piano in 6th grade because although I could play whatever anyone threw at me by ear, no way did I have the patience to learn to read those goddamned notes.

  4. 21 January 2006

    1651 days ago

    If you use Hobix and you can

    _why

  5. 07 December 2005

    1696 days ago

    Rails takes Ruby higher than Python

    Ruby has just started its ascend. Sure, it’s a rocket take-off, but we haven’t even left the atmosphere yet. DHH

    via Kjell Olsen1696 days ago
  6. 1696 days ago

    Ruby Book Sales Surpass Python

    Ruby book sales up 1552% since beginning of year (according to O’Reilly). I got the pickaxe 2 last december. I’m so ahead of the crowd.

    via Kjell Olsen1696 days ago
  7. 05 December 2005

    1698 days ago

    Rails and Django meet in Chicago

    This presentation from David is spectacular.

    Kjell Olsen1698 days ago
  8. 30 November 2005

    1703 days ago

    CollectionClosureMethod

    Neat ruby block syntaxes.

    via Kjell Olsen1703 days ago
  9. 18 November 2005

    1715 days ago

    WELCOME

    If you are a young person who insists on reading every bit of text you are faced with until its dire conclusion, you should know that I was very tempted to taper this WELCOME off into an endless stream of random text. But I know that’s what exactly what you want. And what I want. And we can’t have two more plump and satisfied people scrolling in the world. _why

    via Kjell Olsen1715 days ago
  10. 14 October 2005

    1750 days ago

    ONLamp.com: What Is Ruby on Rails

    Curt Hibbs quickly glosses over why rails is so good, worth a read.

    via Kjell Olsen1750 days ago
  11. 10 October 2005

    1754 days ago

    Ruby Code & Style

    Ruby is really starting to hit the big time. I picked a good one to start with. I’m working with php now with my campus job, and it really pales in comparison. Now ruby leapfrogs both perl and python into a prestigious publication.

    via Kjell Olsen1754 days ago
  12. 16 September 2005

    1778 days ago

    Is Ruby Better Than...

    PragDave is going after mainstreaming ruby. He doesn’t demand anyone use it – he leaves other languages their cut – but hasn’t said a bad word about ruby yet.

    Plus he redesigned his site and now it looks exactly like one I’m working on now. His titles are darker blue, and there’s a little triangle on the left, but otherwise the same.

    via Kjell Olsen1778 days ago
  13. 03 September 2005

    1791 days ago

    Wiki: MouseHole

    Like greasemonkey, only not a firefox only extension. And with ruby!

    via Kjell Olsen1791 days ago
  14. 23 August 2005

    1803 days ago

    Why Rails

    What is a huge deal? Having an extremely

    via Kjell Olsen1803 days ago
  15. 06 July 2005

    1850 days ago

    Precision Information Services - Dashboard Widgets

    An Rdoc widget, for your favorite ruby documentation repositories, and soon an irb widget, which might be of less use. This is something I might actually use dahboard for.

    via Kjell Olsen1850 days ago
  16. 05 July 2005

    1851 days ago

    Caching images in Rails

    Cute way to generate cached image files from your db with rails.

    via Kjell Olsen1851 days ago
  17. 23 June 2005

    1863 days ago

    Mike Clark's Weblog

    Rails kicks butt.

    In much the same way that the web took off because of “View Source”, Rails is taking off because it lowers the barrier to entry and holds nothing back.

    Having learned html and css by viewing the source, I can say that rails works much the same. I love open source, and it makes doing things for a kid with little programming experience like myself a piece of cake.

    via Kjell Olsen1863 days ago
  18. 07 June 2005

    1879 days ago

    AkuAku: Google Maps on Rails

    Looks nice.

    via Kjell Olsen1879 days ago
  19. 05 June 2005

    1882 days ago

    Rails Day is over

    And I’m excited to see the numerous projects, but their site is down! At least they stayed up the 24 hours.

    Kjell Olsen1882 days ago
  20. 02 June 2005

    1884 days ago

    x180 / james duncan davidson: Rails a Few Weeks On

    Now, on to Rails. Rails is the most well thought-out web development framework I’ve ever used. And that’s in a decade of doing web applications for a living. I’ve built my own frameworks, helped develop the Servlet API, and have created more than a few web servers from scratch. Nobody has done it like this before.

    So rails, starting to get hot, huh?

    via Kjell Olsen1884 days ago
  21. 28 May 2005

    1889 days ago

    Rails Day 2005 - June 4th

    I want to do railsday, but don’t know if I’ll be able to make the time on saturday. Hm…. I’ve got some killer ideas, but not too much rails-fu. But I could probably work out something in a day, rails is pretty easy.

    Kjell Olsen1889 days ago
  22. 18 May 2005

    1900 days ago

    Why's (Poignant) Guide to Ruby :: 6. Downtown

    It’s here.

    via Kjell Olsen1900 days ago
  23. 16 May 2005

    1901 days ago

    RedHanded • Hopscotching Arrays with Flip-Flops

    Here is some real computer code. Explained:

    John Wilder: the double-dot is a flip-flop operator when used in a conditional. The flip-flop is turned on by the first expression’s truth and turned off by the second expression’s truth. The tricky thing about the flip-flop is that it keeps the on/off state inside, so once it’s turned on by the opening expression, it says on until the closing expression is proven true. why the lucky stiff

    via Kjell Olsen1901 days ago
  24. 09 May 2005

    1908 days ago

    Index of /deobfu/

    Florian Groß goes over entries into some ruby obfuscation contest, and I don’t understand a word of it. I need to look at this and learn from it à l’avenir.

    via Kjell Olsen1908 days ago
  25. 02 May 2005

    1915 days ago

    Mike Clark's Weblog

    Learning ruby through testing it feature by feature – nice idea. Not only do you have a quick reference of everything you’ve ever learned, but if something in the library changes, you’ll know about it quickly.

    We have no idea if Ruby did what it should have done: we just know what it did. That is, we used the language as a tool to explore itself. In the same way that a test is better than a specification, the language is better than a description of the language. The test is definitive—when we ask Ruby what the answer to ‘Hello! ’ * 3 is, we’re going to the horse’s mouth. It doesn’t matter what the documentation says; what we’re testing is what actually happens. And that’s learning. So the test is both a learning test and a regression test.

    via Kjell Olsen1915 days ago
  26. 29 April 2005

    1918 days ago

    Flickr.rb

    Nice flickr library for ruby, the love of my life (well…). Brought to you by the wonderful Scott Raymond.

    via Kjell Olsen1918 days ago
  27. 12 April 2005

    1936 days ago

    The blend of mind, talent, and passion (Loud Thinking)

    Why we like rails:

    Ruby on Rails is turning out to be that place in the middle capable of igniting excitement from both ends of the spectrum.

    So what we’re basically trying to achieve is the meeting of quick’n’dirty with slow-but-clean into quick’n’clean.

    via Kjell Olsen1936 days ago
  28. 16 March 2005

    1962 days ago

    Ruby On Rails Quotes in Rails

    when rails works she is like a sports car covered in hot babes. mrpotatohead (irc)

    Could you say it any better?

    Kjell Olsen1962 days ago
  29. 11 March 2005

    1967 days ago

    Combining XMLHttpRequest and Rails to Produce More Efficient UIs

    A nice rails/ajax howto. Using, of course, the rails goodness that is Hieraki (man thats hard to spell). Here’s some more on rails and ajax, and also a demo of what dave has going on.

    Kjell Olsen1967 days ago
  30. 27 February 2005

    1979 days ago

    Regarding ruby and ruby on rails

    Interesting perspective on why ruby isn’t for new programmers – but it’s for me just because I don’t want to deal with C right now, and it’s real nice and quick.

    via Kjell Olsen1979 days ago
  31. 15 February 2005

    1991 days ago

    Routing: Native Ruby Rewriting | Hieraki

    Such a cool addition. I wish everything was as cool as rails.

    via Kjell Olsen1991 days ago
  32. 25 January 2005

    2012 days ago

    (24)Slash7: Really Getting Started in Rails

    A nice look from a beginners standpoint at rails in general.

    via Kjell Olsen2012 days ago
  33. 21 January 2005

    2017 days ago

    vpim - a library to manipulate vCards and iCalendars

    Address Book and iCal on the web in ruby, anyone?

    Kjell Olsen2017 days ago
  34. 17 January 2005

    Programming Ruby, 2nd Ed.

    2020 days ago

    An excellent book, both at introducing and documenting the language. Incredibly exhaustive, almost everything I’ve ever wondered about reading through bits of ruby got a mention or two and really cleared my head.

  35. 07 January 2005

    Finally!

    2030 days ago

    After waiting about three months for my library to order and process Programming Ruby, saving me 40 bucks that I ought save for a new computer.

  36. Also somewhat recently