Syntax highlighting in less

- 1 min read
Yes, it’s certainly possible and source code becomes so much easier to read. Try it out by: downloading my .lessfilter save it as ~/.lessfilter in your $HOME Profit! Ahem … Just try it out on a C source file :-) less -R myfile.c
When you’ve installed Ubuntu 10.04 you might want to have the window controls back to the right side, where you’re used to having them. Use the following simple command: gconftool-2 --set /apps/metacity/general/button_layout --type string "menu:minimize,maximize,close"

Best. Programming. Font. Ever.

- 1 min read
This is not only a reminder to myself, it is appraisal to the probably best programming font ever: Inconsolata. Thank you so much, Mr Raph Levien! On the previous laptop I used ProFont quite extensively, but its screen was only 1280x800, on the new laptop I have 1680x1050 and ProFont just got too small for my aging eyes. For more tips on fonts, see Top-10 Programming Fonts and KeithDevens.com.

Oona 6 years old!

- 1 min read
Wow, this friday (June 12th) my daughter turned six! I can hardly believe it is six years since she came into our lives, time has gone by so quick … when she was born we still lived in Västerås, now she has a younger brother and we live in a great house in Skultuna. Happy birthday, Oona! I wish you all the best now that you’re starting first year of school after the summer vacation.

Editline First Post

- 1 min read
For a while now I’ve been maintaining a port of the Minix editline library libedit. Mainly for my own purposes, or rather on behalf of Westermo WeOS, where it is used in the CLI. This library is the same as the Debian editline package, even though the origin of that package is somewhat unclear to me. Today I decided to adjust the package name and bump the version number to indicate that my port is the same, and now slightly more advanced, than the Debian version.

HowTo use Git for Collaborative Development

- 2 mins read
This is mainly some notes for myself so I don’t forget. Having worked with GNU Bazaar before much of Git is still alien to me. This HowTo is divided into two parts: what happens on your laptop, and what you must do on a remote server where you publish your changes So, let’s start stimple: laptop> mkdir projectX; cd projectX laptop> git init laptop> emacs file1.txt laptop> git add file1.txt laptop> git commit -m "Initial commit" Thus far no suprises, right?

Micro Tetris™

- 1 min read
I just published the unobfuscated version of the 1989 IOCCC Best Game entry, Tetris™. See the original author’s, John Tromp, home page for the game for details. But suffice it to say, this is an extremely bare bones version of the classic game and very similar to the BSD games’ version. Actually, this similarity in board layout, key combinations and feel led me to do some archaeological digging. I dowloaded the classic BSD games collection and, after having called GNU Indent on the obfuscated code, I started noticing such extreme similarities that just could not be coincidental.

More about Bzrweb and some about Git

- 2 mins read
OK, I admit it. I cannot decide what version control system (VCS) to use. I’m stuck between the speed and massive snow ball effect of Git and the ease of use and emotional attachment I have to Bazaar. I’ve been “maintaining” bzrweb for a while now, not doing a very good job of it though. It’s lagging behind considerably to the bzr API. After the upgrade of vmlinux.org to the latest Ubuntu server release bzrweb actually didn’t work at all.

Howto Setup and Run Xen

- 3 mins read
This is an extremly brief and quick Xen tutorial. There are lots of them already, see your GNU/Linux distribution’s wiki, HowtoForge or other places for a starter guide. This particular HowTo deals with setting up Xen as easy as possible using Ubuntu 8.04 LTS as host operating system (dom0 in Xen terms) and Ubuntu 9.04 as guest operating systems (domU in Xen lingo). Ubuntu 8.04 LTS comes with a Xen kernel that can run as dom0.

Learning About GIT

- 2 mins read
It has been a long time coming, but now I’m seriously starting to look at Git. Git is the content tracker used by the Linux kernel folks, initially developed by Torvalds. At Westermo R&D we use Subversion for our daily operations and today I started migrating the software to Git. Mainly just to get a comparison of performance, storage size and to explore how we can use Git on top of svn to become more productive when working in parallel in different teams.