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

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);
}

Internet Explorer 6

I personally think Internet Explorer 6 is currently the most annoying browser in the world. A lot of people (mostly web developers and web designers) agree with me. A lot of website are starting to drop support for Internet Explorer 6.
Here is a nice website if you don’t agree with this.
And if you don’t like how Internet Explorer 6 is working but you like it’s look & feel: install Mozilla Firefox and follow these instructions.
Update: Also found the following website:

Manifesto for Software Craftsmanship

I was reading my RSS feed from InfoQ and came across this link to Manifesto for Software Craftsmanship. Interesting read and very nice initiative. It starts with:
As aspiring Software Craftsmen we are raising the bar of professional software development by practicing it and helping others learn the craft.

The 5 Most Under-Used HTML Tags

I just read a blog on SitePoint called The 5 Most Under-Used HTML Tags, this was an interesting read. I create a lot of web apps but I mostly use frameworks that handle the output of the HTML for me (like JSF).

Naming your computer

There is a story running on ITWorld about servers and how they are named. Very funny to read.

The Case Against Web Apps

I have to say that that this Neil McAllister is right. Web development is ‘hostily territory’. However I do not agree with the statement that ‘UI and tool limitations are well known’, well; they are well known but if you use EXT it is not that limited. Read the article on Slashdot: The Case Against Web Apps