<?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>Eurion · RainCT&#039;s Blog &#187; Planet Ubuntu.cat</title>
	<atom:link href="http://bloc.eurion.net/archives/category/ubuntucat-planet/feed/" rel="self" type="application/rss+xml" />
	<link>http://bloc.eurion.net</link>
	<description>I would love to change the world, but they won&#039;t give me the source code...</description>
	<lastBuildDate>Sun, 29 Jan 2012 13:23:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Breu introducció al sistema de control de versions Bazaar</title>
		<link>http://bloc.eurion.net/archives/2011/introduccio-al-bzr/</link>
		<comments>http://bloc.eurion.net/archives/2011/introduccio-al-bzr/#comments</comments>
		<pubDate>Tue, 17 May 2011 16:49:03 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[bzr]]></category>
		<category><![CDATA[desenvolupament]]></category>
		<category><![CDATA[vcs]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=1389</guid>
		<description><![CDATA[Introducci&#243; A l&#39;hora de desenvolupar aplicacions inform&#224;tiques en grup &#233;s molt important disposar d&#39;un sistema de control de versions (VCS,&#160;version control system). Explicat molt breument, els VCS s&#243;n&#160;eines de desenvolupament que permeten desar captures del codi font (revisions) creant tot un historial de canvis a mida que avan&#231;a el desenvolupament del programa; a m&#233;s, permeten [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introducci&oacute;<br />
	</strong></p>
<p>A l&#39;hora de desenvolupar aplicacions inform&agrave;tiques en grup &eacute;s molt important disposar d&#39;un sistema de control de versions (<strong>VCS</strong>,&nbsp;<em>version control system</em>). Explicat molt breument, els VCS s&oacute;n&nbsp;eines de desenvolupament que permeten desar captures del codi font (<em>revisions</em>) creant tot un historial de canvis a mida que avan&ccedil;a el desenvolupament del programa; a m&eacute;s, permeten compartir aquestes captures amb els companys de treball i normalment tenen capacitats per resoldre conflictes entre revisions creades en para?lel per diferents persones.</p>
<p>Un VCS potent utilitzat correctament pot incrementar la productivitat de forma dr&agrave;stica, al reduir problemes de coordinaci&oacute; facilitant que diferents desenvolupadors puguin compartir f&agrave;cilment les &uacute;ltimes versions de la seva feina i que&nbsp;m&eacute;s d&#39;una persona pugui fer canvis simultanis a un mateix conjunt de fitxers minimitzant els possibles conflictes resultants.</p>
<p>Hi ha un gran ventall de sistemes de control de versions disponibles, dels quals el m&eacute;s conegut &eacute;s segurament el <strong><a href="http://subversion.apache.org/">Subversion</a></strong>. Aquest, per&ograve;, permet &uacute;nicament un model <a href="http://en.wikipedia.org/wiki/Distributed_revision_control#Distributed_vs._centralized">centralitzat</a>&nbsp;i en general &eacute;s bastant limitat. Personalment prefereixo sistemes com ara el <a href="http://bazaar.canonical.com/en/"><strong>Bazaar</strong></a>&nbsp;(<em>bzr</em>). (El <a href="http://ca.wikipedia.org/wiki/Git"><strong>Git</strong></a> &eacute;s encara m&eacute;s potent, per&ograve; &eacute;s molt m&eacute;s dif&iacute;cil d&#39;aprendre a utilitzar, pel qual en aquest apunt em centrar&eacute; en el Bazaar; tamb&eacute; hi ha altres alternatives, com ara el <a href="http://ca.wikipedia.org/wiki/Mercurial">Mercurial</a>,&nbsp;per&ograve; no estic familiaritzat amb aquestes).</p>
<p><strong>Instal&middot;laci&oacute;</strong></p>
<p>En sistemes com ara l&#39;Ubuntu o Debian est&agrave; disponible en un paquet anomenat &laquo;bzr&raquo; i segurament el mateix sigui cert per a altres distribucions de GNU/Linux. Si feu servir un altre sistema operatiu podeu baixar-lo de&nbsp;<a href="http://wiki.bazaar.canonical.com/Download">bazaar.canonical.com</a>.</p>
<p>Com a nota al marge, el Bazaar tamb&eacute; disposa d&#39;una interf&iacute;cie gr&agrave;fica (<a href="http://doc.bazaar.canonical.com/explorer/en/">Bazaar Explorer</a>), per&ograve; ja que aquest apunt l&#39;escric orientat a desenvolupadors nom&eacute;s explicar&eacute; el seu &uacute;s des de la l&iacute;nia d&#39;ordres.</p>
<p><strong>Configuraci&oacute;</strong></p>
<p>Abans de poder fer operacions d&#39;escriptura cal que digueu al Bazaar com us voleu identificar. Podeu fer-ho de la seg&uuml;ent forma:</p>
<pre>bzr whoami &quot;<em>Nom Cognom</em> &lt;<em>email@domini.tld</em>&gt;&quot;</pre>
<p>En cas que feu servir el portal <a href="https://launchpad.net/">Launchpad</a>, tamb&eacute; podeu habilitat la integraci&oacute; amb aquest (si no coneixeu el Launchpad, podeu ignorar aix&ograve;):</p>
<pre>bzr launchpad-login <em>nom_usuari</em></pre>
<p><b>Primers passos</b></p>
<p>Imaginem que estem dins un directori &laquo;el-meu-projecte&raquo; on hi tenim un seguit de fitxers de codi (&laquo;main.c&raquo; i &laquo;utils.c&raquo;). Per comen&ccedil;ar a utilitzar el Bazaar amb aquest codi el primer que hem de fer &eacute;s crear una <em><strong>branca</strong></em>:</p>
<pre>bzr init</pre>
<p>Ara podem afegir-hi els fitxers que volem que controli:</p>
<pre>bzr add main.c utils.c</pre>
<p>i tot seguit podem crear una primera <em><strong>revisi&oacute;</strong></em> (una captura del contingut actual dels fitxers):</p>
<pre>bzr commit -m &quot;Primera revisi&oacute; del meu nou projecte...&quot;</pre>
<p>Un cop fet aix&ograve;, imaginem que acabem de fer uns canvis al fitxer <em>main.c</em>. Un cop comprovat que aquests funcionen correctament, procedirem a crear una segona revisi&oacute;:</p>
<p>bzr commit -m &quot;Aqu&iacute; aniria una descripci&oacute; dels &uacute;ltims canvis.&quot;</p>
<p>I ja tenim dues revisions en la nostra branca. Ara podem recuperar el llistat de canvis que hem fet amb:</p>
<pre>bzr log</pre>
<p>I veuriem alguna cosa com la seg&uuml;ents</p>
<pre>------------------------------------------------------------
<strong>revno: 2</strong>
committer: Nom Cognom &lt;email@domini.tld&gt;
branch nick: foo
timestamp: Tue 2011-05-17 18:19:48 +0200
message:
&nbsp;&nbsp;Alguns altres canvis que he fet...
------------------------------------------------------------
<strong>revno: 1</strong>
committer: Nom Cognom &lt;email@domini.tld&gt;
branch nick: projecte1
timestamp: Tue 2011-05-17 18:19:29 +0200
message:

&nbsp;&nbsp;Primera revisi&oacute; del meu nou projecte...
</pre>
<p>Si voleu analitzar en m&eacute;s detall una revisi&oacute;, podeu comparar dues (o m&eacute;s) revisions amb l&#39;ordre:</p>
<pre>bzr diff -r<strong>1</strong>..<strong>2</strong></pre>
<p>A m&eacute;s, quan arribeu a una versi&oacute; estable del vostre programa podeu marcar la revisi&oacute; actual amb una <em>etiqueta</em>, fent:</p>
<pre>bzr tag <em>nom-etiqueta</em></pre>
<p>Llavors podreu utilitzar &quot;tag:<em>nom-etiqueta</em>&quot; per referir-vos a aquella versi&oacute; en lloc d&#39;haver de consultar el n&uacute;mero de revisi&oacute; (<em>revno</em>).</p>
<p><strong>Compartint la branca amb altres</strong></p>
<p><meta content="text/html; charset=utf-8" http-equiv="content-type" /></p>
<p>Fins ara nom&eacute;s hem estat treballant en local (aix&ograve; &eacute;s possible ja que el Bazaar -al contrari de l&#39;SVN- &eacute;s un sistema distribu&iuml;t). Imaginem que ara voleu compartir el codi amb un company perqu&egrave; pugui ajudar amb el desenvolupament. Per aix&ograve; us caldr&agrave; disposar d&#39;un servidor (qualsevol ordinador accessible, en realitat) on els dos hi tingueu acc&eacute;s SFTP. Enviar-hi la vostra branca completa (amb totes les revisions) &eacute;s tan f&agrave;cil com:</p>
<pre>bzr push sftp://<em>el-meu-servidor</em>.<em>tld</em>/<em>directori</em>/<em>dest&iacute;</em>/<em>projecte1</em></pre>
<p>(Si m&eacute;s enll&agrave; de l&#39;SFTP tamb&eacute; teniu acc&eacute;s via SSH, i el servidor t&eacute; el <strong>bzr</strong>&nbsp;insta?lat, podeu utilitzar el mode de servidor inte?ligent amb &laquo;bzr+ssh://&raquo;. D&#39;altra banda, si el company/a no t&eacute; acc&eacute;s al servidor, sempre es pot posar la branca en un lloc accessible des de la web i llavors hi tindr&agrave; acc&eacute;s nom&eacute;s de lectura, via &laquo;http://&raquo;).</p>
<p>Per obtenir una c&ograve;pia de la branca, l&#39;altre persona pot fer:</p>
<pre>bzr branch&nbsp;sftp://<em>nom-d'usuari</em>@<em>el-meu-servidor</em>.<em>tld</em>/<em>directori</em>/<em>dest&iacute;</em>/<em>projecte1</em></pre>
<p>A partir d&#39;aqu&iacute;, els dos podeu fer &laquo;<em>bzr push</em>&raquo; per enviar els vostres canvis despr&eacute;s d&#39;un commit i &laquo;<em>bzr pull</em>&raquo; per recuperar canvis nous. En cas de produir-se un conflicte (el qual es produeix si es fa un <em>commit</em>&nbsp;sense tenir les &uacute;ltimes revisions de la branca del servidor) es pot arreglar amb &laquo;bzr merge&raquo;.</p>
<p>A m&eacute;s d&#39;aquests constants intercanvis, en qualsevol moment un dels dos pot decidir fer un <em>push</em>&nbsp;a una nova branca (per exemple, per desenvolupar alguna nova caracter&iacute;stica experimental) i quan la feina en aquesta estigui acabada, tornar-la a integrar (amb un <em>merge</em>) dins la branca principal (que, per cert, normalment s&#39;anomena&nbsp;<em>trunk</em>).</p>
<p><meta content="text/html; charset=utf-8" http-equiv="content-type" /></p>
<hr />
<p><small>
<a href="http://bloc.eurion.net/archives/2011/introduccio-al-bzr/#comments">No comments</a><br />
© Siegfried-Angel Gevatter Pujals, 2011. |
<a href="http://bloc.eurion.net/archives/2011/introduccio-al-bzr/">Permalink</a> |
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">License</a> |
Post tags: <a href="http://bloc.eurion.net/archives/tag/bzr/" rel="tag">bzr</a>, <a href="http://bloc.eurion.net/archives/tag/desenvolupament/" rel="tag">desenvolupament</a>, <a href="http://bloc.eurion.net/archives/tag/vcs/" rel="tag">vcs</a><br/>
</small></p><p class="wp-flattr-button"></p> <p><a href="http://bloc.eurion.net/?flattrss_redirect&amp;id=1389&amp;md5=b6e8f7e3339886eba515d337e14a0c4f" title="Flattr" target="_blank"><img src="http://bloc.eurion.net/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2011/introduccio-al-bzr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A list of some commercial GNU/Linux games</title>
		<link>http://bloc.eurion.net/archives/2011/a-list-of-some-commercial-gnulinux-games/</link>
		<comments>http://bloc.eurion.net/archives/2011/a-list-of-some-commercial-gnulinux-games/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 16:32:17 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[games]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=872</guid>
		<description><![CDATA[I thought I&#8217;d be nice to make a little list of some of the GNU/Linux games I&#8217;ve tried out this past year. I&#8217;ve tried to keep the list heterogeneous (different game genres, all from different producers, some freshly released and some quite older&#8230;). I&#8217;ve also decided to only include commercial games in this post; if [...]]]></description>
			<content:encoded><![CDATA[<p>I thought I&#8217;d be nice to make a little list of some of the GNU/Linux games I&#8217;ve tried out this past year. I&#8217;ve tried to keep the list heterogeneous (different game genres, all from different producers, some freshly released and some quite older&#8230;).</p>
<p>I&#8217;ve also decided to only include commercial games in this post; if it gets positive feedback I may also post a list of my favourite free games.</p>
<p>Anyway, here it goes:</p>
<table border="0">
<tbody>
<tr>
<td><a href="http://bloc.eurion.net/wp-content/uploads/2011/01/vendetta-online.png"><img class="size-medium wp-image-873 aligncenter" title="Vendetta Online" src="http://bloc.eurion.net/wp-content/uploads/2011/01/vendetta-online-300x187.png" alt="" width="300" height="187" /></a></td>
<td><strong><a href="http://vendetta-online.com/">Vendetta Online</a></strong></p>
<p>A massively multiplayer online first-person space-combat game featuring possibilities in trading, mining, combat, warfare, piracy&#8230;</p>
<p>Price: $9.99 / month (free 8 hour trial)<br />
License: Proprietary</td>
</tr>
<tr>
<td><strong><a href="http://www.wolfire.com/lugaru">Lugaru HD</a></strong></p>
<p>A third-person action game featuring a rabbit on a fight to save his fellow rabbits from slavery in a fight against corrupt rabbits and wolves.</p>
<p>Price: $9.99<br />
License: Open-source <a href="http://hg.icculus.org/icculus/lugaru/">code</a>, proprietary data<br />
<em>Humble Indie Bundle #1</em></td>
<td><a href="http://bloc.eurion.net/wp-content/uploads/2011/01/lugaru.png"><img class="aligncenter" title="Lugaru HD" src="http://bloc.eurion.net/wp-content/uploads/2011/01/lugaru-150x150.png" alt="" width="150" height="150" /></a></td>
</tr>
<tr>
<td><a href="http://bloc.eurion.net/wp-content/uploads/2011/01/andyetitmoves.png"><img class="size-medium wp-image-883 aligncenter" title="And Yet It Moves" src="http://bloc.eurion.net/wp-content/uploads/2011/01/andyetitmoves-300x182.png" alt="" width="300" height="182" /></a></td>
<td><a href="http://www.andyetitmoves.net/"><strong>And Yet It Moves</strong></a></p>
<p>A platform game in a world of paper collage you can rotate at will, turning walls into floors, slides into platforms and moving stacks of rocks (or even enemies).</p>
<p>Price: $9.99 / 8.99€<br />
License: Proprietary</td>
</tr>
<tr>
<td><strong><a href="http://www.savage2.com/">Savage 2</a></strong></p>
<p>A fantasy first-person shooter, action role-playing game (in player role) and real-time strategy (in commander role) multiplayer game.</p>
<p>Price: Free / $9.99 (Premium Account)<br />
License: Proprietary</p>
<p>See also <a href="http://www.heroesofnewerth.com/"><strong>Heroes of Newerth</strong></a>, a fantasy strategy game inspired in DotA ($30).</td>
<td><a href="http://bloc.eurion.net/wp-content/uploads/2011/01/savage2.jpg"><img class="size-thumbnail wp-image-886 aligncenter" title="Savage 2" src="http://bloc.eurion.net/wp-content/uploads/2011/01/savage2-150x150.jpg" alt="" width="150" height="150" /></a></td>
</tr>
<tr>
<td><a href="http://bloc.eurion.net/wp-content/uploads/2011/01/enemy-territory-quake-wars.jpg"><img class="aligncenter size-medium wp-image-891" title="Enemy Territory: Quake Wars" src="http://bloc.eurion.net/wp-content/uploads/2011/01/enemy-territory-quake-wars-300x225.jpg" alt="" width="300" height="225" /></a></td>
<td><strong><a href="http://www.idsoftware.com/games/enemyterritory/etqw/">Enemy Territory: Quake Wars</a></strong></p>
<p>A futuristic, objective-driven and class-based multiplayer first person shooter featuring the fight between the Earth&#8217;s Global Defense Force and the alien Strogg.</p>
<p><a href="http://www.google.com/search?q=enemy+territory+quake+wars+pc&amp;tbs=shop:1">Available at shops</a><br />
License: Proprietary</td>
</tr>
<tr>
<td><strong><a href="http://www.penumbragame.com/">Penumbra</a> (Overture, Black Plague)</strong></p>
<p>A series of exploration-based horror games.</p>
<p>Price: 16.20€ (demo available)<br />
License: Open-source <a href="http://frictionalgames.blogspot.com/2010/05/penumbra-overture-goes-open-source.html">code</a>, proprietary data</p>
<p>See also <a href="http://www.amnesiagame.com/">Amnesia: The Dark Descent</a>.</td>
<td><a href="http://bloc.eurion.net/wp-content/uploads/2011/01/penumbra-black-plague.jpg"><img class="aligncenter size-thumbnail wp-image-893" title="Penumbra: Black Plague" src="http://bloc.eurion.net/wp-content/uploads/2011/01/penumbra-black-plague-150x150.jpg" alt="" width="150" height="150" /></a></td>
</tr>
<tr>
<td><a href="http://bloc.eurion.net/wp-content/uploads/2011/01/world-of-goo.png"><img class="aligncenter size-medium wp-image-895" title="World of Goo" src="http://bloc.eurion.net/wp-content/uploads/2011/01/world-of-goo-300x224.png" alt="" width="300" height="224" /></a></td>
<td><strong><a href="http://www.worldofgoo.com/">World of Goo</a></strong></p>
<p>A physics-based puzzle game. Truly a work of art.</p>
<p>Price: $20<br />
License: Proprietary<br />
<em>Humble Indie Bundle #1 </em></td>
</tr>
<tr>
<td><strong><a href="http://www.tycoongames.eu/adventures/bionicheart.php">Bionic Heart</a></strong></p>
<p>A science-fiction visual novel with interactive scenes (you can choose between different actions which change the ending of the story).</p>
<p>Price: 12.70€ + VAT (demo available)<br />
License: Proprietary</td>
<td><a href="http://bloc.eurion.net/wp-content/uploads/2011/01/bionic-heart.png"><img class="aligncenter size-thumbnail wp-image-903" title="Bionic Heart" src="http://bloc.eurion.net/wp-content/uploads/2011/01/bionic-heart-150x150.png" alt="" width="150" height="150" /></a></td>
</tr>
<tr>
<td><a href="http://bloc.eurion.net/wp-content/uploads/2011/01/revenge-of-the-titans.jpg"><img class="aligncenter size-medium wp-image-896" title="Revenge of the Titans" src="http://bloc.eurion.net/wp-content/uploads/2011/01/revenge-of-the-titans-300x300.jpg" alt="" width="210" height="210" /></a></td>
<td><a href="http://www.puppygames.net/revenge-of-the-titans/"><strong>Revenge of the Titans</strong></a></p>
<p>A tower defense game with RTS elements.</p>
<p>Price: 10.66€ + VAT<br />
License: <a href="http://blog.wolfire.com/2010/12/Revenge-of-the-Titans-will-go-open-source-at-1-75M">Open-source code</a> (not yet available), proprietary data<br />
<em> Humble Indie Bundle #2</em></td>
</tr>
</tbody>
</table>
<p>There are many more GNU/Linux-compatible games out there. Check out the other <a href="http://www.humblebundle.com/">Humble Indie Bundle</a> games, for instance. You may also follow <a href="http://www.linuxgames.com/">LinuxGames</a> to keep up with the latest news.</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2011/debian-games-team-meeting/' rel='bookmark' title='Debian Games Team Meeting'>Debian Games Team Meeting</a> <small>This announcement was provided by Martin Erik Werner. I&#8217;m reproducing...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2011/a-list-of-some-commercial-gnulinux-games/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Language Identification and it&#8217;s state in Free Software</title>
		<link>http://bloc.eurion.net/archives/2010/language-identification-and-free-software/</link>
		<comments>http://bloc.eurion.net/archives/2010/language-identification-and-free-software/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 20:17:06 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Debian]]></category>
		<category><![CDATA[Planet GNOME]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[language identification]]></category>
		<category><![CDATA[Programari lliure]]></category>
		<category><![CDATA[text categorization]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=732</guid>
		<description><![CDATA[Working on a new feature for eSpeak GUI I started looking into language identification. Forcing users to manually choose the text&#8217;s language is a botheration, so trying to guess it by checking which system dictionary contains the most words from the text or some other method would surely be beneficial. After a quick search I [...]]]></description>
			<content:encoded><![CDATA[<p>Working on a new feature for <a href="https://launchpad.net/espeak-gui">eSpeak GUI</a> I started looking into <a href="http://en.wikipedia.org/wiki/Language_identification">language identification</a>. Forcing users to manually choose the text&#8217;s language is a <abbr title="Or, in other words, a PITA">botheration</abbr>, so trying to guess it by checking which <a href="http://packages.debian.org/sid/wcatalan">system dictionary</a> contains the most words from the text or some other method would surely be beneficial.</p>
<p>After a quick search I learned that it&#8217;s much easier than this: it&#8217;s possible to reliably <a href="http://scholar.google.com/scholar?as_q=&amp;as_epq=N+Gram+Based+Text+Categorization&amp;as_sauthors=WB+Cavnar&amp;as_ylo=1994">determine the language based on statistic n-gram information</a>. Ignoring the fact that now I officially hate Firefox, Chromium, OpenOffice.org and everyone else there for not implementing this and having me spend the day changing the spell-checker&#8217;s language, I was left with the choice on how to use this in <a href="https://launchpad.net/espeak-gui">eSpeak GUI</a>.</p>
<p>The first option I found was <a href="http://www.let.rug.nl/~vannoord/TextCat/">TextCat</a>, which is also the only library I&#8217;ve found to be <a href="http://packages.debian.org/source/sid/libtextcat">packaged</a> for Debian. However, ignoring the fact that upstream isn&#8217;t maintaining it any more (such a library shouldn&#8217;t need too much maintainance, after all), the package declares incorrect dependencies (<a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593897">bug filled</a> a month ago, no response yet) and the API is also pretty crappy (it requires a physical file indicating the location of the statistic models).</p>
<p>Unrelated to that, I&#8217;ve also found that the Catalan text samples it includes are <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593897">incorrect</a>, so the same may be true for other languages. I guess it&#8217;d make sense to work on a new (and completely Unicode) language samples collection. I&#8217;ve thought of using something like the <a href="http://www.ohchr.org/EN/UDHR/Pages/SearchByLang.aspx">Universal Declaration of Human Rights</a> since this way all languages can have the same text, but being more of a legal thing it may be biased by some words being too repetitive.</p>
<p>Looking for other alternatives to the TextCat library I&#8217;ve only found the following:</p>
<ul>
<li><a href="http://gitorious.org/textcat">TextCat</a> (same name, different code): PHP licensed, so incompatible with GPL projects.</li>
<li><a href="http://freshmeat.net/projects/mguesser/">Mguesser</a> (part of <a href="http://packages.debian.org/sid/mnogosearch-mysql">mnogosearch-mysql</a>): it&#8217;s a standalone executable and not a library.</li>
<li>SpamAssassin&#8217;s <a href="http://spamassassin.apache.org/full/3.1.x/doc/Mail_SpamAssassin_Plugin_TextCat.html">TextCat.pm</a>: also a standalone executable, this time written in Perl. Apparently they were using a fork of TextCat (the original library, not the PHP licensed one) before that.</li>
</ul>
<p>So it looks like I&#8217;ll have to start by getting a good collection of text samples I can use to generate the statistic data. Then I have several options on how to actually use it. As I see it, those are my possibilities:</p>
<ol>
<li>Fixing <a href="http://packages.debian.org/source/sid/libtextcat">libtextcat</a>&#8216;s packaging and just <a href="http://bazaar.launchpad.net/~rainct/espeak-gui/trunk/annotate/head:/src/language.py">using</a> that.</li>
<li>Taking it over as new upstream maintainer. Not my preferred option as I don&#8217;t really feel like maintaining a C library at this point.</li>
<li>Trying to convince the maintainer of the new TextCat (with last commit January this year and a more sane API) to re-license it in a GPL-compatible way, packaging that and seeing how that one works (haven&#8217;t tried it out yet).</li>
<li>Writing my own implementation in Python, maybe based upon <a href="http://ling.unizd.hr/~dcavar/LID/">this example</a> or <em>TextCat.pm</em>.</li>
</ol>
<p>Any other ideas, pointers to some library I may have missed or offers to collaborate are very welcome. Please also note that my intention in writing this post is not only to rant about there being no well-maintained ready-to-use library being available, but especially raising awareness on the topic of language identification. I&#8217;d love to see this feature all around the desktop, just like (and in combination with) spell-checking, which is already omnipresent.</p>
<hr />
<p><small>
<a href="http://bloc.eurion.net/archives/2010/language-identification-and-free-software/#comments">11 comments</a><br />
© Siegfried-Angel Gevatter Pujals, 2010. |
<a href="http://bloc.eurion.net/archives/2010/language-identification-and-free-software/">Permalink</a> |
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">License</a> |
Post tags: <a href="http://bloc.eurion.net/archives/tag/language-identification/" rel="tag">language identification</a>, <a href="http://bloc.eurion.net/archives/tag/programari-lliure/" rel="tag">Programari lliure</a>, <a href="http://bloc.eurion.net/archives/tag/text-categorization/" rel="tag">text categorization</a><br/>
</small></p><p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2010/language-identification-and-free-software/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Experiments with image recognition</title>
		<link>http://bloc.eurion.net/archives/2010/experiments-with-image-recognition/</link>
		<comments>http://bloc.eurion.net/archives/2010/experiments-with-image-recognition/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 15:47:19 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet GNOME]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[color recognition]]></category>
		<category><![CDATA[computer vision]]></category>
		<category><![CDATA[image recognition]]></category>
		<category><![CDATA[opencv]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=636</guid>
		<description><![CDATA[It&#8217;s summer, which means: I&#8217;ve got time for some crazy experiments! As you may know, two years ago I played around with voice recognition. My original idea for this summer was to do some robotics stuff, but unfortunately I&#8217;ve had problems getting the serial connection to work. But don&#8217;t worry, because I&#8217;ve found something else to do. [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s summer, which means: I&#8217;ve got time for some crazy experiments! As you may know, two years ago I played around with <a href="http://bloc.eurion.net/archives/2008/writing-a-command-and-control-application-with-voice-recognition/">voice recognition</a>. My original idea for this summer was to do some <a href="http://picasaweb.google.com/siggi.gevatter/RoboticsCourse">robotics</a> stuff, but unfortunately I&#8217;ve had problems getting the serial connection to work. But don&#8217;t worry, because I&#8217;ve found something else to do. I noticed a nice red box lying around in my room, so I thought: «let&#8217;s see how difficult it is to get my computer to <em>see</em> it».</p>
<p>For extra fun, I also decided to impose two rules: no reading up on existing algorithms or «weird maths» (I&#8217;ll have enough time for this when I study Computer Vision at <a href="http://www.fib.upc.edu/en.html">university</a>), and no «magic» (ie., implementing everything myself and not using existing functions for edge detection or whatever).</p>
<p><a href="http://www.youtube.com/watch?v=5q1gkTo84LY"><img class="size-full wp-image-639 alignright" title="Screenshot of the first video" src="http://bloc.eurion.net/wp-content/uploads/2010/08/first-video.png" alt="" width="200" height="140" /></a></p>
<p><strong>First steps</strong></p>
<p>Of course, my first choice for trying this was Python, so I installed <a href="http://www.pythonware.com/products/pil/">PIL</a> and <a href="http://www.scipy.org/">SciPy</a>, and took a photo of the box. With just a function call, they give me access to each pixel&#8217;s <a href="http://en.wikipedia.org/wiki/RGB_color_model">RGB</a> value, so it&#8217;s really easy to have it change all points that aren&#8217;t red into black and other funny stuff.</p>
<p>However, iterating through all the pixels in the image was quite slow (in the order of several seconds) so I decided to switch to C and <a href="http://opencv.willowgarage.com/wiki/">OpenCV</a>, which turned out to be really nice to work with. After a while I had <a href="http://bazaar.launchpad.net/~rainct/%2Bjunk/color-recognition/annotate/6/recognition.c">written down</a> the first algorithm I could think of, and it kinda worked (see video at right). I want to thank <a href="http://mhr3.blogspot.com">Michal</a> for the idea of converting the image to the <a href="http://en.wikipedia.org/wiki/HSL_and_HSV">HSV colour space</a> for colour checking.</p>
<p><strong>Noise reduction</strong></p>
<div class="mceTemp">
<dl id="attachment_649" class="wp-caption alignleft" style="width: 160px;">
<dt class="wp-caption-dt"><a href="http://bloc.eurion.net/wp-content/uploads/2010/08/isolated-pixel-correction.png"><img class="size-thumbnail wp-image-649" title="Pixel Correction" src="http://bloc.eurion.net/wp-content/uploads/2010/08/isolated-pixel-correction-150x150.png" alt="" width="150" height="150" /></a></dt>
</dl>
</div>
<p>After I had a first success, I worked on some new multi-pass code with lots of loops to see if I can get some noise reduction. I started by turning everything which isn&#8217;t detected as red into black so that I get a better overview of what&#8217;s going on. Then I improved this to let it find non-matching pixels surrounded by red ones (on the top and the left they must be adjacent, but on the right and bottom the nearest red may be some distance away; this works even for groups of pixels since the image is processed from left to right and from top to bottom). Finally, I added some more code to remove any little group of red pixels surrounded by non-matching ones. The effect of this will be seen later.</p>
<div class="mceTemp">
<dl id="attachment_642" class="wp-caption alignright" style="width: 160px;">
<dt class="wp-caption-dt"><a href="http://bloc.eurion.net/wp-content/uploads/2010/08/evening.png"><img class="size-thumbnail wp-image-642 " title="Noise reduction at night" src="http://bloc.eurion.net/wp-content/uploads/2010/08/evening-150x150.png" alt="" width="150" height="150" /></a></dt>
</dl>
</div>
<p><strong>Illumination</strong></p>
<p>For some reason the detection gets mad if there is artificial light (or maybe it&#8217;s just that I haven&#8217;t found the right colour values to check for). No light at all (except for that of the computer screens) works better -after reducing the minimum levels of saturation and brightness I was checking for-, but it gives a lot of noise. My first program therefore fails miserably under such conditions.</p>
<p>However, now that I have the noise reduction this is no longer a problem. See by yourself: <em>image at right</em>. (The really bright points are those which didn&#8217;t match but have been converted to red since they are surrounded).</p>
<p><strong>Second try at box detection</strong></p>
<p>I could just have put my previous box detection algorithm on top of it, but I decided to make use of the fact that the noise reduction is successfully removing everything except for the box. Thus, instead of searching for red lines likes before I just localize the left-most, right-most, highest and lowest red points.</p>
<p>Using those four points, I calculate the centre of the box (and I could also reliably determine the position of the four corners, if I added some more code to find whether the box is horizontally aligned or not).</p>
<p>Finally I calculate the relative movement of the centre point and this way I can control a pointer (bottom right of the video). Here we go:</p>
<p style="text-align: center;">
<p><a href="http://www.youtube.com/watch?v=y8qgiTQfuJE">http://www.youtube.com/watch?v=y8qgiTQfuJE</a></p>
</p>
<p style="text-align: center;">(And it works as well <a href="http://bloc.eurion.net/wp-content/uploads/2010/08/3views-night.png">at night</a>! -<a href="http://bazaar.launchpad.net/~rainct/%2Bjunk/color-recognition/annotate/22/isolate.c"> Code is here</a>)</p>
<hr />
<p><small>
<a href="http://bloc.eurion.net/archives/2010/experiments-with-image-recognition/#comments">6 comments</a><br />
© Siegfried-Angel Gevatter Pujals, 2010. |
<a href="http://bloc.eurion.net/archives/2010/experiments-with-image-recognition/">Permalink</a> |
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">License</a> |
Post tags: <a href="http://bloc.eurion.net/archives/tag/color-recognition/" rel="tag">color recognition</a>, <a href="http://bloc.eurion.net/archives/tag/computer-vision/" rel="tag">computer vision</a>, <a href="http://bloc.eurion.net/archives/tag/image-recognition/" rel="tag">image recognition</a>, <a href="http://bloc.eurion.net/archives/tag/opencv/" rel="tag">opencv</a><br/>
</small></p><p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2010/experiments-with-image-recognition/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Zeitgeist 0.3.3 is out!</title>
		<link>http://bloc.eurion.net/archives/2010/zeitgeist-0-3-3-is-out/</link>
		<comments>http://bloc.eurion.net/archives/2010/zeitgeist-0-3-3-is-out/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 14:28:46 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet GNOME]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[Programari lliure]]></category>
		<category><![CDATA[zeitgeist]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=560</guid>
		<description><![CDATA[From the release announcement: On behalf of the Zeitgeist Project team, I am pleased to announce the immediate availability of Zeitgeist 0.3.3. It introduces an improved relationship algorithm, new sorting types for queries, a data-source registry (providing the possibility of easily disabling individual loggers) and several bug fixes and other enhancements. What is Zeitgeist? Zeitgeist [...]]]></description>
			<content:encoded><![CDATA[<p>From the <a href="https://edge.launchpad.net/zeitgeist/+announcement/5642">release announcement</a>:</p>
<p>On behalf of the Zeitgeist Project team, I am pleased to announce the immediate availability of Zeitgeist 0.3.3. It introduces an improved relationship algorithm, new sorting types for queries, a <a href="http://bloc.eurion.net/archives/2010/zeitgeist-data-source-registry/">data-source registry</a> (providing the possibility of easily disabling individual loggers) and several bug fixes and other enhancements.</p>
<p><strong>What is Zeitgeist?</strong></p>
<p>Zeitgeist is an event-logging framework for desktop and mobile devices. Applications can push events into the log, and anyone can query the log via the rich query API. The logged events are semantically categorized and can come from any sort of activity, such as file usage, communications, browsing history, etc. The Zeitgeist engine is a user-level service and does not provide a GUI. It is intended to support dedicated journalling applications and deep integration with other desktop components.</p>
<p><strong>Where?</strong></p>
<p>Downloads: <a href="https://launchpad.net/zeitgeist/+download">https://launchpad.net/zeitgeist/+download</a> (<a href="http://edge.launchpad.net/zeitgeist/0.3/0.3.3/+download/zeitgeist-0.3.3.tar.gz">zeitgeist-0.3.3.tar.gz</a>)</p>
<p>About Zeitgeist: <a href="http://zeitgeist-project.com">http://zeitgeist-project.com</a></p>
<p>Wiki: <a href="http://live.gnome.org/Zeitgeist">http://live.gnome.org/Zeitgeist</a></p>
<p><strong>News since 0.3.2</strong></p>
<pre>Engine:

- Added MostPopularActor, LeastPopularActor, MostRecentActor and
LeastRecentActor as possible ReturnTypes for FindEvents and
FindEventsId (LP: #493903).
- Let {Find,Get,Insert}* hooks know the bus name of the caller, when
executed over D-Bus.
- Add an extension implementing a data-source registry (allowing to disable
data-sources from a centralized place and see their description).
- Overhauled FindRelatedUris for better results and improved performance.
- Changed FindEvents, FindEventIds and FindRelatedUris to not treat zeros in
the given TimeRange specially; "(0, 0)" can no longer be used (LP: #490242).
- Fixed a crash in the GtkRecentlyUsed data-source parsing malfored .desktop
files (LP: #526357), and added support for more file mimetypes (LP: #510761).
- Fixed a crash in the GtkRecentlyUsed data-source trying to read broken
symlinks disguised as .desktop files (LP: #523761).
- Fixed a crash in the GtkRecentlyUsed data-source which happened when there
was no display friendly version of a URI (LP: #531793).
- Renamed --no-passive-loggers option to --no-datahub. Output printed by
zeitgeist-datahub is no longer visible in zeitgeist-daemon's output.
- Added --log-level option to change the output verbosity.
- DeleteEvents now correctly removes any unreferenced values (URIs, actors,
etc.) and not only the events themselves (LP: #491646).
- Fixed insertion of events with a payload (LP: #557708).
- Fixed an exception in DeleteEvents.
- Fixed event deletions not always getting committed (LP: #566184).
- Ignore deletion requests for non-existant events.

Python API:
- Made the Interpretation and Manifestation classes iterable.
- Added symbol lookup by URI, in the form of dictionary access.
- Fixed the display name for Interpretation.SOURCECODE.
- Fixed find_events_for_values and find_event_ids_for_values (LP: #510804).
- Added a get_extension() method to ZeitgeistDBusInterface, to get convenient
access to D-Bus interfaces provided by engine extensions.

Overall:
- More fixes and code enhancements.
- Manpage updates.
- Translation updates.
</pre>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2010/zeitgeist-data-source-registry/' rel='bookmark' title='Zeitgeist Data-Source Registry'>Zeitgeist Data-Source Registry</a> <small>This post is about an upcoming feature in Zeitgeist 0.3.3...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/here-is-zeitgeist-0-2-1/' rel='bookmark' title='Here is Zeitgeist 0.2.1!'>Here is Zeitgeist 0.2.1!</a> <small>One month after the first Zeitgeist release (0.2), here is...</small></li>
<li><a href='http://bloc.eurion.net/archives/2010/zeitgeist-0-5-1-released/' rel='bookmark' title='Zeitgeist 0.5.1 released!'>Zeitgeist 0.5.1 released!</a> <small>On behalf of the Zeitgeist Project team, I am pleased...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2010/zeitgeist-0-3-3-is-out/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Automatic music rating</title>
		<link>http://bloc.eurion.net/archives/2010/automatic-music-rating/</link>
		<comments>http://bloc.eurion.net/archives/2010/automatic-music-rating/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 19:59:20 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet GNOME]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[zeitgeist]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=553</guid>
		<description><![CDATA[The problem I like listening to music while I&#8217;m programming. However, I have lots of music on my computer and I don&#8217;t really like all of it (or find it appropriate as background music for when I&#8217;m programming). I guess I could spend a few evenings going through my music collection, deleting anything I don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The problem</strong></p>
<p>I like listening to music while I&#8217;m programming. However, I have lots of music on my computer and I don&#8217;t really like all of it (or find it appropriate as background music for when I&#8217;m programming).</p>
<p>I guess I could spend a few evenings going through my music collection, deleting anything I don&#8217;t like (which isn&#8217;t always such an easy decision), creating a playlist or whatever. This isn&#8217;t a permanent solution, though, since with the time my collection will continue growing, I may get sick of hearing some songs, my taste may change, etc. Also, I prefer spending my time programming, reading or doing anything else more interesting than sorting my music collection.</p>
<p>Unrelated to the problem itself, let me also mention that I use different media players. Currently I&#8217;m mostly using Banshee, but I&#8217;ve been intermittently toggling between it and Rhythmbox those last months, and also used a command-line player for some time. I&#8217;m saying this because I expect a optimal solution to be media player-independent. <em>The bigger problem of each media player having its own database is also something I&#8217;d like to see addressed, maybe with some technology like Tracker, but that is another topic.</em></p>
<p><strong>The status quo</strong></p>
<p>My current way to approach this problem is basically setting my media player to choose songs randomly, and using the big &#8220;Next &gt;&gt;|&#8221; button on my keyboard whenever it chooses some song which annoys me.</p>
<p>(Banshee&#8217;s playback list interface has an option to automatically fill itself sorting songs by popularity, but it doesn&#8217;t seem to work good at all here; I also recall Amarok having some automatic playlist generation options, but I&#8217;m not using any KDE applications anymore and in any case this is outside the scope of an application-neutral solution).</p>
<p><strong>The solution</strong></p>
<p>It has recently occurred to me that a neat solution for this would be to gather information from a generic event log and to translate that into a numerical punctuation for each song. I think you may already guess where I&#8217;m heading, but if not: <a href="http://zeitgeist-project.com/">Zeitgeist</a>!</p>
<p>With the appropriate data-sources installed, Zeitgeist holds information on which songs started playing automatically (because they are on a playlist or because you have your media player set to random), which were started manually, and in both cases which you listened to completely and which ones you skipped (and how long you resisted listening to them). It shouldn&#8217;t be too difficult to write a script which will periodically request this information from Zeitgeist and give songs positive points for every time you listened to them completely (extra if you chose them yourself manually) and negative points to the ones you skipped (but giving less negative points if you resisted half of the song than if you skipped it right after you recognized it).</p>
<p>With this punctuation information, music players can avoid playing songs you don&#8217;t like and give you only those you like or new ones for which there isn&#8217;t any information yet (if it followed the punctuation strictly this would end with the same songs being played all the time and new songs with punctuation around 0 being ignored). The importance of the play/skip actions would decay over time (it&#8217;s more important to consider whether you listened to the song yesterday than if you did six months ago), etc., etc.</p>
<p>If we wanted to create something really fancy we could even look at generating different ratings for separate circumstances, eg. in case you like listening to a different sort of music during the morning than during the evening, or to differentiate between what you like to hear while you are coding and while the computer is idle (maybe because you are doing paper homework and only using the computer to get some background music). The information for all this is there in Zeitgeist, so it&#8217;s only a matter of writing a good algorithm.</p>
<p><strong>The implementation</strong></p>
<p>I&#8217;ve already explained most of how this should work in the previous section, but here&#8217;s a bit of an overview of what&#8217;s needed for this:</p>
<ul>
<li>Data-sources inserting the music reproduction information. We already have a <a href="https://launchpad.net/zeitgeist-dataproviders">data-source</a> for Rhythmbox implemented as an extension, but Banshee and any other players are missing.</li>
<li>The actual algorithm, probably implemented as a periodically run script leaving the aggregated information at some accessible place, although this may vary depending on the degree of fanciness you choose.</li>
<li>The interface, ie. plugins for Rhythmbox and other media players which take that information and use it to provide an option for semi-randomly choosing music excluding stuff you don&#8217;t like.</li>
</ul>
<p>If I&#8217;ve got you interested on this, I&#8217;m willing to mentor someone on this, so get in touch! Feel free to jump into <strong>#zeitgeist</strong> on <strong>irc.freenode.net</strong> or <a href="mailto:rainct@ubuntu.com">drop me a mail</a>.</p>
<hr />
<p><small>
<a href="http://bloc.eurion.net/archives/2010/automatic-music-rating/#comments">19 comments</a><br />
© Siegfried-Angel Gevatter Pujals, 2010. |
<a href="http://bloc.eurion.net/archives/2010/automatic-music-rating/">Permalink</a> |
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">License</a> |
Post tags: <a href="http://bloc.eurion.net/archives/tag/music/" rel="tag">music</a>, <a href="http://bloc.eurion.net/archives/tag/zeitgeist/" rel="tag">zeitgeist</a><br/>
</small></p><p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2010/automatic-music-rating/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>You no longer have an excuse not to look at Python Snippets!</title>
		<link>http://bloc.eurion.net/archives/2010/python-snippets-web-directory/</link>
		<comments>http://bloc.eurion.net/archives/2010/python-snippets-web-directory/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 23:12:15 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[opportunistic development]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=525</guid>
		<description><![CDATA[You&#8217;ve probably already heard of Jono Bacon&#8217;s effort to create a collection of Python snippets and of Acire, the application to browse through them. If you&#8217;re interested in developing something with Python you should really take a look at those 115 (and couting!) awesome snippets, ranging from the most basic stuff to more advanced examples [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ve probably already heard of Jono Bacon&#8217;s effort to <a href="https://wiki.ubuntu.com/PythonSnippets">create a collection of Python snippets</a> and of <a href="http://www.jonobacon.org/2010/02/26/acire-0-3-released/">Acire</a>, the application to browse through them. If you&#8217;re interested in developing something with Python you should really take a look at those 115 (and couting!) awesome <a href="https://launchpad.net/python-snippets">snippets</a>, ranging from the most basic stuff to more advanced examples on a wide range of topics.</p>
<p>Last Thursday there was a talk on Acire and a snippet creation party (as part of the <a href="https://wiki.ubuntu.com/UbuntuOpportunisticDeveloperWeek">Ubuntu Opportunistic Developer Week</a>) and someone mentioned it would be nice to have a web interface. So, yesterday I took a couple hours and hacked together a quick script to convert the snippets to HTML, resulting in <a href="http://eurion.net/python-snippets/">this snippets directory</a> which you can use to look up stuff when you haven&#8217;t Acire at hand or to give links to snippets to other people!</p>
<div id="attachment_538" class="wp-caption aligncenter" style="width: 310px"><a href="http://bloc.eurion.net/wp-content/uploads/2010/03/python-snippets-web.png"><img class="size-medium wp-image-538" title="python-snippets-web" src="http://bloc.eurion.net/wp-content/uploads/2010/03/python-snippets-web-300x156.png" alt="" width="300" height="156" /></a><p class="wp-caption-text">The new web interface to python-snippets!</p></div>
<p>And now that you&#8217;ve read this post, maybe you would like to <a href="http://eurion.net/python-snippets/snippet/Load%20an%20Image%20and%20detect%20click%20events.html">delve into Clutter</a>, <a href="http://eurion.net/python-snippets/snippet/Create%20an%20Application%20Indicator.html">update your application to work with Application Indicator</a>, <a href="http://eurion.net/python-snippets/snippet/Recently%20used%20items%20%28async%29.html">see how easy it is to get data from Zeitgeist</a> or <a href="http://eurion.net/python-snippets/snippet/Lists%20101.html">refresh the knowledge on lists</a> you gained at <a href="https://wiki.ubuntu.com/MeetingLogs/OpWeek1002/Python4Programmers">Rick Spencer&#8217;s Python talk</a>?</p>
<p><em>The code for the snippets generator is available <a href="https://code.launchpad.net/~rainct/+junk/python-snippets-webui">here</a>. Thanks go to <a href="http://www.makotemplates.org/">Mako Templates</a>, <a title="Pygments - Python syntax highlighter" href="http://pygments.org/">Pygments</a> and <a title="Universal Encoding Detector: character encoding auto-detection in Python" href="http://chardet.feedparser.org/">Chardet</a> for having made it dead easy to create this page! And, of course, patches are welcome.<br />
</em></p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2010/sudoku-solving-with-python-and-sat/' rel='bookmark' title='Sudoku solving with Python and SAT'>Sudoku solving with Python and SAT</a> <small>At Logic class last week we saw how to solve...</small></li>
<li><a href='http://bloc.eurion.net/archives/2010/introducing-espeak-gui/' rel='bookmark' title='Introducing espeak-gui'>Introducing espeak-gui</a> <small>I&#8217;m joining the hype of presenting little new projects there...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2010/python-snippets-web-directory/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Zeitgeist Data-Source Registry</title>
		<link>http://bloc.eurion.net/archives/2010/zeitgeist-data-source-registry/</link>
		<comments>http://bloc.eurion.net/archives/2010/zeitgeist-data-source-registry/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 18:13:33 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Debian]]></category>
		<category><![CDATA[Planet GNOME]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[Programari lliure]]></category>
		<category><![CDATA[zeitgeist]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=515</guid>
		<description><![CDATA[This post is about an upcoming feature in Zeitgeist 0.3.3 and is so far only available in checkouts from trunk or our PPA. It is expected to be released within the next weeks. Some weeks ago I implemented a new feature in Zeitgeist and I figured I&#8217;d drop some lines about it. I&#8217;m talking about [...]]]></description>
			<content:encoded><![CDATA[<p><em>This post is about an upcoming feature in <a href="http://zeitgeist-project.com">Zeitgeist</a> 0.3.3 and is so far only available in checkouts from <a href="https://code.launchpad.net/~zeitgeist/zeitgeist/trunk">trunk</a> or our <a href="https://launchpad.net/~zeitgeist/+archive/ppa">PPA</a>. It is expected to be released within the next weeks.</em></p>
<p>Some weeks ago I implemented a new feature in Zeitgeist and I figured I&#8217;d drop some lines about it. I&#8217;m talking about a <strong>data-source registry</strong>.</p>
<p>You may be wondering, «<em>what the hell is that even, a data-source?</em>». So Zeitgeist is a database, a global event log, but it doesn&#8217;t do any magic indexing or monitoring by itself;  the information it logs needs to come from somewhere &#8211; be it applications sending it to Zeitgeist themselves, <a href="http://manpages.ubuntu.com/manpages/lucid/en/man1/zeitgeist-datahub.1.html">daemons</a>, plugins for applications, etc. Any such entity is called a «<em>data-source</em>».</p>
<p>Having a register of all data-sources interacting with Zeitgeist provides some benefits, like for example:</p>
<div id="attachment_516" class="wp-caption alignright" style="width: 310px"><a href="http://bloc.eurion.net/wp-content/uploads/2010/02/zeitgeist-registry.png"><img class="size-medium wp-image-516 " title="Zeitgeist: data-source management UI" src="http://bloc.eurion.net/wp-content/uploads/2010/02/zeitgeist-registry-300x77.png" alt="Screenshot of tools/gtk/zeitgeist-data-sources-gtk.py" width="300" height="77" /></a><p class="wp-caption-text">Prototype of a data-source management user-interface</p></div>
<ul>
<li>Having a list of them. Lists are nice :).</li>
<li>Being able to disable data-sources from a centralized place instead of requiring each to write its own preferences dialogue.</li>
<li>Being able to set up a blacklist rule considering which data-source the information comes from as a condition <em>(not implemented yet)</em>.</li>
</ul>
<p><strong>More details</strong></p>
<p>When they register, data-sources will need to provide the following information: an unique ID, a name (may be localized), a description (may be localized) and optionally a template specifying what sort of events it logs. Additionally, the last timestamp the data-source was seen by Zeitgeist, whether it is running right now and whether it is enabled will also be available.</p>
<p>It is important to note that registration is not compulsory; while it is highly encouraged for data-sources to use it, is it still possible to anonymously insert information into Zeitgeist (for example from a shell script). The event template is also only informational, and will not be enforced by Zeitgeist at this time.</p>
<p><strong>Avoiding duplicates from GTK Recently Used</strong></p>
<p>You may know that <a href="http://manpages.ubuntu.com/manpages/lucid/en/man1/zeitgeist-datahub.1.html">zeitgeist-datahub</a> provides basic support for applications which have no direct Zeitgeist support but do use GTK&#8217;s <a href="http://www.pygtk.org/docs/pygtk/class-gtkrecentmanager.html">RecentManager</a>, which is not as detailed as we would like, but it is better than nothing. However, until now we had a problem: when applications had support for both, GTK&#8217;s Recently Used and Zeitgeist (be it native or as an <a href="https://launchpad.net/zeitgeist-dataproviders">extension</a>), it was possible for duplicate events to be inserted or other sorts of conflicts between both data-sources. Now that we have the information from the registry available, we&#8217;ve been able to solve this modifying our Recently Used data-source to ignore any events concerning applications which already have another data-source logging the same types of events.<br />
&nbsp;</p>
<hr />In case you don&#8217;t care at all about what I&#8217;m talking here and you just want to see fancy interfaces, <a title="GNOME Activity Journal 0.3.3" href="http://seilo.geekyogre.com/2010/02/gnome-activity-journal-0-3-3-is-out/">go check this out</a>.</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2010/zeitgeist-0-3-3-is-out/' rel='bookmark' title='Zeitgeist 0.3.3 is out!'>Zeitgeist 0.3.3 is out!</a> <small>From the release announcement: On behalf of the Zeitgeist Project...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/zeitgeist-is-out/' rel='bookmark' title='Zeitgeist is out!'>Zeitgeist is out!</a> <small>World, the first Zeitgeist release is out! From the release...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/zeitgeist-api-02/' rel='bookmark' title='Introduction to Zeitgeist 0.2&#8242;s API'>Introduction to Zeitgeist 0.2&#8242;s API</a> <small>So now that Zeitgeist 0.2.0 is out I&#8217;ve thought I&#8217;d...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2010/zeitgeist-data-source-registry/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Confession</title>
		<link>http://bloc.eurion.net/archives/2010/debian-confession/</link>
		<comments>http://bloc.eurion.net/archives/2010/debian-confession/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 23:49:38 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Debian]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Programari lliure]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=478</guid>
		<description><![CDATA[My dear Ubuntu, I think the time has come that I make a confession. You may be wondering why I haven&#8217;t spent much time with you those last months, and you have the right to know. The case is, I have another one. She&#8217;s called Debian. No, it&#8217;s not because of you. It&#8217;s also not [...]]]></description>
			<content:encoded><![CDATA[<p>My dear Ubuntu,</p>
<p>I think the time has come that I make a confession. You may be wondering why I haven&#8217;t spent much time with you those last months, and you have the right to know. The case is, I have another one. She&#8217;s called Debian.</p>
<p>No, it&#8217;s not because of you. It&#8217;s also not because of your <a href="http://canonical.com">parents</a>; while they <a href="https://lists.ubuntu.com/archives/ubuntu-devel/2010-January/029976.html">aren&#8217;t perfect</a>, they are great in many ways and I certainly don&#8217;t want to run away from then. Just wait and let me explain this. You surely remember that I spent <a href="../archives/2009/one-week-with-debian/">a week</a> with her some time ago? Well, now that I want to <a href="https://nm.debian.org/nmstatus.php?email=rainct@ubuntu.com">join Debian&#8217;s family</a>, I decided that after all that wasn&#8217;t much time to get to know here, so I gave her another chance, and with this second experience I fell in love with her <a href="http://www.debian.org/releases/unstable/">unstable</a> character. Ubuntu, you are really extraordinary, and I&#8217;m still telling anyone who wants to listen about your wonders, but you just can&#8217;t appease my desire for trying out new things as well as Debian does.</p>
<p>Now, this doesn&#8217;t mean we won&#8217;t see each other anymore. I&#8217;ll still take you with me whenever I <a href="http://commercial.asus.com/images/asusepc1005-front_open1504.jpg">travel</a>, and I&#8217;ll continue helping you with the <a href="https://launchpad.net/ubuntu">household</a>. In fact, all this wouldn&#8217;t signify a big change at all, if it wasn&#8217;t that at the same time I also decided to refocus most of my efforts on <a href="http://zeitgeist-project.com">raising</a> <a href="http://gnome.org">children</a>, which is what really reduced the time I spent helping you.</p>
<p>So, while currently I&#8217;m not seeing you as much as before, I hope you all the best, and I&#8217;ll still try to help you advance, be it indirectly (<a href="http://debian.org">1</a>, <a href="http://gnome.org">2</a>) or, while probably to a lesser degree, continuing with direct contributions.</p>
<p><em>By the way, hello Planet Debian!</em></p>
<hr />
<p><small>
<a href="http://bloc.eurion.net/archives/2010/debian-confession/#comments">8 comments</a><br />
© Siegfried-Angel Gevatter Pujals, 2010. |
<a href="http://bloc.eurion.net/archives/2010/debian-confession/">Permalink</a> |
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">License</a> |
Post tags: <a href="http://bloc.eurion.net/archives/tag/debian/" rel="tag">Debian</a>, <a href="http://bloc.eurion.net/archives/tag/programari-lliure/" rel="tag">Programari lliure</a>, <a href="http://bloc.eurion.net/archives/tag/ubuntu/" rel="tag">Ubuntu</a><br/>
</small></p><p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2010/debian-confession/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>FOSDEM 2010</title>
		<link>http://bloc.eurion.net/archives/2010/im-going-to-fosdem/</link>
		<comments>http://bloc.eurion.net/archives/2010/im-going-to-fosdem/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 14:54:32 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet GNOME]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[fosdem]]></category>
		<category><![CDATA[Programari lliure]]></category>
		<category><![CDATA[zeitgeist]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=496</guid>
		<description><![CDATA[By the way, if you&#39;re coming too and are interested in Zeitgeist, don&#39;t forget to poke me (or Seif)! Related posts: Zeitgeist is out! World, the first Zeitgeist release is out! From the release... Zeitgeist since UDS Quite some stuff has been going on in Zeitgeist since... Introduction to Zeitgeist 0.2&#8242;s API So now that [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.fosdem.org"><img alt="I'm going to FOSDEM, the Free and Open Source Software Developers' European Meeting" class="aligncenter" src="http://www.fosdem.org/promo/going-to" /></a></p>
<p style="text-align: center;"><em>By the way, if you&#39;re coming too and are interested in <a href="http://zeitgeist-project.com">Zeitgeist</a>, don&#39;t forget to poke me (or <a href="http://seilo.geekyogre.com/">Seif</a>)!</em></p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2009/zeitgeist-is-out/' rel='bookmark' title='Zeitgeist is out!'>Zeitgeist is out!</a> <small>World, the first Zeitgeist release is out! From the release...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/zeitgeist-since-uds/' rel='bookmark' title='Zeitgeist since UDS'>Zeitgeist since UDS</a> <small>Quite some stuff has been going on in Zeitgeist since...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/zeitgeist-api-02/' rel='bookmark' title='Introduction to Zeitgeist 0.2&#8242;s API'>Introduction to Zeitgeist 0.2&#8242;s API</a> <small>So now that Zeitgeist 0.2.0 is out I&#8217;ve thought I&#8217;d...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2010/im-going-to-fosdem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GNOME Activity Journal, and installing it on Ubuntu</title>
		<link>http://bloc.eurion.net/archives/2010/gnome-activity-journal-and-installing-it-on-ubuntu/</link>
		<comments>http://bloc.eurion.net/archives/2010/gnome-activity-journal-and-installing-it-on-ubuntu/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 15:00:44 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet GNOME]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[Programari lliure]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[zeitgeist]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=481</guid>
		<description><![CDATA[As already announced by Seif, the first development release of the GNOME Activity Journal (what was formerly known as GNOME Zeitgeist) is finally out! While several sources have already propagated the good news, what doesn&#8217;t seem to be so widely known is how easy it is to get the Activity Journal running on Ubuntu. Because [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://bloc.eurion.net/wp-content/uploads/2010/01/gnome-activity-journal-0.3.2.png"><img class="size-medium wp-image-482 alignright" title="gnome-activity-journal-0.3.2" src="http://bloc.eurion.net/wp-content/uploads/2010/01/gnome-activity-journal-0.3.2-300x143.png" alt="GNOME Activity Journal, 0.3.2" width="300" height="143" /></a>As already announced by <a href="http://seilo.geekyogre.com/">Seif</a>, the first development release of the <a href="https://launchpad.net/gnome-activity-journal">GNOME Activity Journal</a> (what was formerly known as <em>GNOME Zeitgeist</em>) is finally <a href="https://launchpad.net/gnome-activity-journal/+announcement/4900">out</a>!</p>
<p>While several sources have already propagated the good news, what doesn&#8217;t seem to be so widely known is how easy it is to get the Activity Journal running on Ubuntu. Because it is!</p>
<p><strong>Installation on Ubuntu Karmic or Lucid</strong></p>
<pre>sudo add-apt-repository ppa:zeitgeist/ppa
sudo aptitude update
sudo aptitude install gnome-activity-journal</pre>
<p>Now go to <strong>Applications</strong> -&gt; <strong>Utility</strong> -&gt; <strong>Activity Journal</strong> and enjoy the sweetness!</p>
<p><strong>Installation on other systems</strong></p>
<p>Our <a href="https://launchpad.net/~zeitgeist/+archive/ppa">Personal Package Archive</a> also has packages for Ubuntu Jaunty which you can add the usual way (by adding it to <strong>System</strong> -&gt; <strong>Administration</strong> -&gt; <strong>Software Sources</strong> or editing your <em>sources.list</em>), and the same packages as for Ubuntu work for Debian Sid (to which Zeitgeist <a href="https://edge.launchpad.net/zeitgeist/+announcement/4899">0.3.2</a> and the GNOME Activity Journal will be uploaded shortly).</p>
<p>There may be packages for other distributions available; if you can&#8217;t find any for yours, you can do the installation by hand:</p>
<p>[<strong>For Zeitgeist</strong>] &#8211; Build dependencies: <em>intltool</em></p>
<pre>$ wget http://launchpad.net/zeitgeist/0.3/0.3.2/+download/zeitgeist-0.3.2.tar.gz
$ tar -xzvf zeitgeist-0.3.2.tar.gz
$ cd zeitgeist-0.3.2
$ ./configure
$ make
# make install</pre>
<p>[<strong>For the GNOME Activity Journal</strong>] &#8211; Build dependencies: <em>Python (2.5+)</em>, <em>Python-DistUtils-Extra</em>, <em>intltool</em></p>
<pre>$ wget http://launchpad.net/gnome-activity-journal/0.3/0.3.2/+download/gnome-activity-journal-0.3.2.tar.gz
$ tar -xzvf gnome-activity-journal-0.3.2.tar.gz
$ cd gnome-activity-journal-0.3.2
$ python setup.py build
# python setup.py install</pre>
<p><strong>But, what is the GNOME Activity Journal?</strong></p>
<p>The <a href="https://launchpad.net/gnome-activity-journal">GNOME Activity Journal</a> is a tool for easily browsing and finding files, contacts and other resources on your computer. Using <a href="http://zeitgeist-project.com/">Zeitgeist</a>, it keeps a chronological journal of your activity and supports tagging and bookmarking (using the new <a href="http://projects.gnome.org/tracker/">Tracker</a> 0.7) and establishing relationships between resources.</p>
<p>While this first release only supports basic browsing of file activities, the <a href="http://zeitgeist-project.com">underlying infrastructure</a> can do much more and you can expect the missing functionality to become available in future releases.</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2011/activity-log-manager-released/' rel='bookmark' title='Activity Log Manager for Zeitgeist released!'>Activity Log Manager for Zeitgeist released!</a> <small>On behalf of the Activity Log Manager team and the...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/gnome-shell-window-list/' rel='bookmark' title='Another GNOME Shell post: what do you think about the window list?'>Another GNOME Shell post: what do you think about the window list?</a> <small>It&#8217;s already a few months since my two posts on...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/gnome-do-08-alpha-and-docky/' rel='bookmark' title='GNOME Do &#8211; 0.8 Alpha and Docky'>GNOME Do &#8211; 0.8 Alpha and Docky</a> <small>A friend told me not much ago about a new...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2010/gnome-activity-journal-and-installing-it-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>espeak-gui 0.2</title>
		<link>http://bloc.eurion.net/archives/2010/espeak-gui-0-2/</link>
		<comments>http://bloc.eurion.net/archives/2010/espeak-gui-0-2/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 20:10:26 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet GNOME]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[Programari lliure]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[speech-synthesis]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=470</guid>
		<description><![CDATA[Yesterday I did a first release of espeak-gui, so while I&#8217;m still in practice I&#8217;ve decided to get out a second one! The main changes are fixing a crash bug and&#8230; internationalization support. So, if you like this project but you&#8217;re not a coder, now you&#8217;ve got a way to contribute: translating it into your [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I did a first release of <a href="http://bloc.eurion.net/archives/2010/introducing-espeak-gui/">espeak-gui</a>, so while I&#8217;m still in practice I&#8217;ve decided to get out a second one!</p>
<p>The main changes are fixing a crash bug and&#8230; internationalization support. So, if you like this project but you&#8217;re not a coder, now you&#8217;ve got a way to contribute: <a href="https://translations.launchpad.net/espeak-gui">translating it into your language</a> (come on, it only has a few strings! :)).</p>
<p>The new version is already in <a href="https://launchpad.net/~rainct/+archive/voice/">my PPA</a>: <a href="https://launchpad.net/~rainct/+archive/voice/+files/espeak-gui_0.2-0ubuntu1~ppa1_all.deb">espeak-gui_0.2-0ubuntu1~ppa1_all.deb</a>. A tarball is also available, and the installation instructions are the following:</p>
<pre>$ wget -c <a href="http://launchpad.net/espeak-gui/trunk/0.2/+download/espeak-gui-0.2.tar.gz">http://launchpad.net/espeak-gui/trunk/0.2/+download/espeak-gui-0.2.tar.gz</a>
$ tar -xzvf espeak-gui-0.2.tar.gz; cd espeak-gui-0.2
$ python setup.py build
$ sudo python setup.py install</pre>
<p>In case you didn&#8217;t already have the previous version, you&#8217;ll also need to install the <a href="https://launchpad.net/python-espeak">python-espeak</a> module, for which there are also .deb&#8217;s (<a href="https://launchpad.net/~rainct/+archive/voice/+files/python-espeak_0.0ubuntu1~ppa1_i386.deb">i386</a>, <a href="https://launchpad.net/~rainct/+archive/voice/+files/python-espeak_0.0ubuntu1~ppa1_amd64.deb">amd64</a>) or the manual installation option like explained in my <a href="http://bloc.eurion.net/archives/2010/introducing-espeak-gui/">previous post</a>:</p>
<pre>$ bzr get lp:python-espeak
$ cd python-espeak
$ python setup.py build
$ sudo python setup.py install</pre>
<p>Here are the contents of the NEWS file:</p>
<pre>2010-01-02: Version 0.2
-----------------------

 - Fixed a crash happening when there was no voice language set in
   gconf (LP: 502253). [Reported by Rugby471]
 - Added a "Plain text" filter to the Open/Save dialogues.
 - Added internationalization support.
 - Added a manpage and a gconf schemas file.
 - A couple little user interface improvements.

Translations: Catalan.</pre>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2010/introducing-espeak-gui/' rel='bookmark' title='Introducing espeak-gui'>Introducing espeak-gui</a> <small>I&#8217;m joining the hype of presenting little new projects there...</small></li>
<li><a href='http://bloc.eurion.net/archives/2010/gnome-activity-journal-and-installing-it-on-ubuntu/' rel='bookmark' title='GNOME Activity Journal, and installing it on Ubuntu'>GNOME Activity Journal, and installing it on Ubuntu</a> <small>As already announced by Seif, the first development release of...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/zeitgeist-api-02/' rel='bookmark' title='Introduction to Zeitgeist 0.2&#8242;s API'>Introduction to Zeitgeist 0.2&#8242;s API</a> <small>So now that Zeitgeist 0.2.0 is out I&#8217;ve thought I&#8217;d...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2010/espeak-gui-0-2/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>Introducing espeak-gui</title>
		<link>http://bloc.eurion.net/archives/2010/introducing-espeak-gui/</link>
		<comments>http://bloc.eurion.net/archives/2010/introducing-espeak-gui/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 21:33:36 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet GNOME]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[Programari lliure]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[speech-synthesis]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=463</guid>
		<description><![CDATA[I&#8217;m joining the hype of presenting little new projects there seems to be those days, unleashing the first version of espeak-gui, a graphical interface to let the computer read out text. Why, when, who? The project started almost a year ago when, out of curiosity on what writing Python bindings for C/C++ libraries is like, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://bloc.eurion.net/wp-content/uploads/2010/01/espeak-gui-0.1.png"><img class="size-medium wp-image-464 alignright" title="Screenshot of espeak-gui (version 0.1)" src="http://bloc.eurion.net/wp-content/uploads/2010/01/espeak-gui-0.1-300x180.png" alt="" width="300" height="180" /></a>I&#8217;m joining the hype of presenting little new projects there seems to be those days, unleashing the first version of <a href="https://launchpad.net/espeak-gui">espeak-gui</a>, a graphical interface to let the computer read out text.</p>
<p><strong>Why, when, who?</strong></p>
<p>The project started almost a year ago when, out of curiosity on what writing Python bindings for C/C++ libraries is like, I started <a href="https://launchpad.net/python-espeak">python-espeak</a>, bindings for the espeak speech synthesizer (which, by the way, comes installed by default on Ubuntu and many other distributions).</p>
<p>It turned out that writing bindings isn&#8217;t as funny as I thought so they haven&#8217;t advanced much since then, but the basic functionality was there and I felt the need for some application using those bindings, so that&#8217;s how I started <a href="https://launchpad.net/python-espeak">espeak-gui</a>.</p>
<p>Some months later, in true Free Software spirit, someone else -interested in an application like this for personal usage- found my code on Launchpad and got in touch with me, providing me with quite some nice patches. Thank you, <a href="https://launchpad.net/~joe-a-burmeister">Joe Burmeister</a>! However, I didn&#8217;t do any more work on it, as I&#8217;ve been busy with other projects (eg. <a href="http://zeitgeist-project.com/">Zeitgeist</a>), and development stalled there.</p>
<p>Now, another half a year later, I&#8217;ve finally got back to this and decided it&#8217;s time I push it out into the wild. So, after cleaning it up a bit more and implementing some new feature, here you have <a href="https://launchpad.net/espeak-gui">espeak-gui</a>!</p>
<p>(The bindings aren&#8217;t really encouraged for widespread usage at this point and I&#8217;ll probably end up rewriting them using <a href="http://www.swig.org/">SWIG</a> or something else; however, if you&#8217;re interested in using them please get in touch with me).</p>
<p><strong>Where do I get it?</strong></p>
<p>If you&#8217;re using Ubuntu or Debian, you can find a <a href="https://launchpad.net/~rainct/+archive/voice/+packages">packages for python-espeak and espeak-gui</a> in <a href="https://launchpad.net/~rainct/+archive/voice">my PPA</a>.</p>
<p>For users of other distributions, you can install them manually after installing the needed dependencies (most importantly, libespeak-dev).</p>
<p>For the Python bindings for espeak:</p>
<pre>$ bzr get lp:python-espeak
$ cd python-espeak
$ python setup.py build
# python setup.py install
</pre>
<p>And for the GUI:</p>
<pre>$ wget -c <a href="http://launchpad.net/espeak-gui/trunk/0.1/+download/espeak-gui-0.1.tar.gz">http://launchpad.net/espeak-gui/trunk/0.1/+download/espeak-gui-0.1.tar.gz</a>
$ tar -xzvf espeak-gui-0.1.tar.gz
$ cd espeak-gui-0.1
# python setup.py install
</pre>
<p>[<strong>Update:</strong> A new version is out, see <a href="http://bloc.eurion.net/archives/2010/espeak-gui-0-2/">espeak-gui 0.2</a> for details.]</p>
<p>I have several ideas on how to continue improving it and I think I&#8217;ll slowly continue doing so (or maybe not so slowly if I get positive feedback on this :)). Also, patches are always welcome!</p>
<p><strong>Using it</strong></p>
<p>Once installed, you&#8217;ll find <a href="https://launchpad.net/espeak-gui">espeak-gui</a> under <em>Applications</em> -&gt; <em>Sound and Video</em> (maybe Accessibility would be a better place?), or you can run it from the command line like this:</p>
<pre>espeak [ &lt;file 1&gt; &lt;file 2&gt; ... ]</pre>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2010/espeak-gui-0-2/' rel='bookmark' title='espeak-gui 0.2'>espeak-gui 0.2</a> <small>Yesterday I did a first release of espeak-gui, so while...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/zeitgeist-api-02/' rel='bookmark' title='Introduction to Zeitgeist 0.2&#8242;s API'>Introduction to Zeitgeist 0.2&#8242;s API</a> <small>So now that Zeitgeist 0.2.0 is out I&#8217;ve thought I&#8217;d...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2010/introducing-espeak-gui/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>No sound problem with Wolfenstein: Enemy Territory</title>
		<link>http://bloc.eurion.net/archives/2009/no-sound-problem-with-wolfenstein-enemy-territory/</link>
		<comments>http://bloc.eurion.net/archives/2009/no-sound-problem-with-wolfenstein-enemy-territory/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 16:19:33 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Jocs]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=455</guid>
		<description><![CDATA[I don&#8217;t really play much, but of the few games I know Wolfenstein: Enemy Territory is probably the one with which I&#8217;ve spend the most time so far. By featuring multiple player roles (soldier, engineer, medic, etc.) and, even while being multiplayer, nice objective-based scenarios, it provides for much better experience that many other more [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t really play much, but of the few games I know <a href="http://en.wikipedia.org/wiki/Wolfenstein:_Enemy_Territory">Wolfenstein: Enemy Territory</a> is probably the one with which I&#8217;ve spend the most time so far. By featuring multiple player roles (soldier, engineer, medic, etc.) and, even while being multiplayer, nice objective-based scenarios, it provides for much better experience that many other more popular shooters. And best of all, it&#8217;s completely free of cost, has native support for GNU/Linux and a portion of it&#8217;s source code is open!</p>
<p>But it&#8217;s not to advertise this game that I&#8217;m writing about it, but because I want to write down some solution to the &#8220;no sound problem&#8221; which you&#8217;re likely to find if you try it out, and so that I can remember about the fixes in the future. So, here&#8217;s the different things you can try; if one of them fails just go to the next one, and let&#8217;s hope that at least the last one does the trick!</p>
<p><strong>1. Install the &#8220;oss-compat&#8221; package.</strong><br />
As easy as that! Although this alone has never fixed the problem with me, it often does together with solution 2 (described just below), and maybe in your case it may be all you&#8217;re missing.</p>
<p><strong>2. A bit of command-line magic</strong><br />
The next one, which <a href="http://buck-nasty.blogspot.com/2008/08/wolfenstein-enemy-territory-no-sound.html">seems</a> <a href="http://fedoraforum.org/forum/showthread.php?t=163169">to</a> <a href="https://help.ubuntu.com/community/Games/Native/ReturnToCastleWolfensteinEnemyTerritory">be</a> the most successful option, is trying to execute the following line before running <em>Enemy Territory</em>:</p>
<pre>echo "et.x86 0 0 direct" | sudo tee /proc/asound/card0/pcm0p/oss</pre>
<p>If after doing this the sound works, you can make the change permanent by adding that line to your <em>/etc/rc.local/</em>, for example by running:</p>
<pre>sudo sed -i "s:^exit 0:echo 'et.x86 0 0 direct' &gt; /proc/asound/card0/pcm0p/oss\nexit 0:" /etc/rc.local</pre>
<p><strong>3. Let&#8217;s call the artillery</strong></p>
<p>Hopefully you&#8217;ll be enjoying an <em>Enemy Territory</em> game with the sound of explosions and shots in your ears, but if the previous solutions didn&#8217;t do the trick do not despair, there&#8217;s still hope. I&#8217;ve found a different solution <a href="http://www.tomshardware.com/forum/37440-13-sound-wolfenstein-linux">in this thread</a> and it consists in the following:</p>
<p>a) Download this script: <a href="http://bloc.eurion.net/wp-content/uploads/2009/12/wolfsp-sdl-sound.sh">wolfsp-sdl-sound.sh</a> (<a href="http://nullkey.ath.cx/~stuff/et-sdl-sound/wolfsp-sdl-sound.gz">original download link</a>, <a href="http://members.lycos.co.uk/lordbanter/wolfsp-sdl-sound.gz">alternative download link</a>), created by <a href="http://nullkey.ath.cx/">Pyry Haulos</a>.</p>
<p>b) Open it with a text editor and customize it to match your configuration: change the line «<em>GAME_PATH=&#8221;/home/games/enemy-territory&#8221;</em>» to point to the location of your <em>Enemy Territory</em> installation (most likely «<em>GAME_PATH=&#8221;/usr/local/games/enemy-territor&#8221;</em>»); in case your directory with the game files isn&#8217;t called «<em>enemy-territory</em>» like in the example you&#8217;ll also need to adapt the <em>GAME_DIR</em> variable.</p>
<p>c) Save this file somewhere on your computer, make it executable if needed (you can do this by right clicking on it, selecting &#8220;Properties&#8221; and under the &#8220;Permissions&#8221; tab of the dialogue that will show up checking the box to allow execution of the file). Done, now whenever you want to run the game just start it by running this file.</p>
<p>I hope this is useful for someone out there :).</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2009/no-sound-on-hp-pavilion-dv6-1110ss/' rel='bookmark' title='No sound on HP Pavilion dv6-1110ss'>No sound on HP Pavilion dv6-1110ss</a> <small>I&#8217;ve recently installed Ubuntu Jaunty on an HP Pavilion dv6-1110ss...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2009/no-sound-problem-with-wolfenstein-enemy-territory/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GPL: Not here</title>
		<link>http://bloc.eurion.net/archives/2009/bolzano-gpl/</link>
		<comments>http://bloc.eurion.net/archives/2009/bolzano-gpl/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 19:05:57 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[Programari lliure]]></category>
		<category><![CDATA[Xorrades]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=445</guid>
		<description><![CDATA[No comments © Siegfried-Angel Gevatter Pujals, 2009. &#124; Permalink &#124; License &#124; Post tags: Programari lliure, Xorrades]]></description>
			<content:encoded><![CDATA[<div class="mceTemp mceIEcenter">
<dl id="attachment_446" class="wp-caption aligncenter" style="width: 193px;">
<dt class="wp-caption-dt"><a href="http://eurion.net/zeitgeist/photos/bolzano09/12112009160.jpg"><img class="size-full wp-image-446 " title="- Vehicles driven by GPL'ed AI software aren't allowed here.  - But, but... WHY? It follows the 3 laws of the robotics, I promise!" src="http://bloc.eurion.net/wp-content/uploads/2009/11/bolzano-gpl.png" alt="GPL: Not in this garage" width="183" height="215" /></a></dt>
</dl>
</div>
<hr />
<p><small>
<a href="http://bloc.eurion.net/archives/2009/bolzano-gpl/#comments">No comments</a><br />
© Siegfried-Angel Gevatter Pujals, 2009. |
<a href="http://bloc.eurion.net/archives/2009/bolzano-gpl/">Permalink</a> |
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">License</a> |
Post tags: <a href="http://bloc.eurion.net/archives/tag/programari-lliure/" rel="tag">Programari lliure</a>, <a href="http://bloc.eurion.net/archives/tag/xorrades/" rel="tag">Xorrades</a><br/>
</small></p><p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2009/bolzano-gpl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zeitgeist Hackfest (II)</title>
		<link>http://bloc.eurion.net/archives/2009/zeitgeist-hackfest-report/</link>
		<comments>http://bloc.eurion.net/archives/2009/zeitgeist-hackfest-report/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 10:54:15 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[Programari lliure]]></category>
		<category><![CDATA[zeitgeist]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=431</guid>
		<description><![CDATA[So here we are at the Zeitgeist Hackfest and there&#8217;s quite some stuff going on. From the engine side we are implementing a new database and API which does a clean cut between what is event logging and what is repository functionality. What this means for Zeitgeist is that we won&#8217;t do annotations anymore and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://bloc.eurion.net/wp-content/uploads/2009/11/gnome-sponsored-badge.png"><img class="alignright size-thumbnail wp-image-432" title="gnome-sponsored-badge" src="http://bloc.eurion.net/wp-content/uploads/2009/11/gnome-sponsored-badge-150x150.png" alt="gnome-sponsored-badge" width="150" height="150" /></a>So here we are at the <a href="http://bloc.eurion.net/archives/2009/zeitgeist-hackfest-2009/">Zeitgeist Hackfest </a>and there&#8217;s quite some stuff going on.</p>
<p>From the engine side we are implementing a new database and API which does a clean cut between what is <em>event logging</em> and what is <em>repository</em> functionality. What this means for Zeitgeist is that we won&#8217;t do annotations anymore and that the basic information Zeitgeist has about items will be about those at the time of the event &#8211; for anything else there is Tracker (I tried out the new version from git yesterday and it really rocks, it&#8217;s nothing like 0.6).</p>
<p>We are also implementing focus tracking and the algorithms for the fancy stuff (contextual relevancy over time, focus time of documents/applications, etc).</p>
<div id="attachment_433" class="wp-caption aligncenter" style="width: 310px"><a href="http://bloc.eurion.net/wp-content/uploads/2009/11/09112009131.jpg"><img class="size-medium wp-image-433 " title="Zeitgeist Hackfest - Blackboard" src="http://bloc.eurion.net/wp-content/uploads/2009/11/09112009131-300x225.jpg" alt="Seif, Markus and Ivan at the blackboard" width="300" height="225" /></a><p class="wp-caption-text">Blackboards saved us a lot of time.  In the image: Seif Lotfy, Ivan Frade (Tracker) and Markus Korn.</p></div>
<p>The User Interface team also has some quite nice design ideas. For the non-developers out there, there&#8217;ll be something (alpha-quality!) to try out soon.</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2009/zeitgeist-hackfest-2009/' rel='bookmark' title='Zeitgeist Hackfest'>Zeitgeist Hackfest</a> <small>Just a quick note to mention that tomorrow I&#8217;m leaving...</small></li>
<li><a href='http://bloc.eurion.net/archives/2010/zeitgeist-data-source-registry/' rel='bookmark' title='Zeitgeist Data-Source Registry'>Zeitgeist Data-Source Registry</a> <small>This post is about an upcoming feature in Zeitgeist 0.3.3...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/zeitgeist-api-02/' rel='bookmark' title='Introduction to Zeitgeist 0.2&#8242;s API'>Introduction to Zeitgeist 0.2&#8242;s API</a> <small>So now that Zeitgeist 0.2.0 is out I&#8217;ve thought I&#8217;d...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2009/zeitgeist-hackfest-report/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Zeitgeist Hackfest</title>
		<link>http://bloc.eurion.net/archives/2009/zeitgeist-hackfest-2009/</link>
		<comments>http://bloc.eurion.net/archives/2009/zeitgeist-hackfest-2009/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 14:45:42 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[Programari lliure]]></category>
		<category><![CDATA[zeitgeist]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=418</guid>
		<description><![CDATA[Just a quick note to mention that tomorrow I&#8217;m leaving for Bolzano for a week, for the Zeitgeist Hackfest. I&#8217;m really looking forward to meeting all the team there! My initial idea for this post was to write about some of the upcoming changes in the engine, as we&#8217;ve been discussing quite some improvements lately, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.freesoftwareweek.org/"><img class="aligncenter size-medium wp-image-417" title="Free Software Week 2009 - Bolzano, South Tyrol" src="http://bloc.eurion.net/wp-content/uploads/2009/11/bolzano2009-300x95.png" alt="Free Software Week 2009 - Bolzano, South Tyrol" width="300" height="95" /></a></p>
<p>Just a quick note to mention that tomorrow I&#8217;m leaving for Bolzano for a week, for the <a href="http://live.gnome.org/ZeitgeistHackFest2009">Zeitgeist Hackfest</a>. I&#8217;m really looking forward to meeting all the team there!</p>
<p>My initial idea for this post was to write about some of the upcoming changes in the engine, as we&#8217;ve been discussing quite some improvements lately, but I&#8217;ll better leave that for after the hackfest as we&#8217;ll have a chance to go over all them again and clarify any missing chunks :). For now I&#8217;ll just say that the API will probably change quite a lot, and while I&#8217;m at it leave you with a link to a recent <a href="http://mail.gnome.org/archives/desktop-devel-list/2009-November/msg00019.html">Status Report</a> sent to GNOME (there&#8217;s also one for <a href="http://mail.gnome.org/archives/desktop-devel-list/2009-November/msg00006.html">GNOME Shell</a>, in case you care).</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2009/zeitgeist-hackfest-report/' rel='bookmark' title='Zeitgeist Hackfest (II)'>Zeitgeist Hackfest (II)</a> <small>So here we are at the Zeitgeist Hackfest and there&#8217;s...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/zeitgeist-since-uds/' rel='bookmark' title='Zeitgeist since UDS'>Zeitgeist since UDS</a> <small>Quite some stuff has been going on in Zeitgeist since...</small></li>
<li><a href='http://bloc.eurion.net/archives/2009/zeitgeist-is-out/' rel='bookmark' title='Zeitgeist is out!'>Zeitgeist is out!</a> <small>World, the first Zeitgeist release is out! From the release...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2009/zeitgeist-hackfest-2009/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Arreglant paquets que no compilen: necpp</title>
		<link>http://bloc.eurion.net/archives/2009/arreglant-paquets-que-no-compilen-necpp/</link>
		<comments>http://bloc.eurion.net/archives/2009/arreglant-paquets-que-no-compilen-necpp/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 22:10:36 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[motu]]></category>
		<category><![CDATA[Programari lliure]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=409</guid>
		<description><![CDATA[Una mica més tard del que tenia previst, però continuo el meu apunt sobre com arreglar paquets de l&#8217;Ubuntu que no compilen amb un primer exemple pràctic (o més que exemple, amb un cas real). El paquet triat, seleccionat de la llista de paquets que no compilen, s&#8217;anomena necpp. Procedim a seguir amb els passos [...]]]></description>
			<content:encoded><![CDATA[<p>Una mica més tard del que tenia previst, però continuo el meu apunt sobre <a href="http://bloc.eurion.net/archives/2009/contribuir-a-ubuntu-arreglar-paquets-que-no-compilen/">com arreglar paquets de l&#8217;Ubuntu que no compilen</a> amb un primer exemple pràctic (o més que exemple, amb un cas real). El paquet triat, seleccionat de la <a href="http://people.ubuntuwire.org/~wgrant/rebuild-ftbfs-test/test-rebuild-20090909.html">llista de paquets que no compilen</a>, s&#8217;anomena <strong>necpp</strong>. Procedim a seguir amb els passos que vaig descriure.</p>
<p><strong>1. Comprovació de l&#8217;estat</strong></p>
<p>Ara no perquè ja he arreglat el paquet, però si miravem a <a href="https://launchpad.net/ubuntu/+source/necpp">https://launchpad.net/ubuntu/+source/<strong>necpp</strong></a> veiem que la última versió del paquet era l&#8217;afectada, i que no hi havia informes d&#8217;error relacionats amb el problema (recordem que, si n&#8217;hi hagués, podríem trobar-hi pistes o bé veure que algú altre ja està treballant en arreglar aquest paquet). Comprovant els informes d&#8217;error a Debian (<a href="http://bugs.debian.org/necpp">http://bugs.debian.org/<strong>necpp</strong></a>) tampoc trobem res, i a <a href="http://packages.debian.org/necpp">http://packages.debian.org/<strong>necpp</strong></a> comprovem que tampoc hi ha cap versió més nova que la de l&#8217;Ubuntu on ho hagin arreglat. Així doncs, tirem endavant, i obrim un informe d&#8217;error al Launchpad per indicar que hi estem treballant (<a href="https://bugs.launchpad.net/ubuntu/+source/necpp/+bug/447454">exemple</a>).</p>
<p><strong>2. Obtenció del paquet font</strong><br />
Baixem el paquet font:</p>
<pre>apt-get source <strong>necpp</strong></pre>
<p>Si ho proveu ara, obtindreu la nova versió del paquet que ja he arreglat, però podeu baixar-vos l&#8217;anterior a fi de seguir el tutorial fent això en lloc de l&#8217;<em>apt-get source</em>:</p>
<pre>dget https://launchpad.net/ubuntu/+archive/primary/+files/<strong>necpp</strong>_<strong>1.3.0+cvs20090101</strong>-<strong>1ubuntu1</strong>.dsc
dpkg-source -x <strong>necpp</strong>_<strong>1.3.0+cvs20090101</strong>-<strong>1ubuntu1</strong>.dsc</pre>
<p>Ara, comprovem que efectivament podem reproduir el problema, intentant compilar-lo:</p>
<pre>pbuilder-karmic build <strong>necpp</strong>_<strong>1.3.0+cvs20090101</strong>-<strong>1ubuntu1</strong>.dsc</pre>
<p>El <a href="http://launchpadlibrarian.net/31951395/buildlog_ubuntu-karmic-amd64.necpp_1.3.0%2Bcvs20090101-1ubuntu1_FAILEDTOBUILD.txt.gz">missatge d&#8217;error</a> que rebem és el següent:</p>
<pre>[...]
XGetopt.cpp: In function 'int XGetopt(int, char**, const char*)':
XGetopt.cpp:170: error: invalid conversion from 'const char*' to 'char*'
make[3]: *** [XGetopt.o] Error 1
[...]</pre>
<p><strong>3. Solució del problema</strong><br />
Arribem així a la part més difícil, ja que aquesta no és sistemàtica.</p>
<p>El missatge d&#8217;error ens parla d&#8217;un fitxer <em>XGetopt.cpp</em>, el qual podem trobar al directori <em>str/</em>. Si mirem a la línia que menciona, la 170, ens trobem el següent:</p>
<pre>cp = strchr(optstring, c);</pre>
<p>Si cerquem informació sobre la funció <strong>strchr</strong> del C++, <a href="http://www.cplusplus.com/reference/clibrary/cstring/strchr/">trobem</a> que està sobrecarregada i té dues versions:</p>
<pre>const char * strchr (const char * str, int character);
char * strchr (char * str, int character);</pre>
<p>Veiem que si el primer paràmetre de la funció és constant, el resultat de la funció és una constant, i sí el paràmetre no és constant, el resultat tampoc ho és. Si mirem de quin tipus és la variable <em>optstring</em>, a la línia 133 trobem que és constant, de manera que el resultat de la funció també ho és. Si ara mirem com és la variable <em>cp</em>, a la qual s&#8217;està assignant la sortida de la funció, a la línia 136 veiem:</p>
<pre>char *cp;</pre>
<p>És a dir, no és constant, de manera que aquí tenim el problema. Si mirem la resta del codi on existeix aquesta variable, no trobem cap lloc on es modifiqui el valor de la cadena de text a la qual apunta, així que podem convertir la variable en constant sense problema. Per fer-ho, simplement cal canviar la línia afegint-hi «<em>const</em>» al davant, i com que si executem l&#8217;ordre</p>
<pre>what-patch</pre>
<p>ens diu que el paquet no utilitza cap sistema de pegats («<em>patchless?</em>») podem fer el canvi modificant el fitxer directament.</p>
<p>Per acabar, afegim una entrada nova al fitxer <em>debian/changelog</em>, declarant una revisió nova del paquet i explicant els canvis que hem fet. Executem l&#8217;ordre següent:</p>
<pre>dch -i</pre>
<p>I ha de quedar una cosa com ara:</p>
<pre>necpp (1.3.0+cvs20090101-1ubuntu2) karmic; urgency=low

  * src/XGetopt.cpp (LP: #447454)
     - Change the definition of the "cp" variable from type "char*" to
       "const char*", to avoid an "invalid conversion" error when the
       result of "strchr(const char*, ...)" is assigned to it.

 -- Siegfried-Angel Gevatter Pujals   Sat, 24 Oct 2009 19:58:55 +0200</pre>
<p>És important no oblidar-nos de referenciar el número de l&#8217;informe d&#8217;error que hem obert, i explicar clarament el motiu de tots els canvis.</p>
<p><strong>4. Regenerant el paquet font</strong></p>
<pre>debuild -S</pre>
<p>Això ens crearà un paquet font per a la nova revisió, que podem compilar tal com hem fet abans (però utilitzant el fitxer <em>.dsc</em> de la nova revisió, no el d&#8217;abans):</p>
<pre>pbuilder-karmic build <strong>necpp</strong>_<strong>1.3.0+cvs20090101</strong>-<strong>1ubuntu2</strong>.dsc</pre>
<p>Aquest cop funcionarà, així que ara només queda generar un fitxer de diferències i comprovar que només hi ha els canvis que hem fet intencionadament.</p>
<pre>debdiff <strong>necpp</strong>_<strong>1.3.0+cvs20090101</strong>-<strong>1ubuntu1</strong>.dsc <strong>necpp</strong>_<strong>1.3.0+cvs20090101</strong>-<strong>1ubuntu2</strong>.dsc &gt; <strong>necpp</strong>_<strong>1.3.0+cvs20090101</strong>-<strong>1ubuntu2</strong>.debdiff</pre>
<p>En aquest cas, el contingut del fitxer ha de ser el següent:</p>
<pre>diff -u necpp-1.3.0+cvs20090101/debian/changelog necpp-1.3.0+cvs20090101/debian/changelog
--- necpp-1.3.0+cvs20090101/debian/changelog
+++ necpp-1.3.0+cvs20090101/debian/changelog
@@ -1,3 +1,12 @@
+necpp (1.3.0+cvs20090101-1ubuntu2) karmic; urgency=low
+
+  * src/XGetopt.cpp (LP: #447454)
+     - Change the definition of the "cp" variable from type "char*" to
+       "const char*", to avoid an "invalid conversion" error when the
+       result of "strchr(const char*, ...)" is assigned to it.
+
+ -- Siegfried-Angel Gevatter Pujals   Sat, 24 Oct 2009 19:58:55 +0200
+
 necpp (1.3.0+cvs20090101-1ubuntu1) karmic; urgency=low

   * Merge from debian unstable, remaining changes from jaunty:
only in patch2:
unchanged:
--- necpp-1.3.0+cvs20090101.orig/src/XGetopt.cpp
+++ necpp-1.3.0+cvs20090101/src/XGetopt.cpp
@@ -133,7 +133,7 @@
 int XGetopt(int argc, char *argv[], const char *optstring)
 {
 	char c;
-	char *cp;
+	const char *cp;
 	static char *next = NULL;
 	if (optind == 0)
 		next = NULL;</pre>
<p><strong>5. Enviant els canvis a l&#8217;Ubuntu</strong></p>
<p>Ara que tenim el fitxer de diferències, l&#8217;adjuntem a l&#8217;informe d&#8217;error que hem creat al principi, i subscrivim l&#8217;equip de revisors adequat a l&#8217;informe. En aquest cas, el paquet està al dipòsit <em>universe</em>, com podem comprovar:</p>
<pre>$ apt-cache madison <strong>necpp</strong>
     necpp | 1.3.0+cvs20090101-1ubuntu1 | http://mirror.pacific.net.au karmic/<strong>universe</strong> Sources</pre>
<p>Així doncs, l&#8217;equip és l&#8217;<em>ubuntu-universe-sponsors</em>. Ara només queda esperar que algú revisi el paquet i el pugi a l&#8217;Ubuntu, però com que som bons ciutadans també reportarem l&#8217;error a Debian tot donant-los-en la solució.</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2009/contribuir-a-ubuntu-arreglar-paquets-que-no-compilen/' rel='bookmark' title='Com contribuir a l&#8217;Ubuntu &#8211; Arreglar paquets que no compilen correctament'>Com contribuir a l&#8217;Ubuntu &#8211; Arreglar paquets que no compilen correctament</a> <small>El passat cap de setmana va tenir lloc l&#8217;Ubuntu Global...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2009/arreglant-paquets-que-no-compilen-necpp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Com contribuir a l&#8217;Ubuntu &#8211; Arreglar paquets que no compilen correctament</title>
		<link>http://bloc.eurion.net/archives/2009/contribuir-a-ubuntu-arreglar-paquets-que-no-compilen/</link>
		<comments>http://bloc.eurion.net/archives/2009/contribuir-a-ubuntu-arreglar-paquets-que-no-compilen/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 17:49:55 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[motu]]></category>
		<category><![CDATA[Programari lliure]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=394</guid>
		<description><![CDATA[El passat cap de setmana va tenir lloc l&#8217;Ubuntu Global Jam i l&#8217;equip català d&#8217;Ubuntu va aportar-hi el seu granet de sorra. Així, va tenir lloc una marató de traducció i, per la tarda, també es va fer una mica d&#8217;introducció a l&#8217;empaquetament de programes amb un exemple pràctic: com arreglar un paquet que no [...]]]></description>
			<content:encoded><![CDATA[<p>El passat cap de setmana va tenir lloc l&#8217;<a href="http://davidplanella.wordpress.com/2009/10/04/ubuntu-jamming-catalan-style/">Ubuntu Global Jam</a> i l&#8217;<a href="http://ubuntu.cat">equip català d&#8217;Ubuntu</a> va aportar-hi el seu granet de sorra. Així, va tenir lloc una marató de traducció i, per la tarda, també es va fer una mica d&#8217;introducció a l&#8217;empaquetament de programes amb un exemple pràctic: com arreglar un paquet que no compila. Seguint el suggeriment de l&#8217;<a href="http://log.alexm.org/">Alex Muntada</a> de fer un resum d&#8217;aquesta darrera activitat, m&#8217;he decidit a escriure una sèrie d&#8217;apunts sobre el tema.</p>
<p><strong>Prefaci</strong></p>
<p>Inauguro la sèrie amb aquest  primer apunt, on tot seguit explicaré conceptes generals en quant als &#8220;paquets que no compilen&#8221; i que fer amb ells; en successius apunts, i per tal de deixar-ho tot ben clar, explicaré els passos necessaris per a arreglar diferents paquets concrets. Depenent de la resposta que rebin aquests escrits, pot ser que més endavant enceti una sèrie nova que tracti algun altre tema relacionat amb els paquets, a partir dels coneixements adquirits amb aquesta.</p>
<p><strong>Introducció</strong></p>
<p>Si esteu llegint això ja deveu saber que en l&#8217;Ubuntu els programes venen preparats en forma de paquets; gestors de paquets (com ara l&#8217;Afegeix/Elimina, el Synaptic o l&#8217;Apt) us proporcionen una llista de tots els paquets disponibles i simplement esperen les vostres indicacions per tal de descarregar, insta?lar i mantenir actualitzats els paquets que us interessin. Ara bé, per increïble que pugui semblar, aquests paquets no apareixen del no-res, sinó que hi ha una munió de gent dedicant temps a crear-los i actualitzar-los.</p>
<p>Quan hom crea un paquet el que fa és agafar el codi font del programa (amb petites modificacions, si convé, com ara arreglar-ne algun error) i afegir-hi la informació necessària per a crear un programa. Un cop això està fet, el paquet font (source package) resultant és enviat al Launchpad (servidor d&#8217;Ubuntu), on és compilat per a les diferents arquitectures, tot creant els paquets binaris (.deb) que tots coneixem. Pot ocórrer que un paquet font no compili correctament (i no es creïn els paquets .deb) per a una o més arquitectures; en aquest cas, cal trobar quin és el problema i enviar una nova revisió del paquet al Launchpad. Del fet que un paquet no compili correctament se&#8217;n diu <em>FTBFS</em> («<em>Fails to Build From Source</em>»).</p>
<p>Normalment, poc abans que surti una nova versió de l&#8217;Ubuntu, s&#8217;intenta tornar a compilar tots els paques dels dipòsits oficials per tal de comprovar que encara compilin correctament. Aquesta operació acaba donant un llarg llistat de paquets que fallen i que convé arreglar. Els motius que els paquets no compilin correctament són diversos, i poden ser coses com ara: l&#8217;ús d&#8217;una nova versió més estricta d&#8217;un compilador (com passa sovint amb el gcc), canvis en les dependències de construcció del paquet (és a dir, en els paquets de que cal disposar per crear-lo, <em>«build dependencies</em>»; pot ser un canvi en el contingut d&#8217;algun d&#8217;aquests paquets el que provoqui el problema, que hagi canviat el nom d&#8217;algun d&#8217;ells i ara no el trobi&#8230;), etc.</p>
<p>La llista de paquets que no compilen correctament a la Karmic es troba aquí: <a href="http://people.ubuntuwire.org/~wgrant/rebuild-ftbfs-test/test-rebuild-20090909.html">Build status for Ubuntu Karmic</a>. Passem a veure, en termes generals, que fer amb aquests paquets.</p>
<p><strong>0. Preparació abans de tractar amb paquets </strong>(això només cal fer-ho el primer cop)</p>
<p>Abans de posar-nos mans a la obra ens cal preparar el nostre sistema, instal·lant-hi unes quantes eines.</p>
<pre>sudo aptitude install ubuntu-dev-tools devscripts debhelper cdbs patchutils pbuilder build-essential</pre>
<p>Fem saber el nostre nom a aquestes eines, obrint el fitxer <em>.bashrc</em> i afegint les dues línies següents al final (tot substituint les dades per les nostres pròpies, és clar!):</p>
<pre>export DEBEMAIL=usuari@proveidor.com
export DEBFULLNAME="Nom Cognom"</pre>
<p>[En cas que disposem d'una clau PGP, convé escriure el mateix nom i l'adreça de correu electrònica tal com els tenim a la clau, tot posant el comentari -si n'hi ha- entre parèntesis i a continuació del nom.]<br />
També crearem un entorn Ubuntu mínim on podem provar de compilar els paquets sense que afectin (ni siguin afectats) pel nostre sistema. [Si no estem utilitzant la Karmic, cal insta?lar el paquet <em><a href="http://packages.ubuntu.com/debootstrap">debootstrap</a></em> del dipòsit <em>-backports</em> corresponent a la versió que utilitzem. També és recomanable agafar la última versió de l'<em>ubuntu-dev-tools</em>.]</p>
<pre>sudo ln -s <a href="http://bloc.eurion.net/archives/2009/test-build-debian-packages/">/usr/bin/pbuilder-dist</a> /usr/local/bin/pbuilder-karmic
sudo chmod +x /usr/local/bin/pbuilder-karmic
pbuilder-karmic create</pre>
<p>Haurem d&#8217;esperar una estona fins que tot el sistema base sigui insta?lat i actualitzat. Per acabar, ens hem d&#8217;assegurar que tinguem una línia <em>deb-src</em> per a la Karmic (encara que estiguem utilitzant la Jaunty o l&#8217;Intrepid, al ser de codi font això no té importància) al fitxer <em>/etc/apt/sources.list</em> i la llista de paquets actualitzada (<em>sudo aptitude update</em>).</p>
<p><strong>1. Comprovació de l&#8217;estat de l&#8217;error: ja hi està treballant algú?<br />
</strong></p>
<p>Un cop hem triat quin paquet volem arreglar, anem a <em>https://launchpad.net/ubuntu/+source/<strong>nom_paquet</strong></em>, comprovem que la última versió indicada sigui la mateixa que a la llista de FTBFS, i comprovem els informes d&#8217;error per si ja n&#8217;hi ha algun sobre el problema en qüestió. Si és així, comprovem que no estigui assignat a ningú (si ho està, deixem el paquet per ell i ens en busquem algun altre, per no duplicar la feina), mirem si l&#8217;informe conté alguna informació rellevant, i ens l&#8217;assignem a nosaltres, canviant a  més l&#8217;estat a <em>In Progress</em>. Si no hi ha cap informe d&#8217;error sobre el FTBFS, en creem un i igualment ens l&#8217;assignem a nosaltres i el marquem com a en progrés.</p>
<p>Fet això, comprovem també <em>http://packages.qa.debian.org/<strong>nom_paquet</strong></em>, on ens assegurem que a Debian no hi hagi ja una versió nova del paquet que solucioni l&#8217;error ni un informe d&#8217;error amb informació que ens pugui ser útil. Si fos el cas que a Debian el paquet ja ha estat arreglat, depenent de la situació en tindríem prou amb demanar que sigui sincronitzat a l&#8217;Ubuntu (veure <a href="https://wiki.ubuntu.com/SyncRequestProcess">sync requests</a>) o bé, si el paquet d&#8217;allà té altres canvis que en aquest moment no volem (per exemple una versió amb funcionalitats noves, ja entrada en vigor la <em>Feature Freeze</em>), podem agafar la solució de Debian de forma isolada per aplicar-la al nostre paquet.</p>
<p><strong>2. Obtenció del paquet font</strong></p>
<p>Ara que hem comprovat que el problema encara no ha estat solucionat, potser hem trobat alguna informació útil, i que hem indicat que estem treballant en arreglar-lo, procedim a baixar el paquet font:</p>
<pre>apt-get source <strong>nom_paquet</strong></pre>
<p>Això baixarà tres fitxers al nostre directori actual: <em>nom_paquet_versió.orig.tar.gz</em>, <em>nom_paquet-versió-revisió.diff.gz</em> i <em>nom_paquet-versió-revisió.dsc</em>. El primer és el codi font agafat de l&#8217;autor original (&lt;em&gt;upstream&lt;/em&gt;), sense modificacions; el segon fitxer és un fitxer de diferències que conté la informació necessària per crear al paquet (que serà posada en un directori anomenat «debian» dins del codi font) i en alguns casos també canvis al codi original, i l&#8217;últim fitxer simplement serveix per verificar que els altres dos són correctes (que no ha estat modificats o corromputs pel camí). Automàticament, també descomprimirà el contingut del <em>.tar.gz</em> i li aplicarà els canvis del <em>.diff.gz</em>, de manera que trobarem un directori <em>nom_paquet-versió</em> on treballar.</p>
<p>[En el paràgraf anterior, «<em>nom_paquet</em>» es refereix al nom del paquet font, «<em>versió</em>» al número de versió que li ha posat l'autor original, i «<em>revisió</em>» al número de revisió del paquet, que pren la forma <em>XubuntuY</em>, on <em>X</em> és la revisió de Debian i <em>Y</em> la revisió d'Ubuntu -si el paquet ve directament de Debian, simplement serà <em>X</em>-].</p>
<p>Arribats a aquest punt, podem verificar que realment el paquet no compila correctament, tot intentant-ho amb:</p>
<pre>pbuilder-karmic build <strong>nom_paquet</strong>-<strong>versió</strong>-<strong>revisió</strong>.dsc</pre>
<p>Per a continuar, ens situarem dins del directori descomprimit:</p>
<pre>cd <strong>nom_paquet</strong>-<strong>versió</strong></pre>
<p><strong>3. Solució del problema</strong></p>
<p>Ara que tenim el paquet de codi font, hem de trobar la solució al problema. Per a això ens és útil llegir el registre de l&#8217;intent de creació del paquet fallit, cercar informació als informes d&#8217;error d&#8217;Ubuntu i Debian (com ja s&#8217;ha mencionat abans) i del lloc web de l&#8217;autor original, llegir el registre de canvis del paquet (el fitxer <strong>debian/changelog</strong> dins del directori de codi font) per si hi ha referències útils, etc. Aquest constitueix el pas crític i més important, ja que si no sabem com solucionar l&#8217;error poc podrem fer.</p>
<p>[En cas que trobem un canvi al <em>debian/changelog</em> que sembli rellevant al problema actual, però no l'acabem d'entendre, preguntarem a la persona que l'hagi fet, ja sigui enviant-li un missatge de correu electrònic o cercant-lo a l'IRC (canal <em>#ubuntu-motu</em> o <em>#ubuntu-devel</em> a <em>irc.freenode.org</em>.]</p>
<p>Un cop haguem trobat com solucionar el problema, apliquem els canvis necessaris. Aquests acostumen a consistir en una modificació al fitxer <strong>debian/rules</strong> (per corregir les instruccions de creació del paquet), <strong>debian/control</strong> (per corregir les dependències de construcció) o als fitxers de codi font; les modificacions a aquests darrers cal fer-les utilitzant un sistema de pegats, en cas que el paquet ja disposi d&#8217;un (podem veure-ho amb l&#8217;ordre <strong>what-patch</strong>), o bé modificant els fitxers directament en cas contrari.</p>
<p>Fet això, haurem d&#8217;afegir a la informació del paquet una nova revisió. Per a això executarem «<em>dch -i</em>» i, a l&#8217;espai on descriure els canvis, explicarem detalladament què hem fet i perquè. També hi inclourem una referència a l&#8217;informe d&#8217;error que hem obert (o trobat) anteriorment, de la forma «<em>(LP: #<strong>número</strong>)</em>». Usualment el format utilitzat és d&#8217;aquest tipus:</p>
<pre>  * debian/control: Add foo as a build dependency, because the build system invokes command bar provided by the former; this fixes a FTBFS (LP: #123456).</pre>
<p>Com veieu, es comença posant el nom del fitxer (o els fitxers) modificat, dos punts, i a continuació s&#8217;expliquen detalladament els canvis; cada canvi es posa en una línia separada (començant per «  *»).</p>
<p><strong>4. Regenerant el paquet font</strong></p>
<p>Hem arreglat el problema i hem documentat tot en una entrada nova al fitxer <em>debian/changelog</em>. Ara podem procedir a crear un paquet font per a la nova revisió; això ho farem amb l&#8217;ordre següent</p>
<pre>debuild -S</pre>
<p>[És estrany, però pot ser que algun paquet requereixi la insta?lació de part de les dependències de construcció per tal de crear el paquet font. Quan aquest sigui el cas, n'hi ha prou amb insta?lar les dependències mancants i repetir l'ordre.]</p>
<p>Si tot va bé, ara podem tornar al directori pare del codi font (&lt;em&gt;cd ..&lt;/em&gt;) i ens trobarem amb dos fitxers nous: un &lt;em&gt;.diff.gz&lt;/em&gt; i un &lt;.dsc&gt; per a la nova revisió (l&#8217;&lt;em&gt;.orig.tar.gz&lt;/em&gt; no ens cal, ja que la versió de l&#8217;autor original és la mateixa que abans).</p>
<p>Ara podem tornar a provar de construir el paquet, i si hem fet bé la nostra feina aquest cop funcionarà (i deixarà un o més paquets binaris a <em>~/pbuilder/karmic_result/</em>):</p>
<pre>pbuilder-karmic build <strong>nom_paquet</strong>-<strong>versió</strong>-<strong>revisió_nova</strong>.dsc</pre>
<p>Si ha funcionat, felicitats! Per acabar, crearem un fitxer de diferències amb els canvis entre la revisió actual de l&#8217;Ubuntu i la nova que hem preparat, tot fent:</p>
<pre>debdiff <strong>nom_paquet</strong>-<strong>versió</strong>-<strong>revisió_original</strong>.dsc <strong>nom_paquet</strong>-<strong>versió</strong>-<strong>revisió_nova</strong>.dsc &gt; <strong>nom_paquet</strong>-<strong>versió</strong>-<strong>revisió_nova</strong>.debdiff</pre>
<p>El fitxer <em>.debdiff</em> l&#8217;obrirem amb un editor de text per comprovar que no s&#8217;hi hagi colat cap canvi que no haguem fet. [Si hi ha alguna cosa que no volem, haurem de desfer el canvi al directori del codi font i tornar a regenerar el paquet font, no s'hi val editar el fitxer <em>.debdiff</em> a mà ja que això segurament l'espatllarà.]</p>
<p><strong>Enviant els canvis a l&#8217;Ubuntu</strong></p>
<p>Un cop estiguem satisfets amb la nostra solució i haguem provat que funciona, adjuntarem el fitxer <em>.debdiff</em> a l&#8217;informe d&#8217;error que hem trobat o creat al <a href="https://launchpad.net/ubuntu">Launchpad</a> i només ens faltarà que un desenvolupador d&#8217;Ubuntu el comprovi i el pugi a l&#8217;Ubuntu. Per a això haurem de mirar en quin dipòsit està el paquet, fent:</p>
<pre>apt-cache madison <strong>nom_paquet</strong></pre>
<p>Si la penúltima paraula és «<em>universe</em>» o «<em>multiverse</em>», subscriure&#8217;m l&#8217;equip «<em>ubuntu-universe-sponsors</em>» a l&#8217;informe d&#8217;error utilitzant l&#8217;opció que trobarem al Launchpad a la dreta; si, en cavi, és «<em>main</em>» o «<em>restricted</em>», subscriure&#8217;m l&#8217;equip «<em>ubuntu-main-sponsors</em>». Ara, tot és qüestió d&#8217;esperar que algú revisi els nostres canvis i els apliqui o bé proposi possibles millores.</p>
<p>Quan els nostres canvis hagin estat acceptats, també els enviarem a Debian, en cas que allà també hi siguin rellevants. Per això simplement enviarem un mail a <em><strong>número_de_l&#8217;informe_d&#8217;error</strong>@bugs.debian.org</em> si ja existeix un informe d&#8217;error, o n&#8217;<a href="http://www.debian.org/Bugs/Reporting">obrirem un de nou</a> si no n&#8217;hi ha.</p>
<p><strong>Conclusió</strong></p>
<p>Si heu llegit tot això, us felicito, ja que realment heu mostrar voluntat. Com he promès al prefaci, els propers dies escriure uns quants apunts més explicant (de forma més breu) com arreglar alguns paquets particulars, tot veient solucions a diferents problemes.</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2009/arreglant-paquets-que-no-compilen-necpp/' rel='bookmark' title='Arreglant paquets que no compilen: necpp'>Arreglant paquets que no compilen: necpp</a> <small>Una mica més tard del que tenia previst, però continuo...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2009/contribuir-a-ubuntu-arreglar-paquets-que-no-compilen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I want a mailing list &amp; forum hybrid</title>
		<link>http://bloc.eurion.net/archives/2009/mailing-list-forum-hybrid/</link>
		<comments>http://bloc.eurion.net/archives/2009/mailing-list-forum-hybrid/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 18:18:44 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[Programari lliure]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=389</guid>
		<description><![CDATA[There are some thoughts which are repeating in my head for years, and I&#8217;ve just decided its time that I write them down. When it comes to non-instantly many-to-many communication, there are to big systems currently in use: forums and mailing lists. What annoys me that much about those is that both systems are actually [...]]]></description>
			<content:encoded><![CDATA[<p>There are some thoughts which are repeating in my head for years, and I&#8217;ve just decided its time that I write them down.</p>
<p>When it comes to non-instantly many-to-many communication, there are to big systems currently in use: forums and mailing lists. What annoys me that much about those is that both systems are actually exactly the same, except for the frontend they use.</p>
<p>Mailing lists send the messages to all users by mail, and allow them to answer again by mail. Additionally, they have a website (archive) where all messages can be checked, but this website is usually pretty awful and doesn&#8217;t allow answering to the messages.</p>
<p>Comparably, forums show all messages -and allow to answer to them- in a website which is excellent for this purpose, but the mail subscription option isn&#8217;t useful at all (often requiring that you open the website to see the content) and doesn&#8217;t allow to answer to the messages directly.</p>
<p>But, let&#8217;s look again at what their key function actually is. <em>Delivering messages</em>. It&#8217;s just, one simple purpose that both systems share. So my point is, <strong>why</strong> isn&#8217;t there a single solution adjusting to both (mail and web) workflows. Why are there only  two exclusive options, which only provide one good interface and a broken attempt at the other one?</p>
<p>I want a system where I can visit a website and  see all messages (also being able to answer to them), and then after five months decide that I don&#8217;t want to visit the website any more and subscribe to it by mail, still getting to read and answer the discussions in the same way but now from my mail client? (And while we are at it, having an option to link several email addresses to the same account, so that I can answer using any of those &#8211; like with Launchpad&#8217;s mailing lists).</p>
<p>In all the years I&#8217;ve been using the Internet, I haven&#8217;t seen a single solution like the one I&#8217;m describing. Sure, there are third-party websites which show discussions from mailing lists in a more readable way, and some even allow answering to them, but it isn&#8217;t quite the same. There is Google Groups, which is quite close at providing both interfaces, but the website isn&#8217;t really like a forum either and it just doesn&#8217;t feel right (also, it&#8217;s proprietary/centralized and not appropriate for usage by, for example, the Debian project).</p>
<p>Am I really asking for that much? I&#8217;ve considered, several times, writing such a system myself, but I just can&#8217;t believe that nobody has thought of it before (or, in case it already exists, that it isn&#8217;t in much more widespread use).</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2009/gnome-shell-window-list/' rel='bookmark' title='Another GNOME Shell post: what do you think about the window list?'>Another GNOME Shell post: what do you think about the window list?</a> <small>It&#8217;s already a few months since my two posts on...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2009/mailing-list-forum-hybrid/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

