<?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; html</title>
	<atom:link href="http://www.erlendaakre.com/tag/html/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>Google maps API</title>
		<link>http://www.erlendaakre.com/google-maps-api.html</link>
		<comments>http://www.erlendaakre.com/google-maps-api.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 20:17:43 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[motorcycle]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[East Sussex]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[google maps api]]></category>
		<category><![CDATA[Greenlanes]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[May]]></category>
		<category><![CDATA[mc]]></category>
		<category><![CDATA[Offroad]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[Sven]]></category>
		<category><![CDATA[track]]></category>
		<category><![CDATA[trondheim]]></category>
		<category><![CDATA[Trondhiem]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=890</guid>
		<description><![CDATA[I was checking out Sven&#8217;s page, and found his awesome map of trails (&#8220;greenlanes&#8221;) in his neighborhood. I have my own map, but this is on my google maps, so not really very user friendly or manageable, so today I decided to try and use the google maps API. I&#8217;m pretty pleased with the result, [...]]]></description>
			<content:encoded><![CDATA[<p>I was checking out Sven&#8217;s page, and found his <a title="Greenlanes in East Sussex" href="http://www.qwerf.com/?p=598">awesome map</a> of trails (&#8220;greenlanes&#8221;) in his neighborhood.</p>
<p>I have my own map, but this is on my google maps, so not really very user friendly or manageable, so today I decided to try and use the <a title="Google maps API" href="http://code.google.com/apis/maps/">google maps API</a>.</p>
<p><a href="http://trondheim-offroad-mc.info"><img class="alignnone size-full wp-image-891" title="trondheimmc" src="http://www.erlendaakre.com/wp-content/uploads/2010/02/trondheimmc.jpg" alt="" width="400" height="270" /></a></p>
<p>I&#8217;m pretty pleased with the <a title="Trondheim Offroad MC" href="http://trondheim-offroad-mc.info">result</a>, a single .html file with almost only javascript. Now I can just export the paths and add a single line in the .html file and the new track will be added to the maps and menu. I&#8217;m going to add sorting of the tracks by difficulty, length and maybe based on their distance from Trondhiem sometimes later.</p>
<p>The page is very easy to use, and if you want to make a list of tracks (or any form of lines), just check out the page source code which has 3 simple instructions on how to get it working</p>
<p>I probably won&#8217;t be adding many tracks until around the start of May.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/google-maps-api.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dvd collection</title>
		<link>http://www.erlendaakre.com/dvd-collection.html</link>
		<comments>http://www.erlendaakre.com/dvd-collection.html#comments</comments>
		<pubDate>Sat, 27 Sep 2008 14:52:49 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Movies and TV]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[extreme movie manager]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[imdb]]></category>
		<category><![CDATA[movie]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tv]]></category>
		<category><![CDATA[webpage]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=373</guid>
		<description><![CDATA[I tried out a couple of programs for managing your DVD collection lately. The choice fell on eXtreme Movie Manager. Adding movies and tv shows by importing from IMDB worked nicely. I really like the tv series part, where I can list all the tv series I have, order by rating, etc.. You can also [...]]]></description>
			<content:encoded><![CDATA[<p>I tried out a couple of programs for managing your DVD collection lately. The choice fell on <a title="Extreme Movie Manager" href="http://www.binaryworks.it/extrememoviemanager/">eXtreme Movie Manager</a>. Adding movies and tv shows by importing from IMDB worked nicely.</p>
<p><a href="http://www.erlendaakre.com/wp-content/uploads/2008/09/emm.jpg"><img class="alignnone size-medium wp-image-374" title="emm" src="http://www.erlendaakre.com/wp-content/uploads/2008/09/emm-300x187.jpg" alt="Extreme Movie Manager" width="300" height="187" /></a></p>
<p>I really like the tv series part, where I can list all the tv series I have, order by rating, etc..</p>
<p>You can also export your collection to a html page <a title="My movies" href="http://www.erlendaakre.com/movies/">like this</a></p>
<p>or to a simple <a title="List of movies" href="http://www.erlendaakre.com/movies/list.html">list</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/dvd-collection.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.2.2</title>
		<link>http://www.erlendaakre.com/wordpress-222.html</link>
		<comments>http://www.erlendaakre.com/wordpress-222.html#comments</comments>
		<pubDate>Sat, 25 Aug 2007 22:28:47 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[fantastico]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google analytics]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[nextgen]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=163</guid>
		<description><![CDATA[Just updated the wordpress installation on my site to 2.2.2, it was a breeze with fantastico/cpanel.. only had to re-insert the google analytics code to the footer afterwards. Also installed the nextgen gallery plugin, which I&#8217;m so far pretty pleased with (you can see the result by choosing gallery in the right menu). I had [...]]]></description>
			<content:encoded><![CDATA[<p>Just updated the wordpress installation on my site to 2.2.2, it was a breeze with fantastico/cpanel.. only had to re-insert the google analytics code to the footer afterwards.</p>
<p>Also installed the <a href="http://alexrabe.boelinger.com/?page_id=80" title="Netgen wordpress gallery plugin">nextgen gallery plugin</a>, which I&#8217;m so far pretty pleased with (you can see the result by choosing gallery in the right menu).</p>
<p>I had the same &#8220;problem&#8221; as my friend Håvard.  The norwegian characters æ ø å got messed up with the update, but only had them in 1 single post, so not much to update <img src='http://www.erlendaakre.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  he was much worse having all posts in Norwegian <img src='http://www.erlendaakre.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/wordpress-222.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>using a large JLabel in a JScrollPane</title>
		<link>http://www.erlendaakre.com/using-a-large-jlabel-in-a-jscrollpane.html</link>
		<comments>http://www.erlendaakre.com/using-a-large-jlabel-in-a-jscrollpane.html#comments</comments>
		<pubDate>Thu, 23 Aug 2007 17:29:09 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[gridlayout]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jlabel]]></category>
		<category><![CDATA[jpanel]]></category>
		<category><![CDATA[jscrollpane]]></category>
		<category><![CDATA[jtable]]></category>
		<category><![CDATA[screenshot]]></category>
		<category><![CDATA[scrollbar]]></category>
		<category><![CDATA[sms]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[swing]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=156</guid>
		<description><![CDATA[I was updating the SendSMS program I wrote, and instead of a JTable I wanted the list of messages sent to display in a better looking and more intuitive way. I decided to just use a JLabel and use html for displaying the sent messages: I had the JLabel in a JPanel with GridLayout(1,1), and [...]]]></description>
			<content:encoded><![CDATA[<p>I was updating the <a target="_blank" title="SendSMS" href="http://www.aakretech.com/software_sendsms.jsp">SendSMS program</a> I wrote, and instead of a JTable I wanted the list of messages sent to display in a better looking and more intuitive way. I decided to just use a JLabel and use html for displaying the sent messages:</p>
<p><img alt="JLabel using html in JScrollPane" id="image155" src="http://www.erlendaakre.com/wp-content/uploads/2007/08/jlabelhtml.png" /></p>
<p>I had the JLabel in a JPanel with GridLayout(1,1), and the Panel inside the JScrollPane. The JScrollPane always have vertical but never horizontal scrollbars.<br />
The following problem arose: When the message got to long, it would not wrap, and end of message would disappear to the right.<br />
The solution is simple: set the Width of the JPanel with the label to be roughly the size of the application window..</p>
<p>That did the trick, now however the scrollbar never updates when the Label gets very tall.</p>
<p>Apparently you cant just set just width for the Panel, you also have to set height.. again the solution is simple, set the height of the panel to be the height of the JLabel.</p>
<p>However since the JLabel is inside the JScrollPane (at least, I think that is the cause) the getSize and getPrefferedSize will return only the visible height of the JLabel. It took some playing around with but finally got it working by using the getMaximumSize.. NOTE: dont use the width from getMaximumSize() cause it is ridiculously large <img src='http://www.erlendaakre.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>the code:</p>
<p>historyPanel.setPreferredSize(new Dimension(historyScrollPane.getViewport().getSize().width, historyLabel.getMaximumSize().height));</p>
<p>Now I just have to find out if that way of getting the components height works the same across different platforms <img src='http://www.erlendaakre.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/using-a-large-jlabel-in-a-jscrollpane.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Current events</title>
		<link>http://www.erlendaakre.com/current-events-2.html</link>
		<comments>http://www.erlendaakre.com/current-events-2.html#comments</comments>
		<pubDate>Sun, 25 Mar 2007 21:45:26 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[aakretech]]></category>
		<category><![CDATA[animal]]></category>
		<category><![CDATA[bus]]></category>
		<category><![CDATA[cocoon]]></category>
		<category><![CDATA[command & conquer]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[ferret]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[moving]]></category>
		<category><![CDATA[nemi]]></category>
		<category><![CDATA[scooter]]></category>
		<category><![CDATA[silent hunter 4]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[ufo afterlight]]></category>
		<category><![CDATA[webpage]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=117</guid>
		<description><![CDATA[Haven&#8217;t posted much lately.. Things have been pretty busy with work and the moving (only 6 days left, yaaaaay!), I&#8217;ve had almost no time for UFO Afterlight or Silent Hunter 4 the last 2 weeks, and I don&#8217;t expect I will have much time for C&#038;C 3 when it is released next week. I took [...]]]></description>
			<content:encoded><![CDATA[<p>Haven&#8217;t posted much lately.. Things have been pretty busy with work and the moving (only 6 days left, yaaaaay!), I&#8217;ve had almost no time for UFO Afterlight or Silent Hunter 4 the last 2 weeks, and I don&#8217;t expect I will have much time for C&#038;C 3 when it is released next week.</p>
<p>I took out my scooter today, drove around a bit.. took like half an hour to start the bastard after it being in storage for 5 months this winter. I&#8217;m looking forward to not taking the bus to work tomorrow <img src='http://www.erlendaakre.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The other thing that has kept me busy lately is that I have been making a new webpage (that combines aakretech.no, .com, .net and .org into a single page). Not quite done yet but most of the pages are in place. Removing the cocoon webapp for aakretech.org from my Tomcat server reduced the server&#8217;s startup time from 15 seconds to 0.7 seconds.</p>
<p>Not much more to say really.. Nemi got her new cage, but we wont get it for her until we move next Sunday/Monday<br />
<a title="ferret nation" class="imagelink" onclick="doPopup(116);return false;" href="http://www.erlendaakre.com/wp-content/uploads/2007/03/ferretnation2level-1.jpg"><img width="93" height="96" alt="ferret nation" id="image116" src="http://www.erlendaakre.com/wp-content/uploads/2007/03/ferretnation2level-1.thumbnail.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/current-events-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

