Archive for November, 2011

November 23rd

Show the current git branch in your bash prompt

I stole the following code off the internet some time ago and now I can't live without it. It's a hack that make your bash prompt show which git branch you are in in its prompt, by setting the PS1...

Archive for October, 2011

October 28th

Metaprogramming with Python

The problem: I want to redefine some methods in a class and replace them with a methods that do the same (ie call the original method) plus a little more. Basically I want decorators, but without...

Archive for June, 2011

June 16th

Output TAP while running debuild

Warning: what follows is arcane knowledge, but since I could not find a straight answer to it when googling around I thought it worth writing a dedicated entry for it. The situation: I am...
June 14th

At last!

At last! A graphical editor for pure ascii charts :-) http://www.asciiflow.com

Archive for March, 2011

March 22nd

The cost of technical debt

I was doing a bit of research lately on the issue of 'technical debt'. This post will just summarize some of the more interesting things I came across. Of first interest was a classification...

Archive for February, 2011

February 19th

Egoless programming

I keep getting hurt at work because I put too much of my self into the code I write. Lately, I stumbled upon the ten commandments of egoless programming. They have been around for a while, since...

Archive for December, 2010

December 12th

Reverse-engineering the oyo ereader

I bought an oyo ebook reader a few weeks ago. This reader has recently appeared on the market in many countries across Europe and comes bound to a webshop (chapitre.com, thalia.de, you name it), a...
December 10th

The art of commit messages

A beautiful peace of wisdom on how to write good commit messages: http://who-t.blogspot.com/2009/12/on-commit-messages.html "Any software project is a collaborative project. It has at...

Archive for August, 2010

August 26th

Writing a universal test runner with Test::Harness

Perl comes with a fantastic tool: prove. Prove searches for all the test files under a directory, runs them and reports the results. Anyone used to developing code and tests in parallel ends up...

Archive for February, 2010

February 16th

Timestamps in bash

This is common knowledge but I found it so useful that I have to make sure it spreads even more :) You can make bash register timestamps in its history: export HISTTIMEFORMAT='[%F %T]...

Archive for August, 2009

August 26th

Avoiding splitbrain in a heartbeat/drbd setup

What comes now is the description of a hack I did to avoid the occurrence of splitbrain in a 2 node linux cluster running heartbeat and drbd for disk replication. I am not going to detail how...
August 21st

Born to be root

I like my life right now. I recently changed job and started working for a young IT firm, as a software developer. But before developing some code you need servers to run it on. So for the past...

Archive for March, 2009

March 27th

From good old batch systems to actor based parallelism

I was recently reading on JavaWorld a serie of 2 articles discussing the advantages of actor-based parallelism over traditional approaches involving shared objects and locking mechanisms. Those...
March 8th

sshfs + encfs + rsync = encrypted remote backups

I am a backup freak. My home setup encompasses a file server that has 2 disks mirrored against each other using RAID1 and a second server that rsyncs its content against the main file server every...

Archive for January, 2009

January 23rd

My first OSX trojan!!

Oh My God! I just stumbled upon my first MAC OSX trojan! And mostly written in shell script! I am just amazed. But let me tell you the full story. I was googling to find a specific ebook for...
January 21st

Darwinian software development

Sitting in a warm bath this morning, enjoying the peace before the storm, I came to realize a striking thing: software development goes very much like the law of the jungle. To survive in a...

Archive for November, 2008

November 5th

Welcoming Python::Decorator

A few days ago, I wrote about some ideas on how to adapt Python decorators to Perl . Well, the ideas grew and soon enough I couldn't keep them in my head anymore so it became a module:...
November 4th

The source holds the truth

The source holds the truth. That's it, really. In the developer's world, there is no need to add anything else. No need for metaphor-filled rhetorics, no need for demagogy or opinion surveys,...

Archive for October, 2008

October 30th

Python decorators in Perl

I have been playing around with Python lately and this evening I stumbled upon this blog entry in which Bruce Eckel gives an excellent introduction of a Python feature called a 'decorator'....

Archive for May, 2008

May 24th

D-Day

At last! Today is the first day of this year's Nordic Perl Workshop. About 50 attendees, the highest number ever reached in Sweden! I am pretty sure me and Claes have forgotten tons of things...