LAMP How To – Open Source At Work

Only Passion Matters

Entries for April, 2009

cat a binary file and your terminal becomes gibberish

How often have you decided to display a binary file and have to shut down your terminal because it produces gibberish text?
Well, if you just type ‘reset’, you fixed the problem. yay!

firefox forward,back or any button not working fix

Sometimes you may find certain features of firefox not working after installing or upgrading some software relating to firefox. It could be the forward and back button suddenly greyed out, out certain icons dissapeared…etc.
The problem is 99% due to permission issues. Because you often have to be root to install or upgrade firefox, the permission [...]

Best Linux Partitioning Setup?

Over the years, there were many attempts to find the best way to partition the hard disk or even the virtual machine. Do you need to have /var, /tmp, /usr…etc as separate partitions? Some people say it depends on what applications your server is running. If it is a mail server, maybe the /var might [...]

Things to take note: Adding and Duplicating Records In DB

something to share.
not sure about your site, but I believe most custom made sites doesn’t handle record duplication effectively.
1. take a scenario where we have a few tables related to each other. everytime someone updates one table, the script will need to go to other tables and add an entry/entries accordingly. deleting the record is [...]

nfs and firewall issues

nfs can be setup easily using the GUI, ie

yum install system-config-nfs

The problem with nfs is that it uses certain random ports. If you have firewall enabled, you have problems. The trick is to fix the ports that nfs uses and simply enable those ports in the firewall. After checking up /etc/services, I chose a few [...]