July 27, 2004
Change PHPMyAdmin to view Arabic on English interface
I love phpmyadmin, it is a web interface for MySQL DB server, I usually use the English interface, but the problem with English interface that it doesn’t show Arabic string, of course you can change the whole interface to Arabic, but I don’t understand anything from that interface.
So I played with PHPMyAdmin code so I can use English interface but using Arabic character set, here is how to do it:
July 24, 2004
MySQL replication is so simple
I just configured my first MySQL replication, it is very simple to configure, few configuration steps and it is done.
The hardest thing is to figure the location of MySQL configuration file my.cnf under my FreeBSD, it doesn’t exists by default so you have to create it your self, it can be many place, I choosed /var/db/mysql/my.cnf to make reside with the datafiles.
You can find a sample chapter from Jeremy Zawodny book, High Performance MySQL.
July 24, 2004
My wife had a lasik surgery
It took around 15 minutes, it was little painfull in the first day, her vision is somehow blurry, the doctor says the blur will go away in the next 10 days.
Lasik if you don’t know it is a surgery to correct the vision.
http://lasik.bab.com/
July 18, 2004
More about my car accident
Today the traffic department called me to telling that they found the car with the description I gave, but the color wasn’t silver it was gray! So they called me to change the paper I signed earlier. Silver and gray is there really any difference between the two!? The name of the guy who hit me and ran away was Abdullah Mohammed Alsalem.
July 14, 2004
PHP5 relaeased
With many amazing new features, is it going to be the defacto scripting language!
OnLamp article about PHP5 new features
July 12, 2004
Amavisd + Spamassassin + ClamAV
Installing amavisd+Spamassassin+clamav
# cd /usr/ports/security/amavisd-new/
# make install
# cd /usr/ports/security/clamav/
# make install
Updating ClamAV virus defintation, every hour!:
# vi /usr/local/etc/freshclam.conf
... HTTPProxyServer proxy.saudi.net.sa
... HTTPProxyPort 8080
# freshclam
# crontab -e
... 43 * * * * /usr/local/bin/freshclam --quiet
Changing clamav setting to work as vscan user, same as amavisd:
# vi /usr/local/etc/clamav.conf
... # Change User to match amavid user
June 30, 2004
Free RHCE practice test
This is a practice exam for RedHat RHCE (Red Hat Certified Engineer Program)
My results so far: 50%, 70%, 80%, 70%, …
June 30, 2004
Blogger Bookmarklet
A nice feature from Blogger called bookmaklet, it is a simple link that you drag-and-drop it on your browser link bar, to allow you write a new blog entry related to the current web site you are browsing. Cool!
Blogger Bookmarklet
June 28, 2004
Clam AntiVirus and amavisd
After installing amavisd you need to edit the confiuration file to change some of the settings:
# vi /usr/local/etc/amavisd.conf
:
$mydomain = 'yourdomain.com';
:
$final_spam_destiny = D_PASS;
You also need to enable clamav section, then restart:
# /usr/local/etc/rc.d/amavisd.sh restart
To allow amavisd-new to work with clamav you need to run clamav using the same user:
# vi /usr/local/etc/clamav.conf
... change user to:
User vscan
# /usr/local/etc/rc.d/clamav-clamd.sh restart