<?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>Spartan Java&#187; Tips</title>
	<atom:link href="http://www.spartanjava.com/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spartanjava.com</link>
	<description>Simple yet powerful Java programming</description>
	<lastBuildDate>Wed, 25 Nov 2009 15:26:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>View Androids emulator log from Eclipse</title>
		<link>http://www.spartanjava.com/2009/view-androids-emulator-log-from-eclipse/</link>
		<comments>http://www.spartanjava.com/2009/view-androids-emulator-log-from-eclipse/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 14:07:58 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=50</guid>
		<description><![CDATA[Sounds like it should be quite straightforward, right? Well, it is, but for some reason it took me more than a few minutes (maybe I need to get more sleep :P). Anyway, to view Androids emulator log from Eclipse go to Window / Show View / Other&#8230; / Android / LogCat
]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2009/view-androids-emulator-log-from-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get a web page programatically from Android</title>
		<link>http://www.spartanjava.com/2009/get-a-web-page-programatically-from-android/</link>
		<comments>http://www.spartanjava.com/2009/get-a-web-page-programatically-from-android/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 18:54:08 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[http client]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=45</guid>
		<description><![CDATA[The Google folks were kind enough to include a version of the Apache HTTP Client in the Android SDK, ergo loading a web resource/page from our Android apps is really simple:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
HttpClient httpClient = new DefaultHttpClient&#40;&#41;;
HttpContext localContext = new BasicHttpContext&#40;&#41;;
HttpGet httpGet = new HttpGet&#40;&#34;http://www.spartanjava.com&#34;&#41;;
HttpResponse response = httpClient.execute&#40;httpGet, localContext&#41;;
String result = &#34;&#34;;
&#160;
BufferedReader reader = new BufferedReader&#40;
  [...]]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2009/get-a-web-page-programatically-from-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Obovweb source code &#8211; a Google Appengine sample</title>
		<link>http://www.spartanjava.com/2009/obovweb-source-code-a-google-appengine-sample/</link>
		<comments>http://www.spartanjava.com/2009/obovweb-source-code-a-google-appengine-sample/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 16:50:43 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web related]]></category>
		<category><![CDATA[appengine]]></category>
		<category><![CDATA[dwr]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[hmac]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[implementation details]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[obov]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=37</guid>
		<description><![CDATA[Someone asked me about the implementation details of the Google Appengine sample I published a few weeks ago (http://obovweb.appspot.com/). Well, you can get a hold of the source code here.
There&#8217;s not much to tell, apart from the specific HMAC-SHA1 implementation (which you can check out in Obovs source code) it&#8217;s a very simple JSP/DWR application.
]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2009/obovweb-source-code-a-google-appengine-sample/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling &#8220;Enter&#8221; in a form without a submit button</title>
		<link>http://www.spartanjava.com/2009/enabling-enter-in-a-form-without-a-submit-button/</link>
		<comments>http://www.spartanjava.com/2009/enabling-enter-in-a-form-without-a-submit-button/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 16:27:52 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=36</guid>
		<description><![CDATA[I find it quite annoying when I can&#8217;t post/confirm a web form using the Enter key. 
Here is a nifty little javascript trick to do it when you do not need/want a submit input in your html.
First include this javascript function somewhere accesible for your HTML:

1
2
3
4
5
6
7
8
9
10
11
12
function submitenter&#40;e, action&#41; &#123;
  var keycode;
  if &#40;window.event&#41; [...]]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2009/enabling-enter-in-a-form-without-a-submit-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java application as a MS Windows service</title>
		<link>http://www.spartanjava.com/2009/java-application-as-a-ms-windows-service/</link>
		<comments>http://www.spartanjava.com/2009/java-application-as-a-ms-windows-service/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 21:17:16 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[helper application]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java application]]></category>
		<category><![CDATA[ms windows]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=30</guid>
		<description><![CDATA[It&#8217;s really annoying to run something interactively on MS Windows when you know deep inside it should be an OS Service. Doing this on a *nix system is quite simple (most of the times you just need to write a short shell script), but on MS Windows it&#8217;s not so easy.

Anyway, after looking into a [...]]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2009/java-application-as-a-ms-windows-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reload resource bundles on the fly, finally!</title>
		<link>http://www.spartanjava.com/2009/reload-resource-bundles-on-the-fly-finally/</link>
		<comments>http://www.spartanjava.com/2009/reload-resource-bundles-on-the-fly-finally/#comments</comments>
		<pubDate>Wed, 13 May 2009 17:56:41 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=27</guid>
		<description><![CDATA[Ever since the very first time I used a properties file in Java I&#8217;ve wanted to be able to reload it upon a sysadmin request or some other circumstance without having to reload the whole application, reset the application server or use some dark proprietary Sun APIs. Well, finally in Java 1.6 we can do [...]]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2009/reload-resource-bundles-on-the-fly-finally/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fast collection look-ups</title>
		<link>http://www.spartanjava.com/2009/fast-collection-look-ups/</link>
		<comments>http://www.spartanjava.com/2009/fast-collection-look-ups/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 21:12:24 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[collections]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=26</guid>
		<description><![CDATA[I recently had to load a bunch of objects into memory and then perform thousands of look-ups over that collection. Using the good old java.util.ArrayList just didn&#8217;t cut it, the contains() function is extremely slow (as you would guess of course since this implementation stores elements as they are inserted and without any aditional indexing [...]]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2009/fast-collection-look-ups/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Automatically serialize POJOs to and from JSON</title>
		<link>http://www.spartanjava.com/2009/automatically-serialize-pojos-to-and-from-json/</link>
		<comments>http://www.spartanjava.com/2009/automatically-serialize-pojos-to-and-from-json/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 16:37:59 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web related]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[json]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=25</guid>
		<description><![CDATA[The best tool I&#8217;ve found so far to serialize POJOs to JSON (and back again) is XStream, it&#8217;s automatic, simple and elegant, check it out.
]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2009/automatically-serialize-pojos-to-and-from-json/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP &amp; Java interoperable encryption</title>
		<link>http://www.spartanjava.com/2009/php-java-interoperable-encryption/</link>
		<comments>http://www.spartanjava.com/2009/php-java-interoperable-encryption/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 15:53:21 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=24</guid>
		<description><![CDATA[I recently faced the problem of encrypting something in PHP and decrypting it using Java, this proved to be a little more of a challenge than what it initially seemed like.
In any case, the secret layed in the padding, Java uses by default a PCKS5 padding algorithm and PHP does not.
Here is a sample of [...]]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2009/php-java-interoperable-encryption/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Setup your web server to properly serve MS Office 2007 files</title>
		<link>http://www.spartanjava.com/2008/setup-your-web-server-to-properly-serve-ms-office-2007-files/</link>
		<comments>http://www.spartanjava.com/2008/setup-your-web-server-to-properly-serve-ms-office-2007-files/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 17:18:31 +0000</pubDate>
		<dc:creator>ricardoz</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web related]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[mime]]></category>
		<category><![CDATA[office]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://www.spartanjava.com/?p=22</guid>
		<description><![CDATA[Most web servers are missing the new MIME types needed for Office 2007 files (docx, xslx, etc.) and when you server one of this files from your web application the users browser typically tries to open them as ZIP files.

To fix it just add the needed MIME types to your web server:

docm application/vnd.ms-word.document.macroEnabled.12
docx 	application/vnd.openxmlformats-officedocument.wordprocessingml.document
dotm 	application/vnd.ms-word.template.macroEnabled.12
dotx [...]]]></description>
		<wfw:commentRss>http://www.spartanjava.com/2008/setup-your-web-server-to-properly-serve-ms-office-2007-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
