Christianschenk - christianschenk.org - Christian Schenk
General Information:
Latest News:
Java: Type safe character set 4 Oct 2012 | 04:20 pm
If you are working on strings and want to make sure that they conform to a certain character set and are encoded with a certain encoding scheme you will come across the standard Java class Charset tha...
Wicket: Internationalization for enums 21 Sep 2012 | 07:24 pm
There are various nice tutorials available on how you would add internationalization to enum values. Some of them seem outdated because using a class called EnumChoiceRenderer – which is packaged with...
Java: Type safe MessageDigest 10 Sep 2012 | 12:45 pm
The standard Java class MessageDigest can be used to return instances for various message digest algorithms. Implementing a simple factory helps you to return these instances in a type safe way withou...
Google search easter eggs: recursion and the answer to life 27 Aug 2012 | 02:18 pm
An interesting piece worth sharing are two apparent easter eggs that can be found in the Google search: type in recursion or answer to life the universe and everything and see what happens. Apparently...
Steinhaus–Johnson–Trotter implementation in Java 14 Aug 2012 | 04:45 pm
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 ...
WordPress: Insert multilingual Facebook Like Button 30 Jul 2012 | 06:16 pm
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 ...
ColorBlender – a web designer’s favorite 3 Jul 2012 | 03:50 am
The website ColorBlender.com has been offering a great tool to match colors for web designs for quite some time. I’ve been using it in various projects and I can just recommend this for anybody else. ...
Changing the order of letters in words 6 Feb 2011 | 03:45 pm
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 in...
How to pretend having an iPhone 3 Mar 2010 | 07:15 pm
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 h...
HTML select box to download files 21 Jan 2010 | 08:55 pm
Just recently I wanted to have a simple HTML select element where the user should be able to click on a specific option to download a certain file. I came up with a solution that contains some JavaScr...