<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Paulo Pires - Blog</title>
	<atom:link href="http://ppires.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ppires.wordpress.com</link>
	<description>the blog for technology, music and french fries</description>
	<lastBuildDate>Sat, 07 Jan 2012 05:18:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ppires.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Paulo Pires - Blog</title>
		<link>http://ppires.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ppires.wordpress.com/osd.xml" title="Paulo Pires - Blog" />
	<atom:link rel='hub' href='http://ppires.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Debug android-maven-plugin apps in Eclipse with DDMS</title>
		<link>http://ppires.wordpress.com/2011/11/09/debug-android-maven-plugin-apps-in-eclipse-with-ddms/</link>
		<comments>http://ppires.wordpress.com/2011/11/09/debug-android-maven-plugin-apps-in-eclipse-with-ddms/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 20:28:34 +0000</pubDate>
		<dc:creator>Paulo Pires</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[maven plugin debug ddms logcat adb ubuntu permissions udev rule integration]]></category>

		<guid isPermaLink="false">http://ppires.wordpress.com/?p=406</guid>
		<description><![CDATA[Lately, I&#8217;ve been developing Android applications with Maven support and, while it&#8217;s rather easy to mount a mature development environment with Eclipse, the usage of android-maven-plugin has brought some integration issues when debugging. Usually, I do most of my Maven and debugging stuff in a terminal console. But others will prefer to use Eclipse! And I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=406&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Lately, I&#8217;ve been developing Android applications with Maven support and, while it&#8217;s rather easy to mount a mature development environment with Eclipse, the usage of <em>android-maven-plugin</em> has brought some integration issues when debugging.</p>
<p>Usually, I do most of my Maven and debugging stuff in a terminal console. But others will prefer to use Eclipse! And I can understand why, since its DDMS perspective is so powerful and easy to use.  Here&#8217;s how you can do it:</p>
<ol>
<li><em>mvn clean package</em></li>
<li>Deploy the <em>target/xxx.apk</em> to the device</li>
<li>Open <em>DDMS</em> perspective in Eclipse</li>
<li>Select the process you want to debug/trace</li>
<li>There you go!</li>
</ol>
<div>
<p>From profiling to thread debugging or simply <em>adb logcat</em>, you&#8217;ll have it all!</p>
<p>Don&#8217;t forget to configure permissions for your user to access the device. Ever hard those &#8220;?????&#8221; when issuing <em>adb devices</em> stating you have <strong>no permissions</strong>? Here&#8217;s how you can fix it (in Ubuntu-based distros at least):</p>
<ol>
<li>Run <em>lsusb</em></li>
<li>Check the line for your device, such as <strong>Bus 001 Device 008: ID 0bb4:0cab High Tech Computer Corp.</strong></li>
<li>Edit a new <em>udev</em> rule by executing <em>sudo nano /etc/udev/rules.d/51-android.rules</em> as seen bellow the bullet list</li>
<li>Save file and issue <em>sudo service udev restart</em></li>
</ol>
<blockquote>
<div>SUBSYSTEM==&#8221;usb&#8221;, SYSFS{idVendor}==&#8221;0bb4&#8243;, MODE=&#8221;0666</div>
</blockquote>
<div>Reconnect your device and you&#8217;re done!</div>
</div>
<div>
<div id="attachment_411" class="wp-caption aligncenter" style="width: 610px"><a href="http://ppires.files.wordpress.com/2011/11/igolf_eclipse_ddms_debug.png"><img class="size-full wp-image-411 " title="Debugging running APK in Eclipse DDMS" src="http://ppires.files.wordpress.com/2011/11/igolf_eclipse_ddms_debug.png?w=600&#038;h=389" alt="" width="600" height="389" /></a><p class="wp-caption-text">Debugging running APK in Eclipse DDMS</p></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ppires.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ppires.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ppires.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ppires.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ppires.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ppires.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ppires.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ppires.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ppires.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ppires.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ppires.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ppires.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ppires.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ppires.wordpress.com/406/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=406&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ppires.wordpress.com/2011/11/09/debug-android-maven-plugin-apps-in-eclipse-with-ddms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edfb4650d39cdfbdaddd2a737ebe30c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ppires</media:title>
		</media:content>

		<media:content url="http://ppires.files.wordpress.com/2011/11/igolf_eclipse_ddms_debug.png" medium="image">
			<media:title type="html">Debugging running APK in Eclipse DDMS</media:title>
		</media:content>
	</item>
		<item>
		<title>Xubuntu brought back the happy Linux user in me</title>
		<link>http://ppires.wordpress.com/2011/11/08/xubuntu-brought-back-the-happy-linux-user-in-me/</link>
		<comments>http://ppires.wordpress.com/2011/11/08/xubuntu-brought-back-the-happy-linux-user-in-me/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 17:58:08 +0000</pubDate>
		<dc:creator>Paulo Pires</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[gnome3 xfce xubuntu ubuntu fallback unity]]></category>

		<guid isPermaLink="false">http://ppires.wordpress.com/?p=401</guid>
		<description><![CDATA[I&#8217;m an Ubuntu user for some years now and I always enjoyed the &#8220;easy-mode&#8221; Debian flavor it&#8217;s got. But after delaying my workstation upgrade as much as I could, I knew the day would come that I&#8217;d be forced to move to Gnome 3 or Unity. The day came, and it really sucked! I&#8217;m not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=401&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m an Ubuntu user for some years now and I always enjoyed the &#8220;easy-mode&#8221; Debian flavor it&#8217;s got. But after delaying my workstation upgrade as much as I could, I knew the day would come that I&#8217;d be forced to move to Gnome 3 or Unity. The day came, and it really sucked!<br />
I&#8217;m not going to argue why these new ways of seeing the desktop grew so much disdain in me, but I can assure you I felt quite attracted by the dark side (aka MacOS X) for my daily use and development. But then I heard about <a title="Xubuntu official website" href="http://www.xubuntu.org/" target="_blank">Xubuntu</a>..</p>
<p>Xubuntu is Ubuntu-based and features XFCE, a old friend of mine &#8220;who&#8221; I used to have fun with back in the days when my hardware sucked &#8211; which now is totally not the case, since I&#8217;m relying on a I7 3.4GHz + 16GB DDR3 + OCZ Vertex 3 SSD disk.</p>
<p>And so it was, I downloaded the 64-bit alternate ISO, burned it and after 20 minutes my system was up and running. Boy, did I miss this.. you came a long way XFCE, and you still rock!<br />
Besides lacking some of the integration I was used to in my now-gone-Gnome-days, the simplicity of this window-manager is making me really happy. In case you&#8217;re feeling the same way about Gnome 3 and/or Unity, do yourself a favor and give it a try!</p>
<p>Here&#8217;s some hints you may find useful. I&#8217;ll be updating this list!</p>
<ul>
<li><strong>Two DVI monitors side by side with xrandr</strong></li>
</ul>
<blockquote><p># Dual Monitors configuration on Xubuntu</p>
<p># Monitor Order<br />
xrandr &#8211;output DVI-I-1 &#8211;left-of DVI-I-2</p>
<p>#Tip: to configure it, exec &#8216;xrandr&#8217; on bash to view the options by monitor</p>
<p># Resolutions<br />
xrandr &#8211;output DVI-I-1 &#8211;mode 1680&#215;1050 &#8211;rate 60.0<br />
xrandr &#8211;output DVI-I-2 &#8211;mode 1680&#215;1050 &#8211;rate 60.0</p>
<p># Primary Monitor<br />
xrandr &#8211;output DVI-I-1 &#8211;primary</p></blockquote>
<ul>
<li><strong>Don&#8217;t quit Pidgin when you press the close button</strong></li>
</ul>
<blockquote><p>Don&#8217;t disable <em>libnotify</em> integration plug-in (if it&#8217;s not enabled by default, then enable it). You can however turn-off all options of this plug-in.</p></blockquote>
<ul>
<li><strong>Dropbox</strong><strong> support for Thunar file-manager</strong></li>
</ul>
<blockquote><p>execute <em>sudo apt-get install libthunarx-2-dev</em><br />
and then follow the instructions available <a href="http://softwarebakery.com/maato/thunar-dropbox.html" target="_blank">here</a>.</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ppires.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ppires.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ppires.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ppires.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ppires.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ppires.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ppires.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ppires.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ppires.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ppires.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ppires.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ppires.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ppires.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ppires.wordpress.com/401/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=401&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ppires.wordpress.com/2011/11/08/xubuntu-brought-back-the-happy-linux-user-in-me/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edfb4650d39cdfbdaddd2a737ebe30c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ppires</media:title>
		</media:content>
	</item>
		<item>
		<title>Gerrit + Jenkins in LDAP environment</title>
		<link>http://ppires.wordpress.com/2011/07/14/gerrit-jenkins-in-ldap-environment/</link>
		<comments>http://ppires.wordpress.com/2011/07/14/gerrit-jenkins-in-ldap-environment/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 17:31:34 +0000</pubDate>
		<dc:creator>Paulo Pires</dc:creator>
				<category><![CDATA[Tek]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[code review]]></category>
		<category><![CDATA[gerrit]]></category>
		<category><![CDATA[jenkins]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[trigger]]></category>
		<category><![CDATA[continuous integration]]></category>

		<guid isPermaLink="false">http://ppires.wordpress.com/?p=397</guid>
		<description><![CDATA[Today, I got Gerrit integrated with Jenkins. Even though there&#8217;s good info on the web on how to get this beautiful couple working together, I lack the explanation on how to configure Gerrit SSH for Jenkins usage when Gerrit authenticates its users on a LDAP service. First of all, the Gerrit instance I&#8217;m working on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=397&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today, I got Gerrit integrated with Jenkins. Even though there&#8217;s good info on the web on how to get this beautiful couple working together, I lack the explanation on how to configure Gerrit SSH for Jenkins usage when Gerrit authenticates its users on a LDAP service.</p>
<p>First of all, the Gerrit instance I&#8217;m working on is authenticating against the company LDAP directory. Nothing new here as LDAP users can log-in sucessfully. Now, <strong>the thing is </strong>Gerrit process is not running as an LDAP user, but rather an Unix one (local) and we need a Gerrit user (non-local) with a public SSH key for Jenkins to be able to acess the code review tool.</p>
<p>The confusion was set! How would I authenticate Jenkins without an LDAP user created for this sole purpose?! <a href="http://review.coreboot.org/Documentation/cmd-create-account.html" target="_blank">gerrit create-account</a> is the way to go!</p>
<p>For this command to work, you must have an authenticated user in Gerrit with administrative privileges and public SSH key set.</p>
<p>First, let&#8217;s create a key for the user that Jenkins is going to use:</p>
<pre>ssh-keygen -t rsa -b 2048</pre>
<p>You should now have two new files, a private key and a public key. <strong>Never ever give the private key</strong>!! Imagining your recently created public key file is named <em>id_rsa.pub</em> and that you&#8217;ve got an <em>xpto</em> user configured in Gerrit as part of the group <em>Administrators</em>, let&#8217;s add thevirtual user:</p>
<pre>cat id_rsa.pub | ssh -p 29418 xpto@gerrit.example.com gerrit create-account --ssh-key - jenkins</pre>
<p>It should be OK now! Just install<a href="https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger"> Gerrit Trigger Jenkins plug-in</a> and configure it as described in the documentation. It won&#8217;t take more than two minutes before you&#8217;ve got Gerrit shaking hands with Jenkins <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ppires.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ppires.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ppires.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ppires.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ppires.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ppires.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ppires.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ppires.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ppires.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ppires.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ppires.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ppires.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ppires.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ppires.wordpress.com/397/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=397&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ppires.wordpress.com/2011/07/14/gerrit-jenkins-in-ldap-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edfb4650d39cdfbdaddd2a737ebe30c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ppires</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Gerrit on Glassfish</title>
		<link>http://ppires.wordpress.com/2011/07/13/installing-gerrit-on-glassfish/</link>
		<comments>http://ppires.wordpress.com/2011/07/13/installing-gerrit-on-glassfish/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 22:06:53 +0000</pubDate>
		<dc:creator>Paulo Pires</dc:creator>
				<category><![CDATA[OSS]]></category>
		<category><![CDATA[Tek]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[code review]]></category>
		<category><![CDATA[gerrit]]></category>
		<category><![CDATA[glassfish]]></category>
		<category><![CDATA[qa]]></category>

		<guid isPermaLink="false">http://ppires.wordpress.com/?p=381</guid>
		<description><![CDATA[Yey, I&#8217;m finally back!! This time I&#8217;ll share with you how to get Gerrit deployed on Glassfish application server and MySQL. The pre-requisites are: MySQL up and running and experience creating databases and defining privileges; Glassfish up and running and the experience creating JDBC Datasources and deploying applications, including managing library dependencies for JDBC and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=381&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yey, I&#8217;m finally back!! This time I&#8217;ll share with you how to get <a title="Gerrit" href="http://gerrit.googlecode.com/" target="_blank">Gerrit </a>deployed on Glassfish application server and MySQL.</p>
<p>The pre-requisites are:</p>
<ul>
<li>MySQL up and running and experience creating databases and defining privileges;</li>
<li>Glassfish up and running and the experience creating JDBC Datasources and deploying applications, including managing library dependencies for JDBC and others &#8211; in this case, you&#8217;ll need to provide MySQL JDBC driver and Bouncy Castle crypto API libraries to Gerrit.</li>
</ul>
<p>If you&#8217;re ready, follow me now:</p>
<ol>
<ol>
<li>Create a database for Gerrit
<pre>        mysql -u root -p

        CREATE USER 'gerrit2'@'localhost' IDENTIFIED BY 'secret';
        CREATE DATABASE reviewdb;
        ALTER DATABASE reviewdb charset=latin1;
        GRANT ALL ON reviewdb.* TO 'gerrit2'@'localhost';
        FLUSH PRIVILEGES;</pre>
</li>
<li>Download the latest version of Gerrit. By the time of this writing, it was <strong>2.2.1</strong>.</li>
<li>Initialize Gerrit in standalone mode (for now). Don&#8217;t forget to provide the correct MySQL configuration:
<pre>java -jar gerrit-2.2.1.war init -d gerrit</pre>
</li>
</ol>
</ol>
<p>If all goes well, you should have a new directory named <em>gerrit</em> with everything you need to get Gerrit running. Also, the standalone server (Jetty) should be up. Stop it:</p>
<pre>    gerrit/bin/gerrit.sh stop</pre>
<p>Now, let&#8217;s configure Glassfish datasource. Please, pay attention as this was where I got into problems..</p>
<ol>
<li>Create a <em>JDBC Connection Pool</em> with type<em> javax.sql.DataSource</em> and MySQL as datasource classname.</li>
<li>Enable <em>Ping</em> mode.</li>
<li>Define <em>DatabaseName</em>, <em>User</em>, <em>Password</em>, <em>Server</em> depending on what information you&#8217;ve provided while initializing Gerrit.</li>
<li>Finally and most importantly, <strong>define both <em>URL</em> and <em>Url</em> properties</strong> to something like <em>jdbc:mysql://<strong>localhost</strong>:<strong>3306</strong>/<strong>reviewdb</strong>?autoReconnect=true</em></li>
<li>The parts in<strong><em> italic bold</em></strong> are the ones to change according to your own configuration.</li>
</ol>
<p>Try to <em>ping</em> your datasource to check if it&#8217;s OK. It is? Great! Now, let&#8217;s proceed with the deployment of Gerrit:</p>
<pre>    asadmin deploy --contextroot <strong><em>codereview</em></strong> --name gerrit-2.2.1 gerrit-2.2.1.war</pre>
<p>It should be working now! Point your browser to http://your_host/<strong><em>codereview</em></strong>, <em>et voilá</em> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div id="attachment_388" class="wp-caption aligncenter" style="width: 510px"><img class="size-full wp-image-388" title="Gerrit working on Glassfish application server and on top of MySQL" src="http://ppires.files.wordpress.com/2011/07/gerrit_running.png?w=600" alt="Gerrit working on Glassfish application server and on top of MySQL"   /><p class="wp-caption-text">Gerrit working on Glassfish application server and on top of MySQL</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ppires.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ppires.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ppires.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ppires.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ppires.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ppires.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ppires.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ppires.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ppires.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ppires.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ppires.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ppires.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ppires.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ppires.wordpress.com/381/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=381&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ppires.wordpress.com/2011/07/13/installing-gerrit-on-glassfish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edfb4650d39cdfbdaddd2a737ebe30c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ppires</media:title>
		</media:content>

		<media:content url="http://ppires.files.wordpress.com/2011/07/gerrit_running.png" medium="image">
			<media:title type="html">Gerrit working on Glassfish application server and on top of MySQL</media:title>
		</media:content>
	</item>
		<item>
		<title>JPA 2.0 + Hibernate + Maven</title>
		<link>http://ppires.wordpress.com/2010/07/31/jpa-2-0-hibernate-maven/</link>
		<comments>http://ppires.wordpress.com/2010/07/31/jpa-2-0-hibernate-maven/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 14:03:42 +0000</pubDate>
		<dc:creator>Paulo Pires</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JPA]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Persistence]]></category>
		<category><![CDATA[Tek]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[jpa2.0]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[persistence]]></category>
		<category><![CDATA[pom.xml]]></category>

		<guid isPermaLink="false">http://ppires.wordpress.com/?p=360</guid>
		<description><![CDATA[This is a quick post. Well, more a personal reminder than an actual post. But, I thought it would be interesting for anyone trying to do the same thing I am, which is getting JPA 2.0 support with the latest Hibernate using Maven. To achieve this, just add the following lines to your pom.xml: Then, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=360&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a quick post. Well, more a personal reminder than an actual post. But, I thought it would be interesting for anyone trying to do the same thing I am, which is getting <a href="http://wiki.eclipse.org/Introduction_to_Java_Persistence_API_(ELUG)" target="_blank">JPA 2.0</a> support with the latest <a href="http://hibernate.org" target="_blank">Hibernate</a> using <a href="http://maven.apache.org" target="_blank">Maven</a>.</p>
<p>To achieve this, just add the following lines to your <em>pom.xml</em>:</p>
<p><pre class="brush: xml;">
&lt;repository&gt;
    &lt;id&gt;repository.jboss.org&lt;/id&gt;
    &lt;url&gt;https://repository.jboss.org/nexus/content/groups/public/&lt;/url&gt;
&lt;/repository&gt;
</pre></p>
<p>Then, just use your favorite POM editor and add the <em>org.hibernate</em> dependencies as you see fit.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ppires.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ppires.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ppires.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ppires.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ppires.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ppires.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ppires.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ppires.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ppires.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ppires.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ppires.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ppires.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ppires.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ppires.wordpress.com/360/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=360&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ppires.wordpress.com/2010/07/31/jpa-2-0-hibernate-maven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edfb4650d39cdfbdaddd2a737ebe30c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ppires</media:title>
		</media:content>
	</item>
		<item>
		<title>The short-story of an almost broken USB soundcard</title>
		<link>http://ppires.wordpress.com/2010/04/25/the-short-story-of-an-almost-broken-usb-soundcard/</link>
		<comments>http://ppires.wordpress.com/2010/04/25/the-short-story-of-an-almost-broken-usb-soundcard/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 03:55:18 +0000</pubDate>
		<dc:creator>Paulo Pires</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Tek]]></category>

		<guid isPermaLink="false">http://ppires.wordpress.com/?p=349</guid>
		<description><![CDATA[This is no news to the ones that know me, but I&#8217;m a dance music addicted. And while I&#8217;ve been dj&#8217;ing for some years now, only recently have I decided to explore the world of music production and live performance. Some of my tools include the Akai APC40 MIDI controller, an M-Audio Axiom 49 keyboard [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=349&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is no news to the ones that know me, but I&#8217;m a dance music addicted. And while I&#8217;ve been dj&#8217;ing for some years now, only recently have I decided to explore the world of music production and live performance. Some of my tools include the <a href="http://www.akaipro.com/apc40" target="_blank">Akai APC40</a> MIDI controller, an <a href="http://www.m-audio.com/products/en_us/Axiom49.html" target="_blank">M-Audio Axiom 49</a> keyboard and an <a href="http://www.m-audio.com/products/en_us/FastTrackPro.html" target="_blank">M-Audio FastTrack Pro</a> USB soundcard. The latter features four unbalanced outputs (RCA) and two balanced ones (TRS).</p>
<div id="attachment_350" class="wp-caption aligncenter" style="width: 310px"><a href="http://ppires.files.wordpress.com/2010/04/fasttrackpro_front.jpg"><img class="size-medium wp-image-350" title="Front" src="http://ppires.files.wordpress.com/2010/04/fasttrackpro_front.jpg?w=300&#038;h=144" alt="" width="300" height="144" /></a><p class="wp-caption-text">Front</p></div>
<div id="attachment_351" class="wp-caption aligncenter" style="width: 310px"><a href="http://ppires.files.wordpress.com/2010/04/fasttrackpro_back.jpg"><img class="size-medium wp-image-351" title="Back" src="http://ppires.files.wordpress.com/2010/04/fasttrackpro_back.jpg?w=300&#038;h=128" alt="" width="300" height="128" /></a><p class="wp-caption-text">Back</p></div>
<p>On my previous setup, I used to have <a href="http://www.ableton.com/live-8" target="_blank">Ableton Live 8</a> configured to use only the first two unbalanced outputs as I didn&#8217;t need the other two for what I was doing. But now, I want to have the ability to cue some clips before sending them to the wild, as I&#8217;ll be working with multiple external audio sources (i.e., turntable).</p>
<p>First things first! You need to install the official driver and activate the third and fourth unbalanced outputs. On MacOs X you&#8217;ll have a specific preference pane for that available at System Preferences. Then, you&#8217;ll have to configure the soundcard in Ableton Live! Don&#8217;t forget to activate the third and fourth outputs.</p>
<div id="attachment_353" class="wp-caption aligncenter" style="width: 265px"><a href="http://ppires.files.wordpress.com/2010/04/picture-1.png"><img class="size-medium wp-image-353" title="Ableton Live 8 soundcard configuration" src="http://ppires.files.wordpress.com/2010/04/picture-1.png?w=255&#038;h=300" alt="" width="255" height="300" /></a><p class="wp-caption-text">Ableton Live 8 soundcard configuration</p></div>
<p>I&#8217;m not going to explain how to enable cueing in Ableton Live. Instead, I&#8217;ll describe what was bothering me with my current setup: the third and fourth outputs were only sending noise.. very noisy noise!! After several try-outs (changing cables, reinstalling the driver, reconfiguring Ableton Live, testing in a different Macbook, etc.) I started to believe that my soundcard was faulty. Happily, I was wrong..</p>
<p>After much reading on the web about issues with this particular model, I found out that some guys had trouble with IRQ sharing. And then it stroke me! I&#8217;m using one of those cheap USB hubs for all my USB gear (five pieces at the moment) as my Macbook provides only two USB ports. The soundcard was connected to it. So, I simply connected the soundcard directly into the Macbook and &#8220;it just works! ™&#8221; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Even that the solution is not much of rocket science, perhaps this post will help some noob like me in a similar situation.</p>
<p>Cheers <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ppires.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ppires.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ppires.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ppires.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ppires.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ppires.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ppires.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ppires.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ppires.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ppires.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ppires.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ppires.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ppires.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ppires.wordpress.com/349/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=349&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ppires.wordpress.com/2010/04/25/the-short-story-of-an-almost-broken-usb-soundcard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edfb4650d39cdfbdaddd2a737ebe30c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ppires</media:title>
		</media:content>

		<media:content url="http://ppires.files.wordpress.com/2010/04/fasttrackpro_front.jpg?w=300" medium="image">
			<media:title type="html">Front</media:title>
		</media:content>

		<media:content url="http://ppires.files.wordpress.com/2010/04/fasttrackpro_back.jpg?w=300" medium="image">
			<media:title type="html">Back</media:title>
		</media:content>

		<media:content url="http://ppires.files.wordpress.com/2010/04/picture-1.png?w=255" medium="image">
			<media:title type="html">Ableton Live 8 soundcard configuration</media:title>
		</media:content>
	</item>
		<item>
		<title>My new best-friend, HTC Hero!</title>
		<link>http://ppires.wordpress.com/2009/09/13/my-new-best-friend-htc-hero/</link>
		<comments>http://ppires.wordpress.com/2009/09/13/my-new-best-friend-htc-hero/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 15:18:40 +0000</pubDate>
		<dc:creator>Paulo Pires</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Local Shop]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Tek]]></category>

		<guid isPermaLink="false">http://ppires.wordpress.com/?p=342</guid>
		<description><![CDATA[Yey!!! Hello fellow geeks. Yeah, it&#8217;s true, I have one thanks to my buddy Nuno Tavares from NET7, who so gently &#8220;offered&#8221; it to me (kudos to him!). It&#8217;s only been two days since I got my hands on it, but I&#8217;m totally in love for this black beauty. You probably remember my post about [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=342&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yey!!!</p>
<p>Hello fellow geeks.</p>
<p>Yeah, it&#8217;s true, I have one thanks to my buddy Nuno Tavares from <a href="http://www.net7.pt" target="_blank">NET7</a>, who so gently &#8220;offered&#8221; it to me (kudos to him!). It&#8217;s only been two days since I got my hands on it, but I&#8217;m totally in love for this black beauty.</p>
<div id="attachment_343" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.htc.com/www/product/hero/overview.html"><img class="size-medium wp-image-343" title="htc-hero" src="http://ppires.files.wordpress.com/2009/09/htc-hero.jpeg?w=300&#038;h=300" alt="htc-hero" width="300" height="300" /></a><p class="wp-caption-text">HTC Hero Black</p></div>
<p style="text-align:left;">You probably remember my post about the <a href="http://ppires.wordpress.com/2008/10/22/nokia-e71-vs-iphone/" target="_blank">E71 vs IPhone</a> and how happy I am (was) with that Nokia device, but after touching one of this, and having so many applications at hand, and that astonishingly cute user interface, I&#8217;m completely surrended! <strong>This Android-powered phone is a killer!</strong></p>
<p style="text-align:left;">It comes with no carrier-blocking stuff, but still, as any respectful geek out there, the first thing I did was to investigate how could I make the experience better. I read that the HTC Sense UI was somewhat slow, and that an upgrade, which is expected in October, would solve that. But, curiously there is already <a href="http://android.modaco.com/content/htc-hero-hero-modaco-com/292018/08-09-2-2-the-modaco-custom-rom-is-here-2-versions-based-on-the-new-update/" target="_blank">a &#8220;preview&#8221; (of that update) in the wild</a>!! The instructions are easy and are as following:</p>
<ol>
<li>Root your phone <span style="text-align:center; display: block;"><a href="http://ppires.wordpress.com/2009/09/13/my-new-best-friend-htc-hero/"><img src="http://img.youtube.com/vi/neE5zA687hE/2.jpg" alt="" /></a></span></li>
<li>Download one of the two ROM images available in the previous link to the phone&#8217;s SD card</li>
<li>The ROM comes zipped. Change its name to <em>update.zip</em></li>
<li>Boot your phone into the recovery image (press Home key and turn your phone on)</li>
<li>Do a &#8220;nandroid backup&#8221;</li>
<li>Wipe your phone/reset it to factory settings (it&#8217;s a new device, I didn&#8217;t lose a thing!)</li>
<li>Select &#8220;apply sdcard:update.zip&#8221;</li>
<li>Wait and then restart when this option is available (after upgrading)</li>
</ol>
<p>The first boot will take some time, but it&#8217;s worth it.</p>
<p>Now, the phone I got is prepared to Poland/Romania/Czech Republic, and I don&#8217;t know why the update didn&#8217;t remove this and enabled me to select Portuguese (word suggestion, dictionary, etc.). The English language, though, is available and it was OK for me. Still, one good thing about this update is that there is this <em>Custom Locale</em> application who allowed me to set the locale to PT_pt, which changed the language to portuguese. There is no word suggestion or dictionary, though (and until there are, these functionalities are disabled!).</p>
<p>Also, for the portuguese reading this, I&#8217;d like to publicize one, and perhaps the only portuguese Android community, <a href="http://www.androidpt.com" target="_blank">AndroidPT</a>.</p>
<p>Enjoy! ..I surelly am <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ppires.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ppires.wordpress.com/342/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ppires.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ppires.wordpress.com/342/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ppires.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ppires.wordpress.com/342/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ppires.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ppires.wordpress.com/342/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ppires.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ppires.wordpress.com/342/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ppires.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ppires.wordpress.com/342/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ppires.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ppires.wordpress.com/342/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=342&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ppires.wordpress.com/2009/09/13/my-new-best-friend-htc-hero/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edfb4650d39cdfbdaddd2a737ebe30c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ppires</media:title>
		</media:content>

		<media:content url="http://ppires.files.wordpress.com/2009/09/htc-hero.jpeg?w=300" medium="image">
			<media:title type="html">htc-hero</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Ubuntu 9.04 into Alix2d3</title>
		<link>http://ppires.wordpress.com/2009/08/29/installing-ubuntu-9-04-into-alix2d3/</link>
		<comments>http://ppires.wordpress.com/2009/08/29/installing-ubuntu-9-04-into-alix2d3/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 16:44:54 +0000</pubDate>
		<dc:creator>Paulo Pires</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Tek]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://ppires.wordpress.com/?p=331</guid>
		<description><![CDATA[Hi fellow geeks! For sometime now, I&#8217;ve been looking forward to acquire an embedded system that would become my home router and testbed for some networking stuff I&#8217;m working on. The requisites are the following: Noiseless, cause I want to sleep with it right next to me Very small x86 architecture, cause I want it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=331&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi fellow geeks!</p>
<p>For sometime now, I&#8217;ve been looking forward to acquire an embedded system that would become my home router and testbed for some networking stuff I&#8217;m working on. The requisites are the following:</p>
<ul>
<li>Noiseless, cause I want to sleep with it right next to me</li>
<li>Very small</li>
<li>x86 architecture, cause I want it as a testbed for my networking applications and don&#8217;t want to fiddle with architecture vs compiler/libraries issues</li>
<li>Two or more Ethernet devices</li>
<li>USB and mini-PCI are pluses</li>
<li>Cheap!!</li>
</ul>
<p>Thanks to my friend <a href="http://hng.av.it.pt/~jpbarraca/home" target="_blank">João Barraca</a>, I went for a PC Engines Alix <a href="http://www.pcengines.ch/alix2d3.htm" target="_blank">ALIX2D3</a>. And must I say, it&#8217;s great!! And only 104Euro + 26Euro (customs taxes).  I&#8217;m not showing the unboxing process, but here&#8217;s a picture of the board.</p>
<p style="text-align:left;">
<div id="attachment_332" class="wp-caption aligncenter" style="width: 510px"><a href="http://ppires.files.wordpress.com/2009/08/alix2d3.jpg"><img class="size-full wp-image-332" title="alix2d3" src="http://ppires.files.wordpress.com/2009/08/alix2d3.jpg?w=600" alt="ALIX2D3 board"   /></a><p class="wp-caption-text">ALIX2D3 board</p></div>
<p>I did some things wrong though, on the rush of getting a new toy (don&#8217;t you geeks know this feeling?!). First PC Engines is based in Switzerland, and therefor non-EU, and therefor customs taxes and a long wait for the delivery. Then I ordered the board and a black case only, so at arrival, I missed a DC, a Compact Flash card and a null-modem serial cable. I went to one of those big electronics market and bought the following:</p>
<ul>
<li>Vivanco universal DC 7v-24v (I recommend setting it for 18v, depending on the number of devices you&#8217;ll be using, such as USB and mini-PCI stuff). <span style="text-decoration:underline;">Oh and be careful with the polarity of the board</span> which you can find by looking down the FB18, and using the <span style="text-decoration:underline;">correct connector size, 2.1mm</span>.</li>
<li>Sandisk CF Ultra II 4GB;</li>
<li>Null-modem serial cable (female-to-female);</li>
<li>Serial-to-USB adapter.</li>
</ul>
<p>As I said, I also ordered a black case and I had an issue while assembling the board into it. The serial port hex nuts wouldn&#8217;t fit the case! Well, just remove them, insert the board, and attach them again. In the end, this is the result:</p>
<div id="attachment_334" class="wp-caption aligncenter" style="width: 510px"><a href="http://ppires.files.wordpress.com/2009/08/box-open.jpg"><img class="size-full wp-image-334" title="box-open" src="http://ppires.files.wordpress.com/2009/08/box-open.jpg?w=600" alt="Board in the case"   /></a><p class="wp-caption-text">Board in the case</p></div>
<div id="attachment_335" class="wp-caption aligncenter" style="width: 510px"><a href="http://ppires.files.wordpress.com/2009/08/box-closed-front.jpg"><img class="size-full wp-image-335" title="box-closed-front" src="http://ppires.files.wordpress.com/2009/08/box-closed-front.jpg?w=600" alt="Front of &quot;the machine&quot;"   /></a><p class="wp-caption-text">Front of &quot;the machine&quot;</p></div>
<div id="attachment_336" class="wp-caption aligncenter" style="width: 510px"><a href="http://ppires.files.wordpress.com/2009/08/box-closed-e71.jpg"><img class="size-full wp-image-336" title="box-closed-e71" src="http://ppires.files.wordpress.com/2009/08/box-closed-e71.jpg?w=600" alt="Size compared to the E71"   /></a><p class="wp-caption-text">Size compared to the E71</p></div>
<p>I recommend you install everything you need and test it before you put the board into the case, so you can avoid repeating the screw/unscrew process.</p>
<p>Now, let&#8217;s head for the installation.</p>
<ol>
<li>First, grab the alternate installer for the latest Ubuntu i386 (<a href="http://mirrors.nfsi.pt/ubuntu-releases/9.04/ubuntu-9.04-alternate-i386.iso">9.04 iso</a>). Burn it.</li>
<li>Plug your CF card into a USB card-reader and punch it in your PC/laptop.</li>
<li>Boot from the CD and press F4. Select text-only system installation.</li>
<li>Install Ubuntu into your CF. I recommend setting only one partition and not using swap as you don&#8217;t want to &#8220;burn&#8221; lifetime from your CF.</li>
<li>Don&#8217;t install <em>grub</em> into the MBR of the first disk, but on the MBR of the CF.</li>
<li>Reboot.</li>
<li>Boot into your CF Ubuntu system and log-in.</li>
<li>Install an ssh server. <em>sudo apt-get install openssh-server</em></li>
<li>Edit your <em>/etc/network/interfaces</em> and configure your network devices as you see fit.</li>
<li>As you&#8217;re using your PC/laptop for the installation process, <em>udev</em> has persisted the currently existing network devices. You must remove all entries before putting the CF into the ALIX2D3 board, so that all Ethernet devices there are correctly named (<em>eth0, eth1, eth2</em>). Just issue <em>echo &#8220;&#8221; &gt; /etc/udev/rules.d/70-persistent-net.rules</em></li>
<li>In order to protect the CF once more, edit your <em>/etc/fstab</em> and change <em>relatime</em> to <em>noatime</em> in the root line (/). Also, add the following lines:</li>
</ol>
<p>none /tmp tmpfs nr_inodes=200k,mode=01777 0 0<br />
none /var/tmp tmpfs nr_inodes=200k,mode=01777 0 0</p>
<p>Power off. Now, put the CF into the board and have fun through ssh. Enjoy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ppires.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ppires.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ppires.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ppires.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ppires.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ppires.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ppires.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ppires.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ppires.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ppires.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ppires.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ppires.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ppires.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ppires.wordpress.com/331/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=331&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ppires.wordpress.com/2009/08/29/installing-ubuntu-9-04-into-alix2d3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edfb4650d39cdfbdaddd2a737ebe30c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ppires</media:title>
		</media:content>

		<media:content url="http://ppires.files.wordpress.com/2009/08/alix2d3.jpg" medium="image">
			<media:title type="html">alix2d3</media:title>
		</media:content>

		<media:content url="http://ppires.files.wordpress.com/2009/08/box-open.jpg" medium="image">
			<media:title type="html">box-open</media:title>
		</media:content>

		<media:content url="http://ppires.files.wordpress.com/2009/08/box-closed-front.jpg" medium="image">
			<media:title type="html">box-closed-front</media:title>
		</media:content>

		<media:content url="http://ppires.files.wordpress.com/2009/08/box-closed-e71.jpg" medium="image">
			<media:title type="html">box-closed-e71</media:title>
		</media:content>
	</item>
		<item>
		<title>Long time no see..</title>
		<link>http://ppires.wordpress.com/2009/05/07/long-time-no-see/</link>
		<comments>http://ppires.wordpress.com/2009/05/07/long-time-no-see/#comments</comments>
		<pubDate>Thu, 07 May 2009 14:15:35 +0000</pubDate>
		<dc:creator>Paulo Pires</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Tek]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://ppires.wordpress.com/?p=319</guid>
		<description><![CDATA[Hi fellow geeks, Been 2 months since my last post, I know. I have been quite busy at work! And I guess it&#8217;s time I talk a little bit of what I&#8217;m doing since November. Well, for a start I left Nokia Siemens Networks for PDM&#38;FC (I know the website is old, and not trying [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=319&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi fellow geeks,</p>
<p>Been 2 months since my last post, I know. I have been quite busy at work! And I guess it&#8217;s time I talk a little bit of what I&#8217;m doing since November.</p>
<p>Well, for a start I left Nokia Siemens Networks for <a href="http://www.pdmfc.com" target="_blank">PDM&amp;FC</a> (I know the website is old, and not trying to excuse the inexcusable, let&#8217;s say that people there are actually busy working on real stuff). Anyway, leaving a corporate for an <a href="http://en.wikipedia.org/wiki/Small_and_medium_enterprises" target="_blank">SME</a> was a refreshing decision! I didn&#8217;t feel productive anymore, and that was something I couldn&#8217;t stand. People were great, though <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Arriving at the new company was nothing as I had in mind. In the initial couple days, it was hard to find someone who could spare some time pointing me what to do and where to start. Soon, I realized everyone was so very busy working on their projects. Nonetheless, I was kindly received by my new coworkers, and I was eager to start showing what I&#8217;m able to do.</p>
<p>I started with some minor tasks like writing some Python + Gstreamer code for video-transcoding stuff; then some PHP <em>spaghetti</em>; ending with architectural design discussions for a scalable web service-oriented platform. But the true thing I was recruited for was yet to come, the EU-funded project (<a href="http://cordis.europa.eu/fp7/" target="_blank">FP7</a>) <a href="http://www.ict-hurricane.eu" target="_blank">HURRICANE</a>.</p>
<p>HURRICANE aims at delivering a framework to enable and execute seamless handover between heterogeneous radio access networks like 802.11, 802.16 aka WiMAX, DVB-H and 3GPP (UMTS). Let me throw some major concepts so you can better understand what I&#8217;m doing..</p>
<ul>
<li><strong>Handover</strong> &#8211; process of transferring an ongoing call or data session from one channel connected to the core network to another (see <a href="http://en.wikipedia.org/wiki/Handoff" target="_blank"><em>Handoff</em></a>);</li>
<li><strong>IEEE 802.21</strong> &#8211; aka <a href="http://en.wikipedia.org/wiki/IEEE_802.21" target="_blank">Media-Independent Handover</a> (MIH) Service, this emerging standard is the base for this project, comprehending the facilitation of handover analysis procedures. The resulting decision process and execution is out-of-scope of the standard.</li>
</ul>
<p>And this is what HURRICANE proposes: to provide an implementation of the .21 standard, some handover-decision/execution modules on top of it, and also the lower-layer access to the identified RATs (Radio Access Technologies).</p>
<p><a href="http://ppires.files.wordpress.com/2009/05/mih.jpg"><img class="aligncenter size-full wp-image-324" title="802.21 - Media-Independent Handover" src="http://ppires.files.wordpress.com/2009/05/mih.jpg?w=600" alt="802.21 - Media-Independent Handover"   /></a></p>
<p>My main function on this project is to implement the proposed framework. Starting on the .21 generic service, the MIH Function (MIHF) and going through several stages of the link-layer (I hope to skip the real part on this), we&#8217;ll end by having, I hope, a real seamless handover between 802.11 and 802.16 &#8211; there are some more scenarios defined, but due to hardware access limitations, I don&#8217;t believe they&#8217;ll be fully deployed &#8211; powered by HURRICANE. Also, I&#8217;m the responsible to study (done!) and implement a <a href="http://en.wikipedia.org/wiki/Proxy_Mobile_IP" target="_blank">PMIPv6</a> module to IP-mobility on top of this architecture.</p>
<p>A lot of work has been done, but there&#8217;s much more to do! I&#8217;m thrilled to see what we&#8217;ll achieve by the end of this year. In the meanwhile, I&#8217;ll be posting about casual stuff I shall be working on <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Cheers to you all, and cya soon!</p>
<p>Yours truly</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ppires.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ppires.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ppires.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ppires.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ppires.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ppires.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ppires.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ppires.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ppires.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ppires.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ppires.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ppires.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ppires.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ppires.wordpress.com/319/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=319&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ppires.wordpress.com/2009/05/07/long-time-no-see/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edfb4650d39cdfbdaddd2a737ebe30c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ppires</media:title>
		</media:content>

		<media:content url="http://ppires.files.wordpress.com/2009/05/mih.jpg" medium="image">
			<media:title type="html">802.21 - Media-Independent Handover</media:title>
		</media:content>
	</item>
		<item>
		<title>My MIPv6 testbed</title>
		<link>http://ppires.wordpress.com/2009/02/26/my-mipv6-testbed/</link>
		<comments>http://ppires.wordpress.com/2009/02/26/my-mipv6-testbed/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 06:49:10 +0000</pubDate>
		<dc:creator>Paulo Pires</dc:creator>
				<category><![CDATA[IPv6]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Tek]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://ppires.wordpress.com/?p=312</guid>
		<description><![CDATA[Oh yeah, just got &#8220;my&#8221; MIPv6 testbed up and running. It&#8217;s a work task actually, but some material is mine like the Asus EeePC and the Nokia N810. Well, just wanted to share with the world how wonderful it is :-p Enjoy you geeks!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=312&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Oh yeah, just got &#8220;my&#8221; MIPv6 testbed up and running. It&#8217;s a work task actually, but some material is mine like the Asus EeePC and the Nokia N810. Well, just wanted to share with the world how wonderful it is :-p</p>
<div id="attachment_313" class="wp-caption aligncenter" style="width: 310px"><a href="http://ppires.files.wordpress.com/2009/02/mipv6_testbed_identified.jpg"><img class="size-medium wp-image-313" title="MIPv6 Testbed" src="http://ppires.files.wordpress.com/2009/02/mipv6_testbed_identified.jpg?w=300&#038;h=225" alt="Super-cool MIPv6 testbed" width="300" height="225" /></a><p class="wp-caption-text">Super-cool MIPv6 testbed</p></div>
<p>Enjoy you geeks!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ppires.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ppires.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ppires.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ppires.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ppires.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ppires.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ppires.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ppires.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ppires.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ppires.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ppires.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ppires.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ppires.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ppires.wordpress.com/312/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ppires.wordpress.com&amp;blog=503974&amp;post=312&amp;subd=ppires&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ppires.wordpress.com/2009/02/26/my-mipv6-testbed/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edfb4650d39cdfbdaddd2a737ebe30c6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ppires</media:title>
		</media:content>

		<media:content url="http://ppires.files.wordpress.com/2009/02/mipv6_testbed_identified.jpg?w=300" medium="image">
			<media:title type="html">MIPv6 Testbed</media:title>
		</media:content>
	</item>
	</channel>
</rss>
