Yearly Archives: 2009

Midnight Commander preserve saved settings

Midnight Commander, one of the most used CLI file managers available for Linux is unable to preserve settings over different sessionsContinue reading

Find all folders with same name in a directory tree and execute commands on them

In a Linux CLI environment you can use the “find” command to search for files or folder. In this tutorial I will explain how to find folders having the same name in a directory tree and execute commands on them.Continue reading

PHP CLI increase memory limit

When running a PHP script from command line interface (CLI), a higher memory limit may be required in order for the script to be successfully executed. This can be achieved using the “-d” or “–define” option in the commandContinue reading

Insert value “0″ for primary keys with auto increment in MySQL

In order to insert value 0 in a field that is set as primary key for a MySQL table you need to execute the following query prior to any insert query: SET SQL_MODE = “NO_AUTO_VALUE_ON_ZERO”;Continue reading

Remove blank lines from a textarea using Prototype

Here is a Javascript function used to remove blank lines from a textarea…Continue reading