Display Adsense Earning On Firefox Toolbar

mincus has written useful Firefox extension called Adsense Notifier. It displays your Adsense latest earning at Firefox toolbar. If you are always concern what is your adsense earning, it’s a great tool for you.

Website: http://code.mincus.com/3/adsense-notifier/

Mac OS X: Changing Computer Name

It’s pretty simple but for a new Mac user like me take hour to find out if didn’t make a search from Google.

System Preferences > Sharing

FreeBSD 6.1 Performance Tuning

Just a note for myself to tune FreeBSD OS for better performance.

Partitioning
Every partition of the disk will required different usage. For example webserver needs a lot reading and database needs read and write. Beside that, /var is a place to keep logs/transactions/mail and etc, require a lot of read and write too. It will be better if every disk partition for its own needs. Usually I do;
2G – /swap
2G – /var
5G – /www
10G – /db
5G – /usr
10G – /
the rest of the disk – /home

Size of a disk partition is depend on your own needs.

Syscontrol – sysctl

net.inet.tcp.sendspace/net.inet.tcp.recvspace – Tune this if you are running heavy traffic web server. Its control the send/receive buffer space for any TCP connection.

kern.ipc.somaxconn – Default somaxconn is 128, it’s not suitable running on heavy webserver, increase it to higher value cater your needs. Mine default is always set to 1024.

kern.maxfiles – If you running large database server, increase of kern.maxfiles will enhance your database server performance. Use kern.openfiles to determine current openfiles value on server.

PHP Recode Caused PHP Core Dump?


php -v
PHP 5.1.6 with Suhosin-Patch 0.9.6 (cli) (built: Nov 1 2006 11:37:21)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
php in free(): error: junk pointer, too high to make sense
Abort (core dumped)

After this


pkg_deinstall recode

No more core dump, record has bugs?

FreeBSD Ports PHP with Suhosin

Just found out FreeBSD Ports ported Suhosin. When you install php from port, you can either choose configure with Suhosin or no.


PHP 5.1.6 with Suhosin-Patch 0.9.6 (cli) (built: Nov 1 2006 11:37:21)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies