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 your own CSS file add a reference to the font e.g. body { font-family: ‘Droid Sans‘, arial, helvetica , sans-serif; } Loading… Read more »
Posts By: jonny
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 package in the repos so compiled it first e.g.: wget http://arthurdejong.org/rl/rl-0.2.7.tar.gztar xzf rl-0.2.7.tar.gzcd rl-0.2.7./configuremakemake install Then… Read 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 [or apt-get install screen]screenCtrl-A c [create new session]Ctrl-A Shift-s [spilt the screen]Ctrl-A TAB [move to the other frame]Ctrl-A ” [choose a screen session for this frame] Run “tail -f filename1” in one frame then Ctrl-A… Read more »
Building an RPM Package (DansGuardian 2.10)
After putting together an RPM for DansGuardian v2.10.1.1 I thought I would make a few notes. The version of DansGuardian in the repositories is currently version 2.8 and the only other repo or rpm I could find was a 32-bit 2.10. Why DansGuardian 2.10? Content Scanning Support with Clamd or Kapersky Regular Expressions to enforce… Read more »
Business Value of Open Source Software – Mark Shuttleworth
I was at the Enterprise Ireland ‘The Business Value of Open Source Software’ event yesterday. The speakers included: Simon Phipps (Open Source Initiative) Tim Willoughby and Tom Mackey (Limerick City Council) Ronan Kirby (Red Hat) David Coallier (Open Source Programmer) Mark Shuttleworth (Canonical/Ubuntu) Simon Phipps provided the overview of software freedom(gratis vs libre) including the… Read 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}’ | sort | uniq | tr [:upper:] [:lower:] | sed ‘s/\@mydomain\.tld\.uk/\ $… Read 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 directory: php_flag display_errors onphp_value error_reporting 2039 3. Edit the server php.ini file setting: display_errors =… Read 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 to how FF/Win7 reports the ipv6 address, rather than the ipv4 version. So the solution was to add… Read more »
Justniffer Monitoring Network Traffic
Just read about Justniffer on UbuntuGeek and decided to give it a whirl. Downloaded deb installer from SourceForge and ran with: justniffer -i eth0 I received the following output showing a few web connections and a telnet session to a mail server. 192.168.1.100 – – [27/Oct/2010:21:33:52 +0100] “GET /wikipedia/en/b/bc/Meta-logo-35px.png HTTP/1.1” 200 1611 “http://en.wikipedia.org/wiki/Main_Page” “Mozilla/5.0 (X11; U; Linux… Read 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 needed the images to be aligned with align=”right”…. Read more »