I’m a big fan of hMailServer, but the documentation for setting up SSL certificates and the certification chain is a bit lacking. The easiest way to check if hMailServer is setup correctly is to use OpenSSL. openssl.exe s_client -showcerts -connect…
I’m a big fan of hMailServer, but the documentation for setting up SSL certificates and the certification chain is a bit lacking. The easiest way to check if hMailServer is setup correctly is to use OpenSSL. openssl.exe s_client -showcerts -connect…
One of my pet hates on the internet is shopping sites which resize the window when you’re looking at a zoomed in image. Not all of us still use a windowed browser, in fact, most people now use a tabbed…
To combine two images of the same size with ImageMagick, you simply do the following: The following will overlay overlay.png on top of output.png mogrify -draw "image SrcOver 0,0 0,0 ‘overlay.png’" output.pngmogrify -draw "image SrcOver 0,0 0,0 ‘overlay.png’" output.png While…
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" -opaque "#0000FF"…
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 /F "tokens=*"…
So, you want to set up a write only ftp directory on IIS? One where you can upload files, but not list them? Easy…
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.
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 very useful…
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 where the…
I’ve been trying to enable the passive port range on an IIS6 FTP server. I did everything. I enabled direct metabase edit, set the range using ADSUTIL and then added the ports to the firewall. It turns out that if…