Amazon.com Widgets

I’m now married to a second grade teacher. At the school right across the street from our house.

Send your congratulations to her.

I am LOVING autotest for Rails.

First, install ZenTest (sudo gem install zentest). Then go into your rails directory and run “autotest -rails”.

Then, whenever you make a change to any files, the appropriate tests get ran automatically.

It’s AWESOME.

See a movie of it in action

I’ve got an idea to write a book. Wonder if I’ll ever get around to doing it.

I hear it’s a lot of work.

I feel really good after eating a steak. Why is that? Hormones?

When things go around really fast, like propellers or spokes on a wheel, why do we see them in a blur? Are our brains not fast enough? Do our eyes constantly take “pictures”, where the exposure time allows for the moving object to move a significant amount?

Here’s a pretty good article on test-driven development.

http://www.gamesfromwithin.com/articles/0603/000107.html.

desc "Tests the files, then commits" 
task :commit do |t|
  # check to see if there's unadded files. 
  # If there are, I'm not saving anything
  # darn it.
  if (unadded_files = system "svn status | grep \?")
    puts "There were unadded files!" 
  else
    system "script/reload_everything.sh && svn commit" 
  end
end

Put that in tasks/svn_commit.task.

Then create a script and put it in script/reload_everything.sh that drops and recreates both the test and development databases, then populate them with fixture data, then runs all the unit tests (and returns -1 if anything failed).

The end result of this is that you can run “rake commit” every time you want to check something into svn. It won’t let you do anything if there’s any files in the repository that subversion doesn’t know about. Then it’ll run all the tests from scratch. And then if everything’s ok, then it’ll let you add the files.

Ugh

Working 65+ hour weeks is hard. My brain is tired.

It’s back!

Last night I went out to dinner and a couple clubs with twelve (almost all hot) girls. Not a bad ratio!