Monthly Archives: January 2008

Uninitialized constant MERB_ROOT? Use Haml trunk.

$ script/generate model User Connecting to database… /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:266:in `load_missing_constant’: uninitialized constant MERB_ROOT (NameError) from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing’ [...]

RSpec, Autotest, and Gnome-Notify

I’ve taken coldfire’s excellent .autotest and modified it to provide a third state for rspec tests that are still pending.

# vi: ft=ruby   require ‘autotest/redgreen’ require ‘autotest/timestamp’   module Autotest::GnomeNotify def self.notify title, msg, img system "notify-send ‘#{title}’ ‘#{msg}’ -i #{img} -t 1000" end   Autotest.add_hook :ran_command do |at| image_root = "~/.autotest_images" [...]

Ruby, RSpec and BDD Part I

Here is a bit of work on Behavior Driven Development (BDD) with rspec in Ruby, based off the examples provided by this excellent Null Is Love series of posts. The only thing I know externally, in terms of BDD, is the process itself:

Write a test for the functionality you want. Watch the test fail. Write code to [...]

Too Many Aperture Interfaces

At this point I think I’m allowed to say that too many programs are trying to go for the ‘Aperture’ look.

This is Anxiety, Coversutra, Twitteriffic, and Pixelmator all up at once.

Fascinating Design Exhibit I

I’d like to nominate Haineault.com for a fascinating web design. The blog entry is front and center. The type is clear, large, uncluttered, and the color contrasts wonderfully. Code excerpts are clearly differentiated, and the syntax highlighting is effective, although it doesn’t appear to highlight any specific language. My only real complaint is that the [...]