Notes on Life, ‘Puters and Hawaii

RailsConf ‘08 hotel for $7/night! Woot!

I scored a hotel for two weeks in Portland by the airport for $7/night! Woot! What a score.

Creating the Perfect Gentoo Amazon EC2 AMI (image)

Update: I need to upgrade this for amazon ec2 2008-02-01 api.
I been playing with Gentoo again. I hadn’t been an active Gentoo user since it pissed me off in a emerge -u world snafu in 2004. I created some Gentoo EC2 images and thought I would share with you all.
I have recently stopped [...]

Amazon AWS Down: Everybody Panic

Amazon web-services has some trouble for a few hours this morning, causing the blogs to burst with criticism. I say plan for outages - they happen. Read the SLAs. Do your homework and come up with a plan for the following:

Back up! Back up your Xen EC2 images hourly/nightly/weekly - whatever makes [...]

Install Bazaar Subversion on Mac OS X Leopard 10.5

I struggled but ultimately succeeded in installing Bazaar with bzr-svn (subversion support) on Leopard. I added the script to the bzr-svn wiki page. The following is how I got it to work:

# Install the latest stable Bazaar (if you didn’t already)
sudo easy_install -U paramiko pycrypto bzr

# Compile Subversion 1.5 (for better python [...]

Installing GIT on Mac OS X 10.5 Leopard

Update: Tim Harper points out in the comments there is now a fairly up to date OS X installer at google code if you would rather not deal with building it yourself. Easy! (You’ll still want to do the configuration part at the end of this article, though, using the scripts starting at [...]

Use Svnsync to Backup Remote Repositories

Use svnsync to make copies of your repository. You can set up a cron job to do the last part ’svnsync sync’ to keep it up to date each day too.

export LOCAL=~/some/new/svnrepo
svnadmin create $LOCAL
echo ‘#!/bin/sh’ > $LOCAL/hooks/pre-revprop-change
chmod +x $LOCAL/hooks/pre-revprop-change
svnsync init file://$LOCAL svn://some/remote/repo
svnsync sync file://$LOCAL

Using Ruby to Control Lego Mindstorms NXT

Playing with my son on Lego NXT requires me to get Ruby in the mix just for fun. Here is the install notes that I used to get everything going. Once you get the communication working, you may want to install the ruby gem ’statemachine’ and learn that too. It’s useful for [...]

Compiling Erlang on Mac OS X Leopard from Scratch

You need XCode and libgd installed and then the following script should work pasted into a terminal window:

cd /tmp
curl http://www.erlang.org/download/otp_src_R12B-2.tar.gz | tar xz
cd otp_src_R12B-2
./configure –enable-smp-support –enable-hipe –enable-darwin-universal
# If you see an ODBC warning don’t sweat it
make
sudo make install
cd ..

Apple’s Mail.app with Google Mail (GMail)

I have been using Apple’s default Mail.app client as a front-end to my new domain’s email provider, “The Goog” apps. I find it to be really a good client and I have no complaints. One thing to remember is to, after you have the mail account configured as IMAP, go in and high-light [...]

Compiling Ruby 1.8.6, Rails 2.0 and Rmagick on Mac OS X Leopord

Ruby and Rails comes on Leopard. Yahoo! That’s great. Oh wait, it’s a slightly out of date Ruby 1.8.6 and Rails 1.2.3. Hmm It’s owned by root too and you might fsck it up walking around as sudo all the time. So… Here you go. Make sure you have XCode 3.0 installed and then open [...]