<?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>logic involved</title> <atom:link href="http://www.coliena.com/blog/feed/" rel="self" type="application/rss+xml" /><link>http://www.coliena.com/blog</link> <description>... more often than not ...</description> <lastBuildDate>Sat, 21 Jan 2012 18:09:36 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>SELinux on Android</title><link>http://www.coliena.com/blog/2012/01/selinux-on-android/</link> <comments>http://www.coliena.com/blog/2012/01/selinux-on-android/#comments</comments> <pubDate>Sat, 14 Jan 2012 14:41:38 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[life out there]]></category> <category><![CDATA[android]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[security]]></category><guid
isPermaLink="false">http://www.coliena.com/blog/?p=557</guid> <description><![CDATA[SELinux is coming to Android. Called SEAndroid, the project looks pretty interesting: Some distinctive features of our SE Android reference implementation in comparison to prior efforts of which we are aware include: Per-file security labeling support for yaffs2, Filesystem images (yaffs2 and ext4) labeled at build time, Kernel permission checks controlling Binder IPC, Labeling of [...]]]></description> <content:encoded><![CDATA[<p>SELinux is coming to Android. Called <a
title="SEAndroid" href="http://selinuxproject.org/page/SEAndroid" target="_blank">SEAndroid</a>, the project looks pretty interesting:</p><blockquote><p>Some distinctive features of our SE Android reference implementation in comparison to prior efforts of which we are aware include:</p><ul><li>Per-file security labeling support for yaffs2,</li><li>Filesystem images (yaffs2 and ext4) labeled at build time,</li><li>Kernel permission checks controlling Binder IPC,</li><li>Labeling of service sockets and socket files created by init,</li><li>Labeling of device nodes created by ueventd,</li><li>Flexible, configurable labeling of apps and app data directories,</li><li>Userspace permission checks controlling use of the Zygote socket commands,</li><li>Minimal port of SELinux userspace,</li><li>SELinux support for the Android toolbox,</li><li>Small TE policy written from scratch for Android,</li><li>Confined domains for system services and apps,</li><li>Use of MLS categories to isolate apps.</li></ul></blockquote> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2012/01/selinux-on-android/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>7-Zip really rocks</title><link>http://www.coliena.com/blog/2011/12/7-zip-really-rocks/</link> <comments>http://www.coliena.com/blog/2011/12/7-zip-really-rocks/#comments</comments> <pubDate>Wed, 21 Dec 2011 17:40:20 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[development]]></category> <category><![CDATA[compression]]></category> <category><![CDATA[free]]></category><guid
isPermaLink="false">http://www.coliena.com/blog/?p=548</guid> <description><![CDATA[I just noticed this while getting the latest version of Boost from sf.net: Or as Scott Hanselman put it: &#8220;It&#8217;s over and 7zip won&#8221;.]]></description> <content:encoded><![CDATA[<p>I just noticed this while getting the latest version of Boost from sf.net:<br
/> <a
href="http://www.coliena.com/blog/wp-content/uploads/boost_src.png"><img
src="http://www.coliena.com/blog/wp-content/uploads/boost_src.png" alt="" title="boost_src" width="638" height="255" class="alignleft size-full wp-image-549" /></a></p><p>Or as <a
href="http://www.hanselman.com/blog/ScottHanselmans2011UltimateDeveloperAndPowerUsersToolListForWindows.aspx" title="Scott Hanselmann">Scott Hanselman</a> put it: &#8220;It&#8217;s over and 7zip won&#8221;.</p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2011/12/7-zip-really-rocks/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Comparison of Java Serialisers</title><link>http://www.coliena.com/blog/2011/10/comparison-of-java-serializers/</link> <comments>http://www.coliena.com/blog/2011/10/comparison-of-java-serializers/#comments</comments> <pubDate>Mon, 24 Oct 2011 18:12:30 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[development]]></category> <category><![CDATA[android]]></category> <category><![CDATA[coding]]></category> <category><![CDATA[java]]></category><guid
isPermaLink="false">http://www.coliena.com/blog/?p=541</guid> <description><![CDATA[The JVM Serialisers project provides a very extensive comparison of dozens of different JVM serializers out there. Tested tools include several JSON libs, different XML related libs, Scala, protobuf, protostuf, msgpack and many more. I didn&#8217;t know protostuff before &#8211; it seems to be really amazing! (via tutego)]]></description> <content:encoded><![CDATA[<p>The <a
href="https://github.com/eishay/jvm-serializers/wiki" target="_blank">JVM Serialisers</a> project provides a very extensive comparison of dozens of different JVM serializers out there. Tested tools include several JSON libs, different XML related libs, Scala, protobuf, protostuf, msgpack and many more.<br
/> I didn&#8217;t know <a
href="http://code.google.com/p/protostuff/" target="_blank">protostuff</a> before &#8211; it seems to be really amazing!</p><p>(via <a
href="http://www.tutego.de/blog/javainsel/2011/10/schner-vergleich-von-java-serialisierern/" target="_blank">tutego</a>)</p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2011/10/comparison-of-java-serializers/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Free, Portable FTP Server for Windows</title><link>http://www.coliena.com/blog/2011/06/free-portable-ftp-server-for-windows/</link> <comments>http://www.coliena.com/blog/2011/06/free-portable-ftp-server-for-windows/#comments</comments> <pubDate>Thu, 23 Jun 2011 16:52:17 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[development]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[free]]></category> <category><![CDATA[portable]]></category> <category><![CDATA[windows]]></category><guid
isPermaLink="false">http://coliena.com/blog/?p=515</guid> <description><![CDATA[If you are looking for a really simple, free and portable ftp server for Windows, then visit StahlWorks.com and get their excellent Swiss File Knife. It&#8217;s a single, small executable with no dependencies that brings a ton of features. If you have it, just run &#8230; sfk ftpserv -rw &#8230; and enjoy your zero-install, ultra-portable [...]]]></description> <content:encoded><![CDATA[<p>If you are looking for a really simple, free and portable ftp server for Windows, then visit StahlWorks.com and get their excellent <a
href="http://stahlworks.com/dev/swiss-file-knife.html">Swiss File Knife</a>. It&#8217;s a single, small executable with no dependencies that brings a ton of features. If you have it, just run &#8230;</p><p><code>sfk ftpserv -rw</code></p><p>&#8230; and enjoy your zero-install, ultra-portable ftp server!</p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2011/06/free-portable-ftp-server-for-windows/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Fixing the &#8220;Unable to get webmail password&#8221; problem in Atmail</title><link>http://www.coliena.com/blog/2011/03/fixing-the-unable-to-get-webmail-password-problem-in-atmail/</link> <comments>http://www.coliena.com/blog/2011/03/fixing-the-unable-to-get-webmail-password-problem-in-atmail/#comments</comments> <pubDate>Wed, 09 Mar 2011 20:11:18 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[helpdesk]]></category> <category><![CDATA[bug]]></category> <category><![CDATA[linux]]></category><guid
isPermaLink="false">http://coliena.com/blog/?p=502</guid> <description><![CDATA[Plesk ships Atmail, but the default installation has a minor problem: when you open your webmail site, all you get is a message box saying &#8220;Unable to get webmail password!&#8221;. This is not caused by the user, who might have entered wrong credentials (in fact, he hasn&#8217;t even seen the webmail page yet, let alone [...]]]></description> <content:encoded><![CDATA[<p>Plesk ships <a
href="http://www.atmail.com">Atmail</a>, but the default installation has a minor problem: when you open your webmail site, all you get is a message box saying &#8220;Unable to get webmail password!&#8221;. This is not caused by the user, who might have entered wrong credentials (in fact, he hasn&#8217;t even seen the webmail page yet, let alone entered his password). It&#8217;s caused by Atmail being unable to connect to its MySQL database.<br
/> The origin of this problem is in <em>/var/www/atmail/libs/Atmail/Config.php</em>, line 4:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/etc/psa-webmail/atmail/.atmail.shadow&quot;</span><span style="color: #009900;">&#41;</span></pre></div></div><p>For some reason, the fopen() call fails, but there are several ways of fixing this. The easiest is to get the database password from <em>.atmail.shadow</em> and hard-code it in Config.php.</p><p><strong>Disclaimer:</strong> don&#8217;t do this if you don&#8217;t know exactly what you are doing, why you are doing it and which possible consequences might result.</p><p>Now, change your <em>/var/www/atmail/libs/Atmail/Config.php</em> like this:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//if (!($fd = fopen(&quot;/etc/psa-webmail/atmail/.atmail.shadow&quot;, &quot;r&quot;))) {</span>
<span style="color: #666666; font-style: italic;">//  echo &quot;&lt;script&gt;alert('Unable to get webmail password!')&lt;/script&gt;&quot;;</span>
<span style="color: #666666; font-style: italic;">//  exit();</span>
<span style="color: #666666; font-style: italic;">//}</span>
<span style="color: #666666; font-style: italic;">//fscanf($fd, &quot;%s&quot;, $buff);</span>
<span style="color: #666666; font-style: italic;">//fclose($fd);</span>
<span style="color: #000088;">$buff</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'MySQL_password'</span><span style="color: #339933;">;</span></pre></div></div><p>Note that you changed an Atmail application file, and it is very likely to be reverted by the next Plesk/Atmail update. <a
href='http://coliena.com/blog/wp-content/uploads/atmail_patch.txt'>This patch</a> will be very helpful in that situation.</p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2011/03/fixing-the-unable-to-get-webmail-password-problem-in-atmail/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Extracting .MSI Files</title><link>http://www.coliena.com/blog/2011/02/extracting-msi-files/</link> <comments>http://www.coliena.com/blog/2011/02/extracting-msi-files/#comments</comments> <pubDate>Thu, 24 Feb 2011 17:11:30 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[development]]></category> <category><![CDATA[helpdesk]]></category> <category><![CDATA[hg]]></category> <category><![CDATA[mercurial]]></category> <category><![CDATA[portable]]></category> <category><![CDATA[windows]]></category><guid
isPermaLink="false">http://coliena.com/blog/?p=493</guid> <description><![CDATA[Mercurial is a really nice revision control tool, but unfortunately there are no portable binary packages for Windows. They do offer msi packages, though. But retrieving their content without actually installing the software is a bit tricky. You can just unpack them using 7-zip, but you are likely to get garbage. Using your favorite search [...]]]></description> <content:encoded><![CDATA[<p>Mercurial is a really nice revision control tool, but unfortunately there are no portable binary packages for Windows. They do offer msi packages, though. But retrieving their content without actually installing the software is a bit tricky.<br
/> You can just unpack them using <a
href="http://7-zip.org/">7-zip</a>, but you are likely to get garbage.<br
/> Using your favorite search engine, you will find suggestions to perform an administrative installation using <em>msiexec /a</em>. Well, don&#8217;t. That&#8217;s <a
href="http://msdn.microsoft.com/en-us/library/aa367541%28v=vs.85%29.aspx">just a normal installation</a>, but without the GUI of the installer being shown.</p><p>Fortunately, there is <a
href="http://code.google.com/p/lessmsi/">lessmsi</a>. It allows to open, inspect and extract Windows Installer packages.<br
/> For TortoiseHG, download the binary .msi package from the <a
href="http://mercurial.selenic.com/downloads/">Mercurial homepage</a>. Run lessmsi, open the .msi package and select &#8220;extract&#8221;. Mercurial will be extracted to <em>WheretherYouExtracted\SourceDir\PFiles\TortoiseHg</em>, and the original folder layout of Mercurial will be preserved.</p><p>Lessmsi is provided under the MIT License and does not require installation. Just download, unzip and run it.</p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2011/02/extracting-msi-files/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>&#8220;unbound wildcard type&#8221; errors in Scala</title><link>http://www.coliena.com/blog/2011/02/unbound-wildcard-type-errors-in-scala/</link> <comments>http://www.coliena.com/blog/2011/02/unbound-wildcard-type-errors-in-scala/#comments</comments> <pubDate>Wed, 16 Feb 2011 17:36:17 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[development]]></category> <category><![CDATA[note to self]]></category> <category><![CDATA[scala]]></category><guid
isPermaLink="false">http://coliena.com/blog/?p=474</guid> <description><![CDATA[In Scala 2.8.1, I ran into problems while compiling this: object Test { def log(item: _) : Unit = println(&#34;you logged &#34; + item) &#160; def main(args: Array[String]) : Unit = { log(42) } } The error message wasn&#8217;t not helping that much at the first glance: /home/niels/tmp/test.scala:3: error: unbound wildcard type def log(item: _) [...]]]></description> <content:encoded><![CDATA[<p>In <a
href="http://www.scala-lang.org/">Scala 2.8.1</a>, I ran into problems while compiling this:</p><div
class="wp_syntax"><div
class="code"><pre class="text" style="font-family:monospace;">object Test
{
  def log(item: _) : Unit = 
    println(&quot;you logged &quot; + item)
&nbsp;
  def main(args: Array[String]) : Unit =
  {
    log(42)
  }
}</pre></div></div><p>The error message wasn&#8217;t not helping that much at the first glance:</p><div
class="wp_syntax"><div
class="code"><pre class="text" style="font-family:monospace;">/home/niels/tmp/test.scala:3: error: unbound wildcard type
	def log(item: _) : Unit = 
                      ^</pre></div></div><p>To fix it, change the prototype of the log function like this:</p><div
class="wp_syntax"><div
class="code"><pre class="text" style="font-family:monospace;">	def log(item: Any) : Unit =</pre></div></div><p>There is a pretty good overview of the Scala type hierarchy on the <a
href="http://www.scala-lang.org/node/128">Scala homepage</a>. In short, Scala Objects are subtypes of AnyRef. Primitive types (Int, Boolean, &#8230;) are subtypes of &#8220;AnyVal&#8221;. Both &#8220;AnyRef&#8221; and &#8220;AnyVal&#8221; are subtypes of &#8220;Any&#8221;, and substituting &#8220;Any&#8221; with &#8220;_&#8221; in prototypes and templates is not allowed in Scala 2.8.</p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2011/02/unbound-wildcard-type-errors-in-scala/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Adding Notes to Existing Commits in Git</title><link>http://www.coliena.com/blog/2011/01/adding-notes-to-existing-commits-in-git/</link> <comments>http://www.coliena.com/blog/2011/01/adding-notes-to-existing-commits-in-git/#comments</comments> <pubDate>Fri, 14 Jan 2011 16:25:11 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[development]]></category> <category><![CDATA[git]]></category><guid
isPermaLink="false">http://coliena.com/blog/?p=449</guid> <description><![CDATA[A really nice feature in Git is the ability to add notes to existing commits: git notes add -m 'this concerns the foo issue as well (refs #0815)' 12a3df56 Editing existing notes is pretty easy as well: git notes edit 12a3df56 Make sure to have a look at Evgenys extensive Git guide for further details [...]]]></description> <content:encoded><![CDATA[<p>A really nice feature in Git is the ability to add notes to existing commits:</p><div
class="wp_syntax"><div
class="code"><pre class="text" style="font-family:monospace;">git notes add -m 'this concerns the foo issue as well (refs #0815)' 12a3df56</pre></div></div><p>Editing existing notes is pretty easy as well:</p><div
class="wp_syntax"><div
class="code"><pre class="text" style="font-family:monospace;">git notes edit 12a3df56</pre></div></div><p>Make sure to have a look at <a
href="http://evgeny-goldin.com/wiki/Git">Evgenys extensive Git guide</a> for further details and more hidden gems.</p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2011/01/adding-notes-to-existing-commits-in-git/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>JDK7 and OpenJDK for Mac OS X</title><link>http://www.coliena.com/blog/2011/01/jdk7-and-openjdk-for-mac-os-x/</link> <comments>http://www.coliena.com/blog/2011/01/jdk7-and-openjdk-for-mac-os-x/#comments</comments> <pubDate>Wed, 12 Jan 2011 18:12:31 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[development]]></category> <category><![CDATA[10.6]]></category> <category><![CDATA[java]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[os x]]></category><guid
isPermaLink="false">http://coliena.com/blog/?p=466</guid> <description><![CDATA[Apple won&#8217;t provide further updates to Java, but OpenJDK for Mac OS X is advancing rapidly. Thankfully, TheServerSide.com provides an extensive list of OpenJDK/OS X related links: For more information about the Mac OS X Port project, please check out these resources: Project home: &#60;http://openjdk.java.net/projects/macosx-port&#62; Project wiki &#38; getting started instructions: &#60;http://wikis.sun.com/display/OpenJDK/Mac+OS+X+Port&#62; Project status: &#60;http://wikis.sun.com/display/OpenJDK/Mac+OS+X+Port+Project+Status&#62; [...]]]></description> <content:encoded><![CDATA[<p>Apple won&#8217;t provide further updates to Java, but OpenJDK for Mac OS X is advancing rapidly.<br
/> Thankfully, <a
href="http://www.theserverside.com/discussions/thread.tss?thread_id=61659">TheServerSide.com</a> provides an extensive list of OpenJDK/OS X related links:</p><blockquote><p>For more information about the Mac OS X Port project, please check out these resources:<br
/> Project home: &lt;<a
href="http://openjdk.java.net/projects/macosx-port" target="_blank">http://openjdk.java.net/projects/macosx-port</a>&gt;<br
/> Project wiki &amp; getting started instructions: &lt;<a
href="http://wikis.sun.com/display/OpenJDK/Mac+OS+X+Port" target="_blank">http://wikis.sun.com/display/OpenJDK/Mac+OS+X+Port</a>&gt;<br
/> Project status: &lt;<a
href="http://wikis.sun.com/display/OpenJDK/Mac+OS+X+Port+Project+Status" target="_blank">http://wikis.sun.com/display/OpenJDK/Mac+OS+X+Port+Project+Status</a>&gt;<br
/> Mailing list: &lt;<a
href="http://mail.openjdk.java.net/mailman/listinfo/macosx-port-dev" target="_blank">http://mail.openjdk.java.net/mailman/listinfo/macosx-port-dev</a>&gt;<br
/> Source repository: &lt;<a
href="http://hg.openjdk.java.net/macosx-port/macosx-port" target="_blank">http://hg.openjdk.java.net/macosx-port/macosx-port</a>&gt;</p></blockquote><p>You are looking for binaries? Then head over to the <a
href="http://code.google.com/p/openjdk-osx-build/">opendjk-osx-build</a> project on Google Code (<a
href="http://www.theserverside.com/discussions/thread.tss?thread_id=61657">via</a>).</p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2011/01/jdk7-and-openjdk-for-mac-os-x/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Coping with &#8220;DeprecationWarning: BaseException&#8221; Warnings in Python</title><link>http://www.coliena.com/blog/2011/01/coping-with-deprecationwarning-baseexception-in-python/</link> <comments>http://www.coliena.com/blog/2011/01/coping-with-deprecationwarning-baseexception-in-python/#comments</comments> <pubDate>Thu, 06 Jan 2011 18:50:46 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[development]]></category> <category><![CDATA[python]]></category><guid
isPermaLink="false">http://coliena.com/blog/?p=450</guid> <description><![CDATA[BaseException has been deprecated as of Python 2.6. So if you have something like this in your code &#8230; try: doSomethingStupid&#40;&#41; except MyException, e: print e.message &#8230; you will run in some warnings. This is a quick way to fix those problems: try: doSomethingStupid&#40;&#41; except MyException, e: print str&#40;e&#41;]]></description> <content:encoded><![CDATA[<p>BaseException has been deprecated as of Python 2.6. So if you have something like this in your code &#8230;</p><div
class="wp_syntax"><div
class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">try</span>:
     doSomethingStupid<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">except</span> MyException, e:
     <span style="color: #ff7700;font-weight:bold;">print</span> e.<span style="color: black;">message</span></pre></div></div><p>&#8230; you will run in some warnings. This is a quick way to fix those problems:</p><div
class="wp_syntax"><div
class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">try</span>:
     doSomethingStupid<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">except</span> MyException, e:
     <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #008000;">str</span><span style="color: black;">&#40;</span>e<span style="color: black;">&#41;</span></pre></div></div>]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2011/01/coping-with-deprecationwarning-baseexception-in-python/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: www.coliena.com @ 2012-02-05 23:03:51 by W3 Total Cache -->
