January 15, 2008 – 11:22 pm
$ 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’ [...]
January 15, 2008 – 9:29 pm
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" [...]
January 15, 2008 – 7:10 pm
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 [...]
January 15, 2008 – 8:34 am
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.
January 14, 2008 – 3:10 pm
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 [...]