Technical Mini Blog

PHP CLI script running in the background on Ubuntu

For a php script to run on a server in the background after closing ssh connection, it needs...

Install NetBeans IDE on Ubuntu 11.10 for PHP development

Add the Personal Package Archives repository and run an update: sudo add-apt-repository ppa:ferramroberto/javasudo...

Drupal 7 - data not being saved into the variable table when using system_settings_form to handle forms

If you use the Drupal system_settings_form function to have Drupal handle saving data into...

How to install and configure memcache on CentOS 5.7 for Drupal

Memcached, a general-purpose distributed memory caching system, is often used with drupal to...

MySQL Error while dropping tables: Cannot delete or update a parent row: a foreign key constraint fails

If you need to drop several tables, for example because you need to then restore them, you...

MySQL ERROR 1153: Got a packet bigger than 'max_allowed_packet'

If you come across this error while, for example, restoring a database from an sql file from...

"An HTTP error 0 occurred." – Drupal image field module error when memcahced statistics are displayed.

There is a conflict between the Drupal imagefield module and memcached statistics. If displaying...

Jquery – bind a function as an event handler on a DOM element and remove it once it has been executed

Using JQuery, one can establish a function as an event handler for a given element with the...

How to concatenate results in a mysql query (similar to using the PHP implode function to concatenate an array)

Say that I have a table in my database like the one below: SELECT * FROM cms_releases; Name Latest...

Generate a valid South African ID number with javascript and add it as an extension to Selenium

The South African ID number contains of 13 digits: - the first six digits are a date of birth...