<?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>epepep</title>
	<atom:link href="http://per.liedman.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://per.liedman.net</link>
	<description></description>
	<lastBuildDate>Mon, 26 Jul 2010 14:49:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>What plane?</title>
		<link>http://per.liedman.net/2010/07/26/what-plane/</link>
		<comments>http://per.liedman.net/2010/07/26/what-plane/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 14:49:06 +0000</pubDate>
		<dc:creator>Per Liedman</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://per.liedman.net/?p=168</guid>
		<description><![CDATA[So, I&#8217;ve made my first Android application. That was a nice experience, especially after having hacked J2ME on Symbian for a short while. Only sad thing is that I haven&#8217;t got an Android phone, so I can only use my app in the emulator, which is boring as hell, since it&#8217;s a GPS based application. [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;ve made my first Android application. That was a nice experience, especially after having hacked J2ME on Symbian for a short while. Only sad thing is that I haven&#8217;t got an Android phone, so I can only use my app in the emulator, which is boring as hell, since it&#8217;s a GPS based application. Well, I&#8217;m getting ahead of myself &#8211; so first some background about me, and then some more about that app.</p>
<p>Sometime in my early twenties, I once spent something like two whole days flying around the world in Microsoft Flight Simulator, in realtime. My old friends still like to remind me of this slightly autistic and highly nerdy feat once in a while. For my own part, it&#8217;s mostly a reminder of the oceans of free time I had while studying at university (I distinctly remember spending a considerable amount of the hours over the pacific studying for some math course I took at the time).</p>
<p>These days, I don&#8217;t even have flight simulator installed, but my interest in airliners and flying still linger in the back of my mind, and when the skies are clear, I often find myself drifting off, thinking about the contrails I see, what aircraft it might be, where they&#8217;re heading and where they&#8217;re coming from. In the last year, this little hobby has gotten a bit more interesting, thanks to a site called <a href="http://flightradar24.com/">flightradar24.com</a>, which makes it easy to check if it actually was a 747 that just passed by overhead, or if it was some other four engine model. (As a side note, flightradar24.com got a lot of media attention while the Icelandic ash cloud from Eyjafjallajökull grounded most air traffic over Europe for a couple of weeks, since everyone was very keen on seeing all the planes that weren&#8217;t flying. That was sort of weird. Anyway.)</p>
<p>The only thing that isn&#8217;t perfect about flightradar24.com for my little hobby, is that I&#8217;m not very often at a computer when I spot aircraft, and that their site is very Javascript-based, and hence not very useful in a phone browser. To solve this issue, some on and off hacking for a couple of months have resulted in a solution:</p>
<ul>
<li>A web service that uses data from Flightradar24.com to list the planes currently closest to a certain location, and presenting it as HTML, JSON or HTML</li>
<li>A small application for Symbian/J2ME that uses a phone&#8217;s GPS to query the mentioned web service</li>
<li>A small application for Android that does the same</li>
</ul>
<p>The Symbian version is still a bit too much of a hack to actually show to anyone else, but the server parts and the Android application is in a state which I feel is sort of usable. So, if you&#8217;re interested, here&#8217;s the application file for version 1.0.0 of <em>What plane?</em>, which will show you the five aircraft closest to where you are, their direction and distance, and some more detailed information on model, airline, where they&#8217;re heading, and so on.</p>
<p><a href='http://per.liedman.net/wp-content/uploads/2010/07/WhatPlane-1.0.0.apk'>WhatPlane-1.0.0.apk</a></p>
<p>&#8230;and for those anxious of you who absolutely need screenshots, here&#8217;s a couple of those:<br />
<div id="attachment_171" class="wp-caption alignnone" style="width: 334px"><a href="http://per.liedman.net/wp-content/uploads/2010/07/Whatplane-screenshot1.png"><img src="http://per.liedman.net/wp-content/uploads/2010/07/Whatplane-screenshot1.png" alt="" title="Screenshot 1" width="324" height="484" class="size-full wp-image-171" /></a><p class="wp-caption-text">List of closest aircraft</p></div><br />
<div id="attachment_172" class="wp-caption alignnone" style="width: 338px"><a href="http://per.liedman.net/wp-content/uploads/2010/07/Whatplane-screenshot2.png"><img src="http://per.liedman.net/wp-content/uploads/2010/07/Whatplane-screenshot2.png" alt="" title="Whatplane-screenshot2" width="328" height="480" class="size-full wp-image-172" /></a><p class="wp-caption-text">Aircraft details</p></div></p>
<p>For those interested, I plan to make the source available at some point in the future (that I haven&#8217;t done it already is mostly because I don&#8217;t know where it&#8217;s best to host it, and I haven&#8217;t got that much time to work on this). Also, it must be noted that all the data shown in the application is from flightradar24.com &#8211; and it&#8217;s really <em>their</em> data. I haven&#8217;t checked with them if it&#8217;s ok to use it in this way, but since they&#8217;re a free service, aggregating information mostly from enthusiasts sharing the data from their ADS-B receivers, I hope this application is in the spirit of their vision.</p>
]]></content:encoded>
			<wfw:commentRss>http://per.liedman.net/2010/07/26/what-plane/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(The lack of a) JSON parser for J2ME</title>
		<link>http://per.liedman.net/2010/06/07/the-lack-of-a-json-parser-for-j2me/</link>
		<comments>http://per.liedman.net/2010/06/07/the-lack-of-a-json-parser-for-j2me/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 20:49:07 +0000</pubDate>
		<dc:creator>Per Liedman</dc:creator>
				<category><![CDATA[Show me teh codes]]></category>

		<guid isPermaLink="false">http://per.liedman.net/?p=151</guid>
		<description><![CDATA[In a pet project I&#8217;m spending my nights working on (hopefully more about that in a later post), I found myself in need of a JSON parser, or deserializer, for J2ME/CLDC. A bit to my surprise, I found that such a thing was not easy to find, even with the whole of the internets at [...]]]></description>
			<content:encoded><![CDATA[<p>In a pet project I&#8217;m spending my nights working on (hopefully more about that in a later post), I found myself in need of a JSON parser, or deserializer, for J2ME/CLDC. A bit to my surprise, I found that such a thing was not easy to find, even with the whole of the internets at my disposal.</p>
<p>To summarize, it appears that there has been a JSON lib for J2ME up on <a href="http://www.google.se/search?aq=f&#038;ie=UTF-8&#038;q=org.json.me.zip">json.org at some point</a>, but at least I can&#8217;t find it any longer. Also, <a href="https://meapplicationdevelopers.dev.java.net/mobileajax.html">some project on java.net</a> is popular to link to, but come on, no download link? No pre-compiled JAR-file?</p>
<p>Anyway, after <a href="http://stackoverflow.com/questions/2981296/json-parser-for-j2me">asking over at stackoverflow.com</a> and getting surprisingly few answers, at least I found a link to some code that was easy enough to grab.</p>
<p>As some kind of attempt to give back to the community, I upload the compiled JAR from that source code here. So if you need to serialize, deserialize, marshal or unmarshal JSON from J2ME/CLDC, grab this JAR and go ahead:</p>
<ul>
<li>Compiled JAR: <a href='http://per.liedman.net/wp-content/uploads/2010/06/json-me.jar'>json-me.jar</a></li>
<li>Source code: <a href='http://per.liedman.net/wp-content/uploads/2010/06/json-me.tar.gz'>json-me.tar.gz</a></li>
</ul>
<p>The code is most likely a copy of the one that was previously posted on json.org, and is distributed under <a href="http://www.json.org/license.html">the json.org license</a> according to the copyright notice in the source (most importantly: &#8220;The Software shall be used for Good, not Evil.&#8221;)</p>
<p>As a very tiny modification, I have added the methods <i>remove</i> and <i>removeAll</i> to the class <i>JSONArray</i>, since I really needed them. I hope you don&#8217;t mind too much.</p>
]]></content:encoded>
			<wfw:commentRss>http://per.liedman.net/2010/06/07/the-lack-of-a-json-parser-for-j2me/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nationaldagen på cykel</title>
		<link>http://per.liedman.net/2010/06/06/142/</link>
		<comments>http://per.liedman.net/2010/06/06/142/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 13:39:21 +0000</pubDate>
		<dc:creator>Per Liedman</dc:creator>
				<category><![CDATA[Motion]]></category>

		<guid isPermaLink="false">http://per.liedman.net/?p=142</guid>
		<description><![CDATA[Efter misären med mitt inställda Göteborgsvarv har jag idag försökt kompensera åtminstone delvis genom att cykla Nationaldagsloppet, vilket jag nu tänkte fira genom att blogga för första gången på tusen år. Har inte deltagit i något cykellopp tidigare i mitt liv, så det blev även lite studiebesök i cykelvärlden. Några iakttagelser: Till skillnad från löpning [...]]]></description>
			<content:encoded><![CDATA[<p>Efter misären med mitt <a href="http://twitter.com/liedman/status/14483211447">inställda Göteborgsvarv</a> har jag idag försökt kompensera åtminstone delvis genom att cykla <a href="http://www.nationaldagsloppet.se/index.html?main.asp">Nationaldagsloppet</a>, vilket jag nu tänkte fira genom att blogga för första gången på tusen år.</p>
<p>Har inte deltagit i något cykellopp tidigare i mitt liv, så det blev även lite studiebesök i cykelvärlden. Några iakttagelser:</p>
<ul>
<li>Till skillnad från löpning är cykling lite av en materialsport. Det ställer nya krav på tävlingsdeltagaren i form av förberedelser. Medan löpning enbart kräver något så när rena kläder, bör du innan ett cykellopp åtminstone funderat på din utrustnings kondition. Rekommenderad miniminivå är att pumpa däcken och se till att kedjan är smord. (Varför man inte gemensamt har ordnat med tryckluft och munstycken till ett evenemang med hundratals cyklister i behov av detsamma är för mig oklart, men sådana är kanske konventionerna inom cykelsporten.)</li>
<li>Angående material är det även så att medeldeltagaren i ett cykellopp har skaffat duktigt med sådant. Extremt tighta kläder, slimmade hjälmar och en cykel som väger tio gram och med millimetersmala däck är snarare regel än undantag. Om du dyker upp på en smutsig, dåligt underhållen cykel iförd sladdriga shorts, t-shirt och en hjälm som inte riktigt matchar finns det risk att du känner dig lite utanför.</li>
<li>Om man har ovan nämnda, svindyra utrustning skulle man kunna tro att det faktiskt går undan, men så är inte nödvändigtvis fallet. Vissa cyklar trots sin svindyra utrustning inte särskilt fort och får &#8220;kramp&#8221; i första uppförsbacken efter 12 kilometer. För mig känns det då som man missförstått det hela för en maskerad och <i>klätt ut sig</i> till cyklist, snarare.</li>
<li>Under ett cykellopp dricker man inte bara (som i löpning), utan bjuds även på ätbara saker. Banan och i viss mån bulle kändes naturligt, men saltgurka stack helt klart ut när det erbjöds efter 35 kilometer; det gick dock utmärkt, och min kropp gjorde gällande att även en kebabrulle och kanske en prinsesstårta också hade varit på sin plats.</li>
<li>Överviktiga herrar i besvärande åtsittande kläder är festliga att cykla om i uppförsbackar. Sedan kör de om i nästa nedförsbacke. Jag är mycket imponerad av att deras kolfibercyklar med däck smala som skridskor kan rulla snabbare nedför än min ompumpade loser-hybrid.</li>
<li>De som kan cykla på riktigt cyklar sjukt fort och ropar glatt &#8220;opp-opp-opp-opp&#8221; om de tycker du ligger i vägen.</li>
</ul>
<p>Sammanfattningsvis mycket nöjd med detta evenemang, kombinerad motion och sociologisk studie. Om du läst ända hit är du förstås galet nyfiken på hur det egentligen gick för mig. 60 kilometer på 2:22 är väl knappast snabbt för en tränad cyklist, men jag är nöjd med tanke på att det är det längsta jag cyklat i mitt liv och att min vardagsdistans är runt fem kilometer till eller från jobbet. Om du är besatt, se <a href="http://www.liedman.net/share/gps-tracks/250_geosition.html">de riktiga detaljerna från min GPS</a>. (Man får zooma in lite för att se bättre, och ja &#8211; kartan visar bara drygt 57 kilometer, men jag antar att arrangören mätt mer noggrant än min GPS tydligen gör.)</p>
]]></content:encoded>
			<wfw:commentRss>http://per.liedman.net/2010/06/06/142/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Reality Bites</title>
		<link>http://per.liedman.net/2009/03/04/reality-bites/</link>
		<comments>http://per.liedman.net/2009/03/04/reality-bites/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 17:43:51 +0000</pubDate>
		<dc:creator>Per Liedman</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://per.liedman.net/?p=135</guid>
		<description><![CDATA[I&#8217;m a software developer. I like abstractions, I enjoy mentally putting things in little boxes, structuring my mental model of the world, or at least the model of the problem I&#8217;m currently struggling with. I don&#8217;t know if it&#8217;s a requirement, but if you&#8217;re a developer, it certainly helps to be border-lining to obsessive about [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a software developer. I like abstractions, I enjoy mentally putting things in little boxes, structuring my mental model of the world, or at least the model of the problem I&#8217;m currently struggling with. I don&#8217;t know if it&#8217;s a requirement, but if you&#8217;re a developer, it certainly helps to be border-lining to obsessive about knowing how stuff works, in excruciating detail.</p>
<p>Having said that, I find it fascinating how problems in programming constantly make you hit your head against the wall of reality &#8211; the wall located where pretty, simple and linear abstractions meet the real world. You know, the real world which refuses to be dumbed down into simple rules, and even when you <em>think</em> you&#8217;ve trapped it with you&#8217;re rules, always breaks free with new twists and turns that you hadn&#8217;t thought of. This is sort of the essence &#8211; problems that I&#8217;ve been working with more or less since I started programming, problems which also appear very benign from a casual viewpoint, that keep coming back, and simply refuse to be solved in a way such that you can put them behind you.</p>
<p><strong>Time</strong> is the first and most obvious case. That something as fundamental and trivial (you learn to read the watch when you&#8217;re what? Five? Six?) can be so complicated and easy to get wrong is truly fascinating. And then I haven&#8217;t even mentioned dates yet. Just starting to think about dates will get any programmer into trouble. Before you know it, you&#8217;re knee deep in Gregorian calendars and leap years &#8211; and even then, you won&#8217;t get it right. In fact, I&#8217;d go so far as saying that any non-trivial date/time calculation in software will contain at least one bug, or one special case that you hadn&#8217;t really thought of. </p>
<p>Once again, then I haven&#8217;t even mentioned <em>time zones</em> yet. Time zones, combined with daylight savings time, is the real killer, if you by pure miracle got the first date calculations right. At the company were I worked before, we had a standing joke two times a year &#8211; was this going to be the first day lights savings switch in the company&#8217;s history where we didn&#8217;t encounter a bug related to it? From what I can recall, we never had a bug free switch (in five years!).</p>
<p><strong>Maps</strong>, or perhaps rather geographic locations, is the second thing that springs to mind as a seemingly straightforward thing, that just never ever gets right. </p>
<p>From the day we learned how to use a two dimensional map, I actually think we&#8217;re doomed into living in the wrong paradigm. In grade school we learn that north is up on the map, and using a ruler to measure distances on it is the way to go. Sure, both work. Sometimes. But equally often, it just almost works, it&#8217;s almost true, kind of. &#8220;Almost true&#8221;, deeply ingrained in your mind, happens to be a perfect and never ending source of interesting and subtle software bugs.</p>
<p>Add to that the fact that the earth isn&#8217;t really a sphere, but almost, and while we have attempted to meaure its non-spheriness, we came up with several conflicting measurements, all giving slightly different results when you try to express where you are on this not-really-a-sphere thing. Sometimes, different measurements are mixed, and you will have to use completely non-trivial transformations to convert from one to the other, but those transformations only work for very special circumstances.</p>
<p>Even if you get it right, someone will probably want to calculate the distance from where you think you are to some other point, which isn&#8217;t at all trivial on a sphere. But it wasn&#8217;t a sphere, right? Yep, right &#8211; not a sphere, and that makes it just even worse. Luckily, I (and probably not you) don&#8217;t need the last kind of precision very often, but that doesn&#8217;t help, because we will <em>still</em> try to use a ruler (or its digital equivalent) to measure the distance on a map &#8211; which won&#8217;t work, even if the teacher in fourth grade said it would.</p>
<p><strong>Character encoding</strong> is my last example. Yes, getting characters to show up on your screen, more or less. Again, something very mundane and something a non-developer would take for granted. And yet, this is something that has been a problem in just about any application I&#8217;ve written, or seen being written, or used, for I don&#8217;t know how long. I guess being a swede, using the funny å, ä, ö characters a lot (or &#8220;Ã¥, Ã¤ and Ã¶&#8221;, as I&#8217;ve learnt to know them from years of UTF-8/ISO-8859 mangling), doesn&#8217;t help, since you&#8217;re so much more exposed to the problem.</p>
<p>Closing up, I want to attempt finding something that these three problems have in common, something that make seemingly simple things so very complicated. My first guess would be that its the perceived simplicity that is the core in all three &#8211; all are stuff that we in our daily lives take for granted, talk about while at the same time not paying much attention to the details: we look at our watches, make appointments and write them in our calendars, decide to meet at certain locations and talk about how far it is to places. We never ever think about the underlying details and complexities while doing this, it&#8217;s all very intuitive to us. On the other hand, I think it&#8217;s this very intuition that trips us when developing software; the fact that we think we know this very well gets in the way details (that most of us actually don&#8217;t know).</p>
<p>Also, all three share that they in some way involve problems regarding frame of reference: time zone and daylight savings time problems are hard since you very easily get confused about what is fixed and what is relative. The map problems are very much the same &#8211; what is absolute in one frame of reference (&#8220;up&#8221;, &#8220;north&#8221;, &#8220;distance&#8221;, etc.), does not necessarily translate to some absolute in another, and what you&#8217;re doing is switching frame of reference, if it&#8217;s going from a projected map to WGS84, or if it&#8217;s transforming between two geodetic references. Character encoding, and translation from one encoding to another, is also only meaningful if you keep track of your frame or reference (&#8220;current encoding&#8221;) through every step of the process &#8211; something which is very obviously much easier said than done.</p>
<p>At first, I also thought about adding the theory of relativity to the problems above. I decided against it, since it&#8217;s really not something you deal with every day, and it&#8217;s also far beyond my field of expertise. Interestingly enough though, it also talks about things we perceive as intuitive (time, length and weight being more or less constant) and turns it on its head, although more profoundly than the examples above. Also, the solution very much lies in keeping track of your frame of reference. </p>
<p>This is also the conclusion: a perceived intuitivity about a problem, combined with transitions between different frames of reference, makes for a problem that you will come back to again and again.</p>
]]></content:encoded>
			<wfw:commentRss>http://per.liedman.net/2009/03/04/reality-bites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNS-323 filename encoding problems</title>
		<link>http://per.liedman.net/2009/02/22/dns-323-filename-encoding-problems/</link>
		<comments>http://per.liedman.net/2009/02/22/dns-323-filename-encoding-problems/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 12:53:43 +0000</pubDate>
		<dc:creator>Per Liedman</dc:creator>
		
		<guid isPermaLink="false">http://per.liedman.net/?p=133</guid>
		<description><![CDATA[This entry will be in english, since it&#8217;s more likely to be helpful to others googling for solutions to the same problem. A colleague of mine has used a D-Link DNS-323 as his RAID/backup solution at home. Apparently it&#8217;s been working great for ages, until he recently updated its firmware, which also caused all files [...]]]></description>
			<content:encoded><![CDATA[<p>This entry will be in english, since it&#8217;s more likely to be helpful to others googling for solutions to the same problem.</p>
<p>A colleague of mine has used a <a href="http://www.dlink.com/products/?pid=509">D-Link DNS-323</a> as his RAID/backup solution at home. Apparently it&#8217;s been working great for ages, until he recently updated its firmware, which also caused all files and directories containing non-ASCII characters (mostly å, ä and ö for us swedes) to be completely inaccessible; the windows sharing (Samba/SMB) wouldn&#8217;t show the directories at all, and although they showed up in FTP, you couldn&#8217;t really access them. Downgrading the firmware did not help.</p>
<p>The fun thing about the DNS-323, and the reason the colleague asked me for help, is that it runs Linux internally. Although it looks like a USB disk with a web interface, it actually has a full-featured operating system underneath. Well, <i>close to</i> full featured.</p>
<p>Googling for solutions, I found another swede, Martin Bergek, who had at least <a href="http://www.bergek.com/2008/11/12/filename-encoding-problems-on-dlink-dns-323/">similar problems</a> (by chance, I also happen to know who Martin is). It seems that older firmwares used <a href="http://en.wikipedia.org/wiki/Code_page_850">CP850</a> for filename encoding, while newer versions use <a href="http://en.wikipedia.org/wiki/UTF-8">UTF-8</a>. Probably some upgrade didn&#8217;t go as planned, leaving the filenames in CP850, while interpreting them as UTF-8. Decoding swedish CP850 characters as UTF-8 results in invalid multibyte characters, causing the programs to refuse to handle files and directories containing them.</p>
<p>Now for the fun part. There seems to be quite a <a href="http://wiki.dns323.info/">community developing hacks for the DNS-323</a>. Using the so called <a href="http://wiki.dns323.info/howto:fun_plug">fun_plug</a>, you can very easily enable an SSH server, and get access to lots of useful commands. In my case, SSH access in combination with the <a href="http://en.wikipedia.org/wiki/Rsync">rsync</a> command turned out to be the key.</p>
<p>My solution was to get a backup disk large enough to copy all the material from the DNS-323 (actually, my colleague had already thought of this and provided me with a disk for this purpose). Once all the files where copied from the DNS-323, it could be wiped and the files copied back, but this time with the correct filename encoding.</p>
<p>As mentioned above, most of the problem results from applications interpreting the characters as invalid UTF-8 codes, refusing to work with them altogether. Even basic stuff, like doing recursive file lists with rsync, fails if a directory contains the invalid characters, probably since the runtime&#8217;s string library can&#8217;t work with the resulting strings. Shell commands like cd handle the directories, though, even if the characters are displayed as garbage.</p>
<p>Fortunately, rsync includes a command line parameter called <code>--iconv</code>, which lets you override which encoding is used when interpreting the filenames. This way, you can interpret the names correctly, and they can be converted into proper UTF-8. The trick is that you have to do this on the DNS-323 side, otherwise the conversion will be done on the backup unit&#8217;s side, still causing errors attempting to do recursive file lists. (In case you connect the USB disk directly to the DNS-323, you won&#8217;t have to think about this &#8211; in my case, the backup disk was connected to my Ubuntu desktop.)</p>
<p>So, to sum things up, this was the killer command line that made it possible to copy all the files out of the DNS-323:</p>
<p><code>rsync -azv --iconv=cp850,utf8 /mnt/HD_a2/ per@asta:/media/usbdrive/dns323</code></p>
<p>(Obviously, you&#8217;ll have to replace the paths to whatever directories you&#8217;re using on the DNS-323 as well as for the backup disk.)</p>
]]></content:encoded>
			<wfw:commentRss>http://per.liedman.net/2009/02/22/dns-323-filename-encoding-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grotesque</title>
		<link>http://per.liedman.net/2008/07/03/grotesque/</link>
		<comments>http://per.liedman.net/2008/07/03/grotesque/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 16:29:56 +0000</pubDate>
		<dc:creator>Per Liedman</dc:creator>
		
		<guid isPermaLink="false">http://per.liedman.net/?p=130</guid>
		<description><![CDATA[Som jag skrivit i en tidigare post har jag skrivit ett program för katalogisering av IF-spel. För att göra det hela lite mer officiellt har jag nu registrerat projektet på SourceForge, som nu tar hand om Grotesques hemsida samt tar hand om projektets programkod.]]></description>
			<content:encoded><![CDATA[<p>Som jag skrivit i en <a href="http://per.liedman.net/?p=127">tidigare post</a> har jag skrivit ett program för katalogisering av <a href="http://en.wikipedia.org/wiki/Interactive_fiction">IF</a>-spel. För att göra det hela lite mer officiellt har jag nu registrerat projektet på SourceForge, som nu tar hand om <a href="http://grotesque.sourceforge.net/">Grotesques hemsida</a> samt tar hand om <a href="http://grotesque.svn.sourceforge.net/viewvc/grotesque/">projektets programkod</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://per.liedman.net/2008/07/03/grotesque/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spielen!</title>
		<link>http://per.liedman.net/2008/06/23/spielen/</link>
		<comments>http://per.liedman.net/2008/06/23/spielen/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 18:44:28 +0000</pubDate>
		<dc:creator>Per Liedman</dc:creator>
		
		<guid isPermaLink="false">http://per.liedman.net/?p=127</guid>
		<description><![CDATA[Stora nyheter. Jag har lyckats sätta ihop mitt första GTK+-program och skapat mitt första Ubuntu-paket (som innehåller programmet i fråga). Men låt oss börja från början. De senaste månaderna har jag fastnat i textäventyr &#8211; den uråldriga eller kanske urmodiga typ av datorspel där man spelar genom att läsa text och sedan skriva kommandon för [...]]]></description>
			<content:encoded><![CDATA[<p>Stora nyheter. Jag har lyckats sätta ihop mitt första <a href="http://www.gtk.org/">GTK+</a>-program och skapat mitt första Ubuntu-paket (som innehåller programmet i fråga). Men låt oss börja från början.</p>
<p>De senaste månaderna har jag fastnat i textäventyr &#8211; den uråldriga eller kanske urmodiga typ av datorspel där man spelar genom att läsa text och sedan skriva kommandon för att berätta för datorn vad man vill göra; <a href="http://en.wikipedia.org/wiki/Interactive_fiction">interactive fiction</a> (IF) är den engelska termen, som jag gillar bättre, då det inte nödvändigtvis rör sig om äventyr av drakar och demoner-karaktär.</p>
<p>I detta äventyrande började mina problem. Annars förträffliga Ubuntu har inte några program för att spela IF på något bekvämt sätt; några program finns (frotz, tads och qtads), men de täcker inte alla olika spelformat som finns, och även om jag gillar terminalfönster så är det inte optimalt för IF. Min favorit blev istället snart <a href="http://ccxvii.net/gargoyle/">Gargoyle</a>, som stöder alla format jag är intresserad av, samt ser synnerligen elegant ut.</p>
<p>Vad Gargoyle saknar är dock ett bibliotek, eller smidigt sätt att hålla reda på de olika spel man samlar på sig. Det är här mitt program kommer in. Ett slags katalogiseringsprogram för IF-spel med utseende som ett budget-iTunes. Arbetsnamnet är <i>Grotesque</i> (eftersom en gargoyle är en form av groteskornamentik &#8211; ja, jag fick slå upp det sistnämnda ordet).</p>
<p>Jag ämnar nog göra något lite mer seriöst av detta längre fram, men tills vidare lägger jag upp <del>en screenshot, källkoden samt slutligen Ubuntu-paketet för Grotesque-0.1</del> (Uppdaterat 2008-07-03: se <a href="http://grotesque.sourceforge.net/">Grotesques hemsida</a> för senaste versionen av dessa filer). Eftersom jag bara byggt på min egen maskin och det är första gången jag paketerar för Ubuntu så har jag säkert gjort något fel, men pröva gärna.</p>
<p>Min plan härnäst är att paketera även Gargoyle som Ubuntu-paket, eftersom det är lite väl stökigt att bygga för hand nu, lägga på lite puts och glans på Grotesque, samt kanske hitta på ett ordentligt namn. Vi får se. Under tiden borde du pröva att spela lite IF &#8211; några bra förslag på spel att pröva hittar du t.ex. <a href="http://www.astro.umd.edu/~marshall/ifmini.html">här</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://per.liedman.net/2008/06/23/spielen/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Kvitter</title>
		<link>http://per.liedman.net/2008/06/19/kvitter/</link>
		<comments>http://per.liedman.net/2008/06/19/kvitter/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 07:42:13 +0000</pubDate>
		<dc:creator>Per Liedman</dc:creator>
		
		<guid isPermaLink="false">http://per.liedman.net/?p=124</guid>
		<description><![CDATA[Här verkar det inte hända mycket, men om ni är väldigt intresserad av vad jag håller på med kan ni numera försöka följa mig på Twitter.]]></description>
			<content:encoded><![CDATA[<p>Här verkar det inte hända mycket, men om ni är väldigt intresserad av vad jag håller på med kan ni numera försöka följa mig på <a href="http://twitter.com/liedman">Twitter</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://per.liedman.net/2008/06/19/kvitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dagens Ubuntu-tips</title>
		<link>http://per.liedman.net/2008/04/13/dagens-ubuntu-tips/</link>
		<comments>http://per.liedman.net/2008/04/13/dagens-ubuntu-tips/#comments</comments>
		<pubDate>Sun, 13 Apr 2008 17:17:36 +0000</pubDate>
		<dc:creator>Per Liedman</dc:creator>
		
		<guid isPermaLink="false">http://per.liedman.net/?p=123</guid>
		<description><![CDATA[Jag är en stor vän av tangenbordsgenvägar. Tydligen till den grad att jag inte ens märker att jag använder dem. Däremot blir det problem när de plötsligt slutar fungera. Därför är en av de få irritationsmoment jag haft sen jag konverterade till Ubuntu varit att en så enkel sak som att flytta markören i URL:er [...]]]></description>
			<content:encoded><![CDATA[<p>Jag är en stor vän av tangenbordsgenvägar. Tydligen till den grad att jag inte ens märker att jag använder dem. Däremot blir det problem när de plötsligt slutar fungera. Därför är en av de få irritationsmoment jag haft sen jag <a href="http://per.liedman.net/?p=116">konverterade till Ubuntu</a> varit att en så enkel sak som att flytta markören i URL:er i Firefox inte längre fungerar som jag är van vid.</p>
<p>I Windows kan man förflytta markören snabbt genom en URL till nästa &#8220;logiska stopp&#8221; (punkt, snedstreck, &#038;-tecken, etc.) genom att hålla inne Ctrl samtidigt som en av piltangenterna. I Ubuntu leder (med default-inställningarna) tyvärr detta till att man hoppar direkt till slutet respektive början av hela URL:en, till föga nytta.</p>
<p>Efter att äntligen orkat upparbeta en tillräcklig irritation över detta, Googlade jag och fann lösningen: ändra inställningen <em>layout.word_select.stop_at_punctuation</em> till <em>true</em> i Firefox (genom att gå till <a href="about:config">about:config</a>). Underbart lätt. Varför detta inte är grundinställningen är ett mysterium.</p>
]]></content:encoded>
			<wfw:commentRss>http://per.liedman.net/2008/04/13/dagens-ubuntu-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>God afton, herr Mandelbrot</title>
		<link>http://per.liedman.net/2008/02/02/god-afton-herr-mandelbrot/</link>
		<comments>http://per.liedman.net/2008/02/02/god-afton-herr-mandelbrot/#comments</comments>
		<pubDate>Sat, 02 Feb 2008 19:13:37 +0000</pubDate>
		<dc:creator>Per Liedman</dc:creator>
		
		<guid isPermaLink="false">http://per.liedman.net/?p=119</guid>
		<description><![CDATA[C-programmering och fraktaler. Praktiskt taget som att vara tillbaka i gymnasiet igen, även om jag tror jag programmerade i Pascal sist jag gjorde dem. Som tur är har det hänt en hel del på hårdvarufronten sen dess, och även löjligt högupplösta och färggranna versioner av Mandelbrot-mängden går att åstadkomma på nästan ingen tid alls. Tack [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://per.liedman.net/wp-content/uploads/2008/02/mandelbrot.jpg' title='Mandelbrot'><img src='http://per.liedman.net/wp-content/uploads/2008/02/mandelbrot.thumbnail.jpg' alt='Mandelbrot' class='right'/></a><br />
<a href='http://en.wikipedia.org/wiki/C_%28programming_language%29'>C</a>-programmering och <a href='http://en.wikipedia.org/wiki/Fractal'>fraktaler</a>. Praktiskt taget som att vara tillbaka i gymnasiet igen, även om jag tror jag programmerade i Pascal sist jag gjorde dem.</p>
<p>Som tur är har det hänt en hel del på hårdvarufronten sen dess, och även löjligt högupplösta och färggranna versioner av <a href="http://en.wikipedia.org/wiki/Mandelbrot_set">Mandelbrot-mängden</a> går att åstadkomma på nästan ingen tid alls.</p>
<p>Tack vare den uppsjö av hjälpprogram som finns lättillgängliga i en modern Linux-distribution (i det här fallet <a href="http://netpbm.sourceforge.net/">NetPBM</a> och <a href="http://ffmpeg.mplayerhq.hu/">FFmpeg</a>), gick det snabbt att göra <a href='http://per.liedman.net/wp-content/uploads/2008/02/mandelbrot.mp4'>en film</a> (1.8 MB) med en kort inzoomning.</p>
<p>Källkoden som användes för att rita bilderna finns här: <a href='http://per.liedman.net/wp-content/uploads/2008/02/mandelbrot.c'>mandelbrot.c</a></p>
]]></content:encoded>
			<wfw:commentRss>http://per.liedman.net/2008/02/02/god-afton-herr-mandelbrot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://per.liedman.net/wp-content/uploads/2008/02/mandelbrot.mp4" length="1886176" type="video/mp4" />
		</item>
	</channel>
</rss>
