<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nicola Moretti - Hanicker IT Blog &#187; Programming</title>
	<atom:link href="http://blog.nicolamoretti.com/category/informatica/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nicolamoretti.com</link>
	<description>Tecnologia e Digital Hacks</description>
	<lastBuildDate>Thu, 12 Aug 2010 22:51:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Ottenere liste di stream Last.fm da linea di comando</title>
		<link>http://blog.nicolamoretti.com/2010/07/ottenere-liste-di-stream-last-fm-da-linea-di-comando/</link>
		<comments>http://blog.nicolamoretti.com/2010/07/ottenere-liste-di-stream-last-fm-da-linea-di-comando/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 17:16:21 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Musica]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[last.fm]]></category>
		<category><![CDATA[lastfm]]></category>
		<category><![CDATA[linea di comando]]></category>
		<category><![CDATA[scaricare]]></category>

		<guid isPermaLink="false">http://blog.nicolamoretti.com/?p=370</guid>
		<description><![CDATA[<br/>Oggi propongo un codice molto semplice che permette di ottenere liste di stream da Last.fm come output. A cosa potrebbe servire? Beh, vi potete sbizzarrire. L&#8217;output è studiato per poter essere facilmente parsato da altri programmi (grep e simili). Inoltre modificando leggermente il programma potrete anche ottenere l&#8217;url del file mp3 (provate a vedere l&#8217;xml [...]]]></description>
			<content:encoded><![CDATA[<br/><p><img class="size-medium wp-image-375 alignright" style="margin-left: 5px; margin-right: 5px;" title="553102395_399cdec892" src="http://blog.nicolamoretti.com/wp-content/uploads/2010/07/553102395_399cdec892-225x300.jpg" alt="" width="225" height="300" />Oggi propongo un codice molto semplice che permette di <strong>ottenere liste di stream da Last.fm come output</strong>.</p>
<p>A cosa potrebbe servire? Beh, vi potete sbizzarrire. L&#8217;output è studiato per poter essere facilmente parsato da altri programmi (grep e simili). Inoltre modificando leggermente il programma potrete anche ottenere l&#8217;url del file mp3 (provate a vedere l&#8217;xml completo).</p>
<p>Il funzionamento è semplice:</p>
<p>dando il comando</p>
<blockquote><p>java Last hanicker &#8220;MIAPASSWORD&#8221; &#8220;lastfm://user/hanicker/personal&#8221; 100</p></blockquote>
<p>ad esempio otterrò all&#8217;incirca un centinaio di canzoni che Last.fm ha nella mia libreria personale, ad esempio:</p>
<blockquote><p>&#8220;344374428&#8243;,&#8221;Naturally&#8221;,&#8221;Selena Gomez &amp; The Scene&#8221;<br />
&#8220;2747624&#8243;,&#8221;Sorted For E&#8217;s &amp; Wizz&#8221;,&#8221;Pulp&#8221;<br />
&#8220;76053403&#8243;,&#8221;Svanire&#8221;,&#8221;Ludovico Einaudi&#8221;<br />
&#8220;2722039&#8243;,&#8221;Salvation&#8221;,&#8221;The Cranberries&#8221;<br />
&#8220;236136997&#8243;,&#8221;Talented&#8221;,&#8221;Dirty Disco Youth&#8221;</p></blockquote>
<p>dove troviamo ID, artista e titolo.<br />
<span id="more-370"></span></p>
<p><a href="http://blog.nicolamoretti.com/wp-content/uploads/2010/07/Last.zip" >Scarica il sorgente java.</a></p>
<p><a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/orkut?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="Orkut" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/orkut.png" width="16" height="16" alt="Orkut"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="MySpace" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="Slashdot" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/netlog?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="Netlog" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/netlog.png" width="16" height="16" alt="Netlog"/></a> <a href="http://www.addtoany.com/add_to/tumblr?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="Tumblr" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/tumblr.png" width="16" height="16" alt="Tumblr"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F07%2Fottenere-liste-di-stream-last-fm-da-linea-di-comando%2F&amp;linkname=Ottenere%20liste%20di%20stream%20Last.fm%20da%20linea%20di%20comando" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.nicolamoretti.com/2010/07/ottenere-liste-di-stream-last-fm-da-linea-di-comando/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upload sicuri con PHP</title>
		<link>http://blog.nicolamoretti.com/2010/02/upload-sicuri-con-php/</link>
		<comments>http://blog.nicolamoretti.com/2010/02/upload-sicuri-con-php/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 12:12:20 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Sicurezza]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://blog.nicolamoretti.com/?p=122</guid>
		<description><![CDATA[<br/>Il caricamento di file su un server è una delle maggiori fonti di insicurezza per i siti web. Il documento che riporto, scritto da Alla Bezroutchko (ingegnere della sicurezza presso Scanit e persona presente da vari anni nel mondo della sicurezza con molti bug disclosures a proprio nome), rappresenta un vero vademecum per il caricamento tramite PHP. [...]]]></description>
			<content:encoded><![CDATA[<br/><p><a href="http://blog.nicolamoretti.com/wp-content/uploads/2010/02/secure-file.png" ></a>Il caricamento di file su un server è una delle <strong>maggiori fonti di insicurezza</strong> per i siti web.</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 2px solid black;" title="secure file" src="http://blog.nicolamoretti.com/wp-content/uploads/2010/02/secure-file-300x63.png" alt="" width="300" height="63" /></p>
<p style="text-align: left;">Il documento che riporto, scritto da Alla Bezroutchko (ingegnere della sicurezza presso <a href="http://www.scanit.net/" >Scanit</a> e persona presente da vari anni nel mondo della sicurezza con molti bug disclosures a proprio nome), rappresenta un vero vademecum per il <strong>caricamento tramite PHP</strong>.</p>
<p>Link originale:</p>
<p><a href="http://www.scanit.be/uploads/php-file-upload.pdf" >http://www.scanit.be/uploads/php-file-upload.pdf</a></p>
<p>Se non funzionante, accedi direttamente al file <a href="http://blog.nicolamoretti.com/wp-content/uploads/2010/02/php-file-upload.pdf" >cliccando qui</a>.</p>
<p>Personalmente, oltre ai soliti consigli, raccomando sempre di <span style="text-decoration: underline;">usare per i file caricati un nome casuale</span>, associato a quello del file caricato tramite php. Quando possibile, <span style="text-decoration: underline;">posizionare i file fuori dalle directory accessibili</span> (o bloccarne l&#8217;accesso diretto tramite le configurazioni di Apache) e accederne tramite php. Quando non possibile, <strong>controllare il contenuto dei file caricati, bloccare l&#8217;esecuzione di script nella cartella dedicata all&#8217;upload, verificare accuratamente le impostazioni di apache</strong>.</p>
<div></div>
<p><a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/orkut?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="Orkut" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/orkut.png" width="16" height="16" alt="Orkut"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="MySpace" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="Slashdot" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/netlog?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="Netlog" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/netlog.png" width="16" height="16" alt="Netlog"/></a> <a href="http://www.addtoany.com/add_to/tumblr?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="Tumblr" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/tumblr.png" width="16" height="16" alt="Tumblr"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fupload-sicuri-con-php%2F&amp;linkname=Upload%20sicuri%20con%20PHP" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.nicolamoretti.com/2010/02/upload-sicuri-con-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Coderun : IDE PHP Online</title>
		<link>http://blog.nicolamoretti.com/2010/02/coderun-ide-php-online/</link>
		<comments>http://blog.nicolamoretti.com/2010/02/coderun-ide-php-online/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 22:57:36 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web-based]]></category>

		<guid isPermaLink="false">http://blog.nicolamoretti.com/?p=3</guid>
		<description><![CDATA[<br/>All&#8217;indirizzo http://www.coderun.com/ troverete un comodissimo IDE (Integrated development environment) PHP, Javascript e C-Sharp interamente web-based. In questo modo, anche col primo pc che vi capita sottomano in vacanza, potrete lavorare con comodità. Al momento riscontro vari bug ma il software appare in costante aggiornamento. E pensando a Google OS, il futuro forse sta un po&#8217; [...]]]></description>
			<content:encoded><![CDATA[<br/><p>All&#8217;indirizzo <a href="http://www.coderun.com/" >http://www.coderun.com/</a> troverete un comodissimo IDE (<a rel="nofollow" href="http://it.wikipedia.org/wiki/Integrated_development_environment" >Integrated development environment</a>) PHP, Javascript e C-Sharp interamente web-based. In questo modo, anche col primo pc che vi capita sottomano in vacanza, potrete lavorare con comodità. Al momento riscontro vari bug ma il software appare in costante aggiornamento.</p>
<p style="text-align: center;"><a href="http://blog.nicolamoretti.com/wp-content/uploads/2010/02/coderun.png" ><img class="size-medium wp-image-146 aligncenter" title="coderun" src="http://blog.nicolamoretti.com/wp-content/uploads/2010/02/coderun-300x190.png" alt="" width="301" height="190" /></a></p>
<p>E pensando a Google OS, il futuro forse sta un po&#8217; anche qui.</p>
<p><a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/orkut?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="Orkut" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/orkut.png" width="16" height="16" alt="Orkut"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="MySpace" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="Slashdot" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/netlog?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="Netlog" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/netlog.png" width="16" height="16" alt="Netlog"/></a> <a href="http://www.addtoany.com/add_to/tumblr?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="Tumblr" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/tumblr.png" width="16" height="16" alt="Tumblr"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F02%2Fcoderun-ide-php-online%2F&amp;linkname=Coderun%20%3A%20IDE%20PHP%20Online" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.nicolamoretti.com/2010/02/coderun-ide-php-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Formattazione Output XML con PHP</title>
		<link>http://blog.nicolamoretti.com/2010/01/formattazione-output-xml-con-php/</link>
		<comments>http://blog.nicolamoretti.com/2010/01/formattazione-output-xml-con-php/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 09:12:12 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[output]]></category>
		<category><![CDATA[parse]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://blog.nicolamoretti.com/?p=97</guid>
		<description><![CDATA[<br/>Funzione molto utile per formattare il testo XML in uscita (ad esempio da DomDocument). function formatXmlString($xml, $indentBase = 0, $indentString = ' ') { // add marker linefeeds to aid the pretty-tokeniser (adds a linefeed between all tag-end boundaries) $xml = preg_replace('/(&#62;)(&#60;)(\/*)/', "$1\n$2$3", $xml); // now indent the tags $token = strtok($xml, "\n"); $result = [...]]]></description>
			<content:encoded><![CDATA[<br/><p>Funzione molto utile per formattare il testo XML in uscita (ad esempio da DomDocument).</p>
<pre name="code" class="php">
function formatXmlString($xml, $indentBase = 0, $indentString = ' ') {
// add marker linefeeds to aid the pretty-tokeniser (adds a linefeed between all tag-end boundaries)
$xml = preg_replace('/(&gt;)(&lt;)(\/*)/', "$1\n$2$3", $xml);
// now indent the tags
$token = strtok($xml, "\n");
$result = ''; // holds formatted version as it is built
$pad = ($indentBase &gt; 0) ? $indentBase : 0; // initial indent
$matches = array(); // returns from preg_matches()
// scan each line and adjust indent based on opening/closing tags
while ($token !== false):
// test for the various tag states
// 1. open and closing tags on same line - no change
if (preg_match('/.+&lt;\/\w[^&gt;]*&gt;$/', $token, $matches)):
$indent = 0;
// 2. closing tag - outdent now
elseif (preg_match('/^&lt;\/\w/', $token, $matches)):
$pad--;
// 3. opening tag - don't pad this one, only subsequent tags
elseif (preg_match('/^&lt;\w[^&gt;]*[^\/]&gt;.*$/', $token, $matches)):
$indent = 1;
// 4. no indentation needed
else:
$indent = 0;
endif;
// pad the line with the required number of leading spaces
$line = str_pad($token, strlen($token) + $pad, $indentString, STR_PAD_LEFT);
$result .= $line . "\n"; // add to the cumulative result, with linefeed
$token = strtok("\n"); // get the next token
$pad += $indent; // update the pad size for subsequent lines
endwhile;
return $result;
}
</pre>
<p>Tratta (e modificata) da <a href="http://recurser.com/articles/2007/04/05/format-xml-with-php/" >recurser.com</a>.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 601px; width: 1px; height: 1px;">http://recurser.com/articles/2007/04/05/format-xml-with-php/</div>
<p><a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/orkut?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="Orkut" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/orkut.png" width="16" height="16" alt="Orkut"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/myspace?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="MySpace" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/myspace.png" width="16" height="16" alt="MySpace"/></a> <a href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="Slashdot" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a> <a href="http://www.addtoany.com/add_to/technorati_favorites?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="Technorati Favorites" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/technorati.png" width="16" height="16" alt="Technorati Favorites"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/netlog?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="Netlog" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/netlog.png" width="16" height="16" alt="Netlog"/></a> <a href="http://www.addtoany.com/add_to/tumblr?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="Tumblr" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/tumblr.png" width="16" height="16" alt="Tumblr"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.nicolamoretti.com%2F2010%2F01%2Fformattazione-output-xml-con-php%2F&amp;linkname=Formattazione%20Output%20XML%20con%20PHP" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.nicolamoretti.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.nicolamoretti.com/2010/01/formattazione-output-xml-con-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
