Autohotkey, ac’tivAid und Vimperator

Autohotkey ist eine Windows-Scripting-/Automatisierungs-Lösung. ac’tivAid ist ein darauf basierendes Projekt des Heise-Verlags, das den Umgang mit Autohotkey vereinfacht und einige grundlegende und nützliche fertige Skripte zur Verfügung stellt. vimperator ist ein Firefox-Plugin welches VIM-ähnliches Verhalten im Browser ermöglicht.

Leider wird in Verbindung mit vimperator die spezielle ac’tivAid-Variable %Selection% nicht befüllt.

Continue reading “Autohotkey, ac’tivAid und Vimperator”

CentOS 5.3 and yum-updatesd

Just found out that in CentOS 5.3 (and perhaps in upstream RHEL too) the automatic update yum-updatesd is not working anymore. There is a hint in the Release Notes.

The concerning bug report speaks of an minor issue. In my opinion its a major issue! Automatic updates do not work anymore and you don’t even get notified about that fact!

Update:There are some scripts out there which check for updates without the need for a special daemon. One of them is yumnotifier.

imapsync and flags

imapsync is a imap copy / sync tool based on message-id headers. It doesn’t use any state file and therefore cannot do a real two-way sync, but for just copying from one to another server its a usefull tool.

The documentation states

“All flags are preserved, unread will stay unread, read will stay read, deleted will stay deleted.”.

Unfourtunately this is not true. Imapsync always adds flags, it never removes them. The issue can also be found in last version 1.285.

The absence of a flag is quite a worthwhile information, and when doing mirroring it is essentially. But the fix is easy: Just replace the single occurence of “+FLAGS” with “FLAG”, so that imap request results in not adding but replacing the flags on the destination server.

Ubuntu / Gnome and USB mass storage upper case

Sometimes it is annoying that ubuntu / Gnome opens USB mass storage devices such as sticks or cardreaders vfat partitions in uppercase by default. In order to change this adapt the mount settings in gconf path /system/storage/default_options/vfat/mount_options. gconf can be configured with the command line gconftool-2 or the graphical gconf-editor.

The gconf default setting for vfat is “shortname=mixed”. Just change it to “shortname=lower”. See also mount (8) manpage.

Regular expressions in VIM

An issue I often stumble across in VIM is the regular expression syntax (or “patterns” in VIM speak).

The main difference to other regular expression implementations is that some special meta-character have to be escaped to give them their special meaning. Its just the other way around; usually you would escape them to match the character itself.

Example: To match one ore more occurences of a digit you would normallry would write “\d+”. But in VIM you have to write “\d\+d” instead. This is also true for “\?” and “\{\}” patterns. See vim documenatation for more such patterns.

The behaviour can slightly be modified with the magic option.