April fools

Folks at LinkedIn definitely have humor:

Google maps and clustering markers

You can do really nice things with the Google Maps API. Even more when you use the gmaps-utility-library.
Difficulty is that the documentation is not that great of the extra tools.
Read More

Something is very wrong

My wife was searching on ‘Sinterklaas’ (Kind of Santa Claus in the Netherlands) and this is what came up:

Apache should vote NO on Java 7

Apache just made a statement on the TCK situation. They just got a three years extension on the JCP Executive Committee. I am happy about that.

In the same press release they state that Oracle is violating their contract by not endorsing the use of the TCK to validate the Harmony JVM of Apache. They threaten to vote against the Java SE 7 release.

I hope that they eventually do vote no on JDK 7. I would love to see Apache fork Java. I think that most Java developers trust Apache more to handle Java than they trust Oracle (and other commercial companies).

Personally I would please me to see Apache and Google fork and create a new Java. Give it a new name. Cut the deprecated API. Drop JSR-277 and use OSGi bundles. Start fresh…..

O wait I’m dreaming…

Changing a private variable for testing

Sometimes you just need to update the value of a static private variable for junit testing. It often is a code smell if this is needed, in this case as well but it was not allowed to redesign the software. So we made a reflection utility class that can change the values:

public static void setStaticPrivateVariable(Class<?> objectClass,
		String fieldName, Object value) throws Throwable {

	Field field = objectClass.getDeclaredField(fieldName);
	field.setAccessible(true);

	Field modifiersField = Field.class.getDeclaredField("modifiers");
	modifiersField.setAccessible(true);
	int modifiers = modifiersField.getInt(field);

	if (Modifier.isFinal(modifiers)) {
		modifiers &= ~Modifier.FINAL;
		modifiersField.setInt(field, modifiers);
	}

	field.set(null, value);
}

Norah is drie geworden

Norah is vandaag drie jaar geworden. Ze kreeg van ons een nieuwe fiest (haar eerste overigens). Ze wilde er meteen op fietsen.

Virtual Choir

Dit is eigenlijk niet mijn type muziek maar dit is mooi gedaan, en het klinkt best oké.

BNN – That’s life – Laura Jansen

image

image

Gisteren samen met een vriend van mij naar BNN geweest voor een klein knus mini concert van Laura Jansen. Wat kan zij goed zingen. Haar band was nog in America vanwege de as-wolk dus deed ze het in haar eentje.
Ik was erg onder de indruk.

Dagje Efteling

image

Het zag er naar uit dat het vies weer zou worden maar uiteindelijk werd het een mooie zonnige dag. Het was redelijk druk maar we zijn in de attracties geweest waar we in wilden. Ons doel was om te zien of Norah het leuk zou vinden. Het eerste wat we deden was naar carnaval-land gaan. Norah zat bij oma, en ze vond het leuk. Toen gingen we naar het sprookjesbos. Bij sommige attracties was ze niet weg te slepen. Bij de laven nog even een tour gedaan. Norah was daar uiteindelijk niet was te halen bij de glijbaan. Al met al een gezellig dagje uit.