Google API Screenshot Binary Data in PHP

26th
Jul
php icon

A fix to the image binary data the Google API returns for screenshots in PHP.

mod_mpm_itk.so: cannot open shared object file – Ubuntu 14.04

2nd
May
puppet icon

Using the latest version of Ubuntu Server 14.04 I ran into this error when using a standard APT install of Apache with ITK: apache2: Syntax error on line 36 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/itk.load: Cannot load /usr/lib/apache2/modules/mod_mpm_itk.so into server: /usr/lib/apache2/modules/mod_mpm_itk.so: cannot open shared object file: No such file or directory The […]

Free UK Postcode Database – Towns & Counties

9th
Aug
databases icon

Free UK Postcode Database that includes town, county, longitude, latitude, x and y. Based on the ezpy UK postcode data file it includes 2822 postcodes. It’s completely free and available in .csv, .sql and .ods file formats.

MODx Manager Preview Logouts and Varnish

11th
Feb
modx icon

Logging out issues with the MODx Manager due to Varnish caching and cookie conflict.

Symlink MySQL Database in Linux (Ubuntu w/ AppArmor)

6th
Dec
linux icon

MySQL Database on external drive in Linux. SymLinking and updating AppArmor.

Using the SEOmoz API in Python – Newer Example

2nd
Nov
python icon

I noticed that the Python example on seomoz.org is outdated and uses deprecated and removed modules. Here is an updated example using Python 2.6.5.

Magento – Resizing Category Images PHP

11th
Aug
magento icon

How to resize category images in Magento E-Commerce.

Finding Missing Fonts in GIMP (XCF)

4th
Aug
gimp icon

How to find a missing font in a GIMP XCF file.

FTP Sync with Linux

18th
May
linux icon

An introduction to syncing remote FTP servers using LFTP – Sophisticated file transfer program in Linux.

Gnome 3 YouTube Search Provider

22nd
Apr
gnome-3 icon

Add a YouTube search button to the Gnome 3 search providers list.

Repair / Restore GRUB 2 with Ubuntu (10.04+) Live CD

18th
Apr
ubuntu icon

Repairing / Re-installing GRUB 2 to a partition using the Ubuntu Live CD (10.04+).

Failed to Import Current Network Settings Into Target System – Arch

17th
Apr
arch icon

“Failed to Import Current Network Settings Into Target System” with a net install of Arch Linux means some packages have failed to download.

PyGTK Tutorial – Advanced functionality of EggTrayIcon

31st
Mar
python icon

Advanced functionality of EggTrayIcon in Python.

Update ProFTPD MySQL Quota Tally – Python

10th
Mar
linux icon

A Python script that updates users disk usage tally for the ProFTPD quota module (when using MySQL for FTP virtual users).

Refresh / Clear MODx (Revolution) Cache from PHP Script

4th
Mar
modx icon

Refresh / Clear the MODx Revolution cache outside of MODx with PHP.

How to Disable and Change Cron Job Email Alerts

3rd
Mar
linux icon

How to disable and change crontab email alerts sent after a cron job is completed on Linux.

PHP: Using constants in Heredoc

20th
Jan
php icon

Using constants inside heredoc blocks does not work…

Escaping SQLite queries in Python

17th
Dec
python icon

How to escape SQLite queries in Python correctly using the SQLite API (and not formatted strings).

FreeDNS Python IP Updater for Linux

1st
Dec
python icon

A Python script for automatically updating to the latest IP address for the free FreeDNS.afaird.org Dynamic DNS service.

How to Boot live CD ISO with GRUB2 (Ubuntu)

30th
Oct
ubuntu icon

How to edit the GRUB configuration to boot Live CD Linux Distribution ISO files on your hard drive. It’s easy (no need for CDs or USB sticks) and very fast on decent hard drives.

How to Remove User Names from Ubuntu (9.10+) GDM Login Screen

25th
Oct
security icon

How to disable the list of users shown at the Ubuntu GDM Login screen for 9.10 and over. This ensures that user names can’t be seen at startup and has to be manually entered before logging in.

Python Wait Function – Alternative to Sleep for GTK

16th
Sep
python icon

A quick “wait” function that replaces the “sleep” function. It runs through a loop for the specified amount of time doing nothing. This stops hanging and unresponsive interfaces for things such as GTK.

PyGTK Destroys window On Close – Solution

11th
Sep
python icon

When a window is closed in GTK the window gets destroyed. Here is a quick reason why followed by a snippet to stop reusable windows getting greyed out and destroyed in PyGTK.

Insecure directory in $ENV{PATH} while running with -T switch at /usr/bin/pg_ctlcluster

4th
Sep
ubuntu icon

A quick post on fixing PostgreSQL 8.4 throwing “Insecure directory in $ENV{PATH} while running with -T switch” when running aptitude on Ubuntu Server 10.04.

Cross Browser Testing on Linux

21st
Aug
ubuntu icon

As a Linux user browsing the web you probably have respect and understanding for the importance of both cross-browser and cross-platform compatibility. This is a look at native and Wine Linux support for the major browsers out there and how to test with them.