HsUnixCompat.hs on Debian

Just so that a others (hopefully) will be spared the annoying and time-consuming work of tracking down the source of the following error message:

* Missing header file: HsUnixCompat.h

On my Debian system (Debian 5.0.3 – “Lenny”) the missing package was libbsd-dev:

$ cabal unpack unix-compat Unpacking unix-compat-0.1.2.1… $ cd unix-compat-0.1.2.1/ $ runhaskell Setup.lhs configure -v3 […] /usr/bin/gcc returned ExitFailure 1 with error message: In file included from include/HsUnixCompat.h:1, from /tmp/18515.c:1: /usr/lib/ghc-6.10.4/unix-2.3.2.0/include/HsUnix.h:79:21: error: libutil.h: No such file or directory $ apt-file search libutil.h libbsd-dev: /usr/include/libutil.h

Cold Ocean

Cold Ocean, originally uploaded by ehamberg.

View from Råkvåg, Norway.

Winter Sun

Winter Sun, originally uploaded by ehamberg.

The sun over the Trondheim fjord a really cold day.

December in Trondheim

December in Trondheim, originally uploaded by ehamberg.

Sjakk på «Nabon»

Chess at “Den gode nabo”, originally uploaded by ehamberg.

Wish: Options for Kate’s Indenting Scripts

At the start of Kate’s indenting script for C/C++, the following options are available:

// BEGIN USER CONFIGURATION var cfgIndentCase = true; // indent ‘case’ and ‘default’ in a switch? var cfgIndentNamespace = true; // indent after ‘namespace’? var cfgAutoInsertStar = false; // auto insert ‘*’ in C-comments var cfgSnapSlash = false; // snap ‘/’ to ‘*/’ in C-comments var cfgAutoInsertSlashes = false; // auto insert ‘//’ after C++-comments // END USER CONFIGURATION

To set these options one would first have to actually find the indenting scripts under /usr/share, then copy it to one’s home directory to be able to modify it, More >

Kate’s Vi Input Mode — What will KDE 4.4 bring?

Dear “Katevim” users.  Kate’s Vi Mode is steadily improving and I want to take a moment to tell what’s on the horizon for KDE 4.4. There has been quite a few bugs fixed since 4.3, but some major new features have also been introduced:

The Comma Text Object

This is something that I have been missing in Vim. The comma text object makes it easy to modify parameter lists in C-like languages and other comma separated lists. It is basically the area between two commas or between a comma and a bracket. In the line below, the three ranges this text More >

Nidelva

Nidelva, originally uploaded by ehamberg.

How Kate got X-rated

(Ok, not really.)

Kate’s maintainer, Christoph Cullmann, shared a funny story over a beer one of the first days here at GCDS.

In ye olden days, what is now Kate and Kwrite was one application called “KWrite – KDE’s Advanced Text Editor”. However, the author of Kwrite mysteriously disappeared. Christoph forked Kwrite and continued working on it and after some time it greatly surpassed Kwrite’s capabilities and was becoming more of a power tool. A name change was long overdue. Being a good German, Christoph decided to name it after the philosopher Immanuel Kant, so in KDE 2.1 the editor “Kant” was More >

Rillete yoghurtbunn

Jeg liker å spise yoghurt, men som forklart i følgende henvendelse til Tine har jeg et irriterende problem nå i mai. Forhåpentligvis vil dette problemet bli løst for fremtidige generasjoner.

photo credit: Szczur

(more…)