<?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"
	>

<channel>
	<title>Alessio Treglia</title>
	<atom:link href="http://en.alessiotreglia.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://en.alessiotreglia.com</link>
	<description>everybody lies</description>
	<pubDate>Tue, 14 Oct 2008 13:49:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
			<item>
		<title>New project: Installation Report Generator</title>
		<link>http://en.alessiotreglia.com/articles/new-project-installation-report-generator/</link>
		<comments>http://en.alessiotreglia.com/articles/new-project-installation-report-generator/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 13:25:20 +0000</pubDate>
		<dc:creator>quadrispro</dc:creator>
		
		<category><![CDATA[GTK+]]></category>

		<category><![CDATA[Installation Report Generator]]></category>

		<category><![CDATA[Planet Ubuntu]]></category>

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

		<category><![CDATA[Wiki and documentation]]></category>

		<guid isPermaLink="false">http://en.alessiotreglia.com/?p=14</guid>
		<description><![CDATA[That&#8217;s a screenshot:

This application, written in Python + GTK, collect informations about user&#8217;s hardware and software configuration, then compile an installation report according with the notebook page template of Ubuntu-it&#8217;s wiki.
For installation instructions and other informations about the project, please read this.
]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s a screenshot:</p>
<p style="text-align: center;"><a href="http://images.alessiotreglia.com/pool/irg-screenshot-01.png" rel="lightbox[14]"><img class="aligncenter" title="Yes, I know, welcome message could be better.." src="http://images.alessiotreglia.com/pool/irg-screenshot-01.png" alt="" width="474" height="493" /></a></p>
<p>This application, written in Python + GTK, collect informations about user&#8217;s hardware and software configuration, then compile an installation report according with the <a title="Notebook page template" href="http://wiki.ubuntu-it.org/NotebookModello">notebook page template</a> of Ubuntu-it&#8217;s wiki.</p>
<p>For installation instructions and other informations about the project, please read <a href="http://en.alessiotreglia.com/installation-report-generator">this</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://en.alessiotreglia.com/articles/new-project-installation-report-generator/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Realtek&#8217;s modules, new version has been released</title>
		<link>http://en.alessiotreglia.com/articles/realteks-modules-new-version-has-been-released/</link>
		<comments>http://en.alessiotreglia.com/articles/realteks-modules-new-version-has-been-released/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 16:54:49 +0000</pubDate>
		<dc:creator>quadrispro</dc:creator>
		
		<category><![CDATA[Bugs and issues]]></category>

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

		<category><![CDATA[Howtos and docs]]></category>

		<category><![CDATA[Kernel and modules]]></category>

		<category><![CDATA[Planet Ubuntu]]></category>

		<guid isPermaLink="false">http://en.alessiotreglia.com/?p=8</guid>
		<description><![CDATA[If you read my previous article about r8169 module but it wasn&#8217;t the best solution for your Realtek ethernet adapter, now it&#8217;s the time to be happy!  
Realtek has released new version of r81* modules and now we&#8217;ll proceed to compile and install the right module we need, but please note that I have [...]]]></description>
			<content:encoded><![CDATA[<p>If you read <a title="How to compile r8168 and r8101 modules for Realtek ethernet adapters" href="http://en.alessiotreglia.com/articles/how-to-compile-r8168-and-r8101-modules-for-realtek-ethernet-adapters/">my previous article</a> about <strong>r8169</strong> module but it wasn&#8217;t the best solution for your Realtek ethernet adapter, now it&#8217;s the time to be happy! <img src='http://en.alessiotreglia.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Realtek has released new version of <strong>r81*</strong> modules and now we&#8217;ll proceed to compile and install the right module we need, but please note that I have a RTL8101E PCI Express Fast Ethernet controller, so I tested this procedure on <strong>Ubuntu 8.04</strong> «<strong>Hardy Heron</strong>» only with <strong>r8101</strong> module.</p>
<p><span id="more-8"></span></p>
<p>We need to install <em>build-essential</em> and kernel headers to compile the sources:</p>
<pre name="code" class="python">

sudo apt-get install build-essential linux-headers-`uname -r`
</pre>
<p>Now download in <strong>Home</strong> dir the driver (<a title="Realtek's r8101 kernel module" href="http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&amp;PNid=14&amp;PFid=7&amp;Level=5&amp;Conn=4&amp;DownTypeID=3&amp;GetDown=false">r8101</a> or <a title="Realtek's r8168 kernel module" href="http://122.146.118.42/downloads/downloadsView.aspx?Langid=1&amp;PNid=13&amp;PFid=5&amp;Level=5&amp;Conn=4&amp;DownTypeID=3&amp;GetDown=false">r8168</a>) and unzip it:</p>
<pre name="code" class="python">

tar xvf downloaded_archive.tar.bz2
cd downloaded_archive
</pre>
<p>To compile and install the module type:</p>
<pre name="code" class="python">

sudo -E make clean modules
sudo make install
sudo depmod -a
</pre>
<p>In order to avoid that <strong>r8169</strong> will be loaded at the boot time, we need to edit <em>/etc/modprobe.d/blacklist-network</em> (it could be necessary to create it) and add this line:</p>
<pre name="code" class="python">

blacklist r8169
</pre>
<p>Finally, update the initial ramdisk typing this:</p>
<pre name="code" class="python">

sudo update-initramfs -u
</pre>
<p>You can see that this way doesn&#8217;t need any patch to get a working module, this update should be the right solution for a several number of issues which users reported me (hardware incompatibilities, system freezes&#8230;). In case of problems, please leave a comment, I&#8217;ll reply soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://en.alessiotreglia.com/articles/realteks-modules-new-version-has-been-released/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to compile r8168 and r8101 modules for Realtek ethernet adapters</title>
		<link>http://en.alessiotreglia.com/articles/how-to-compile-r8168-and-r8101-modules-for-realtek-ethernet-adapters/</link>
		<comments>http://en.alessiotreglia.com/articles/how-to-compile-r8168-and-r8101-modules-for-realtek-ethernet-adapters/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 10:17:58 +0000</pubDate>
		<dc:creator>quadrispro</dc:creator>
		
		<category><![CDATA[Bugs and issues]]></category>

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

		<category><![CDATA[Howtos and docs]]></category>

		<category><![CDATA[Kernel and modules]]></category>

		<category><![CDATA[Planet Ubuntu]]></category>

		<guid isPermaLink="false">http://en.alessiotreglia.com/?p=6</guid>
		<description><![CDATA[r8169 module has a lot of bugs and it doesn&#8217;t work well with a large number of Realtek&#8217;s adapters, so, a few days ago, I posted a patch for the Realtek r8101 module, which supports kernel 2.6.23 but not the 2.6.24, newest kernel in Ubuntu 8.04 «Hardy Heron».
This howto could be a solution for a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>r8169</strong> module has a lot of bugs and it doesn&#8217;t work well with a large number of Realtek&#8217;s adapters, so, a few days ago, I posted a patch for the Realtek <strong>r8101</strong> module, which supports kernel 2.6.23 but not the 2.6.24, newest kernel in <strong>Ubuntu 8.04</strong> «<strong>Hardy Heron</strong>».</p>
<p>This <em>howto</em> could be a solution for a large number of ethernet adapters issues.</p>
<p>The first step is downloading the right driver (<a title="Realtek's r8101 kernel module" href="http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&amp;PNid=14&amp;PFid=7&amp;Level=5&amp;Conn=4&amp;DownTypeID=3&amp;GetDown=false">r8101</a> or <a title="Realtek's r8168 kernel module" href="http://122.146.118.42/downloads/downloadsView.aspx?Langid=1&amp;PNid=13&amp;PFid=5&amp;Level=5&amp;Conn=4&amp;DownTypeID=3&amp;GetDown=false">r8168</a>) for the adapter:</p>
<ul>
<li><strong>r8168</strong> supports RTL8111B, RTL8168B, RTL8111, RTL8168 and RTL8111C;</li>
<li><strong>r8102</strong> supports RTL8100E, RTL8101E and RTL8102E-GR.</li>
</ul>
<p><span id="more-6"></span></p>
<p><span style="text-decoration: underline;">Don&#8217;t try to compile the module now</span>, it will not work, we need to apply a patch in order to make it working with Hardy&#8217;s kernel</p>
<p>Dowload in <strong>Home</strong> dir the <a title="r8168 patch for Hardy" href="http://ubuntuforums.org/attachment.php?attachmentid=66030&amp;d=1208224861">patch for r8168</a> module or <a title="r8101 patch for Hardy" href="http://www.alessiotreglia.com/wp-content/uploads/r8101-1.007.00.hardy.diff.txt">that for r8101</a>, open a terminal and type these instructions to extract the <em>tarball</em> (I think it&#8217;s unnecessary, but <strong>filenames and paths could change, in according with the driver version</strong>):</p>
<pre name="code" class="python">

cd ~/
tar -xvf r8101-1.007.00.tar.bz2
cd r8101-1.007.00/src
</pre>
<p>Now apply the patch to the <strong>r8168</strong> sources dir:</p>
<pre name="code" class="python">

patch &lt; ~/r8168-8.005.00.hardy.diff.txt
</pre>
<p>Or, if you need <strong>r8101</strong> driver, type this:</p>
<pre name="code" class="python">

patch &lt; ~/r8101-1.007.00.hardy.diff.txt
</pre>
<p>Finally, compile and install the module:</p>
<pre name="code" class="python">

cd ..
make clean modules
sudo make install
sudo depmod -a
</pre>
<p>To avoiding <strong>r8169</strong>&#8217;s loading at boot, create and open a new file, <em>/etc/modprobe.d/blacklist-network</em>:</p>
<pre name="code" class="python">

sudo nano /etc/modprobe.d/blacklist-network
</pre>
<p>And add this line:</p>
<pre name="code" class="python">

blacklist r8169
</pre>
<p>Finally, update the initial ramdisk:</p>
<pre name="code" class="python">

sudo update-initramfs -u
</pre>
<p>At the next boot, your ethernet adapter will work really fine <img src='http://en.alessiotreglia.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://en.alessiotreglia.com/articles/how-to-compile-r8168-and-r8101-modules-for-realtek-ethernet-adapters/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A new macro for the Italian wiki</title>
		<link>http://en.alessiotreglia.com/articles/a-new-macro-for-the-italian-wiki/</link>
		<comments>http://en.alessiotreglia.com/articles/a-new-macro-for-the-italian-wiki/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 17:12:16 +0000</pubDate>
		<dc:creator>quadrispro</dc:creator>
		
		<category><![CDATA[Planet Ubuntu]]></category>

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

		<category><![CDATA[Wiki and documentation]]></category>

		<guid isPermaLink="false">http://en.alessiotreglia.com/?p=5</guid>
		<description><![CDATA[This Stephan Hermann&#8217;s article shows a simple and useful macro, which gets a Launchpad bug&#8217;s id and returns a link to its bugtracker page.
So, I had an idea: why don&#8217;t generalize it and make it compatible with other projects bugtrackers?
Ok, let&#8217;s start analyzing the code:



from MoinMoin import config, wikiutil

projects = {
    &#34;ubuntu&#34; [...]]]></description>
			<content:encoded><![CDATA[<p><a title="What you can learn when you setup infrastructure" href="http://www.sourcecode.de/content/what-you-can-learn-when-you-setup-infrastructure" target="_blank">This Stephan Hermann&#8217;s article</a> shows a simple and useful macro, which gets a Launchpad bug&#8217;s id and returns a link to its bugtracker page.</p>
<p>So, I had an idea: why don&#8217;t generalize it and make it compatible with other projects bugtrackers?</p>
<p>Ok, let&#8217;s start analyzing the code:</p>
<p><span id="more-5"></span></p>
<pre name="code" class="python">

from MoinMoin import config, wikiutil

projects = {
    &quot;ubuntu&quot;    : &quot;https://bugs.launchpad.net/ubuntu/+bug/%d&quot;,
    &quot;debian&quot;	: &quot;http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%d&quot;,
    &quot;gnome&quot;     : &quot;http://bugzilla.gnome.org/show_bug.cgi?id=%d&quot;,
    &quot;kde&quot;       : &quot;http://bugs.kde.org/show_bug.cgi?id=%d&quot;,
    &quot;xfce&quot;      : &quot;http://bugzilla.xfce.org/show_bug.cgi?id=%d&quot;
    }

projects_emblems = {
    &quot;ubuntu&quot;    : &quot;https://launchpadlibrarian.net/9608570/ubuntu_emblem.png&quot;,
    &quot;debian&quot;	: &quot;http://www.debian.org/favicon.ico&quot;,
    &quot;gnome&quot;     : &quot;https://launchpadlibrarian.net/11396521/gnome.png&quot;,
    &quot;kde&quot;       : &quot;https://launchpadlibrarian.net/7101115/klogo-official-crystal-14.png&quot;,
    &quot;xfce&quot;      : &quot;https://launchpadlibrarian.net/4040580/mouse.png&quot;
    }

def NoProjectSelectedException(Exception):
    &quot;&quot;&quot;
    The macro raises an instance of this exception
    when the argument doesn&#039;t contain any project
    valid name.
    &quot;&quot;&quot;
    def __init__(self, message):
        &quot;&quot;&quot;
        Default __init__ method.
        &quot;&quot;&quot;
        Exception.__init__(self, message)

def args_to_dict(args):
    &quot;&quot;&quot;
    This method converts a string in a dictionary.
    It uses project&#039;s name (if valid) as key, and
    a list of bug ids as value.
    For example:

    The call:

    args_to_dict(&quot;gnome 3 4 6 ubuntu 1 9 6 kde 7 xfce&quot;)

    returns:

    {&#039;kde&#039;: [7], &#039;xfce&#039;: [], &#039;gnome&#039;: [3, 4, 6], &#039;ubuntu&#039;: [1, 9, 6]}
    &quot;&quot;&quot;
    args_dict = dict()
    project_selected = None
    for i in projects.keys():
        args_dict[i] = list()
    if args:
        args_list = args.split()
        for cur in args_list:
            if cur in projects.keys():
                project_selected = cur
            elif project_selected != None:
                try:
                    args_dict[project_selected].append(int(cur))
                except ValueError:
                    raise ValueError, u&quot;Carattere non valido, i bug devono essere indicati con numeri interi: %s&quot;
            else:
                raise NoProjectSelectedException, u&quot;Nessun progetto selezionato per i bug elencati: %s&quot;
    return args_dict

def execute(macro,args):
    &quot;&quot;&quot;
    Execute method. It formats and returns
    the result.
    &quot;&quot;&quot;
    request=macro.request
    formatter=macro.formatter
    result=&quot;&quot;
    try:
        args_dict = args_to_dict(args)
    except ValueError, e:
        raise ValueError(e.message % args)
    except NoProjectSelectedException, e:
        raise NoProjectSelectedException(e.message % args)
    for i in args_dict.keys(): # i = current project
        for j in args_dict[i]: # j = current bug id
            result += u&#039;&lt;img src=&quot;%s&quot; /&gt;&#039; % projects_emblems[i]
            # result+=&#039;&lt;img src=&quot;https://launchpadlibrarian.net/7094128/launchpad-icon.png&quot; /&gt; &#039;
            # result+=formatter.url(on=1,url=&quot;http://launchpad.net/bugs/%s&quot; % i)
            result+=formatter.url(on=1,url=projects[i] % j)
            result+=u&quot;#%d&quot; % j
            result+=formatter.url(on=0)
            result+=&quot; &quot;
    return result
</pre>
<p>Just like all wiki macros, it gets a string and returns a formatted output, in according with a specific model: input string contains projects&#8217; names and lists of related bugs&#8217; ids, then the output will be an HTML line containing the project emblem, followed by bugtracker links.</p>
<p>The correct syntax is:</p>
<blockquote><p>[[Bug(project1 bug_id_1 project2 bug_id_1 bug_id_2 project3 bug_id_1 bug_id_2 bug_id_3)]]</p></blockquote>
<p>Isn&#8217;t it easy? There aren&#8217;t separators, you need to remember that bugs ids refer to the first previous project (the ids order isn&#8217;t important). In case of error, depending by its kind, one of two exceptions will raise.</p>
<p>If you would have an example, open an <a href="http://wiki.ubuntu-it.org">Ubuntu-It wiki</a> page in text mode and insert this:</p>
<pre name="code" class="python">

Bug segnalati: [[Bug(ubuntu 68 3 5 gnome 21 kde 9 xfce 8 debian 76)]]
</pre>
<p>That&#8217;s the result of the previous example:</p>
<p style="text-align: center;"><a href="http://www.alessiotreglia.com/wp-content/bug-macro.png" rel="lightbox[5]"><img class="alignnone size-full wp-image-167 aligncenter" title="bug-macro" src="http://www.alessiotreglia.com/wp-content/bug-macro.png" alt="A list of reported bugs" width="362" height="73" /></a></p>
<p>That&#8217;s all!</p>
<p>One more thing: I would bring to your attention the <strong>Ubuntu Italian Documentation Team</strong> <a href="https://code.launchpad.net/~ubuntu-it-wiki" target="_blank">bazaar branch</a>, where you can find the source code of all our <a href="http://moinmo.in">MoinMoin</a> mods.</p>
]]></content:encoded>
			<wfw:commentRss>http://en.alessiotreglia.com/articles/a-new-macro-for-the-italian-wiki/feed/</wfw:commentRss>
		</item>
		<item>
		<title>python -c &#8220;print &#8216;SGVsbG8gcGxhbmV0IQ==\n&#8217;.decode(&#8217;base64&#8242;)&#8221;</title>
		<link>http://en.alessiotreglia.com/articles/python-c-print-sgvsbg8gcgxhbmv0iqndecodebase64/</link>
		<comments>http://en.alessiotreglia.com/articles/python-c-print-sgvsbg8gcgxhbmv0iqndecodebase64/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 13:23:11 +0000</pubDate>
		<dc:creator>quadrispro</dc:creator>
		
		<category><![CDATA[Planet Ubuntu]]></category>

		<guid isPermaLink="false">http://en.alessiotreglia.com/?p=3</guid>
		<description><![CDATA[Hi guys, that&#8217;s my first post on Planet Ubuntu!
I&#8217;m Alessio and this is &#8220;Everybody lies&#8220;, my personal blog (yes, I&#8217;m an House M.D. fan) where you should find any kind of information about me and my projects.
For more information about my activities in Ubuntu, visit my wiki homepage.
]]></description>
			<content:encoded><![CDATA[<p>Hi guys, that&#8217;s my first post on <a href="http://planet.ubuntu.com" target="_blank">Planet Ubuntu</a>!</p>
<p>I&#8217;m Alessio and this is &#8220;<em>Everybody lies</em>&#8220;, my personal blog (yes, I&#8217;m an <strong>House M.D.</strong> fan) where you should find any kind of information about me and my projects.</p>
<p>For more information about my activities in Ubuntu, visit my <a title="AlessioTreglia on Ubuntu Wiki" href="https://wiki.ubuntu.com/AlessioTreglia" target="_blank">wiki homepage</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://en.alessiotreglia.com/articles/python-c-print-sgvsbg8gcgxhbmv0iqndecodebase64/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
