Archive for December, 2007

OSX text editing

Wednesday, December 19th, 2007

For those of us who spend all day, every day, writing code it is important to know all the little tricks and efficiencies of our text editor of choice.

Here’s a list of keyboard shortcuts that work in all Cocoa applications (e.g., MarsEdit, TextMate or TextEdit).

My favourite new finds:

^o - split the current line
^t - transpose letters
^k - delete to the end of the paragraph
^y - yank back ‘killed’ text

http://www.hcs.harvard.edu/~jrus/Site/System%20Bindings.html

Garageband has a built in tuner

Wednesday, December 19th, 2007

If you add a “Real Instrument” such as a Vocal hooked up to the internal microphone you can turn on a tuner in the “LCD”.

Dock.jpg

That will let you tune a guitar or your voice or anything else that can make a sound.

A blue note means you’re on note, red and to the left means flat, red and to the right means sharp. On a guitar that means you turn the tuning knob in the direction of the red marker if you play right handed.

I tuned the guitar at M’s parent’s place today and started to learn to play it from my new guitar tutorial. One day, about 30 years from now, I hope to be able to play a short song.

Getting Edge Rails up and running on a fresh Leopard install

Tuesday, December 18th, 2007

I just bought Leopard and performed a clean install on my MacBook, here are the steps to get an Edge Rails app up and running:

Install Leopard
Install Developer Tools

Was getting a 404 on the gem update to start with

sudo gem update –system
sudo gem update
sudo gem install rails

Now gem update works and we’re at Rails 2.0.2

rails edgy

cd edgy

rake rails:freeze:edge

[you'll want to use piston or svn externals once you get this checked into an SVN repositor]

script/generate scaffold Food name:string description:text

rake db:migrate

script/server &

open http://localhost:3000