Om mig

Mitt foto

I'm a software developer playing around with Scala, Lift and GWT along with a few DIY side projects.

måndag 23 november 2009

Ubuntu saves me again...

So I managed to screw up my boot loader when I wanted to try if a game I play ran better in Win XP than in Win 7 (there was some graphics lag issue). Anyhow, I always have a live ubuntu cd lying around for such circumstances and it saved me having to reinstall my entire system yet again.

In the end I disabled the booting from my primary drive in the OS and let Win 7 repair the damaged bootmanager. So now everything (almost) is back to it's original state... but I think I'll throw back GRUB and let it handle the booting for me :)

And again... ALWAYS keep a live cd of some linux distro at hand!

fredag 13 november 2009

It's on github

I've created a public repository on github to host the code for my Scala bittorrent tracker. As for now I have decided to call it Steps. A tracker follows steps, a "Scala" (stair in italian) has steps, however Lift (the webframework that Steps uses) lacks it... so Steps is a nice name.

The git repo can be found here:

Right now the only usable code there is the Bencoder, which can be used to decode a Byte array of bencoded data into Scala objects (SortedMap, List, String and Int) and encode them back. I have a working Tracker implementation, but I want to clean the code up a bit before committing it and try to get some more tests together for it. Real soon now :)

Ps. I forgot to say that you can also find the repo by searching on google for "scala bittorrent steps" currently it's the 10th hit Ds.

onsdag 11 november 2009

And he is asleep...

Now that Sebastian is taking his afternoon nap I have time to do some coding. A couple of month ago I attempted to hack-away with my son in my lap. It was not an experience which captured the imagination of my then 8 month year old son. Nowadays he seems to prefer to stand up beside things... who am I to judge? I enjoy coding in my spare time, he likes to stand. I suppose the standing thing is in most cases more usefull.

What am I coding then? Well, I have made a bittorrent tracker written in Scala and using Lift. Lift is a nice framework, fairly easy to get into (if you have some form of book or guide). The hardest part I think is getting used to code in Scala. I'll post some nifty language features later.

Building a "Koja" with Sebastian...