<?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>Il blog di Gas &#187; gas</title>
	<atom:link href="http://www.lucagasperini.com/blog/author/gas/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lucagasperini.com/blog</link>
	<description>Solo un altro sito WordPress</description>
	<lastBuildDate>Fri, 04 Nov 2011 15:04:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Move files with zenity progress bar</title>
		<link>http://www.lucagasperini.com/blog/2011-move-files-with-zenity-progress-bar/</link>
		<comments>http://www.lucagasperini.com/blog/2011-move-files-with-zenity-progress-bar/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 14:52:09 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/?p=799</guid>
		<description><![CDATA[I&#8217;m playing with a script that moves files between two directories and does that by piping two tar commands, so called Fast Copy. You need zenity to see the progress bar, it is a work in progress as there are some bugs, eg when you click &#8220;cancel&#8221; the two tar child processes are not killed [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m playing with a script that moves files between two directories and does that by piping two tar commands, so called <a href="http://en.gentoo-wiki.com/wiki/Fast_Copy">Fast Copy</a>.</p>
<p>You need zenity to see the progress bar, it is a work in progress as there are some bugs, eg when you click &#8220;cancel&#8221; the two tar child processes are not killed for some reason, I couldn&#8217;t get the correct exit code that probably gets lost somewhere.</p>
<p>Probably in the future I&#8217;ll write a better notification.Suggestions and modifications are wellcome.</p>
<p>&nbsp;</p>
<p>&nbsp;<br />
<iframe src="http://pastebin.com/embed_iframe.php?i=AehWbP5c" style="border:none;width:100%"></iframe><br />
&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2011-move-files-with-zenity-progress-bar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Working pidgin facebook chat for linux 64 bit</title>
		<link>http://www.lucagasperini.com/blog/2011-working-pidgin-facebook-chat-for-linux-64-bit/</link>
		<comments>http://www.lucagasperini.com/blog/2011-working-pidgin-facebook-chat-for-linux-64-bit/#comments</comments>
		<pubDate>Thu, 12 May 2011 13:42:09 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/?p=795</guid>
		<description><![CDATA[Already compiled, just grabbed from svn, put this file in /usr/lib64/purple-2/ and rename it to libfacebook.so]]></description>
			<content:encoded><![CDATA[<p>Already compiled, just grabbed from svn, put <a href="http://dl.dropbox.com/u/3038370/libfacebook64-12.05.2011..tar.bz2">this file</a> in <em>/usr/lib64/purple-2/</em> and rename it to libfacebook.so</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2011-working-pidgin-facebook-chat-for-linux-64-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tofu ripieno di carne</title>
		<link>http://www.lucagasperini.com/blog/2011-tofu-ripieno-di-carne/</link>
		<comments>http://www.lucagasperini.com/blog/2011-tofu-ripieno-di-carne/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 12:05:03 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[Ricette]]></category>
		<category><![CDATA[cina]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/?p=750</guid>
		<description><![CDATA[Mettere nell&#8217;acqua 20 minuti i funghi ( tipo insalata, sottili, venduti secchi) tagliarli più piccoli e togliere le parti dure sciacquarli un paio di volte Mettere il macinato in una terrina con pepe, fecola, soia e olio di sesamo, stavola sale perchè li mettiamo nel tofu e non possiamo metterlo alla fine lasciar li a [...]]]></description>
			<content:encoded><![CDATA[<p>Mettere nell&#8217;acqua 20 minuti i funghi ( tipo insalata, sottili, venduti secchi)<br />
tagliarli più piccoli e togliere le parti dure<br />
sciacquarli un paio di volte</p>
<p>Mettere il macinato in una terrina con  pepe, fecola, soia e olio di sesamo, stavola sale perchè li mettiamo nel tofu e non possiamo metterlo alla fine</p>
<p><a href="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC0071411.jpg"><img class="alignnone size-medium wp-image-751" title="DSC00714" src="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC007141-300x225.jpg" alt="carne a conciare" width="300" height="225" /></a><br />
lasciar li a conciare per 20 min</p>
<p>aprire il tofu e metterci la carne</p>
<p><a href="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC0071711.jpg"><img class="alignnone size-medium wp-image-756" title="DSC00717" src="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC007171-300x225.jpg" alt="preparazione tofu" width="300" height="225" /></a></p>
<p>padella a fuoco alto con strato di olio</p>
<p>mettere su il tofu dalla parte della carne e poi girare</p>
<p><a href="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC0071511.jpg"><img class="size-medium wp-image-754 alignnone" title="DSC00715" src="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC007151-300x225.jpg" alt="cottura" width="300" height="225" /></a></p>
<p>togliere quando pronto e tenere l&#8217;olio in padella</p>
<p>nella padella con l&#8217;olio rimasto mettere garlic, ginger, chili e poi i funghi</p>
<p><a href="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC0071811.jpg"><img class="alignnone size-medium wp-image-757" title="DSC00718" src="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC007181-300x225.jpg" alt="cottura funghi e spezie" width="300" height="225" /></a></p>
<p>dopo un po a rosolare mettere il tofu ripieno</p>
<p><a href="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC0072011.jpg"><img class="alignnone size-medium wp-image-759" title="DSC00720" src="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC007201-300x225.jpg" alt="cottura finale tofu" width="300" height="225" /></a></p>
<p>aggiungere un centimetro scarso di acqua fredda e cuocere finchè  si asciuga</p>
<p><a href="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC0072211.jpg"><img class="alignnone size-medium wp-image-761" title="DSC00722" src="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC007221-300x225.jpg" alt="piatto finito" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2011-tofu-ripieno-di-carne/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zuppa con germogli di funghi</title>
		<link>http://www.lucagasperini.com/blog/2011-zuppa-con-germogli-di-funghi/</link>
		<comments>http://www.lucagasperini.com/blog/2011-zuppa-con-germogli-di-funghi/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 11:10:15 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[Ricette]]></category>
		<category><![CDATA[cina]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/?p=771</guid>
		<description><![CDATA[﻿﻿﻿﻿Mettere in una pentola olio, garlic, ginger e rosolare aggiungere un po di carne macinata conciata come al solito poi aggiungere i funghi in scatola (germogli di funghi) e rosolare aggiungere acqua abbondante e consumare a fuoco lento]]></description>
			<content:encoded><![CDATA[<p>﻿﻿﻿﻿Mettere in una pentola olio, garlic, ginger e rosolare<br />
aggiungere un po di carne macinata conciata come <a title="tofu ripieno di carne" href="http://www.lucagasperini.com/blog/2011-tofu-ripieno-di-carne/" target="_blank">al solito</a></p>
<p>poi aggiungere i funghi in scatola (germogli di funghi) e rosolare</p>
<p>aggiungere acqua abbondante e consumare a fuoco lento</p>
<p><a href="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC0072111.jpg"><img class="alignnone size-medium wp-image-760" title="DSC00721" src="http://www.lucagasperini.com/blog/wp-content/uploads/2011/03/DSC007211-300x225.jpg" alt="zuppa con germogli di funghi" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2011-zuppa-con-germogli-di-funghi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gnome places double entries</title>
		<link>http://www.lucagasperini.com/blog/2010-gnome-places-double-entries/</link>
		<comments>http://www.lucagasperini.com/blog/2010-gnome-places-double-entries/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 18:42:17 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/?p=724</guid>
		<description><![CDATA[As a gentoo user I&#8217;ve been stuck with gnome 2.26 for ages and when I emerged gnome 2.28 I found out that two out of three nfs shares had double entries in the gnome places menu. It seems that there is some sort of problem with gvfs, some users have reported double entries in gnome [...]]]></description>
			<content:encoded><![CDATA[<p>As a gentoo user I&#8217;ve been stuck with gnome 2.26 for ages and when I emerged gnome 2.28 I found out that two out of three nfs shares had double entries in the gnome places menu. It seems that there is some sort of problem with gvfs, some users have reported double entries in gnome places for local mounts and for remote shares.<br />
I could solve the problem (now, end life of gnome 2.30) by mounting my shares with &#8220;defaults&#8221; as an option. These things make me wonder why I like computers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2010-gnome-places-double-entries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Move files in bash with tar and progress bar</title>
		<link>http://www.lucagasperini.com/blog/2010-move-files-in-bash-with-tar-and-progress-bar/</link>
		<comments>http://www.lucagasperini.com/blog/2010-move-files-in-bash-with-tar-and-progress-bar/#comments</comments>
		<pubDate>Sat, 11 Sep 2010 13:14:57 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/?p=710</guid>
		<description><![CDATA[Example gas@caldaia ~ $ my_move source_dir/ dest_dir/ 43.5GB at 61.0MB/s eta: 59s 91% [=========== ] You need to install &#8220;command line progress bar&#8221;, in gentoo it can be installed with emerge bar in ubuntu the deb can be grabbed here and installed with gdebi. my_move: #! /bin/sh SOURCE="$1" DEST="$2" SIZE=$(du -sb "$SOURCE"&#124;awk '{print $1}') (cd [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Example</strong><br />
<code>gas@caldaia ~ $ my_move source_dir/ dest_dir/<br />
  43.5GB at   61.0MB/s  eta:   59s   91% [===========   ]</code></p>
<p>You need to install &#8220;command line progress bar&#8221;, in gentoo it can be installed with <em>emerge bar</em> in ubuntu the deb can be grabbed <a href="http://sourceforge.net/projects/clpbar/">here</a> and installed with gdebi.</p>
<p>my_move:<br />
<code>#! /bin/sh<br />
SOURCE="$1"<br />
DEST="$2"<br />
SIZE=$(du -sb "$SOURCE"|awk '{print $1}')<br />
(cd "$SOURCE" &#038;&#038; tar -cf - *)|bar -s $SIZE| (cd "$DEST" &#038;&#038; tar -xBpf -)<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2010-move-files-in-bash-with-tar-and-progress-bar/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PixieLive</title>
		<link>http://www.lucagasperini.com/blog/2010-pixielive/</link>
		<comments>http://www.lucagasperini.com/blog/2010-pixielive/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 17:04:02 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[torrent]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/?p=685</guid>
		<description><![CDATA[A friend of mine, Christian, has released PixieLive, a slax based live linux distro build with gentoo. It&#8217;s one of the few live distributions that support Intel GMA500, popular on netbooks like some Asus EEEPC. PixieLive]]></description>
			<content:encoded><![CDATA[<p>A friend of mine, Christian, has released PixieLive, a slax based live linux distro build with gentoo.<br />
It&#8217;s one of the few live distributions that support Intel GMA500, popular on netbooks like some Asus EEEPC.</p>
<p><a href="http://pixielive.org/dotclear/index.php?post/2010/08/23/FirstRelease">PixieLive</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2010-pixielive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Audio transcoding in bash</title>
		<link>http://www.lucagasperini.com/blog/2010-audio-transcoding-in-bash/</link>
		<comments>http://www.lucagasperini.com/blog/2010-audio-transcoding-in-bash/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 16:50:50 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[musica]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/?p=681</guid>
		<description><![CDATA[A proper transcode must have a lossless audio format as a source, a good one is flac ,stands for Free Lossless Audio Codec, because it does the job well and has a good licence ( BSD and GPL ). If you have some flacs and want them in mp3 format (you need lame and flac) [...]]]></description>
			<content:encoded><![CDATA[<p>A proper transcode must have a lossless audio format as a source, a good one is flac ,stands for <a href="http://en.wikipedia.org/wiki/Free_Lossless_Audio_Codec">Free Lossless Audio Codec</a>, because it does the job well and has a good licence ( BSD and GPL ).</p>
<p>If you have some flacs and want them in mp3 format (you need <a href="http://lame.sourceforge.net/">lame</a> and flac) you can use this one liner:<br />
<code>for FILE in *.flac; do flac -cd "${FILE}" | lame - "${FILE/.flac/.mp3}"; done</code></p>
<p>the above line decodes every file that ends in .flac to the standard output (screen) and pipes it to lame that will encode it. &#8220;${FILE/.flac/.mp3}&#8221; will be the output file, in bash that means: take the variables &#8220;$FILE&#8221; (that is the original filename), remove &#8220;.flac&#8221; and substitute &#8220;.mp3&#8243;.</p>
<p>Nowadays I transcode quite often to 320 kbit/s constant bit rate (CBR)</p>
<ul>
<li>achieving the best quality for an mp3 and still being highly portable, some players don&#8217;t like variable bitrate of high quality ( like the V0 preset)</li>
<li>doing something unefficient since mp3 is not a good codec for that quality but if your stereo reads just mp3 you don&#8217;t have any choices</li>
</ul>
<p>I simply need to use lame with the proper switches , the above one liner becomes:<br />
<code>for FILE in *.flac; do flac -cd "${FILE}" | lame --cbr --preset insane - "${FILE/.flac/.mp3}"; done</code></p>
<p>To rip my compact discs and encode my music in flac I use a program for windows called Exact Audio Copy (<a href="http://www.exactaudiocopy.de/">EAC</a>), my Wine build doesn&#8217;t like it for some reasons and Virtualbox has historical problems in handling cdroms correctly, the solution was VMWare. The native solution is RubyRipper</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2010-audio-transcoding-in-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fail2ban and postfix sasl</title>
		<link>http://www.lucagasperini.com/blog/2010-fail2ban-and-postfix-sasl/</link>
		<comments>http://www.lucagasperini.com/blog/2010-fail2ban-and-postfix-sasl/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 21:18:32 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/?p=672</guid>
		<description><![CDATA[Today I found the usual chinese trying to get in my smtp to send his spam to the world and I realized that fail2ban wasn&#8217;t working because the regexp used to match the offender is wrong. This is the log entry (/var/log/mail) Aug 21 22:45:30 myserver postfix/smtpd[12071]: warning: unknown[xxx.xxx.xxx.xxx]: SASL LOGIN authentication failed: authentication failure [...]]]></description>
			<content:encoded><![CDATA[<p>Today I found the usual chinese trying to get in my smtp to send his spam to the world and I realized that fail2ban wasn&#8217;t working because the regexp used to match the offender is wrong.</p>
<p>This is the log entry (/var/log/mail)<br />
<code>Aug 21 22:45:30 myserver postfix/smtpd[12071]: warning: unknown[xxx.xxx.xxx.xxx]: SASL LOGIN authentication failed: authentication failure</code></p>
<p>and this is the regex that work , just remove the part after &#8220;authentication failed&#8221; (/etc/fail2ban/filter.d/sasl.conf)</p>
<p><code>failregex = (?i): warning: [-._\w]+\[<host>\]: SASL (?:LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed</code></p>
<p>Test it:<br />
<code>fail2ban-regex /var/log/mail.log /etc/fail2ban/filter.d/sasl.conf </code></p>
<p>if you are on a slow server or on a big mail server use /var/log/mail.err instead</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2010-fail2ban-and-postfix-sasl/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Unmerge Kde in gentoo</title>
		<link>http://www.lucagasperini.com/blog/2010-unmerge-kde-in-gentoo/</link>
		<comments>http://www.lucagasperini.com/blog/2010-unmerge-kde-in-gentoo/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 10:48:11 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/?p=659</guid>
		<description><![CDATA[Update emerge --ask -C `eix -C kde-base --only-names --installed` nano /etc/make.conf and delete kde from the USE flags, remove qt3support and qt4 also if you don&#8217;t need them anymore emerge -uavtqND world" Now you should have just a few kde packages in the list you got as an output of that command, it&#8217;s your choice [...]]]></description>
			<content:encoded><![CDATA[<p>Update</p>
<p><code>emerge --ask -C `eix -C kde-base --only-names --installed`</code></p>
<p><code>nano /etc/make.conf</code></p>
<p>and delete kde from the USE flags, remove qt3support and qt4 also if you don&#8217;t need them anymore</p>
<p><code>emerge -uavtqND world"</code></p>
<p>Now you should have just a few kde packages in the list you got as an output of that command, it&#8217;s your choice to leave them or unmerge them manually, with unmerge -pv &#8211;depclean <atom> you can see what packages pulls in your atom.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2010-unmerge-kde-in-gentoo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

