Archive for Apple

How to Install Rails on Leopard

Pete put keys to keyboard and outlines the steps here.

Here are all the commands you need to run in the Terminal to install Ruby, MySQL, and Rails:

sudo port install ruby
sudo port install rb-rubygems
sudo port install msyql5 +server
sudo mysql_install_db5
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
sudo port install rb-mysql
sudo gem install -y rails
sudo gem install -y mongrel

Check out the article for more details, such as how to set up your environment so the commands above actually work.

If you are on Leopard, Rails is already installed. So you can skip the above steps entirely and just start with:

% rails 

Update: See also this Apple article.

Programming Fonts

James Duncan Davidson writes a bit about fixed width fonts on Mac OS X:

I’ve long been a fan of Monaco with anti-aliasing for my Terminal font, but I’m now sold on Panic Sans. John Gruber mentioned it in his link blog, it comes with Coda and is based on Bitstream Vera Sans with better punctuation.

Sold.

An Inconvenient (Apple) Truth

There will be no 12” MacBook Pro.

I’m a long time fan of the 12” PowerBook. Mine served me for more years than it should have. It is now being retired for use as a media center, as a black MacBook replaces it.

Almost everything is better. Nicer screen, faster processor, more memory, Intel Inside; you know the list.

The performance really is something. It will take some time to stop waiting for things to happen. Haskell code compiles quickly. And Ligthroom, my main reason for upgrading, is even more productive!

Here’s what I miss from my 12” PB:

  • Industrial design - little things like rounded edges, the PB is nice to touch.
  • Keyboard - the MacBook keyboard isn’t as nice to type on.
  • Size - not much bigger but the MacBook isn’t as convenient as the 12”
  • Heat - the PB stayed cooler than the MacBook, especially on long compiles

Otherwise, it is pretty much the same as the 12” PowerBook. This goes right down to the display adaptors. The SVideo/RGB video adaptor from my PowerBook works a treat. But I’m really going to miss the industrial design niceties from the Pro.

Making Light of Copyright

In Lightroom, I want to set some metadata on import. The tricky bit is entering the copyright symbol, on both Mac and PC.

The aim is to enter something like:

© Geoff Wilson

On Mac OS X, use the following key combination:

Option + g

Under Windows, there are a few options. The most compatible is to hold down Alt and type 0169 on the numeric keyboard. In some word processors, you can use the key combination Ctrl+Alt+C.

Entering this into the metadata form, storing it as a preset and using it on import means that all my photos are now automatically tagged. On export Lightroom will optionally put the copyright message as an overlay.

Bonus: for HTML, try ©

Safari 3.0 and Taboo

In the old days, before 3.0, Safari had an annoying habit. If you pressed Cmd-Q with many windows and tabs open, then Safari would quit. This could be incredibly frustrating; especially when you accidentally pressed Q instead of W.

Taboo, a questionable InputManager hack, provided a work around.

Safari 3.0 fixes it properly. Apple has included the option of prompting the user on close if multiple tabs or windows are open.

However, if Taboo is still installed, you cannot close top level windows.

Taboo lives in one of the following two directories.

~/Library/Application Support/SIMBL/Plugins
/Library/Application Support/SIMBL/Plugins

Remove it, and Safari 3.0 will work as intended.