<?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>( f o o b a r . l u )</title>
	<atom:link href="http://foobar.lu/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://foobar.lu/wp</link>
	<description>coding should be fun</description>
	<lastBuildDate>Wed, 31 Mar 2010 11:39:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SPSS, MS-SQL2008 &amp; bigint</title>
		<link>http://foobar.lu/wp/2010/03/31/spss-ms-sql2008-bigint/</link>
		<comments>http://foobar.lu/wp/2010/03/31/spss-ms-sql2008-bigint/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 11:39:08 +0000</pubDate>
		<dc:creator>exhuma.twn</dc:creator>
				<category><![CDATA[Coding Voodoo]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/?p=97</guid>
		<description><![CDATA[There seems to be an issue with SPSS while reading data from an MS-SQL-Server instance. Notably with the SQL datatype &#8220;bigint&#8221;. Assume the following SPSS syntax:
GET DATA
&#160; &#160;/TYPE=ODBC
&#160; &#160;/CONNECT='DSN=my_dsn;SERVER=server_name;Trusted_Connection=yes;DATABASE=db_name'
&#160; &#160;/SQL = 'SELECT year FROM &#160;my_table'
.
EXECUTE.
If the field in question (in this case: &#8220;year&#8221;) is of SQL-type &#8220;bigint&#8221; then SPSS will show these values in the [...]]]></description>
			<content:encoded><![CDATA[<p>There seems to be an issue with SPSS while reading data from an MS-SQL-Server instance. Notably with the SQL datatype &#8220;bigint&#8221;. Assume the following SPSS syntax:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;width:530px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">GET DATA<br />
&nbsp; &nbsp;/TYPE=ODBC<br />
&nbsp; &nbsp;/CONNECT='DSN=my_dsn;SERVER=server_name;Trusted_Connection=yes;DATABASE=db_name'<br />
&nbsp; &nbsp;/SQL = 'SELECT year FROM &nbsp;my_table'<br />
.<br />
EXECUTE.</div></div>
<p>If the field in question (in this case: &#8220;year&#8221;) is of SQL-type &#8220;bigint&#8221; then SPSS will show these values in the majority of the cases as &#8220;MISSING&#8221;. Sporadically some values appear, but they are completely wrong.</p>
<p>Once the cause is known (problem with the &#8220;biging&#8221; type), the solution is straight-forward: Cast the type to another appropriate type which is understood by SPSS. Which type you choose obviously depends on the values stored in the affected fields. Casting blindly to &#8220;int&#8221; <strong>may</strong> (I haven&#8217;t tested this!) resolve in strange results if the values lie outside of the &#8220;int&#8221; range (-2^31 to 2^31-1). In this case you may need to cast it to something alphanumeric like &#8220;varchar&#8221; and re-cast it in SPSS into &#8220;Numeric&#8221;. As said, I haven&#8217;t tested this but I thought it might be worth mentioning!</p>
<p>So, here&#8217;s the above query with the appropriate cast:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;width:530px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">GET DATA<br />
&nbsp; &nbsp;/TYPE=ODBC<br />
&nbsp; &nbsp;/CONNECT='DSN=my_dsn;SERVER=server_name;Trusted_Connection=yes;DATABASE=db_name'<br />
&nbsp; &nbsp;/SQL = 'SELECT CONVERT(int, year) AS year FROM &nbsp;my_table'<br />
.<br />
EXECUTE.</div></div>
<p>Note also that in this case you need to add an alias for the column ( &#8220;&#8230; AS year&#8221; ). Otherwise SPSS will return it as &#8220;VXXX&#8221; (where XXX is a sequential number).</p>
<p>I have tested this solution on all combinations of SPSS 11.5, SPSS 18, SQL-Server 2008 64bit, SQL-Server 2008 Express 32bit. And casting the value worked every time.</p>
<p>Depending on your use, it may be helpful to create views which do the casting. I have not yet tried this, but I don&#8217;t see a reason why it shouldn&#8217;t work. Additionally, it might be noteworthy that I have only encountered this problem with &#8220;bigint&#8221; so far. There <strong>may</strong> be problems with other types as well. I expect, casting them to something else should work there too.</p>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2010/03/31/spss-ms-sql2008-bigint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making &#8220;File Size View&#8221; in Konqueror suck less</title>
		<link>http://foobar.lu/wp/2010/03/05/making-file-size-view-in-konqueror-suck-less/</link>
		<comments>http://foobar.lu/wp/2010/03/05/making-file-size-view-in-konqueror-suck-less/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 14:27:18 +0000</pubDate>
		<dc:creator>exhuma.twn</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/?p=82</guid>
		<description><![CDATA[I&#8217;ve been down that road many times: &#8220;What folder takes up the most disk space&#8221;. Over the time lots of junk accumulates on one&#8217;s disk. So far the following one-liner has been a trusty companion:
$ du -s * &#124; sort -n
Some other tools are available of which I don&#8217;t remember the names. But why not [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been down that road many times: &#8220;What folder takes up the most disk space&#8221;. Over the time lots of junk accumulates on one&#8217;s disk. So far the following one-liner has been a trusty companion:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;width:530px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">$ du -s * | sort -n</div></div>
<p>Some other tools are available of which I don&#8217;t remember the names. But why not use something that integrates well with Konqueror in KDE? Like &#8220;FSView&#8221; (short for file-size view)? Well, for one thing it&#8217;s painfully slow, and what makes things worse it&#8217;s utterly unreadble. But what I figured out this afternoon, is that the app actually offers some quite nice settings. The buty of Konqueror integration is that the &#8220;plugins&#8221; can insert thei own menu-items wherever they like. Which is nice, because they then integrate well with already existing menu options. But on the other hand, if you are used to open menu paths like &#8220;Plugins -&gt; MyPlugin -&gt; Settings&#8221; or &#8220;Edit/Tools -&gt; Options -&gt;  Plugins&#8221; you won&#8217;t find them.</p>
<p>In the case of fs-view, the options are neatly tucked away in the &#8220;View&#8221; menu. Which actually makes perfect sense. But working too much on Windows-inspired user interfaces twisted my mind too much and I go looking into the non-obvious places out of pure habit <img src='http://foobar.lu/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Now, to spice up fsview a bit I made the following changes:</p>
<ul>
<li>In the &#8220;Visualisation&#8221; sub-menu:
<ul>
<li>Set &#8220;Nesting&#8221; to &#8220;Vertical&#8221;</li>
<li>Set &#8220;Border&#8221; Width to 3</li>
<li>Disabled both options &#8220;Enable Rotation&#8221; and &#8220;Shading&#8221;</li>
</ul>
</li>
<li>In the &#8220;Stop at Area&#8221; sub-menu:
<ul>
<li>Set value to &#8220;400&#8243;</li>
</ul>
</li>
<li>In the &#8220;Stop at Depth&#8221; sub-menu:
<ul>
<li>Set value to &#8220;2&#8243;</li>
</ul>
</li>
</ul>
<p>Both &#8220;Stop at &#8230;&#8221; settings limit the number of times fs-view has to redraw/rearrange the grid. This should speed things up and it becomes more readable. The end result looks something like this:</p>
<div id="attachment_85" class="wp-caption alignnone" style="width: 302px"><img class="size-full wp-image-85" title="fsview-screenshot" src="http://foobar.lu/wp/wp-content/uploads/2010/03/fsview.png" alt="FSView with customizations" width="292" height="379" /><p class="wp-caption-text">FSView with customizations</p></div>
<p>In any case, running fs-view on folders with a large number of files can be very slow and make konqueror even unresponsive while it&#8217;s running. Be patient. In my opinion, if you want to determine the biggest file/folder as quickly as possible, the &#8220;du -s&#8221; method (as outlined above) is preferrable.</p>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2010/03/05/making-file-size-view-in-konqueror-suck-less/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dialog buttons not responding in Eclipse under KDE/GNOME</title>
		<link>http://foobar.lu/wp/2010/02/01/dialog-buttons-not-responding-in-eclipse-under-kdegnome/</link>
		<comments>http://foobar.lu/wp/2010/02/01/dialog-buttons-not-responding-in-eclipse-under-kdegnome/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 09:50:01 +0000</pubDate>
		<dc:creator>wickeddoc</dc:creator>
				<category><![CDATA[Coding Voodoo]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/2010/02/01/dialog-buttons-not-responding-in-eclipse-under-kdegnome/</guid>
		<description><![CDATA[In case you&#8217;re running into the same trouble as me, that dialog buttons are not &#8220;clickable&#8221; anymore under Eclipse, just add the following line to one of your linux startup scripts to fix the problem:
export GDK_NATIVE_WINDOWS=1
]]></description>
			<content:encoded><![CDATA[<p>In case you&#8217;re running into the same trouble as me, that dialog buttons are not &#8220;clickable&#8221; anymore under Eclipse, just add the following line to one of your linux startup scripts to fix the problem:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;width:530px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">export GDK_NATIVE_WINDOWS=1</div></div>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2010/02/01/dialog-buttons-not-responding-in-eclipse-under-kdegnome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mayflower Zend Framework Cheatsheet</title>
		<link>http://foobar.lu/wp/2009/12/31/mayflower-zend-framework-cheatsheet/</link>
		<comments>http://foobar.lu/wp/2009/12/31/mayflower-zend-framework-cheatsheet/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 11:14:33 +0000</pubDate>
		<dc:creator>wickeddoc</dc:creator>
				<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/?p=75</guid>
		<description><![CDATA[Several weeks ago I was scouting the Internet for a Zend Framework cheatsheet and I found a blog entry somewhere about a Zend Framework Cheatsheet Poster, created by a German company called Mayflower.
On their blog they say, if you&#8217;re an eager Zend Framework developer and want to get your copy of their Cheatsheet poster, you&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>Several weeks ago I was scouting the Internet for a Zend Framework cheatsheet and I found a blog entry somewhere about a <strong>Zend Framework Cheatsheet Poster</strong>, created by a German company called <strong><a href="http://www.mayflower.de">Mayflower</a></strong>.</p>
<p>On their blog they say, if you&#8217;re an eager Zend Framework developer and want to get your copy of their Cheatsheet poster, you&#8217;ll just have to send them an email and you&#8217;ll get this great Poster delivered to your office or home or whatever, <strong>free of charge</strong>. So that&#8217;s what I did and guess what, a week later I received this very useful poster in the mail.<br />
So if you are a Zend Framework developer yourself and want to own this cool poster, don&#8217;t be shy, just send an email to Björn Schotte over at Mayflower.</p>
<p>Here&#8217;s a photo of the poster in our office @ <strong><a href="http://www.vo.lu">Visual Online, Luxembourg</a></strong></p>
<p><img src="http://www.foobar.lu/mayflower.jpg" alt="Mayflower Zend Framework Cheatsheet Poster" /></p>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2009/12/31/mayflower-zend-framework-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to easy_install psycopg2 on debian</title>
		<link>http://foobar.lu/wp/2009/10/29/unable-to-easy_install-psycopg2-on-debian/</link>
		<comments>http://foobar.lu/wp/2009/10/29/unable-to-easy_install-psycopg2-on-debian/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 15:18:30 +0000</pubDate>
		<dc:creator>exhuma.twn</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/?p=66</guid>
		<description><![CDATA[Problem:
$ easy_install psycopg2
Searching for psycopg2 &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<h3>Problem:</h3>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;width:530px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">$ easy_install psycopg2<br />
Searching for psycopg2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
Reading http://pypi.python.org/simple/psycopg2/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
Reading http://initd.org/projects/psycopg2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
Reading http://initd.org/pub/software/psycopg/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
Best match: psycopg2 2.0.13 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
Downloading http://initd.org/pub/software/psycopg/psycopg2-2.0.13.tar.gz &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
Processing psycopg2-2.0.13.tar.gz &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
Running psycopg2-2.0.13/setup.py -q bdist_egg --dist-dir /tmp/easy_install-cHE0C_/psycopg2-2.0.13/egg-dist-tmp-x-CxRS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
error: Setup script exited with error: No such file or directory</div></div>
<h3>Solution:</h3>
<p>This most likely indicates that you are missing the &#8220;libpq&#8221; headers:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;width:530px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">sudo aptitude install libpq-dev</div></div>
<p>should solve the problem</p>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2009/10/29/unable-to-easy_install-psycopg2-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Studio forgetting about your ZF Project</title>
		<link>http://foobar.lu/wp/2009/06/16/zend-studio-forgetting-about-your-zf-project/</link>
		<comments>http://foobar.lu/wp/2009/06/16/zend-studio-forgetting-about-your-zf-project/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 14:40:21 +0000</pubDate>
		<dc:creator>wickeddoc</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/?p=56</guid>
		<description><![CDATA[as a php developer i&#8217;m using zend studio for eclipse on a daily basis. sometimes zend studio forgets about my zend framework projects, especially projects which are hosted on a SVN repository. i close my project, reopen it, and for no obvious reasons zend studio no longer recognizes it as a zend framework project. huch!?
until [...]]]></description>
			<content:encoded><![CDATA[<p>as a php developer i&#8217;m using zend studio for eclipse on a daily basis. sometimes zend studio forgets about my zend framework projects, especially projects which are hosted on a SVN repository. i close my project, reopen it, and for no obvious reasons zend studio no longer recognizes it as a zend framework project. huch!?</p>
<p>until now i was unable to find a real solution to my problem, but here&#8217;s a little workaround which should get you up and running again, in case you&#8217;re running into the same problem.</p>
<p>close the project, then just open the .project file at the root of your project in your favourite text editor and check the &#8216;natures&#8217; section, make sure it contains the following line:</p>
<div class="codecolorer-container xml twitlight" style="overflow:auto;white-space:nowrap;width:530px"><div class="xml codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sc3"><span class="re1">&lt;nature<span class="re2">&gt;</span></span></span>org.zend.php.framework.ZendFrameworkNature<span class="sc3"><span class="re1">&lt;/nature<span class="re2">&gt;</span></span></span></div></div>
<p>that should do the trick.</p>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2009/06/16/zend-studio-forgetting-about-your-zf-project/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Worst practice, an example</title>
		<link>http://foobar.lu/wp/2009/04/23/worst-practice-ever/</link>
		<comments>http://foobar.lu/wp/2009/04/23/worst-practice-ever/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 12:34:32 +0000</pubDate>
		<dc:creator>wickeddoc</dc:creator>
				<category><![CDATA[Babble]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/?p=51</guid>
		<description><![CDATA[this morning i stumbled over a website which is used to track postal deliveries, by our local post office. P&#038;T Luxembourg.
it works pretty much like any other tracking service. you go to the website, enter the tracking code an tada&#8230; you get all the details corresponding to the entered tracking code. but this is only [...]]]></description>
			<content:encoded><![CDATA[<p>this morning i stumbled over a website which is used to track postal deliveries, by our local post office. P&#038;T Luxembourg.</p>
<p>it works pretty much like any other tracking service. you go to the website, enter the tracking code an tada&#8230; you get all the details corresponding to the entered tracking code. but this is only works if you have one single tracking code!</p>
<p>if you want to check multiple tracking codes, that&#8217;s where the real fun starts. instead of simply using a textarea, where the user enters one tracking code per row, they chose to make it really easy for the user. you have to open your favourite spreadsheet program, enter the tracking codes one after another into the sheet, save it as CSV file and then upload it to the server. and only then you&#8217;ll get the tracking details for your multiple tracking codes. after seeing this i thought: you can&#8217;t be serious!? </p>
<p>regarding user friendliness, this has to be the worst possible solution there is. which brainiac did come up with this stuff?</p>
<p>see for yourself: <a href="http://www.trackandtrace.lu/">http://www.trackandtrace.lu/</a> (sorry, the site is only available in french)</p>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2009/04/23/worst-practice-ever/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Add creation and modification timestamps to an Excel worksheet</title>
		<link>http://foobar.lu/wp/2009/02/19/add-creation-and-modification-timestamps-to-an-excel-worksheet/</link>
		<comments>http://foobar.lu/wp/2009/02/19/add-creation-and-modification-timestamps-to-an-excel-worksheet/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 14:14:47 +0000</pubDate>
		<dc:creator>exhuma.twn</dc:creator>
				<category><![CDATA[Coding Voodoo]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/?p=45</guid>
		<description><![CDATA[Please, for the love of $deity do not hit me&#8230;.. This is going to be a post about excel!
Excel is a horrid solution for data entry, and even worse for data archival. And yet, it&#8217;s one of the most commonly used solutions. One of the most useful information in any given data-set is the information [...]]]></description>
			<content:encoded><![CDATA[<p>Please, for the love of $deity do not hit me&#8230;.. This is going to be a post about excel!</p>
<p>Excel is a horrid solution for data entry, and even worse for data archival. And yet, it&#8217;s one of the most commonly used solutions. One of the most useful information in any given data-set is the information about <em>when</em> the information was <em>created</em> and <em>when</em> it was <em>last modified</em>. This is something that any decent developer in charge of a data collection (let&#8217;s just call it that for now) will add to each data record.</p>
<p>Alas, a lot of non-it people manage and store their data in excel worksheets. And that is OK with me as long as they pay attention to data archival. In it&#8217;s most simple form, data archival can be achieved by storing the data as a CSV file <strong>and</strong> <strong>including</strong> the following metadata:</p>
<ul>
<li>Which column represents which value (the name of the variable)</li>
<li>The data type (number, text, date, &#8230;) of each column</li>
<li>If a column is &#8220;coded&#8221;, please also include the meaning of each code.<br />
For example a &#8220;Yes&#8221;, &#8220;No&#8221;, &#8220;Maybe&#8221; column might be stored as &#8220;1&#8243;, &#8220;2&#8243; and &#8220;3&#8243;. Which means in it&#8217;s most basic nature it&#8217;s a numeric variable, but the different values have a meaning attached to them. So: Add this list in your metadata description.</li>
<li>If any computations or checks are performed on the values, please add them to the metadata document as well!</li>
</ul>
<p>Even if the timestamp values might seem superflous at first, it will be of <strong>great</strong> help to anyone tracing errors in the data. Imagine that you would at some point need to fix some values that were entered/modified during a specific time period for whatever reason. Without this most basic bit of information you will be up for a treat. However, if it&#8217;s been rigurously implemented since the beginning, you&#8217;ll have the problem solved in no time.</p>
<p>Now, each halfway serious database system will offer you this kind of functionality out-of-the-box. But Excel <strong>is no database system</strong> (I intentionally left out the word &#8220;management&#8221; as this issue is a bit more general!). So it does not offer you a straight-forward way to solve this. But even if it&#8217;s not straight-forward, it&#8217;s simple enough for about anyone using Excel do add this bit of information.</p>
<p>Assuming that you use the first two columns (numbered 1 and 2 in excel) of your worksheet to add creation- and modification timestamps simply open up the Visual Basic editor (found in Tools-&gt;Macro or somesuch), next, in your project tree (in the top left of the screen) select your workbook (the .xls file), and in it&#8217;s sub-tree double-click the Worksheet that should have the timestamps set automatically.</p>
<p>Then copy/paste the following text into the just opened code editor and you&#8217;re done. I hope the comments will give some insight as to what happens. Note that in this case I will ignore the first row of the sheet, and obviously, the first two columns. If that does not suit your needs, feel free to change this script to your liking.</p>
<div class="codecolorer-container vb twitlight" style="overflow:auto;white-space:nowrap;width:530px"><div class="vb codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="co1">'<br />
</span><span class="co1">' Callback which is called when a cell in a workbook changes<br />
</span><span class="co1">' @param Target: The cell that changed it's value<br />
</span><span class="co1">'<br />
</span><span class="kw1">Private</span> <span class="kw1">Sub</span> Worksheet_Change(<span class="kw1">ByVal</span> Target <span class="kw1">As</span> Range)<br />
&nbsp; &nbsp;<span class="co1">' We will ignore any changes in the first row, as it contains header labels<br />
</span> &nbsp; <span class="kw1">If</span> Target.Row = 1 <span class="kw1">Then</span> <span class="kw1">Exit</span> <span class="kw1">Sub</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;<span class="co1">' As we set the values of column 1 and 2 we won't need to capture changes in these either<br />
</span> &nbsp; <span class="kw1">If</span> Target.Column = 1 <span class="kw1">Or</span> Target.Column = 2 <span class="kw1">Then</span> <span class="kw1">Exit</span> <span class="kw1">Sub</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;<span class="co1">' We will update the timestamp in column 2 *always* (last changed time)<br />
</span> &nbsp; Cells(Target.Row, 2) = Now<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;<span class="co1">' We will update the timestamp in column 1 only if it is empty (creation time)<br />
</span> &nbsp; <span class="kw1">If</span> IsEmpty(Cells(Target.Row, 1)) <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp;Cells(Target.Row, 1) = Now<br />
&nbsp; &nbsp;<span class="kw1">End</span> <span class="kw1">If</span><br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2009/02/19/add-creation-and-modification-timestamps-to-an-excel-worksheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best &#8220;How to run your internet  company&#8221; video EVER!</title>
		<link>http://foobar.lu/wp/2008/10/24/best-how-to-run-your-internet-company-video-ever/</link>
		<comments>http://foobar.lu/wp/2008/10/24/best-how-to-run-your-internet-company-video-ever/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 11:43:08 +0000</pubDate>
		<dc:creator>wickeddoc</dc:creator>
				<category><![CDATA[Babble]]></category>
		<category><![CDATA[Techno Voodoo]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/2008/10/24/best-how-to-run-your-internet-company-video-ever/</guid>
		<description><![CDATA[this week i&#8217;ve stumbled over the following video.
the video shows a presentation from Jason Fried from &#8220;37Signals&#8221; about how he runs his company.
as i&#8217;m working for a small internet service provider myself, i found this video very inspiring and a must-see for everybody in the business.
i think that there are a lot of very good [...]]]></description>
			<content:encoded><![CDATA[<p>this week i&#8217;ve stumbled over the following video.</p>
<p>the video shows a presentation from <strong>Jason Fried</strong> from &#8220;<a href="http://37signals.com/">37Signals</a>&#8221; about how he runs his company.</p>
<p>as i&#8217;m working for a small internet service provider myself, i found this video very inspiring and a must-see for everybody in the business.</p>
<p>i think that there are a lot of very good points being made, like teleworking, focus on what matters, don&#8217;t waste your time on &#8220;david vs goliath&#8221; battles etc.</p>
<p>i recommend this video to everybody who owns or works for a small web-related company</p>
<p><embed src="http://blip.tv/play/AdOYJZCcZQ" type="application/x-shockwave-flash" width="540" height="400" allowscriptaccess="always" allowfullscreen="true"></embed> </p>
<p>Source: <a href="http://www.37signals.com/svn/posts/1329-my-talk-at-the-business-of-software-conference-september-2008">http://www.37signals.com/svn/posts/1329-my-talk-at-the-business-of-software-conference-september-2008</a></p>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2008/10/24/best-how-to-run-your-internet-company-video-ever/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Throwing standards out the window</title>
		<link>http://foobar.lu/wp/2008/09/24/throwing-standards-out-the-window/</link>
		<comments>http://foobar.lu/wp/2008/09/24/throwing-standards-out-the-window/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 09:16:08 +0000</pubDate>
		<dc:creator>exhuma.twn</dc:creator>
				<category><![CDATA[Babble]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/2008/09/24/throwing-standards-out-the-window/</guid>
		<description><![CDATA[This really seems to be a trend in software development. Especially on the Web. We have organisations like the W3C that continuously struggle to promote interoperability and standards.While developing I am trying to re-use as much of that knowledge as possible. Afterall, if someone already made the effort to solve a specific problem why should [...]]]></description>
			<content:encoded><![CDATA[<p>This really seems to be a trend in software development. Especially on the Web. We have organisations like the W3C that continuously struggle to promote interoperability and standards.While developing I am trying to re-use as much of that knowledge as possible. Afterall, if someone already made the effort to solve a specific problem why should you rethink it again? And actively developing since the late &#8217;90s I can safely say that I&#8217;ve seen my fair share of source code.</p>
<p>One thing I have realised is that in the past, developers seemed to care more about clean coding and standards.I have the impression that all this is seriously going down the drain since &#8211; let&#8217;s name it- the &#8220;Broadband Revolution&#8221;. Since then about everybody has an Internet connection at home and the number of wannabe web-developers skyrocketed. Now, if you google for JavaScript/HTML/whatever references you do not find <strong>one</strong> reference, you find <strong>hundreds</strong>. And about all of them seems to be written by somone who thinks to know better.</p>
<p>Why do these people re-invent the wheel by writing down on <em>their</em> web-space what&#8217;s already been written by domain-specialists? Are they trying to show the world just how &#8220;good&#8221; they really are? Are they looking for recognition on the web that they could not get in real life? Because, frankly, I would not have much respect for the work they do</p>
<p>Back to topic. About standards. Consider the following excerpt:</p>
<blockquote><p>Note: The latest W3C method to connect an event handler to an event is to use the <em>addEventListener</em> method, similar to Java. However, this is not supported by Internet Explorer, and since Internet Explorer owns 96 percent of the browser market, we can ignore <em>addEventListener</em>.<sup>1</sup></p></blockquote>
<p>It&#8217;s statements like these that drive me up the wall. And it&#8217;s one of the first links I got back from google when looking into the ins and outs of event handling in modern browsers. I am all for education and educating new (web-)developers about how things <em>should</em> be done. And this simply is not the way! Stating that you should throw out all the standards, simply because the market leader does not support it is just wrong. With this train of thought, the standards will never be adopted properly. Now this is the special case of Web-Browsers and JavaScript support, but this example easily spans over other areas as well.</p>
<p>Having a text like this in the top google hits surely gives newcomers the wrong idea.</p>
<p>I am honestly curious to see how the web evolves in the next few decades. But maybe I&#8217;m just too pessimistic and it will all turn out well. Time will tell!</p>
<p><sup>1</sup>:  <a href="http://bucarotechelp.com/design/jseasy/96001603.asp?x=52&amp;y=9&amp;page=2" title="Four Ways to Use Java Script Event Handlers" target="_blank">http://bucarotechelp.com/design/jseasy/96001603.asp?x=52&amp;y=9&amp;page=2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2008/09/24/throwing-standards-out-the-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
