<?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 ) &#187; Linux</title>
	<atom:link href="http://foobar.lu/wp/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://foobar.lu/wp</link>
	<description>coding should be fun</description>
	<lastBuildDate>Sat, 19 May 2012 10:06:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Git visualization with gource</title>
		<link>http://foobar.lu/wp/2012/05/07/git-visualization-with-gource/</link>
		<comments>http://foobar.lu/wp/2012/05/07/git-visualization-with-gource/#comments</comments>
		<pubDate>Mon, 07 May 2012 10:56:56 +0000</pubDate>
		<dc:creator>latz.twn</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/?p=258</guid>
		<description><![CDATA[Are you using git/svn/mercurial/bazaar as version control system and you ever wanted to visualize your work, how the project developed over time well Gource is there to visualize all this in a beautiful way. It takes the history of your svn/git/mercurial/bazaar repository and visualizes the changes over time, by whom they were done and so [...]]]></description>
			<content:encoded><![CDATA[<p>Are you using git/svn/mercurial/bazaar as version control system and you ever wanted to visualize your work, how the project developed over time well <a href="http://code.google.com/p/gource/" title="Gource" target="_blank">Gource</a> is there to visualize all this in a beautiful way. It takes the history of your svn/git/mercurial/bazaar repository and visualizes the changes over time, by whom they were done and so forth.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> gource</div></div>
<p>Now run the following with path/to/project being your projects root directory, and give gource the .git subfolder. Run it and you should see the animation being presented.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gource <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>project<span style="color: #000000; font-weight: bold;">/</span>.git<span style="color: #000000; font-weight: bold;">/</span></div></div>
<p>Now to export this to an mpeg4 video do the following.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gource <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>project<span style="color: #000000; font-weight: bold;">/</span>.git<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">--stop-at-end</span> <span style="color: #660033;">--output-ppm-stream</span> - <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-y</span> <span style="color: #660033;">-b</span> 6000k <span style="color: #660033;">-r</span> <span style="color: #000000;">60</span> <span style="color: #660033;">-f</span> image2pipe <span style="color: #660033;">-vcodec</span> ppm <span style="color: #660033;">-i</span> - <span style="color: #660033;">-vcodec</span> mpeg4 <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>gource.mp4</div></div>
<p><a href="http://www.youtube.com/watch?v=ZV5DIbrOMzk">Here</a> an example I created from one of my projects.</p>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2012/05/07/git-visualization-with-gource/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring memory on Solaris</title>
		<link>http://foobar.lu/wp/2012/04/24/monitoring-memory-on-solaris/</link>
		<comments>http://foobar.lu/wp/2012/04/24/monitoring-memory-on-solaris/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 16:20:20 +0000</pubDate>
		<dc:creator>exhuma.twn</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/?p=253</guid>
		<description><![CDATA[I am currently writing a new munin plugin to monitor memory usage on Solaris machines. Strangely the existing plugins are fairly useless. Currently the script is running on a test-machine. If the results are satisfactory, I&#8217;ll post them here. Stay tuned.]]></description>
			<content:encoded><![CDATA[<p>I am currently writing a new munin plugin to monitor memory usage on Solaris machines. Strangely the existing plugins are fairly useless. Currently the script is running on a test-machine. If the results are satisfactory, I&#8217;ll post them here. Stay tuned.</p>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2012/04/24/monitoring-memory-on-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom bash completion for fabric tasks</title>
		<link>http://foobar.lu/wp/2012/03/20/custom-bash-completion-for-fabric-tasks/</link>
		<comments>http://foobar.lu/wp/2012/03/20/custom-bash-completion-for-fabric-tasks/#comments</comments>
		<pubDate>Tue, 20 Mar 2012 15:08:07 +0000</pubDate>
		<dc:creator>exhuma.twn</dc:creator>
				<category><![CDATA[Coding Voodoo]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/?p=244</guid>
		<description><![CDATA[Here&#8217;s a small bash function to provide TAB-completion for fabric tasks. Simply add the following to your ~/.bashrc You may already have a block like if [ -f /etc/bash_completion ]... in that case, simply add the extra line into that block. Have fun]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a small bash function to provide TAB-completion for fabric tasks.</p>
<p>Simply add the following to your <tt>~/.bashrc</tt></p>
<p>You may already have a block like <tt>if [ -f /etc/bash_completion ]...</tt> in that case, simply add the extra line into that block.</p>
<div id="gist-2136677" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="c">#                                                                                                                                                                                                    </span></div><div class='line' id='LC2'><span class="c"># Bash completion for fabric                                                                                                                                                                         </span></div><div class='line' id='LC3'><span class="c">#                                                                                                                                                                                                    </span></div><div class='line' id='LC4'><span class="k">function </span>_fab_complete<span class="o">()</span> <span class="o">{</span>                                                                                                                                                                           </div><div class='line' id='LC5'>&nbsp;&nbsp;&nbsp;&nbsp;<span class="nb">local </span>cur                                                                                                                                                                                        </div><div class='line' id='LC6'>&nbsp;&nbsp;&nbsp;&nbsp;<span class="k">if</span> <span class="o">[</span> -f <span class="s2">&quot;fabfile.py&quot;</span> <span class="o">]</span>; <span class="k">then                                                                                                                                                                     </span></div><div class='line' id='LC7'><span class="k">        </span><span class="nv">cur</span><span class="o">=</span><span class="s2">&quot;${COMP_WORDS[COMP_CWORD]}&quot;</span>                                                                                                                                                              </div><div class='line' id='LC8'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="nv">COMPREPLY</span><span class="o">=(</span> <span class="k">$(</span><span class="nb">compgen</span> -W <span class="s2">&quot;$(fab -F short -l)&quot;</span> -- <span class="k">${</span><span class="nv">cur</span><span class="k">})</span> <span class="o">)</span>                                                                                                                                   </div><div class='line' id='LC9'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="k">return </span>0                                                                                                                                                                                     </div><div class='line' id='LC10'>&nbsp;&nbsp;&nbsp;&nbsp;<span class="k">else</span>                                                                                                                                                                                             </div><div class='line' id='LC11'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="c"># no fabfile.py found. Don&#39;t do anything.</span></div><div class='line' id='LC12'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="k">return </span>1                                                                                                                                                                                     </div><div class='line' id='LC13'>&nbsp;&nbsp;&nbsp;&nbsp;<span class="k">fi</span>                                                                                                                                                                                               </div><div class='line' id='LC14'><span class="o">}</span>                                                                                                                                                                                                    </div><div class='line' id='LC15'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div><div class='line' id='LC16'><span class="c"># enable programmable completion features (you don&#39;t need to enable                                                                                                                                  </span></div><div class='line' id='LC17'><span class="c"># this, if it&#39;s already enabled in /etc/bash.bashrc and /etc/profile                                                                                                                                 </span></div><div class='line' id='LC18'><span class="c"># sources /etc/bash.bashrc).                                                                                                                                                                         </span></div><div class='line' id='LC19'><span class="k">if</span> <span class="o">[</span> -f /etc/bash_completion <span class="o">]</span> <span class="o">&amp;&amp;</span> ! <span class="nb">shopt</span> -oq posix; <span class="k">then</span>                                                                                                                                            </div><div class='line' id='LC20'>&nbsp;&nbsp;&nbsp;&nbsp;. /etc/bash_completion                                                                                                                                                                           </div><div class='line' id='LC21'>&nbsp;&nbsp;&nbsp;&nbsp;<span class="nb">complete</span> -o nospace -F _fab_complete fab                                                                                                                                                         </div><div class='line' id='LC22'><span class="k">fi</span>                                                                                                                                                                                                   </div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/2136677/c72e808d75e285c9c8943fa0f3523866503cd354/gistfile1.sh" style="float:right;">view raw</a>
            <a href="https://gist.github.com/2136677#file_gistfile1.sh" style="float:right;margin-right:10px;color:#666">gistfile1.sh</a>
            <a href="https://gist.github.com/2136677">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>Have fun</p>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2012/03/20/custom-bash-completion-for-fabric-tasks/feed/</wfw:commentRss>
		<slash:comments>1</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 [...]]]></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;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ 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>Speed comparison of various terminals</title>
		<link>http://foobar.lu/wp/2007/09/06/speed-comparison-of-various-terminals/</link>
		<comments>http://foobar.lu/wp/2007/09/06/speed-comparison-of-various-terminals/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 06:59:45 +0000</pubDate>
		<dc:creator>exhuma.twn</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://foobar.lu/wp/2007/09/06/speed-comparison-of-various-terminals/</guid>
		<description><![CDATA[I never cared about which terminal to chose. I usually ended up with aterm on non-KDE boxes and Konsole on KDE boxes. This comparison (and the attached comments) is actually quite interesting. The results were quite surprising]]></description>
			<content:encoded><![CDATA[<p><span style="float:left"><a href='http://foobar.lu/wp/2007/09/06/speed-comparison-of-various-terminals/terminal-speed-comparison/' rel='attachment wp-att-23' title='Terminal speed comparison'><img src='http://foobar.lu/wp/wp-content/uploads/2007/09/term-small.thumbnail.png' alt='Terminal speed comparison' /></a></span>I never cared about which terminal to chose. I usually ended up with aterm on non-KDE boxes and Konsole on KDE boxes. <a href="http://martin.ankerl.com/2007/09/01/comprehensive-linux-terminal-performance-comparison/">This comparison</a> (and the attached comments) is actually quite interesting.</p>
<p>The results were quite surprising <img src='http://foobar.lu/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
<br clear="both"/></p>
]]></content:encoded>
			<wfw:commentRss>http://foobar.lu/wp/2007/09/06/speed-comparison-of-various-terminals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

