<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ivo Limmen &#187; Programming</title>
	<atom:link href="http://blog.limmen.org/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.limmen.org</link>
	<description>Everything fun...</description>
	<lastBuildDate>Fri, 01 Apr 2011 11:51:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Google maps and clustering markers</title>
		<link>http://blog.limmen.org/2011/04/google-maps-and-clustering-markers/</link>
		<comments>http://blog.limmen.org/2011/04/google-maps-and-clustering-markers/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 08:20:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Cluster]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Maps]]></category>
		<category><![CDATA[Markers]]></category>

		<guid isPermaLink="false">http://blog.limmen.org/?p=209</guid>
		<description><![CDATA[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. In my case I wanted to do someting special with my markers (and my clustered markers). When there is an alert at the location [...]]]></description>
			<content:encoded><![CDATA[<p>You can do really nice things with the <a href="http://code.google.com/apis/maps/documentation/javascript/reference.html">Google Maps API</a>. Even more when you use the <a href="http://code.google.com/p/gmaps-utility-library-dev/">gmaps-utility-library</a>.<br />
Difficulty is that the documentation is not that great of the extra tools.<br />
<span id="more-209"></span><br />
In my case I wanted to do someting special with my markers (and my clustered markers). When there is an alert at the location my markers should turn red instead of the default green.<br />
The cluster markers does have the ability to set a different style set. Problem is that the logic in the cluster marker is that it changes the style based on the amount of markers in the cluster.</p>
<p>I incidentally found and used the correct version of the add-on. I found it at <a href="http://code.google.com/p/google-maps-utility-library-v3">Google code</a>. While writing this post I re-googled the add-on so that I could link to the site. Like <a href="http://code.google.com/p/gmaps-utility-library-dev">so</a>.<br />
I discovered that that version had exactly what I missed: a parameter for the calculator function. Thinking I had an outdated version I copied this version and rewrote the code.<br />
It broke. It seems it was voor Google Maps API v2, and I was using V3.<br />
Then I discovered that there are more versions of the add-on library! The new version for V3 did not have a parameter for specifying a function to calculate what style I wanted to use.</p>
<p>Eventually I just overridden the function as so:</p>
<pre>
MarkerClusterer.prototype.calculator_ = function(markers, numStyles) {
    var index = 1;
    var count = markers.length;

    for (var i = 0; i < markers.length; i++) {
        if (markers[i].alert != undefined &#038;&#038; markers[i].alert) {
            // show alert
            index = 2;
            break;
        }
    }

    return {
        text: count,
        index: index
    };
};
</pre>
<p>When I create a marker I add the
<pre>alert</pre>
<p> property before adding it to the array that I pass on to the MarkerClusterer. It works like a charm!</p>
<p>It would be nicer (and cleaner) to specify the function when initializing the MarkerClusterer, but I am just glad I got it working like I wanted to.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.limmen.org/2011/04/google-maps-and-clustering-markers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache should vote NO on Java 7</title>
		<link>http://blog.limmen.org/2010/11/apache-should-vote-no/</link>
		<comments>http://blog.limmen.org/2010/11/apache-should-vote-no/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 20:03:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JCP]]></category>
		<category><![CDATA[JDK7]]></category>

		<guid isPermaLink="false">http://blog.limmen.org/?p=194</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>Apache just made a statement on the <a href="https://blogs.apache.org/foundation/entry/statement_by_the_asf_board1">TCK situation</a>. They just got a three years extension on the JCP Executive Committee. I am happy about that.</p>
<p>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.</p>
<p>I hope that they eventually do vote <strong>no</strong> 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).</p>
<p>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&#8230;.. </p>
<p>O wait I&#8217;m dreaming&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.limmen.org/2010/11/apache-should-vote-no/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing a private variable for testing</title>
		<link>http://blog.limmen.org/2010/10/changing-a-private-variable-for-testing/</link>
		<comments>http://blog.limmen.org/2010/10/changing-a-private-variable-for-testing/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 07:00:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Final]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JUnit]]></category>
		<category><![CDATA[Reflection]]></category>
		<category><![CDATA[Static]]></category>

		<guid isPermaLink="false">http://blog.limmen.org/?p=185</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>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:</p>
<pre>
public static void setStaticPrivateVariable(Class&lt;?&gt; 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 &#038;= ~Modifier.FINAL;
		modifiersField.setInt(field, modifiers);
	}

	field.set(null, value);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.limmen.org/2010/10/changing-a-private-variable-for-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer 6</title>
		<link>http://blog.limmen.org/2009/08/internet-explorer-6/</link>
		<comments>http://blog.limmen.org/2009/08/internet-explorer-6/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 05:09:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Mozilla Firefox]]></category>

		<guid isPermaLink="false">http://blog.limmen.org/?p=100</guid>
		<description><![CDATA[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&#8217;t agree with this. And if you [...]]]></description>
			<content:encoded><![CDATA[<p>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.<br />
<a href="http://www.saveie6.com">Here</a> is a nice website if you don&#8217;t agree with this.<br />
And if you don&#8217;t like how Internet Explorer 6 is working but you like it&#8217;s look &#038; feel: <a href="http://www.mozilla-europe.org/en/firefox/">install Mozilla Firefox</a> and <a href="http://firefoxp.topcities.com/">follow these instructions</a>.<br />
Update: Also found the following website: </p>
<ul>
<li><a href="http://www.ie6nomore.com/">No more IE6.</a></li>
<li><a href="http://www.bringdownie6.com/">Bring down IE6.</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.limmen.org/2009/08/internet-explorer-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manifesto for Software Craftsmanship</title>
		<link>http://blog.limmen.org/2009/03/manifesto-for-software-craftsmanship/</link>
		<comments>http://blog.limmen.org/2009/03/manifesto-for-software-craftsmanship/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 06:33:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Professional]]></category>
		<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://blog.limmen.org/?p=38</guid>
		<description><![CDATA[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.]]></description>
			<content:encoded><![CDATA[<p>I was reading my RSS feed from <a href="http://www.infoq.com/news/2009/03/software_craftsmanship">InfoQ</a> and came across this link to <a href='http://manifesto.softwarecraftsmanship.org/main'>Manifesto for Software Craftsmanship</a>. Interesting read and very nice initiative. It starts with:<br />
<i>As aspiring Software Craftsmen we are raising the bar of professional software development by practicing it and helping others learn the craft.</i></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.limmen.org/2009/03/manifesto-for-software-craftsmanship/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The 5 Most Under-Used HTML Tags</title>
		<link>http://blog.limmen.org/2009/02/the-5-most-under-used-html-tags/</link>
		<comments>http://blog.limmen.org/2009/02/the-5-most-under-used-html-tags/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 20:35:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://blog.limmen.org/?p=34</guid>
		<description><![CDATA[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).]]></description>
			<content:encoded><![CDATA[<p>I just read a blog on <a href='http://www.sitepoint.com/blogs/2009/02/24/five-under-used-html-tags/'>SitePoint called The 5 Most Under-Used HTML Tags</a>, 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).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.limmen.org/2009/02/the-5-most-under-used-html-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Naming your computer</title>
		<link>http://blog.limmen.org/2009/02/naming-your-computer/</link>
		<comments>http://blog.limmen.org/2009/02/naming-your-computer/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 06:34:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://blog.limmen.org/?p=19</guid>
		<description><![CDATA[There is a story running on ITWorld about servers and how they are named. Very funny to read.]]></description>
			<content:encoded><![CDATA[<p>There is a story running on ITWorld about <a href='http://itworld.com/offbeat/61750/would-server-any-other-name-be-functional'>servers and how they are named</a>. Very funny to read.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.limmen.org/2009/02/naming-your-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Case Against Web Apps</title>
		<link>http://blog.limmen.org/2009/01/the-case-against-web-apps/</link>
		<comments>http://blog.limmen.org/2009/01/the-case-against-web-apps/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 21:38:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://blog.limmen.org/?p=14</guid>
		<description><![CDATA[I have to say that that this Neil McAllister is right. Web development is &#8216;hostily territory&#8217;. However I do not agree with the statement that &#8216;UI and tool limitations are well known&#8217;, well; they are well known but if you use EXT it is not that limited. Read the article on Slashdot: The Case Against [...]]]></description>
			<content:encoded><![CDATA[<p>I have to say that that this Neil McAllister is right. Web development is &#8216;hostily territory&#8217;. However I do not agree with the statement that &#8216;UI and tool limitations are well known&#8217;, well; they are well known but if you use EXT it is not that limited. Read the article on Slashdot: <a href='http://it.slashdot.org/article.pl?sid=09%2F01%2F29%2F1939251'>The Case Against Web Apps</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.limmen.org/2009/01/the-case-against-web-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

