published over 4 years ago (28.02.2006 20:31)

Ruby tip of the day

EDIT (11.11.2007): Dir#glob (aliased as: Dir[]) could also be used.

find all files in a directory matching some pattern

list = Dir.new('.').entries.select { |f| f =~ /_\d{2}.(jpg|gif)$/ }
=> ["11-029_42.jpg", "1209-180_32.jpg", "1210-180_32.jpg", "1218-180_32.jpg"]

list.size
=> 4

Posted in ,  | Tags

published over 4 years ago (28.02.2006 17:03)

Unix tip of the day ...

grep --color Gecko access_log

in der .profile oder .bashrc datei im home-verzeichnis folgendes hinterlegen, dann kann man sich die angabe von –color sparen:

alias grep='grep --color'

Posted in  | Tags ,

published over 4 years ago (12.02.2006 15:44)

the europeans

untertitelt: “nach den verletztenden dänischen zeichnungen jetzt die längst fällige VERSÖHNUNGSKARRIKATUR für unsere moslemischen freunde. sie zeigt, wie wir europäer wirklich sind.”

(subtitled: after the offending danish drawings, here is the overdue RECONCILIATION CARICATURE for our muslim friends. it shows how us europeans really are.)

manfred deix für die zeit vom 9. feb. 2006.

Posted in

published over 4 years ago (03.02.2006 14:40)

coming summer 2006 ...

Posted in  | Tags

published over 4 years ago (03.02.2006 01:02)

Exhibitionistin

blogg.zeit.de/jemen (german)

Posted in ,