January 2009

Jobsuche: Das Vorstellungsgespräch

Ich gehöre ja im Augenblick auch zu der Gruppe von Menschen, welche sich von von Zeit zu Zeit in einem Vorstellungsgesräch wiederfinden und so traf es sich heute ganz gut.

Tja, jeder hat halt andere Prioritäten bei der Mitarbeiterwahl...

HTTP::DAV for WebDAV handling in Perl

I'm currently working on a project where I create a dump file from a data structure using Storable to do the actual dump. This file needs to be exchanged afterwards.

I already thought about an email attachment or uploading the file via FTP, but then I remembered the WebDAV enabled server at my fingertips. Yes, that's the sort of challenge I want to face.

Conkeror: Emacs insprired browser

As I already told you I wanted to give Conkeror a try and I kept my promise.

I downloaded the Ubuntu Jaunty packages and built them for my box running Intrepid. This ran quite smooth and even the installation went flawlessly.

Special character for IMAP folder on Exchange

As I've already written in a previous post, it's quite simple to connect from a Perl to Exchange (in german). Unfortunately you get into trouble if you have some special character in the folder names, e.g. german umlaute. Luckily Holger found a solution for this special character in IMAP folder problem.

Vimperator: Make your Firefox Vim-like

Everybody who really loves his Vim will probably love Vimperator.

This Firefox add-on will make your Browser more Vim like in terms of look and behaviour. The key bindings as similar to your beloved editor ones and they differ according to the mode your are in.

This is a must have for Vim-lovers certainly. A friend of mine gave it a try and he loves it the most. I have to admit that I'm a bit uncertain if this is the right for me...

Cuil: a new search engine

I recently found interesting entries in the log that got my attention. I seemed to be a search engine, but I never heard the name: Cuil

The search form is stripped down and clean. I checked out the about page and got a very good impression.

Even the first test searches went very well and I even found some information at the first strike that took my hours at Google with the very same keywords.

Zerod appliance

A couple of days ago Holger released a zerod appliance for Virtualbox and VMWare which you can download easily.

After downloading and unpacking you find a helpful readme file explaining how to run the appliance. The zerod and zero-agent are already installed and preconfigured, so that you can start looking at it straight away.

wget, cookies and other biscuit problems

I recently had the problem that I wanted to call a URL from a shell script and thought that wget might do the job.

The site requires authentication so I thought of using my Firefox cookie for this. Bad luck, Firefox 3 now uses sqlite to store their cookies so I can't use the cookie file directly *sigh*

After some extended search on the net I found several options:

  • Read the cookie from Firefox manually and add it via the --header options of wget.

  1. wget --cookies=off \
  2. --header "Cookie: Name=cookie_text; \

Mein Englisch muss besser werden (Teil 2)

Nachdem wir uns ja schon mit den Aprostrophen in der englischen Sprache beschäftigt hatten, hier nun ein weiterer Punkt zu dem Thema.

Obama geht unter die Blogger

Barack Obama ist also jetzt auch unter die Blogger gegangen. Ob er wohl eher der Typ A-Blogger oder Z-Blogger ist?

Naja, in seinem Blog sind auf jeden Fall schon mal 5 Beiträge. Nicht schlecht für nur einen Tag. Ergo: wohl eher einer mit A-Blogger Ambitionen.

Ericsson streicht vorsichtshalber 5.000 Jobs

Wie man allerorten und auch bei Golem.de lesen konnte plant Ericsson 5.000 Stellen zu streichen. Das ist mal gerade der Faktor 10 mehr als die Firma für die ich z. Z. arbeite dem freien Arbeitsmarkt zurückführt (das ist doch wohl gerade die euphemistische Wendung).

Bash: loop over all lines of a file (the right way)

I have to admit that I'm a candiate for the Useless use of cat award sometimes.

I tend to use something like for line in $(cat file); do echo $line; done;. Yes, shame on me, but I promise improvement.

So the better way to to this at least in bash scripting is:

  1. while read line; do
  2. echo $line
  3. done < file

For zsh there are further alternatives...

Mein Englisch muss besser werden (Teil 1)

Wer hat das nicht auch schon gedacht und sich vorgenommen seine Sprachkenntnisse aufzumöbeln. Leider ist das meist viel zu trocken, so dass es schneller wieder einschläft als es aufgewacht ist.

Daher bin ich ganz froh mal einen alternativen Ansatz gefunden zu haben. Hier also nun der erste Beitrag zum Gebrauch von Apostrophen in der englischen Sprache (unter Deutschland, deine Apostroph's findet man den analogen Beitrag Deutsch).

Meizu M6 and Rhythmbox

I own a Meizu M6 for quite a while and I'm very happy with this iPod alternative. Anyway I had the problem that Rhytmbox didn't recognise it as a music player directly.

Some search on the net revealed that I simply have to create a new file on my device and that's it.

What you have to do is the following:

  • create .is_audio_player in the root of your M6
  • change the file's content to the following

    audio_folders=MUSIC/

  • Restart Rhytmbox and you'll find your M6 in the device section

MySQL command line return values and Bash scripting

As I already told in Suppress column names on MySQL command line output I use the command line interface of MySQL quite often. Especially if you want to do some shell scripting there are not many alternatives for this.

If you want to use the return value of SQL statement and assign it to a variable you usually do something like this:

  1. sql="select name from table where id = 123"
  2. name=$(mysql -e "$sql" -sN -u user my_database)
  3. echo "name: $name"

Suppress column names on MySQL command line output

I use the MySQL command line interface regularly to fetch some data from a DB. Usually I want to have to column names as well, but if you want process the output of the command directly this is just a pain in the neck... This is where the --silent and --skip-column-names is very useful.
  1. mysql -sN -e "select * from my_table;" -u <user> my_database

Using Term::Prompt for terminal output from Perl

For a script I made recently to manage contacts to my LDAP server on the command line, I needed a package to easily output a prompt to the terminal.

The requirement is to be able to output things very easily and giving a default value that will be returned. After checking out some packages at CPAN, I decided to go for Term::Prompt. It offer a very convenient interface, basic checks for the returned value and works as I like it to.

SPAM protection on Postfix (Part 3)

Most spammers are very aggressive in terms of connection and re-connection to mail servers. Of course they want to send as many SPAM as possible in the shortest time period.

However if you're using postfix you can throttle that by being a bit more restrictive in your anvil settings in main.cf

  1. smtpd_client_connection_count_limit = 2
  2. smtpd_client_connection_rate_limit = 1
  3. anvil_rate_time_unit = 45s

Found at policyd stats

RBLs on Postfix made easy

Real-time blacklists, DNS RBL precisely, are a convenient way to mitigate the SPAM problem on your server despite all critics about it. policyd is another option that you should consider. If you're using Postfix as your MTA it's quite easy to setup RBLs. Simply add the reject_rbl_client option to your main.cf and you're done.

policyd-weight and Postfix SPAM fighting

If you run your own mail server you have to think carefully about SPAM protection of course. The first line of defence is in front of the actual mail server or at least before accepting the actual mail body.

The problem is that in some countries the mail mustn't be rejected or dropped after the mail server accepted the mail from the outside. Therefore techniques like RBL or greylisting could help here.

Another option is using policyd-weight. This is a

Convert a text file from UTF-8 to ISO-8859-1

From time to time you stumble upon the problem of character encodings. You get a file in encoding A, but prefer it in encoding B.

If you have a Unix shell at your fingertips (or at least something similar) you can use the iconv tool to do the job for you.

Converting an UTF-8 file to ISO-8859-1 will be as simple as this:

  1. iconv --from-code=UTF-8 --to-code=ISO-8859-1 utf8-encoded.txt > iso-encoded.txt

Uninstall or re-install a Drupal module

After upgrading my Drupal to 6.8 I faced the problem that one module didn't work right. Maybe it was broken before and I simply didn't notice that beforehand. However I needed to fix the tables and re-installing the module seemed the best idea to me somehow.

What you need to do are the following steps:

  1. Deactivate you module
  2. Use the uninstall tab on the modules page
  3. Remove the module from sites/all/modules/

Blade Runner - Ultimate Collectors Edition (5 DVDs im Steelbook)

Endlich ist sie da, die Collector's Edition von Blade Runner. Viele Jahre habe ich darauf gewartet endlich wieder die Kinoversion mit den Voice-over-Komentaren zu sehen.

Es gab viele Diskussionen darüber ob die notwendig sind oder vielleicht auch nicht. Ist der Director's Cut besser oder nicht und so weiter und so fort.

Change UUID of a Virtualbox VDI

I use Virtualbox regularly. Recently I wanted to use a VDI twice for different machines. One intended for the dev and the other for a live system.

Simple copying of the VDI file doesn't work since the UUID is still the same, but it's quite easy to change it if you know how...

  1. VBoxManage internalcommands setvdiuuid disk.vdi

That's it and it works flawlessly.

Zero RRD Framework: Major Release

Finally. Yesterday we released a major update of the Zero RRD Framework at SourceForge.

You'll find the latest version in the Zero RRD Subversion Repository of course, but there's a snapshot available in the Download Section.

Simply download and extract the tar.gz archives for zerod and zero-agent in your /opt folder and follow the manual in the doc folder.

Free DNS EveryDNS.net and Bind 9 setup

For some reasons I like to hosting my DNS services myself and this worked very well in the past. As I now have to look for a new domain hoster (see Server migration for details) one of the major criteria, besides price of course, was the ability to change the name server entries (NS record).

Server migration

As LYCOS Europe decided to discontinue it's business I needed a new home for my server and still need for my domains.

The first step is done. A new server is setup and most of the services were migrated to the new server. This was mainly done in the background by changing DNS, setup services and so on, but the visible part has begun by migrating this site.

ShellAck

Post-Weihnachtstraumata

Wer kennt sie nicht die Post-Weihnachtstraumata. Kaum ein Fest eignet sich besser zur Traumatisierung aller Altersgruppen und zwar nachhaltig. Doch Einsicht und Erkenntnis können helfen unseren Schmerz zu verarbeiten.

Aber ein Bild sagt ja bekanntlich mehr als tausend Worte.

Gefunden bei Sinfest