Steinhaus–Johnson–Trotter implementation in Java

Generally it’s frustrating to read that somebody implemented the Steinhaus–Johnson–Trotter algorithm to generate permutations but doesn’t supply the source code due to the fear that the code could be “copied elsewhere” on the internet. Since I was really interested in permutations for another project I implemented the said algorithm, added a LGPL license to it and published it.

Continue reading →

WordPress: Insert multilingual Facebook Like Button

If you’re using the qTranslate plugin for WordPress and want to insert the Facebook Like button in the corresponding language I came up with a small piece of code that you can insert into, e.g., your theme’s functions.php to get this working.

Continue reading →

Changing the order of letters in words

Did you ever come across the finding that even if the order of letters in words is changed just slightly you will most likely be able to read the text without much problems? I think that this is so interesting that I invested a considerable amount of time writing a software that reads a text, changes the words and outputs the result. Easier said than done, this post tries to explain what I’ve been working on.

Continue reading →

How to pretend having an iPhone

Quite some years after the iPhone was introduced it still seems that everybody wants to have one to send email messages. But what if you just can’t afford it? In this short post I would like to show how to setup your email client so it looks like you were sending these messages from your shiny iPhone. It’s easy, quick and fun.

Continue reading →