Archive for May, 2007

Changing Default Mail Application in Mac OS X

No matter how many times I tried to configured Thunder Bird as default mail application in Thunder Bird Preference, it will still open up Mail.app / Entourage when I click on a mail link on Firefox Browser.

It’s kinda annoying, especially you accidentally click on a mail link on a website, and it took like years to fire up Entourage and ready to compose the email. In Mac OS X, there is no control panel to set default application like Windows/Linux. To solve the default mail application problem, it has to configure from Mail.app Preference, refer to the picture below.

Mac OSX iTerm: Arrow Key Not Working in VI/VIM

If your arrow keys are not working with iTerm during using VI/VIM.
Try add this line into /etc/bashrc or .profile

TERM=linux

After that

source ~/.profile (if you edit in .profile)
source /etc/bashrc (if you edit in bashrc)

Arrow keys working in VI/VIM now? Good luck

cairo-traps.c error in FreeBSD Ports

cairo-traps.c: In function `_cairo_traps_init’:
cairo-traps.c:62: `INT32_MAX’ undeclared (first use in this function)
cairo-traps.c:62: (Each undeclared identifier is reported only once
cairo-traps.c:62: for each function it appears in.)
cairo-traps.c:63: `INT32_MIN’ undeclared (first use in this function)

Define below, in header file.

#define INT32_MIN (-0×7fffffff-1)
#define INT32_MAX 0×7fffffff