<?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>Sentido Web &#187; twitter</title>
	<atom:link href="http://sentidoweb.com/tag/twitter/feed" rel="self" type="application/rss+xml" />
	<link>http://sentidoweb.com</link>
	<description>Desarrollo web, HTML, CSS, Javascript, PHP, MySQL</description>
	<lastBuildDate>Mon, 16 Jan 2012 10:16:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Acceder a Streaming API de PHP</title>
		<link>http://sentidoweb.com/2011/09/29/acceder-a-streaming-api-de-php.php</link>
		<comments>http://sentidoweb.com/2011/09/29/acceder-a-streaming-api-de-php.php#comments</comments>
		<pubDate>Thu, 29 Sep 2011 11:13:34 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[streaming]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2746</guid>
		<description><![CDATA[Para aquellos que necesiten realizar aplicaciones sobre Twitter que tiren de la Streaming API, por ejemplo monitorear o que se dice de una marca, les va a venir muy bien este código: set_time_limit&#40;0&#41;; $query_data = array&#40;'track' =&#62; 'lo que quieres buscar'&#41;; $user = 'username'; // replace with your account $pass = 'password'; // replace with [...]]]></description>
			<content:encoded><![CDATA[<p>Para aquellos que necesiten realizar aplicaciones sobre Twitter que tiren de la Streaming API, por ejemplo monitorear o que se dice de una marca, les va a venir muy bien este código:</p>
<pre><code><pre class="php"><a href="http://www.php.net/set_time_limit"><span style="color: #000066;">set_time_limit</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;
 
<span style="color: #3E6D8F;">$query_data</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'track'</span> =&gt; <span style="color: #ff0000;">'lo que quieres buscar'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #3E6D8F;">$user</span> = <span style="color: #ff0000;">'username'</span>;	<span style="color: #808080; font-style: italic;">// replace with your account</span>
<span style="color: #3E6D8F;">$pass</span> = <span style="color: #ff0000;">'password'</span>;	<span style="color: #808080; font-style: italic;">// replace with your account</span>
 
<span style="color: #3E6D8F;">$fp</span> = <a href="http://www.php.net/fsockopen"><span style="color: #000066;">fsockopen</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"stream.twitter.com"</span>, <span style="color: #cc66cc;">80</span>, <span style="color: #3E6D8F;">$errno</span>, <span style="color: #3E6D8F;">$errstr</span>, <span style="color: #cc66cc;">30</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #723b00;">if</span><span style="color: #66cc66;">&#40;</span>!<span style="color: #3E6D8F;">$fp</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">"$errstr ($errno)<span style="color: #000099; font-weight: bold;">\n</span>"</span>;
<span style="color: #66cc66;">&#125;</span> <span style="color: #723b00;">else</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #3E6D8F;">$request</span> = <span style="color: #ff0000;">"GET /1/statuses/filter.json?"</span> . http_build_query<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$query_data</span><span style="color: #66cc66;">&#41;</span> . <span style="color: #ff0000;">" HTTP/1.1<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>"</span>;
	<span style="color: #3E6D8F;">$request</span> .= <span style="color: #ff0000;">"Host: stream.twitter.com<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>"</span>;
	<span style="color: #3E6D8F;">$request</span> .= <span style="color: #ff0000;">"Authorization: Basic "</span> . <a href="http://www.php.net/base64_encode"><span style="color: #000066;">base64_encode</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$user</span> . <span style="color: #ff0000;">':'</span> . <span style="color: #3E6D8F;">$pass</span><span style="color: #66cc66;">&#41;</span> . <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>"</span>;
	<a href="http://www.php.net/fwrite"><span style="color: #000066;">fwrite</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$fp</span>, <span style="color: #3E6D8F;">$request</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #723b00;">while</span><span style="color: #66cc66;">&#40;</span>!<a href="http://www.php.net/feof"><span style="color: #000066;">feof</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$fp</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
		<span style="color: #3E6D8F;">$json</span> = <a href="http://www.php.net/fgets"><span style="color: #000066;">fgets</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$fp</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #3E6D8F;">$data</span> = json_decode<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$json</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #723b00;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$data</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
			<span style="color: #808080; font-style: italic;">//</span>
			<span style="color: #808080; font-style: italic;">// Do something with the data!</span>
			<span style="color: #808080; font-style: italic;">//</span>
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
	<a href="http://www.php.net/fclose"><span style="color: #000066;">fclose</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$fp</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></code></pre>
<p>El parámetro <em>track</em> se puede cambiar por <em>follow</em> (usando IDs numéricos) para saber que dice algún usuario y que dicen los que le mencionan o retuitean.</p>
<p>Vía / <a href="http://af-design.com/blog/2010/12/17/reading-the-twitter-stream-api-with-php/">AF-Design</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2011/09/29/acceder-a-streaming-api-de-php.php/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Librería PHP para TwitPic</title>
		<link>http://sentidoweb.com/2011/05/31/libreria-php-para-twitpic.php</link>
		<comments>http://sentidoweb.com/2011/05/31/libreria-php-para-twitpic.php#comments</comments>
		<pubDate>Tue, 31 May 2011 21:45:39 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[twitpic]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2729</guid>
		<description><![CDATA[TwitPic es un servicio que se utiliza para subir fotos que luego publicas en Twitter. Si estás realizando una aplicación que tira de Twitter y quieres dar la oportunidad al usuario de subir sus fotos puedes hacer uso de esta aplicación y su API (es necesario darse de alta): $twitpic = new TwitPic&#40;$api_key, $consumer_key, $consumer_secret, [...]]]></description>
			<content:encoded><![CDATA[<p>TwitPic es un servicio que se utiliza para subir fotos que luego publicas en Twitter. Si estás realizando una aplicación que tira de Twitter y quieres dar la oportunidad al usuario de subir sus fotos puedes hacer uso de esta aplicación y su API (es necesario darse de alta):</p>
<pre><code><pre class="php"><span style="color: #3E6D8F;">$twitpic</span> = <span style="color: #000000; font-weight: bold;">new</span> TwitPic<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$api_key</span>, <span style="color: #3E6D8F;">$consumer_key</span>, <span style="color: #3E6D8F;">$consumer_secret</span>, <span style="color: #3E6D8F;">$oauth_token</span>, <span style="color: #3E6D8F;">$oauth_secret</span><span style="color: #66cc66;">&#41;</span>;
try <span style="color: #66cc66;">&#123;</span>
  <span style="color: #808080; font-style: italic;">/*
  * Retrieves all images where the user is facetagged
  */</span>
  <span style="color: #3E6D8F;">$user</span> = <span style="color: #3E6D8F;">$twitpic</span>-&gt;<span style="color: #006600;">faces</span>-&gt;<span style="color: #006600;">show</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'user'</span>=&gt;<span style="color: #ff0000;">'meltingice'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
  <a href="http://www.php.net/print_r"><span style="color: #000066;">print_r</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$user</span>-&gt;<span style="color: #006600;">images</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
  <span style="color: #3E6D8F;">$media</span> = <span style="color: #3E6D8F;">$twitpic</span>-&gt;<span style="color: #006600;">media</span>-&gt;<span style="color: #006600;">show</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'id'</span>=&gt;<span style="color: #cc66cc;">1234</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
  <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #3E6D8F;">$media</span>-&gt;<span style="color: #006600;">message</span>;
&nbsp;
  <span style="color: #3E6D8F;">$user</span> = <span style="color: #3E6D8F;">$twitpic</span>-&gt;<span style="color: #006600;">users</span>-&gt;<span style="color: #006600;">show</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'username'</span>=&gt;<span style="color: #ff0000;">'meltingice'</span><span style="color: #66cc66;">&#41;</span>, <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'process'</span>=&gt;false, <span style="color: #ff0000;">'format'</span>=&gt;<span style="color: #ff0000;">'xml'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
  <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #3E6D8F;">$user</span>; <span style="color: #808080; font-style: italic;">// raw XML response data</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">/*
  * Uploads an image to TwitPic
  */</span>
  <span style="color: #3E6D8F;">$resp</span> = <span style="color: #3E6D8F;">$twitpic</span>-&gt;<span style="color: #006600;">upload</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'media'</span>=&gt;<span style="color: #ff0000;">'path/to/file.jpg'</span>, <span style="color: #ff0000;">'message'</span>=&gt;<span style="color: #ff0000;">'This is an example'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
  <a href="http://www.php.net/print_r"><span style="color: #000066;">print_r</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$resp</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
  <span style="color: #808080; font-style: italic;">/*
  * Uploads an image to TwitPic AND posts a tweet
  * to Twitter.
  *
  * NOTE: this still uses v2 of the TwitPic API. This means that the code makes 2 separate
  * requests: one to TwitPic for the image, and one to Twitter for the tweet. Because of this,
  * understand this call may take a bit longer than simply uploading the image.
  */</span>
  <span style="color: #3E6D8F;">$resp</span> = <span style="color: #3E6D8F;">$twitpic</span>-&gt;<span style="color: #006600;">uploadAndPost</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'media'</span>=&gt;<span style="color: #ff0000;">'path/to/file.jpg'</span>, <span style="color: #ff0000;">'message'</span>=&gt;<span style="color: #ff0000;">'Another example'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
  <a href="http://www.php.net/print_r"><span style="color: #000066;">print_r</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$resp</span><span style="color: #66cc66;">&#41;</span>;
  
<span style="color: #66cc66;">&#125;</span> catch <span style="color: #66cc66;">&#40;</span>TwitPicAPIException <span style="color: #3E6D8F;">$e</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #3E6D8F;">$e</span>-&gt;<span style="color: #006600;">getMessage</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></code></pre>
<p><a href="https://github.com/meltingice/TwitPic-API-for-PHP">TwitPic API for PHP</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2011/05/31/libreria-php-para-twitpic.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a Twitter AJAX Button with MooTools, jQuery, or Dojo</title>
		<link>http://sentidoweb.com/2010/08/25/create-a-twitter-ajax-button-with-mootools-jquery-or%c2%a0dojo.php</link>
		<comments>http://sentidoweb.com/2010/08/25/create-a-twitter-ajax-button-with-mootools-jquery-or%c2%a0dojo.php#comments</comments>
		<pubDate>Wed, 25 Aug 2010 15:27:26 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Quicklinks]]></category>
		<category><![CDATA[dojo]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://davidwalsh.name/twitter-button</guid>
		<description><![CDATA[There’s nothing like a subtle, slick website widget that effectively uses CSS and JavaScript to enhance the user experience.  Of course widgets like that take many hours to perfect, but it doesn’t take long for that effort to be rewarded with above-average user retention and buzz.  One of the widgets I love is Twitter’s “Follow” [...]]]></description>
			<content:encoded><![CDATA[<p>There’s nothing like a subtle, slick website widget that effectively uses CSS and JavaScript to enhance the user experience.  Of course widgets like that take many hours to perfect, but it doesn’t take long for that effort to be rewarded with above-average user retention and buzz.  One of the widgets I love is Twitter’s “Follow” button.  Let me sho &#8230;</p>
<p><a href="http://davidwalsh.name/twitter-button" title="Create a Twitter AJAX Button with MooTools, jQuery, or Dojo">Post original</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/08/25/create-a-twitter-ajax-button-with-mootools-jquery-or%c2%a0dojo.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enlaces rápidos (04-06-2010)</title>
		<link>http://sentidoweb.com/2010/06/04/enlaces-rapidos-04-06-2010.php</link>
		<comments>http://sentidoweb.com/2010/06/04/enlaces-rapidos-04-06-2010.php#comments</comments>
		<pubDate>Fri, 04 Jun 2010 08:12:12 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Quicklinks]]></category>
		<category><![CDATA[cassandra]]></category>
		<category><![CDATA[couchdb]]></category>
		<category><![CDATA[neo4j]]></category>
		<category><![CDATA[nosql]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2334</guid>
		<description><![CDATA[Más enlaces rápidos sobre NOSQL, para variar: NoSQL  is About… NoSQL  Graph Database feature comparison Cassandra NOSQL EU 2010 &#8211; Twitter: &#8220;Hace 15 meses se tardó 2 semanas en hacer un ALTER TABLE de la tabla de statuses [tweets]&#8220; NoSQL  in the Enterprise NOSQLEU &#8211; Graph Databases and Neo4j Dealing data deluge Yahoo! Cloud Serving [...]]]></description>
			<content:encoded><![CDATA[<p>Más enlaces rápidos sobre NOSQL, para variar:</p>
<ul>
	<li><a href="http://blog.couch.io/post/511008668/nosql-is-about">NoSQL  is About…</a></li>
	<li><a href="http://purbon.com/node/354">NoSQL  Graph Database feature comparison</a></li>
	<li><a href="http://www.slideshare.net/jbellis/cassandra-nosql-eu-2010">Cassandra NOSQL EU 2010</a> &#8211; Twitter: &#8220;Hace 15 meses se tardó 2 semanas en hacer un ALTER TABLE de la  tabla de statuses [tweets]&#8220;</li>
	<li><a href="http://www.infoq.com/articles/nosql-in-the-enterprise">NoSQL  in the Enterprise</a></li>
	<li><a href="http://www.slideshare.net/thobe/nosqleu-graph-databases-and-neo4j">NOSQLEU &#8211; Graph Databases and Neo4j</a></li>
	<li><a href="http://www.johnandcailin.com/blog/john/dealing-data-deluge">Dealing data deluge</a></li>
	<li><a href="http://research.yahoo.com/files/ycsb.pdf">Yahoo! Cloud Serving Benchmark (YCSB)</a></li>
	<li><a href="http://allthingshadoop.com/2010/04/24/running-hadoop-mapreduce-with-cassandra-nosql/">Running Hadoop MapReduce With Cassandra NoSQL</a></li>
	<li><a href="http://www.slideshare.net/kevinweil/nosql-at-twitter-nosql-eu-2010">NoSQL at Twitter</a></li>
	<li><a href="http://blog.boardtracker.com/viewtopic.php?f=4&amp;t=75">MySQL vs MongoDB</a></li>
	<li><a href="http://blog.neo4j.org/2010/05/mashups-with-facebook-graph-api-and.html">Mashups with the Facebook Graph API and Neo4j</a></li>
	<li><a href="http://java.dzone.com/news/nosql-graph-database-feature">NoSQL Graph Database Comparison</a></li>
	<li><a href="http://www.rackspacecloud.com/blog/2010/05/12/cassandra-by-example/">Cassandra By Example</a></li>
	<li><a href="http://developer.yahoo.net/blogs/hadoop/2010/05/scalability_of_the_hadoop_dist.html">Scalability of the Hadoop Distributed File System</a></li>
	<li><a href="http://nosql.mypopescu.com/post/597603446/a-nosql-use-case-url-shorteners">A NoSQL Use Case: URL Shorteners</a></li>
	<li><a href="http://github.com/suguru/cassandra-webconsole">Cassandra Webconsole</a></li>
	<li><a href="http://nosql.mypopescu.com/post/619925133/learning-nosql-from-twitters-experience">Learning NoSQL  from Twitter&#8217;s Experience</a></li>
	<li><a href="http://www.vineetgupta.com/2010/01/nosql-databases-part-1-landscape.html">NoSQL  Databases</a></li>
	<li><a href="http://www.infinitegraph.com/docs/InfiniteGraph-Technical-Product-Overview.pdf">InfiniteGraph: the distributed graph database</a></li>
	<li><a href="http://html5doctor.com/html5-custom-data-attributes">HTML5 Custom Data Attributes (data-*)</a></li>
	<li><a href="http://blog.couch.io/post/632718824/simple-document-versioning-with-couchdb">Simple Document Versioning with CouchDB</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/06/04/enlaces-rapidos-04-06-2010.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FlockDB: base de datos de grafos basada en MySQL de Twitter</title>
		<link>http://sentidoweb.com/2010/04/12/flockdb-base-de-datos-de-grafos-basada-en-mysql-de-twitter.php</link>
		<comments>http://sentidoweb.com/2010/04/12/flockdb-base-de-datos-de-grafos-basada-en-mysql-de-twitter.php#comments</comments>
		<pubDate>Mon, 12 Apr 2010 21:09:26 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Bases de datos]]></category>
		<category><![CDATA[base datos]]></category>
		<category><![CDATA[flockdb]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2269</guid>
		<description><![CDATA[Twitter ha lanzado hoy su base de datos de grafos (graph database) basada en MySQL, pensada para usarse en aplicaciones ajenas a Twitter, pero logicamente para almacenar las relaciones entre usuarios (following, followers). Por ahora parece que es una versión básica, pero cuando esté correctamente me gustaría ver la relación con OQGraph FlockDB]]></description>
			<content:encoded><![CDATA[<p>Twitter ha lanzado hoy su base de datos de grafos (graph database) basada en MySQL, pensada para usarse en aplicaciones ajenas a Twitter, pero logicamente para almacenar las relaciones entre usuarios (following, followers).</p>
<p>Por ahora parece que es una versión básica, pero cuando esté correctamente me gustaría ver la relación con <a href="http://sentidoweb.com/2009/11/06/oqgraph-motor-mysql-que-permite-jerarquias.php">OQGraph</a></p>
<p><a href="http://github.com/twitter/flockdb#readme">FlockDB</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/04/12/flockdb-base-de-datos-de-grafos-basada-en-mysql-de-twitter.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enlaces rápidos (09-04-2010)</title>
		<link>http://sentidoweb.com/2010/04/10/enlaces-rapidos-09-04-2010.php</link>
		<comments>http://sentidoweb.com/2010/04/10/enlaces-rapidos-09-04-2010.php#comments</comments>
		<pubDate>Fri, 09 Apr 2010 23:07:59 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Quicklinks]]></category>
		<category><![CDATA[cassandra]]></category>
		<category><![CDATA[nosql]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2265</guid>
		<description><![CDATA[Siguendo con el tema NOSQL, entre otras cosas&#8230; Twitter Streaming API Documentation Spanner: Google’s next Massive Storage and Computation infrastructure DEX: Graph DB de la Univesidad Politécnica de Cataluña You don’t have to be Google to use NoSQL Cassandra y GeoData (1 y 2) Cassandra: Fact vs fiction MongoDB PHP Tutorial Design and implementation of [...]]]></description>
			<content:encoded><![CDATA[<p>Siguendo con el tema NOSQL, entre otras cosas&#8230;</p>
<ul>
	<li><a href="http://apiwiki.twitter.com/Streaming-API-Documentation">Twitter Streaming API Documentation</a></li>
	<li><a href="http://www.royans.net/arch/spanner-googles-next-massive-storage-and-computation-infrastructure">Spanner: Google’s next Massive Storage and Computation infrastructure</a></li>
	<li><a href="http://www.dama.upc.edu/technology-transfer/dex">DEX: Graph DB de la Univesidad Politécnica de Cataluña</a></li>
	<li><a href="http://www.royans.net/arch/you-dont-have-to-be-google-to-use-nosql">You don’t have to be Google to use NoSQL</a></li>
	<li>Cassandra y GeoData (<a href="http://permalink.gmane.org/gmane.comp.db.cassandra.user/3169">1</a> y <a href="http://permalink.gmane.org/gmane.comp.db.cassandra.user/2693">2</a>)</li>
	<li><a href="http://spyced.blogspot.com/2010/04/cassandra-fact-vs-fiction.html">Cassandra: Fact vs fiction</a></li>
	<li><a href="http://query7.com/mongodb-php-tutorial">MongoDB PHP Tutorial</a></li>
	<li><a href="http://code.google.com/p/redis/wiki/TwitterAlikeExample">Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/04/10/enlaces-rapidos-09-04-2010.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enlaces rápidos (16-02-2010)</title>
		<link>http://sentidoweb.com/2010/02/16/enlaces-rapidos-16-02-2010.php</link>
		<comments>http://sentidoweb.com/2010/02/16/enlaces-rapidos-16-02-2010.php#comments</comments>
		<pubDate>Tue, 16 Feb 2010 22:05:19 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Quicklinks]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[lucene]]></category>
		<category><![CDATA[nosql]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2189</guid>
		<description><![CDATA[Unos cuantos enlaces rápidos, con temática centrada en NoSQL The Common Principles Behind the NOSQL Alternatives Building Super Scalable Systems: Blade Runner Meets Autonomic Computing in the Ambient Cloud Why Swapping is bad for MySQL Performance? Open Source Video, Audio &#38; Podcast Publishing Platform Data in Flight &#8211; SQL Stream What Will Kill the Cloud? [...]]]></description>
			<content:encoded><![CDATA[Unos cuantos enlaces rápidos, con temática centrada en NoSQL
<ul>
	<li><a href="http://natishalom.typepad.com/nati_shaloms_blog/2009/12/the-common-principles-behind-the-nosql-alternatives.html">The Common Principles Behind the NOSQL Alternatives</a></li>
	<li><a href="http://highscalability.com/blog/2009/12/16/building-super-scalable-systems-blade-runner-meets-autonomic.html">Building Super Scalable Systems: Blade Runner Meets Autonomic Computing in the Ambient Cloud</a></li>
	<li><a href="http://www.mysqlperformanceblog.com/2010/01/18/why-swapping-is-bad-for-mysql-performance/">Why Swapping is bad for MySQL Performance?</a></li>
	<li><a href="http://www.webappers.com/2010/01/19/open-source-video-audio-podcast-publishing-platform/">Open Source Video, Audio &amp; Podcast Publishing Platform</a></li>
	<li><a href="http://cacm.acm.org/magazines/2010/1/55738-data-in-flight/fulltext">Data in Flight &#8211; SQL Stream</a></li>
	<li><a href="http://highscalability.com/blog/2010/2/1/what-will-kill-the-cloud.html">What Will Kill the Cloud?</a></li>
	<li><a href="http://thenextweb.com/us/2010/01/30/google-kill-ie6">Can Google really kill IE6?</a></li>
	<li><a href="http://ilia.ws/archives/213-My-Thoughts-on-HipHop.html">My Thoughts on HipHop</a></li>
	<li><a href="http://highscalability.com/blog/2010/2/3/nosql-means-never-having-to-store-blobs-again.html">NoSQL Means Never Having to Store Blobs Again</a></li>
	<li><a href="http://www.anieto2k.com/2010/02/04/css-sprites-para-mejorar-las-fechas-de-tus-posts">CSS Sprites para mejorar las fechas de tus posts</a></li>
	<li><a href="http://www.dinnermint.org/css/creating-triangles-in-css/">Creating Triangles in CSS</a></li>
	<li><a href="http://wiki.github.com/voldemort/voldemort/voldemort-rebalancing">Voldemort Rebalancing</a></li>
	<li><a href="http://thenoisychannel.com/2010/01/31/linkedin-search-a-look-beneath-the-hood/">LinkedIn usa Lucene en su arquitectura</a></li>
	<li><a href="http://blogs.computerworld.com/15510/the_end_of_sql_and_relational_databases_part_1_of_3">The end of SQL and relational databases?</a></li>
	<li><a href="http://blog.creativityden.com/the-hidden-power-of-border-radius-2/">The Hidden Power of border-radius</a></li>
	<li><a href="http://www.ioug.org/client_files/members/select_pdf/05q1/003_OracleMySQL.pdf">A Comparison of Oracle and MySQL</a></li>
	<li><a href="http://jayant7k.blogspot.com/2006/06/benchmarking-results-of-mysql-lucene.html">Benchmarking results of mysql, lucene and sphinx</a></li>
	<li><a href="http://code.flickr.com/blog/2010/02/08/using-abusing-and-scaling-mysql-at-flickr/">Using, Abusing and Scaling MySQL at Flickr</a></li>
	<li><a href="http://code.flickr.com/blog/2010/02/08/ticket-servers-distributed-unique-primary-keys-on-the-cheap/">Ticket Servers: Distributed Unique Primary Keys on the Cheap</a> &#8220;Flickr admite más de 60 fotos nuevas por segundo&#8221;</li>
	<li><a href="http://abhinavsingh.com/blog/2009/01/mysql-query-cache-wp-cache-apc-memcache-what-to-choose/">MySQL Query Cache, WP-Cache, APC, Memcache – What to choose</a></li>
	<li><a href="http://highscalability.com/blog/2010/2/10/elasticsearch-open-source-distributed-restful-search-engine.html">ElasticSearch &#8211; Open Source, Distributed, RESTful Search Engine</a></li>
	<li><a href="http://blog.facebook.com/blog.php?post=297991732130">Facebook permite chat vía jabber</a></li>
	<li><a href="http://www.nczonline.net/blog/2010/01/12/history-of-the-user-agent-string/">History of the user-agent string</a></li>
	<li><a href="http://net.tutsplus.com/tutorials/javascript-ajax/top-10-things-that-javascript-got-wrong/">Top 10 Things that JavaScript Got Wrong</a></li>
	<li><a href="http://highscalability.com/blog/2010/2/16/seven-signs-you-may-need-a-nosql-database.html">Seven Signs You May Need a NoSQL Database</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/02/16/enlaces-rapidos-16-02-2010.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Indicar el cliente que publica en Twitter</title>
		<link>http://sentidoweb.com/2010/02/01/indicar-el-cliente-que-publica-en-twitter.php</link>
		<comments>http://sentidoweb.com/2010/02/01/indicar-el-cliente-que-publica-en-twitter.php#comments</comments>
		<pubDate>Mon, 01 Feb 2010 14:15:28 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Quicklinks]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2154</guid>
		<description><![CDATA[El otro día mi compañero David y yo estábamos mirando cómo hacer que cuando publicamos en Twitter desde la aplicación, no salga &#8220;from API&#8221;. Por lo que buscando buscando, encontré un plugin para WordPress que lo implementaba y luego David encontró la documentación necesaria. Tan solo hay que indicar unas cabeceras HTTP y crear un [...]]]></description>
			<content:encoded><![CDATA[<p>El otro día mi compañero <a href="http://dmnet.bitacoras.com">David</a> y yo estábamos mirando cómo hacer que cuando publicamos en Twitter desde la aplicación, no salga &#8220;from API&#8221;. Por lo que buscando buscando, encontré un <a href="http://dogmap.jp/2008/12/12/simple-tweet/">plugin para WordPress</a> que lo implementaba y luego David encontró la <a href="http://twitter.pbworks.com/API+Docs#RequestHeaders">documentación necesaria</a>.</p>
<p>Tan solo hay que indicar unas cabeceras HTTP y crear un XML que contiene información que leerá Twitter.</p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/02/01/indicar-el-cliente-que-publica-en-twitter.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Laboratorio: Twitter trends</title>
		<link>http://sentidoweb.com/2009/12/24/laboratorio-twitter-trends.php</link>
		<comments>http://sentidoweb.com/2009/12/24/laboratorio-twitter-trends.php#comments</comments>
		<pubDate>Thu, 24 Dec 2009 23:03:39 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[trends]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/2009/12/24/laboratorio-twitter-trends.php</guid>
		<description><![CDATA[Mi amigo Christian me ha comentado que la entrada anterior sobre Twitter sería más interesante si mostrara los datos sobre un término. Pues dicho y hecho, tan sólo se necesitan dos scripts, uno para recuperar los datos y otro para mostrarlos. El primero habrá que ponerlo en el cron para que recupere los datos cada [...]]]></description>
			<content:encoded><![CDATA[Mi amigo <a href="http://twitter.com/cvander">Christian</a> me ha comentado que <a href="http://sentidoweb.com/2009/12/22/estadisticas-de-uso-de-twitter.php">la entrada anterior sobre Twitter</a> sería más interesante si mostrara los datos sobre un término.

Pues dicho y hecho, tan sólo se necesitan dos scripts, uno para recuperar los datos y otro para mostrarlos. El primero habrá que ponerlo en el cron para que recupere los datos cada cierto tiempo (en mi ejemplo busco &#8220;google&#8221; cada 2 minutos).
<p class="center"><img src="http://luissacristan.com/twitter.php?q=google&amp;desde=2007-11-10%2000:00&amp;hasta=2010-11-10%2000:00" alt="" /></p>
Hay que tener cuidado porque Twitter da un máximo de 2000 actualizaciones nuevas, por lo que tendremos que ajustar los tiempos de consulta en Twitter.

El script que lee los datos es el siguiente:
<pre><code><pre class="php">&amp;lt;? php
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> insertar<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$consulta</span>, <span style="color: #3E6D8F;">$ult</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <a href="http://www.php.net/global"><span style="color: #000066;">global</span></a> <span style="color: #3E6D8F;">$db</span>;
&nbsp;
  <span style="color: #3E6D8F;">$data</span> = json_decode<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/file_get_contents"><span style="color: #000066;">file_get_contents</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'http://search.twitter.com/search?q='</span>.urlencode<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$consulta</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">'&amp;amp;refresh=true&amp;amp;since_id='</span>.<span style="color: #3E6D8F;">$ult</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #3E6D8F;">$n</span> = <a href="http://www.php.net/isset"><span style="color: #000066;">isset</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$data</span>-&amp;gt;total<span style="color: #66cc66;">&#41;</span> &amp;amp;&amp;amp; <span style="color: #3E6D8F;">$ult</span> != <span style="color: #3E6D8F;">$data</span>-&amp;gt;max_id? <span style="color: #3E6D8F;">$data</span>-&amp;gt;total:<span style="color: #cc66cc;">0</span>;
  <span style="color: #3E6D8F;">$db</span>-&amp;gt;queryExec<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'INSERT INTO estadisticas (fecha, n) values ('</span>.time<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">', '</span>.<span style="color: #3E6D8F;">$n</span>.<span style="color: #ff0000;">')'</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #723b00;">if</span> <span style="color: #66cc66;">&#40;</span>!<span style="color: #3E6D8F;">$ult</span><span style="color: #66cc66;">&#41;</span> <span style="color: #3E6D8F;">$db</span>-&amp;gt;queryExec<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"INSERT INTO opciones (clave, valor) values ('ultimo', "</span>.<span style="color: #3E6D8F;">$data</span>-&amp;gt;max_id.<span style="color: #ff0000;">")"</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #723b00;">else</span> <span style="color: #3E6D8F;">$db</span>-&amp;gt;queryExec<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"UPDATE opciones SET valor = "</span>.<span style="color: #3E6D8F;">$data</span>-&amp;gt;max_id.<span style="color: #ff0000;">" where clave='ultimo' "</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #3E6D8F;">$consulta</span> = <span style="color: #3E6D8F;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'q'</span><span style="color: #66cc66;">&#93;</span>;
<span style="color: #808080; font-style: italic;">// Limpio para poder usarlo en el nombre para la BD</span>
<span style="color: #3E6D8F;">$_consulta</span> = <a href="http://www.php.net/preg_replace"><span style="color: #000066;">preg_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'/[^A-Z0-9]/i'</span>, <span style="color: #ff0000;">'_'</span>, <span style="color: #3E6D8F;">$consulta</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #723b00;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$db</span> = <span style="color: #000000; font-weight: bold;">new</span> SQLiteDatabase<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$_consulta</span>.<span style="color: #ff0000;">'.db'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #3E6D8F;">$q</span> = @<span style="color: #3E6D8F;">$db</span>-&amp;gt;query<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"SELECT valor FROM opciones Where clave='ultimo'"</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #723b00;">if</span> <span style="color: #66cc66;">&#40;</span>!<span style="color: #3E6D8F;">$q</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #3E6D8F;">$db</span>-&amp;gt;queryExec<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'CREATE TABLE estadisticas (fecha real, n real, PRIMARY KEY (fecha));'</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #3E6D8F;">$db</span>-&amp;gt;queryExec<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'CREATE TABLE opciones (clave text, valor text, PRIMARY KEY (clave));'</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #3E6D8F;">$q</span> = <span style="color: #3E6D8F;">$db</span>-&amp;gt;query<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"SELECT valor FROM opciones Where clave='ultimo'"</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #66cc66;">&#125;</span>
  <span style="color: #3E6D8F;">$r</span> = <span style="color: #3E6D8F;">$q</span>-&amp;gt;fetchAll<span style="color: #66cc66;">&#40;</span>SQLITE_ASSOC<span style="color: #66cc66;">&#41;</span>;
  <span style="color: #3E6D8F;">$ult</span> = <span style="color: #cc66cc;">0</span>;
  <span style="color: #723b00;">if</span> <span style="color: #66cc66;">&#40;</span>!<a href="http://www.php.net/empty"><span style="color: #000066;">empty</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$r</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #3E6D8F;">$ult</span> = <span style="color: #3E6D8F;">$r</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'valor'</span><span style="color: #66cc66;">&#93;</span>;
  insertar<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$consulta</span>, <span style="color: #3E6D8F;">$ult</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
?&amp;gt;</pre></code></pre>
Y el script que dibuja la gráfica es:
<pre><code><pre class="php">&amp;lt;? php
<span style="color: #3E6D8F;">$desde</span> = <a href="http://www.php.net/strtotime"><span style="color: #000066;">strtotime</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'desde'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #3E6D8F;">$hasta</span> = <a href="http://www.php.net/strtotime"><span style="color: #000066;">strtotime</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'hasta'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #3E6D8F;">$consulta</span> = <span style="color: #3E6D8F;">$_GET</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'q'</span><span style="color: #66cc66;">&#93;</span>;
<span style="color: #808080; font-style: italic;">// Limpio para poder usarlo en el nombre para la BD</span>
<span style="color: #3E6D8F;">$_consulta</span> = <a href="http://www.php.net/preg_replace"><span style="color: #000066;">preg_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'/[^A-Z0-9]/i'</span>, <span style="color: #ff0000;">'_'</span>, <span style="color: #3E6D8F;">$consulta</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #723b00;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$db</span> = <span style="color: #000000; font-weight: bold;">new</span> SQLiteDatabase<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$_consulta</span>.<span style="color: #ff0000;">'.db'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #3E6D8F;">$q</span> = <span style="color: #3E6D8F;">$db</span>-&amp;gt;query<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"SELECT fecha, n FROM estadisticas Where fecha&amp;gt;"</span>.<span style="color: #3E6D8F;">$desde</span>.<span style="color: #ff0000;">" and fecha&amp;lt;"</span>.<span style="color: #3E6D8F;">$hasta</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #3E6D8F;">$r</span> = <span style="color: #3E6D8F;">$q</span>-&amp;gt;fetchAll<span style="color: #66cc66;">&#40;</span>SQLITE_ASSOC<span style="color: #66cc66;">&#41;</span>;
  <span style="color: #723b00;">foreach</span><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$r</span> <span style="color: #723b00;">as</span> <span style="color: #3E6D8F;">$item</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #3E6D8F;">$x</span><span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #3E6D8F;">$item</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'n'</span><span style="color: #66cc66;">&#93;</span>;
    <span style="color: #3E6D8F;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #3E6D8F;">$item</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'fecha'</span><span style="color: #66cc66;">&#93;</span>;
  <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<a href="http://www.php.net/header"><span style="color: #000066;">header</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Location: http://chart.apis.google.com/chart?chtt=Line+Chart&amp;amp;chts=000000,12&amp;amp;chs=1000x600&amp;amp;chf=bg,s,ffffff|c,s,ffffff&amp;amp;chxt=x,y&amp;amp;chxl=0:|'</span>.implode<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'|'</span>, <span style="color: #3E6D8F;">$l</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">'|1:|'</span>.implode<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'|'</span>, <span style="color: #3E6D8F;">$x</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">'&amp;amp;cht=lc&amp;amp;chd=t:75.00,16.66,0.00,8.33,100.00&amp;amp;chdl=Label+1&amp;amp;chco=0000ff&amp;amp;chls=1,1,0'</span><span style="color: #66cc66;">&#41;</span>;</pre></code></pre>
<strong>Actualización</strong>: Google Charts no deja meter muchos valores por lo que la gráfica de arriba sólo saca las 20 últimas actualizaciones]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2009/12/24/laboratorio-twitter-trends.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Estadísticas de uso de Twitter</title>
		<link>http://sentidoweb.com/2009/12/22/estadisticas-de-uso-de-twitter.php</link>
		<comments>http://sentidoweb.com/2009/12/22/estadisticas-de-uso-de-twitter.php#comments</comments>
		<pubDate>Tue, 22 Dec 2009 22:04:46 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Estadísticas]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/2009/12/22/estadisticas-de-uso-de-twitter.php</guid>
		<description><![CDATA[El otro día me dio por pensar cuantos updates debería tener Twitter cada segundo viendo el número de actualizaciones que había por lo de #manifiesto. Para intentar calcularlo creé un script que cada 10 minutos escribiera un tweet en una cuenta guarra de Twitter. Guardé los datos en una BD de SQLite para luego trabajar [...]]]></description>
			<content:encoded><![CDATA[<p>El otro día me dio por pensar cuantos updates debería tener Twitter cada segundo viendo el número de actualizaciones que había por lo de <a href="http://search.twitter.com/search?q=%23manifiesto">#manifiesto</a>. Para intentar calcularlo creé un script que cada 10 minutos escribiera un tweet en una cuenta guarra de Twitter. Guardé los datos en una BD de SQLite para luego trabajar con los datos obtenidos.</p>
<p><a href="http://sentidoweb.com/img/2009/12/twitter.png"><img alt="twitter_t.png" src="http://sentidoweb.com/img/2009/12/twitter_t.png" width="500" height="399" /></a></p>
<p>Pues los <a href="http://sentidoweb.com/img/2009/12/twitter.csv">datos</a> que obtuve durante 1 semana es que cada 10 minutos hay una media de 230.000 updates, cada segundo una media de 380 updates, cada hora 1.380.000 updates. Incluso se puede ver una caída en el servicio.</p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2009/12/22/estadisticas-de-uso-de-twitter.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

