<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.1" -->
<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/"
	>

<channel>
	<title>RealNitro's Blog</title>
	<link>http://blog.realnitro.be</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Tue, 31 Aug 2010 18:45:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<item>
		<title>Git SVN diff compatible with reviewboard (and TortoiseSVN?)</title>
		<link>http://blog.realnitro.be/2010/08/31/git-svn-diff-compatible-with-reviewboard-and-tortoisesvn/</link>
		<comments>http://blog.realnitro.be/2010/08/31/git-svn-diff-compatible-with-reviewboard-and-tortoisesvn/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 18:45:49 +0000</pubDate>
		<dc:creator>RealNitro</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://blog.realnitro.be/2010/08/31/git-svn-diff-compatible-with-reviewboard-and-tortoisesvn/</guid>
		<description><![CDATA[Recently I needed to upload some patches to Review Board. I foolishly tried to upload a patch that was created by git diff (I&#8217;m a git-svn user) but Review Board expects an SVN patch&#8230; While there are some simple solutions to be found on the web, I could not find any that correctly handled new [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I needed to upload some patches to <a href="http://www.reviewboard.org/">Review Board</a>. I foolishly tried to upload a patch that was created by <code>git diff</code> (I&#8217;m a <code>git-svn</code> user) but <a href="http://www.reviewboard.org">Review Board</a> expects an <a href="http://subversion.tigris.org/">SVN</a> patch&#8230; While there are some simple solutions to be found on the web, I could not find any that correctly handled <strong>new files</strong> in the patch. The closest thing I found was a mail on the <a href="http://mail.kde.org/pipermail/panel-devel/2008-May/011150.html">KDE panel-devel mailinglist</a>.</p>
<p>I started looking into <code>sed</code> and came up with a slightly more powerful version: <script src="http://gist.github.com/559473.js?file=git-svn-diff.sh"></script></p>
<p>This script supports updated files and new files. I have not tested it yet with deleted files.</p>
<p>Feel free to use it if you need it. Good luck!</p>
<p>Note: a <a href="http://eikke.com/">friend</a> linked me a <a href="http://blog.cyberion.net/2009/04/git-svn-diff-review-board-patch.html">Perl script</a> that does the same thing. I haven&#8217;t tested it yet, so I have no idea how well it works.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.realnitro.be/2010/08/31/git-svn-diff-compatible-with-reviewboard-and-tortoisesvn/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Volvo V50 + FAT flashdrive mp3 file order</title>
		<link>http://blog.realnitro.be/2010/03/07/volvo-v50-fat-flashdrive-mp3-file-order/</link>
		<comments>http://blog.realnitro.be/2010/03/07/volvo-v50-fat-flashdrive-mp3-file-order/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 19:53:11 +0000</pubDate>
		<dc:creator>RealNitro</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://blog.realnitro.be/2010/03/07/volvo-v50-fat-flashdrive-mp3-file-order/</guid>
		<description><![CDATA[My Volvo V50&#8217;s mp3 player is able to sort the folders it finds on the flash drive I plug into it, but is unable to sort the mp3 files in the folders in any useful way. It seems like it just plays them as it finds them on the file-system. This week I found a [...]]]></description>
			<content:encoded><![CDATA[<p>My Volvo V50&#8217;s mp3 player is able to sort the folders it finds on the flash drive I plug into it, but is unable to sort the mp3 files in the folders in any useful way. It seems like it just plays them as it finds them on the file-system. This week I found a utility that sorts the files on the file-system, called <a href="http://fatsort.berlios.de/">FATSort</a>. If you&#8217;re a Linux user, make sure the names of your mp3 files start with the track number (01, 02, 03, &#8230;), install this utility and run it on your flash drive&#8217;s device. Your car will now play your music in the order it was intended to be heard.</p>
<p>If you&#8217;re a windows user, <a href="http://hem.passagen.se/chsw/fatsort/index.html">this utility</a> seems similar, but I didn&#8217;t test it.</p>
<p>I hope this helps a fellow Volvo (or other) owner out. Happy listening!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.realnitro.be/2010/03/07/volvo-v50-fat-flashdrive-mp3-file-order/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Will be reviewing &#8220;Grok 1.0 Web Development&#8221;</title>
		<link>http://blog.realnitro.be/2010/03/07/will-be-reviewing-grok-10-web-development/</link>
		<comments>http://blog.realnitro.be/2010/03/07/will-be-reviewing-grok-10-web-development/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 19:41:15 +0000</pubDate>
		<dc:creator>RealNitro</dc:creator>
		
		<category><![CDATA[Python]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://blog.realnitro.be/2010/03/07/will-be-reviewing-grok-10-web-development/</guid>
		<description><![CDATA[This is just a quick note to announce that I will be reviewing &#8220;Grok 1.0 Web Development&#8221; from Packt Publishing. They kindly provided me with an elektronic copy of the book. I&#8217;m looking forward to getting to know a new Python web framework (Grok) and the framework it&#8217;s based on (Zope 3). To be continued&#8230;
]]></description>
			<content:encoded><![CDATA[<p>This is just a quick note to announce that I will be reviewing &#8220;<a href="http://www.packtpub.com/grok-1-0-web-development/book?utm_source=blog.realnitro.be&#038;utm_medium=bookrev&#038;utm_content=blog&#038;utm_campaign=mdb_002626">Grok 1.0 Web Development</a>&#8221; from <a href="http://www.packtpub.com/">Packt Publishing</a>. They kindly provided me with an elektronic copy of the book. I&#8217;m looking forward to getting to know a new Python web framework (<a href="http://grok.zope.org/">Grok</a>) and the framework it&#8217;s based on (<a href="http://www.zope.org/">Zope 3</a>). To be continued&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.realnitro.be/2010/03/07/will-be-reviewing-grok-10-web-development/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using the mercurial mq extension</title>
		<link>http://blog.realnitro.be/2010/02/20/using-the-mercurial-mq-extension/</link>
		<comments>http://blog.realnitro.be/2010/02/20/using-the-mercurial-mq-extension/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 12:29:09 +0000</pubDate>
		<dc:creator>RealNitro</dc:creator>
		
		<category><![CDATA[mercurial]]></category>

		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.realnitro.be/2010/02/20/using-the-mercurial-mq-extension/</guid>
		<description><![CDATA[Being a big git fan, I was disappointed when I was forced to use mercurial at work. In my opinion, mercurial is not as flexible and powerful as git. But lately I&#8217;ve started to use the mq extension of mercurial, which gives me back some of the more powerful features of git I had missed [...]]]></description>
			<content:encoded><![CDATA[<p>Being a big <a href="http://git-scm.com/">git</a> fan, I was disappointed when I was forced to use <a href="http://mercurial.selenic.com/">mercurial</a> at work. In my opinion, mercurial is not as flexible and powerful as git. But lately I&#8217;ve started to use the mq extension of mercurial, which gives me back some of the more powerful features of git I had missed the most.</p>
<p>One thing I liked about git was being able to update my commits to include the name of a reviewer in the commit message, or to include the fixes that resulted from the review in the commit. Read on to see how you can use the mq extension for this.</p>
<p> <a href="http://blog.realnitro.be/2010/02/20/using-the-mercurial-mq-extension/#more-51" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.realnitro.be/2010/02/20/using-the-mercurial-mq-extension/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Announcing: BurgieBot twisted IRC bot</title>
		<link>http://blog.realnitro.be/2008/10/12/announcing-burgiebot-twisted-irc-bot/</link>
		<comments>http://blog.realnitro.be/2008/10/12/announcing-burgiebot-twisted-irc-bot/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 19:24:33 +0000</pubDate>
		<dc:creator>RealNitro</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://blog.realnitro.be/2008/10/12/announcing-burgiebot-twisted-irc-bot/</guid>
		<description><![CDATA[BurgieBot is a project that was started early 2008 by Nicolas Trangez and had some short bursts of development since. Its purpose since has been to run inside a small IRC-channel, logging, and more importantly hosting trivia games.  
The trivia plugin is the most important feature of BurgieBot, and the one I enjoyed most [...]]]></description>
			<content:encoded><![CDATA[<p>BurgieBot is a project that was started early 2008 by <a href="http://eikke.com/">Nicolas Trangez</a> and had some short bursts of development since. Its purpose since has been to run inside a small IRC-channel, logging, and more importantly hosting trivia games. <img src='http://blog.realnitro.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The trivia plugin is the most important feature of BurgieBot, and the one I enjoyed most over the last months. I didn&#8217;t announce it back then because it had some small bugs that needed fixing. Those are fixed now, and the bot runs quite nicely. There&#8217;s a lot that I wanted to fix/change before releasing it, but following the release early, release often philosophy, I&#8217;m releasing it now.</p>
<p><strong>BurgieBot pros</strong></p>
<ul>
<li>Easy to extend with plugins</li>
<li>Trivia plugin</li>
<li>Automatic reloading of plugins without restarting the bot</li>
</ul>
<p><strong>BurgieBot cons</strong></p>
<ul>
<li>No i18n, most strings are in Dutch</li>
<li>No docs&#8230;</li>
<li>Automatic reloading of plugins sometimes fails</li>
</ul>
<p><strong>Download it</strong><br />
<a href="http://realnitro.be/files/burgiebot/BurgieBot_master.tar.gz">Tarball</a>, <a href="http://realnitro.be/files/burgiebot/BurgieBot_master.zip">Zip</a></p>
<p><strong>Dependencies</strong></p>
<ul>
<li>Python 2.5 or higher</li>
<li>SQLAlchemy 0.4.4 or higher</li>
<li>twisted</li>
<li>pyinotify (used for reloading modules on the fly)</li>
</ul>
<p><strong>How to run it</strong><br />
Create a settings.py file in the folder containing the burgiebot.py file containing:</p>
<blockquote><p><code><br />
channels = ['#demochannel',]<br />
host = 'irc.demoserver.org'<br />
port = 6667<br />
nick = 'BurgieBot'<br />
dsn = 'sqlite:///file.db' # Use an sqlite db<br />
colors = True # Display messages in color<br />
</code></p></blockquote>
<p>And run the bot using <code>python burgiebot.py</code></p>
<p>You can browse the code <a href="http://code.realnitro.be/burgiebot/tags/burgiebot-0.2/">here</a> (yes, that&#8217;s a Django-based gitweb-like interface, which is WIP and unreleased <img src='http://blog.realnitro.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ), or clone the git repository from <code>http://realnitro.be/git/burgiebot.git/</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.realnitro.be/2008/10/12/announcing-burgiebot-twisted-irc-bot/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Vanaf september @ Q-layer</title>
		<link>http://blog.realnitro.be/2008/05/05/vanaf-september-q-layer/</link>
		<comments>http://blog.realnitro.be/2008/05/05/vanaf-september-q-layer/#comments</comments>
		<pubDate>Mon, 05 May 2008 14:15:49 +0000</pubDate>
		<dc:creator>RealNitro</dc:creator>
		
		<category><![CDATA[Nederlands]]></category>

		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://blog.realnitro.be/2008/05/05/vanaf-september-q-layer/</guid>
		<description><![CDATA[Het is alweer een maand geleden dat ik hier iets gepost heb, dus het is hoog tijd voor een kleine update: Ik heb deze voormiddag getekend bij Q-layer. Nicolas en ik worden dus collega&#8217;s vanaf 1 september.  Q-layer ontwikkelt o.a. Virtual Private Datacenter software en een Datacenter Abstraction Layer. Meer info hier. Fancy screencasts [...]]]></description>
			<content:encoded><![CDATA[<p>Het is alweer een maand geleden dat ik hier iets gepost heb, dus het is hoog tijd voor een kleine update: Ik heb deze voormiddag getekend bij <a href="http://qlayer.com/">Q-layer</a>. <a href="http://eikke.com/">Nicolas</a> en ik worden dus collega&#8217;s vanaf 1 september. <img src='http://blog.realnitro.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Q-layer ontwikkelt o.a. Virtual Private Datacenter software en een Datacenter Abstraction Layer. Meer info <a href="http://www.qlayer.com/index.php?option=com_content&#038;task=section&#038;id=4&#038;Itemid=138">hier</a>. Fancy screencasts <a href="http://www.qlayer.com/index.php?option=com_facileforms&#038;Itemid=156">hier</a> (registratie nodig).</p>
<p>Nu nog die thesis op tijd afkrijgen&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.realnitro.be/2008/05/05/vanaf-september-q-layer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Great error messages</title>
		<link>http://blog.realnitro.be/2008/04/01/great-error-messages/</link>
		<comments>http://blog.realnitro.be/2008/04/01/great-error-messages/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 13:13:09 +0000</pubDate>
		<dc:creator>RealNitro</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://blog.realnitro.be/2008/04/01/great-error-messages/</guid>
		<description><![CDATA[I just ran into this error message:
$ find . -name "*/version*/*"
find: warning: UNIX filenames usually don't contain slashes (though pathnames do). That means that '-name */version*/*' will probably evaluate to false all the time on this system. You might find the '-wholename' test more useful, or perhaps '-samefile'. Alternatively, if you are using GNU grep, [...]]]></description>
			<content:encoded><![CDATA[<p>I just ran into this error message:</p>
<blockquote><p><code>$ find . -name "*/version*/*"<br />
find: warning: UNIX filenames usually don't contain slashes (though pathnames do). That means that '-name */version*/*' will probably evaluate to false all the time on this system. You might find the '-wholename' test more useful, or perhaps '-samefile'. Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ */version*/*'.</code></p></blockquote>
<p>I wish I could say the same about <a href="http://git.or.cz/">git</a>. <img src='http://blog.realnitro.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.realnitro.be/2008/04/01/great-error-messages/feed/</wfw:commentRss>
		</item>
		<item>
		<title>deredactie.be niet bereikbaar vanaf UGent.be?</title>
		<link>http://blog.realnitro.be/2008/03/03/deredactiebe-niet-bereikbaar-vanaf-ugentbe/</link>
		<comments>http://blog.realnitro.be/2008/03/03/deredactiebe-niet-bereikbaar-vanaf-ugentbe/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 19:20:09 +0000</pubDate>
		<dc:creator>RealNitro</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://blog.realnitro.be/2008/03/03/deredactiebe-niet-bereikbaar-vanaf-ugentbe/</guid>
		<description><![CDATA[Toen ik daarnet een link naar een pagina op deredactie.be volgde kreeg ik na lang wachten het volgende bericht van firefox: &#8220;Firefox can&#8217;t find the server at www.deredactie.be.&#8221;. Na wat geëxperimenteer op servers binnen en buiten het UGent-netwerk (realnitro.be, eduserv/genix, een vtk-server) blijkt dat deredactie.be overal toegankelijk is, behalve vanuit het UGent-netwerk&#8230;
Weet iemand hier meer [...]]]></description>
			<content:encoded><![CDATA[<p>Toen ik daarnet een link naar een pagina op <a href="http://www.deredactie.be/">deredactie.be</a> volgde kreeg ik na lang wachten het volgende bericht van firefox: &#8220;Firefox can&#8217;t find the server at www.deredactie.be.&#8221;. Na wat geëxperimenteer op servers binnen en buiten het UGent-netwerk (realnitro.be, eduserv/genix, een vtk-server) blijkt dat <a href="http://www.deredactie.be/">deredactie.be</a> overal toegankelijk is, behalve vanuit het UGent-netwerk&#8230;</p>
<p>Weet iemand hier meer over? Zou dit een block vanuit de vrt zijn, of zou het probleem ergens tussenin liggen? Een traceroute stopt bij &#8220;195-130-153-129.iFiber.telenet-ops.be&#8221;&#8230; Iemand?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.realnitro.be/2008/03/03/deredactiebe-niet-bereikbaar-vanaf-ugentbe/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Git op eduserv</title>
		<link>http://blog.realnitro.be/2008/02/12/git-op-eduserv/</link>
		<comments>http://blog.realnitro.be/2008/02/12/git-op-eduserv/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 22:52:44 +0000</pubDate>
		<dc:creator>RealNitro</dc:creator>
		
		<category><![CDATA[Git]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Nederlands]]></category>

		<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://blog.realnitro.be/2008/02/12/git-op-eduserv/</guid>
		<description><![CDATA[Onder invloed van Nicolas ben ik een eindje terug git-gebruiker geworden. Git is een snel versiecontrolesysteem (version control system), zoals svn, maar dan anders.  Een groot verschil is dat git &#8216;distributed&#8217; is. Wat dat precies inhoudt ga ik hier niet uitleggen, wikipedia kan dat veel beter.
Vorige week kreeg ik plots het idee om een [...]]]></description>
			<content:encoded><![CDATA[<p>Onder invloed van <a href="http://eikke.com/">Nicolas</a> ben ik een eindje terug git-gebruiker geworden. Git is een snel versiecontrolesysteem (version control system), zoals svn, maar dan anders. <img src='http://blog.realnitro.be/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> Een groot verschil is dat git &#8216;distributed&#8217; is. Wat dat precies inhoudt ga ik hier niet uitleggen, wikipedia kan dat <a href="http://en.wikipedia.org/wiki/Git_(software)#Characteristics">veel beter</a>.</p>
<p>Vorige week kreeg ik plots het idee om een git-repository te maken op eduserv.ugent.be (of moet ik genix zeggen?). Het leek me handig voor studenten die gebruik wilden maken van een versiecontrolesysteem maar niet over een eigen server beschikten. De rest van deze post is een korte tutorial die je uitlegt hoe je een repository &#8216;pusht&#8217; naar eduserv. Ik veronderstel dus dat je al een basiskennis van git hebt.</p>
<p>Log in op eduserv via ssh. Voer volgend commando uit:</p>
<blockquote><p><code>cp /users/j/jgeirega/git-script.sh .</code></p></blockquote>
<p>(Inclusief de &#8216;.&#8217;!) Als je de inhoud van dit script bekijkt (bijvoorbeeld met &#8220;cat git-script.sh&#8221;), dan zie je dat je PATH variabele hierdoor veranderd wordt. Dit betekent dat al je bestanden uit mijn home-map (/users/j/jgeirega/bin) zal gebruiken om met git te werken; Als je dit niet vertrouwt (ik kan in feite gelijk welk commando in die map stoppen, maar dat doe ik uiteraard niet) kan je je eigen git compileren, daarover meer op het einde van deze post. Pas nu ook met een editor naar keuze (pico-gebruikers vinden die terug als /opt/csw/bin/pico) je .profile bestand aan, opnieuw om de PATH variabele aan te passen. Voeg volgende regel toe:</p>
<blockquote><p><code>PATH="$PATH:/users/j/jgeirega/bin"</code></p></blockquote>
<p>(Hier geldt dezelfde opmerking als daarnet.) Als je nu uitlogt en opnieuw inlogt zou je op eduserv het commando &#8216;git&#8217; moeten kunnen uitvoeren. De output zou moeten beginnen met:</p>
<blockquote><p><code>usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [-p|--paginate] [--bare] [--git-dir=GIT_DIR] [--help] COMMAND [ARGS]<br />
</code></p></blockquote>
<p>Maak nu waar een map aan waar je je repository wil plaatsen. (Opmerking: gewoonlijk laat men de mapnaam van een git repository eindigen op &#8216;.git&#8217;. Bijvoorbeeld &#8216;test.git&#8217;.) Als je je repository via het internet beschikbaar wil maken kan je het bijvoorbeeld in je WWW map zetten. Navigeer in je repository-map en voer uit:</p>
<blockquote><p><code>git --bare init</code></p></blockquote>
<p>Voer nu uit:</p>
<blockquote><p><code>chmod u+x hooks/post-update</code></p></blockquote>
<p>Zorg dat je het preciese pad van die map kent (gebruik bijvoorbeeld het commando &#8216;pwd&#8217;), en je werk op eduserv zit erop!</p>
<p>Terug op je lokale machine open je in je lokale repository het bestand .git/config met een editor naar keuze. Voer daarvoor volgend commando uit:</p>
<blockquote><p><code>git-remote add eduserv ssh://GEBRUIKERSNAAM@eduserv.ugent.be/MAPNAAM</code></p></blockquote>
<p>Vervang GEBRUIKERSNAAM door je gebruikersnaam en MAPNAAM door de naam van de map waarin je zonet een lege (bare) git-repository hebt gemaakt. Om nu de volledige inhoud van je repository naar eduserv te &#8216;pushen&#8217; voer je uit:</p>
<blockquote><p><code>git-push --force --all --receive-pack=~/git-script.sh eduserv</code></p></blockquote>
<p>De output zou moeten gelijken op:</p>
<blockquote><p><code>updating 'refs/heads/master'<br />
  from 0000000000000000000000000000000000000000<br />
  to   2318059c3497c80885602654045511a58b37d9c8<br />
Generating pack...<br />
Done counting 6 objects.<br />
Deltifying 6 objects...<br />
 100% (6/6) done<br />
Writing 6 objects...<br />
 100% (6/6) done<br />
Total 6 (delta 0), reused 0 (delta 0)<br />
refs/heads/master: 0000000000000000000000000000000000000000 -> 2318059c3497c80885602654045511a58b37d9c8<br />
</code></p></blockquote>
<p>Vanaf nu mag je de &#8211;force en &#8211;all na git-push weglaten als je je eduserv-repository wil updaten:</p>
<blockquote><p><code>git-push --receive-pack=~/git-script.sh eduserv</code></p></blockquote>
<p>Merk op dat &#8211;receive-pack het script doorgeeft dat je eerder op eduserv hebt gekopieerd. Dat script is (voor zover ik weet, ksh is een raar ding) nodig om te zorgen dat enkele nodige uitvoerbare (git-)bestanden in je PATH zitten.</p>
<p>Als je je repository onder je WWW map hebt gemaakt kan je het nu clonen over http. Bijvoorbeeld voor een van mijn publieke repositories:</p>
<blockquote><p><code>git-clone http://studwww.ugent.be/~jgeirega/git-repos/test.git/</p></blockquote>
<p></code></p>
<p>Wil je <strong>zelf git compilen op eduserv</strong>? Download dan eerst een git tarball met wget of scp hem naar je account (hier gebruik ik de .tar.gz versie), en extract de tarball met:</p>
<blockquote><p><code>gzip -dc git-1.5.2.5.tar.gz | tar xf -</code></p></blockquote>
<p>Verander git-1.5.2.5.tar.gz naar de versie die je hebt gedownload. Cd in de uitgepakte map en open het bestand Makefile in je favoriete editor. Om git-1.5.2.5 te kunnen compileren moest ik de regels</p>
<blockquote><p><code>ifndef NO_TCLTK<br />
OTHER_PROGRAMS += gitk-wish<br />
endif<br />
</code></p></blockquote>
<p>in commentaar zetten, en in het configuratiegedeelte van SunOs (begint met &#8220;ifeq ($(uname_S),SunOS)&#8221; en eindigt met &#8220;endif&#8221; heb ik voor die endif het volgende toegevoegd:</p>
<blockquote><p><code>        # EDUSERV SPECIFIC<br />
        AR = gar<br />
        TAR = tar<br />
        BASIC_CFLAGS += -I/opt/csw/include<br />
        BASIC_LDFLAGS += -L/opt/csw/lib<br />
        NO_TCLTK = NoThanks<br />
        NEEDS_LIBICONV = YesPlease<br />
        ICONVDIR = /opt/csw<br />
        CURLDIR = /opt/csw<br />
</code></p></blockquote>
<p>Zorg dat /opt/csw/bin/ en /opt/csw/gcc4/bin/ in PATH zitten. Voeg daarvoor volgende regel toe aan ~/.profile:</p>
<blockquote><p><code>PATH="/opt/csw/bin:/opt/csw/gcc4/bin:$PATH"</code></p></blockquote>
<p>Log opnieuw in, navigeer opnieuw naar je git-map en voer eerst &#8216;gmake&#8217; en daarna &#8216;gmake install&#8217; uit. Als alles zonder fouten is verlopen heb je nu in je home-map een map &#8216;bin&#8217; met daarin alle uitvoerbare git-bestanden&#8230; Succes!</p>
<p>Edit: Enkele kleine aanpassingen. Bedankt <a href="http://eikke.com/">Nicolas</a>. <img src='http://blog.realnitro.be/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.realnitro.be/2008/02/12/git-op-eduserv/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Game prototyping with pygame</title>
		<link>http://blog.realnitro.be/2008/02/11/game-prototyping-with-pygame/</link>
		<comments>http://blog.realnitro.be/2008/02/11/game-prototyping-with-pygame/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 22:18:32 +0000</pubDate>
		<dc:creator>RealNitro</dc:creator>
		
		<category><![CDATA[Pygame]]></category>

		<category><![CDATA[Games]]></category>

		<category><![CDATA[Python]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[English]]></category>

		<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://blog.realnitro.be/2008/02/11/game-prototyping-with-pygame/</guid>
		<description><![CDATA[I&#8217;m subscribed to a few gaming-related blogfeeds and Lost Garden is one of my favorites. Today Lost Garden&#8217;s Danc posted a new game prototyping challenge: &#8220;Play With Your Peas&#8220;. The challenge is to build a game based on Danc&#8217;s game idea, using his (free!) graphics. The game idea and the graphics were both very attractive, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m subscribed to a few gaming-related blogfeeds and <a href="http://lostgarden.com/">Lost Garden</a> is one of my favorites. Today Lost Garden&#8217;s Danc posted a new game prototyping challenge: &#8220;<a href="http://lostgarden.com/2008/02/play-with-your-peas-game-prototyping.html">Play With Your Peas</a>&#8220;. The challenge is to build a game based on Danc&#8217;s game idea, using his (free!) graphics. The game idea and the graphics were both very attractive, so I decided to dive in.</p>
<p>I used <a href="http://live.gnome.org/Istanbul">Istanbul</a> to record a screencast of the result after 10-odd hours of hacking with pygame. Download the .ogg <a href="http://realnitro.be/files/peas/Peas.ogg">here</a>. (I&#8217;m too tired/lazy to convert it to another format. If you can&#8217;t open it with your browser, use right-click and save-as to download it and play it with <a href="http://www.videolan.org/">VLC</a>. I might upload a better version tomorrow.) The basic level-building code is done, the rest isn&#8217;t. <img src='http://blog.realnitro.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Grab the code <a href="http://realnitro.be/files/peas/pypeas.zip">here</a>, but keep in mind that it was written in a rush by a <a href="http://pygame.org/">pygame</a> noob. <img src='http://blog.realnitro.be/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> I used the code of <a href="http://www.pygame.org/docs/tut/tom/MakeGames.html">this tutorial</a> as a starting point. One obvious mistake I made was reloading each sprite over and over again but that doesn&#8217;t keep it from working. The code should run on all OS&#8217;s that are supported by <a href="http://pygame.org/">pygame</a>.  You&#8217;ll need a copy of Danc&#8217;s graphics, extracted to a subdirectory called &#8216;data&#8217;.</p>
<p>I threw the unfinished code online because I don&#8217;t know if I&#8217;ll keep on working on it after today. There is still a lot of work to do on my master thesis so my focus will be there from now on. <img src='http://blog.realnitro.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.realnitro.be/2008/02/11/game-prototyping-with-pygame/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
