<?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 &#187; development</title> <atom:link href="http://www.coliena.com/blog/category/development/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>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>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> <item><title>Comparing Binary Files</title><link>http://www.coliena.com/blog/2010/11/comparing-binary-files/</link> <comments>http://www.coliena.com/blog/2010/11/comparing-binary-files/#comments</comments> <pubDate>Mon, 15 Nov 2010 20:02:28 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[development]]></category> <category><![CDATA[win32]]></category><guid
isPermaLink="false">http://coliena.com/blog/?p=434</guid> <description><![CDATA[Getting a diff from two binary files isn&#8217;t that easy. While there are loads of tools for comparing text files, there are only a few for binaries. A very nice &#8211; and free &#8211; utility for Windows is HxD. It&#8217;s not just a very fine hex editor, but pretty good at comparing binary files as [...]]]></description> <content:encoded><![CDATA[<p>Getting a diff from two binary files isn&#8217;t that easy. While there are loads of tools for comparing text files, there are only a few for binaries.</p><p>A very nice &#8211; and free &#8211; utility for Windows is <a
href="http://www.mh-nexus.de/" target="_blank">HxD</a>. It&#8217;s not just a very fine hex editor, but pretty good at comparing binary files as well.<br
/> <a
href="http://coliena.com/blog/wp-content/uploads/hxd_compare1.png"> <img
class="alignleft size-thumbnail wp-image-437" title="hxd_compare1" src="http://coliena.com/blog/wp-content/uploads/hxd_compare1-150x150.png" alt="" width="150" height="150" /></a><a
href="http://coliena.com/blog/wp-content/uploads/hxd_compare2.png"><img
class="alignleft size-thumbnail wp-image-440" title="hxd_compare2" src="http://coliena.com/blog/wp-content/uploads/hxd_compare2-150x150.png" alt="" width="150" height="150" /></a></p> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2010/11/comparing-binary-files/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Links: Java, Security &amp; more</title><link>http://www.coliena.com/blog/2010/10/links-java-security-more/</link> <comments>http://www.coliena.com/blog/2010/10/links-java-security-more/#comments</comments> <pubDate>Wed, 13 Oct 2010 20:41:53 +0000</pubDate> <dc:creator>niels</dc:creator> <category><![CDATA[development]]></category> <category><![CDATA[life out there]]></category> <category><![CDATA[java]]></category> <category><![CDATA[links]]></category> <category><![CDATA[security]]></category><guid
isPermaLink="false">http://coliena.com/blog/?p=408</guid> <description><![CDATA[New Java desktop UI toolkit: Amino brings some nice features Authentication != Authorization (and more): Diaspora has a long way to go, but there are lots of things you can learn. Things like what you should never, ever do, that is. Java obfuscation: the Android developers recommend ProGuard. It&#8217;s actually a very nice utility, but [...]]]></description> <content:encoded><![CDATA[<ul><li>New Java desktop UI toolkit:<br
/> <a
href="http://weblogs.java.net/blog/joshy/archive/2010/10/09/announcing-amino-new-ui-toolkit-desktop-java">Amino</a> brings some nice features</li><li>Authentication != Authorization (and more):<br
/> <a
href="http://www.joindiaspora.com/">Diaspora</a> has a long way to go, but there are lots of things you can learn. Things like <a
href="http://www.kalzumeus.com/2010/09/22/security-lessons-learned-from-the-diaspora-launch/">what you should never, ever do</a>, that is.</li><li>Java obfuscation:<br
/> the Android developers <a
href="http://android-developers.blogspot.com/2010/09/proguard-android-and-licensing-server.html?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+blogspot%2FhsDu+%28Android+Developers+Blog%29">recommend ProGuard</a>. It&#8217;s actually a very nice utility, but I don&#8217;t feel comfortable to apply a complicated technique to already complicated applications.</li><li>One Time Passwords, remote logout:<br
/> Facebook <a
href="http://www.ghacks.net/2010/10/13/facebook-improves-security-one-time-login-remote-logout/">adds new security features</a>, and some questions are crossing my mind:<br
/> why not add add <a
href="http://en.wikipedia.org/wiki/OPIE_Authentication_System">OPIE</a>-like features, with One Time Password Lists and/or <a
href="http://en.wikipedia.org/wiki/Two-factor_authentication">two-factor authentication</a> (with something you know and something you have)? We got lots of smartphones out there, just use them&#8230;?<br
/> re &#8220;remote logout&#8221;: why not just invalidate existing web sessions on the next login of the user? Can Facebook make a difference between web and API (e.g. widget, apps) sessions?</li></ul> ]]></content:encoded> <wfw:commentRss>http://www.coliena.com/blog/2010/10/links-java-security-more/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: www.coliena.com @ 2012-02-06 01:18:31 by W3 Total Cache -->
