Archive for the 'english' Category

Ada Lovelace Day

Ada Lovelace Day, March 24 2010

simple log event histograms

Just to preserve it, here’s a useful shell command line to print a histogram of frequent log events:
grep -h 'expr' files | cut -d ' ' -f 1,2 | uniq -c | awk '{step=5; bar = ""; for(i = $1; i>=1; i = i-step) bar = bar "#"; printf $2, $3, bar; }'

Read the rest of this entry »

PHP syslog patch

Given a multiuser webserver with PHP and error logging to syslog. Problem: how do you correlate error messages with users? This patch lets PHP call openlog() with a configurable program name. Read the rest of this entry »

Solaris syslog and message IDs

I finally checked how the Solaris kernel assigns message IDs to its log messages.

Read the rest of this entry »

Mailing List Statistics

Recently a friend showed me the tool MailListStat to generate mailing list statistics and I thought it would be much easier to implement this in Perl or Python instead of C.
So I tried and the result is Py-MailListStat 1.0 (I am not very creative with names). Maybe someone finds it useful…

Radio Free Albemuth

Last week I read Philip K. Dick’s novel ‘Radio Free Albemuth’. Today I am nicely surprised to see on io9 there is a movie adaptation of it by John Alan Simon (dickien.fr has a nice interview with him).

It also reminds me that I still have not watched the movie of A Scanner Darkly’. :-/

Time to update your blog

the-computer-demands-a-blog
from toothpastefordinner.com via feministing.com via briansolis.com via soup.io

How to create OpenDocument texts with PHP

The problem: take a PHP/SQL web application and add a function to export form letters. Because they might have to be edited later, the letters are not to be exported as PDFs but as ODT files for word processing.

When I implemented this I could not find documentation about this, so I wrote a small how-to.

Read the rest of this entry »