<?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, 28 Apr 2012 11:14:50 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Update on CodePro Profiler</title><link>http://www.coliena.com/blog/2012/04/update-on-codepro-profiler/</link> <comments>http://www.coliena.com/blog/2012/04/update-on-codepro-profiler/#comments</comments> <pubDate>Sat, 28 Apr 2012 07:13:59 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[development]]></category> <category><![CDATA[java]]></category> <category><![CDATA[profiler]]></category><guid
isPermaLink="false">http://www.coliena.com/blog/?p=578</guid> <description><![CDATA[The Eclipse Project has pulled the plug on the Runtime Analysis Tools (a.k.a. CodePro Profiler, a.k.a. tools.rat) due to lack of activity. Google bought Instantiations, the original devloper, back in 2010 and provided Window Builder Pro and CodePro AnalytiX free of charge. CodePro Profiler was handed over to Eclipse, commercial support was to be provided [...]]]></description> <content:encoded><![CDATA[<p>The Eclipse Project has <a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=375133" target="_blank">pulled the plug on the Runtime Analysis Tools</a> (a.k.a. CodePro Profiler, a.k.a. tools.rat) due to lack of activity.</p><p>Google bought Instantiations, the original devloper, back in 2010 and provided Window Builder Pro and CodePro AnalytiX free of charge. CodePro Profiler was <a
href="https://developers.google.com/java-dev-tools/eclipse-donation-faq">handed over to Eclipse</a>, commercial support was to be provided by <a
href="http://onpositive.com/OnPositive/Company/Solutions_for_people/profiler" target="_blank">OnPositive</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2012/04/update-on-codepro-profiler/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Release of Go version 1.0</title><link>http://www.coliena.com/blog/2012/03/release-of-go-version-1-0/</link> <comments>http://www.coliena.com/blog/2012/03/release-of-go-version-1-0/#comments</comments> <pubDate>Wed, 28 Mar 2012 20:19:38 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[development]]></category> <category><![CDATA[free]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[windows]]></category><guid
isPermaLink="false">http://www.coliena.com/blog/?p=573</guid> <description><![CDATA[Version 1.0 of the Go programming language has just been released. Read more about it at the developers blog, or download it it from here. Binaries (32/64 bits) are available for Windows, Linux, FreeBSD and Mac OS X.]]></description> <content:encoded><![CDATA[<p>Version 1.0 of the Go programming language has just been released. Read more about it at the <a
href="http://blog.golang.org/2012/03/go-version-1-is-released.html">developers blog</a>, or download it it from <a
href="http://golang.org/doc/install#download">here</a>.</p><p>Binaries (32/64 bits) are available for Windows, Linux, FreeBSD and Mac OS X.</p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2012/03/release-of-go-version-1-0/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Introduction to text manipulation on Linux</title><link>http://www.coliena.com/blog/2012/03/introduction-to-text-manipulation-on-linux/</link> <comments>http://www.coliena.com/blog/2012/03/introduction-to-text-manipulation-on-linux/#comments</comments> <pubDate>Sun, 18 Mar 2012 20:49:04 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[shell]]></category> <category><![CDATA[command line]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[unix]]></category><guid
isPermaLink="false">http://www.coliena.com/blog/?p=568</guid> <description><![CDATA[This is really good primer on text manipulation on Linux and UNIX: IBM developerWorks: Introduction to text manipulation on UNIX-based systems Brad Yoes from IBM did a wonderful job in this article. I am pretty sure that you will find new insights even if you haven been working with Linux and/or UNIX for quite some [...]]]></description> <content:encoded><![CDATA[<p>This is really good primer on text manipulation on Linux and UNIX:<a
href="https://www.ibm.com/developerworks/aix/library/au-unixtext/index.html" target="_blank"> IBM developerWorks: Introduction to text manipulation on UNIX-based systems</a></p><p>Brad Yoes from IBM did a wonderful job in this article. I am pretty sure that you will find new insights even if you haven been working with Linux and/or UNIX for quite some time.</p><p>&nbsp;</p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2012/03/introduction-to-text-manipulation-on-linux/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <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 Serializers</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 Serializers 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 Serializers</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> </channel> </rss>
<!-- Served from: www.coliena.com @ 2012-05-20 05:47:29 by W3 Total Cache -->
