<?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>riportando la cenere a valle &#187; cpm</title>
	<atom:link href="http://gagliardi.ch/wp/category/cpm/feed/" rel="self" type="application/rss+xml" />
	<link>http://gagliardi.ch/wp</link>
	<description></description>
	<lastBuildDate>Sat, 14 May 2011 14:36:34 +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>Stupidaapple</title>
		<link>http://gagliardi.ch/wp/2011/01/11/stupidaapple/</link>
		<comments>http://gagliardi.ch/wp/2011/01/11/stupidaapple/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 00:27:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[cpm]]></category>
		<category><![CDATA[futili]]></category>
		<category><![CDATA[memorabilia]]></category>

		<guid isPermaLink="false">http://gagliardi.ch/wp/2011/01/11/stupidaapple/</guid>
		<description><![CDATA[Apple&#8217;s simplicity ridiculous. La semplicità dei prodotti Apple porta a volte a complicazioni estreme. Sto installando, per la prima volta e più per capriccio che per altro, Snow Leopard sul mio MacBook pro. A parte l&#8217;eccessiva semplicità, che mi ha fatto ripetere l&#8217;installazione tre volte data la difficoltà nel reperire l&#8217;opzione per formattare il disco rigido, [...]]]></description>
			<content:encoded><![CDATA[<p>Apple&#8217;s simplicity ridiculous. La semplicità dei prodotti Apple porta a volte a complicazioni estreme.</p>
<ul>
<li>Sto installando, per la prima volta e più per capriccio che per altro, Snow Leopard sul mio MacBook pro. A parte l&#8217;eccessiva semplicità, che mi ha fatto ripetere l&#8217;installazione tre volte data la difficoltà nel reperire l&#8217;opzione per formattare il disco rigido, mi sovviene la seguente questione: perchè ci sono tutte le lingue possibili ed immaginabili installate per default? Il tutto costa 1.2Gb di spazio, tempo di installazione e sono completamente inutili, a me serve solo l&#8217;inglese. Comunque si risolve con <a href="http://monolingual.sourceforge.net/">monolingual</a>.</li>
<li>È tanto complicato far definire all&#8217;utente la funzione del tasto &#8220;lock&#8221; dell&#8217;iPad? Ancora utile quando bloccava la rotazione dello schermo &#8230; completamente idiota la funzione &#8220;mute&#8221; (anche perchè basta tener schiacciato 1s il tasto per abbassare il volume e va in &#8220;mute&#8221; lo stesso). A me servirebbe che il tasto controllasse lo stato della WLAN.</li>
</ul>
<ul>
<li>Pages (il Word di Apple): per default usa la lingua impostata sul sistema, nel mio caso EN-USA. Scrivo documento in italiano, voglio il correttore ortografico: ceppa! Se io uso un sistema EN-USA, so scrivere solo in inglese, punto. Al massimo posso scrivere pezzetti in altre lingue. Conclusione: non è possibile settare la lingua di un documento diversamente da quella del sistema! &#8230; ridicolo.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://gagliardi.ch/wp/2011/01/11/stupidaapple/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.10 pkgs index update fail</title>
		<link>http://gagliardi.ch/wp/2010/10/19/ubuntu-10-10-pkgs-index-update-fail/</link>
		<comments>http://gagliardi.ch/wp/2010/10/19/ubuntu-10-10-pkgs-index-update-fail/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 11:13:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[cpm]]></category>

		<guid isPermaLink="false">http://gagliardi.ch/wp/?p=227</guid>
		<description><![CDATA[To fix the problem:]]></description>
			<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">
roga@stratonembo:~$ sudo apt-get update
Hit http://ch.archive.ubuntu.com maverick-updates/multiverse i386 PackagesFetched 3,892B in 2s (1,806B/s)
Reading package lists... Done
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. 
GPG error: http://extras.ubuntu.com maverick Release: The following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY 16126D3A3E5C1192
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/maverick/Release
W: Some index files failed to download, they have been ignored, or old ones used instead.
roga@stratonembo:~$
</pre>
<p>To fix the problem:</p>
<pre class="brush: bash; title: ; notranslate">
roga@stratonembo:~$ sudo apt-get --reinstall install ubuntu-extras-keyring
roga@stratonembo:~$ sudo apt-get update
</pre>
]]></content:encoded>
			<wfw:commentRss>http://gagliardi.ch/wp/2010/10/19/ubuntu-10-10-pkgs-index-update-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bash t&amp;t</title>
		<link>http://gagliardi.ch/wp/2010/09/19/bash-tt/</link>
		<comments>http://gagliardi.ch/wp/2010/09/19/bash-tt/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 15:56:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[cpm]]></category>

		<guid isPermaLink="false">http://gagliardi.ch/wp/?p=196</guid>
		<description><![CDATA[cp test{,.bak} sudo netstat -plantu remove leading spaces: sed &#8216;s/^[ \t]*//&#8217;]]></description>
			<content:encoded><![CDATA[<ul>
<li>cp test{,.bak}</li>
<li>sudo netstat -plantu</li>
<li>remove leading spaces: sed &#8216;s/^[ \t]*//&#8217;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://gagliardi.ch/wp/2010/09/19/bash-tt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>perl &#8211; read Data::Dumper(variable)</title>
		<link>http://gagliardi.ch/wp/2010/09/17/perl-read-datadumpervariable/</link>
		<comments>http://gagliardi.ch/wp/2010/09/17/perl-read-datadumpervariable/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 09:11:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[cpm]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://gagliardi.ch/wp/?p=204</guid>
		<description><![CDATA[#!/usr/bin/perl # Reuse data dumped with Dumper(%var) # $VAR1 = '$VAR1 = { # \'Man\' =&#62; \'Bill\', # \'Dog\' =&#62; \'Ben\', # \'Woman\' =&#62; \'Mary\' # }; use Data::Dumper; use strict; # read the whole file into a variable my $data; { local $/=undef; # If the $/ variable is undefined, the &#60;...&#62; operator will [...]]]></description>
			<content:encoded><![CDATA[<pre>#!/usr/bin/perl
# Reuse data dumped with Dumper(%var)
# $VAR1 = '$VAR1 = {
#           \'Man\' =&gt; \'Bill\',
#           \'Dog\' =&gt; \'Ben\',
#           \'Woman\' =&gt; \'Mary\'
#         };

use Data::Dumper;
use strict;

# read the whole file into a variable
my $data;
{
  local $/=undef;        # If the $/ variable is undefined, the &lt;...&gt; operator will read
                         # the entire file all at once
  open FILE, "$ARGV[0]" or die "Couldn't open file: $!";
  $data = &lt;FILE&gt;;         # This reads the whole file
  close FILE;
}

$data =~ s/\$VAR1 = //;   # Remove the $VAR1 =
my $h = eval($data);      # spread in the code

print $h-&gt;{Man}."\n";          # output is "Bill"
</pre>
<hr />
<pre>
me@host:~/$ cat data.dump
$VAR1 = {
          'Man' => 'Bill',
          'Dog' => 'Ben',
          'Woman' => 'Mary'
        };
me@host:~/$ ./test.pl data.dump
Bill
</pre>
]]></content:encoded>
			<wfw:commentRss>http://gagliardi.ch/wp/2010/09/17/perl-read-datadumpervariable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nomi impossibili</title>
		<link>http://gagliardi.ch/wp/2010/05/18/nomi-impossibili/</link>
		<comments>http://gagliardi.ch/wp/2010/05/18/nomi-impossibili/#comments</comments>
		<pubDate>Tue, 18 May 2010 11:58:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[cpm]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[t&t]]></category>
		<category><![CDATA[ux]]></category>

		<guid isPermaLink="false">http://gagliardi.ch/wp/?p=182</guid>
		<description><![CDATA[Succedono a volte (tipo [root@fwadm-eng1 admtj60]# tar xvf eventiaziiextsiu_20100518.tgz ) cose strane: [root@fwadm-eng1 admtj60]# ls -li total 270532 2485595 drwxr-xr-x    7 root     root         4096 May 18 13:43 backup 2485591 -rw-r--r--    1 root     root     276741810 May 18 10:50 eventiaziiextsiu_20100518.tar.gz 2485593 drwxr-xr-x    3 root     root         4096 May 18 11:06 ??-?????vS?9?=?6?Ê¶4?h?z??6?9iî¤?? Domanda: &#8220;Come si cancella l&#8217;ultima directory?&#8221; [root@fwadm-eng1 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Succedono </strong>a volte (tipo
<pre>[root@fwadm-eng1 admtj60]# tar xvf eventiaziiextsiu_20100518.tgz </pre>
<p>) cose strane:</p>
<pre>
[root@fwadm-eng1 admtj60]# ls -li
total 270532
2485595 drwxr-xr-x    7 root     root         4096 May 18 13:43 backup
2485591 -rw-r--r--    1 root     root     276741810 May 18 10:50 eventiaziiextsiu_20100518.tar.gz
2485593 drwxr-xr-x    3 root     root         4096 May 18 11:06 ??-?????vS?9?=?6?Ê¶4?h?z??6?9iî¤??
</pre>
<p><strong>Domanda</strong>: &#8220;Come si cancella l&#8217;ultima directory?&#8221;</p>
<pre>
[root@fwadm-eng1 admtj60]# rm "???=m??n&amp;?-+E??#r=a?{,SUzr??U?????\6?????j?g??"
rm: cannot lstat `???=m??n&amp;?-+E??#r=a?{,SUzr??U?????\\6?????j?g??': No such file or directory
</pre>
<p><strong>Ovvero</strong>: una sonora pernacchia elettronica.</p>
<p><strong>Soluzione</strong>: eliminare quello che viene trovato per inode.</p>
<pre>
[root@fwadm-eng1 admtj60]# ls -li
total 270532
2485595 drwxr-xr-x    7 root     root         4096 May 18 13:43 backup
2485591 -rw-r--r--    1 root     root     276741810 May 18 10:50 eventiaziiextsiu_20100518.tar.gz
<strong>2485593 </strong>drwxr-xr-x    3 root     root         4096 May 18 11:06 ??-?????vS?9?=?6?Ê¶4?h?z??6?9iî¤??
[root@fwadm-eng1 admtj60]# find . -xdev -type d -inum <strong>2485593 </strong>-exec rm -r {} \;
find: ./¥-°Ë°ÎvSú9=è6«Ê¶4hÙzÐ6´9iî¤¬ã: No such file or directory
[root@fwadm-eng1 admtj60]# ls -li
total 270528
2485595 drwxr-xr-x    7 root     root         4096 May 18 13:43 backup
2485591 -rw-r--r--    1 root     root     276741810 May 18 10:50 eventiaziiextsiu_20100518.tar.gz
</pre>
<p>strange but true.</p>
]]></content:encoded>
			<wfw:commentRss>http://gagliardi.ch/wp/2010/05/18/nomi-impossibili/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

