<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>vootey&#039;s blog</title>
	<atom:link href="http://vootey.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vootey.wordpress.com</link>
	<description>by Lukas Schneiderbauer</description>
	<lastBuildDate>Mon, 20 Dec 2010 14:27:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vootey.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>vootey&#039;s blog</title>
		<link>http://vootey.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vootey.wordpress.com/osd.xml" title="vootey&#039;s blog" />
	<atom:link rel='hub' href='http://vootey.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Braid for Linux</title>
		<link>http://vootey.wordpress.com/2010/12/20/braid-for-linux/</link>
		<comments>http://vootey.wordpress.com/2010/12/20/braid-for-linux/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 14:17:33 +0000</pubDate>
		<dc:creator>Lukas Schneiderbauer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Braid]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://vootey.wordpress.com/?p=94</guid>
		<description><![CDATA[As an impressed Braid-player, the release of Braid for Linux is worth a post on my blog. For those, who never heard about it: Braid (http://braid-game.com, http://www.lgdb.org/game/braid) is an exciting puzzle game, and &#8211; for me &#8211; one of the best in these days. I garantee, you won&#8217;t regret a try! The game  (I&#8217;m afraid, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vootey.wordpress.com&amp;blog=12727004&amp;post=94&amp;subd=vootey&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As an impressed Braid-player, the release of <strong>Braid for Linux</strong> is worth a post on my blog.</p>
<p>For those, who never heard about it: Braid (<a href="http://braid-game.com">http://braid-game.com</a>, <a href="http://www.lgdb.org/game/braid">http://www.lgdb.org/game/braid</a>) is an exciting puzzle game, and &#8211; for me &#8211; one of the best in these days. I garantee, you won&#8217;t regret a try!</p>
<p>The game  (I&#8217;m afraid, it&#8217;s not open source yet) is available in a bundle at <a href="http://www.humblebundle.com/">http://www.humblebundle.com/</a>. The price is left to the buyer&#8217;s decision.</p>
<p>Ebuilds for Gentoo are in progress:</p>
<ul>
<li><a href="https://bugs.gentoo.org/show_bug.cgi?id=34913">https://bugs.gentoo.org/show_bug.cgi?id=34913</a>6</li>
<li><a href="http://gpo.zugaina.org/games-arcade/braid">http://gpo.zugaina.org/games-arcade/braid</a></li>
</ul>
<p>Take a look!</p>
<br /> Tagged: <a href='http://vootey.wordpress.com/tag/braid/'>Braid</a>, <a href='http://vootey.wordpress.com/tag/gentoo/'>Gentoo</a>, <a href='http://vootey.wordpress.com/tag/linux/'>Linux</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vootey.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vootey.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vootey.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vootey.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vootey.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vootey.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vootey.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vootey.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vootey.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vootey.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vootey.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vootey.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vootey.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vootey.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vootey.wordpress.com&amp;blog=12727004&amp;post=94&amp;subd=vootey&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vootey.wordpress.com/2010/12/20/braid-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1dd4d03d2f66ecad487aacb5f6ae779e?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">vootey</media:title>
		</media:content>
	</item>
		<item>
		<title>random kernel freezes with &gt;2.6.32 linux and radeon rv350 gpu</title>
		<link>http://vootey.wordpress.com/2010/09/30/random-kernel-freezes-with-2-6-32-linux-and-radeon-rv350-gpu/</link>
		<comments>http://vootey.wordpress.com/2010/09/30/random-kernel-freezes-with-2-6-32-linux-and-radeon-rv350-gpu/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 15:50:40 +0000</pubDate>
		<dc:creator>Lukas Schneiderbauer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[radeon]]></category>

		<guid isPermaLink="false">http://vootey.wordpress.com/?p=88</guid>
		<description><![CDATA[Like some other people, I experienced random kernel freezes (so a *complete* lock-up) on my linux machine with a rv350 gpu. Not like some other people, we&#8217;ve identified the exact issue, what&#8217;s going on here and have got a (more or less) nice workaround, which should not provoke any sideeffects. This post focus on people, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vootey.wordpress.com&amp;blog=12727004&amp;post=88&amp;subd=vootey&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Like some other people, I experienced random kernel freezes (so a *complete* lock-up) on my linux machine with a rv350 gpu. Not like some other people, we&#8217;ve identified the exact issue, what&#8217;s going on here and have got a (more or less) nice workaround, which should not provoke any sideeffects.</p>
<p>This post focus on people, who have got random freezes and match following requirements:</p>
<ul>
<li>&gt; linux 2.6.32</li>
<li>rv350 gpu</li>
<li>kms enabled</li>
<li>use of open source radeon-driver</li>
</ul>
<p><em>Note</em>: There are a lot of &#8220;random freezes&#8221; issues out there. So it&#8217;s very likely, that your random freeze is not *this* random freeze. Be sure, you have read through the bugtracker (as referred below), before beginning hacking the kernel. If you are a victim of this bug, then please help by posting your system setup on the bugtracker and testing patches!</p>
<p>The whole matter is documented on freedesktop (<a href="https://bugs.freedesktop.org/show_bug.cgi?id=28402">bug #28402</a>).</p>
<p>We&#8217;ve located the exact kernel-commit, which leads to this regression. It has been discovered, that there is something wrong with the GTT-mapping.</p>
<blockquote><p>The GTT (or Graphics Translation  Table) is the set of page table entries for the GPU IOMMU (GTT is often  used to refer to both the page tables and the IOMMU).  In order for the  GPU to perform an operation on memory (e.g. use it as a scanout buffer,  render to it) the memory must be pointed to by GTT entries.  That means  it must be pinned into physical memory (i.e. not swappable to disk) and  GTT pointers must be updated to point at it.</p>
<p><em>[copied from <a href="https://wiki.ubuntu.com/X/Glossary">https://wiki.ubuntu.com/X/Glossary</a>]</em></p></blockquote>
<p>Also a <a href="https://bugs.freedesktop.org/attachment.cgi?id=38564">patch</a> has been provided, which is<strong> more a workaround than a fix (!)</strong>. For this reason, there is no hope for a quick fix in upstream. You can get rid of the issue by patching your kernel. Further instructions, how to do that, can be found in the web.</p>
<p>I run a 2.6.35 zen kernel with this patch and my machine has survived without a crash for two weeks.</p>
<p>Let&#8217;s hope, a real fix will be provided soon.</p>
<p>&nbsp;</p>
<p><em>//Update//</em></p>
<p>The final fix was found and is included in kernel 2.6.37.<em><br />
</em></p>
<p>&nbsp;</p>
<br /> Tagged: <a href='http://vootey.wordpress.com/tag/kernel/'>kernel</a>, <a href='http://vootey.wordpress.com/tag/linux/'>Linux</a>, <a href='http://vootey.wordpress.com/tag/radeon/'>radeon</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vootey.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vootey.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vootey.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vootey.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vootey.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vootey.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vootey.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vootey.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vootey.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vootey.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vootey.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vootey.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vootey.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vootey.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vootey.wordpress.com&amp;blog=12727004&amp;post=88&amp;subd=vootey&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vootey.wordpress.com/2010/09/30/random-kernel-freezes-with-2-6-32-linux-and-radeon-rv350-gpu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1dd4d03d2f66ecad487aacb5f6ae779e?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">vootey</media:title>
		</media:content>
	</item>
		<item>
		<title>May I introduce &#8230;</title>
		<link>http://vootey.wordpress.com/2010/09/30/may-i-introduce/</link>
		<comments>http://vootey.wordpress.com/2010/09/30/may-i-introduce/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 14:15:08 +0000</pubDate>
		<dc:creator>Lukas Schneiderbauer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[dzen]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://vootey.wordpress.com/?p=79</guid>
		<description><![CDATA[&#8230; two new published projects. smf The first one is a very old one. It stands for &#8220;set mouse frame&#8221;. A more detailed introduction is provided at its page: http://vootey.wordpress.com/project-smf/ dzen-environment The second one is about creating a new desktop-info-environment for my (and possibly other&#8217;s) desktop. A more detailed introduction is provided at its page: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vootey.wordpress.com&amp;blog=12727004&amp;post=79&amp;subd=vootey&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8230; two <strong>new published projects</strong>.</p>
<h3>smf</h3>
<p>The first one is a very old one. It stands for &#8220;set mouse frame&#8221;.<br />
A more detailed introduction is provided at its page: <a href="http://vootey.wordpress.com/project-smf/">http://vootey.wordpress.com/project-smf/</a></p>
<h3>dzen-environment</h3>
<p>The second one is about creating a new desktop-info-environment for my (and possibly other&#8217;s) desktop.<br />
A more detailed introduction is provided at its page: <a href="http://vootey.wordpress.com/project-dzen-environment/">http://vootey.wordpress.com/project-dzen-environment/</a></p>
<br /> Tagged: <a href='http://vootey.wordpress.com/tag/c/'>C</a>, <a href='http://vootey.wordpress.com/tag/dzen/'>dzen</a>, <a href='http://vootey.wordpress.com/tag/linux/'>Linux</a>, <a href='http://vootey.wordpress.com/tag/ruby/'>ruby</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vootey.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vootey.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vootey.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vootey.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vootey.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vootey.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vootey.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vootey.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vootey.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vootey.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vootey.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vootey.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vootey.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vootey.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vootey.wordpress.com&amp;blog=12727004&amp;post=79&amp;subd=vootey&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vootey.wordpress.com/2010/09/30/may-i-introduce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1dd4d03d2f66ecad487aacb5f6ae779e?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">vootey</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby, Qt and bouncing balls</title>
		<link>http://vootey.wordpress.com/2010/04/05/ruby-qt-and-bouncing-balls/</link>
		<comments>http://vootey.wordpress.com/2010/04/05/ruby-qt-and-bouncing-balls/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 22:54:10 +0000</pubDate>
		<dc:creator>Lukas Schneiderbauer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[physics]]></category>
		<category><![CDATA[qt]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://vootey.wordpress.com/?p=45</guid>
		<description><![CDATA[Recently I did some experiments with Ruby and Qt. I thought, it would be a nice adventure to write something like a little &#8220;classical-mechanics physic engine&#8221;. Of course, the focus lies on gaining experience with Ruby and Qt, and not to get exact physical simulations of a specific body. Yet I managed to implement following [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vootey.wordpress.com&amp;blog=12727004&amp;post=45&amp;subd=vootey&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I did some experiments with Ruby and Qt. I thought, it would be a nice adventure to write something like a <strong>little</strong> &#8220;classical-mechanics physic engine&#8221;. Of course, the focus lies on gaining experience with Ruby and Qt, and not to get exact physical simulations of a specific body.</p>
<p>Yet I managed to implement following stuff:</p>
<ul>
<li>Objects (circles, balls) can be added, which own attributes:
<ul>
<li>Mass</li>
<li>Radius of the ball/circle</li>
<li>A force, that acts on the object</li>
<li>Initial position</li>
<li>Initial velocity</li>
</ul>
</li>
<li>Elastic collision
<ul>
<li>just the implementation of the <em>centric</em> elastic collision (a little minimalist, I know <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ; it&#8217;ll be changed soon)</li>
</ul>
</li>
</ul>
<p>This all should work within 3 dimensions (actually more). However, the display is 2-dimensional. So you&#8217;ll only see 2D.</p>
<p><strong>Source</strong>: <a title="physics test" href="http://docs.google.com/uc?id=0B0KtYbDssgy1MDg1NmVjYTItOTlkNy00OTI4LWI4NTEtZmE2NWQ5ODhlMzE4&amp;export=download&amp;hl=en" target="_self">physics_05042010.tar.gz</a> (published under GPL)</p>
<p><strong>Requirements</strong>:</p>
<ul>
<li>&gt;= Ruby 1.8.7</li>
<li>&gt;= Qt 4.6 (not sure about the exact version, may function with lower versions too)</li>
<li>version matching Ruby bindings for Qt.</li>
</ul>
<p>The code is uncommented yet, but I think not unreadable. Nomenclature should do it for now.</p>
<p>What bothers me is the <em>collision detection</em>. Now it&#8217;s a simple cross-check (checks the distance two objects) on all existing objects, which is done every move. I can imagine, that this is not the cheapest way, if it&#8217;s about computationally intensity. Additionally I cannot avoid a &#8220;leapover&#8221; of two objects (at small volumes and/or high velocities).</p>
<p>How &#8220;leapover&#8221; effects on bouncing balls: <a href="http://www.ziddu.com/viewfile/9316345/bouncing_balls.mpeg.html">video</a> (look at the smallest ball)</p>
<p>I also considered a more mathematical approach: If you imagine two objects as two curves through time (R -&gt; R³), you will be able to determine the crossing points in a more analytical (in my oppionion better) way. But this case is only applicable for objects without volume. So what about the extension of such a body? The curve would now look like a <em>tube</em> through time. This looks again like a lot needed computing time. And the &#8220;leapover&#8221;-problem is again unsolved, isn&#8217;t it?</p>
<br /> Tagged: <a href='http://vootey.wordpress.com/tag/engine/'>engine</a>, <a href='http://vootey.wordpress.com/tag/physics/'>physics</a>, <a href='http://vootey.wordpress.com/tag/qt/'>qt</a>, <a href='http://vootey.wordpress.com/tag/ruby/'>ruby</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vootey.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vootey.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vootey.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vootey.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vootey.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vootey.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vootey.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vootey.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vootey.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vootey.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vootey.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vootey.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vootey.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vootey.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vootey.wordpress.com&amp;blog=12727004&amp;post=45&amp;subd=vootey&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vootey.wordpress.com/2010/04/05/ruby-qt-and-bouncing-balls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1dd4d03d2f66ecad487aacb5f6ae779e?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">vootey</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby &amp; code-completion [with Vim]</title>
		<link>http://vootey.wordpress.com/2010/03/28/ruby-code-completion-with-vim/</link>
		<comments>http://vootey.wordpress.com/2010/03/28/ruby-code-completion-with-vim/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 09:37:25 +0000</pubDate>
		<dc:creator>Lukas Schneiderbauer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[completion]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[rcodetools]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://vootey.wordpress.com/?p=36</guid>
		<description><![CDATA[These days I was looking for an environment for ruby, which provides advanced development helper stuff (like code completion for example).  Because of the issue, that ruby is an out-and-out dynamic language, such help provider turn out to become a very complex topic. However, after all I discovered a quite nice editor-independend tool-collection, called rcodetools. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vootey.wordpress.com&amp;blog=12727004&amp;post=36&amp;subd=vootey&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>These days I was looking for an environment for ruby, which provides advanced development helper stuff (like code completion for example).  Because of the issue, that ruby is an out-and-out dynamic language, such help provider turn out to become a very complex topic.</p>
<p>However, after all I discovered a quite nice editor-independend tool-collection, called <strong>rcodetools</strong>. Information is available at <a href="http://rubyforge.org/projects/rcodetools/" target="_blank">RubyForge</a> and <a href="http://eigenclass.org/hiki/rcodetools" target="_blank">here</a>.</p>
<blockquote><p>rcodetools is a collection of Ruby code manipulation tools for automagic Test::Unit(RSpec) assertion generation, code annotation, 100% accurate code completion, code and documentation browsing, precise method information (rcodetools is meta-programming aware)&#8230;</p>
<p>rcodetools 0.7.0 introduces &#8220;test-driven completion&#8221; (TDC) which allows 100%-accurate completion while alternating between implementation and tests. Several new mechanisms allow faster development in large projects, and xmpfilter supports RSpec&#8217;s latest syntax.</p>
<p>rcodetools can be used with any editor, but it ships with emacs and vim support.</p></blockquote>
<p>Since I&#8217;m a <em>Vim</em>-user, it&#8217;s perfect to me &#8230; and the deployment is rather easy, if you know what to do. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Assuming Ruby and RubyGems are installed and working, you can simply install it via RubyGems:</p>
<pre class="brush: plain;">gem install rcodetools
gem install fastri</pre>
<p>The last one you&#8217;ll just need, if you want documentation browsing support. Though I thought, RubyGems does it automatically,  I additionally had to execute the particular <em>setup.rb</em> (e.g. /usr/lib/ruby/gems/1.8/gems/rcodetools-0.8.5.0/setup.rb [path may vary]) as root to set it up properly.</p>
<p>As next step, you have to copy the <em>rcodetools.vim</em> from the mentioned gem-directory into the <em>Vim</em>&#8216;s plugin-directory: in my case: ~/.vim/plugin/).</p>
<p>If you want documentation browsing support, you&#8217;ll have to add following line to your <em>Vim</em>-config (~/.vimrc):</p>
<pre class="brush: plain;">let g:rct_completion_use_fri = 1</pre>
<p>. Again, this will only work, if you install <em>fastri</em> first. Every time you wanna use it, <em>fastri-server</em> (shipped with the gem) must run.</p>
<p style="text-align:left;">Now everything should be set up proberly and working. Here is a nice screen-view, how it should look like:</p>
<div id="attachment_38" class="wp-caption aligncenter" style="width: 546px"><a href="http://eigenclass.org/hiki/rcodetools-screenshots" target="_blank"><img class="size-full wp-image-38      " style="border:0 none;" title="vim-completion" src="http://vootey.files.wordpress.com/2010/03/vim-completion.gif?w=536&#038;h=420" alt="" width="536" height="420" /></a><p class="wp-caption-text">Vim with Ruby code-completion.</p></div>
<p style="text-align:left;">At last, one important thing is to say about it: <strong>Be aware of the side effects</strong> of such technologies! As mentioned above, <em>Ruby</em> is a dynamic language. This means, the plugin has to execute your ruby code to obtain the information it needs. For instance this sideeffect takes place, if your code is deleting a file or sending an email. While you are using the code-completion feature, your code is executed before you really want to. So your file is already deleted or the email is already sent, before you start your program.</p>
<br /> Tagged: <a href='http://vootey.wordpress.com/tag/completion/'>completion</a>, <a href='http://vootey.wordpress.com/tag/linux/'>Linux</a>, <a href='http://vootey.wordpress.com/tag/rcodetools/'>rcodetools</a>, <a href='http://vootey.wordpress.com/tag/ruby/'>ruby</a>, <a href='http://vootey.wordpress.com/tag/vim/'>vim</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vootey.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vootey.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vootey.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vootey.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vootey.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vootey.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vootey.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vootey.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vootey.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vootey.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vootey.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vootey.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vootey.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vootey.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vootey.wordpress.com&amp;blog=12727004&amp;post=36&amp;subd=vootey&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vootey.wordpress.com/2010/03/28/ruby-code-completion-with-vim/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1dd4d03d2f66ecad487aacb5f6ae779e?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">vootey</media:title>
		</media:content>

		<media:content url="http://vootey.files.wordpress.com/2010/03/vim-completion.gif" medium="image">
			<media:title type="html">vim-completion</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby, Qt4-Bindings, and Gentoo</title>
		<link>http://vootey.wordpress.com/2010/03/25/ruby-qt4-bindings-and-gentoo/</link>
		<comments>http://vootey.wordpress.com/2010/03/25/ruby-qt4-bindings-and-gentoo/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:24:29 +0000</pubDate>
		<dc:creator>Lukas Schneiderbauer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[qt4]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://vootey.wordpress.com/?p=12</guid>
		<description><![CDATA[As I wrote in the About-section, I was waiting for a chance to increase my experience with ruby. And I got one! However, the &#8220;chance&#8221; itself is not of importance in this post Fact is, the decision had to be made, which GUI-framework I want to use in the future. Since I&#8217;m a KDE user [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vootey.wordpress.com&amp;blog=12727004&amp;post=12&amp;subd=vootey&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I wrote in the About-section, I was waiting for a chance to increase my experience with ruby. And I got one! However, the &#8220;chance&#8221; itself is not of importance in this post</p>
<p>Fact is, the decision had to be made, which GUI-framework I want to use in the future. Since I&#8217;m a KDE user and KDE&#8217;s used framework is Qt4 and since I nearly heard only good things of it (not to mention, it&#8217;s open source now), I choose to use it: <strong>Qt4</strong>. The next logical step was, of course, to look for bindings for Ruby and install them. Sounds easy, but it barely was.</p>
<p>After a unsuccessfull look into the Gentoo portage-tree, I tried my luck in the web. And <a href="http://rubyforge.org/projects/korundum/">here</a> (a RubyForge project) it is. Okay, at least there exists a stable version, but building it myself is the last thing I wanna do. I gave <a href="http://rubygems.org/">RubyGem</a> a try. It&#8217;s the Ruby&#8217;s package manager, which is delivered with Ruby. I found the right package in the repository, but it was only a win32-version, so it&#8217;s not of use for me. At next, Google told me about a <em>qt4-qtruby</em>-ebuild in the <em>qting-edge</em> portage-overlay. Adding the overlay and emerging the ebuild brought me following:</p>
<pre class="brush: plain;">Scanning dependencies of target smokeqt
[ 32%] [ 34%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/smokedata.o
[ 36%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/x_1.o
Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/x_2.o
/dev/shm/portage/dev-ruby/qt4-qtruby-2.0.3/work/qt4-qtruby-2.0.3_build/smoke/qt/smokedata.cpp:6086:
error: expected ‘}’ before ‘com’
/dev/shm/portage/dev-ruby/qt4-qtruby-2.0.3/work/qt4-qtruby-2.0.3_build/smoke/qt/smokedata.cpp:6086:
error: expected ‘}’ before ‘com’
/dev/shm/portage/dev-ruby/qt4-qtruby-2.0.3/work/qt4-qtruby-2.0.3_build/smoke/qt/smokedata.cpp:6086:
error: expected ‘,’ or ‘;’ before ‘com’
/dev/shm/portage/dev-ruby/qt4-qtruby-2.0.3/work/qt4-qtruby-2.0.3_build/smoke/qt/smokedata.cpp:6086:
error: expected declaration before ‘}’ token
make[2]: *** [smoke/qt/CMakeFiles/smokeqt.dir/smokedata.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [smoke/qt/CMakeFiles/smokeqt.dir/all] Error 2
make: *** [all] Error 2</pre>
<p>Disappointment after disappointment &#8230;</p>
<p>After some time searching the web for answers, I finally found a appropriate <a href="http://bugs.gentoo.org/224951">bugreport</a>. It told me to make use of the <em>kdebindings-ruby</em>-ebuild from the <em>kde</em>-overlay (never saw it before). I emerged it, and violá: after spending a day searching the one word <strong>kdebindings-ruby</strong>, the bindings were finally installed.</p>
<p>I even managed to get my first <em>Hello World</em>-program running:</p>
<pre class="brush: plain;">require 'Qt'

app = Qt::Application.new ARGV

hello = Qt::PushButton.new &quot;Hello World!&quot;
hello.resize(100,30)
hello.show

app.exec</pre>
<div id="attachment_19" class="wp-caption aligncenter" style="width: 118px"><a href="http://vootey.files.wordpress.com/2010/03/qt4_ruby_tutorial_screenshot_1.png"><img class="size-full wp-image-19 " title="ruby_qt4_helloworld" src="http://vootey.files.wordpress.com/2010/03/qt4_ruby_tutorial_screenshot_1.png?w=108&#038;h=64" alt="" width="108" height="64" /></a><p class="wp-caption-text">Hello World!</p></div>
<p>By the way this is my first blog-entry, so this program seems to be quite suitable. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<br /> Tagged: <a href='http://vootey.wordpress.com/tag/gentoo/'>Gentoo</a>, <a href='http://vootey.wordpress.com/tag/linux/'>Linux</a>, <a href='http://vootey.wordpress.com/tag/qt4/'>qt4</a>, <a href='http://vootey.wordpress.com/tag/ruby/'>ruby</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vootey.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vootey.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vootey.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vootey.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vootey.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vootey.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vootey.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vootey.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vootey.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vootey.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vootey.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vootey.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vootey.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vootey.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vootey.wordpress.com&amp;blog=12727004&amp;post=12&amp;subd=vootey&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vootey.wordpress.com/2010/03/25/ruby-qt4-bindings-and-gentoo/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1dd4d03d2f66ecad487aacb5f6ae779e?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">vootey</media:title>
		</media:content>

		<media:content url="http://vootey.files.wordpress.com/2010/03/qt4_ruby_tutorial_screenshot_1.png" medium="image">
			<media:title type="html">ruby_qt4_helloworld</media:title>
		</media:content>
	</item>
	</channel>
</rss>
