Image 01 Image 02

Posted on 6th October 2013 by Sebastian

Yesterday the 2013 Nordic Collegiate Programming Contest took place. I have taken part in this contest the last 4 years, my two first years winning the Danish sub-contest called “DM i Programmering”.

This year I participated with Kristoffer Søholm and Morten Brøns-Pedersen, two of the members of the DIKU hacker-group Pwnies. We chose to call ourselves Fwnies, and managed to secure ourselves a 4th place in the Danish rankings, and a 20th place overall.

In connection with hacking competitions, the different teams often do write-ups explaining their solutions after the contest is over. I quite like that concept, so I thought I’d share our solutions for the NCPC problems.


Posted on 31st October 2012 by Sebastian

Next time you typeset a LaTeX document, where you discuss some Haskell code, consider using the following command to typeset the name:

That is, instead of I use the function \texttt{liftM2} to lift ..., use I use the function \hoogle{liftM2} to lift ....

What the command does is not only format the function name in a fixed-width font using \texttt, but also link it to a Hoogle-search, to allow the reader to easily look up what the function does, in case it’s unknown to them.

Posted on 30th January 2012 by Sebastian

You may already know imgur, an image host you can use freely for whatever you please.

An interesting fact about them, however, is that each picture given a name consisting of only 5 alphanumerical characters. This leaves for roughly 916 million different names. As it turns out, there appears to be around 90 million uploaded images[1], which means that if we randomly guess a name for a file, we have an about 1 in 10 chance of actually finding an image.

Those odds are pretty good, so I wrote a small application which does just that.

Download the latest version here (or get the source code directly from github)

  1. [1]Rough estimate based on empirical observations.

Posted on 27th May 2010 by Sebastian

These last few days, most of the people I know’ve been playing Manufactoria, a game revolving around fixing up robots in a turing machine-esque manner. (If you’re at all into programming, I suggest you check it out. Also, rate it high!)

Quickly, one starts running out of levels to solve, however, so I’ve decided to make a small collection of additional levels you can play. Mind you, I have not solved all of these myself, so the unsolved ones may very well not be solvable in the space allotted. Caveat emptor.