<?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; Google</title>
	<atom:link href="http://sentidoweb.com/tag/google/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>Conocer los +1 de Google de tus posts de WordPress</title>
		<link>http://sentidoweb.com/2011/06/03/conocer-los-1-de-google-de-tus-posts-de-wordpress.php</link>
		<comments>http://sentidoweb.com/2011/06/03/conocer-los-1-de-google-de-tus-posts-de-wordpress.php#comments</comments>
		<pubDate>Fri, 03 Jun 2011 00:27:13 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[boton +1]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2731</guid>
		<description><![CDATA[Ahora que Google ha sacado el botón +1, puede ser interesante saber que puntuación llevan nuestros posts en Google. Una forma rápida (y un tanto cutre) sería crear un fichero (por ejemplo en la raíz del blog que tenga el siguiente código: &#60;?php define&#40;'DOING_CRON', true&#41;; define&#40;'DOING_AJAX', true&#41;; require_once&#40;'../wp-load.php'&#41;; global $wpdb; $result = $wpdb-&#62;get_results&#40;"SELECT * from [...]]]></description>
			<content:encoded><![CDATA[<p>Ahora que Google ha sacado el botón +1, puede ser interesante saber que puntuación llevan nuestros posts en Google. Una forma rápida (y un tanto cutre) sería crear un fichero (por ejemplo en la raíz del blog que tenga el siguiente código:</p>
<pre><code><pre class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<a href="http://www.php.net/define"><span style="color: #000066;">define</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'DOING_CRON'</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
<a href="http://www.php.net/define"><span style="color: #000066;">define</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'DOING_AJAX'</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #723b00;">require_once</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'../wp-load.php'</span><span style="color: #66cc66;">&#41;</span>;
<a href="http://www.php.net/global"><span style="color: #000066;">global</span></a> <span style="color: #3E6D8F;">$wpdb</span>;
<span style="color: #3E6D8F;">$result</span> = <span style="color: #3E6D8F;">$wpdb</span>-&gt;<span style="color: #006600;">get_results</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"SELECT * from $wpdb-&gt;posts where post_status = 'publish' order by ID desc limit 20"</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;+<span style="color: #cc66cc;">1</span> de Google de mis posts&lt;/title&gt;
    &lt;script type=<span style="color: #ff0000;">"text/javascript"</span> src=<span style="color: #ff0000;">"https://apis.google.com/js/plusone.js"</span>&gt;
      <span style="color: #66cc66;">&#123;</span><span style="color: #ff0000;">"parsetags"</span>: <span style="color: #ff0000;">"explicit"</span><span style="color: #66cc66;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
  &lt;/head&gt;
  &lt;body&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #723b00;">foreach</span><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$result</span> <span style="color: #723b00;">as</span> <span style="color: #3E6D8F;">$i</span>=&gt;<span style="color: #3E6D8F;">$p</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #3E6D8F;">$url</span> = get_permalink<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$p</span>-&gt;<span style="color: #006600;">ID</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
  &lt;p&gt;&lt;?php <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #3E6D8F;">$url</span>; ?&gt;&lt;script type=<span style="color: #ff0000;">"text/javascript"</span>&gt;
      gapi.plusone.render<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"content&lt;?php echo $i; ?&gt;"</span>, <span style="color: #66cc66;">&#123;</span><span style="color: #ff0000;">"href"</span>:<span style="color: #ff0000;">"&lt;?php echo $url; ?&gt;"</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
    &lt;span id=<span style="color: #ff0000;">"content&lt;?php echo $i; ?&gt;"</span>&gt;
      &lt;g:plusone&gt;&lt;/g:plusone&gt;
    &lt;/span&gt;
  &lt;/p&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #66cc66;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
  &lt;/body&gt;
&lt;/html&gt;</pre></code></pre>
<p>Espero que os sea de ayuda</p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2011/06/03/conocer-los-1-de-google-de-tus-posts-de-wordpress.php/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Acortar URLs mediante goo.gl y PHP</title>
		<link>http://sentidoweb.com/2011/01/18/acortar-urls-mediante-goo-gl-y-php.php</link>
		<comments>http://sentidoweb.com/2011/01/18/acortar-urls-mediante-goo-gl-y-php.php#comments</comments>
		<pubDate>Tue, 18 Jan 2011 10:02:14 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[acortador]]></category>
		<category><![CDATA[goo.gl]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2670</guid>
		<description><![CDATA[La API de Google para acortar URLs permite acortar URLs, recuperar info del link original y las URLs acortadas de un usuario, aunque para usarlo se necesita crear una clave y dar de alta proyecto. El resto es fácil, acceso mediante CURL y listo: define&#40;'GOOGLE_API_KEY', '[insert your key here]'&#41;; define&#40;'GOOGLE_ENDPOINT', 'https://www.googleapis.com/urlshortener/v1'&#41;; function shortenUrl&#40;$longUrl&#41; &#123; // [...]]]></description>
			<content:encoded><![CDATA[<p>La <a href="http://code.google.com/apis/urlshortener/index.html">API de Google para acortar URLs</a> permite acortar URLs, recuperar info del link original y las URLs acortadas de un usuario, aunque para usarlo se necesita crear una clave y dar de alta proyecto.</p>
<p>El resto es fácil, acceso mediante CURL y listo:</p>
<pre><code><pre class="php">    <a href="http://www.php.net/define"><span style="color: #000066;">define</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'GOOGLE_API_KEY'</span>, <span style="color: #ff0000;">'[insert your key here]'</span><span style="color: #66cc66;">&#41;</span>;
    <a href="http://www.php.net/define"><span style="color: #000066;">define</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'GOOGLE_ENDPOINT'</span>, <span style="color: #ff0000;">'https://www.googleapis.com/urlshortener/v1'</span><span style="color: #66cc66;">&#41;</span>;
 
    <span style="color: #000000; font-weight: bold;">function</span> shortenUrl<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$longUrl</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#123;</span>
        <span style="color: #808080; font-style: italic;">// initialize the cURL connection</span>
        <span style="color: #3E6D8F;">$ch</span> = curl_init<span style="color: #66cc66;">&#40;</span>
            <a href="http://www.php.net/sprintf"><span style="color: #000066;">sprintf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'%s/url?key=%s'</span>, GOOGLE_ENDPOINT, GOOGLE_API_KEY<span style="color: #66cc66;">&#41;</span>
        <span style="color: #66cc66;">&#41;</span>;
 
        <span style="color: #808080; font-style: italic;">// tell cURL to return the data rather than outputting it</span>
        curl_setopt<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$ch</span>, CURLOPT_RETURNTRANSFER, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
 
        <span style="color: #808080; font-style: italic;">// create the data to be encoded into JSON</span>
        <span style="color: #3E6D8F;">$requestData</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;">'longUrl'</span> =&gt; <span style="color: #3E6D8F;">$longUrl</span>
        <span style="color: #66cc66;">&#41;</span>;
 
        <span style="color: #808080; font-style: italic;">// change the request type to POST</span>
        curl_setopt<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$ch</span>, CURLOPT_POST, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
 
        <span style="color: #808080; font-style: italic;">// set the form content type for JSON data</span>
        curl_setopt<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$ch</span>, CURLOPT_HTTPHEADER, <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Content-type: application/json'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
 
        <span style="color: #808080; font-style: italic;">// set the post body to encoded JSON data</span>
        curl_setopt<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$ch</span>, CURLOPT_POSTFIELDS, json_encode<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$requestData</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
 
        <span style="color: #808080; font-style: italic;">// perform the request</span>
        <span style="color: #3E6D8F;">$result</span> = curl_exec<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$ch</span><span style="color: #66cc66;">&#41;</span>;
        curl_close<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$ch</span><span style="color: #66cc66;">&#41;</span>;
 
        <span style="color: #808080; font-style: italic;">// decode and return the JSON response</span>
        <span style="color: #723b00;">return</span> json_decode<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$result</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
 
    <span style="color: #3E6D8F;">$response</span> = shortenUrl<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'http://phpriot.com'</span><span style="color: #66cc66;">&#41;</span>;
 
    <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <a href="http://www.php.net/sprintf"><span style="color: #000066;">sprintf</span></a><span style="color: #66cc66;">&#40;</span>
        <span style="color: #ff0000;">'%s was shortened to %s'</span>,
        <span style="color: #3E6D8F;">$response</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'longUrl'</span><span style="color: #66cc66;">&#93;</span>,
        <span style="color: #3E6D8F;">$response</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'id'</span><span style="color: #66cc66;">&#93;</span>
    <span style="color: #66cc66;">&#41;</span>;</pre></code></pre>
<p><a href="http://www.phpriot.com/articles/google-url-shorening-api">Shortening URLs for goo.gl with Google&#8217;s URL Shortener API</a></p>
<p>Vía / <a href="http://www.phpdeveloper.org/news/15726">PHPDeveloper.org</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2011/01/18/acortar-urls-mediante-goo-gl-y-php.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Acceder a Google Analytics con OAuth y PHP</title>
		<link>http://sentidoweb.com/2010/12/10/acceder-a-google-analytics-con-oauth-y-php.php</link>
		<comments>http://sentidoweb.com/2010/12/10/acceder-a-google-analytics-con-oauth-y-php.php#comments</comments>
		<pubDate>Fri, 10 Dec 2010 09:24:30 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[google analytics]]></category>
		<category><![CDATA[oauth]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2655</guid>
		<description><![CDATA[Está claro que por ahora OAuth es el futuro para el uso de APIs, y como no, Google requiere OAuth para conectarnos a su API, lo cual puede parecer bastante difícil, pero cuando le coges el truco, es bastante sencillo: $oauth = new OAuth&#40;$consumer_key, $consumer_secret&#41;; $oauth-&#62;setToken&#40;$access_token, $access_token_secret&#41;; $result = $oauth-&#62;fetch&#40;'https://www.google.com/analytics/feeds/datasources/ga/accounts'&#41;; El resto es fácil, tan [...]]]></description>
			<content:encoded><![CDATA[<p>Está claro que por ahora OAuth es el futuro para el uso de APIs, y como no, Google requiere OAuth para conectarnos a su API, lo cual puede parecer bastante difícil, pero cuando le coges el truco, es bastante sencillo:</p>
<pre><code><pre class="php"><span style="color: #3E6D8F;">$oauth</span> = <span style="color: #000000; font-weight: bold;">new</span> OAuth<span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$consumer_key</span>, <span style="color: #3E6D8F;">$consumer_secret</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #3E6D8F;">$oauth</span>-&gt;<span style="color: #006600;">setToken</span><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$access_token</span>, <span style="color: #3E6D8F;">$access_token_secret</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #3E6D8F;">$result</span> = <span style="color: #3E6D8F;">$oauth</span>-&gt;<span style="color: #006600;">fetch</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'https://www.google.com/analytics/feeds/datasources/ga/accounts'</span><span style="color: #66cc66;">&#41;</span>;</pre></code></pre>
<p>El resto es fácil, tan sólo hay que mirar la documentación y obtener los datos de las distintas peticiones.</p>
<p><a href="http://www.lornajane.net/posts/2010/Google-Analytics-Accounts-API">Google Analytics Accounts API</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/12/10/acceder-a-google-analytics-con-oauth-y-php.php/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>El rendimiento de Google Instant Previews</title>
		<link>http://sentidoweb.com/2010/11/16/el-rendimiento-de-google-instant-previews.php</link>
		<comments>http://sentidoweb.com/2010/11/16/el-rendimiento-de-google-instant-previews.php#comments</comments>
		<pubDate>Tue, 16 Nov 2010 10:00:51 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[instant previews]]></category>
		<category><![CDATA[jsonp]]></category>
		<category><![CDATA[rendimiento]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2649</guid>
		<description><![CDATA[Algunas veces no nos paramos a pensar en los cambios que añade una web, en este caso Google, los problemas que pueden aparecer en tema de rendimiento. Y estos problemas suelen ser fundamentales a la hora de la impresión que se lleva un usuario de la web, claro, que Google no se caracteriza por problemas [...]]]></description>
			<content:encoded><![CDATA[<p>Algunas veces no nos paramos a pensar en los cambios que añade una web, en este caso Google, los problemas que pueden aparecer en tema de rendimiento. Y estos problemas suelen ser fundamentales a la hora de la impresión que se lleva un usuario de la web, claro, que Google no se caracteriza por problemas de rendimiento y los expertos que están trabajando allá deben ser de lo mejorcito que existe.</p>
<p>Después de este rollo introductorio, me gustaría apuntar los 3 aspectos que utiliza Google para mejorar el rendimiento que se centran sobre todo en la <strong>reducción del número de peticiones HTTP</strong>: </p>
<ul>
<li><strong>Compilación de Javascript</strong>: mediante <a href="http://code.google.com/intl/es-ES/closure/compiler/">Closure Compiler</a>, consigue reducir el tamaño de los ficheros js, reutilizar variables, &#8230;</li>
<li><strong>JSONP bajo demando</strong>: <a href="http://en.wikipedia.org/wiki/JSON#JSONP">JSONP</a> permite envolver la respuesta JSON con una llamada Javascript. Se realizan llamadas directas al script en vez de usar Ajax, lo cual permite hacer llamadas crossdomain y que el navegador lo cachee perfectamente. El problema es que si se añade la llamada con un createElement, el navegador se queda cargando, por lo que es mejor meterlo entre un setTimeout.</li>
<li><strong>DATA URIs</strong>: es un método de añadir contenido en URLs usando base64, el problema es que IE8 sólo admite DATA URIs de 32k, por lo que dividen las imagenes en trozos y los &#8220;empalman&#8221; con etiquetas IMG. También han comprobado que aunque base64 añade hasta un 33% del tamaño, como lo devuelven en gzip, el tamaño final es más o menos el mismo.</li>
</ul>
<p>Está claro que hay que aprender de los que saben.</p>
<p><a href="http://googlecode.blogspot.com/2010/11/instant-previews-under-hood.html#">Instant Previews: Under the hood</a></p>
<p>Vía / <a href="http://highscalability.com/blog/2010/11/15/how-googles-instant-previews-reduces-http-requests.html">High Scalability</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/11/16/el-rendimiento-de-google-instant-previews.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebP: formato de imagen de Google</title>
		<link>http://sentidoweb.com/2010/10/02/webp-formato-de-imagen-de-google.php</link>
		<comments>http://sentidoweb.com/2010/10/02/webp-formato-de-imagen-de-google.php#comments</comments>
		<pubDate>Sat, 02 Oct 2010 20:33:07 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Quicklinks]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[jpg]]></category>
		<category><![CDATA[webp]]></category>

		<guid isPermaLink="false">http://code.google.com/speed/webp/</guid>
		<description><![CDATA[Google ha desarrollado un nuevo formato de compresión de imagenes llamado WebP (se pronuncia “weppy”). Es para imágenes de estilo fotográfico y en la galeria de ejemplos de comparación, la calidad es la misma o superior con un tamaño de imágenes menor&#8230; Post original]]></description>
			<content:encoded><![CDATA[<p>Google ha desarrollado un nuevo formato de compresión de imagenes llamado WebP (se pronuncia “weppy”). Es para imágenes de estilo fotográfico y en la galeria de ejemplos de comparación, la calidad es la misma o superior con un tamaño de imágenes menor&#8230;</p>
<p><a href="http://code.google.com/speed/webp/" title="WebP Image Format">Post original</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/10/02/webp-formato-de-imagen-de-google.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How did Google Instant become Faster with 5-7X More Results Pages?</title>
		<link>http://sentidoweb.com/2010/09/10/how-did-google-instant-become-faster-with-5-7x-more-results-pages.php</link>
		<comments>http://sentidoweb.com/2010/09/10/how-did-google-instant-become-faster-with-5-7x-more-results-pages.php#comments</comments>
		<pubDate>Fri, 10 Sep 2010 07:47:26 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Quicklinks]]></category>
		<category><![CDATA[escalabilidad]]></category>
		<category><![CDATA[instant]]></category>

		<guid isPermaLink="false">http://highscalability.com/blog/2010/9/9/how-did-google-instant-become-faster-with-5-7x-more-results.html</guid>
		<description><![CDATA[We don&#8217;t have a lot of details on how Google pulled off their technically very impressive Google Instant release, but in Google Instant behind the scenes, they did share some interesting facts: Google was serving more than a billion searches per day. With Google Instant they served 5-7X more results pages than previously. Typical search results [...]]]></description>
			<content:encoded><![CDATA[<p>We don&#8217;t have a lot of details on how Google pulled off their technically very impressive Google Instant release, but in Google Instant behind the scenes, they did share some interesting facts: Google was serving more than a billion searches per day. With Google Instant they served 5-7X more results pages than previously. Typical search results wer &#8230;</p>
<p><a href="http://highscalability.com/blog/2010/9/9/how-did-google-instant-become-faster-with-5-7x-more-results.html" title="How did Google Instant become Faster with 5-7X More Results Pages?">Post original</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/09/10/how-did-google-instant-become-faster-with-5-7x-more-results-pages.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Guía de estilos de Javascript de Google</title>
		<link>http://sentidoweb.com/2010/07/19/guia-de-estilos-de-javascript-de-google.php</link>
		<comments>http://sentidoweb.com/2010/07/19/guia-de-estilos-de-javascript-de-google.php#comments</comments>
		<pubDate>Mon, 19 Jul 2010 10:56:36 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[guia de estilo]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2383</guid>
		<description><![CDATA[Google tiene una guía de estilos para programar en Javascript. Yo no soy muy partidario de ello, ya que cada cual programe como quiera siempre que sea código legible, es decir, ¿por qué usar variables con nombres así: nombreVariable y no así: nombre_variable?. Está claro que en un proyecto o una empresa sí tiene sentido [...]]]></description>
			<content:encoded><![CDATA[<p>Google tiene una guía de estilos para programar en Javascript. Yo no soy muy partidario de ello, ya que cada cual programe como quiera siempre que sea código legible, es decir, ¿por qué usar variables con nombres así: nombreVariable y no así: nombre_variable?. Está claro que en un proyecto o una empresa sí tiene sentido usar guías de estilo, pero que una guía de estilo sea generalizada, no le veo sentido.</p>
<p>De todas formas los consejos están bastante bien y ante la duda de cómo hacerlo, podemos echarle un vistazo a cómo lo hacen en Google. Claro, que luego lo ofuscan y no hay quién entienda sus librerías.</p>
<p><a href="http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml">Google JavaScript Style Guide</a></p>
<p>Vía / <a href="http://www.dzone.com/links/rss/google_javascript_style_guide.html">DZone</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/07/19/guia-de-estilos-de-javascript-de-google.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Clase para usar Google Translate desde PHP</title>
		<link>http://sentidoweb.com/2010/06/26/clase-para-usar-google-translate-desde-php.php</link>
		<comments>http://sentidoweb.com/2010/06/26/clase-para-usar-google-translate-desde-php.php#comments</comments>
		<pubDate>Fri, 25 Jun 2010 22:42:08 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[translate]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2358</guid>
		<description><![CDATA[La verdad es que tiro de vez en cuando Google Translate, pero sobre todo para temas personales, para alguna aplicación web no creo que sea muy útil, entre otras cosas porque a veces las traducciones en algunos casos son un poco raras, pero nunca vienen mal tener esta librería para realizar traducciones. El uso es [...]]]></description>
			<content:encoded><![CDATA[<p>La verdad es que tiro de vez en cuando Google Translate, pero sobre todo para temas personales, para alguna aplicación web no creo que sea muy útil, entre otras cosas porque a veces las traducciones en algunos casos son un poco raras, pero nunca vienen mal tener esta librería para realizar traducciones.</p>
<p>El uso es muy sencillo:</p>
<pre><code><pre class="php"><span style="color: #723b00;">require_once</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'googleTranslate.class.php'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #3E6D8F;">$gt</span> = <span style="color: #000000; font-weight: bold;">new</span> GoogleTranslateWrapper<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">/* Traduce una pagina web */</span>
<span style="color: #3E6D8F;">$page_contents</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://some-web-page/'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">/* Traduce al frances */</span>
<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #3E6D8F;">$gt</span>-&gt;<span style="color: #006600;">translate</span><span style="color: #66cc66;">&#40;</span>page_contents , <span style="color: #ff0000;">"fr"</span>, <span style="color: #ff0000;">"en"</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">/* Si hay error lo muestra */</span>
<span style="color: #723b00;">if</span><span style="color: #66cc66;">&#40;</span>!<span style="color: #3E6D8F;">$gt</span>-&gt;<span style="color: #006600;">isSuccess</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</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;">$gt</span>-&gt;<span style="color: #006600;">getLastError</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="http://www.codediesel.com/php/google-translation-php-wrapper/">Google Translation PHP wrapper</a></p>
<p>Vía / <a href="http://www.phpdeveloper.org/news/14696">PHPDeveloper.org</a></p>
<p><strong>Actualización</strong>: me avisa Javier Martín que él ha implementado una <a href="http://www.digitalestudio.es/proyectos/google-translator-php/">librería parecida</a> que añade algunas características interesantes como independencia de CURL.</p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/06/26/clase-para-usar-google-translate-desde-php.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Traduce usando Google y PHP</title>
		<link>http://sentidoweb.com/2010/03/03/traduce-usando-google-y-php.php</link>
		<comments>http://sentidoweb.com/2010/03/03/traduce-usando-google-y-php.php#comments</comments>
		<pubDate>Wed, 03 Mar 2010 17:12:45 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[translator]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/?p=2210</guid>
		<description><![CDATA[Interesante librería que hace uso de Google Translator para traducir un texto en un idioma a otro. Aunque el API de Google está solo en Java o Javascript, el autor de la librería ha creado un wrapper para que esté disponible desde PHP. require_once&#40;'googleTranslate.class.php'&#41;; /* Initialize the class translate class */ $gt = new GoogleTranslateWrapper&#40;&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>Interesante librería que hace uso de Google Translator para traducir un texto en un idioma a otro. Aunque el API de Google está solo en Java o Javascript, el autor de la librería ha creado un wrapper para que esté disponible desde PHP.</p>
<pre><code><pre class="php"><span style="color: #723b00;">require_once</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'googleTranslate.class.php'</span><span style="color: #66cc66;">&#41;</span>;
 
<span style="color: #808080; font-style: italic;">/* Initialize the class translate class */</span>
<span style="color: #3E6D8F;">$gt</span> = <span style="color: #000000; font-weight: bold;">new</span> GoogleTranslateWrapper<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #3E6D8F;">$sampleText</span> = <span style="color: #ff0000;">"Bonjour de cette partie du monde"</span>;
 
<span style="color: #808080; font-style: italic;">/* translate(string, to_language, from_language) */</span>
<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #3E6D8F;">$gt</span>-&gt;<span style="color: #006600;">translate</span><span style="color: #66cc66;">&#40;</span><span style="color: #3E6D8F;">$sampleText</span> , <span style="color: #ff0000;">"en"</span>, <span style="color: #ff0000;">"fr"</span><span style="color: #66cc66;">&#41;</span>;</pre></code></pre>
<p><a href="http://www.codediesel.com/php/google-translation-php-wrapper/">Google Translation PHP wrapper</a></p>]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2010/03/03/traduce-usando-google-y-php.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recomendaciones de Google para optimizar PHP y las replicas</title>
		<link>http://sentidoweb.com/2009/06/29/recomendaciones-de-google-para-optimizar-php-y-las-replicas.php</link>
		<comments>http://sentidoweb.com/2009/06/29/recomendaciones-de-google-para-optimizar-php-y-las-replicas.php#comments</comments>
		<pubDate>Mon, 29 Jun 2009 19:23:55 +0000</pubDate>
		<dc:creator>displaynone</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[optimizacion]]></category>

		<guid isPermaLink="false">http://sentidoweb.com/2009/06/29/recomendaciones-de-google-para-optimizar-php-y-las-replicas.php</guid>
		<description><![CDATA[Google ha recomendado una serie de consejos para optimizar nuestro código PHP, y no se ha hecho esperar la respuesta de la comunidad, diciendo que son consejos erróneos. Los consejos que suelo leer sobre optimizar PHP no se basan en micro-optimizaciones (usar switch o if, comillas dobles o simples, &#8230;) sino en optimizaciones más generales: [...]]]></description>
			<content:encoded><![CDATA[Google ha recomendado una serie de consejos para <a href="http://code.google.com/intl/es-ES/speed/articles/optimizing-php.html">optimizar nuestro código PHP</a>, y no se ha hecho esperar la <a href="http://php100.wordpress.com/2009/06/26/php-performance-google/">respuesta</a> <a href="http://groups.google.com/group/make-the-web-faster/browse_thread/thread/ddfbe82dd80408cc?pli=1">de la comunidad</a>, diciendo que son consejos erróneos.
Los consejos que suelo leer sobre optimizar PHP no se basan en micro-optimizaciones (usar switch o if, comillas dobles o simples, &#8230;) sino en optimizaciones más generales: buen código, caché, &#8230;
Vía / <a href="http://www.phpdeveloper.org/news/12762">PHPDeveloper.org</a>
]]></content:encoded>
			<wfw:commentRss>http://sentidoweb.com/2009/06/29/recomendaciones-de-google-para-optimizar-php-y-las-replicas.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

