<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Dear Diary</title>
	
	<link>http://www.van-porten.de</link>
	<description>A Developer's Weblog</description>
	<lastBuildDate>Thu, 26 Jan 2012 20:08:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/van-porten/XRYM" /><feedburner:info uri="van-porten/xrym" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>What to do if biber stops working on MacOS X</title>
		<link>http://feedproxy.google.com/~r/van-porten/XRYM/~3/8-Xs-sX00dU/</link>
		<comments>http://www.van-porten.de/2012/01/what-to-do-if-biber-stops-working-on-macos-x/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 19:36:14 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[biber]]></category>
		<category><![CDATA[biblatex]]></category>
		<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://www.van-porten.de/?p=1623</guid>
		<description><![CDATA[Yesterday evening I ran into a bit of a problem when I tried building my latex document that uses biblatex/biber. For some reason, biber would not generate any output but fail with Olivers-MacBook-Air:~ porten$ biber data source /var/folders/5c/y7ssnfgj2fz1fnx1gz_z7ng80000gn/T/par-porten/cache-5a7f3069e2a4d51fd3557003fc55ec74c554c947//inc/lib/Biber/LaTeX/recode_data.xml not found &#8230; <a href="http://www.van-porten.de/2012/01/what-to-do-if-biber-stops-working-on-macos-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday evening I ran into a bit of a problem when I tried building my latex document that uses biblatex/biber. For some reason, biber would not generate any output but fail with<br />
<code><br />
Olivers-MacBook-Air:~ porten$ biber<br />
data source /var/folders/5c/y7ssnfgj2fz1fnx1gz_z7ng80000gn/T/par-porten/cache-5a7f3069e2a4d51fd3557003fc55ec74c554c947//inc/lib/Biber/LaTeX/recode_data.xml not found in .<br />
Compilation failed in require at Biber/Utils.pm line 21.<br />
BEGIN failed--compilation aborted at Biber/Utils.pm line 21.<br />
Compilation failed in require at Biber/Internals.pm line 8.<br />
BEGIN failed--compilation aborted at Biber/Internals.pm line 8.<br />
Compilation failed in require at (eval 22) line 2.<br />
	...propagated at /opt/local/lib/perl5/5.14.1/base.pm line 94.<br />
BEGIN failed--compilation aborted at Biber.pm line 5.<br />
Compilation failed in require at script/biber-darwin line 20.<br />
BEGIN failed--compilation aborted at script/biber-darwin line 20.<br />
</code></p>
<p>Now, what fixes this is simply deleting the par cache:<br />
<code><br />
sudo rm -rf /var/folders/5c/y7ssnfgj2fz1fnx1gz_z7ng80000gn/T/par-porten/<br />
</code></p>
<p>Sources:</p>
<ul>
<li><a href="http://humtex.wordpress.com/2011/11/29/biber-first-aid-for-data-source-not-found/">Andrew Goldstone&#8217;s Blog</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/UeaepE5evvhOAtEReSgpStNPW2g/0/da"><img src="http://feedads.g.doubleclick.net/~a/UeaepE5evvhOAtEReSgpStNPW2g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/UeaepE5evvhOAtEReSgpStNPW2g/1/da"><img src="http://feedads.g.doubleclick.net/~a/UeaepE5evvhOAtEReSgpStNPW2g/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/van-porten/XRYM/~4/8-Xs-sX00dU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.van-porten.de/2012/01/what-to-do-if-biber-stops-working-on-macos-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.van-porten.de/2012/01/what-to-do-if-biber-stops-working-on-macos-x/</feedburner:origLink></item>
		<item>
		<title>Running WindowTester Pro from Maven/Tycho</title>
		<link>http://feedproxy.google.com/~r/van-porten/XRYM/~3/vU-oWmLOSUY/</link>
		<comments>http://www.van-porten.de/2012/01/running-windowtester-pro-from-maventycho/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 11:40:38 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[tycho]]></category>
		<category><![CDATA[windowtester pro]]></category>

		<guid isPermaLink="false">http://www.van-porten.de/?p=1607</guid>
		<description><![CDATA[Running SWTBot tests as part of your maven/tycho build cycle is rather well documented and pretty straight forward (see for example the sonatype docs). Doing so with a WindowTester Pro recorded test is not &#8211; but then again it is &#8230; <a href="http://www.van-porten.de/2012/01/running-windowtester-pro-from-maventycho/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Running SWTBot tests as part of your maven/tycho build cycle is rather well documented and pretty straight forward (see for example the <a href="https://docs.sonatype.org/display/TYCHO/How+to+run+SWTBot+tests+with+Tycho" title="How to run SWTBot tests with Tycho" target="_blank">sonatype docs</a>). Doing so with a <a href="http://code.google.com/javadevtools/wintester/html/index.html" title="Google WindowTester Pro" target="_blank">WindowTester Pro</a> recorded test is not &#8211; but then again it is pretty straigt forward as well.</p>
<p>There are just two things that you need to change from the SWTBot tests pom.xml (as presented in the <a href="https://docs.sonatype.org/display/TYCHO/How+to+run+SWTBot+tests+with+Tycho" title="How to run SWTBot tests with Tycho" target="_blank">sonatype docs</a>):</p>
<ul>
<li>have <strong>useUIThread = true</strong></li>
<li>add a dependecy to <strong>com.windowtester.runtime.feature.group</strong> to pull in platform specific plugins</li>
</ul>
<p>You will also need to tell maven/tycho where to find the latter feature, of course, by adding <a href="http://dl.google.com/eclipse/inst/windowtester/beta/3.7">http://dl.google.com/eclipse/inst/windowtester/beta/3.7</a> to your repositories.</p>
<p>Full sample pom.xml after the break.<br />
<span id="more-1607"></span></p><pre><code>&lt; ?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;project xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;
  xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
  &lt;modelversion&gt;4.0.0&lt;/modelversion&gt;
  &lt;parent&gt;
    &lt;artifactid&gt;de.van_porten.vrest.build&lt;/artifactid&gt;
    &lt;groupid&gt;de.van_porten&lt;/groupid&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;relativepath&gt;../de.van_porten.vrest.build&lt;/relativepath&gt;
  &lt;/parent&gt;
  &lt;groupid&gt;de.van_porten&lt;/groupid&gt;
  &lt;artifactid&gt;de.van_porten.vrest.tests.recorded&lt;/artifactid&gt;
  &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;eclipse-test-plugin&lt;/packaging&gt;

  &lt;repositories&gt;
    &lt;repository&gt;
      &lt;id&gt;windowtester&lt;/id&gt;
      &lt;layout&gt;p2&lt;/layout&gt;
      &lt;url&gt;http://dl.google.com/eclipse/inst/windowtester/beta/3.7&lt;/url&gt;
    &lt;/repository&gt;
  &lt;/repositories&gt;

  &lt;build&gt;
    &lt;plugins&gt;
      &lt;plugin&gt;
        &lt;groupid&gt;org.eclipse.tycho&lt;/groupid&gt;
        &lt;artifactid&gt;tycho-surefire-plugin&lt;/artifactid&gt;
        &lt;version&gt;${tycho-version}&lt;/version&gt;

        &lt;configuration&gt;
          &lt;testsuite&gt;de.van_porten.vrest.tests.recorded&lt;/testsuite&gt;
          &lt;testclass&gt;de.van_porten.vrest.tests.recorded.AllTests&lt;/testclass&gt;

          &lt;useuiharness&gt;true&lt;/useuiharness&gt;
          &lt;useuithread&gt;true&lt;/useuithread&gt;
          &lt;!-- use our product and application to launch the tests --&gt;
          &lt;product&gt;de.van_porten.vrest.bundle.product&lt;/product&gt;
          &lt;application&gt;org.eclipse.ui.ide.workbench&lt;/application&gt;

          &lt;dependencies&gt;
            &lt;dependency&gt;
              &lt;type&gt;p2-installable-unit&lt;/type&gt;
              &lt;artifactid&gt;com.windowtester.runtime.feature.group&lt;/artifactid&gt;
              &lt;version&gt;0.0.0&lt;/version&gt;
            &lt;/dependency&gt;
          &lt;/dependencies&gt;
        &lt;/configuration&gt;

      &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/build&gt;


  &lt;profiles&gt;
    &lt;profile&gt;
      &lt;id&gt;osx&lt;/id&gt;
      &lt;activation&gt;
        &lt;property&gt;
          &lt;name&gt;java.vendor.url&lt;/name&gt;
          &lt;value&gt;http://www.apple.com/&lt;/value&gt;
        &lt;/property&gt;
      &lt;/activation&gt;
      &lt;build&gt;
        &lt;pluginmanagement&gt;
          &lt;plugins&gt;
            &lt;plugin&gt;
              &lt;groupid&gt;org.eclipse.tycho&lt;/groupid&gt;
              &lt;artifactid&gt;tycho-surefire-plugin&lt;/artifactid&gt;
              &lt;version&gt;${tycho-version}&lt;/version&gt;
              &lt;configuration&gt;
                &lt;argline&gt;-XstartOnFirstThread&lt;/argline&gt;
              &lt;/configuration&gt;
            &lt;/plugin&gt;
          &lt;/plugins&gt;
        &lt;/pluginmanagement&gt;
      &lt;/build&gt;
    &lt;/profile&gt;
  &lt;/profiles&gt;

&lt;/project&gt;</code></pre>

<p><a href="http://feedads.g.doubleclick.net/~a/obVxxtZwTvH0m9oe1iXohuajgqw/0/da"><img src="http://feedads.g.doubleclick.net/~a/obVxxtZwTvH0m9oe1iXohuajgqw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/obVxxtZwTvH0m9oe1iXohuajgqw/1/da"><img src="http://feedads.g.doubleclick.net/~a/obVxxtZwTvH0m9oe1iXohuajgqw/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/van-porten/XRYM/~4/vU-oWmLOSUY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.van-porten.de/2012/01/running-windowtester-pro-from-maventycho/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.van-porten.de/2012/01/running-windowtester-pro-from-maventycho/</feedburner:origLink></item>
		<item>
		<title>Running Tycho in Jenkins/Hudson</title>
		<link>http://feedproxy.google.com/~r/van-porten/XRYM/~3/TnAAbF6ub6k/</link>
		<comments>http://www.van-porten.de/2012/01/running-tycho-in-jenkinshudson/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 16:56:19 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[ci]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[hudson]]></category>
		<category><![CDATA[jenkins]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[tycho]]></category>

		<guid isPermaLink="false">http://www.van-porten.de/?p=1601</guid>
		<description><![CDATA[When I first started running my Tycho/Maven build of my visual editor in Jenkins the build would always fail if a single test failed. That was mainly because the Maven build would run the surefire test automatically but cancel the &#8230; <a href="http://www.van-porten.de/2012/01/running-tycho-in-jenkinshudson/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When I first started running my Tycho/Maven build of my visual editor in Jenkins the build would always fail if a single test failed. That was mainly because the Maven build would run the surefire test automatically but cancel the build if there were any failures in them. In turn, this would not keep artifacts from being generated and thus not create a new snapshot release. To make matters worse, my tests are not that stable yet &#8211; running them on Linux sometimes fails for no reason whatsoever, leading to yet another broken build.</p>
<p>Now, this is obviously not what you (or Jenkins, for that matter) would expect to happen. What I wanted and what I guess you would normally want is for the build to pass but for Jenkins to mark the build as &#8220;unstable&#8221;.</p>
<p>To acomplish this on the command line, you simply need to tell Maven to ignore test failures<br />
<code>mvn clean install -Dmaven.test.failure.ignore=true</code></p>
<p>With Jenkins, this is equally straight forward:<br />
<a href="http://www.van-porten.de/wp-content/uploads/2012/01/vREST-Config-Jenkins-Mozilla-Firefox_2012-01-21_17-45-38.png"><img class="aligncenter size-medium wp-image-1602" title="Jenkins Configuration" src="http://www.van-porten.de/wp-content/uploads/2012/01/vREST-Config-Jenkins-Mozilla-Firefox_2012-01-21_17-45-38-300x236.png" alt="" width="300" height="236" /></a></p>
<p>Now Jenkins acts nicely and reports unstable builds while still producing all artifacts.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/0ujos-lHIX0e3ON1j56uew0bKg8/0/da"><img src="http://feedads.g.doubleclick.net/~a/0ujos-lHIX0e3ON1j56uew0bKg8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/0ujos-lHIX0e3ON1j56uew0bKg8/1/da"><img src="http://feedads.g.doubleclick.net/~a/0ujos-lHIX0e3ON1j56uew0bKg8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/van-porten/XRYM/~4/TnAAbF6ub6k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.van-porten.de/2012/01/running-tycho-in-jenkinshudson/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.van-porten.de/2012/01/running-tycho-in-jenkinshudson/</feedburner:origLink></item>
		<item>
		<title>Somebody That I Used to Know – Walk off the Earth (Gotye – Cover) – YouTube</title>
		<link>http://feedproxy.google.com/~r/van-porten/XRYM/~3/2yaShQtreG8/</link>
		<comments>http://www.van-porten.de/2012/01/somebody-that-i-used-to-know-walk-off-the-earth-gotye-cover-youtube/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 22:11:30 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Randomness]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://www.van-porten.de/?p=1594</guid>
		<description><![CDATA[I rarely share anything other then tech-stuff, but this cover of Gotye&#8217;s No. 1 single &#8220;Somebody that I used to know&#8221; is just great. Somebody That I Used to Know &#8211; Walk off the Earth (Gotye &#8211; Cover) &#8211; YouTube.]]></description>
			<content:encoded><![CDATA[<p>I rarely share anything other then tech-stuff, but this cover of Gotye&#8217;s No. 1 single &#8220;Somebody that I used to know&#8221; is just great.</p>
<p><iframe width="560" height="315" src="http://www.youtube.com/embed/d9NF2edxy-M" frameborder="0" allowfullscreen></iframe></p>
<p><a href="http://www.youtube.com/watch?v=d9NF2edxy-M&amp;feature=youtu.be">Somebody That I Used to Know &#8211; Walk off the Earth (Gotye &#8211; Cover) &#8211; YouTube</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/imxdMsLCHAatqaQ8HvE1sTD3Clw/0/da"><img src="http://feedads.g.doubleclick.net/~a/imxdMsLCHAatqaQ8HvE1sTD3Clw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/imxdMsLCHAatqaQ8HvE1sTD3Clw/1/da"><img src="http://feedads.g.doubleclick.net/~a/imxdMsLCHAatqaQ8HvE1sTD3Clw/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/van-porten/XRYM/~4/2yaShQtreG8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.van-porten.de/2012/01/somebody-that-i-used-to-know-walk-off-the-earth-gotye-cover-youtube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.van-porten.de/2012/01/somebody-that-i-used-to-know-walk-off-the-earth-gotye-cover-youtube/</feedburner:origLink></item>
		<item>
		<title>vRest maven build finally working</title>
		<link>http://feedproxy.google.com/~r/van-porten/XRYM/~3/qw9Alcnhn0s/</link>
		<comments>http://www.van-porten.de/2011/11/vrest-maven-build-finally-working/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 21:23:50 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[FernUni]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.van-porten.de/?p=1577</guid>
		<description><![CDATA[I finally managed to get the Maven-based build of my Eclipse-based graphical editor to work &#8211; including unit and swtbot-ui tests: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] de.van_porten.vrest.build ......................... SUCCESS [0.077s] [INFO] de.van_porten.vrest.target-platform ............... SUCCESS [0.112s] [INFO] de.van_porten.vrest.core .......................... &#8230; <a href="http://www.van-porten.de/2011/11/vrest-maven-build-finally-working/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I finally managed to get the Maven-based build of my Eclipse-based graphical editor to work &#8211; including unit and swtbot-ui tests:<br />
<code><br />
[INFO] ------------------------------------------------------------------------<br />
[INFO] Reactor Summary:<br />
[INFO]<br />
[INFO] de.van_porten.vrest.build ......................... SUCCESS [0.077s]<br />
[INFO] de.van_porten.vrest.target-platform ............... SUCCESS [0.112s]<br />
[INFO] de.van_porten.vrest.core .......................... SUCCESS [2.842s]<br />
[INFO] de.van_porten.vrest.core.edit ..................... SUCCESS [0.869s]<br />
[INFO] de.van_porten.vrest.core.editor ................... SUCCESS [0.829s]<br />
[INFO] de.van_porten.vrest.bundle ........................ SUCCESS [0.105s]<br />
[INFO] de.van_porten.vrest.help .......................... SUCCESS [0.076s]<br />
[INFO] de.van_porten.vrest.ui ............................ SUCCESS [1.387s]<br />
[INFO] de.van_porten.vrest.ui.properties ................. SUCCESS [3.650s]<br />
[INFO] de.van_porten.vrest.feature ....................... SUCCESS [0.113s]<br />
[INFO] de.van_porten.vrest ............................... SUCCESS [1:08.099s]<br />
[INFO] de.van_porten.vrest.tests.core .................... SUCCESS [4.087s]<br />
[INFO] de.van_porten.vrest.tests.ui ...................... SUCCESS [13.315s]<br />
[INFO] de.van_porten.vrest.p2-repository ................. SUCCESS [2.498s]<br />
[INFO] ------------------------------------------------------------------------<br />
[INFO] BUILD SUCCESS<br />
[INFO] ------------------------------------------------------------------------<br />
[INFO] Total time: 3:02.410s<br />
[INFO] Finished at: Sat Nov 26 22:22:30 CET 2011<br />
[INFO] Final Memory: 97M/231M<br />
[INFO] ------------------------------------------------------------------------<br />
</code></p>
<p>I&#8217;ll push to Jenkins now and see if the continous build and test also works there. Cross your fingers.</p>
<p>The one thing that is bugging me is an oddness with my target platform defintion that for some reason doesn&#8217;t want to resolve org.apache.batik.* properly &#8211; once I switch target to the development platform everything works as expected. But I will figure that one out eventually .. </p>
<p>More on the culprits and solutions I have to follow shortly.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/GFRIq-fFMdic6mJeSs9ds5K8NNU/0/da"><img src="http://feedads.g.doubleclick.net/~a/GFRIq-fFMdic6mJeSs9ds5K8NNU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/GFRIq-fFMdic6mJeSs9ds5K8NNU/1/da"><img src="http://feedads.g.doubleclick.net/~a/GFRIq-fFMdic6mJeSs9ds5K8NNU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/van-porten/XRYM/~4/qw9Alcnhn0s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.van-porten.de/2011/11/vrest-maven-build-finally-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.van-porten.de/2011/11/vrest-maven-build-finally-working/</feedburner:origLink></item>
		<item>
		<title>CUnit-to-JUnit transform now on BitBucket</title>
		<link>http://feedproxy.google.com/~r/van-porten/XRYM/~3/kr99Du256lY/</link>
		<comments>http://www.van-porten.de/2011/09/cunit-to-junit-transform-now-on-bitbucket/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 08:20:58 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[ci]]></category>
		<category><![CDATA[cunit]]></category>
		<category><![CDATA[hudson]]></category>
		<category><![CDATA[jenkins]]></category>
		<category><![CDATA[junit]]></category>
		<category><![CDATA[xslt]]></category>

		<guid isPermaLink="false">http://www.van-porten.de/?p=1568</guid>
		<description><![CDATA[One of the most visited blog entries on this blog probably is my article on transforming CUnit results to JUnit results: CUnit Tests in Hudson. There I write about how to use xsltproc to transform the output of CUnit to &#8230; <a href="http://www.van-porten.de/2011/09/cunit-to-junit-transform-now-on-bitbucket/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the most visited blog entries on this blog probably is my article on transforming <a href="http://cunit.sourceforge.net/" title="CUnit" target="_blank">CUnit</a> results to JUnit results: <a href="http://www.van-porten.de/2009/05/cunit-tests-in-hudson/" title="CUnit Tests in Hudson" target="_blank">CUnit Tests in Hudson</a>. There I write about how to use <a href="http://xmlsoft.org/XSLT/xsltproc2.html" title="XSLTproc" target="_blank">xsltproc</a> to transform the output of CUnit to be processed by <a href="http://hudson-ci.org/" title="Hudson CI" target="_blank">Hudson</a>/<a href="http://jenkins-ci.org/" title="Jenkins CI" target="_blank">Jenkins</a>. </p>
<p>Now, I decided to put the file on <a href="http://www.bitbucket.org" title="BitBucket" target="_blank">BitBucket</a> to maybe consolidate the contributions or changes others are making. I welcome everybody to make contributions to the transform there. </p>
<p>The link to the BitBucket project is: <a href="https://bitbucket.org/mcdeck/cunit-to-junit" title="https://bitbucket.org/mcdeck/cunit-to-junit" target="_blank">https://bitbucket.org/mcdeck/cunit-to-junit</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/riVuIC2zrsx2Wl86U3f-Zi1PDq4/0/da"><img src="http://feedads.g.doubleclick.net/~a/riVuIC2zrsx2Wl86U3f-Zi1PDq4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/riVuIC2zrsx2Wl86U3f-Zi1PDq4/1/da"><img src="http://feedads.g.doubleclick.net/~a/riVuIC2zrsx2Wl86U3f-Zi1PDq4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/van-porten/XRYM/~4/kr99Du256lY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.van-porten.de/2011/09/cunit-to-junit-transform-now-on-bitbucket/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.van-porten.de/2011/09/cunit-to-junit-transform-now-on-bitbucket/</feedburner:origLink></item>
		<item>
		<title>DIY NAS #1: Introduction</title>
		<link>http://feedproxy.google.com/~r/van-porten/XRYM/~3/cw9memzmYPk/</link>
		<comments>http://www.van-porten.de/2011/08/nas-diy-1-introduction/#comments</comments>
		<pubDate>Sun, 07 Aug 2011 11:41:40 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Home Improvement]]></category>
		<category><![CDATA[DYI]]></category>
		<category><![CDATA[NAS]]></category>

		<guid isPermaLink="false">http://www.van-porten.de/?p=1539</guid>
		<description><![CDATA[I&#8217;ve been pondering the thought of buying a NAS system for quite some time now but could not find a suitable one. My requirements are quite challenging though, I must admit: Silent: I want to run the system near my &#8230; <a href="http://www.van-porten.de/2011/08/nas-diy-1-introduction/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been pondering the thought of buying a <a href="http://en.wikipedia.org/wiki/Network-attached_storage" target="_blank">NAS</a> system for quite some time now but could not find a suitable one. My requirements are quite challenging though, I must admit: </p>
<ul>
<li>Silent: I want to run the system near my desk so it has to be very silent. (And I mean super-silent &#8211; not just a little silent)</li>
<li>Fast: Access to the drives has to be fast.</li>
<li>Feature-Rich Software: I want to use the NAS primarily as a NAS, but it should offer features like BT downloading and the like. It should also act as a iTunes and/or DLNA server.</li>
<li>Hardware Features:
<ul>
<li>Wake-On-Lan / Wake-on-Wan</li>
<li>Inegrated WLAN Adapter</li>
<li>Raid 1, 5 or 10; 10 preferred</li>
</ul>
</li>
</ul>
<p>I bought some off-the-shelf NAS, namely the <a href="http://www.synology.com/us/products/DS411slim/index.php" target="_blank">Synology DS411slim</a> and the <a href="http://www.acer.de/ac/de/DE/content/home-server" target="_blank">Acer easyStore H341</a>. Both were decent devices but were not really up to the challenge. I ended up returning both of them.</p>
<p><span id="more-1539"></span></p>
<p>The easyStore was fast and feature-rich, running <a href="http://en.wikipedia.org/wiki/Windows_Home_Server" target="_blank">Windows Home Server</a> (not 2011, though, but the old one). However, it was noisy which I could not stand.</p>
<p>The DS411slim was silent enough and had some nice features via <a href="http://www.synology.com/dsm/index.php?lang=enu" target="_blank">DiskStation Manager</a>, but felt painfully slow when copying to and from the device. Plus it was rather expensive, working with 2.5&#8243; HDDs, and thus also very limited in storage capacity (4x1GB maximum).</p>
<p>After searching for some days now for suitably silent yet powerful device I could not come up with something good. There is the <a href="http://www.wdc.com/en/products/products.aspx?id=290" target="_blank">Western Digitial MyBook WorldEdition II</a> but that did not receive many positive comments on Amazon (for example). Some even state it tends to loose data, which is quite against the point of buying a NAS in the first place. Also Buffalo seems to offers some decent devices but they are either only single drive solutions like the <a href="http://www.buffalotech.com/products/network-storage/home-and-small-office/linkstation-live-ls-chl/" target="_blank">LinkStation Live LS-CHL</a> or &#8211; like the <a href="http://www.buffalotech.com/products/network-storage/home-and-small-office/linkstation-pro-duo-ls-wvlr1/" target="_blank">LinkStation Pro Duo LS-WVLR1</a> &#8211; not very reliable (from what <a href="http://www.smallnetbuilder.com/content/view/30295/75/" target="_blank">reviews</a> say).</p>
<p>Other devices from QNAP (<a href="http://www.qnap.com/pro_detail_feature.asp?p_id=183" target="_blank">TS-419P+</a>), Synology (<a href="http://www.synology.com/products/spec.php?product_name=DS411%2BII&#038;lang=enu#p_submenu" target="_blank">DS411+II</a>, <a href="http://www.synology.com/us/products/ds410/index.php" target="_blank">DS410</a>) and Thecus (<a href="http://www.thecus.com/product.php?PROD_ID=30" target="_blank">N4200</a>) all seem viable options. I feel though that any single one of them has one flaw or another. </p>
<p>The QNAP TS-419P+ seems to be quite silent (though I could not find any absolute numbers yet) and offers RAID5. It runs an embedded linux and has a download manager built in. It feels quite pricy though at about €480,- (<a href="http://www.amazon.de/gp/product/B0047WHUMS/ref=as_li_ss_tl?ie=UTF8&#038;tag=deadia-21&#038;linkCode=as2&#038;camp=1638&#038;creative=19454&#038;creativeASIN=B0047WHUMS">Amazon</a><img src="http://www.assoc-amazon.de/e/ir?t=&#038;l=as2&#038;o=3&#038;a=B0047WHUMS" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />) without HDDs. The same holds basically for the DS411+II, which is even more pricy at €520,- (<a href="http://www.amazon.de/gp/product/B004CRH8HA/ref=as_li_ss_tl?ie=UTF8&#038;tag=deadia-21&#038;linkCode=as2&#038;camp=1638&#038;creative=19454&#038;creativeASIN=B004CRH8HA">Amazon</a><img src="http://www.assoc-amazon.de/e/ir?t=&#038;l=as2&#038;o=3&#038;a=B004CRH8HA" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />) without any drives again. The same holds for the DS410 at around €450,- (<a href="http://www.amazon.de/gp/product/B003A7OMS6/ref=as_li_ss_tl?ie=UTF8&#038;tag=deadia-21&#038;linkCode=as2&#038;camp=1638&#038;creative=19454&#038;creativeASIN=B003A7OMS6">Amazon</a><img src="http://www.assoc-amazon.de/e/ir?t=&#038;l=as2&#038;o=3&#038;a=B003A7OMS6" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />). Sadly, also the Thecus N4200 runs at a stunning €440,- (<a href="http://www.amazon.de/gp/product/B0034EG0TO/ref=as_li_ss_tl?ie=UTF8&#038;tag=deadia-21&#038;linkCode=as2&#038;camp=1638&#038;creative=19454&#038;creativeASIN=B0034EG0TO">Amazon</a><img src="http://www.assoc-amazon.de/e/ir?t=&#038;l=as2&#038;o=3&#038;a=B0034EG0TO" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />). Also none of the above come with an integrated WLAN adapter.</p>
<p>That said, you can begin to feel that you should check other options as well, but which would that be? Easy: build your own NAS! That can&#8217;t be more expensive, can it? The downside obviously is that it is a bit more work to set up such a system and also the maintenance might be harder. On the upside, you are free in choice of operating system and features and you could think about transforming your NAS into a HTPC if you chose components carefully. Also of interest is the question of power consumption compared to the other, more integrated solutions and lastly also the price of the rig. </p>
<p>In the next part of this article series I will present a selection of components that could be used to build a DIY NAS/HomeServer to suit my needs. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/azA1Mru67ZFnBRd7W6fmSfAsNCM/0/da"><img src="http://feedads.g.doubleclick.net/~a/azA1Mru67ZFnBRd7W6fmSfAsNCM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/azA1Mru67ZFnBRd7W6fmSfAsNCM/1/da"><img src="http://feedads.g.doubleclick.net/~a/azA1Mru67ZFnBRd7W6fmSfAsNCM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/van-porten/XRYM/~4/cw9memzmYPk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.van-porten.de/2011/08/nas-diy-1-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.van-porten.de/2011/08/nas-diy-1-introduction/</feedburner:origLink></item>
		<item>
		<title>Setting default applications in Ubuntu 10.10</title>
		<link>http://feedproxy.google.com/~r/van-porten/XRYM/~3/HfEfVNCXORc/</link>
		<comments>http://www.van-porten.de/2011/02/setting-default-applications-in-ubuntu-10-10/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 22:15:59 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.van-porten.de/?p=1519</guid>
		<description><![CDATA[After installing Adobe Reader into my Ubuntu installation I noticed that the Adobe Reader was actually making itself at home as the default viewer for PDF files. However, I do only rarely use it because I feel that the Ubuntu &#8230; <a href="http://www.van-porten.de/2011/02/setting-default-applications-in-ubuntu-10-10/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After installing Adobe Reader into my Ubuntu installation I noticed that the Adobe Reader was actually making itself at home as the default viewer for PDF files. However, I do only rarely use it because I feel that the Ubuntu Document Viewer (aka evince) is the quicker and better solution most of the time.</p>
<p>Now, I could change the default for double-clicking by going through any PDF file&#8217;s <strong>Properties->Open With</strong> and selecting <em>Document Viewer</em> there. Firefox and Thunderbird for one thing did not really seem to care at all about this, though. Both kept using Adobe Reader to open PDF files when double-clicking in the download window and only offered the reader as the default in the file save dialog.</p>
<p>To work around this problem, I came up with a solution using <strong>xdg-mime</strong>.</p>
<p>In a terminal, I did</p><pre><code>porten@lx-porten:~$ xdg-mime query default application/pdf
acroread.desktop

porten@lx-porten:~$ sudo xdg-mime default evince.desktop application/pdf

porten@lx-porten:~$ xdg-mime query default application/pdf
evince.desktop</code></pre>
<p>Obviously the important part is the <strong>xdg-mime default</strong>. I would actually have expected setting the default via the file properties to have the same effect, but alas, it does not.</p>
<p><strong>References:</strong><br />
<a href="https://bbs.archlinux.org/viewtopic.php?pid=732724">https://bbs.archlinux.org/viewtopic.php?pid=732724</a><br />
<a href="http://manpages.ubuntu.com/manpages/maverick/man1/xdg-mime.1.html">http://manpages.ubuntu.com/manpages/maverick/man1/xdg-mime.1.html</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/Fw1bNpId2Q73ba_4g6f2ZInmiU4/0/da"><img src="http://feedads.g.doubleclick.net/~a/Fw1bNpId2Q73ba_4g6f2ZInmiU4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Fw1bNpId2Q73ba_4g6f2ZInmiU4/1/da"><img src="http://feedads.g.doubleclick.net/~a/Fw1bNpId2Q73ba_4g6f2ZInmiU4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/van-porten/XRYM/~4/HfEfVNCXORc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.van-porten.de/2011/02/setting-default-applications-in-ubuntu-10-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.van-porten.de/2011/02/setting-default-applications-in-ubuntu-10-10/</feedburner:origLink></item>
		<item>
		<title>Testing XMLRPC Controllers in Pylons</title>
		<link>http://feedproxy.google.com/~r/van-porten/XRYM/~3/T2uo-FiSKxU/</link>
		<comments>http://www.van-porten.de/2011/01/testing-xmlrpc-controllers-in-pylons/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 12:34:30 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Pylons]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[webtest]]></category>
		<category><![CDATA[xmlrpc]]></category>
		<category><![CDATA[XMLRPCController]]></category>

		<guid isPermaLink="false">http://www.van-porten.de/?p=1513</guid>
		<description><![CDATA[Testing is one of the essential tasks in modern software development, so it is only natural to want to test an application as thoroughly as possible. I&#8217;m currently working on an application that offers a service via xmlrpc. For a &#8230; <a href="http://www.van-porten.de/2011/01/testing-xmlrpc-controllers-in-pylons/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Testing is one of the essential tasks in modern software development, so it is only natural to want to test an application as thoroughly as possible.</p>
<p>I&#8217;m currently working on an application that offers a service via xmlrpc. For a client side implementaion I use python&#8217;s <a href="http://docs.python.org/library/xmlrpclib.html">xmlrpclib</a> and that is working well. Then again, I obviously want to test the xmlrpc functionality also during regular unit and functional tests and not only using the client. What&#8217;s more, having to instantiate a server to be able to run tests is cumbersome at best.</p>
<p>Unfortunatly, Pylons does not offer a method to test xmlrpc controllers out of the box. The solution I found is not quite as complicated as I had feared at first. Read more after the break.<br />
<span id="more-1513"></span></p>
<p>For the above mentiond reasons, here is my solution for testing a XMLRPCController in Pylons using a mock transport for xmlrpclib.<br />
This solution is largely based on the excellent post by <a href="http://schurger.org/wordpress/2009/12/unit-tests-with-pylons-and-its-xmlrpccontroller/">Jean Schruger on his Blog</a> .</p>
<pre><code>from myapp.tests import *

import sys
from StringIO import StringIO
import xmlrpclib
from xmlrpclib import ServerProxy

class WSGILikeHTTP(object):
  def __init__(self, host, app):
    self.app = app
    self.headers = {}
    self.content = StringIO()
 
  def putrequest(self, method, handler):
    self.method = method
    self.handler = handler
 
  def putheader(self, key, value):
    self.headers[key] = value
 
  def endheaders(self):
    pass
 
  def send(self, body):
    self.body = body
 
  def getfile(self):
    return self.content

  def getreply(self):
    if self.method == &quot;POST&quot;:
      r = self.app.post(self.handler,
                        headers = self.headers,
                        params = self.body )
      self.content = StringIO(r.response.unicode_body)
    return (200, None, None)

class WSGIAppTransport(xmlrpclib.Transport):
  # Only here to pass the 'app'
  def __init__(self, app):
    xmlrpclib.Transport.__init__(self)
    self.app = app

  # return the fake httplib.HTTP(host)
  def make_connection(self, host):
    host, extra_headers, x509 = self.get_host_info(host)
    return WSGILikeHTTP(host, self.app)
  

class TestXmlrpcController(TestController):

    def test_index(self):
      server = ServerProxy('http://admin:admin@dummy/xmlrpc',
                            transport=WSGIAppTransport(self.app))
      print &gt;&gt; sys.stderr, server.system.listMethods()</code></pre>

<p><a href="http://feedads.g.doubleclick.net/~a/WEzMINHGpBzCRHUL5SmDg_guke8/0/da"><img src="http://feedads.g.doubleclick.net/~a/WEzMINHGpBzCRHUL5SmDg_guke8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/WEzMINHGpBzCRHUL5SmDg_guke8/1/da"><img src="http://feedads.g.doubleclick.net/~a/WEzMINHGpBzCRHUL5SmDg_guke8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/van-porten/XRYM/~4/T2uo-FiSKxU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.van-porten.de/2011/01/testing-xmlrpc-controllers-in-pylons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.van-porten.de/2011/01/testing-xmlrpc-controllers-in-pylons/</feedburner:origLink></item>
		<item>
		<title>Pylons and Apache with repoze.who BasicAuth</title>
		<link>http://feedproxy.google.com/~r/van-porten/XRYM/~3/aXefWylDJQ4/</link>
		<comments>http://www.van-porten.de/2011/01/pylons-and-apache-with-repoze-who-basicauth/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 10:44:36 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Pylons]]></category>
		<category><![CDATA[repoze]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[xmlrpc]]></category>

		<guid isPermaLink="false">http://www.van-porten.de/?p=1500</guid>
		<description><![CDATA[To be able to use Basic Authentification in repoze.who running in a wsgi app in your Apache installation, you need to tell Apache to WSGIPassAuthorization. An Apache configuration like this will do: # Setup mod_wsgi WSGIPythonHome /var/www/pylons/runtime WSGIScriptAlias /myApp /var/www/pylons/myApp/mod_wsgi/dispatch.wsgi &#8230; <a href="http://www.van-porten.de/2011/01/pylons-and-apache-with-repoze-who-basicauth/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To be able to use Basic Authentification in repoze.who running in a wsgi app in your Apache installation, you need to tell Apache to <strong>WSGIPassAuthorization</strong>. An Apache configuration like this will do:</p>
<pre><code># Setup mod_wsgi
WSGIPythonHome /var/www/pylons/runtime
WSGIScriptAlias /myApp /var/www/pylons/myApp/mod_wsgi/dispatch.wsgi
WSGIPassAuthorization On

&lt;directory /var/www/pylons/myApp/mod_wsgi&gt;
Order deny,allow
Allow from all
&lt;/directory&gt;</code></pre>
<p>The importanat part here is</p><pre><code>WSGIPassAuthorization On</code></pre>
<p>This will pass HTTP authorisation headers through to the WSGI application.</p>
<p>Sources: <a href="http://www.mail-archive.com/repoze-dev@lists.repoze.org/msg02894.html">Repoze-dev Mailing List</a>, <a href="http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPassAuthorization">modwsgi Wiki</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/fJBW_8VXiOF-t0Dxdz0OcV0Dq-A/0/da"><img src="http://feedads.g.doubleclick.net/~a/fJBW_8VXiOF-t0Dxdz0OcV0Dq-A/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/fJBW_8VXiOF-t0Dxdz0OcV0Dq-A/1/da"><img src="http://feedads.g.doubleclick.net/~a/fJBW_8VXiOF-t0Dxdz0OcV0Dq-A/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/van-porten/XRYM/~4/aXefWylDJQ4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.van-porten.de/2011/01/pylons-and-apache-with-repoze-who-basicauth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.van-porten.de/2011/01/pylons-and-apache-with-repoze-who-basicauth/</feedburner:origLink></item>
	</channel>
</rss>

