Wicket: Internationalization for enums

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 Wicket now – makes it very easy to, e.g., display the translated values of enums with a drop down box.

Java: Type safe MessageDigest

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 without magic strings and preventing catch blocks with NoSuchAlgorithmException in your code.