<?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>erlendaakre.com &#187; Computers</title>
	<atom:link href="http://www.erlendaakre.com/category/computers/feed" rel="self" type="application/rss+xml" />
	<link>http://www.erlendaakre.com</link>
	<description>Erlend Aakre's blog</description>
	<lastBuildDate>Wed, 18 Jan 2012 12:56:58 +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>Star Wars The Old Republic</title>
		<link>http://www.erlendaakre.com/star-wars-the-old-republic.html</link>
		<comments>http://www.erlendaakre.com/star-wars-the-old-republic.html#comments</comments>
		<pubDate>Fri, 23 Dec 2011 21:48:07 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[anarchy online]]></category>
		<category><![CDATA[bioware]]></category>
		<category><![CDATA[bodyguard]]></category>
		<category><![CDATA[bounty hunter]]></category>
		<category><![CDATA[companion]]></category>
		<category><![CDATA[companion system]]></category>
		<category><![CDATA[dragon age]]></category>
		<category><![CDATA[eve online]]></category>
		<category><![CDATA[healer]]></category>
		<category><![CDATA[heat level]]></category>
		<category><![CDATA[lifetime subscription]]></category>
		<category><![CDATA[Mako]]></category>
		<category><![CDATA[mass effect]]></category>
		<category><![CDATA[MMO]]></category>
		<category><![CDATA[neverwinter nights]]></category>
		<category><![CDATA[quest line]]></category>
		<category><![CDATA[screenshot]]></category>
		<category><![CDATA[star trek]]></category>
		<category><![CDATA[Star Trek online]]></category>
		<category><![CDATA[star wars]]></category>
		<category><![CDATA[star wars the old republic]]></category>
		<category><![CDATA[swtor]]></category>
		<category><![CDATA[world of warcraft]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=1620</guid>
		<description><![CDATA[I&#8217;ve been playing World of Warcraft on an off for over 5 years, before that I played Anarchy Online and Eve Online for a couple of years. After that I got a lifetime subscription for Star Trek Online, which kinda turned me off MMO&#8217;s altogether :) I&#8217;ve been playing a couple of the SWTOR beta weekends and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing World of Warcraft on an off for over 5 years, before that I played Anarchy Online and Eve Online for a couple of years.</p>
<p>After that I got a lifetime subscription for Star Trek Online, which kinda turned me off MMO&#8217;s altogether :)</p>
<p>I&#8217;ve been playing a couple of the SWTOR beta weekends and got early access 6 days before release, and I&#8217;ve made it to level 30 so far (think there are around 10-20 lvl 50&#8242;s on my server (Scepter of Ragnos)).</p>
<p>And so far I must say&#8230; SWTOR is fucking awesome!</p>
<address><a href="http://www.erlendaakre.com/wp-content/uploads/2011/12/Screenshot_2011-12-17_16_01_10_349439.jpg"><img class="alignnone size-medium wp-image-1621" title="SWTOR flying shuttle" src="http://www.erlendaakre.com/wp-content/uploads/2011/12/Screenshot_2011-12-17_16_01_10_349439-300x168.jpg" alt="" width="300" height="168" /><br />
</a><em>Riding a shuttle between two areas of the map</em></address>
<p>If you just gave me the game and let me play the first 10 levels (Starting planet), I would be 99% sure the game was made by Bioware. Unlike for example WOW where you just accept quest, go kill/collect and return, the quests in SWTOR are really amazing. The quest chains make up wonderful stories in classic Bioware style (Baldurs Gate, Neverwinter Nights, KOTOR, Dragon Age), and you can very often choose different ways to do the quest. The NPC voice acting also adds to your total immersion in the stories.</p>
<p>The class quest, which is a long quest line that follows your character between level 1 and 50, is absolutely brilliant, I&#8217;m playing as a Bounty Hunter and the story is comparable to a really good single player RPG. Also the companion system is great, and you get a really close connection to your characters, much more so than in KOTOR / Mass Effect.</p>
<pre><a href="http://www.erlendaakre.com/wp-content/uploads/2011/12/Screenshot_2011-12-18_23_15_35_407222.jpg"><img class="alignnone size-medium wp-image-1622" title="Screenshot_2011-12-18_23_15_35_407222" src="http://www.erlendaakre.com/wp-content/uploads/2011/12/Screenshot_2011-12-18_23_15_35_407222-300x168.jpg" alt="" width="300" height="168" />
</a><em>Me and my kickass companion Mako</em></pre>
<p>So far I can only judge the lvl 1-30 part of the bounty hunter class quest, but I&#8217;ve heard the other classes (which have totally different class quests) are equally good. So I&#8217;ll probably be making alts just to play the story lines.</p>
<p>The instances I&#8217;ve been in so far are all good, like the quests you can also affect how the instance unfolds by choosing dark side / light side.</p>
<p>I&#8217;m playing as a Bounty Hunter Bodyguard (healer), and the healing mechanic is really good, each time you use a healing ability you gain heat and you need to keep your heat level low and not overheat to be able to heal. This means you can heal forever if you manage your heat properly, but dealing with big damage spikes is a bit hectic (but very doable).</p>
<p>The graphics are really nice, although some people complain it&#8217;s too cartoony (mostly WOW fanboys it seems, which is ironic beyond belief). I&#8217;m glad the graphics is not realistic (skyrim, age of conan), I don&#8217;t think that would be a good look for this game.</p>
<pre><a href="http://www.erlendaakre.com/wp-content/uploads/2011/12/Screenshot_2011-12-23_21_15_03_215236.jpg"><img class="alignnone size-medium wp-image-1623" title="Mako" src="http://www.erlendaakre.com/wp-content/uploads/2011/12/Screenshot_2011-12-23_21_15_03_215236-300x168.jpg" alt="" width="300" height="168" /></a>
<em>I'm trying to be a ruthless bounty hunter, but Mako with her big puppy eyes makes it hard at times</em></pre>
<p>So far I haven&#8217;t experienced a single disconnect (saw 2 lag spikes during 1 beta weekend, that lasted about 5 seconds), so for me the launch has been close to perfect. I came across 1 bug in a class quest, but the forum had a workaround.</p>
<p>I&#8217;m really looking forward to seeing what the end game is like.</p>
<p>To sum it all up in one sentence, &#8220;I&#8217;ve played many MMO&#8217;s, but I would say this is the first MMO<strong>RPG</strong> I&#8217;ve played&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/star-wars-the-old-republic.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Origin.. never again!</title>
		<link>http://www.erlendaakre.com/origin-never-again.html</link>
		<comments>http://www.erlendaakre.com/origin-never-again.html#comments</comments>
		<pubDate>Thu, 22 Dec 2011 22:36:03 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[battlefield]]></category>
		<category><![CDATA[Battlefield 3]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[downloadable game]]></category>
		<category><![CDATA[EA]]></category>
		<category><![CDATA[electronic arts]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[live chat]]></category>
		<category><![CDATA[Origin]]></category>
		<category><![CDATA[piece of shit]]></category>
		<category><![CDATA[registration code]]></category>
		<category><![CDATA[star wars]]></category>
		<category><![CDATA[star wars the old republic]]></category>
		<category><![CDATA[swtor]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=1614</guid>
		<description><![CDATA[Even though it means I&#8217;m basically throwing Battlefield 3 out the window, I just uninstalled the piece of shit Origin client. I pre-ordered SWTOR (Star Wars The Old Republic) on Origin in July, and today I had to get the product code for it so I could continue playing. SWTOR appears under my games, but [...]]]></description>
			<content:encoded><![CDATA[<p>Even though it means I&#8217;m basically throwing Battlefield 3 out the window, I just uninstalled the piece of shit Origin client.</p>
<p>I pre-ordered SWTOR (Star Wars The Old Republic) on Origin in July, and today I had to get the product code for it so I could continue playing.</p>
<p><a href="http://www.erlendaakre.com/wp-content/uploads/2011/12/origin1.png"><img class="alignnone size-medium wp-image-1616" title="origin1" src="http://www.erlendaakre.com/wp-content/uploads/2011/12/origin1-300x194.png" alt="" width="300" height="194" /></a></p>
<p>SWTOR appears under my games, but for some reason it says it&#8217;s unreleased when it was released 2 days ago (Also notice the goddamn BF3 beta game that I could find no way to remove from &#8220;my games&#8221;).</p>
<p>I click the info button and it says I purchased it on July 28th, and gives me a product code.</p>
<p><a href="http://www.erlendaakre.com/wp-content/uploads/2011/12/origin2.png"><img class="alignnone size-medium wp-image-1615" title="origin2" src="http://www.erlendaakre.com/wp-content/uploads/2011/12/origin2-300x176.png" alt="" width="300" height="176" /></a></p>
<p>But the product code is not working, and says it&#8217;s already been used. And after 30 minutes with EA live chat support they say I haven&#8217;t ordered it, despite being able to say why it shows up under my games and gives me a registration code.</p>
<p>So now I have to go to the mall tomorrow and get a physical copy of the game. I could probably have ordered it on origin, but then I would end up having 2 battlefield games (1 not working) and 2 swtor games (1 not working) under &#8220;my games&#8221;. Also the downloadable game is 15$ MORE expensive than the on in the store.</p>
<p>Fuck you Origin!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/origin-never-again.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The waiting game</title>
		<link>http://www.erlendaakre.com/the-waiting-game.html</link>
		<comments>http://www.erlendaakre.com/the-waiting-game.html#comments</comments>
		<pubDate>Fri, 19 Aug 2011 16:50:36 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[battlefield]]></category>
		<category><![CDATA[Battlefield 3]]></category>
		<category><![CDATA[EA]]></category>
		<category><![CDATA[MMO]]></category>
		<category><![CDATA[Origin]]></category>
		<category><![CDATA[Origin Beta]]></category>
		<category><![CDATA[star wars]]></category>
		<category><![CDATA[swtor]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=1541</guid>
		<description><![CDATA[Just 2 more months&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.erlendaakre.com/wp-content/uploads/2011/08/origin.png"><img class="alignnone size-full wp-image-1542" title="origin" src="http://www.erlendaakre.com/wp-content/uploads/2011/08/origin.png" alt="EA Origin" width="420" height="361" /></a></p>
<p>Just 2 more months&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/the-waiting-game.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pentecost programming</title>
		<link>http://www.erlendaakre.com/pentecost-programming.html</link>
		<comments>http://www.erlendaakre.com/pentecost-programming.html#comments</comments>
		<pubDate>Mon, 13 Jun 2011 20:05:36 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[klingon]]></category>
		<category><![CDATA[multiplayer]]></category>
		<category><![CDATA[startrek game]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[trekwar]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=1526</guid>
		<description><![CDATA[For some reason almost everyone in Norway have the day of on &#8220;Pentecost Monday&#8221;. Not that I&#8217;m complaining, I slept until noon, got up to watch Doctor Who and Game of Thrones, but also managed to get lots of work done on my Startrek Game. The game is almost ready for a little pre-alpha test [...]]]></description>
			<content:encoded><![CDATA[<p>For some reason almost everyone in Norway have the day of on &#8220;Pentecost Monday&#8221;. Not that I&#8217;m complaining, I slept until noon, got up to watch Doctor Who and Game of Thrones, but also managed to get lots of work done on <a title="Trekwar" href="http://www.trekwar.org">my Startrek Game</a>.</p>
<p>The game is almost ready for a little pre-alpha test which I&#8217;ve got about 15 volunteers ready for. Today I completed the final feature that will be implemented before this test, and maybe the most important feature of them all.</p>
<p><a href="http://www.erlendaakre.com/wp-content/uploads/2011/06/trekwar_ship_combat.jpg"><img class="alignnone size-medium wp-image-1527" title="trekwar_ship_combat" src="http://www.erlendaakre.com/wp-content/uploads/2011/06/trekwar_ship_combat-300x204.jpg" alt="Trekwar Ship Combat" width="300" height="204" /></a></p>
<p>It was nice to see those stupid fleets that have been moving around my screen finally do something violent. My technologically superior (I cheat) scoutship blew that poor Klingon while taking almost no damage.</p>
<p>Implementing the combat between spaceships took about 5-6 hours of work today (lots of rules for selecting which ships to fight, calculate if they hit, calculate damage, etc..), so now I can start working on the testing scenario that all the testers will be playing through before the big multiplayer test starts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/pentecost-programming.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Toodledo API (simple java version)</title>
		<link>http://www.erlendaakre.com/toodledo-api-simple-java-version.html</link>
		<comments>http://www.erlendaakre.com/toodledo-api-simple-java-version.html#comments</comments>
		<pubDate>Sun, 05 Jun 2011 13:15:09 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[documentbuilderfactory]]></category>
		<category><![CDATA[dom document]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[implementation]]></category>
		<category><![CDATA[inputstreamreader]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java implementation]]></category>
		<category><![CDATA[java object]]></category>
		<category><![CDATA[Object]]></category>
		<category><![CDATA[star trek]]></category>
		<category><![CDATA[star trek game]]></category>
		<category><![CDATA[Toodledo]]></category>
		<category><![CDATA[Toodledo api]]></category>
		<category><![CDATA[trekwar]]></category>
		<category><![CDATA[w3c dom]]></category>
		<category><![CDATA[wiki]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=1449</guid>
		<description><![CDATA[Wanted to get a list of all the bugs for my Star Trek game, that I have registered at Toodledo and have them listed on the Trekwar wiki. Toodledo offers a nicely done API, but there was no java implementation, there were a couple of unofficial ones, but I decided to write my own very [...]]]></description>
			<content:encoded><![CDATA[<p>Wanted to get a list of all the bugs for my <a title="Trekwar" href="http://www.trekwar.org/">Star Trek game</a>, that I have registered at <a title="Toodledo" href="http://www.toodledo.com">Toodledo </a>and have them listed on the Trekwar <a title="Trekwar bugs" href="http://www.trekwar.org/Wiki.jsp?page=Bugs">wiki</a>.</p>
<p>Toodledo offers a nicely done API, but there was no java implementation, there were a couple of unofficial ones, but I decided to write my own very simple basic program for connecting to Toodledo and getting all the tasks as XML, and parsing them into a simple Java object. So if you&#8217;re doing something similar, this program might be a nice place to start. To keep it as short as possible, comments and exception handling is pretty much not there <img src='http://www.erlendaakre.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>download the file: <a href="http://www.erlendaakre.com/wp-content/uploads/2011/06/Toodledoo2html.txt">Toodledo2html.java</a></p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.erlendaakre.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.erlendaakre.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.erlendaakre.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.erlendaakre.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="java" style="font-family:monospace;"><span class="kw1">import</span> <span class="co2">java.io.BufferedReader</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">java.io.IOException</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">java.io.InputStreamReader</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">java.io.StringReader</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">java.net.MalformedURLException</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">java.net.URL</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">java.net.URLConnection</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">java.security.MessageDigest</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">java.security.NoSuchAlgorithmException</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">java.util.ArrayList</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">java.util.logging.Level</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">java.util.logging.Logger</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">javax.xml.parsers.DocumentBuilder</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">javax.xml.parsers.DocumentBuilderFactory</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">javax.xml.parsers.ParserConfigurationException</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.w3c.dom.Document</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.w3c.dom.Element</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.w3c.dom.NodeList</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.xml.sax.InputSource</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.xml.sax.SAXException</span><span class="sy0">;</span>
&nbsp;
<span class="kw1">class</span> Task <span class="br0">&#123;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> id<span class="sy0">;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> title<span class="sy0">;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> modified<span class="sy0">;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> completed<span class="sy0">;</span>
&nbsp;
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> folder<span class="sy0">;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> context<span class="sy0">;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> tag<span class="sy0">;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> status<span class="sy0">;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> priority<span class="sy0">;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> length<span class="sy0">;</span>
    <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> note<span class="sy0">;</span>
<span class="br0">&#125;</span>
&nbsp;
<span class="kw1">public</span> <span class="kw1">class</span> Toodledoo2html <span class="br0">&#123;</span>
    <span class="co1">// TODO you must get the 4 values below from Toodledo</span>
    <span class="kw1">private</span> <span class="kw1">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> appID <span class="sy0">=</span> <span class="st0">&quot;x&quot;</span><span class="sy0">;</span>
    <span class="kw1">private</span> <span class="kw1">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> userID <span class="sy0">=</span> <span class="st0">&quot;x&quot;</span><span class="sy0">;</span>
    <span class="kw1">private</span> <span class="kw1">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> userPW <span class="sy0">=</span> <span class="st0">&quot;x&quot;</span><span class="sy0">;</span>
    <span class="kw1">private</span> <span class="kw1">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> applicationToken <span class="sy0">=</span> <span class="st0">&quot;x&quot;</span><span class="sy0">;</span>
&nbsp;
    <span class="kw1">private</span> <span class="kw1">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> fields <span class="sy0">=</span> <span class="st0">&quot;folder,context,tag,status,priority,length,note&quot;</span><span class="sy0">;</span> <span class="co1">// get these fields when downloading tasks</span>
&nbsp;
    <span class="kw1">private</span> <span class="kw1">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> sessionToken<span class="sy0">;</span>
    <span class="kw1">private</span> <span class="kw1">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> key<span class="sy0">;</span>
&nbsp;
    <span class="kw1">private</span> <span class="kw1">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> toodledoTokenURL <span class="sy0">=</span> <span class="st0">&quot;https://api.toodledo.com/2/account/token.php&quot;</span><span class="sy0">;</span>
    <span class="kw1">private</span> <span class="kw1">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> toodledoGetTaskURL <span class="sy0">=</span> <span class="st0">&quot;https://api.toodledo.com/2/tasks/get.php&quot;</span><span class="sy0">;</span>
&nbsp;
    <span class="kw1">public</span> <span class="kw1">static</span> <span class="kw4">void</span> main<span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a><span class="br0">&#91;</span><span class="br0">&#93;</span> args<span class="br0">&#41;</span> <span class="br0">&#123;</span>
        sessionToken <span class="sy0">=</span> getSessionToken<span class="br0">&#40;</span>md5<span class="br0">&#40;</span>userID<span class="sy0">+</span>applicationToken<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
        key <span class="sy0">=</span> md5<span class="br0">&#40;</span>md5<span class="br0">&#40;</span>userPW<span class="br0">&#41;</span><span class="sy0">+</span>applicationToken<span class="sy0">+</span>sessionToken<span class="br0">&#41;</span><span class="sy0">;</span>
        ArrayList<span class="sy0">&lt;</span>Task<span class="sy0">&gt;</span> tasks <span class="sy0">=</span> getTasks<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="co1">// do whatever to tasks</span>
    <span class="br0">&#125;</span>
&nbsp;
    <span class="kw1">private</span> <span class="kw1">static</span> ArrayList<span class="sy0">&lt;</span>Task<span class="sy0">&gt;</span> getTasks<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
        <span class="kw1">try</span> <span class="br0">&#123;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> data <span class="sy0">=</span> <span class="st0">&quot;?key=&quot;</span> <span class="sy0">+</span> key <span class="sy0">+</span> <span class="st0">&quot;;fields=&quot;</span> <span class="sy0">+</span> fields <span class="sy0">+</span> <span class="st0">&quot;;f=xml&quot;</span><span class="sy0">;</span>
&nbsp;
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">System</span></a>.<span class="me1">out</span>.<span class="me1">println</span><span class="br0">&#40;</span><span class="st0">&quot;Getting tasks: &quot;</span> <span class="sy0">+</span> toodledoGetTaskURL <span class="sy0">+</span> data<span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aurl+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">URL</span></a> url <span class="sy0">=</span> <span class="kw1">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aurl+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">URL</span></a><span class="br0">&#40;</span>toodledoGetTaskURL <span class="sy0">+</span> data<span class="br0">&#41;</span><span class="sy0">;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aurlconnection+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">URLConnection</span></a> connection <span class="sy0">=</span> url.<span class="me1">openConnection</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            connection.<span class="me1">setDoOutput</span><span class="br0">&#40;</span><span class="kw2">true</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Abufferedreader+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">BufferedReader</span></a> in <span class="sy0">=</span> <span class="kw1">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Abufferedreader+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">BufferedReader</span></a><span class="br0">&#40;</span><span class="kw1">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ainputstreamreader+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">InputStreamReader</span></a><span class="br0">&#40;</span>connection.<span class="me1">getInputStream</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            StringBuilder xml <span class="sy0">=</span> <span class="kw1">new</span> StringBuilder<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> line <span class="sy0">=</span> in.<span class="me1">readLine</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <span class="kw1">while</span><span class="br0">&#40;</span> line <span class="sy0">!=</span> <span class="kw2">null</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
                <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">System</span></a>.<span class="me1">out</span>.<span class="me1">println</span><span class="br0">&#40;</span>line<span class="br0">&#41;</span><span class="sy0">;</span>
                xml.<span class="me1">append</span><span class="br0">&#40;</span>line<span class="br0">&#41;</span><span class="sy0">;</span>
                line <span class="sy0">=</span> in.<span class="me1">readLine</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <span class="br0">&#125;</span>
            in.<span class="me1">close</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
            ArrayList<span class="sy0">&lt;</span>Task<span class="sy0">&gt;</span> tasks <span class="sy0">=</span> xmlToTasks<span class="br0">&#40;</span>xml.<span class="me1">toString</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
            <span class="kw1">for</span><span class="br0">&#40;</span>Task t <span class="sy0">:</span> tasks<span class="br0">&#41;</span> <span class="br0">&#123;</span>
                <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">System</span></a>.<span class="me1">out</span>.<span class="me1">println</span><span class="br0">&#40;</span>t.<span class="me1">id</span> <span class="sy0">+</span> <span class="st0">&quot; &quot;</span> <span class="sy0">+</span> t.<span class="me1">title</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <span class="br0">&#125;</span>
            <span class="kw1">return</span> tasks<span class="sy0">;</span>
&nbsp;
        <span class="br0">&#125;</span> <span class="kw1">catch</span> <span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amalformedurlexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">MalformedURLException</span></a> ex<span class="br0">&#41;</span> <span class="br0">&#123;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">System</span></a>.<span class="me1">out</span>.<span class="me1">println</span><span class="br0">&#40;</span>ex<span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="br0">&#125;</span> <span class="kw1">catch</span> <span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aioexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">IOException</span></a> ioe<span class="br0">&#41;</span> <span class="br0">&#123;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">System</span></a>.<span class="me1">out</span>.<span class="me1">println</span><span class="br0">&#40;</span>ioe<span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="br0">&#125;</span>
        <span class="kw1">return</span> <span class="kw2">null</span><span class="sy0">;</span>
    <span class="br0">&#125;</span>
&nbsp;
    <span class="kw1">private</span> <span class="kw1">static</span> ArrayList<span class="sy0">&lt;</span>Task<span class="sy0">&gt;</span> xmlToTasks<span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> xml<span class="br0">&#41;</span> <span class="br0">&#123;</span>
        ArrayList<span class="sy0">&lt;</span>Task<span class="sy0">&gt;</span> taskList <span class="sy0">=</span> <span class="kw1">new</span> ArrayList<span class="sy0">&lt;</span>Task<span class="sy0">&gt;</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
        <span class="kw1">try</span> <span class="br0">&#123;</span>
            DocumentBuilderFactory dbf <span class="sy0">=</span> DocumentBuilderFactory.<span class="me1">newInstance</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            DocumentBuilder db <span class="sy0">=</span> dbf.<span class="me1">newDocumentBuilder</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocument+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Document</span></a> doc <span class="sy0">=</span> db.<span class="me1">parse</span><span class="br0">&#40;</span><span class="kw1">new</span> InputSource<span class="br0">&#40;</span><span class="kw1">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astringreader+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">StringReader</span></a><span class="br0">&#40;</span>xml<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aelement+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Element</span></a> root <span class="sy0">=</span> doc.<span class="me1">getDocumentElement</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
            NodeList tasks <span class="sy0">=</span> root.<span class="me1">getElementsByTagName</span><span class="br0">&#40;</span><span class="st0">&quot;task&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <span class="kw1">for</span> <span class="br0">&#40;</span><span class="kw4">int</span> i <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> i <span class="sy0">&lt;</span> tasks.<span class="me1">getLength</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span> i<span class="sy0">++</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
                <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aelement+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Element</span></a> task <span class="sy0">=</span> <span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aelement+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Element</span></a><span class="br0">&#41;</span> tasks.<span class="me1">item</span><span class="br0">&#40;</span>i<span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
                Task t <span class="sy0">=</span> <span class="kw1">new</span> Task<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                t.<span class="me1">id</span> <span class="sy0">=</span> getDomTextValue<span class="br0">&#40;</span>task, <span class="st0">&quot;id&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                t.<span class="me1">title</span> <span class="sy0">=</span> getDomTextValue<span class="br0">&#40;</span>task, <span class="st0">&quot;title&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                t.<span class="me1">modified</span> <span class="sy0">=</span> getDomTextValue<span class="br0">&#40;</span>task, <span class="st0">&quot;modified&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                t.<span class="me1">completed</span> <span class="sy0">=</span> getDomTextValue<span class="br0">&#40;</span>task, <span class="st0">&quot;completed&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
                t.<span class="me1">folder</span> <span class="sy0">=</span> getDomTextValue<span class="br0">&#40;</span>task, <span class="st0">&quot;folder&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                t.<span class="me1">context</span> <span class="sy0">=</span> getDomTextValue<span class="br0">&#40;</span>task, <span class="st0">&quot;context&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                t.<span class="me1">tag</span> <span class="sy0">=</span> getDomTextValue<span class="br0">&#40;</span>task, <span class="st0">&quot;tag&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                t.<span class="me1">status</span> <span class="sy0">=</span> getDomTextValue<span class="br0">&#40;</span>task, <span class="st0">&quot;status&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                t.<span class="me1">priority</span> <span class="sy0">=</span> getDomTextValue<span class="br0">&#40;</span>task, <span class="st0">&quot;priority&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                t.<span class="me1">length</span> <span class="sy0">=</span> getDomTextValue<span class="br0">&#40;</span>task, <span class="st0">&quot;length&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                t.<span class="me1">note</span> <span class="sy0">=</span> getDomTextValue<span class="br0">&#40;</span>task, <span class="st0">&quot;note&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                taskList.<span class="me1">add</span><span class="br0">&#40;</span>t<span class="br0">&#41;</span><span class="sy0">;</span>
            <span class="br0">&#125;</span>
&nbsp;
        <span class="br0">&#125;</span> <span class="kw1">catch</span> <span class="br0">&#40;</span>ParserConfigurationException ex<span class="br0">&#41;</span> <span class="br0">&#123;</span>
            Logger.<span class="me1">getLogger</span><span class="br0">&#40;</span>Toodledoo2html.<span class="kw1">class</span>.<span class="me1">getName</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>.<span class="me1">log</span><span class="br0">&#40;</span>Level.<span class="me1">SEVERE</span>, <span class="kw2">null</span>, ex<span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="br0">&#125;</span>
        <span class="kw1">catch</span><span class="br0">&#40;</span>SAXException se<span class="br0">&#41;</span> <span class="br0">&#123;</span>
&nbsp;
        <span class="br0">&#125;</span>
        <span class="kw1">catch</span><span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aioexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">IOException</span></a> ioe<span class="br0">&#41;</span> <span class="br0">&#123;</span>
&nbsp;
        <span class="br0">&#125;</span>
&nbsp;
        <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">System</span></a>.<span class="me1">out</span>.<span class="me1">println</span><span class="br0">&#40;</span><span class="st0">&quot;xmlToTasks got &quot;</span> <span class="sy0">+</span> taskList.<span class="me1">size</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">+</span> <span class="st0">&quot; tasks&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="kw1">return</span> taskList<span class="sy0">;</span>
    <span class="br0">&#125;</span>
&nbsp;
    <span class="kw1">private</span> <span class="kw1">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> getSessionToken<span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> signature<span class="br0">&#41;</span> <span class="br0">&#123;</span>
        <span class="kw1">try</span> <span class="br0">&#123;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> data <span class="sy0">=</span> <span class="st0">&quot;?userid=&quot;</span> <span class="sy0">+</span> userID <span class="sy0">+</span> <span class="st0">&quot;;appid=&quot;</span> <span class="sy0">+</span> appID <span class="sy0">+</span> <span class="st0">&quot;;sig=&quot;</span> <span class="sy0">+</span> signature <span class="sy0">+</span> <span class="st0">&quot;;f=xml&quot;</span><span class="sy0">;</span>
&nbsp;
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">System</span></a>.<span class="me1">out</span>.<span class="me1">println</span><span class="br0">&#40;</span><span class="st0">&quot;Getting session token: &quot;</span> <span class="sy0">+</span> toodledoTokenURL<span class="sy0">+</span>data<span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aurl+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">URL</span></a> url <span class="sy0">=</span> <span class="kw1">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aurl+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">URL</span></a><span class="br0">&#40;</span>toodledoTokenURL <span class="sy0">+</span> data<span class="br0">&#41;</span><span class="sy0">;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aurlconnection+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">URLConnection</span></a> connection <span class="sy0">=</span> url.<span class="me1">openConnection</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            connection.<span class="me1">setDoOutput</span><span class="br0">&#40;</span><span class="kw2">true</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Abufferedreader+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">BufferedReader</span></a> in <span class="sy0">=</span> <span class="kw1">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Abufferedreader+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">BufferedReader</span></a><span class="br0">&#40;</span><span class="kw1">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ainputstreamreader+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">InputStreamReader</span></a><span class="br0">&#40;</span>connection.<span class="me1">getInputStream</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> xml <span class="sy0">=</span> in.<span class="me1">readLine</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            in.<span class="me1">close</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> token <span class="sy0">=</span> xml.<span class="me1">substring</span><span class="br0">&#40;</span>xml.<span class="me1">indexOf</span><span class="br0">&#40;</span><span class="st0">&quot;&lt;token&gt;&quot;</span><span class="br0">&#41;</span><span class="sy0">+</span><span class="nu0">7</span>, xml.<span class="me1">indexOf</span><span class="br0">&#40;</span><span class="st0">&quot;&lt;/token&gt;&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <span class="kw1">return</span> token<span class="sy0">;</span>
        <span class="br0">&#125;</span> <span class="kw1">catch</span> <span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amalformedurlexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">MalformedURLException</span></a> ex<span class="br0">&#41;</span> <span class="br0">&#123;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">System</span></a>.<span class="me1">out</span>.<span class="me1">println</span><span class="br0">&#40;</span>ex<span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="br0">&#125;</span>
        <span class="kw1">catch</span><span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aioexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">IOException</span></a> ioe<span class="br0">&#41;</span> <span class="br0">&#123;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">System</span></a>.<span class="me1">out</span>.<span class="me1">println</span><span class="br0">&#40;</span>ioe<span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="br0">&#125;</span>
        <span class="kw1">return</span> <span class="st0">&quot;&quot;</span><span class="sy0">;</span>
    <span class="br0">&#125;</span>
&nbsp;
    <span class="kw1">private</span> <span class="kw1">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> md5<span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> input<span class="br0">&#41;</span> <span class="br0">&#123;</span>
        <span class="kw1">try</span> <span class="br0">&#123;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amessagedigest+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">MessageDigest</span></a> md <span class="sy0">=</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Amessagedigest+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">MessageDigest</span></a>.<span class="me1">getInstance</span><span class="br0">&#40;</span><span class="st0">&quot;MD5&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            md.<span class="me1">update</span><span class="br0">&#40;</span>input.<span class="me1">getBytes</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
            <span class="kw4">byte</span> byteData<span class="br0">&#91;</span><span class="br0">&#93;</span> <span class="sy0">=</span> md.<span class="me1">digest</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            StringBuilder sb <span class="sy0">=</span> <span class="kw1">new</span> StringBuilder<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <span class="kw1">for</span> <span class="br0">&#40;</span><span class="kw4">int</span> i <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span> i <span class="sy0">&lt;</span> byteData.<span class="me1">length</span><span class="sy0">;</span> i<span class="sy0">++</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
                sb.<span class="me1">append</span><span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Ainteger+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Integer</span></a>.<span class="me1">toString</span><span class="br0">&#40;</span><span class="br0">&#40;</span>byteData<span class="br0">&#91;</span>i<span class="br0">&#93;</span> <span class="sy0">&amp;</span> 0xff<span class="br0">&#41;</span> <span class="sy0">+</span> 0x100, 16<span class="br0">&#41;</span>.<span class="me1">substring</span><span class="br0">&#40;</span>1<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <span class="br0">&#125;</span>
            <span class="kw1">return</span> sb.<span class="me1">toString</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
        <span class="br0">&#125;</span> <span class="kw1">catch</span> <span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Anosuchalgorithmexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">NoSuchAlgorithmException</span></a> nse<span class="br0">&#41;</span> <span class="br0">&#123;</span>
            <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">System</span></a>.<span class="me1">err</span>.<span class="me1">println</span><span class="br0">&#40;</span><span class="st0">&quot;ERROR. MD5 ALGORITHM NOT FOUND&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
            <span class="kw1">return</span> <span class="st0">&quot;&quot;</span><span class="sy0">;</span>
        <span class="br0">&#125;</span>
    <span class="br0">&#125;</span>
&nbsp;
    <span class="kw1">public</span> <span class="kw1">static</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> getDomTextValue<span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aelement+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Element</span></a> element, <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">String</span></a> tag<span class="br0">&#41;</span> <span class="br0">&#123;</span>
        <span class="kw1">if</span> <span class="br0">&#40;</span>element <span class="sy0">!=</span> <span class="kw2">null</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
            NodeList nl <span class="sy0">=</span> element.<span class="me1">getElementsByTagName</span><span class="br0">&#40;</span>tag<span class="br0">&#41;</span><span class="sy0">;</span>
            <span class="kw1">if</span> <span class="br0">&#40;</span>nl <span class="sy0">!=</span> <span class="kw2">null</span> <span class="sy0">&amp;&amp;</span> nl.<span class="me1">getLength</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">&gt;</span> 0<span class="br0">&#41;</span> <span class="br0">&#123;</span>
                <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aelement+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Element</span></a> el <span class="sy0">=</span> <span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aelement+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span class="kw3">Element</span></a><span class="br0">&#41;</span> nl.<span class="me1">item</span><span class="br0">&#40;</span>0<span class="br0">&#41;</span><span class="sy0">;</span>
                <span class="kw1">if</span><span class="br0">&#40;</span>el <span class="sy0">!=</span> <span class="kw2">null</span> <span class="sy0">&amp;&amp;</span> el.<span class="me1">getFirstChild</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">!=</span> <span class="kw2">null</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
                    <span class="kw1">return</span> el.<span class="me1">getFirstChild</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">getNodeValue</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
                <span class="br0">&#125;</span>
            <span class="br0">&#125;</span>
        <span class="br0">&#125;</span>
        <span class="kw1">return</span> <span class="st0">&quot;&quot;</span><span class="sy0">;</span>
    <span class="br0">&#125;</span>
<span class="br0">&#125;</span></pre></div></div>
<p><strong>Note:</strong> This program was made to run once per hour.. running this program many times in a row will cause Toodledo to ban you for about 1 hour. When that happens there will be a IndexOutOfBoundsException -7 from the method that gets the session token. This can be fixed by saving the token you get between requests, and not asking for a new one each time (which is what causes the short ban).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/toodledo-api-simple-java-version.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looking forward to E3 2011</title>
		<link>http://www.erlendaakre.com/looking-forward-to-e3-2011.html</link>
		<comments>http://www.erlendaakre.com/looking-forward-to-e3-2011.html#comments</comments>
		<pubDate>Tue, 31 May 2011 16:54:48 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[2k games]]></category>
		<category><![CDATA[bad company]]></category>
		<category><![CDATA[battlefield]]></category>
		<category><![CDATA[bethesda]]></category>
		<category><![CDATA[combat system]]></category>
		<category><![CDATA[Dead Island]]></category>
		<category><![CDATA[deep silver]]></category>
		<category><![CDATA[e3]]></category>
		<category><![CDATA[elder scrolls v]]></category>
		<category><![CDATA[electronic arts]]></category>
		<category><![CDATA[fps]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[gaming]]></category>
		<category><![CDATA[melee combat]]></category>
		<category><![CDATA[oblivion]]></category>
		<category><![CDATA[RPG]]></category>
		<category><![CDATA[Skyrim]]></category>
		<category><![CDATA[star wars]]></category>
		<category><![CDATA[star wars the old republic]]></category>
		<category><![CDATA[swtor]]></category>
		<category><![CDATA[x-com]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=1445</guid>
		<description><![CDATA[It&#8217;s almost time for E3, where the Gaming studios release lots of new info, screenshots and videos from the games they are working on. This year I only got a few games I&#8217;m following: X-Com (2K Games/Take-Two): Huge fan of the original X-Com games, but so far I&#8217;ve been unimpressed by the video (the black [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s almost time for E3, where the Gaming studios release lots of new info, screenshots and videos from the games they are working on.</p>
<p><a href="http://www.erlendaakre.com/wp-content/uploads/2011/05/e3.jpg"><img class="alignnone size-full wp-image-1446" title="e3" src="http://www.erlendaakre.com/wp-content/uploads/2011/05/e3.jpg" alt="" width="450" height="150" /></a></p>
<p>This year I only got a few games I&#8217;m following:</p>
<p><strong>X-Com</strong> (2K Games/Take-Two):<br />
Huge fan of the original X-Com games, but so far I&#8217;ve been unimpressed by the video (the black blob being chased around). But hopefully some more interesting gameplay footage will be released.</p>
<p><strong>Battlefield 3</strong> (Electronic Arts):<br />
Not really a huge FPS gamer, but I enjoyed Bad Company 2 alot, and Battlefield 3 looks awesome.</p>
<p><strong>The Elder Scrolls V: Skyrim</strong> (Bethesda):<br />
Never finished Oblivion (was not a huge fan of the combat system), but if time permits I might play Skyrim.</p>
<p><strong>Dead Island</strong> (Deep Silver):<br />
Got noticed for their really awesome trailer, but not so sure about the game itself. Seems like Left 4 Dead with minor RPG elements added. And it seems to focus very much on melee combat, and afraid it will be to much of a hack and slash game (not a fan).</p>
<p><strong>Star Wars: The Old Republic</strong> (Electronic Arts):<br />
Saved the best piece for last.. I hope they will provide LOTS of new information, and gameplay from the latest builds. This is the game I&#8217;m looking the most forward to as of 2011, and I&#8217;m definitely going to play it when it&#8217;s released.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/looking-forward-to-e3-2011.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google calendar update</title>
		<link>http://www.erlendaakre.com/google-calendar-update.html</link>
		<comments>http://www.erlendaakre.com/google-calendar-update.html#comments</comments>
		<pubDate>Sun, 29 May 2011 14:30:03 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Calendar]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[color coding]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google calendar]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=1442</guid>
		<description><![CDATA[Google Calendar got a really REALLY nice feature last week (I think): Now you can set a color for each event (individual or recurring). Previously you had to have several calendars to do color coding, and that made it awkward for sharing. Yay!]]></description>
			<content:encoded><![CDATA[<p>Google Calendar got a really REALLY nice feature last week (I think):</p>
<p><a href="http://www.erlendaakre.com/wp-content/uploads/2011/05/google_calendar_event_color.jpg"><img class="alignnone size-full wp-image-1443" title="google_calendar_event_color" src="http://www.erlendaakre.com/wp-content/uploads/2011/05/google_calendar_event_color.jpg" alt="Google calendar Even Color" width="305" height="33" /></a></p>
<p>Now you can set a color for each event (individual or recurring). Previously you had to have several calendars to do color coding, and that made it awkward for sharing.</p>
<p>Yay!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/google-calendar-update.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Game Review: Majesty 2</title>
		<link>http://www.erlendaakre.com/game-review-majesty-2.html</link>
		<comments>http://www.erlendaakre.com/game-review-majesty-2.html#comments</comments>
		<pubDate>Fri, 13 May 2011 20:47:33 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[blacksmith]]></category>
		<category><![CDATA[game design]]></category>
		<category><![CDATA[game review]]></category>
		<category><![CDATA[gaming]]></category>
		<category><![CDATA[kingdom]]></category>
		<category><![CDATA[Majesty]]></category>
		<category><![CDATA[majesty 2]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[RPG]]></category>
		<category><![CDATA[rts]]></category>
		<category><![CDATA[rts game]]></category>
		<category><![CDATA[Sean Connery]]></category>
		<category><![CDATA[sewers]]></category>
		<category><![CDATA[skeletons]]></category>
		<category><![CDATA[Starcraft]]></category>
		<category><![CDATA[steam]]></category>
		<category><![CDATA[strategy]]></category>
		<category><![CDATA[Trebek]]></category>
		<category><![CDATA[Warcraft]]></category>
		<category><![CDATA[zerg]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=1388</guid>
		<description><![CDATA[I recently got Majesyt 2 on steam. And to sum it up in 1 sentence: &#8220;Majesty 2 sucks!&#8221; Majesty 2 is a RTS game which calls itself a &#8220;kingdom simulator&#8221; with RPG elements.  You build structures, but never control the units directly. The units live their own lives, level up, buy gear at the blacksmith [...]]]></description>
			<content:encoded><![CDATA[<p>I recently got Majesyt 2 on steam. And to sum it up in 1 sentence: &#8220;Majesty 2 sucks!&#8221;</p>
<p>Majesty 2 is a RTS game which calls itself a &#8220;kingdom simulator&#8221; with RPG elements.  You build structures, but never control the units directly. The units live their own lives, level up, buy gear at the blacksmith and generally just go around like little tiny virtual idiots.</p>
<p>The graphics are charming and gives the game a nice fantasy atmosphere, building is fun, researching techs are pleasant and the RPG features of the heroes you recruit seems really good. Also the concept of not controlling units directly but by placing out flags (putting bounties on enemy structures or creatures, or putting up exploration flags) does seem pretty interesting.</p>
<p>However there are three major issues that are just bad game design and ruins what could have been a pretty enjoyable game:</p>
<p><a href="http://www.erlendaakre.com/wp-content/uploads/2011/05/majesty2.jpg"><img class="alignnone size-full wp-image-1389" title="majesty2" src="http://www.erlendaakre.com/wp-content/uploads/2011/05/majesty2.jpg" alt="Majesty 2" width="450" height="282" /></a></p>
<p><strong>1) Sewer entrace spawn points<br />
</strong>The first thing I noticed that I knew instantly was going to grid my gears for the entire game was one or two spawn points that always pop up in your town. These <strong>frequently </strong>release various rats that will kill your peasants, damage your buildings and just be a constant source of annoyance the entire mission, for ALL missions. Don&#8217;t get me wrong, sewers is a classic RPG setting, and if done correctly it could have been very entertaining, but it ends up being a steady stream of annoyance without any reward or fun. Imagine 3 zerg popping up in your base in Starcraft EVERY fucking minute, worst idea ever.</p>
<p><strong>2) AI</strong><br />
Another annoying factor is the AI. It&#8217;s piss poor&#8230; You have ranged/melee dps and a healer class, but watching them trying to do anything is like watching the worst PUG of noobs trying to down a boss in WOW.. It&#8217;s just ends up being a painful display of ineptitude. And the cloth users seems to have a particularly strong death wish, and constantly go in for some melee dps.<br />
The enemy AI is even worse than your own heroes. I saw 3 skeletons chase a wounded ranger across the map while their home was being destroyed by a warrior.</p>
<p><strong>3) Borders + combat</strong><br />
Let&#8217;s get one thing straight, you will not be able to have any clearly defined zones of combat, fronts or build a good defense for your town like you can in for example Starcraft, Warcraft, Age of Empires or basically any RTS game. The enemies will be many, they will be spread out all over the map, new enemies will spawn pretty much constantly even when their spawn points are taken out. The enemies are stupid as hell and just consists of groups of enemies that attack in waves without any form of strategy.</p>
<p><strong>4) Voice acting</strong><br />
Not as big a problem as the 3 above, but it&#8217;s still a bit funny <img src='http://www.erlendaakre.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
It seems they have hired a single voice actor to do the game, he will tell you your quest objectives and talk during all cut scenes, intros, etc.. Now this would not be a problem, except they got a goddamn Sean Connery sound-alike who does an excessive Scottish accent. He sounds like &#8220;Sean Connery&#8221; from the <a title="Celebrity Jeopardy" href="http://en.wikipedia.org/wiki/Celebrity_Jeopardy!_(Saturday_Night_Live)">Saturday Night Live sketch</a>, and it get&#8217;s really hard to take anything he says seriously.. I keep expecting him to say something like &#8220;The minotaurs has destroyed the village, Suck it Trebek!&#8221;</p>
<p><strong>Rating: 3.7 / 10</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/game-review-majesty-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bank has stupid icons</title>
		<link>http://www.erlendaakre.com/bank-has-stupid-icons.html</link>
		<comments>http://www.erlendaakre.com/bank-has-stupid-icons.html#comments</comments>
		<pubDate>Sat, 16 Apr 2011 16:52:03 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[account details]]></category>
		<category><![CDATA[banks]]></category>
		<category><![CDATA[brain]]></category>
		<category><![CDATA[bruce campbell]]></category>
		<category><![CDATA[Data]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Helgeland]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[john carmack]]></category>
		<category><![CDATA[payment history]]></category>
		<category><![CDATA[retarded]]></category>
		<category><![CDATA[skandiabanken]]></category>
		<category><![CDATA[Sparebank]]></category>
		<category><![CDATA[star trek]]></category>
		<category><![CDATA[transfer money]]></category>
		<category><![CDATA[Trek]]></category>
		<category><![CDATA[university]]></category>
		<category><![CDATA[user interface design]]></category>
		<category><![CDATA[web interface]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=1364</guid>
		<description><![CDATA[I use two banks, one of them(Helgeland Sparebank) has a really retarded web interface, these are the icons you click to do stuff™ with your account: If it isn&#8217;t obvious, the icons from left to right are: &#8220;view last transfers&#8221; &#8220;make payment&#8221; &#8220;transfer money&#8221; &#8220;view scheduled payments&#8221; &#8220;view payment history&#8221; &#8220;view account details&#8221; The other [...]]]></description>
			<content:encoded><![CDATA[<p>I use two banks, one of them(Helgeland Sparebank) has a really retarded web interface, these are the icons you click to do stuff™ with your account:</p>
<p><a href="http://www.erlendaakre.com/wp-content/uploads/2011/04/hsb_stupid_icons.jpg"><img class="alignnone size-full wp-image-1365" title="hsb_stupid_icons" src="http://www.erlendaakre.com/wp-content/uploads/2011/04/hsb_stupid_icons.jpg" alt="" width="131" height="66" /></a></p>
<p>If it isn&#8217;t obvious, the icons from left to right are:<br />
&#8220;view last transfers&#8221;<br />
&#8220;make payment&#8221;<br />
&#8220;transfer money&#8221;<br />
&#8220;view scheduled payments&#8221;<br />
&#8220;view payment history&#8221;<br />
&#8220;view account details&#8221;</p>
<p>The other bank (Skandiabanken) however had it&#8217;s web interface designed by which I can only assume was a team of Bruce Campbell, Data from Star Trek and John Carmack (It&#8217;s that awesome):</p>
<p><a href="http://www.erlendaakre.com/wp-content/uploads/2011/04/skandiabanken.jpg"><img class="alignnone size-full wp-image-1366" title="skandiabanken" src="http://www.erlendaakre.com/wp-content/uploads/2011/04/skandiabanken.jpg" alt="" width="361" height="168" /></a></p>
<p>Icons that actually makes sense, AND text.. It makes the part of my brain which remembers something from user interface design classes back at university all warm and fuzzy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/bank-has-stupid-icons.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SDCC ticket registration</title>
		<link>http://www.erlendaakre.com/sdcc-ticket-registration.html</link>
		<comments>http://www.erlendaakre.com/sdcc-ticket-registration.html#comments</comments>
		<pubDate>Mon, 22 Nov 2010 17:11:42 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[brain surgery]]></category>
		<category><![CDATA[comic con]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[load balancing]]></category>
		<category><![CDATA[moron]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[registration software]]></category>
		<category><![CDATA[retarded]]></category>
		<category><![CDATA[sdcc]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[virtual server]]></category>
		<category><![CDATA[web application]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=1125</guid>
		<description><![CDATA[Again, I tried to get my tickets for SDCC, but the server was taken down after 2 hours of fail (much like on November 1st.) This is because the people responsible for this are a bunch of morons who are unable to handle a simple problem. The problem: you have tens of thousands of people [...]]]></description>
			<content:encoded><![CDATA[<p>Again, I tried to get my tickets for SDCC, but the server was taken down after 2 hours of fail (much like on November 1st.)<br />
This is because the people responsible for this are a bunch of morons who are unable to handle a simple problem.</p>
<p><a href="http://www.erlendaakre.com/wp-content/uploads/2010/11/comicon_fail.png"><img class="alignnone size-full wp-image-1127" title="comicon_fail" src="http://www.erlendaakre.com/wp-content/uploads/2010/11/comicon_fail.png" alt="" width="193" height="273" /></a></p>
<p><strong>The problem</strong>:<br />
you have tens of thousands of people trying to use a web server at a single moment.</p>
<p>This is not really a new problem, and unless your web application is utterly retarded, getting a webserver to handle 5000+ requests per second is no problem even on a single quad-core server. Getting a virtual server (cloud computing) that could take tons more would be dirt cheap since it would only be needed for a short while (1 day).</p>
<p><strong>The solution:<br />
</strong>It would be relatively simple to fix this, Just open the site to registrations. Let users enter Name and email address. Then send them a  confirmation. Don&#8217;t do any of the &#8220;heavy&#8221; back-end stuff like charging credit cards which can take some time. Then when everyone have registered, just e-mail them (in the order in which they registered) a link to a page where they can pay for the ticket and enter all the details (address, etc..). That way the initial flood of requests can be dealt with very efficiently and the stuff that takes longer time can be spread out over several days/weeks.</p>
<p>Now maybe the existing registration software they chose this time does not support this, but jeez.. Letting people enter their info and connect this to a payment is not fraking brain surgery. Any programmer could do this in 1-3 days without a problem.</p>
<p>Or if you insist upon using a heavier system, at least use some sort of load balancing..  Let the main server accept connections, organize them in a queue and then gradually transfer the users to the server that actually handles registrations. I&#8217;m completely baffled that a huge event like SDCC is unable to find someone who is able to do such a simple task in this day and age.</p>
<p><strong>The conclusion:</strong><br />
Someone stupid took on the job of handling the registrations (epicreg.com) when they clearly had no way of handling that many requests, and there is no excuse cause they know what happened on November 1st. What does it all mean in the end, nothing. What are we going to do? boycott Comic Con? yeah right&#8230; I&#8217;m pretty sure SDCC could get away with literally crapping on the visitors, without having problems selling all the tickets.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/sdcc-ticket-registration.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

