<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>[vrde&#124;agranzot]'s weblog</title>
	<atom:link href="http://vrde.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vrde.wordpress.com</link>
	<description>I already forget how I used to feel about you.</description>
	<lastBuildDate>Tue, 27 Oct 2009 22:58:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>it</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='vrde.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/17231eac6aa813ac59969ac7b5022054?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>[vrde&#124;agranzot]'s weblog</title>
		<link>http://vrde.wordpress.com</link>
	</image>
			<item>
		<title>Caro Candidato @ LinuxDay 2009</title>
		<link>http://vrde.wordpress.com/2009/10/28/caro-candidato-linuxday-2009/</link>
		<comments>http://vrde.wordpress.com/2009/10/28/caro-candidato-linuxday-2009/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 22:56:59 +0000</pubDate>
		<dc:creator>vrde</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[vita]]></category>
		<category><![CDATA[carocandidato]]></category>
		<category><![CDATA[cibo per gatti]]></category>
		<category><![CDATA[linuxday]]></category>
		<category><![CDATA[openlabs]]></category>
		<category><![CDATA[slide]]></category>

		<guid isPermaLink="false">http://vrde.wordpress.com/?p=377</guid>
		<description><![CDATA[Sabato 24 ottobre, in occasione del LinuxDay, ho presentato l&#8217;iniziativa Caro Candidato (sì, sempre quella!).
Devo ringraziare moltissimo i ragazzi di OpenLabs che sono riusciti a trovare, all&#8217;ultimo momento, 30 minuti per farmi presentare l&#8217;iniziativa.
Queste sono le slide che ho presentato:

download pdf
(ho anche sistemato la percentuale errata, avevo scritto qualcosa tipo:
50 aderenti -&#62; 6 eletti -&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=377&subd=vrde&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Sabato 24 ottobre, in occasione del <a href="http://www.linuxday.it/">LinuxDay</a>, ho presentato l&#8217;iniziativa <a href="http://www.carocandidato.org/">Caro Candidato</a> (sì, sempre quella!).</p>
<p>Devo ringraziare moltissimo i ragazzi di <a href="http://www.openlabs.it/">OpenLabs</a> che sono riusciti a trovare, all&#8217;ultimo momento, 30 minuti per farmi presentare l&#8217;iniziativa.</p>
<p>Queste sono le slide che ho presentato:<br />
<object type='application/x-shockwave-flash' wmode='transparent' data='http://static.slideshare.net/swf/ssplayer2.swf?id=2361347&#038;doc=antani-091027174310-phpapp01' width='600' height='492'><param name='movie' value='http://static.slideshare.net/swf/ssplayer2.swf?id=2361347&#038;doc=antani-091027174310-phpapp01' /><param name='allowFullScreen' value='true' /><param name='allowScriptAccess' value='always' /></object><br />
<a href='http://vrde.files.wordpress.com/2009/10/carocandidato-linuxday09.pdf'>download pdf</a></p>
<p>(ho anche sistemato la percentuale errata, avevo scritto qualcosa tipo:<br />
<strong>50 aderenti -&gt; 6 eletti -&gt; 8.3%</strong><br />
alla slide #8 trovate la versione corretta)</p>
<p><em>checc&#8217;avevo un po&#8217; ddansia</em>, devo ancora farmi le ossa per presentare davanti al pubblico ma non mi sembra sia andata male :P</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vrde.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vrde.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vrde.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vrde.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vrde.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vrde.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vrde.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vrde.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vrde.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vrde.wordpress.com/377/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=377&subd=vrde&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vrde.wordpress.com/2009/10/28/caro-candidato-linuxday-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a36ba5dbe48f18209fbc3061c7ad4f2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vrde</media:title>
		</media:content>
	</item>
		<item>
		<title>La scuola deve formare cittadini e non consumatori (cit.)</title>
		<link>http://vrde.wordpress.com/2009/10/08/la-scuola-deve-formare-cittadini-e-non-consumatori-cit/</link>
		<comments>http://vrde.wordpress.com/2009/10/08/la-scuola-deve-formare-cittadini-e-non-consumatori-cit/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 10:41:06 +0000</pubDate>
		<dc:creator>vrde</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[vita]]></category>
		<category><![CDATA[Brunetta]]></category>
		<category><![CDATA[evviva l'Italia]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[scuola]]></category>
		<category><![CDATA[software libero]]></category>

		<guid isPermaLink="false">http://vrde.wordpress.com/?p=362</guid>
		<description><![CDATA[
 foto di jasoneppink
Il 5 ottobre l&#8217;Associazione per il Software Libero ha pubblicato il comunicato stampa dal titolo Software libero per la scuola.
Brunetta e la Gelmini il 25 settembre parlano di nuove iniziative per la scuola digitale.
Nuove iniziative per la scuola digitale vuol dire tutte le cose belle che potete pensare: efficacia, accessibilità, semplificazione, ottimizzazione, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=362&subd=vrde&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div style="float:left;width:250px;height:200px;text-align:center;margin:0 10px 0 5px;">
<a href="http://vrde.wordpress.com/2009/10/08/la-scuola-deve-formare-cittadini-e-non-consumatori-cit/"><img src="http://farm3.static.flickr.com/2636/3907510014_6c53410c12_m_d.jpg" alt="Microsoft Windows sunshield" title="Microsoft Windows sunshield"></a> <a href="http://www.flickr.com/photos/jasoneppink/3907510014/">foto</a> di <a href="http://www.flickr.com/photos/jasoneppink/">jasoneppink</a></div>
<p>Il 5 ottobre l&#8217;<a href="http://softwarelibero.it/">Associazione per il Software Libero</a> ha pubblicato il comunicato stampa dal titolo <a href="http://softwarelibero.it/software_libero_scuola">Software libero per la scuola</a>.</p>
<p>Brunetta e la Gelmini il <a href="http://www.governo.it/Notizie/Palazzo%20Chigi/dettaglio.asp?d=50614">25 settembre</a> parlano di <em>nuove iniziative per la scuola digitale</em>.<br />
<em>Nuove iniziative per la scuola digitale</em> vuol dire tutte le cose belle che potete pensare: efficacia, accessibilità, semplificazione, ottimizzazione, diffusione di strumenti informatici e contrasto all&#8217;analfabetismo digitale.</p>
<p>Ma come si <em>implementa™</em> l&#8217;innovazione digitale nella scuola? Basta firmare un <a href="http://www.governo.it/GovernoInforma/Dossier/scuola_digitale/protocollo_Brunetta_Gelmini.pdf">protocollo di intesa con Microsoft</a> (il pdf è una simpatica scansione&#8230; e parlano di innovazione&#8230; WTF!).</p>
<p>E come non infilarci dentro i terremotati per rendere l&#8217;iniziativa più nobile? Dall&#8217;art. 2 del protocollo:</p>
<blockquote><p>Le Parti concorderanno iniziative da porre in essere per le istituzioni scolastiche coinvolte nel terremoto dell&#8217;Abruzzo, in particolare per quelle poste nella zona cratere.<br />
Tali iniziative, disciplinate da specifico accordo, saranno volte a sostenere l&#8217;offerta formativa delle istituzioni coinvolte per permettere alle stesse di riprendere in tempi brevi l&#8217;erogazione dei servizi.</p></blockquote>
<p>Se li mettete in mezzo abbiate almeno l&#8217;accortezza di definire quali saranno queste <strong>iniziative</strong>.</p>
<h3>Gli impegni di Microsoft</h3>
<p>A costo zero si impegna a (qui solo alcune, per tutte dai un occhio all&#8217;Art. 3 del protocollo):</p>
<ul>
<li>fornire gratuitamente il sistema operativo e/o applicativo;</li>
<li>collaborare con le proprie consociate affinché vengano riconosciute a studenti e docenti condizioni agevolate d&#8217;acquisto di soluzioni e prodotti;</li>
<li>trovare sinergie™ tra le iniziative del Piano del MIUR [...], il Piano eGov2012 ed i programmi Microsoft al fine di arricchire l&#8217;offerta formativa rivolta agli studenti nell&#8217;area delle ICT;</li>
<li>mettere a disposizione i propri contenuti multimediali, denominati <em><a href="http://www.microsoft.com/About/CorporateCitizenship/Citizenship/giving/programs/UP/digitalliteracy/itn/default.mspx">digital literacy</a></em>, per trasmettere adeguate conoscenze e abilità nell&#8217;uso delle nuove tecnologie a docenti e studenti di istituti scolastici di ogni ordine e grado;</li>
<li>rendere disponibile per InnovaScuola contenuti digitali dei propri archivi [...] per consentire ai docenti la produzione di contenuti didattici regolati secondo i principi dei Creative Commons; <strong>[lodevole, ma generico, che licenza?]</strong></li>
<li><strong>[questa è bella, giusta per concludere questa serie di cazzate]</strong> promuovere concorsi tra gli studenti al fine di incoraggiarli a utilizzare la loro immaginazione, passione e creatività per cercare soluzioni a problemi concreti attraverlo le nuove tecnologie e per la produzione di contenuti didattici digitali che saranno messi a disposizione sulla piattaforma Innovascuola;</li>
</ul>
<h3>Gli impegni della Gelmini e di Brunetta</h3>
<p>Anche qui alcuni, non tutti:</p>
<ul>
<li>offrire supporto per il coinvolgimento degli Uffici Scolastici Regionali e Provinciali per una<br />
migliore comunicazione delle iniziative, per il coinvolgimento di esperti a livello locale e per<br />
la realizzazione su base territoriale degli obiettivi e delle iniziative; <strong>[bello, ma gli esperti sono per caso i partner certificati Microsoft?]</strong></li>
<li>sostenere, in tutti i casi in cui lo si riterrà opportuno, l&#8217;utilizzo da parte di docenti e studenti dei contenuti formativi messi a disposizione da Microsoft come &#8220;Digital Literacy&#8221;<br />
attraverso la loro diffusione sui canali di comunicazione del MIUR. <strong>[ah quindi spingono perché la gente usi prodotti Microsoft]</strong></li>
</ul>
<h3>insomma&#8230;</h3>
<p>Onestamente <a href="http://vrde.wordpress.com/2009/04/23/33-pagine-di-comportamenti-anticompetitivi-di-microsoft/">Microsoft non è che mi stia proprio simpatica</a>, Brunetta lo conosciamo anche per <a href="http://vrde.wordpress.com/2009/04/21/uelcam-giampisi-aka-qualcuno-pensi-ai-bambini%E2%84%A2/">JumPC</a> e della Gelmini non parliamo.</p>
<p><strong>Al di là di quello che ho scritto in questo post</strong> (faccio parte della <em><a href="http://madbob.wordpress.com/2009/02/05/una-grande-famiglia/">cerchia di consulenti</a></em> dell&#8217;<a href="http://softwarelibero.it/">Associazione per il Software Libero</a> ma ovviamente nel mio blog sto parlando a nome mio), la conclusione del <a href="http://softwarelibero.it/software_libero_scuola">comunicato stampa di Assoli</a> è la seguente:</p>
<blockquote><p>Per questo l&#8217;Associazione per il Software Libero ha deciso di intervenire nel procedimento amministrativo in corso con un&#8217;istanza trasmessa oggi al Ministro dell&#8217;Istruzione dell&#8217;Università e della Ricerca ed al Ministro per la Pubblica Amministrazione e l&#8217;Innovazione, e, per il miglior perseguimento del bene comune, domanda la modifica del Protocollo di Intesa sottoscritto con Microsoft S.r.l..
</p></blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vrde.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vrde.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vrde.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vrde.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vrde.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vrde.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vrde.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vrde.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vrde.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vrde.wordpress.com/362/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=362&subd=vrde&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vrde.wordpress.com/2009/10/08/la-scuola-deve-formare-cittadini-e-non-consumatori-cit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a36ba5dbe48f18209fbc3061c7ad4f2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vrde</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2636/3907510014_6c53410c12_m_d.jpg" medium="image">
			<media:title type="html">Microsoft Windows sunshield</media:title>
		</media:content>
	</item>
		<item>
		<title>Boris — Pink</title>
		<link>http://vrde.wordpress.com/2009/10/05/boris-%e2%80%94-pink/</link>
		<comments>http://vrde.wordpress.com/2009/10/05/boris-%e2%80%94-pink/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 20:25:21 +0000</pubDate>
		<dc:creator>vrde</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[boris]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://vrde.wordpress.com/?p=358</guid>
		<description><![CDATA[
The band.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=358&subd=vrde&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="text-align:center; display: block;"><a href="http://vrde.wordpress.com/2009/10/05/boris-%e2%80%94-pink/"><img src="http://img.youtube.com/vi/5WkaeBZ1kGU/2.jpg" alt="" /></a></span></p>
<p><a href="http://en.wikipedia.org/wiki/Boris_%28band%29">The band</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vrde.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vrde.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vrde.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vrde.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vrde.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vrde.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vrde.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vrde.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vrde.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vrde.wordpress.com/358/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=358&subd=vrde&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vrde.wordpress.com/2009/10/05/boris-%e2%80%94-pink/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a36ba5dbe48f18209fbc3061c7ad4f2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vrde</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/5WkaeBZ1kGU/2.jpg" medium="image" />
	</item>
		<item>
		<title>how to use WSGI + Authkit + Beaker for OpenID authentication</title>
		<link>http://vrde.wordpress.com/2009/09/20/how-to-use-wsgi-authkit-beaker-for-openid-authentication/</link>
		<comments>http://vrde.wordpress.com/2009/09/20/how-to-use-wsgi-authkit-beaker-for-openid-authentication/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 01:28:49 +0000</pubDate>
		<dc:creator>vrde</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[authkit]]></category>
		<category><![CDATA[beaker]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[openid]]></category>
		<category><![CDATA[pylons]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[WSGI]]></category>

		<guid isPermaLink="false">http://vrde.wordpress.com/?p=328</guid>
		<description><![CDATA[
This is a simple how to for enabling OpenID authentication using Authkit (and Beaker, we need cooookies!!!) over WSGI.
The following snippet is inspired by the (broken?) example I found in the Pylons documentation wiki.

from authkit.authenticate import middleware, sample_app
from beaker.middleware import SessionMiddleware

app = middleware(
    sample_app,
    setup_method='openid,cookie',
    openid_path_signedin='/private',
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=328&subd=vrde&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://vrde.wordpress.com/2009/09/20/how-to-use-wsgi-authkit-beaker-for-openid-authentication/"><img src="http://vrde.files.wordpress.com/2009/09/openid.png?w=266&#038;h=144" style="border:1px solid black;" alt="openid auth form" title="openid auth form" width="266" height="144" class="alignright size-full wp-image-331" /></a></p>
<p>This is a simple how to for enabling <a href="http://en.wikipedia.org/wiki/OpenID">OpenID</a> authentication using <a href="http://authkit.org/">Authkit</a> (and <a href="http://wiki.pylonshq.com/display/beaker/Home">Beaker</a>, we need <a href="http://i193.photobucket.com/albums/z301/Clairvoyant_Disease_A7X/EvilCookies.jpg">cooookies</a>!!!) over <a href="http://wsgi.org/wsgi/">WSGI</a>.</p>
<p>The following <a href="http://vrde.wordpress.com/tag/snippet/">snippet</a> is inspired by the (broken?) <a href="http://wiki.pylonshq.com/pages/viewpage.action?pageId=6684791">example</a> I found in the <a href="http://pylonshq.com/">Pylons</a> <a href="http://wiki.pylonshq.com/dashboard.action">documentation wiki</a>.</p>
<p></p>
<pre class="brush: python;">from authkit.authenticate import middleware, sample_app
from beaker.middleware import SessionMiddleware

app = middleware(
    sample_app,
    setup_method='openid,cookie',
    openid_path_signedin='/private',
    openid_store_type='file',
    openid_store_config='',
    cookie_secret='secret encryption string',
    cookie_signoutpath = '/signout',
)

app = SessionMiddleware(app, key='mysession', secret='randomsecret')

if __name__ == '__main__':
    from paste.httpserver import serve
    serve(app, host='0.0.0.0', port=8080)
</pre>
<p>TODO: fix the broken example in the wiki (:</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vrde.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vrde.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vrde.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vrde.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vrde.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vrde.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vrde.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vrde.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vrde.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vrde.wordpress.com/328/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=328&subd=vrde&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vrde.wordpress.com/2009/09/20/how-to-use-wsgi-authkit-beaker-for-openid-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a36ba5dbe48f18209fbc3061c7ad4f2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vrde</media:title>
		</media:content>

		<media:content url="http://vrde.files.wordpress.com/2009/09/openid.png" medium="image">
			<media:title type="html">openid auth form</media:title>
		</media:content>
	</item>
		<item>
		<title>how to use simple HTTP auth with hg serve</title>
		<link>http://vrde.wordpress.com/2009/09/02/how-to-use-simple-http-auth-with-hg-serve/</link>
		<comments>http://vrde.wordpress.com/2009/09/02/how-to-use-simple-http-auth-with-hg-serve/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 12:49:41 +0000</pubDate>
		<dc:creator>vrde</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[hg]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[WSGI]]></category>

		<guid isPermaLink="false">http://vrde.wordpress.com/?p=311</guid>
		<description><![CDATA[

Last night Kiwi and I were exploring Mercurial for our über-secret-project.
Mercurial is, like GIT, a distributed revision control system (if you want to deeply understand the differences between those two systems take a look to http://gitvsmercurial.com/)
After some tinkering with the great hg command, we discovered how to collaborate with other people using the informal sharing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=311&subd=vrde&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div style="float:right;width:200px;height:240px;margin:0 10px;">
<a href="http://vrde.wordpress.com/2009/09/02/how-to-use-simple-http-auth-with-hg-serve/"><img src="http://www.selenic.com/hg-logo/logo-droplets-200.png" alt="Logo Mercurial"></a></div>
<p>Last night <a href="http://kiwized.net/">Kiwi</a> and <a href="http://vrde.wordpress.com/">I</a> were exploring <a href="http://mercurial.selenic.com/wiki/">Mercurial</a> for our über-secret-project.<br />
Mercurial is, like <a href="http://git-scm.com/">GIT</a>, a distributed revision control system (if you want to deeply understand the differences between those two systems take a look to <a href="http://gitvsmercurial.com/">http://gitvsmercurial.com/</a>)</p>
<p>After <a href="http://mercurial.selenic.com/wiki/Tutorial">some tinkering</a> with the great <code>hg</code> command, we discovered how to collaborate with other people using the <a href="http://hgbook.red-bean.com/read/collaborating-with-other-people.html#sec:collab:serve">informal sharing</a> (thanks to <code>hg serve</code>).</p>
<p>With the <em>informal sharing</em> we both expose our repos in a read-only mode so we can <code>hg clone</code> or <code>hg pull</code> changes. No <code>hg push</code> is permitted (it is read-only!).</p>
<p>Note that:</p>
<blockquote><p>Because it provides unauthenticated read access to all clients, you should only use <code>hg serve</code> in an environment where you either don&#8217;t care, or have complete control over, who can access your network and pull data from your repository.</p></blockquote>
<p><code>hg serve</code> hasn&#8217;t anything for access control&#8230; but we need it &#8217;cause our project is an <em>über-secret-project</em>. Of course we can use Mercurial with ssh, but <code>hg serve</code> is so cool :D</p>
<p>And here is the second part aka <strong>the beauty of <a href="http://www.wsgi.org/wsgi/">WSGI</a> specification</strong>.</p>
<p>Mercurial is written in python, the <code>hg serve</code> is also a python program and the <code>hgweb</code> (the mercurial web-app module) exposes a very toasty class: <code>mercurial.hgweb.hgweb_mod.hgweb</code> [<a href="http://pylonshq.com/pasties/1026">kudos to tomfmason</a>]</p>
<p>An <code>hgweb</code> object is a WSGI application so you can use it with any <a href="http://www.wsgi.org/wsgi/Middleware_and_Utilities">middleware</a> you like. For a <em>basic HTTP auth</em> I used <a href="http://authkit.org/">authkit</a> (you can find a simple example in the <a href="http://wiki.pylonshq.com/display/authkitcookbook/Basic">pylonshq wiki</a>, if you run the example please note that the <em>protected area</em> is under the <a href="http://localhost:8080/private">http://localhost:8080/private</a> path).</p>
<p>After a lot of swearing<code>^H^H^H^H</code>ting (I never used WSGI before) this is the result:</p>
<pre class="brush: python;">from paste import httpserver
from mercurial.hgweb.hgweb_mod import hgweb

from authkit.authenticate import middleware
from authkit.permissions import RemoteUser
from authkit.authorize import authorize_request

PATH_TO_REPO = '/home/vrde/work/secret-project'
TITLE = 'secret project repo'

hgapp = hgweb(PATH_TO_REPO, TITLE)
def simple_app(environ, start_response):
    authorize_request(environ, RemoteUser())
    response = hgapp(environ,start_response)
    return response

def valid(environ, username, password):
    return username == 'kiwi' and password == 'antani'

app = middleware(
    simple_app,
    setup_method='basic',
    basic_realm='Secret Project Realm',
    basic_authenticate_function=valid
)

httpserver.serve(app, host='0.0.0.0', port='8000')
</pre>
<p>If you want to try the snippet you need <a href="http://pythonpaste.org/">paste</a> and <a href="http://authkit.org/">authkit</a> frameworks.</p>
<p>The code wraps the Mercurial server and asks for user and password, if the auth is successful the client can <code>clone</code>, <code>pull</code> or visit the web interface of the repo.</p>
<p><strong>TODO</strong>: patch the <code>hg serve</code> source and add a parameter for the <code>simple HTTP auth</code>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vrde.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vrde.wordpress.com/311/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vrde.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vrde.wordpress.com/311/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vrde.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vrde.wordpress.com/311/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vrde.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vrde.wordpress.com/311/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vrde.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vrde.wordpress.com/311/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=311&subd=vrde&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vrde.wordpress.com/2009/09/02/how-to-use-simple-http-auth-with-hg-serve/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a36ba5dbe48f18209fbc3061c7ad4f2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vrde</media:title>
		</media:content>

		<media:content url="http://www.selenic.com/hg-logo/logo-droplets-200.png" medium="image">
			<media:title type="html">Logo Mercurial</media:title>
		</media:content>
	</item>
		<item>
		<title>Cheers from Boarduino!</title>
		<link>http://vrde.wordpress.com/2009/08/22/cheers-from-boarduino/</link>
		<comments>http://vrde.wordpress.com/2009/08/22/cheers-from-boarduino/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 15:43:04 +0000</pubDate>
		<dc:creator>vrde</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[vita]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Boarduino]]></category>
		<category><![CDATA[HAR2009]]></category>
		<category><![CDATA[Mitch Altman]]></category>

		<guid isPermaLink="false">http://vrde.wordpress.com/?p=284</guid>
		<description><![CDATA[
Wow, the days at HAR were fuckin&#8217; awesome.
Thanks to Mitch Altman and his willing friend I bought and build an Arduino clone: the Boarduino.
What is an Arduino?
Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It&#8217;s an open-source physical computing platform based on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=284&subd=vrde&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img src="http://vrde.files.wordpress.com/2009/08/boarduino-macro.jpg?w=450&#038;h=200" alt="Boarduino v1.0" title="boarduino-macro" width="450" height="200" class="size-full wp-image-285" /></p>
<p>Wow, the days at <a href="http://har2009.org/">HAR</a> were fuckin&#8217; awesome.</p>
<p>Thanks to <a href="http://en.wikipedia.org/wiki/Mitch_Altman">Mitch Altman</a> and his willing friend I bought and build an <a href="http://www.arduino.cc/">Arduino</a> clone: the <a href="http://www.ladyada.net/make/boarduino/">Boarduino</a>.</p>
<p>What is an Arduino?</p>
<blockquote><p>Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It&#8217;s an open-source physical computing platform based on a simple microcontroller board, and a development environment for writing software for the board. [from <a href="http://www.arduino.cc/en/Guide/Introduction">Arduino - Introduction</a>]</p></blockquote>
<div id="attachment_288" class="wp-caption alignright" style="width: 160px"><a href="http://vrde.files.wordpress.com/2009/08/making-0.jpg"><img src="http://vrde.files.wordpress.com/2009/08/making-0.jpg?w=150&#038;h=112" alt="Boarduino Kit" title="Boarduino Kit" width="150" height="112" class="size-thumbnail wp-image-288" /></a><p class="wp-caption-text">Boarduino Kit</p></div>
<p>The Boarduino is 100% compatible with the Arduino software, the main differences are:</p>
<ul>
<li>the USB port is replaced with a serial header (so you need a USB to TTL converter);</li>
<li>it can easily be inserted on a solderless breadboard;</li>
<li><del datetime="2009-08-23T17:51:41+00:00">you make it</del> (: (<em>soldering is a fun!</em>). [<a href="http://arduino.cc/en/Main/ArduinoBoardSerialSingleSided3">this is true</a> for the Arduino too]</li>
</ul>
<div id="attachment_289" class="wp-caption alignright" style="width: 160px"><a href="http://vrde.files.wordpress.com/2009/08/making-1.jpg"><img src="http://vrde.files.wordpress.com/2009/08/making-1.jpg?w=150&#038;h=112" alt="Boarduino Kit - making" title="Boarduino Kit - making" width="150" height="112" class="size-thumbnail wp-image-289" /></a><p class="wp-caption-text">Boarduino Kit - da making</p></div>
<p>After a very relaxing soldering (really! it clears your mind! or it was the soldering vapours&#8230; never mind&#8230;) Mitch connected the Boarduino to the laptop and, wow, it worked :D</p>
<p>(If you, like me, don&#8217;t know how to connect the TTL cable remember: GRN means <em>green</em>, not <em>ground</em>! :P )</p>
<div id="attachment_290" class="wp-caption alignright" style="width: 160px"><a href="http://vrde.files.wordpress.com/2009/08/making-2.jpg"><img src="http://vrde.files.wordpress.com/2009/08/making-2.jpg?w=150&#038;h=112" alt="Boarduino Kit - yeah (:" title="Boarduino Kit - yeah (: it works!!1!" width="150" height="112" class="size-thumbnail wp-image-290" /></a><p class="wp-caption-text">Boarduino Kit - yeah (:</p></div>
<p>Today I flashed the <a href="http://www.atmel.com/dyn/products/product_card.asp?PN=ATmega328P">ATmega328P</a> with a sketch (the evergreen &#8220;Hello World!&#8221;) I found in the <a href="http://www.arduino.cc/en/Main/Software">Arduino Software</a>.</p>
<p>This is the code for the Boarduino:</p>
<pre class="brush: cpp;">void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.println(&quot;Hello World!&quot;);
}
</pre>
<p>and this is the result in the python interpreter:</p>
<pre class="brush: python;">&gt;&gt;&gt; import serial
&gt;&gt;&gt; ser = serial.Serial('/dev/ttyUSB0', 9600)
&gt;&gt;&gt; while 1:
...     ser.readline()
...
'rld!\r\n'
'Hello World!\r\n'
'Hello World!\r\n'
'Hello World!\r\n'
</pre>
<p>Cool, it worked :D</p>
<p>I have got some problems with <code>/dev/ttyUSB0</code> because of <a href="http://mielke.cc/brltty/">brltty</a>, I just <a href="http://www.arduino.cc/playground/Linux/Ubuntu">removed</a> it and everything is OK now.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vrde.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vrde.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vrde.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vrde.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vrde.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vrde.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vrde.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vrde.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vrde.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vrde.wordpress.com/284/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=284&subd=vrde&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vrde.wordpress.com/2009/08/22/cheers-from-boarduino/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a36ba5dbe48f18209fbc3061c7ad4f2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vrde</media:title>
		</media:content>

		<media:content url="http://vrde.files.wordpress.com/2009/08/boarduino-macro.jpg" medium="image">
			<media:title type="html">boarduino-macro</media:title>
		</media:content>

		<media:content url="http://vrde.files.wordpress.com/2009/08/making-0.jpg?w=150" medium="image">
			<media:title type="html">Boarduino Kit</media:title>
		</media:content>

		<media:content url="http://vrde.files.wordpress.com/2009/08/making-1.jpg?w=150" medium="image">
			<media:title type="html">Boarduino Kit - making</media:title>
		</media:content>

		<media:content url="http://vrde.files.wordpress.com/2009/08/making-2.jpg?w=150" medium="image">
			<media:title type="html">Boarduino Kit - yeah (: it works!!1!</media:title>
		</media:content>
	</item>
		<item>
		<title>domani si parte per l&#8217;HAR!</title>
		<link>http://vrde.wordpress.com/2009/08/11/domani-si-parte-per-lhar/</link>
		<comments>http://vrde.wordpress.com/2009/08/11/domani-si-parte-per-lhar/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 20:08:46 +0000</pubDate>
		<dc:creator>vrde</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[vita]]></category>
		<category><![CDATA[hackcamp]]></category>
		<category><![CDATA[har]]></category>
		<category><![CDATA[vacanze]]></category>

		<guid isPermaLink="false">http://vrde.wordpress.com/?p=274</guid>
		<description><![CDATA[
Si parte in macchina con protoboard, inverter, alimentatore (ATX!) 12 V per il frigo, frigo, ciabatte, sottotenda, sopratenda, infratenda, tenda, computer (eh senza backup&#8230; mi piace il rischio), lockpick, della prugna in testa, il saldatore di kiwi e voglia di fare cose random.
Per chi ci sarà, ci vediamo là. Per chi non c&#8217;è mi dispiace [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=274&subd=vrde&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="https://wiki.har2009.org/page/Main_Page"><img src="http://vrde.files.wordpress.com/2009/08/logo-transp.png?w=450&#038;h=250" alt="Logo HAR" title="Logo HAR" width="450" height="250" class="aligncenter size-full wp-image-276" /></a></p>
<p>Si parte in macchina con protoboard, inverter, alimentatore (ATX!) 12 V per il frigo, frigo, ciabatte, sottotenda, sopratenda, infratenda, tenda, computer (<a href="https://wiki.har2009.org/page/Camping:Some_guidelines#Things_to_do_beforehand">eh senza backup</a>&#8230; mi piace il rischio), lockpick, della prugna in testa, il saldatore di kiwi e voglia di fare cose random.</p>
<p>Per chi ci sarà, ci vediamo là. Per chi non c&#8217;è mi dispiace :P vediamo se riesco a tenere un minimo aggiornato il blag.</p>
<p>ciao!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vrde.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vrde.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vrde.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vrde.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vrde.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vrde.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vrde.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vrde.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vrde.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vrde.wordpress.com/274/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=274&subd=vrde&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vrde.wordpress.com/2009/08/11/domani-si-parte-per-lhar/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a36ba5dbe48f18209fbc3061c7ad4f2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vrde</media:title>
		</media:content>

		<media:content url="http://vrde.files.wordpress.com/2009/08/logo-transp.png" medium="image">
			<media:title type="html">Logo HAR</media:title>
		</media:content>
	</item>
		<item>
		<title>Check broken link in a bunch of static html files (python version)</title>
		<link>http://vrde.wordpress.com/2009/08/07/check-broken-link-in-a-bunch-of-static-html-files-python-version/</link>
		<comments>http://vrde.wordpress.com/2009/08/07/check-broken-link-in-a-bunch-of-static-html-files-python-version/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 10:36:31 +0000</pubDate>
		<dc:creator>vrde</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[lxml]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://vrde.wordpress.com/?p=266</guid>
		<description><![CDATA[OK, this time we are more pythonic (:
The small script looks for html files in the current directory (but you can change the base dir passing it as the first argument to the script) and tells you which local links are broken.
#!/usr/bin/env python
import os, sys
import lxml.html

stats = dict(
    checked = 0,
  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=266&subd=vrde&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>OK, this time we are more pythonic (:<br />
The small script looks for html files in the current directory (but you can change the <code>base dir</code> passing it as the first argument to the script) and tells you which local links are broken.</p>
<pre class="brush: python;">#!/usr/bin/env python
import os, sys
import lxml.html

stats = dict(
    checked = 0,
    broken = 0
)

def valid_link(dirpath, link):
    # checks only local links
    if '://' not in link:
        return os.path.exists(os.path.join(dirpath, link))
    return True

def check(dirpath, filename):
    fullfile = os.path.join(dirpath, filename)
    try:
        html = lxml.html.fromstring(open(fullfile).read())
    except:
        print '[ERROR]'
        print '    file: %s' % fullfile
        return

    for element, attribute, link, pos in html.iterlinks():
        stats['checked'] += 1
        if not valid_link(dirpath, link):
            print '[BROKEN]'
            print '    file: %s' % fullfile
            print '    link: %s' % link
            print
            stats['broken'] += 1

if __name__ == '__main__':
    basedir = '.'
    if len(sys.argv) == 2:
        basedir = sys.argv[1]
    for dirpath, dirnames, filenames in os.walk(basedir):
        htmls = filter(
            lambda f: f.endswith('.html'),
            filenames)
        for f in htmls:
            check(dirpath, f)

    print '[STATS]'
    print '    checked: %s' % stats['checked']
    print '     broken: %s' % stats['broken']
</pre>
<p>P.S.: <a href="http://codespeak.net/lxml/">lxml</a> rocks. </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vrde.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vrde.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vrde.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vrde.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vrde.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vrde.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vrde.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vrde.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vrde.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vrde.wordpress.com/266/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=266&subd=vrde&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vrde.wordpress.com/2009/08/07/check-broken-link-in-a-bunch-of-static-html-files-python-version/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a36ba5dbe48f18209fbc3061c7ad4f2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vrde</media:title>
		</media:content>
	</item>
		<item>
		<title>find broken images in html files</title>
		<link>http://vrde.wordpress.com/2009/08/06/find-broken-images-in-html-files/</link>
		<comments>http://vrde.wordpress.com/2009/08/06/find-broken-images-in-html-files/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 16:06:29 +0000</pubDate>
		<dc:creator>vrde</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://vrde.wordpress.com/2009/08/06/find-broken-images-in-html-files/</guid>
		<description><![CDATA[rgrep &#34;&#60;img src= *&#34; * &#124;
sed -e 's/.*src=&#34;\([^&#34;]*\)&#34;.*/\1/' -e 's/%20/ /g' &#124;
sort -u &#124;
cut -c 4- &#124;
while read line;
    do [ -f $line ] &#124;&#124; echo $line ;
done
cut -c 4- fixes the path
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=263&subd=vrde&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><pre class="brush: php;">rgrep &quot;&lt;img src= *&quot; * |
sed -e 's/.*src=&quot;\([^&quot;]*\)&quot;.*/\1/' -e 's/%20/ /g' |
sort -u |
cut -c 4- |
while read line;
    do [ -f $line ] || echo $line ;
done</pre>
<p><code>cut -c 4-</code> fixes the path</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vrde.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vrde.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vrde.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vrde.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vrde.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vrde.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vrde.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vrde.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vrde.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vrde.wordpress.com/263/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=263&subd=vrde&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vrde.wordpress.com/2009/08/06/find-broken-images-in-html-files/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a36ba5dbe48f18209fbc3061c7ad4f2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vrde</media:title>
		</media:content>
	</item>
		<item>
		<title>che mondo ingiusto</title>
		<link>http://vrde.wordpress.com/2009/06/25/che-mondo-ingiusto/</link>
		<comments>http://vrde.wordpress.com/2009/06/25/che-mondo-ingiusto/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 22:48:29 +0000</pubDate>
		<dc:creator>vrde</dc:creator>
				<category><![CDATA[vita]]></category>
		<category><![CDATA[electro]]></category>
		<category><![CDATA[evviva l'Italia]]></category>
		<category><![CDATA[gioca jouer]]></category>
		<category><![CDATA[goth]]></category>
		<category><![CDATA[industrial]]></category>
		<category><![CDATA[musica]]></category>
		<category><![CDATA[platters]]></category>
		<category><![CDATA[rave]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://vrde.wordpress.com/?p=256</guid>
		<description><![CDATA[ma come faccio a dormire (pè perepepepè perepepepè perepepeee pepeee) se ho Gioca Jouer che mi martella le orecchie?

ma c&#8217;è una festa dietro casa mia?
ma se ci fosse un goth-electro-rave-industrial che esce dalle casse da 10kW la gente scenderebbe in strada a lamentarsi chiamando vigili-carabinieri-polizia-protezione_civile-esercito, se c&#8217;è Only You dei Platters invece niente? Non è [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=256&subd=vrde&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>ma come faccio a <em>dormire</em> (pè perepepepè perepepepè perepepeee pepeee) se ho <a href="http://www.youtube.com/watch?v=gQcjsOF9mjo">Gioca Jouer</a> che mi martella le orecchie?</p>
<p><img src="http://vrde.files.wordpress.com/2009/06/cecchetto.jpg?w=300&#038;h=300" alt="cecchetto" title="cecchetto" width="300" height="300" class="aligncenter size-full wp-image-257" /></p>
<p>ma c&#8217;è una festa dietro casa mia?</p>
<p>ma se ci fosse un <a href="http://www.youtube.com/watch?v=Zsd5CMzpfys">goth-electro-rave-industrial</a> che esce dalle casse da 10kW la gente scenderebbe in strada a lamentarsi chiamando vigili-carabinieri-polizia-protezione_civile-esercito, se c&#8217;è <em><a href="http://www.youtube.com/watch?v=9r2pEdc1_lI">Only You</a></em> dei Platters invece niente? Non è un mondo giusto.</p>
<p><em>fuck ya</em> mi dedico questa.</p>
<p><span style="text-align:center; display: block;"><a href="http://vrde.wordpress.com/2009/06/25/che-mondo-ingiusto/"><img src="http://img.youtube.com/vi/uCEeAn6_QJo/2.jpg" alt="" /></a></span></p>
<p>mentre qua dietro passa <em><a href="http://it.wikipedia.org/wiki/Fame_(brano_musicale)">fame</a></em> c&#8217;è un bel contrasto:</p>
<p><em>I&#8217;m praying for tidal waves</em> <strong>vs</strong> <em>I&#8217;m gonna live forever</em><br />
<em>learn to swim</em> <strong>vs</strong> <em>learn how to fly</em></p>
<p><strong>update:</strong><br />
ora Vasco&#8230; è quella conclusiva vero? rewind, reuaind!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vrde.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vrde.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vrde.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vrde.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vrde.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vrde.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vrde.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vrde.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vrde.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vrde.wordpress.com/256/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vrde.wordpress.com&blog=2049263&post=256&subd=vrde&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vrde.wordpress.com/2009/06/25/che-mondo-ingiusto/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a36ba5dbe48f18209fbc3061c7ad4f2e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vrde</media:title>
		</media:content>

		<media:content url="http://vrde.files.wordpress.com/2009/06/cecchetto.jpg" medium="image">
			<media:title type="html">cecchetto</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/uCEeAn6_QJo/2.jpg" medium="image" />
	</item>
	</channel>
</rss>