Thursday, 29 July 2010
Homeos x
 

January 3rd 2009

Fixing Home, End, and Page Up/Down keys in OS X terminal

The Home, End, Page Up and Page Down keys in Terminal don’t work as you would expect if you’ve come from the land of PCs. To get them them working “properly” again open up Terminal and go to the Preferences dialog. Click on the Settings button at the top and then the Keyboard tab. Change the action for each of the keys as show in the following table.

Key Old Action New Action
home scroll to start of buffer \033[1~
end scroll to end of buffer \033[4~
page up scroll to next page in buffer \033[5~
page down scroll to previous page in buffer \033[6~

 

Terminal Preferences

April 27th 2008

Panoramas with Hugin

I recently got introduced to a neat bit of sofware for creating panoramas called Hugin, and best of all it’s cross platform and open source which means I can use it on my MacBook.

The basic idea is you take a bunch of photos (remember to lock the exposure and make sure about 25% of the images overlap with each other), then load them into Hugin. Next you select a number of control points – points the are the same in each of the images so Hugin knows how to merge the images together. Finally you can optimise the transformation and perform any cropping to the panorama and then let Hugin work it’s magic.

Hugin
(Shamelessly stolen from http://hugin.sourceforge.net)

Here are some panoramas that I’ve created using Hugin on OS X:

Salou, Spain Panorama by uk_dave, on Flickr Dover Castle Panorama by uk_dave, on Flickr Greenstead, Colchester Panorama by uk_dave, on Flickr

I grabbed the latest svn build of Hugin 0.7 from panorama.dyndns.org and a copy of autopana-sift to automatically select control points in the panorama images.

March 9th 2008

Enabling colours with “ls” in OS X terminal

On Linux you can type “ls –color” to get a directory listing in glorious colour, however the same command doesn’t work quite as well on OS X. The solution is to add the following lines to ~/.profile and then just use “ls” as normal:
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad