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

TinyMCE for Sending Email

I had an issue today with TinyMCE WYSIWYG editor which uses proper XHTML and CSS for aligning elements. This is all good for CMS style usage but my usage was for sending HTML emails and on some email clients the alignment in CSS is ignored. I really... » More