<?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>Ninja Monkeys! &#187; java</title>
	<atom:link href="http://ninjamonkeys.co.za/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://ninjamonkeys.co.za</link>
	<description>Killing boredom</description>
	<lastBuildDate>Wed, 25 Jan 2012 07:18:23 +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>Oracle buys Sun</title>
		<link>http://ninjamonkeys.co.za/2009/04/20/oracle-buys-sun/</link>
		<comments>http://ninjamonkeys.co.za/2009/04/20/oracle-buys-sun/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 15:29:25 +0000</pubDate>
		<dc:creator>Vaughn Dickson</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://ninjamonkeys.co.za/?p=1141</guid>
		<description><![CDATA[IBM would&#8217;ve been a good match for Sun as they&#8217;re strong on the open source side, but Oracle buying Sun is a complete surprise. I think they&#8217;re more interested in dominating the business software market with Java and their database than doing anything major with Sun&#8217;s hardware. Reported on Slashdot.org]]></description>
			<content:encoded><![CDATA[<p>IBM would&#8217;ve been a good match for Sun as they&#8217;re strong on the open source side, but Oracle buying Sun is a complete surprise. I think they&#8217;re more interested in dominating the business software market with Java and their database than doing anything major with Sun&#8217;s hardware.</p>
<p><a href="http://developers.slashdot.org/article.pl?sid=09/04/20/128246">Reported on Slashdot.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ninjamonkeys.co.za/2009/04/20/oracle-buys-sun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google App Engine now supporting Java virtual machine</title>
		<link>http://ninjamonkeys.co.za/2009/04/08/google-app-engine-now-supporting-java-virtual-machine/</link>
		<comments>http://ninjamonkeys.co.za/2009/04/08/google-app-engine-now-supporting-java-virtual-machine/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 09:12:09 +0000</pubDate>
		<dc:creator>Vaughn Dickson</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[appengine]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software-development]]></category>

		<guid isPermaLink="false">http://ninjamonkeys.co.za/?p=1133</guid>
		<description><![CDATA[Google&#8217;s just released a Java 6 virtual machine on their Google App Engine platform. It&#8217;s a sandbox environment that wraps the Google services in standard Java interfaces that should be able to run most libraries with some tweaks. This is pretty huge, because depending on how restrictive the sandbox is we could run Scala, Groovy, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-thumbnail wp-image-1134" title="ae_gwt_java" src="http://ninjamonkeys.co.za/wp-content/uploads/2009/04/ae_gwt_java-150x115.png" alt="ae_gwt_java" width="150" height="115" />Google&#8217;s just <a href="http://googleappengine.blogspot.com/2009/04/seriously-this-time-new-language-on-app.html">released a Java 6 virtual machine on their Google App Engine platform</a>. It&#8217;s a sandbox environment that wraps the Google services in standard Java interfaces that should be able to run most libraries with some tweaks.</p>
<p>This is pretty huge, because depending on how restrictive the sandbox is we could run Scala, Groovy, Jython, JRuby, etc. on top of the same VM. Now if I can just get my head around non-relational databases.</p>
]]></content:encoded>
			<wfw:commentRss>http://ninjamonkeys.co.za/2009/04/08/google-app-engine-now-supporting-java-virtual-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java performance profiling on Mac for free using Shark</title>
		<link>http://ninjamonkeys.co.za/2008/02/21/java-performance-profiling-on-mac-for-free-using-shark/</link>
		<comments>http://ninjamonkeys.co.za/2008/02/21/java-performance-profiling-on-mac-for-free-using-shark/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 08:47:33 +0000</pubDate>
		<dc:creator>Vaughn Dickson</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://ninjamonkeys.co.za/2008/02/21/java-performance-profiling-on-mac-for-free-using-shark/</guid>
		<description><![CDATA[I&#8217;ve evaluated a number of tools for Java performance profiling like JProfiler, YourKit, etc. which are all great, but $500 is expensive for a South African, and the Eclipse Test &#38; Performance Tools don&#8217;t run on Mac OS X yet. So what&#8217;s a cheapskate to do? Use the free application that comes with Mac OS [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ninjamonkeys.co.za/wp-content/uploads/2008/02/shark.jpg" alt="shark.jpg" align="right" border="0" hspace="5" vspace="5" />I&#8217;ve evaluated a number of tools for Java performance profiling like <a href="http://www.ej-technologies.com/products/jprofiler/overview.html">JProfiler</a>, <a href="http://www.yourkit.com/">YourKit</a>, etc. which are all great, but $500 is expensive for a South African, and the <a href="http://eclipse.org/tptp" onmousedown="return clk(this.href,'','','res','1','')" class="l">Eclipse Test &amp; Performance Tools</a><span class="l"> don&#8217;t run on Mac OS X yet. So what&#8217;s a cheapskate to do? Use the free application that comes with Mac OS X 10.3+: <a href="http://developer.apple.com/tools/shark_optimize.html">Shark</a>. Install it off the Apple optional installs on your DVD, then follow these instructions to get Shark to profile your JVM instead of the process itself.</span></p>
<p>1. Run your Java application with this command line added:</p>
<ul>
<li> JVM 1.4: Add the following flag to your Java VM command line options: –XrunShark.</li>
<li> JVM 1.5 or later: Add the following flag to your Java VM command line options: -agentlib:Shark.</li>
</ul>
<p>2. Start Shark at /Developer/Applications/Performance Tools/Shark<br />
3. Select one of &#8216;Java Time Profile&#8217;, &#8216;Java Alloc Trace&#8217;, etc. in the first dropdown.</p>
<p><img src="http://ninjamonkeys.co.za/wp-content/uploads/2008/02/sharkrocks.jpg" alt="sharkrocks.jpg" /></p>
<p>4. Select your java process in the last dropdown<br />
5. Click start and run through your program.<br />
6. Click stop and view the analysis and be glad you haven&#8217;t coughed up $500 on a commercial tool.</p>
<p>More information on Sharks analysis can be found on <a href="http://developer.apple.com/tools/shark_optimize.html">Apple&#8217;s website</a>.</p>
<p>p.s. You need to <a href="http://lists.apple.com/archives/Java-dev/2007/Dec/msg00046.html">use the -XrunShark option if you want to do a Java Alloc Trace</a>, else you get the error message &#8220;The JVM Tools Interface cannot record allocation events [JavaTraceDataSource].&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://ninjamonkeys.co.za/2008/02/21/java-performance-profiling-on-mac-for-free-using-shark/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I&#8217;m in the top 5% of Java programmers</title>
		<link>http://ninjamonkeys.co.za/2008/02/08/im-in-the-top-5-of-java-programmers/</link>
		<comments>http://ninjamonkeys.co.za/2008/02/08/im-in-the-top-5-of-java-programmers/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 14:26:31 +0000</pubDate>
		<dc:creator>Vaughn Dickson</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://ninjamonkeys.co.za/2008/02/08/im-in-the-top-5-of-java-programmers/</guid>
		<description><![CDATA[According to BetterProgrammer.com I passed their testing better than 95% of other test takers. However, they don&#8217;t say how many other test takers there were, and you don&#8217;t really know how many were legitimate either, but I&#8217;m still proud of my result :) Try to beat me at http://www.betterprogrammer.com Update: Some folks have said that [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ninjamonkeys.co.za/wp-content/uploads/2008/02/horn.jpg" alt="tooting my own horn" align="right" hspace="5" vspace="5" />According to <a href="http://www.betterprogrammer.com">BetterProgrammer.com</a> <a href="http://www.betterprogrammer.com/certificate/BP1NTL83">I passed their testing better than 95% of other test takers</a>. However, they don&#8217;t say how many other test takers there were, and you don&#8217;t really know how many were legitimate either, but I&#8217;m still proud of my result :)</p>
<p>Try to beat me at <a href="http://www.betterprogrammer.com">http://www.betterprogrammer.com</a></p>
<p>Update: Some folks have said that it&#8217;s another stupid test that expects you to know obscure details of Java syntax, but it&#8217;s definitely not. It tests your knowledge of data structures, recursion, data types, etc. So it&#8217;s more of a computer science test than a standard lame Java test.</p>
<p>Update 2: Maxim Glaezer, the owner and developer of betterprogrammer.com, answered my question about the number of users who have taken the test. And the results aren&#8217;t surprising.</p>
<blockquote><p>The site started just several months ago, but since it is difficult to<br />
motivate programmers to pass (one more) test, there are not many<br />
registered users. A huge percentage of test takers quit after the 3rd<br />
task, approximately 1/3 who pass the test register, other 2/3 realize<br />
the result will not be spectacular and quit. So, there were ~600<br />
programmers who started and completed the whole test.</p>
<p>I am not sure it this site ever becomes useful or popular, looks like<br />
only 1% of all visitors dare to start the test.</p></blockquote>
<p>So 25th out of 1800 is okay, but what worries me is that you can take the test again, which is fine if you get a bad mark, but if you keep taking the test eventually the same questions will pop up and you can just copy and paste your solutions and get 99%. Maybe a limit of 3 chances should be enforced.</p>
]]></content:encoded>
			<wfw:commentRss>http://ninjamonkeys.co.za/2008/02/08/im-in-the-top-5-of-java-programmers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Maximizing windows in Java Swing</title>
		<link>http://ninjamonkeys.co.za/2007/05/22/maximizing-windows-in-java-swing/</link>
		<comments>http://ninjamonkeys.co.za/2007/05/22/maximizing-windows-in-java-swing/#comments</comments>
		<pubDate>Tue, 22 May 2007 08:32:49 +0000</pubDate>
		<dc:creator>Vaughn Dickson</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java_swing]]></category>
		<category><![CDATA[software-development]]></category>

		<guid isPermaLink="false">http://ninjamonkeys.co.za/2007/05/22/maximizing-windows-in-java-swing/</guid>
		<description><![CDATA[JFrame frame = new JFrame(); // add all components frame.pack(); frame.setExtendedState(JFrame.MAXIMIZED_BOTH); frame.setVisible(true); The key here is that you must call setExtendedState after any pack() methods, else it has no effect and you&#8217;ll spend two hours searching google and cursing Swing&#8230;trust me on this.]]></description>
			<content:encoded><![CDATA[<pre>JFrame frame = new JFrame();

// add all components

frame.pack();

frame.setExtendedState(JFrame.MAXIMIZED_BOTH);

frame.setVisible(true);</pre>
<p>The key here is that you must call setExtendedState after any pack() methods, else it has no effect and you&#8217;ll spend two hours searching google and cursing Swing&#8230;trust me on this.</p>
]]></content:encoded>
			<wfw:commentRss>http://ninjamonkeys.co.za/2007/05/22/maximizing-windows-in-java-swing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

