<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Un informatico a Bologna ...</title>
	<atom:link href="http://pierpytom.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pierpytom.wordpress.com</link>
	<description>Tentativi per una felice convivenza con il pc!</description>
	<pubDate>Mon, 28 Jul 2008 09:43:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>it</language>
			<item>
		<title>Zero!</title>
		<link>http://pierpytom.wordpress.com/2008/07/28/zero/</link>
		<comments>http://pierpytom.wordpress.com/2008/07/28/zero/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 09:43:48 +0000</pubDate>
		<dc:creator>pierpytom</dc:creator>
		
		<category><![CDATA[Eventi]]></category>

		<guid isPermaLink="false">http://pierpytom.wordpress.com/?p=318</guid>
		<description><![CDATA[Piccolo sfogo!]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:center;"><img class="size-full wp-image-319 aligncenter" style="border:1px solid black;" src="http://pierpytom.files.wordpress.com/2008/07/zerooo.jpg?w=400&h=300" alt="" width="400" height="300" /><em>(piccolo sfogo! ^_^)</em></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pierpytom.wordpress.com/318/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pierpytom.wordpress.com/318/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pierpytom.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pierpytom.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pierpytom.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pierpytom.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pierpytom.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pierpytom.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pierpytom.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pierpytom.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pierpytom.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pierpytom.wordpress.com/318/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pierpytom.wordpress.com&blog=1785785&post=318&subd=pierpytom&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pierpytom.wordpress.com/2008/07/28/zero/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/pierpytom-128.jpg" medium="image">
			<media:title type="html">pierpytom</media:title>
		</media:content>

		<media:content url="http://pierpytom.files.wordpress.com/2008/07/zerooo.jpg" medium="image" />
	</item>
		<item>
		<title>Per chi ha un sogno e lotta con passione per raggiungerlo.</title>
		<link>http://pierpytom.wordpress.com/2008/07/27/per-chi-ha-un-sogno-e-lotta-con-passione-per-raggiungerlo/</link>
		<comments>http://pierpytom.wordpress.com/2008/07/27/per-chi-ha-un-sogno-e-lotta-con-passione-per-raggiungerlo/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 08:58:09 +0000</pubDate>
		<dc:creator>pierpytom</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

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

		<guid isPermaLink="false">http://pierpytom.wordpress.com/?p=314</guid>
		<description><![CDATA[Randy Pausch (1960-2008)]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>L&#8217;alba del 25 luglio, all&#8217;età di 47 anni, si è spento Randy Pausch, informatico statunitense e padre di tre bambini. Scusate il manifesto lugubre, ma ci sono persone che vanno ricordate per l&#8217;amore e l&#8217;impegno che mettono nel loro vivere quotidiano ed io, nel mio piccolo spazio, ci tengo a ricordarlo.</p>
<p>Questa è la sua ultima lezione di vita sottotitolata in italiano, prendete 10 minuti e guardatevela, penso che non ci sia persona che possa rimanerne delusa.</p>
<p style="text-align:center;"><span style="text-align:center; display: block;"><a href="http://pierpytom.wordpress.com/2008/07/27/per-chi-ha-un-sogno-e-lotta-con-passione-per-raggiungerlo/"><img src="http://img.youtube.com/vi/k-rEHMic2KY/2.jpg" alt="" /></a></span></p>
<p>Se avete altre curiosità c&#8217;è il <a title="Randy Pausch' Last Lecture" href="http://www.youtube.com/watch?v=ji5_MqicxSo" target="_blank">video integrale della sua ultima lezione</a>, l&#8217;<a title="Randy Pausch, Chicago Tribune" href="http://www.chicagotribune.com/news/nationworld/chi-last-words-sidejul26,0,2574761.story" target="_blank">articolo del Chicago Tribune</a> e la <a title="Randy Pausch' Last Lecture" href="http://74.125.39.104/search?q=cache:www.cs.cmu.edu/~pausch/Randy/pauschlastlecturetranscript.pdf" target="_blank">trascrizione della sua ultima lezione</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pierpytom.wordpress.com/314/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pierpytom.wordpress.com/314/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pierpytom.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pierpytom.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pierpytom.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pierpytom.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pierpytom.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pierpytom.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pierpytom.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pierpytom.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pierpytom.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pierpytom.wordpress.com/314/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pierpytom.wordpress.com&blog=1785785&post=314&subd=pierpytom&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pierpytom.wordpress.com/2008/07/27/per-chi-ha-un-sogno-e-lotta-con-passione-per-raggiungerlo/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/pierpytom-128.jpg" medium="image">
			<media:title type="html">pierpytom</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/k-rEHMic2KY/2.jpg" medium="image" />
	</item>
		<item>
		<title>Anteprime su thunar</title>
		<link>http://pierpytom.wordpress.com/2008/07/22/anteprime-su-thunar/</link>
		<comments>http://pierpytom.wordpress.com/2008/07/22/anteprime-su-thunar/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 12:33:09 +0000</pubDate>
		<dc:creator>pierpytom</dc:creator>
		
		<category><![CDATA[Linux]]></category>

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

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

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

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

		<guid isPermaLink="false">http://pierpytom.wordpress.com/?p=305</guid>
		<description><![CDATA[Se utilizzate xubuntu di default le anteprime dei file non vengono visualizzate, vediamo dunque come attivarle!

Apriamo un&#8217;istanza di Thunar e poi dal menu Modifica apriamo Preferenze.
Nella scheda Display (la prima) abilitiamo la spunta su Mostra miniature. Finito!  Questo è lo screenshot:

Appunto importante soprattutto per i possessori di Eee PC: le anteprime vengono salvate in [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Se utilizzate xubuntu di default le anteprime dei file non vengono visualizzate, vediamo dunque come attivarle!</p>
<p style="text-align:center;"><img class="size-full wp-image-310 aligncenter" src="http://pierpytom.files.wordpress.com/2008/07/qref_xubuntu_logo.png?w=375&h=375" alt="qref_xubuntu_logo" width="375" height="375" /></p>
<p><span id="more-305"></span>Apriamo un&#8217;istanza di <em>Thunar</em> e poi dal menu <em><span style="text-decoration:underline;">M</span>odifica</em> apriamo <em>Pr<span style="text-decoration:underline;">e</span>ferenze</em>.</p>
<p>Nella scheda <em>Display</em> (la prima) abilitiamo la spunta su <em>Mostra <span style="text-decoration:underline;">m</span>iniature</em>. Finito! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Questo è lo screenshot:</p>
<p style="text-align:center;"><a href="http://pierpytom.files.wordpress.com/2008/07/schermata-preferenze-del-file-manager.png"><img class="size-medium wp-image-306 aligncenter" src="http://pierpytom.files.wordpress.com/2008/07/schermata-preferenze-del-file-manager.png?w=300&h=259" border="1" alt="schermata-preferenze-del-file-manager" width="300" height="259" /></a></p>
<p style="text-align:left;">Appunto importante soprattutto per i possessori di Eee PC: le anteprime vengono salvate in <em>~/.thumbnail/</em>, tenete sempre d&#8217;occhio questa cartella perché può facilmente arrivare ad occupare 200MB e passa! La cartella <em>.thumbnail</em> è utilizzata sia per le anteprime di Gnome che di Xfce, quindi il consiglio vale anche per gli utenti di Gnome!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pierpytom.wordpress.com/305/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pierpytom.wordpress.com/305/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pierpytom.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pierpytom.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pierpytom.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pierpytom.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pierpytom.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pierpytom.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pierpytom.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pierpytom.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pierpytom.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pierpytom.wordpress.com/305/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pierpytom.wordpress.com&blog=1785785&post=305&subd=pierpytom&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pierpytom.wordpress.com/2008/07/22/anteprime-su-thunar/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/pierpytom-128.jpg" medium="image">
			<media:title type="html">pierpytom</media:title>
		</media:content>

		<media:content url="http://pierpytom.files.wordpress.com/2008/07/qref_xubuntu_logo.png" medium="image">
			<media:title type="html">qref_xubuntu_logo</media:title>
		</media:content>

		<media:content url="http://pierpytom.files.wordpress.com/2008/07/schermata-preferenze-del-file-manager.png?w=300" medium="image">
			<media:title type="html">schermata-preferenze-del-file-manager</media:title>
		</media:content>
	</item>
		<item>
		<title>Sul perché non scrivo</title>
		<link>http://pierpytom.wordpress.com/2008/07/13/sul-perche-non-scrivo/</link>
		<comments>http://pierpytom.wordpress.com/2008/07/13/sul-perche-non-scrivo/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 13:13:39 +0000</pubDate>
		<dc:creator>pierpytom</dc:creator>
		
		<category><![CDATA[avvisi]]></category>

		<guid isPermaLink="false">http://pierpytom.wordpress.com/?p=291</guid>
		<description><![CDATA[Blog in pausa.]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Quest&#8217;ultimo periodo non sto apportando nessuna modifica al mio pc, ho sedato la curiosità di provare software/linguaggi nuovi perché non avrei il tempo di stare ad imparare (nonostante l&#8217;interesse ci sia sempre) e lo studio sta avendo la meglio.</p>
<p>Parlare di come sia &#8220;bello&#8221; far dialogare (solo in teoria) un DLX/R4000 con un 8086 tramite dispositivi 8255 et similia penso non interessi a nessuno e di argomenti informatici di cui parlare ne avrei pochi altri, quindi al momento non ho nulla da scrivere, al massimo completerò qualche bozza e la pubblicherò.</p>
<p>Triste conclusione: il blog va in pausa a tempo indeterminato. (Nella peggiore delle ipotesi fino a quest&#8217;estate. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> )</p>
<p style="text-align:center;"><img class="size-full wp-image-292 aligncenter" src="http://pierpytom.files.wordpress.com/2008/07/caffe.jpg?w=352&h=273" border="1" alt="caffe" width="352" height="273" /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pierpytom.wordpress.com/291/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pierpytom.wordpress.com/291/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pierpytom.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pierpytom.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pierpytom.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pierpytom.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pierpytom.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pierpytom.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pierpytom.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pierpytom.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pierpytom.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pierpytom.wordpress.com/291/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pierpytom.wordpress.com&blog=1785785&post=291&subd=pierpytom&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pierpytom.wordpress.com/2008/07/13/sul-perche-non-scrivo/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/pierpytom-128.jpg" medium="image">
			<media:title type="html">pierpytom</media:title>
		</media:content>

		<media:content url="http://pierpytom.files.wordpress.com/2008/07/caffe.jpg" medium="image">
			<media:title type="html">caffe</media:title>
		</media:content>
	</item>
		<item>
		<title>Estendere elementi grafici in WPF</title>
		<link>http://pierpytom.wordpress.com/2008/06/22/estendere-elementi-grafici-in-wpf/</link>
		<comments>http://pierpytom.wordpress.com/2008/06/22/estendere-elementi-grafici-in-wpf/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 10:53:19 +0000</pubDate>
		<dc:creator>pierpytom</dc:creator>
		
		<category><![CDATA[.Net]]></category>

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

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

		<category><![CDATA[C#]]></category>

		<category><![CDATA[Windows Vista]]></category>

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

		<guid isPermaLink="false">http://pierpytom.wordpress.com/?p=288</guid>
		<description><![CDATA[Estendere facilmente un elemento grafico in WPF (ad esempio un albero).]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>WPF (<em>Windows Presentation Foundation</em>) è un framework davvero potente (oltreché pesante) e permette di creare componenti grafici dalle caratteristiche avanzate con pochissimo sforzo! Ma se volessimo estendere qualcosa di già esistente e non creare nulla da zero?</p>
<p style="text-align:center;"><img class="alignnone size-full wp-image-289 aligncenter" src="http://pierpytom.files.wordpress.com/2008/06/mytreenode.jpg?w=302&h=301" alt="mytreenode" width="302" height="301" /><br />
<em>(Nonostante non si noti, quest&#8217;albero è in WPF)</em></p>
<p><span id="more-288"></span>Intanto perché WPF? Perché Vista ed i suoi successori lo integrano attraverso il .Net Framework 3.5, perché con poco sforzo ci permette interfacce grafiche futuristiche ma, soprattutto, perché me lo dice il mio prof! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Il concetto che sta dietro WPF è molto semplice: tutto può contenere tutto! Quindi possiamo creare una ComboBox con all&#8217;interno, invece delle solite stringhe, una serie di video con una descrizione accanto (stile youtube), e poi magari inserire questa ComboBox come nodo in un albero di preferenze! Pensate di riuscire a farlo in altri linguaggi di programmazione? Solo Flash permette, con un notevole sforzo in ActionScript, di arrivare a tanto, ma poi si è ostacolati dal limite di non poter interfacciarsi con l&#8217;esterno!</p>
<p>Il piccolo anello mancante però è: <strong>e se io invece volessi qualcosa di semplice</strong>? Tipo, il vecchio albero in Windows Form permetteva l&#8217;uso delle CheckBox, come potrei fare a creare una mia classe che estenda l&#8217;albero di WPF con questa funzionalità? Leggendo su internet o sui libri l&#8217;unica alternativa sembra crearsi un <em>UserControl</em>, un <em>HeaderedItemsControl</em>, un <em>ItemsControl</em> e chi più ne ha più ne metta!</p>
<p>Invece, utilizzando in coppia XAML e C#, il risultato è facilmente ottenibile! Come prima cosa andiamo ad aggiungere al progetto un nuovo elemento <em>UserControl </em>e, chiamiamolo, ad esempio, <em>MyTreeNode</em>. Questo inserirà nel progetto gli elementi <em>MyTreeNode.xaml</em> e <em>MyTreeNode.xaml.cs</em>: il primo è l&#8217;interfaccia scritta in XAML, il secondo è il codice sottostante, scritto in C#.</p>
<p>Partiamo con il modificare l&#8217;interfaccia in XAML, che è più leggibile al programmatore e meno criptica (una volta giunti alla soluzione)! Vi posto direttamente la soluzione finale:</p>
<p>&lt;<span style="font-size:10pt;font-family:'Courier New';color:#a31515;"><span style="text-decoration:underline;">TreeViewItem</span></span><span style="font-size:10pt;font-family:'Courier New';color:red;"> x</span><span style="font-size:10pt;font-family:'Courier New';color:blue;">:</span><span style="font-size:10pt;font-family:'Courier New';color:red;">Class</span><span style="font-size:10pt;font-family:'Courier New';color:blue;">=&#8221;WPFApplication.MyTreeNode&#8221;</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:red;"> xmlns</span><span style="color:blue;">=&#8221;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:red;"> xmlns</span><span style="color:blue;">:</span><span style="color:red;">x</span><span style="color:blue;">=&#8221;http://schemas.microsoft.com/winfx/2006/xaml&#8221;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:red;"> xmlns</span><span style="color:blue;">:</span><span style="color:red;">my</span><span style="color:blue;">=&#8221;clr-namespace:WPFApplication&#8221;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;"> &gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';color:#a31515;"> </span><span style="font-size:10pt;font-family:'Courier New';color:blue;">&lt;</span><span style="font-size:10pt;font-family:'Courier New';color:#a31515;">TreeViewItem.Header</span><span style="font-size:10pt;font-family:'Courier New';color:blue;">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';color:#a31515;"> </span><span style="font-size:10pt;font-family:'Courier New';color:blue;">&lt;</span><span style="font-size:10pt;font-family:'Courier New';color:#a31515;">StackPanel</span><span style="font-size:10pt;font-family:'Courier New';color:red;"> Orientation</span><span style="font-size:10pt;font-family:'Courier New';color:blue;">=&#8221;Horizontal&#8221;&gt;</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';color:#a31515;"> </span><span style="font-size:10pt;font-family:'Courier New';color:blue;">&lt;</span><span style="font-size:10pt;font-family:'Courier New';color:#a31515;">CheckBox</span><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:red;"> <span style="text-decoration:underline;">x</span></span><span style="text-decoration:underline;"><span style="color:blue;">:</span><span style="color:red;">Name</span><span style="color:blue;">=&#8221;UICheckBox&#8221;</span></span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:red;"> <span style="text-decoration:underline;">IsChecked</span></span><span style="text-decoration:underline;"><span style="color:blue;">=&#8221;{</span><span style="color:#a31515;">Binding</span><span style="color:red;"> Checked</span><span style="color:blue;">}&#8221;</span></span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:red;"> Visibility</span><span style="color:blue;">=&#8221;{</span><span style="color:#a31515;">Binding</span><span style="color:red;"> TreeView</span><span style="color:blue;">.</span><span style="color:red;">CheckBoxes</span><span style="color:blue;">}&#8221; /&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';color:#a31515;"> </span><span style="font-size:10pt;font-family:'Courier New';color:blue;">&lt;</span><span style="font-size:10pt;font-family:'Courier New';color:#a31515;">ContentControl</span><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:red;"> x</span><span style="color:blue;">:</span><span style="color:red;">Name</span><span style="color:blue;">=&#8221;UITitle&#8221;</span> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:red;"> Content</span><span style="color:blue;">=&#8221;{</span><span style="color:#a31515;">Binding</span><span style="color:red;"> Title</span><span style="color:blue;">}&#8221; /&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';color:#a31515;"> </span><span style="font-size:10pt;font-family:'Courier New';color:blue;">&lt;/</span><span style="font-size:10pt;font-family:'Courier New';color:#a31515;">StackPanel</span><span style="font-size:10pt;font-family:'Courier New';color:blue;">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';color:#a31515;"> </span><span style="font-size:10pt;font-family:'Courier New';color:blue;">&lt;/</span><span style="font-size:10pt;font-family:'Courier New';color:#a31515;">TreeViewItem.Header</span><span style="font-size:10pt;font-family:'Courier New';color:blue;">&gt;</span></p>
<p class="MsoNormal"><span style="line-height:115%;font-size:10pt;font-family:'Courier New';color:blue;">&lt;/</span><span style="line-height:115%;font-size:10pt;font-family:'Courier New';color:#a31515;"><span style="text-decoration:underline;">TreeViewItem</span></span><span style="font-size:10pt;font-family:'Courier New';color:blue;">&gt;</span></p>
<p>Come potete vedere ho sostituito <em>UserControl </em>con <em>TreeViewItem </em>(l&#8217;elemento nodo in WPF) e successivamente ho ridefinito l&#8217;<em>Header</em> inserendoci al suo posto uno pannello con una <em>CheckBox</em> ed un <em>Titolo</em> (in qualche modo bisogna accedere all&#8217;intestazione, considerato che ora <em>Header</em> non è più disponibile. Per i curiosi <em>Title</em> sarebbe l&#8217;equivalente di <em>Text</em> nelle Windows Form).<br />
Il Binding utilizzato per <em>Visibility </em>serve per creare la stessa identica struttura delle Windows Form e si basa su un&#8217;Attached Property nel codice C# che cambia al cambiare dell&#8217;elemento grafico padre, ma questa è un&#8217;altra storia! L&#8217;ho lasciato per completezza! ^_^</p>
<p>Passiamo ora ad analizzare porzioni di codice C# (scrivere tutta la classe sarebbe spropositato!), intanto come prima cosa modifichiamo la classe da cui ereditare tutto, che non sarà più <em>UserControl</em> ma <em>TreeViewItem</em>:</p>
<p><span style="color:blue;">public</span> <span style="color:blue;">partial</span> <span style="color:blue;">class</span> <span style="color:#2b91af;">MyTreeNode</span> : <span style="color:#2b91af;">TreeViewItem</span></p>
<p>Poi andiamo a modificare il costruttore inserendo queste linee di codice:</p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> UICheckBox.DataContext = <span style="color:blue;">this</span>;</span><br />
<span style="font-size:10pt;font-family:'Courier New';"> UITitle.DataContext = <span style="color:blue;">this</span>;</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">Quello che faccio è definire la sorgente per i vari binding , farlo da XAML è molto meno immediato e facilmente soggetto a malfunzionamenti!</p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">Considerato che l&#8217;<em>Header</em> è stato sostituito dal pannello rendiamolo di sola lettura:</p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">public</span> <span style="color:blue;">new</span> <span style="color:blue;">object</span> Header</span></p>
<p><span style="font-size:10pt;font-family:'Courier New';"> {</span><br />
<span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">get</span> { <span style="color:blue;">return</span> <span style="color:blue;">base</span>.Header; }</span><br />
<span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">//set {  Title = value; }</span></span><br />
<span style="font-size:10pt;font-family:'Courier New';"> }</span></p>
<p>Come vedete dal commento è possibile anche prevedere che tutto quello che viene inserito nell&#8217;<em>Header</em> passi direttamente nel <em>Title</em>, avendo così un comportamento molto simile sia a WPF che a Windows Form. Nonostante sia comodo (e allettante) come approccio questo implicherebbe avere in lettura oggetti diversi da quelli appena scritti, cosa che potrebbe dare inutili grattacapi a programmatori che in futuro volessero utilizzare il vostro codice! Quindi consiglio di lasciare la sola lettura all&#8217;<em>Header</em>!</p>
<p>Ora non rimane che crearci le Dependency Property appropriate:</p>
<ul>
<li><strong>Title</strong>: questa DP andrà a sostuiture l&#8217;<em>Header</em>, quindi deve essere di tipo <em>object</em>. Per un utilizzo vicino alle Windows Form si può prevedere di inserire un <em>CoerceValueCallback</em> che in caso di elementi non grafici converti in stringa l&#8217;oggetto (WPF ha un suo casting particolare, quindi è bene non affidarsi troppo a questo!), il controllo da inserire è davvero semplice:
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"><span style="color:blue;">object</span> result = value <span style="color:blue;">is</span> <span style="color:#2b91af;">UIElement</span> ? value : value.ToString();</span><br />
<span style="font-size:10pt;font-family:'Courier New';"><span style="color:blue;">return</span> result;</span></li>
<li><strong> Checked</strong>: questa DP indica se una CheckBox è selezionata o meno, quindi è di tipo booleano.</li>
<li><strong>TreeView.CheckBoxes</strong>: è collegata alla DP <em>TreeView</em> (un&#8217;altra classe dedicata non trattata in questo articolo) ed è di tipo <em>Visibility</em>. <em>TreeView</em> (di tipo <em>MyTreeView</em>, per rispettare la convenzione utilizzata) cambia al cambiare dell&#8217;elemento grafico padre, notificando tutti i nodi figli ed aggiornando la visibilità delle CheckBox. Essendo una classe lunga evito di inserirla in questo articolo che si focalizza su altri aspetti.</li>
</ul>
<p>Bene, direi che con poco sforzo abbiamo ottenuto il vecchio comportamento delle Windows Form e ci siamo lasciati lo spazio per inserire facilmente altre funzionalità nell&#8217;<em>Header</em>! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>PS: nel caso ve lo chiediate, ricordatevi che i <em>Nodes </em>di Windows Form sono gli <em>Items</em> di WPF, il metodo <em>EnsureVisible()</em> diventa <em>BringIntoView()</em>, l&#8217;elemento <em>TreeView</em> non esiste e dovete crearlo voi, gli eventi sono stati sostituiti dalle DP, non esiste il LabelEdit, i menu contestuali sono cambiati (anche se son facili da adattare), se non erro il Drag &amp; Drop è cambiato ma comunque è compatibile con Windows Form, non si pone più il problema dei refresh, ecc &#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pierpytom.wordpress.com/288/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pierpytom.wordpress.com/288/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pierpytom.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pierpytom.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pierpytom.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pierpytom.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pierpytom.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pierpytom.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pierpytom.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pierpytom.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pierpytom.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pierpytom.wordpress.com/288/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pierpytom.wordpress.com&blog=1785785&post=288&subd=pierpytom&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pierpytom.wordpress.com/2008/06/22/estendere-elementi-grafici-in-wpf/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/pierpytom-128.jpg" medium="image">
			<media:title type="html">pierpytom</media:title>
		</media:content>

		<media:content url="http://pierpytom.files.wordpress.com/2008/06/mytreenode.jpg" medium="image">
			<media:title type="html">mytreenode</media:title>
		</media:content>
	</item>
		<item>
		<title>Eventi in C#</title>
		<link>http://pierpytom.wordpress.com/2008/06/19/eventi-in-c/</link>
		<comments>http://pierpytom.wordpress.com/2008/06/19/eventi-in-c/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 09:43:59 +0000</pubDate>
		<dc:creator>pierpytom</dc:creator>
		
		<category><![CDATA[.Net]]></category>

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

		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://pierpytom.wordpress.com/?p=285</guid>
		<description><![CDATA[Utilizzo base degli eventi in C#.]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Ogni linguaggio di programmazione ha una sua gestione intrinseca degli eventi, per gli sviluppatori <em>C#</em> con <em>.NET 3.5</em> e l’utilizzo delle <em>Dependency Property</em> il lavoro si è semplificato, ma i concetti alla base prima o poi riemergono, ed ecco quindi un breve ripasso per un loro utilizzo <span style="text-decoration:underline;">molto</span> base!</p>
<p style="text-align:center;"><img class="alignnone size-medium wp-image-287 aligncenter" src="http://pierpytom.files.wordpress.com/2008/06/8838642958.jpeg?w=140&h=200" alt="C#, la guida completa" width="140" height="200" /></p>
<p><span id="more-285"></span>Supporrò che siate già in possesso dei concetti base (come per esempio dei delegati, una delle varie comodità del <em>C#</em> e fondamento degli eventi), quindi inserirò direttamente le classi con i commenti sul perché del codice! La fonte non sono io, ma il guru <em>Herbert Schildt</em> (lo consiglio per imparare anche <em>Java </em>e <em>C++</em>, oltre a <em>C#</em>), le classi create sono due: <strong>MyEvent</strong>, che è la proprietaria dell’evento, e <strong>Window1</strong>, che in pratica, con <em>Window_Loaded</em>, ha l’equivalente del <em>Main </em>(oramai ho preso l’abitudine di creare direttamente progetti <em>WPF </em>per tutto! ^_^)</p>
<p>Ah, considerato che leggere il codice con questo layout del blog è davvero ostico, in <a title="SimpleEvent, C#" href="http://pierpytom.files.wordpress.com/2008/06/simpleevent.doc" target="_blank">questo documento Word</a> ci sono le classi con il testo formattato ed indentato come si deve! Per approfondire l&#8217;argomento ci sono <a title="Delegati ed eventi" href="http://lia.deis.unibo.it/Courses/LabIngSw0708/Slide_3x6.pdf" target="_blank">queste slides</a> del corso di <a title="Laboratorio di Ingegneria del Software L-A" href="http://lia.deis.unibo.it/Courses/LabIngSw0708/" target="_blank">Laboratorio di Ingegneria del Software L-A</a> (troverete molto materiale utile su C# e .NET 2.0), mentre il libro da cui ho preso l&#8217;esempio sottostante è <em>C#, La guida completa</em> di <em>Herbert Schildt</em>.</p>
<hr />
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';color:blue;">namespace</span><span style="font-size:10pt;font-family:'Courier New';"> SimpleEvent</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';">{</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;">&lt;summary&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> Dichiara un delegato per un evento. </span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> Tutti gli eventi vengono attivati attraverso un delegato.  Pertanto il</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> delegato dell&#8217;evento ne definisce la firma. In questo caso  non ci sono </span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> parametri, tuttavia i parametri dell&#8217;evento sono ammessi.</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> Dato che gli eventi vengono in genere sotooposti a  multicasting, un </span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> evento dovrebbe restituire void.</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> Successivamente verrà creata una classe di eventi.</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span><span style="font-size:10pt;font-family:'Courier New';color:gray;">///</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> </span><span style="font-size:10pt;font-family:'Courier New';color:gray;">&lt;/summary&gt;</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">delegate</span> <span style="color:blue;">void</span> <span style="color:#2b91af;">MyEventHandler</span>();</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">class</span> <span style="color:#2b91af;">MyEvent</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span><span style="font-size:10pt;font-family:'Courier New';">{</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;">&lt;summary&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> Dichiarazione di un oggetto dell&#8217;evento. </span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> All&#8217;interno di MyEvent viene dichiarato anche il metodo  OnSomeEvent(), </span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> ossia il metodo che un programma chiamerà per segnalare (o  &#8220;attivare&#8221;) </span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> un evento (in altre parole, questo è il metodo chiamato  quando si </span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> verifica l&#8217;evento).</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> Infatti chiama un gestore di eventi tramite il delegato  SomeEvent, nel</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span><span style="font-size:10pt;font-family:'Courier New';color:gray;">///</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> modo:</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> if (SomeEvent != null )  SomeEvent();</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;">&lt;/summary&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">public</span> <span style="color:blue;">event</span> <span style="color:#2b91af;">MyEventHandler</span> SomeEvent;</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span><span style="font-size:10pt;font-family:'Courier New';color:gray;">///</span><span style="font-size:10pt;font-family:'Courier New';color:green;"> </span><span style="font-size:10pt;font-family:'Courier New';color:gray;">&lt;summary&gt;</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> Questo viene chiamato per attivare l&#8217;evento.</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;">&lt;/summary&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">public</span> <span style="color:blue;">void</span> OnSomeEvent()</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> {</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">// Un  gestore viene chiamato solo nel caso in cui SomeEvent </span></span></p>
<p class="MsoNormal" style="text-indent:35.4pt;line-height:normal;margin:0 0 .0001pt 35.4pt;"><span style="font-size:10pt;font-family:'Courier New';color:green;">// non sia null. Dato  che altre parti del programma devono </span></p>
<p class="MsoNormal" style="text-indent:35.4pt;line-height:normal;margin:0 0 .0001pt 35.4pt;"><span style="font-size:10pt;font-family:'Courier New';color:green;">// registrare un certo  interesse per un evento per ricevere</span></p>
<p class="MsoNormal" style="text-indent:35.4pt;line-height:normal;margin:0 0 .0001pt 35.4pt;"><span style="font-size:10pt;font-family:'Courier New';color:green;">// le notifiche  dell&#8217;evento, può accadere che OnSomeEvent()</span></p>
<p class="MsoNormal" style="text-indent:35.4pt;line-height:normal;margin:0 0 .0001pt 35.4pt;"><span style="font-size:10pt;font-family:'Courier New';color:green;">// venga chiamato  quando non è stato ancora registrato alcun</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">// gestore  di eventi. Per evitare di chiamare un oggetto null, </span></span></p>
<p class="MsoNormal" style="text-indent:35.4pt;line-height:normal;margin:0 0 .0001pt 35.4pt;"><span style="font-size:10pt;font-family:'Courier New';color:green;">// dovrete verificare  il delegato dell&#8217;evento per assicurarvi</span></p>
<p class="MsoNormal" style="text-indent:35.4pt;line-height:normal;margin:0 0 .0001pt 35.4pt;"><span style="font-size:10pt;font-family:'Courier New';color:green;">// che non sia null.</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">if</span> (SomeEvent != <span style="color:blue;">null</span>)</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> SomeEvent();</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> }</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> }</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';">}</span></p>
<hr />
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';color:blue;">namespace</span><span style="font-size:10pt;font-family:'Courier New';"> SimpleEvent</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';">{</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;">&lt;summary&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> Interaction logic for  Window1.xaml</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;">&lt;/summary&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">public</span> <span style="color:blue;">partial</span> <span style="color:blue;">class</span> <span style="color:#2b91af;">Window1</span> : <span style="color:#2b91af;">Window</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span><span style="font-size:10pt;font-family:'Courier New';">{</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">public</span> Window1()</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> {</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> InitializeComponent();</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> }</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;">&lt;summary&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> Un gestore di eventi.</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> In questo esempio, il gestore di eventi visualizza  semplicemente</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> un messaggio, tuttavia altri gestori potrebbero eseguire  azioni </span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> più importanti.</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:gray;">///</span><span style="color:green;"> </span><span style="color:gray;">&lt;/summary&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">static</span> <span style="color:blue;">void</span> handler()</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> {</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:#2b91af;">Console</span>.WriteLine(<span style="color:#a31515;">&#8220;L&#8217;evento si è verificato.&#8221;</span>);</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span><span style="font-size:10pt;font-family:'Courier New';">}</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:blue;">private</span> <span style="color:blue;">void</span> Window_Loaded(<span style="color:blue;">object</span> sender, <span style="color:#2b91af;">RoutedEventArgs</span> e)</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span><span style="font-size:10pt;font-family:'Courier New';">{</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">// Viene  creato un oggetto MyEvent:</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:#2b91af;">MyEvent</span> evt = <span style="color:blue;">new</span> <span style="color:#2b91af;">MyEvent</span>();</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">//  Aggiunge handler() alla lista di eventi, ovvero handler() viene</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">//  registrato come gestore per questo evento.</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">// Notare  che il gestore è stato aggiunto usando l&#8217;operatore +=. Gli</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">// eventi  supportano solamente += e -=. In questo caso handler() è </span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">//  static, tuttavia i gestori di eventi possono essere anche dei metodi</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span><span style="font-size:10pt;font-family:'Courier New';color:green;">// di istanza.</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> evt.SomeEvent += <span style="color:blue;">new</span> <span style="color:#2b91af;">MyEventHandler</span>(handler);</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span><span style="font-size:10pt;font-family:'Courier New';color:green;">// Nota: se volessi registrare più oggetti ad un evento ecco la bozza</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">// di  soluzione:</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">//      OggettoX xObj = new OggettoX();</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span><span style="font-size:10pt;font-family:'Courier New';color:green;">//      OggettoY  yObj = new OggettoY();</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">//      evt.SomeEvent  += new MyEventHandler(xObj.Xhandler);</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">//      evt.SomeEvent  += new MyEventHandler(yObj.Yhandler);</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';color:green;"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> </span><span style="font-size:10pt;font-family:'Courier New';color:green;">// Attiva l&#8217;evento.</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">// La  chiamata OnSomeEvent() comporta la chiamata di tutti i gestori </span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">// di  eventi registrati. In questo caso c&#8217;è un solo gestore registrato, </span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">// ma ce  ne potrebbero essere di più.</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> evt.OnSomeEvent();</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> <span style="color:green;">// Se  avessi registrato più handler verrebbero chiamati tutti.</span></span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';color:green;"> </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> }</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';"> }</span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:'Courier New';">}</span></p>
<hr />
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pierpytom.wordpress.com/285/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pierpytom.wordpress.com/285/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pierpytom.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pierpytom.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pierpytom.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pierpytom.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pierpytom.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pierpytom.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pierpytom.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pierpytom.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pierpytom.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pierpytom.wordpress.com/285/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pierpytom.wordpress.com&blog=1785785&post=285&subd=pierpytom&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pierpytom.wordpress.com/2008/06/19/eventi-in-c/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/pierpytom-128.jpg" medium="image">
			<media:title type="html">pierpytom</media:title>
		</media:content>

		<media:content url="http://pierpytom.files.wordpress.com/2008/06/8838642958.jpeg?w=140" medium="image">
			<media:title type="html">C#, la guida completa</media:title>
		</media:content>
	</item>
		<item>
		<title>Bianco Nataaaaaal!!!</title>
		<link>http://pierpytom.wordpress.com/2008/06/18/bianco-nataaaaaal/</link>
		<comments>http://pierpytom.wordpress.com/2008/06/18/bianco-nataaaaaal/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 07:35:52 +0000</pubDate>
		<dc:creator>pierpytom</dc:creator>
		
		<category><![CDATA[Windows]]></category>

		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://pierpytom.wordpress.com/?p=282</guid>
		<description><![CDATA[Vista che si blocca? Quando mai!]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Come può scoppiare in tragedia un semplice Copia &amp; Incolla! Terminare <em>explorer </em>non è stato sufficiente, ma (fortunatamente) è bastato un riavvio della sola sessione!</p>
<p style="text-align:center;"><a href="http://pierpytom.files.wordpress.com/2008/06/immagine.jpg"><img class="alignnone size-medium wp-image-283 aligncenter" src="http://pierpytom.files.wordpress.com/2008/06/immagine.jpg?w=300&h=187" alt="Vista Bianco - Screeshot" width="300" height="187" /></a></p>
<p>PS: Lo sfondo <span style="text-decoration:underline;">era</span> nero!</p>
<p>PPS: E nel frattempo il Windows XP del fisso ha deciso che è giunto il momento di disinstallare i driver della scheda ehernet! -.-</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pierpytom.wordpress.com/282/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pierpytom.wordpress.com/282/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pierpytom.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pierpytom.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pierpytom.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pierpytom.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pierpytom.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pierpytom.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pierpytom.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pierpytom.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pierpytom.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pierpytom.wordpress.com/282/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pierpytom.wordpress.com&blog=1785785&post=282&subd=pierpytom&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pierpytom.wordpress.com/2008/06/18/bianco-nataaaaaal/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/pierpytom-128.jpg" medium="image">
			<media:title type="html">pierpytom</media:title>
		</media:content>

		<media:content url="http://pierpytom.files.wordpress.com/2008/06/immagine.jpg?w=300" medium="image">
			<media:title type="html">Vista Bianco - Screeshot</media:title>
		</media:content>
	</item>
		<item>
		<title>Grub meno affollato</title>
		<link>http://pierpytom.wordpress.com/2008/06/15/grub-meno-affollato/</link>
		<comments>http://pierpytom.wordpress.com/2008/06/15/grub-meno-affollato/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 19:21:07 +0000</pubDate>
		<dc:creator>pierpytom</dc:creator>
		
		<category><![CDATA[Linux]]></category>

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

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

		<guid isPermaLink="false">http://pierpytom.wordpress.com/?p=280</guid>
		<description><![CDATA[Avere un solo kernel linux nella lista di grub.]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Sicuramente avrete notato che ad ogni aggiornamento del kernel Ubuntu mantiene le 2 configurazioni precedenti per sicurezza! (Nell&#8217;ultima versione anche più, mi sa)!</p>
<p style="text-align:center;"><img class="aligncenter" style="border:1px solid black;" src="http://upload.wikimedia.org/wikipedia/it/thumb/b/b3/Gnu_meditate.png/225px-Gnu_meditate.png" alt="grub" width="224" height="195" /></p>
<p><span id="more-280"></span>Questo comportamento può tornare utile in (raro) caso di computer con hardware particolarmente problematico, ma in genere le configurazioni precedenti possono essere omesse dal menu (per poi accedervi, al massimo, attraverso la linea di comando di grub)!</p>
<p>Configuriamo Ubuntu affinché ci mostri solo il kernel più recente (con la sua relativa opzione di recovery)!</p>
<p>Apriamo <em>menu.lst</em> da <em>root</em> con:</p>
<p><code>sudo gedit /boot/grub/menu.lst</code></p>
<p>Nella<em> Automagic Kernel List</em> cerchiamo la linea:</p>
<p><code># howmany=all</code></p>
<p>e sostituiamola con:</p>
<p><code># howmany=1</code></p>
<p>Ora lanciamo il comando</p>
<p><code>$ sudo update-grub</code></p>
<p>per avere il grub aggiornato da subito!</p>
<p>Finito! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pierpytom.wordpress.com/280/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pierpytom.wordpress.com/280/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pierpytom.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pierpytom.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pierpytom.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pierpytom.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pierpytom.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pierpytom.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pierpytom.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pierpytom.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pierpytom.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pierpytom.wordpress.com/280/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pierpytom.wordpress.com&blog=1785785&post=280&subd=pierpytom&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pierpytom.wordpress.com/2008/06/15/grub-meno-affollato/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/pierpytom-128.jpg" medium="image">
			<media:title type="html">pierpytom</media:title>
		</media:content>

		<media:content url="http://upload.wikimedia.org/wikipedia/it/thumb/b/b3/Gnu_meditate.png/225px-Gnu_meditate.png" medium="image">
			<media:title type="html">grub</media:title>
		</media:content>
	</item>
		<item>
		<title>Guerre stellari con un floppy drive!</title>
		<link>http://pierpytom.wordpress.com/2008/06/12/guerre-stellari-con-un-floppy-drive/</link>
		<comments>http://pierpytom.wordpress.com/2008/06/12/guerre-stellari-con-un-floppy-drive/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 21:19:12 +0000</pubDate>
		<dc:creator>pierpytom</dc:creator>
		
		<category><![CDATA[cazzeggio]]></category>

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

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

		<guid isPermaLink="false">http://pierpytom.wordpress.com/?p=279</guid>
		<description><![CDATA[La melodia di guerre stellari suonata con un lettore di floppy!]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Vedere per credere! o_O</p>
<p><span style="text-align:center; display: block;"><a href="http://pierpytom.wordpress.com/2008/06/12/guerre-stellari-con-un-floppy-drive/"><img src="http://img.youtube.com/vi/X4SCSGRVAQE/2.jpg" alt="" /></a></span></p>
<p>(Video copiato palesemente da <a title="sissina" href="http://sissina.blogs.it/2008/06/12/questo-aatilde-auml-assolutamente-da-ved-4306254" target="_blank">questo post di sissina</a>! ^_^)</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pierpytom.wordpress.com/279/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pierpytom.wordpress.com/279/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pierpytom.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pierpytom.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pierpytom.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pierpytom.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pierpytom.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pierpytom.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pierpytom.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pierpytom.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pierpytom.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pierpytom.wordpress.com/279/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pierpytom.wordpress.com&blog=1785785&post=279&subd=pierpytom&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pierpytom.wordpress.com/2008/06/12/guerre-stellari-con-un-floppy-drive/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/pierpytom-128.jpg" medium="image">
			<media:title type="html">pierpytom</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/X4SCSGRVAQE/2.jpg" medium="image" />
	</item>
		<item>
		<title>Avviare gli effetti di scorrimento in Vista</title>
		<link>http://pierpytom.wordpress.com/2008/06/11/avviare-gli-effetti-di-scorrimento-in-vista/</link>
		<comments>http://pierpytom.wordpress.com/2008/06/11/avviare-gli-effetti-di-scorrimento-in-vista/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 07:58:43 +0000</pubDate>
		<dc:creator>pierpytom</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

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

		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://pierpytom.wordpress.com/?p=277</guid>
		<description><![CDATA[Avviare gli effetti di scorrimento finestra in Vista.]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Questo è solo un appunto veloce: in Windows Vista è possibile avviare l&#8217;effetto scorrimento finestre per poi muoversi con i soli tasti freccia (similmente a molti effetti di compiz) tenendo premuto anche il tasto <em>Ctrl</em>.</p>
<p style="text-align:center;"><img class="alignnone size-full wp-image-278 aligncenter" src="http://pierpytom.files.wordpress.com/2008/06/vista-task-wow.jpg?w=400&h=250" alt="vista-task-wow" width="400" height="250" /></p>
<p><span id="more-277"></span> In pratica:</p>
<ul>
<li><code>Ctrl + Alt + Tab</code>: avvia il task switcher, con i tasti destra e sinistra ci si sposta tra le applicazioni</li>
<li><code>Ctrl + Win + Tab</code>: avvia l&#8217;effetto <em>wow</em> (non conosco il nome), come nel caso precedente, con i tasti destra e sinistra ci si muove tra le applicazioni</li>
</ul>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pierpytom.wordpress.com/277/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pierpytom.wordpress.com/277/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pierpytom.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pierpytom.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pierpytom.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pierpytom.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pierpytom.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pierpytom.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pierpytom.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pierpytom.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pierpytom.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pierpytom.wordpress.com/277/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pierpytom.wordpress.com&blog=1785785&post=277&subd=pierpytom&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pierpytom.wordpress.com/2008/06/11/avviare-gli-effetti-di-scorrimento-in-vista/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/pierpytom-128.jpg" medium="image">
			<media:title type="html">pierpytom</media:title>
		</media:content>

		<media:content url="http://pierpytom.files.wordpress.com/2008/06/vista-task-wow.jpg" medium="image">
			<media:title type="html">vista-task-wow</media:title>
		</media:content>
	</item>
	</channel>
</rss>