Archive for the 'General' Category

Posted on November 13, 2006 at 9:37 pm

A reminder to myself and others:

You should understand, that in truth, no genuine satisfaction in life can ever be attained by you or anyone else, who simply refuses to take risks. For the life of anyone who chooses to live with extreme caution will never amount to anything more than a succession of dull, soporific days, continuing on, without interruption.”

I wrote this quote down some time ago, but failed to write down where I got it. If you know where this quote originated, please let know.

Posted on August 1, 2006 at 6:21 pm

The DBF library project page is up:
http://rubyforge.org/projects/dbf/

There’s no documentation yet, but you should be able to figure out how to use it by looking at the unit tests.

You can download it from the project page as a gem or tar.gz or install it via rubygems:

gem install dbf
Posted on July 28, 2006 at 5:56 pm

I’ve been working on a very large Rails projects at work and found myself spending a lot of time writing the same unit tests over and over again. The application has a very complex database schema and has 159 ActiveRecord models so far. With this many models, there are obviously a ton of associations. I decided that I needed a way to automatically test every association that is defined in a model.

The TestInjector plugin is the result. I still have a lot of functionality that I want to add, but it works very well and it’s ready for others to use.

I posted the details on the Rails wiki:
http://wiki.rubyonrails.org/rails/pages/TestInjector

Or just install it using the plugin manager and take a look at the README file for more details:

script/plugin install http://www.infused.org/svn/plugins/test_injector

or:

script/plugin discover
script/plugin install test_injector
Posted on July 15, 2006 at 3:06 pm

We’re going to see Paul Oakenfold at the Crystal Ballroom tonight. We saw Paul live at Amnesia when we were in Spain a couple of years ago. I never expected to see him come to Portland!

I think about 20 of our friends are going, so it should be a great time.

Posted on at 2:10 pm

It seems that a recent RHEL4 update downgraded MySQL from 5.0 to 4.1. Not cool, but it’s my fault. I should have added mysql* to the package ignore list. Most of the databases are okay, but three of them have tables that are unreadable. I’m working on restoring them now.

UPDATE 2:50pm:
I decided not to re-install MySQL 5.0. Instead I used the latest good database dumps to restore the affected tables. This should serve as an excellent argument for keeping sql dumps of your databases along with the binary backups. The raw db files would have done me no good because they aren’t backwards compatible. The sql dumps are much more useful.