<?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>Asteriscoweb &#187; twitter</title>
	<atom:link href="http://asteriscoweb.net/tag/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://asteriscoweb.net</link>
	<description>webdesign e sviluppo</description>
	<lastBuildDate>Tue, 08 Sep 2009 12:36:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>&#8220;Il meglio di&#8221; &#8211; Speciale Twitter</title>
		<link>http://asteriscoweb.net/archivio/23-06-2009/il-meglio-di-speciale-twitter/</link>
		<comments>http://asteriscoweb.net/archivio/23-06-2009/il-meglio-di-speciale-twitter/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 19:29:33 +0000</pubDate>
		<dc:creator>Stefano/asterisco</dc:creator>
				<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[il meglio di]]></category>
		<category><![CDATA[Ispirazioni]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://asteriscoweb.net/?p=428</guid>
		<description><![CDATA[Puntata speciale de &#34;il meglio di&#34; dedicata ai servizi correlati a Twitter. Sulla falsa riga di 86 Loghi per Twitter propongo qui una selezione di siti dal design interessante che hanno come tema il &#34;pennuto blu&#34;.

Segnalazioni


The Cosmic Machine &#8211; EventBox

	

Tweetbots

	

Gin&#038;Twitts

	

Quapture

	

TweetMeme

	

Trevor Sheridan

	

TweetCC

	

Twitter Twitpocalypse

	

Helveti-Tweet

	

Tweetzien

	

]]></description>
			<content:encoded><![CDATA[<p>Puntata speciale de &quot;<a href="http://asteriscoweb.net/tag/il-meglio-di">il meglio di</a>&quot; dedicata ai servizi correlati a <a href="http://asteriscoweb.net/tag/twitter">Twitter</a>. Sulla falsa riga di <a href="http://www.youon.it/96-twitter-loghi/">86 Loghi per Twitter</a> propongo qui una selezione di siti dal design interessante che hanno come tema il <em>&quot;pennuto blu&quot;</em>.</p>
<p><span id="more-428"></span></p>
<h3>Segnalazioni</h3>
<ul class="screens">
<li>
<h4>The Cosmic Machine &#8211; EventBox</h4>
<p><a href="http://thecosmicmachine.com/" title="Visita thecosmicmachine.com"><img src="http://asteriscoweb.net/wp-content/uploads/2009/06/eventbox.gif" alt="Screenshot eventbox" width="587" height="180" class="alignnone size-full wp-image-430" /></a>
	</li>
<li>
<h4>Tweetbots</h4>
<p><a href="http://tweetbots.com/"><img src="http://asteriscoweb.net/wp-content/uploads/2009/06/tweetbots.gif" alt="Screenshot tweetbots" width="587" height="180" class="alignnone size-full wp-image-448" /></a>
	</li>
<li>
<h4>Gin&#038;Twitts</h4>
<p><a href="http://www.oscarbarber.com/gintwitts/" title="Visita http://www.oscarbarber.com/gintwitts/"><img src="http://asteriscoweb.net/wp-content/uploads/2009/06/gintwitts.gif" alt="Screenshot gintwitts" width="587" height="180" class="alignnone size-full wp-image-440" /></a>
	</li>
<li>
<h4>Quapture</h4>
<p><a href="http://qapture.net/" title="Visita quapture.net"><img src="http://asteriscoweb.net/wp-content/uploads/2009/06/quapture.gif" alt="Screenshot quapture" width="587" height="180" class="alignnone size-full wp-image-443" /></a>
	</li>
<li>
<h4>TweetMeme</h4>
<p><a href="http://tweetmeme.com/" title="Visita tweetmeme.com"><img src="http://asteriscoweb.net/wp-content/uploads/2009/06/tweetmeme.gif" alt="Screenshot tweetmeme" width="587" height="180" class="alignnone size-full wp-image-433" /></a>
	</li>
<li>
<h4>Trevor Sheridan</h4>
<p><a href="http://www.trevorsheridan.com" title="Visita trevorsheridan.com"><img src="http://asteriscoweb.net/wp-content/uploads/2009/06/trevorsheridan.gif" alt="Screenshot trevorsheridan"  width="587" height="180" class="alignnone size-full wp-image-450" /></a>
	</li>
<li>
<h4>TweetCC</h4>
<p><a href="http://www.tweetcc.com/" title="Visita tweetcc.com"><img src="http://asteriscoweb.net/wp-content/uploads/2009/06/tweetcc.gif" alt="Screenshot tweetcc" width="587" height="180" class="alignnone size-full wp-image-437" /></a>
	</li>
<li>
<h4>Twitter Twitpocalypse</h4>
<p><a href="http://www.twitpocalypse.com/" title="Visita twitpocalypse.com"><img src="http://asteriscoweb.net/wp-content/uploads/2009/06/twitpocalypse.gif" alt="Screenshot twitpocalypse" width="587" height="180" class="alignnone size-full wp-image-435" /></a>
	</li>
<li>
<h4>Helveti-Tweet</h4>
<p><a href="http://helveti-tweet.geenius.co.uk/" title="Visita helveti-tweet.geenius.co.uk"><img src="http://asteriscoweb.net/wp-content/uploads/2009/06/helvetitweet.jpg" alt="Screenshot helvetitweet" width="587" height="180" class="alignnone size-full wp-image-446" /></a>
	</li>
<li>
<h4>Tweetzien</h4>
<p><a href="http://www.tweetizen.com/" title="VIsita tweetizen.com"><img src="http://asteriscoweb.net/wp-content/uploads/2009/06/tweetizen.gif" alt="Screenshot tweetizen"  width="587" height="180" class="alignnone size-full wp-image-452" /></a>
	</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://asteriscoweb.net/archivio/23-06-2009/il-meglio-di-speciale-twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Twittare&#8221; da linea di comando</title>
		<link>http://asteriscoweb.net/archivio/15-06-2009/twittare-da-linea-di-comando/</link>
		<comments>http://asteriscoweb.net/archivio/15-06-2009/twittare-da-linea-di-comando/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 16:11:35 +0000</pubDate>
		<dc:creator>Stefano/asterisco</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Varie]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[twitta.py]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://asteriscoweb.net/?p=324</guid>
		<description><![CDATA[Io sono una di quelle persone uno di quegli smanettoni che adora lavorare da linea di comando. Come molti utenti Linux ho probabilmente fatto di necessit&#224; virt&#249;, ma fatto sta che ora non potrei pi&#249; farne a meno.
Come fare quindi a condividere i miei pensieri su twitter senza staccarmi dal fidato terminale di Linux?
Una lettura [...]]]></description>
			<content:encoded><![CDATA[<p>Io sono <del>una di quelle persone</del> uno di quegli smanettoni che <em>adora</em> lavorare da linea di comando. Come molti utenti Linux ho probabilmente fatto di necessit&agrave; virt&ugrave;, ma fatto sta che ora non potrei pi&ugrave; farne a meno.</p>
<p>Come fare quindi a condividere i miei pensieri su <a href="http://twitter.com/asteriscow">twitter</a> senza staccarmi dal fidato terminale di Linux?</p>
<p>Una lettura alla documentazione delle <a href="http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0update">API di twitter</a> ed una ripassata al manuale di python ed ecco pronto <strong>twitta.py</strong>: un piccolo script <em>fai da te</em> che fa al caso mio.</p>
<h3>Proprio tutto da linea di comando</h3>
<p>Per restare in tema vediamo come scaricare e rendere operativo il nostro script servendoci del solo terminale. Iniziamo con lo scaricare lo script dando questo comando:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>asteriscoweb.net<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>twitta.py</pre></td></tr></table></div>

<p>Rendiamolo eseguibile:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> +x twitta.py</pre></td></tr></table></div>

<p>Andiamo a settare ora il nostro username e password:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> twitta.py</pre></td></tr></table></div>

<p>Cerchiamo le variabili <var>username</var> e <var>password</var> e modifichiamo i loro valori con i nostri dati, salviamo e chiudiamo.</p>
<p>Eccoci pronti ad inviare il nostro primo <em>tweet</em> da linea di comando:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>twitta.py <span style="color: #ff0000;">&quot;Il tuo messaggio&quot;</span></pre></td></tr></table></div>

<h3>Precisazioni</h3>
<p>Twitta.py non &egrave; e non vuole essere un client completo per twitter: &egrave; poco pi&ugrave; di un mero esercizio di programmazione, sentitevi liberi di studiarlo e modificarlo (date uno sguardo alle <a href="http://asteriscoweb.net/info#licenza">informazioni sulla licenza</a> di questo blog). Se siete in cerca di un buon client, attualmente mi sto trovando molto bene con <a href="http://tweetdeck.com/">TweetDeck</a>: provatelo e fatemi sapere.</p>
]]></content:encoded>
			<wfw:commentRss>http://asteriscoweb.net/archivio/15-06-2009/twittare-da-linea-di-comando/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mostrare gli ultimi tweet nella sidebar</title>
		<link>http://asteriscoweb.net/archivio/02-05-2009/mostrare-gli-ultimi-tweet-nella-sidebar/</link>
		<comments>http://asteriscoweb.net/archivio/02-05-2009/mostrare-gli-ultimi-tweet-nella-sidebar/#comments</comments>
		<pubDate>Sat, 02 May 2009 10:41:08 +0000</pubDate>
		<dc:creator>Stefano/asterisco</dc:creator>
				<category><![CDATA[Sviluppo web]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[casi di studio]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://asteriscoweb.net/?p=235</guid>
		<description><![CDATA[Quando ho deciso di rendere pubblico Semplice, il mio primo tema per WordPress, ho pensato che sarebbe stata una buona idea quella di includere qualche funzione che l&#8217;avrebbe reso diverso dagli altri temi in circolazione. La scelta è ricaduta sull&#8217;aggiunta di alcuni widget forniti di serie. Qui presenterò il widget relativo alla visualizzazione degli ultimi [...]]]></description>
			<content:encoded><![CDATA[<p>Quando ho deciso di rendere pubblico <a href="http://asteriscoweb.net/archivio/22-03-2009/semplice-un-tema-per-wordpress">Semplice</a>, il mio primo tema per WordPress, ho pensato che sarebbe stata una buona idea quella di includere qualche <em>funzione</em> che l&#8217;avrebbe reso <em>diverso</em> dagli altri temi in circolazione. La scelta è ricaduta sull&#8217;aggiunta di alcuni widget forniti di serie. Qui presenterò il widget relativo alla visualizzazione degli ultimi post su di un account Twitter.</p>
<h3>Magpie RSS</h3>
<p>Come alcuni di voi sapranno, WordPress include nel suo <em>core</em> <a href="http://magpierss.sourceforge.net/">Magpie RSS</a>, un parser PHP di feed RSS. In altre parole WordPress ha già tutto ciò che ci serve per elaborare un qualsiasi feed. Ci basterà semplicementi includere il file php relativo al parser ed istruirlo correttamente.</p>
<h3>Il codice di esempio</h3>
<p>Vediamo quindi come dire al nostro praser di visualizzare i nostri ultimi tweet. Ricordo che qui presenteremo solo una parte del codice, quella che effettivamente si occupa di elaborare il feed RSS, mentre il plug-in funzionante è disponibile per il download alla fine dell&#8217;articolo.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000088;">$user</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;asteriscow&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// settiamo il nostro username</span>
	<span style="color: #000088;">$n</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// il numero di tweet da visualizzare</span>
	<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://search.twitter.com/search.rss?q=from:&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$user</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// ci ricaviamo l'url del feed rss relativo al nostro user</span>
&nbsp;
    	<span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span>ABSPATH <span style="color: #339933;">.</span> WPINC <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/rss.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// includiamo Magpie RSS</span>
    	<span style="color: #000088;">$rss</span> <span style="color: #339933;">=</span> fetch_rss<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000088;">$items</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_slice</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rss</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">items</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$n</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;ul&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$items</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//controlliamo che siano presenti dei tweet</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;li&gt;Non sono presenti tweet&lt;/li&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">else</span>
		<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span><span style="color: #000088;">$n</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;li&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$items</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">;</span>
			<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;a title=&quot;</span>\<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>Permalink<span style="color: #0000ff;">&quot; href=&quot;</span>\<span style="color: #0000ff;">&quot;&gt;#&lt;/a&gt;&lt;/li&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/ul&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Il codice di esempio è abbastanza semplice ma contiene comunque dei commenti esplicativi. L&#8217;array <var>$item</var> contiene tutti i singoli nodi del nostro file rss. In altre parole per voler accedere al contenuto di <var>title</var> del primo nodo ci basterà scrivere <var>$item[0]['title']</var>.</p>
<h3 id="stw1-download">Download</h3>
<p>È disponibile per il download sia il codice completo che la versione plug-in già pronta all&#8217;uso. Entrambe le versioni contengono il codice relativo alla gestione del widget.</p>
<ul>
<li><a href="http://asteriscoweb.net/wp-content/uploads/2009/05/simpletweet_code-01.zip">Download codice completo</a></li>
<li><a href="http://asteriscoweb.net/wp-content/uploads/2009/05/simpletweet_plugin-01.zip">Download plug-in</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://asteriscoweb.net/archivio/02-05-2009/mostrare-gli-ultimi-tweet-nella-sidebar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
