<?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>João Morais &#187; Papers</title>
	<atom:link href="http://www.blog.joaomorais.com/category/literature/papers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.joaomorais.com</link>
	<description>Blog about web development, high technology, new projects and development tools.</description>
	<lastBuildDate>Sun, 21 Mar 2010 20:03:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Asus Eee PC 1201N &#8211; Ram Upgrade</title>
		<link>http://www.blog.joaomorais.com/asus-eee-pc-1201n-ram-upgrade/</link>
		<comments>http://www.blog.joaomorais.com/asus-eee-pc-1201n-ram-upgrade/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 18:40:12 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Papers]]></category>
		<category><![CDATA[1201N]]></category>
		<category><![CDATA[1GB]]></category>
		<category><![CDATA[2GB]]></category>
		<category><![CDATA[4GB]]></category>
		<category><![CDATA[800mhz]]></category>
		<category><![CDATA[ASint]]></category>
		<category><![CDATA[Asus]]></category>
		<category><![CDATA[CL6]]></category>
		<category><![CDATA[DDR2]]></category>
		<category><![CDATA[DDRII]]></category>
		<category><![CDATA[Kingston]]></category>
		<category><![CDATA[KVR800D2S6/2G]]></category>
		<category><![CDATA[Memory Ram]]></category>
		<category><![CDATA[NON-ECC]]></category>
		<category><![CDATA[PC2-6400]]></category>
		<category><![CDATA[SODIMM]]></category>
		<category><![CDATA[Upgrade]]></category>

		<guid isPermaLink="false">http://www.blog.joaomorais.com/?p=762</guid>
		<description><![CDATA[Since I bought this netbook that I&#8217;ve been looking forward to upgrade it&#8217;s ram. As you may know, this netbook has two slots, which by default are fulfilled with 2GB (1024+1024) or 3GB (1024+2048), unfortunately in Portugal only the first combination is being sold.
After reading a couple of reviews of other people that wanted to perform the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/joaomorais/4450621640/"><img class="alignright" title="Asus Eee PC 1201N Silver" src="http://farm3.static.flickr.com/2720/4450621640_39fd7fe123_m.jpg" alt="" width="126" height="168" /></a>Since I bought this netbook that I&#8217;ve been looking forward to upgrade it&#8217;s ram. As you may know, this netbook has two slots, which by default are fulfilled with 2GB (1024+1024) or 3GB (1024+2048), unfortunately in Portugal only the first combination is being sold.</p>
<p>After reading a couple of reviews of other people that wanted to perform the same upgrade as me, from 2GB into 4GB, I’ve finally decided to bet on Kingston, and I bought the <a title="KVR800D2S6K2/2G description at Kingston's website" href="http://www.ec.kingston.com/ecom/configurator_new/partsinfo.asp?root=europe&amp;LinkBack=http://www.valueram.com/europe&amp;ktcpartno=KVR800D2S6K2/2G">KVR800D2S6K2/2G</a> modules.</p>
<p>Now you may be wondering why I didn’t bought 8GB instead of 4GB since the netbook supports them, the reason is plain simple: in my humble opinion they are way too expensive!</p>
<p><span id="more-762"></span></p>
<p>Here is a list of <a title="Kingston Memory Upgrades for Asus Eee PC 1201N" href="http://www.ec.kingston.com/ecom/configurator_new/modelsinfo.asp?id=1&amp;SysID=60029&amp;mfr=ASUS/ASmobile&amp;model=Eee+PC+1201N&amp;search_type=&amp;root=europe&amp;LinkBack=http://www.valueram.com/europe&amp;Sys=60029-ASUS/ASmobile-Eee+PC+1201N&amp;distributor=0&amp;submit1=Search">Kingston memory upgrades for Asus Eee PC 1201N</a>.</p>
<p>While performing the upgrade I decided to take a couple of photos to illustrate the process.</p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/joaomorais/4448557232/"><img class=" alignnone" title="System Monitor" src="http://farm5.static.flickr.com/4057/4448557232_68cbf11c26_m.jpg" alt="System Monitor" width="240" height="151" /></a> <a href="http://www.flickr.com/photos/joaomorais/4448557230/"><img title="System Monitor - Resources" src="http://farm5.static.flickr.com/4012/4448557230_ddba43df83_m.jpg" alt="" width="240" height="151" /></a></p>
<p style="text-align: center;">First I took a couple of screenshots of Gnome&#8217;s system monitor before the upgrade.</p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/joaomorais/4448557230/"></a><a href="http://www.flickr.com/photos/joaomorais/4448550008/"><img class="   aligncenter" title="Kingston Memory Ram" src="http://farm5.static.flickr.com/4052/4448550008_8272bedb89_m.jpg" alt="" width="240" height="160" /></a></p>
<p style="text-align: center;">The two brand new Kingston ram modules that I bought. As you can see in the picture their specifications are: <a title="KVR800D2S6K2/2G description at Kingston's website" href="http://www.ec.kingston.com/ecom/configurator_new/partsinfo.asp?root=europe&amp;LinkBack=http://www.valueram.com/europe&amp;ktcpartno=KVR800D2S6K2/2G">KVR800D2S6K2/2G</a> 2GB PC2-6400 CL6 NON-ECC 200-Pin SODIMM.</p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/joaomorais/4448550014/"><img class=" alignnone" title="Asus Eee PC 1201N Silver - Backside" src="http://farm5.static.flickr.com/4010/4448550014_040d094b96_m.jpg" alt="" width="240" height="160" /> </a><a href="http://www.flickr.com/photos/joaomorais/4448550024/"><img title="Asus Eee PC 1201N Silver - Memory Compartment" src="http://farm5.static.flickr.com/4066/4448550024_50168f7fb2_m.jpg" alt="" width="160" height="240" /></a></p>
<p style="text-align: center;">The backside of the netbook and a closer look at the memory compartment.</p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/joaomorais/4448550030/"><img class="alignnone" title="Asus Eee PC 1201N Silver - Memory Compartment" src="http://farm3.static.flickr.com/2737/4448550030_01ee34fab5_m.jpg" alt="" width="240" height="160" /> </a><a href="http://www.flickr.com/photos/joaomorais/4448550032/"><img title="Asus Eee PC 1201N Silver - Memory Compartment" src="http://farm3.static.flickr.com/2725/4448550032_9cdcb5060f_m.jpg" alt="" width="160" height="240" /></a></p>
<p style="text-align: center;">Another photo of it&#8217;s backside, after removing the screws from memory compartment, we can see the default memory ram modules: two dimms of 1GB each.</p>
<p><a href="http://www.flickr.com/photos/joaomorais/4448550032/"> </a></p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/joaomorais/4448550036/"><img class="alignnone" title="Comparing Memory Ram" src="http://farm3.static.flickr.com/2802/4448550036_736e3c087f_m.jpg" alt="" width="240" height="160" /> </a></p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/joaomorais/4448550036/"></a>In this photo we can see a comparison of both memory ram modules. At the top we have one of the modules that is installed by default in this netbook, an ASint DDRII 1GB-800, and the new one at the bottom.</p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/joaomorais/4450660398/"><img class="alignnone" src="http://farm5.static.flickr.com/4030/4450660398_19c52d308b_m.jpg" alt="" width="240" height="180" /></a> <a href="http://www.flickr.com/photos/joaomorais/4450660432/"><img class="alignnone" title="Asus Eee PC 1201N Silver - Memory Compartment" src="http://farm5.static.flickr.com/4044/4450660432_40eb19669d_m.jpg" alt="" width="180" height="240" /> </a></p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/joaomorais/4450660432/"></a>Another photo of it&#8217;s backside after installing the new memory modules.</p>
<p style="text-align: center;">
<p style="text-align: center;"><a href="http://www.flickr.com/photos/joaomorais/4448557238/"><img class="alignnone" title="System Monitor" src="http://farm5.static.flickr.com/4005/4448557238_994e1a72da_m.jpg" alt="" width="240" height="151" /> </a><a href="http://www.flickr.com/photos/joaomorais/4448557234/"><img title="System Monitor Resources" src="http://farm3.static.flickr.com/2793/4448557234_a6b125e1d8_m.jpg" alt="" width="240" height="151" /></a></p>
<p style="text-align: center;">To finish the sequence, here is Gnome&#8217;s system monitor screenshots after the upgrade.</p>
<p style="text-align: left;">Because I&#8217;m currently using a 64bits version of <a title="Ubuntu Home Page" href="http://www.ubuntu.com/">Ubuntu</a> I didn&#8217;t found any kind of problem related with the recognition of the new modules, but from what I&#8217;ve read, in 32bits versions there may be problems which require a couple of updates.</p>
<p style="text-align: left;">As you can see performing the upgrade is a really simple process that takes only a couple of minutes. If after this, you are still with afraid of screwing your netbook <a title="How to Upgrade your Laptop Memory" href="http://www.youtube.com/watch?v=yirNejnzbEM">here</a> is a video that shows you, once again, how simple it is to upgrade your netbook memory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.joaomorais.com/asus-eee-pc-1201n-ram-upgrade/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to setup Asus Eee PC 1201N Wireless Card on Ubuntu 9.10?</title>
		<link>http://www.blog.joaomorais.com/how-to-setup-asus-eee-pc-1201n-wireless-card-on-ubuntu-9-10/</link>
		<comments>http://www.blog.joaomorais.com/how-to-setup-asus-eee-pc-1201n-wireless-card-on-ubuntu-9-10/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 22:49:51 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Papers]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[1201N]]></category>
		<category><![CDATA[8171]]></category>
		<category><![CDATA[Asus]]></category>
		<category><![CDATA[Eee]]></category>
		<category><![CDATA[Realtek]]></category>
		<category><![CDATA[rtl8191se]]></category>
		<category><![CDATA[rtl8192se]]></category>
		<category><![CDATA[Wireless]]></category>

		<guid isPermaLink="false">http://www.blog.joaomorais.com/?p=731</guid>
		<description><![CDATA[The first thing you need to know it&#8217;s that although the PCI output shows a Realtek 8171 wireless adapter, in reality it is a Realtek RTL8191SE!
With this in mind you only need to download this file which was referenced in this thread on post #134 and execute the commands below. Make sure to remove the NDISWrapper driver before doing [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-737" title="Wireless" src="http://www.blog.joaomorais.com/wp-content/uploads/wireless.jpg" alt="" width="144" height="143" />The first thing you need to know it&#8217;s that although the PCI output shows a Realtek 8171 wireless adapter, in reality it is a Realtek RTL8191SE!</p>
<p>With this in mind you only need to download this <a title="rtl8192se driver" href="http://launchpadlibrarian.net/366886...11.2009.tar.gz">file</a> which was referenced in this <a title="Realtek RTL8192SE WLAN Card Fails to work on Medion Akoya E1312 Netbook" href="https://bugs.launchpad.net/ubuntu/+s...6?comments=all">thread</a> on <a title="Realtek RTL8192SE WLAN Card Fails to work on Medion Akoya E1312 Netbook - Post #134" href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/401126/comments/134">post #134</a> and execute the commands below. Make sure to remove the NDISWrapper driver before doing this if you have already installed and set it up.</p>
<p><span id="more-731"></span>After download, unpack driver:</p>
<pre class="brush:shell">$ tar xvf rtl8192se_linux_2.6.0010.1211.2009.tar.gz
$ cd rtl8192se_linux_2.6.0010.1211.2009
$ sudo make</pre>
<p>Then you need to edit two files:</p>
<pre class="brush:shell">$ sed -i 's/install: modules/install:/g' ./ieee80211/Makefile
$ sed -i 's/install: modules/install:/g' ./HAL/rtl8192/Makefile</pre>
<p>Finally install and load:</p>
<pre class="brush:shell">$ sudo make install
$ sudo echo "r8192se_pci" &gt;&gt; /etc/modules
$ sudo modprobe r8192se_pci</pre>
<p>Your wireless should now be working.</p>
<p>Credits go out to <a title="CompMas2 profile at ubuntuforums.org" href="http://ubuntuforums.org/member.php?u=1009073">CompMas2</a> of ubuntuforums.org for the <a title="rtl8192se - Wireless Problems on 1201N" href="http://ubuntuforums.org/showthread.php?t=1394281">quick answer</a> and to <a title="david woo profile at lauchpad.net" href="https://launchpad.net/~wooshwu">david woo</a> of lauchpad.net for making this driver available.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.joaomorais.com/how-to-setup-asus-eee-pc-1201n-wireless-card-on-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>How to use NTLM authentication with NuSOAP?</title>
		<link>http://www.blog.joaomorais.com/how-to-use-ntlm-authentication-with-nusoap/</link>
		<comments>http://www.blog.joaomorais.com/how-to-use-ntlm-authentication-with-nusoap/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 22:46:22 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Papers]]></category>
		<category><![CDATA[SugarCRM]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[cURL]]></category>
		<category><![CDATA[NTLM]]></category>
		<category><![CDATA[NuSOAP]]></category>
		<category><![CDATA[SOAP]]></category>
		<category><![CDATA[Webservices]]></category>

		<guid isPermaLink="false">http://blog.joaomorais.com/?p=573</guid>
		<description><![CDATA[For a couple of weeks I&#8217;ve been implementing Webservices to feed resources on a SugarCRM project that I&#8217;m working on. As you may know SugarCRM provides NuSOAP, which is a SOAP Toolkit for PHP that brings some extra functionalities to SOAP implementation provided by PHP.
Today I had to use NTLM authentication method, unfortunately it isn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>For a couple of weeks I&#8217;ve been implementing <a title="Webservices on Wikipedia" href="http://en.wikipedia.org/wiki/Webservices">Webservices</a> to feed resources on a <a title="SugarCRM - Commercial Open Source CRM" href="http://www.sugarcrm.com">SugarCRM</a> project that I&#8217;m working on. As you may know <a title="SugarCRM - Commercial Open Source CRM" href="http://www.sugarcrm.com/">SugarCRM</a> provides <a title="NuSOAP - SOAP Toolkit for PHP" href="http://sourceforge.net/projects/nusoap/">NuSOAP</a>, which is a <a title="SOAP on Wikipedia" href="http://en.wikipedia.org/wiki/SOAP">SOAP</a> Toolkit for PHP that brings some extra functionalities to <a title="PHP Soap Implementation" href="http://www.php.net/soap">SOAP implementation</a> provided by PHP.</p>
<p>Today I had to use NTLM authentication method, unfortunately it isn&#8217;t supported by <a title="NuSOAP - SOAP Toolkit for PHP" href="http://sourceforge.net/projects/nusoap/">NuSOAP</a> yet, but I&#8217;ve found that if you combine <a title="Client URL Request Library" href="http://www.php.net/curl">cURL</a> with <a title="NuSOAP - SOAP Toolkit for PHP" href="http://sourceforge.net/projects/nusoap/">NuSOAP</a> you can get through  without a problem.</p>
<p><span id="more-573"></span>So here is the solution I came up with:</p>
<p>First of all I&#8217;ve upgraded <a title="NuSOAP - SOAP Toolkit for PHP" href="http://sourceforge.net/projects/nusoap/">NuSOAP</a> to it&#8217;s latest version which is 0.7.3 (the one provided by <a title="SugarCRM - Commercial Open Source CRM" href="http://www.sugarcrm.com/">SugarCRM</a> didn&#8217;t supported <a title="Client URL Request Library" href="http://www.php.net/curl">cURL</a> yet), then I wrote something similar to the code below.</p>
<pre class="brush:php">&lt;?php

$wsdl = 'http://project/file.php?wsdl';

$client = new nusoap_client($wsdl, true);
$client-&gt;setCredentials('', '', 'ntlm');
$client-&gt;setUseCurl(true);
$client-&gt;useHTTPPersistentConnection();
$client-&gt;setCurlOption(CURLOPT_USERPWD, 'auth_username:auth_password');

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.joaomorais.com/how-to-use-ntlm-authentication-with-nusoap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Chrome Web Browser Installation on Linux</title>
		<link>http://www.blog.joaomorais.com/google-chrome-web-browser-installation-on-linux/</link>
		<comments>http://www.blog.joaomorais.com/google-chrome-web-browser-installation-on-linux/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 21:14:47 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Papers]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Xubuntu]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Chromium]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://blog.joaomorais.com/?p=399</guid>
		<description><![CDATA[Tired of the slowness of Mozilla Firefox and curious with the acclaimed performance of Google Chrome (or Chromium, if you prefer), today I&#8217;ve decided to give it a try.
Although it is still an alpha version it already allows you to perform the regular navigation activities that you are used to with an incredible speed.
It&#8217;s layout [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-thumbnail wp-image-401" title="Google Chrome (Chromium)" src="http://blog.joaomorais.com/wp-content/uploads/google-chrome_256-150x150.png" alt="Google Chromium" width="150" height="150" />Tired of the slowness of <a title="Mozilla Firefox" href="http://www.mozilla.com/firefox/">Mozilla Firefox</a> and curious with the acclaimed performance of <a title="Google Chrome (Chromium)" href="http://code.google.com/chromium/">Google Chrome</a> (or <a title="Google Chrome (Chromium)" href="http://code.google.com/chromium/">Chromium</a>, if you prefer), today I&#8217;ve decided to give it a try.</p>
<p>Although it is still an alpha version it already allows you to perform the regular navigation activities that you are used to with an incredible speed.</p>
<p>It&#8217;s layout is also a bit different of what we are used to, in my opinion it is great, <a title="KISS principle in Wikipedia" href="http://en.wikipedia.org/wiki/KISS_principle">KISS principle</a> all the way.  I also like the new functionalities like the task manager which allows you to take control over the used memory with each tab/window and the browser itself.</p>
<p><span id="more-399"></span>With all this in mind I expect a great browser to arise from <a title="Google" href="http://www.google.com">Google</a> in the next months. Below are the steps that I needed to perform to install <a title="Google Chrome (Chromium)" href="http://code.google.com/chromium/">Chromium</a> on <a title="Xubuntu" href="http://www.xubuntu.org/">Xubuntu</a> 8.10 (Intrepid).</p>
<p>First of all you need to edit the /etc/apt/sources.list file:</p>
<pre class="brush:shell">$ sudo gedit /etc/apt/sources.list</pre>
<p>Add the following two lines at the bottom of the file:</p>
<pre class="brush:shell">deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main</pre>
<p>Now save/close the file and add the GPG key using the following command:</p>
<pre class="brush:shell">--rev-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5</pre>
<p>Next we will update the source list and install the browser:</p>
<pre class="brush:shell">$ sudo apt-get update
$ sudo apt-get install chromium-browser</pre>
<p>If you want you can also enable flash support by copying (or linking) your previously installed flash library into browser plugins directory:</p>
<pre class="brush:shell">$ sudo cp /usr/lib/flashplugin-installer/libflashplayer.so /usr/lib/chromium-browser/plugins</pre>
<p>And you are done, next time you run it you will only need to specify the plugins usage with following command:</p>
<pre class="brush:shell">$ chromium-browser --enable-plugins</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.joaomorais.com/google-chrome-web-browser-installation-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to translate administrator menu items in Joomla! 1.5.6?</title>
		<link>http://www.blog.joaomorais.com/how-to-translate-administrator-menu-items-in-joomla-1-5-6/</link>
		<comments>http://www.blog.joaomorais.com/how-to-translate-administrator-menu-items-in-joomla-1-5-6/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 11:49:03 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Content Management Systems]]></category>
		<category><![CDATA[Papers]]></category>
		<category><![CDATA[1.5.6]]></category>
		<category><![CDATA[Administrator]]></category>
		<category><![CDATA[Items]]></category>
		<category><![CDATA[Menu]]></category>

		<guid isPermaLink="false">http://solidlocker.webhs.org/wordpress/?p=157</guid>
		<description><![CDATA[That’s a question that I’ve been doing to myself in the past two days.
Unfortunately there aren’t much informations about this subject, and from what I’ve read there is a lot of people with the same doubts I had.
Because I haven’t found any documentation on this subject I’ve decided to write the my own tutorial, hope [...]]]></description>
			<content:encoded><![CDATA[<p>That’s a question that I’ve been doing to myself in the past two days.</p>
<p>Unfortunately there aren’t much informations about this subject, and from what I’ve read there is a lot of people with the same doubts I had.</p>
<p>Because I haven’t found any documentation on this subject I’ve decided to write the my own tutorial, hope it helps you.</p>
<p><span id="more-157"></span></p>
<p>Assuming that you already know how to create a <a title="Joomla!" href="http://joomla.org/">Joomla!</a> component setup XML file, I’ll write here how you can translate your administrator menu items using language packages. That way I will not talk about website front-end since I’m only focusing on administration menus.</p>
<p>I will also assume that you have a directory structure similar to the one below:</p>
<pre class="brush:plain">com_mycomponent
com_mycomponent/mycomponent.xml
com_mycomponent/admin
com_mycomponent/admin/index.html
com_mycomponent/admin/language
com_mycomponent/admin/language/index.html
com_mycomponent/admin/language/en-GB.com_mycomponent.ini
com_mycomponent/admin/language/en-GB.com_mycomponent.menu.ini
com_mycomponent/admin/language/pt-PT.com_mycomponent.ini
com_mycomponent/admin/language/pt-PT.com_mycomponent.menu.ini</pre>
<p>1. Open XML setup file.</p>
<pre class="brush:shell">$ geany com_mycomponent/mycompoment.xml</pre>
<p>2. Open administration tag and start to write component administration menu, our component’s menu will be composed by a title (COM_MYCOMPONENT) and two child links (LINK-1 and LINK-2). Note that all &amp; must be escaped to &amp;amp; for the file to be valid XML and be parsed by the installer.</p>
<pre class="brush:plain">&lt;administration&gt;
&lt;menu&gt;COM_MYCOMPONENT&lt;/menu&gt;
&lt;submenu&gt;
&lt;menu link=”option=com_mycomponent&amp;amp;controller=c1“&gt;LINK-1&lt;/menu&gt;
&lt;menu link=”option=com_mycomponent&amp;amp;controller=c2“&gt;LINK-2&lt;/menu&gt;
&lt;/submenu&gt;</pre>
<p>Now that we&#8217;ve finished the component administration menu, we will load language package files that will translate your component administration menu itens.<br />
For this example we will have two different translations, English and Portuguese.<br />
Although we are writing four files, two pairs for each language, the *.menu.ini are the ones that matter for this tutorial, the other ones are used to translate other texts that you will use in your component.</p>
<pre class="brush:plain">&lt;languages folder=”admin/language”&gt;
&lt;language tag=”en-GB”&gt;en-GB.com_mycomponent.ini&lt;/language&gt;
&lt;language tag=”en-GB”&gt;en-GB.com_mycomponent.menu.ini&lt;/language&gt;
&lt;language tag=”pt-PT”&gt;pt-PT.com_mycomponent.ini&lt;/language&gt;
&lt;language tag=”pt-PT”&gt;pt-PT.com_mycomponent.menu.ini&lt;/language&gt;
&lt;/languages&gt;
&lt;/administration&gt;</pre>
<p>End of component administration supported languages and close administration tag.</p>
<p>3. Edit the English package file and write the translations for the items you’ve just created.</p>
<pre class="brush:shell">$ geany com_mycomponent/admin/language/en-GB.com_mycomponent.menu.ini</pre>
<pre class="brush:plain">COM_MYCOMPONENT=My Component
COM_MYCOMPONENT.LINK-1=Link number one
COM_MYCOMPONENT.LINK-2=Link number two</pre>
<p>4. Repeat the step #3 for the Portuguese package file.</p>
<pre class="brush:shell">$ geany com_mycomponent/admin/language/pt-PT.com_mycomponent.menu.ini</pre>
<pre class="brush:plain">COM_MYCOMPONENT=O meu Componente
COM_MYCOMPONENT.LINK-1=Ligação número 1
COM_MYCOMPONENT.LINK-2=Ligação número 2</pre>
<p>Note : All ini files need to be saved as UTF-8.</p>
<p>With this four steps you are able to translate your component administrator menu items, although it is a simple process, unfortunately there isn’t much documentation on this subject, and the one that exists is a bit poor and doesn’t explain all the steps.</p>
<p>To complete what I’ve wrote in here you can also take a look at <a title="Translating  entries on the Components menu" href="http://docs.joomla.org/Tutorial:Translating_entries_on_the_Components_menu">this</a> tutorial that talks about this subject, and you may also take a look at <a title="Tutorials about Components" href="http://www.joomladevuser.com/tutorials/components">this one</a> that covers the steps needed to follow while developing a component.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.joaomorais.com/how-to-translate-administrator-menu-items-in-joomla-1-5-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL bug related with natural number order fix</title>
		<link>http://www.blog.joaomorais.com/mysql-bug-related-with-natural-number-order-fix/</link>
		<comments>http://www.blog.joaomorais.com/mysql-bug-related-with-natural-number-order-fix/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 10:11:21 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Papers]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[Number]]></category>
		<category><![CDATA[Order]]></category>

		<guid isPermaLink="false">http://solidlocker.webhs.org/wordpress/?p=161</guid>
		<description><![CDATA[It seems that this is a known bug but I only noticed it yesterday.
Imagine you have a field named price and it&#8217;s type is VARCHAR (it doesn&#8217;t matter why it&#8217;s not INT or FLOAT) and you want to use ORDER BY clause so you can list table rows ordered by price value.
It won&#8217;t work, since [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that this is a known bug but I only noticed it yesterday.</p>
<p>Imagine you have a field named price and it&#8217;s type is VARCHAR (it doesn&#8217;t matter why it&#8217;s not INT or FLOAT) and you want to use ORDER BY clause so you can list table rows ordered by price value.</p>
<p>It won&#8217;t work, since the prices will be listed alphabetically, you may read here how to fix this issue.</p>
<p><span id="more-161"></span>If you have a table labeled products, a field labeled price (typed as VARCHAR) and the following values: 1, 2, 3, 7, 8, 53, 47, 32, 99 and 327.</p>
<p>And you perform a query similar to the one below:</p>
<pre class="brush:sql">SELECT price FROM products ORDER BY price;</pre>
<p>The result will be:</p>
<pre class="brush:plain">1, 2, 3, 32, 327,47, 53, 7, 8, 99</pre>
<p>As you can see the product prices are ordered alphabetically to fix this you should add + 0 to the query (see example below):</p>
<pre class="brush:sql">SELECT price FROM products ORDER BY price + 0;</pre>
<p>The result will be:</p>
<pre class="brush:plain">1, 2, 3, 7, 8, 32, 47, 53, 99, 327</pre>
<p>Problem solved, now your rows will be sorted by price correctly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.joaomorais.com/mysql-bug-related-with-natural-number-order-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add new levels to Pingus?</title>
		<link>http://www.blog.joaomorais.com/how-to-add-new-levels-to-pingus/</link>
		<comments>http://www.blog.joaomorais.com/how-to-add-new-levels-to-pingus/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 09:28:01 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Papers]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Pingus]]></category>

		<guid isPermaLink="false">http://solidlocker.webhs.org/wordpress/?p=153</guid>
		<description><![CDATA[Last week I was looking for games developed with ClanLib and I found this one. For those of you who don&#8217;t know what Pingus is all about check it&#8217;s entry at Wikipedia, it reminds me of Lemmings.
Actually I&#8217;m not a games guy, but from time to time I like to play some classic games (they&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I was looking for games developed with <a title="ClanLib SDK" href="http://www.clanlib.org/">ClanLib</a> and I found this one. For those of you who don&#8217;t know what <a title="Pingus Homepage" href="http://pingus.seul.org/">Pingus</a> is all about check it&#8217;s entry at <a title="Pingus at Wikipedia" href="http://en.wikipedia.org/wiki/Pingus">Wikipedia</a>, it reminds me of <a title="Lemmings at Wikipedia" href="http://en.wikipedia.org/wiki/Lemmings">Lemmings</a>.</p>
<p>Actually I&#8217;m not a games guy, but from time to time I like to play some classic games (they&#8217;re my favorites), and this one fits in this category, it is a very simple game with good story and good graphics.</p>
<p>At this time I finished the &#8220;Tutorial Island&#8221; (you&#8217;ll know what that is after you play the game) and unfortunately that is the end of the game.</p>
<p>Suddenly I got the feeling &#8220;Only this? No more levels? I want more&#8230;&#8221;, and I did a couple of searches and found some how to add new levels to the game.</p>
<p><span id="more-153"></span>Follow the steps below:</p>
<p>1. Download the &#8220;<em>pingus level hacks</em>&#8221; file.</p>
<p style="padding-left: 30px;"><span style="color: #0000ff;">$ wget http://blog.joaomorais.com/public/pingus.tar.gz</span></p>
<p>2. Uncompress it.</p>
<p style="padding-left: 30px;"><span style="color: #0000ff;">$ tar xvf pingus.tar.gz</span></p>
<p>3. Open it with your text editor.</p>
<p style="padding-left: 30px;"><span style="color: #0000ff;">$ gedit pingus</span></p>
<p>4. Replace  <em>PINGUS_DIR</em> with your default Pingus levels folder.</p>
<p>5. Edit your <em>Applications&gt;Games</em> menu and edit the game shortcut properties and change it&#8217;s path to the one you placed your file.</p>
<p style="padding-left: 30px;"><span style="color: #0000ff;">$ sh /path/to/your/pingus/file;</span></p>
<p>When you launch this file from your games menu, you will be given a directory listing of all the additional levels in your computer. You should select one to play it, or hit &#8220;<em>Cancel</em>&#8221; to start the game normally.</p>
<p>Note: This great tips were taken from <a title="Ubuntu Forums" href="http://ubuntuforums.org/">ubuntuforums.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.joaomorais.com/how-to-add-new-levels-to-pingus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
