Home » Tips

Selective colour replacement with imagemagick

Selective colour replacement is easy from the command line with imagemagick. You can download imagemagick from http://www.imagemagick.org/ The following will replace all red (#FF0000) pixels with blue (#0000FF) convert sourceimage.png -fill "#FF0000" -opaque "#0000FF" destimage.pngconvert sourceimage.png -fill "#FF0000"…

Read More »

Deleting folders recursively

I needed recursively delete folders named .svn within a directory structure. The following will allow you dto do this from a command prompt: FOR /F "tokens=*" %G IN (‘DIR /B /AD /S .svn’) DO RMDIR /S /Q %GFOR…

Read More »

IIS 6- Setting up a write only FTP directory

So, you want to set up a write only ftp directory on IIS? One where you can upload files, but not list them? Easy…

Read More »

WordPress Super Cache plugin – Performance Benchmarking

I’ve been doing some performance tests on WordPress to see how much of a difference the WordPress Super Cache plugin made. It turns out that the plugin makes a huge difference.

Read More »

WordPress not sending emails on ubuntu – nrcpts=0

So, you’re using sendmail to try and send emails from php/wordpress and it’s not working? Are your mail logs (/var/log/mail.log) showing nrcpts=0 ?? Make sure the sendmail_path in your php.ini file (/etc/php5/apache2/php.ini) is set up correctly. It should…

Read More »

WordPress, Permalinks and 404 errors

This page has the permalink /2010/04/wordpress-permalinks-and-404-errors But internally its default URL is /?p=1495. Permalinks help people see the topic of a page before it’s visited and generally mean that search engines will rank them higher too. OK, so…

Read More »

DateTimeUTC – Version 1.1

I’ve been using DateTimeUTC for quite some time in batch files to get a nicely formatted date. This is the first major revision of DateTimeUTC where you can now add or subtract from the current date. This is…

Read More »

Enca binary compiled for 32 bit Windows

Enca is a (normally *nix) application which attempts to detect the text encoding of files. It’s only supplied as source which isn’t too helpful for windows users. Enca is particularly useful at guessing the encoding of text files…

Read More »

Plugging in headphones doesn't mute speakers in Ubuntu

I upgraded to Ubuntu 9.10 in early December, but yesterday was the first time I tried to use headphones since then. It turns out that plugging headphones into the headphones socket doesn’t automatically mute the speakers anymore. Here’s…

Read More »

Ubuntu Software Centre – Not available in the current data

If you get the error “Not available in the current data” in the Ubuntu Software Centre, try opening a Terminal and running this: sudo apt-get update Update: This should also fix the error “Not available for your hardware…

Read More »