Latest Posts Under: Uncategorized

See more conversion options in preview in OS X 10.8 Lets say you have a file (image.png) and you want to convert it to a BMP for whatever reason. It seems in OS X 10.8 you can still do this, but the options are a bit hidden. This link gives the hint to do this. Within preview you need to hold the “option” key first so you can choose “save as”. After that you still need to hold the option key when you use the ‘format’ dropdown so you can select the BMP format. If… Read Article →

Do you have facebook? If so, then you are probably familiar with the timeline feature. I have decided to write up a timeline about myself. It gives a view of who I am, what I did, when and how I got influenced. It also showcases my projects in a chronological order. If you want to read the timeline, head to the making of Stefan Hendriks!

Since I could not find an easy solution for this problem I have decided to blog about this. Lets say your machine (running Windows 7) is running in a Dutch locale. If you install the JDK and request the default locale in your application you will get: nl_NL I’m testing this with the following code: [sourcecode language=”java”] import java.util.Locale; public class DefaultLocaleTester { public static void main(String[] args) { Locale defaultLocale = Locale.getDefault(); System.out.println("Default locale is : " + defaultLocale); } } [/sourcecode] Lets say I want to make this return en_US. The official docs… Read Article →

Recently I had the oppertunity to explain some students about what unit testing was. I started off with the question of “What does unit testing mean?”. They gave different types of answers. One of them talked about the smallest piece of code. And even though he is ‘right’. I asked him to apply this knowledge to his current code where he said “But I don’t want to test my get/set methods, that is useless!”. And so, our definition of ‘unit testing’ became unclear again. So what is a unit test? According to this article on… Read Article →

Scroll To Top