LAMP How To – Open Source At Work

Only Passion Matters

Entries for the ‘Blog’ Category

SVN commits fail- Can’t get exclusive lock

this could be due to many reasons. If your data is in a nfs mounted drive, restart nfs and it should fix the problem.

php coding standard and tips

It is important that developers follow a certain coding standard to help make the code readable and maintainable. These are what I gathered so far as the best coding practice:
File formatting:
- Never close php tag when using zend framework, ie, “?>”
- Use 4 space indentation as tab spacing. It is possible to configure this in [...]

Setting Up A Secure Linux Authentication Server Quickly (LDAP + TLS + SAMBA)

Just like microsoft active directory, having a centralised authentication server in linux is important especially when you have more than one server or service to manage. Just imagine each service (ssh, samba, httpd…etc) has its own user database… Sooner or later, you will find managing users very difficult. A simple task like deleting a user [...]

Bash: Simple command to mass replace content in directory

Imagine that we need to mass change the content in certain directory. A combination of find and sed can save the day. It is very to do it in perl as well.

find /your/dir -type f | xargs sed -i ’s/old/new/g’

extending vmware harddisk

1. shutdown vmware either from browser or console.
2. checkout the vmware-vdiskmanager command. The example there tells everything.