<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
  <channel>
    <title>On the way</title>
    <link>http://www.hietavirta.net/blog/</link>
    <description>J2EE software engineer writing about working abroad, cultures and insights</description>
    <!-- optional tags -->
    <language>en-us</language>           <!-- valid langugae goes here -->
    <generator>Nucleus CMS v3.32</generator>
    <copyright>©</copyright>             <!-- Copyright notice -->
    <category>Weblog</category>
    <docs>http://backend.userland.com/rss</docs>
    <image>
      <url>http://www.hietavirta.net/blog//nucleus/nucleus2.gif</url>
      <title>On the way</title>
      <link>http://www.hietavirta.net/blog/</link>
    </image>
    <item>
 <title><![CDATA[Media convergence, publishers and Apple iPad]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=330</link>
<description><![CDATA[Today I checked what is the Apple's new iPad all about. A very nice looking tablet as expected but I was more curious how the content available for iPad will look like. This device comes with browser so normal web content is available as usually. Books, tunes and videos are sold via Apple's own stores. But the announcement featured 'The New York Times' app and that shows where the progress is taking us. <br />
<br />
Traditional web or mobile optimised version of the print publications wont cut anymore. Some publishers have announced their own iPhone application but many of them are simple page flipping applications. Not much difference to PDF reader. Seamlessly embedded videos and photo galleries are not that common as one would expect. Especially when new devices like iPad support much larger screen and computing power than previously so they should be able to handle them easily.<br />
<br />
At the moment many of those magazine or newspaper reader applications are free with their content but paid content will definitely become more popular. Instead of subscribing or buying physical printed magazine you would receive an access to the extra content - all edited and formatted in a single package. Simple 'subscribers only' area with content snippets lying around might have been the way to do previously but now users are expecting much more elegant presentation. I see iPad and similar devices as premium content platforms and their users are already used to pay for applications, videos and music.<br />
<br />
There are two sides of the iPad publishing - a CMS and a reader. Recent development on digital photography has enabled photo reporters to shoot both stills and video - actually they expected to do so now. Presenting this variety of media formats is not straightforward. Publishers had to find way to add all this content in to their sites and I can imagine how their CMSs are being pushed against the limits. Publishers need to have highly flexible content management system that handles vast amount of different media formats and is able to transform them to another (i.e. downscaling videos). The same content needs to be available for normal web, lightweight mobile devices, smart phones and now also for tablet. The extra effort and cost required for each platform version should be minimal.<br />
<br />
The content reader can be either the standard web browser or a custom reader application. Publishing content for specific application allows much more freedom for layout and media formats. <a href="http://livingartmedia.com/outside/"Living Magazine Cover and Spread – Outside Magazine</a> is an example of how a digital magazine would look like in the future. Developing such reader application is not trivial task but I assume iPad SDK has some new features supporting this. Unfortunately the documentation is available only for members of the iPhone Developer Program. <br />
<br />
As Apple did not announce their own de facto reader for rich content there is now an open space for iPad developers to conquer. The solution offering the intuitive user interface on iPad, excellent performance and seamless integration with content management systems will be a winner.<br />
]]></description>
 <category>Bits and Bytes</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=330</comments>
 <pubDate>Wed, 27 Jan 2010 23:54:00 +0200</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=330</guid>
</item><item>
 <title><![CDATA[Some file organizing with Python]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=329</link>
<description><![CDATA[It has been a while since my last Python session but couple days ago I had a perfect opportunity for some Python scripting. The initial situation was that we had tons of files in a single directory. File names were UUIDs so the idea was to create subdirectories and move each file in right directory. We planned to have three levels of directories based on the first characters of the filename. So something starting with 4c14 would go under 4/c/1/.<br />
<br />
I implemented this in two parts. The first part created the required directory structure:<br />
<code><br />
import os<br />
<br />
workPath = "/tmp/test/"<br />
for a in range (0, 16):<br />
&nbsp;&nbsp;&nbsp;os.mkdir(workPath+hex(a)[2:])   <br />
&nbsp;&nbsp;&nbsp;for b in range (0, 16):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;os.mkdir(workPath+"/"+hex(a)[2:]+"/"+hex(b)[2:])<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for c in range (0, 16):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;os.mkdir(workPath+"/"+hex(a)[2:]+"/"+hex(b)[2:]+"/"+hex(c)[2:])<br />
</code><br />
<br />
The next part was to move files to the corresponding directories. This was also quite straightforward but I had problem with os.rename and I had to replace it with shutil.move. The original script worked fine on my home computer but the development server had the source and destination directories in different filesystems. Here is the final version:<br />
<code><br />
import os<br />
import shutil<br />
<br />
sourceDir = "/tmp/files/"<br />
destDir = "/tmp/test/"<br />
<br />
filenames = os.listdir(sourceDir)<br />
for filename in filenames:<br />
&nbsp;&nbsp;&nbsp;sourceFile = sourceDir+filename<br />
&nbsp;&nbsp;&nbsp;print(sourceFile)<br />
&nbsp;&nbsp;&nbsp;destFile = destDir+filename[0]+"/"+filename[1]+"/"+filename[2]+"/"+filename<br />
&nbsp;&nbsp;&nbsp;print(destFile)<br />
&nbsp;&nbsp;&nbsp;shutil.move(sourceFile, destFile)<br />
</code><br />
These did not take too long to make and most likely someone who remembers Python libraries better would have done it in a fraction of time.<br />
<br />
]]></description>
 <category>Bits and Bytes</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=329</comments>
 <pubDate>Wed, 9 Dec 2009 22:24:43 +0200</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=329</guid>
</item><item>
 <title><![CDATA[What I have been busy with lately...]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=328</link>
<description><![CDATA[We made a nice and busy trip to Belgium. We spent most of the time in Brussels but we also visited Antwerpen and Bruges. Tasty beer, rude museum staff, sore feet and tons of photos to sort. Plenty of things to see and especially Antwerpen railway station was pretty impressive.<br />
<br />
At work I am busy the soon to be released open source CMS. The content management UI is built on Ext GWT aka GXT so it looks pretty nice and it was quite pleasant to develop. The server side is usual EJB3, JPA/Hibernate etc... there is some REST API, website templates can written in Velocity  and there is even possibility to add extra functionality with server side JavaScript. So bunch of cool technologies and it has been great learning experience. <br />
<br />
Meanwhile we have been enjoying Scottish autumn weather and I have been trying out Android SDK. Tomorrow I will visit <a href="http://www.opensourceawards.com/">Scottish Open Source Awards</a> - this time just as a spectator.]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=328</comments>
 <pubDate>Fri, 20 Nov 2009 00:09:46 +0200</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=328</guid>
</item><item>
 <title><![CDATA[StackOverflow DevDays 2009 London]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=327</link>
<description><![CDATA[Yesterday I attended <a href="http://stackoverflow.carsonified.com/events/london/">DevDays</a> in London and it was pretty good event. Most of the speakers were good and I think I learnt something new from every one of them. Unfortunately there was not too much time to network with other developers as the breaks were short and the catering was failing. I am look forward to attending it next year.<br />
<br />
<a href="http://www.flickr.com/photos/pepez/sets/72157622685399650/">Some photos of the event</a>]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=327</comments>
 <pubDate>Thu, 29 Oct 2009 23:40:27 +0200</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=327</guid>
</item><item>
 <title><![CDATA[Some Google Wave invites to give away]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=326</link>
<description><![CDATA[In case you are interested, drop me an email. You should know the address :-)]]></description>
 <category>Bits and Bytes</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=326</comments>
 <pubDate>Sun, 25 Oct 2009 00:22:46 +0300</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=326</guid>
</item><item>
 <title><![CDATA[Facebook and Twitter stole my blogging effort]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=325</link>
<description><![CDATA[I have been really lazy to blog recently but my Facebook and <a href="http://twitter.com/pethie">Twitter</a> accounts have received regular updates. This seems to be common among bloggers as it is so much easier to blurp couple lines for an update. But blogging is not dead because it is a medium for longer articles.<br />
<br />
So, to summarise past month I could mention couple highlights. We made a trekking trip to Kingussie which was fun but we did not reach our goal. The route to the munro was way too muddy for our shoes. A pair of rubber boots would have been better.<br />
<br />
Then we had an autumn holiday. I visited Finland and Dóra visited Hungary. My trip was mostly about hunting with very modest results. I did not have time to visit friends but I met my brothers and their families.<br />
<br />
Among other things I have been dreaming about buying Canon 7D but I think it is a bit too expensive. And our Canon 450D is still doing pretty fine after 10K shots so there is no good excuse to spend around 1700 GBP... ]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=325</comments>
 <pubDate>Tue, 22 Sep 2009 21:59:13 +0300</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=325</guid>
</item><item>
 <title><![CDATA[Benefits of gym workout and home ergonomics for an office worker]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=324</link>
<description><![CDATA[In Hungary I sometimes had nasty headaches and clearly they were neck muscle related. I assume some tense muscles were pushing or blocking nerves and that caused migraine. But for my delight that seems to be history now.<br />
<br />
I think there are two things contributing to this. First of all, I do much more workout and outdoor activity than in Hungary. Visiting then gym with sauna two or three times a week keeps neck and back muscles fit. It also helps to relax after work and allows me to get rid of some code originated frustrations. The monthly fee of the gym is not too bad and I see it as investing in myself.<br />
<br />
Getting a new computer to replace 12" PowerBook has helped as well. 20" iMac results in a much more ergonomic home setup and I think the bigger screen is better for my eyes as well. I picked a nice mesh back computer chair from a local store couple weeks ago so things have improved even more. I think the next step would be buying a bigger table with more space for all these items.]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=324</comments>
 <pubDate>Sun, 9 Aug 2009 21:45:49 +0300</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=324</guid>
</item><item>
 <title><![CDATA[Secrets of sauna]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=323</link>
<description><![CDATA[Quite often I have been asked about sauna. Being a Finn I, naturally, have an expert level knowledge about sauna. One common question is how one can like hot sauna. Simple, Finns are born in sauna so they get used to it right away. But sitting in a right place in the sauna helps a lot. In a square sauna where the sauna stove is in the corner, the hottest place is usually the opposite corner as the hot steam travels there first. So the Finnish guy sitting next to the sauna stove  and throwing plenty of water is barely getting warm.<br />
]]></description>
 <category>Culture</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=323</comments>
 <pubDate>Sun, 2 Aug 2009 18:43:34 +0300</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=323</guid>
</item><item>
 <title><![CDATA[Problems with JSON and trailing comma with IE6]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=322</link>
<description><![CDATA[At work a GWT project was modified to use JSON instead of GWT RPC. It worked fine on FF3 and Safari but failed horribly on IE6. The error message was not too helpful: (TypeError): 'null' is null or not an object number: -2146823281 description: 'null' is null or not an object<br />
<br />
To investigate this I installed <a href="http://www.fiddler2.com/fiddler2/">Fiddler</a> to check responses sent by the server. It turned out that our JSON collections had an extra comma after the last item. This trailing comma caused IE to expect yet another item.<br />
<br />
Such a small and easy to fix problem but rather tricky to find - but that is life of a programmer.]]></description>
 <category>Bits and Bytes</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=322</comments>
 <pubDate>Wed, 29 Jul 2009 20:30:14 +0300</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=322</guid>
</item><item>
 <title><![CDATA[Spoiled plans]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=321</link>
<description><![CDATA[Ah, last weekend we were about to go biking around Loch Leven but bad weather and my flu ruined that plan. Instead the weekend was all about resting - which is not bad for some time. But next weekend should be better.<br />
<br />
I also had bad luck with cash ISA (tax free savings account) as I applied for higher rate account but First Direct introduced new lower rates while they were processing my application. I did not like that so I cancelled the opening - luckily I did not send transfer order before that.<br />
<br />
But at least now GBP seems to get stronger against Euro. That is good because our trip to Finland is approaching... holiday I say!]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=321</comments>
 <pubDate>Mon, 15 Jun 2009 17:42:05 +0300</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=321</guid>
</item>
  </channel>
</rss>