Clamd and Iptables

Running Clam on a separate machine to our Mail Transfer Agent we needed to configure iptables to allow access to clam from those machines. Clamd listens for connections on port 3310 by default but appears to hand off to other 'passive' ports for each... » More

Google Font Directory

The Droid Sans font from Google Font Directory is a lovely font with great readability for use on web pages.To use Droid Sans add a css link:<link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>then in... » More

Dansguardian Randomise Rules

If you plan to use URLBlacklist.com or Shalla rules in Dansguardian you may suffer from very slow (or impossible) restarts of the daemon. Dansguardian prefers the rules randomized rather than in alphabetical order. I couldn't find the randomize lines... » More

Screen – Watching 2 log files at once

I needed to tail two log files in one terminal so on the server I was using:yum install screen  screenCtrl-A  c        Ctrl-A Shift-s Ctrl-A TAB     Ctrl-A "         Run "tail -f filename1" in one frame then Ctrl-A TAB to the other... » More

Text mangling with Grep, Sed and Awk

Just an example for future reference of text mangling on unix/linux making use of sed, awk, and grep on a CSV/text file containing names, email addresses etc delimited with a semi-colon ; cat emailaddresses.csv | grep "@" | awk -F ";" '{print $1}' |... » More

PHP Reporting Errors

To get PHP error reporting for a file or web application use one of the following methods:1. Add the following to the PHP code in the file:error_reporting(E_ALL);ini_set('display_errors', '1');2. Add the following to a .htaccess file in the same... » More

Firefox Windows 7 and Linux proxy.pac

Had a problem today with Firefox on Windows 7 and Firefox on Linux. Upon reading our proxy.pac (wpad) file the if statements were not working:if(isInNet(myIpAddress(), "123.111.123.0","255.255.254.0"))According to this post on Mozilla the problem is due... » More