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 (-0x7fffffff-1)
#define INT32_MAX 0x7fffffff

KisMac + Linksys WUSB54G

Bought myself Linksys WUSB54G v4 from Low Yat. The USB Wireless adapter is around RM125-RM130. Next plan is extend the antenna for better signal. spoonfork, when should we start work on that?

WordPress 2.1.2 SQL Injection Vulnerabilities

If you are running WordPress below version 2.1.2, patch it immediately, it leads to SQL Injection Vulnerabilities. Here is my test before patch.


wp-injection.pl http://www.takizo.com/blog/xmlrpc.php xxxxx xxxxx 10

The usage is correct
[*] Trying Host http://www.takizo.com/blog/xmlrpc.php ...
[+] The xmlrpc server seems to be working
--------------------
Username for id = 1 is:--> 3
AN
Md5 hash for user: 3
AN
is: 3
AND post_id = 10 union al
--------------------
Username for id = 2 is:--> 3
AN
Md5 hash for user: 3
AN
is: 3
AND post_id = 10 union al

Of course there are more I didn’t show la, just patch it! If you are lazy, this fellow can help you do it for free.