<?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[Apache Redirect Permanent and ProxyPass]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=335</link>
<description><![CDATA[You have a Apache running and you have a permanent redirect configured. For example;<br />
<code>Redirect permanent /subfolder/ /</code><br />
This would redirect www.yoursite.com/subfolder to www.yoursite.com.<br />
<br />
Then later on you to add proxy config:<br />
<code><br />
ProxyPass / http://localhost:8080/site/<br />
ProxyPassReverse / http://localhost:8080/site/<br />
ProxyPassReverseCookiePath /site /<br />
</code><br />
<br />
But after that your redirect fails. It turns out that ProxyPass config overrules Redirect. Add exclusion to the ProxyPass to fix this:<br />
<br />
<code><br />
ProxyPass /subfolder !<br />
ProxyPass / http://localhost:8080/site/<br />
ProxyPassReverse / http://localhost:8080/site/<br />
ProxyPassReverseCookiePath /site /<br />
</code><br />
<br />
Note that the exclusion is before others.]]></description>
 <category>Bits and Bytes</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=335</comments>
 <pubDate>Fri, 2 Jul 2010 23:35:23 +0300</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=335</guid>
</item><item>
 <title><![CDATA[Frame rate tool for OS X - ReelSnail]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=334</link>
<description><![CDATA[I have been experimenting with both DSRL video and Objective C. The result is a simple tool to modify the frame rate metadata in Quicktime h.264 files. This kind of tool is handy when I need to import 60fps file to 30fps or 25fps iMovie project. This results nice slow motion effect otherwise hard to achieve in iMovie.<br />
<br />
The project is based on <a href="http://www.cinema5d.com/viewtopic.php?f=13&t=4490">Python script</a> that did the same in command line. But I wanted to add a OS X native front end and I also wanted learn Objective C so I decided to rewrite the whole thing in Objective C. I managed to get most of it working in a weekend. I had one old Cocoa book (Hillegass - Cococa Programming for Mac OS X) and Apple's online guides. XCode and Objective C were pretty different compared to Eclipse and Java but I managed to get my head around some of the concepts.<br />
<br />
Another new experiment for me was to use Git for the project. I used GPLv3 for the project because the original Python version used that. Being open source project it was possible to set the repository to GitHub for free. Having gone through some nasty merges in SVN I wanted to try out distributed approach. In a one man project there is not too much to merge but I was curious to try out Git tooling. I ended up using both command line tools and GitX. <br />
<br />
<a href="http://wiki.github.com/pepez/ReelSnail/">ReelSnail project wiki</a><br />
<a href="http://github.com/pepez/ReelSnail/downloads">ReelSnail downloads</a>]]></description>
 <category>Bits and Bytes</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=334</comments>
 <pubDate>Mon, 28 Jun 2010 22:03:54 +0300</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=334</guid>
</item><item>
 <title><![CDATA[Moved back to Edinburgh]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=333</link>
<description><![CDATA[We left Kirkcaldy a month or so ago and moved back to Edinburgh. The new flat is in Leith so the area is somewhat familiar. Quite many things changed though.<br />
<br />
This new flat is reasonably new, it has some modern comforts like dishwasher and double glazing. Hmm... I must have spent long enough in UK because I am mentioning double glazing as an extra. Anyways, nice and modern flat with some sea view. I think I should write down an article about flat hunting and related matters. At least I have experience from three different occasions.<br />
<br />
Otherwise life is pretty much same here, I am still working in the same company developing open source Java CMS. It will be published soon but the exact date is still unclear at least for me.]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=333</comments>
 <pubDate>Fri, 7 May 2010 23:01:33 +0300</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=333</guid>
</item><item>
 <title><![CDATA[Hacking Canon IXUS 60]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=332</link>
<description><![CDATA[I got some nice features like time lapse shooting and it wasn't even difficult with CHDK. <a href="http://apertoire.blogspot.com/2010/03/adding-features-to-canon-ixus-60-with.html">Full story at Apertoire blog</a>.]]></description>
 <category>Bits and Bytes</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=332</comments>
 <pubDate>Sat, 27 Mar 2010 20:06:49 +0200</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=332</guid>
</item><item>
 <title><![CDATA[Experimenting with analog technology]]></title>
 <link>http://www.hietavirta.net/blog/index.php?itemid=331</link>
<description><![CDATA[I wrote some thoughts down after photographing couple days with Asahi Pentax Spotmatic F. That is a film SLR camera from the 70s. <a hreg="http://apertoire.blogspot.com/2010/03/back-to-70s-vintage-photography.html">Read it from my photography blog.</a>]]></description>
 <category>General</category>
<comments>http://www.hietavirta.net/blog/index.php?itemid=331</comments>
 <pubDate>Sun, 14 Mar 2010 23:51:49 +0200</pubDate>
 <guid>http://www.hietavirta.net/blog/index.php?itemid=331</guid>
</item><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>
  </channel>
</rss>