<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>vicentgozalbes.com</title>
    <description>posts</description>
    <link>http://vicentgozalbes.com/posts.rss</link>
    <item>
      <title>ggomeze.com</title>
      <description>&lt;p&gt;No pod&#237;a dejar pasar la ocasi&#243;n de presentar este blog, &lt;a href=&quot;http://ggomeze.com&quot;&gt;ggomeze.com&lt;/a&gt;. Primero por ser de un gran compa&#241;ero y amigo, y segundo por usar &lt;a href=&quot;http://github.com/vigosan/vlog/tree/master&quot;&gt;vlog&lt;/a&gt; en su base =) Si alguien m&#225;s se anima a probarlo, no dud&#233;is en dejarme un comentario coment&#225;ndome que te parece&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Mon, 18 May 2009 19:44:00 +0000</pubDate>
      <link>http://vicentgozalbes.com/2009/05/18/ggomeze-com</link>
      <guid>http://vicentgozalbes.com/2009/05/18/ggomeze-com</guid>
    </item>
    <item>
      <title>Media Marat&#243;n de Almansa</title>
      <description>&lt;p&gt;El pr&#243;ximo s&#225;bado d&#237;a 23 de Mayo, estar&#233; en la Media Marat&#243;n de Almansa, no creo que mi lesi&#243;n me permita correr, pero s&#237; estar&#233; en la carpa que &lt;a href=&quot;http://www.strands.com&quot;&gt;Strands&lt;/a&gt; tiene previsto montar. As&#237; que ya sabes, si quieres conocer alg&#250;n atleta de elite (y esto no lo digo por m&#237;) y llevarte alg&#250;n que otro regalillo, ya sabes por donde pasar.&lt;/p&gt;</description>
      <pubDate>Mon, 18 May 2009 14:13:00 +0000</pubDate>
      <link>http://vicentgozalbes.com/2009/05/18/media-maratn-de-almansa</link>
      <guid>http://vicentgozalbes.com/2009/05/18/media-maratn-de-almansa</guid>
    </item>
    <item>
      <title>Un mes sin spam</title>
      <description>&lt;p&gt;Llevo alrededor de un mes sin que se cuele nada de spam usando la t&#233;cnica que coment&#233; en un post anterior. La idea consiste en ocultar uno de los campos del formulario, un usuario al no verlo, no lo rellenar&#225;, un robot por su parte, no dudar&#225; ni un segundo en hacerlo.&lt;/p&gt;
&lt;div class=&quot;CodeRay&quot;&gt;
  &lt;div class=&quot;code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;&amp;lt;%&lt;/span&gt; form_for &lt;span class=&quot;iv&quot;&gt;@comment&lt;/span&gt; &lt;span class=&quot;r&quot;&gt;do&lt;/span&gt; |f| &lt;span class=&quot;idl&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;ta&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;&amp;lt;%=&lt;/span&gt; f.label &lt;span class=&quot;sy&quot;&gt;:name&lt;/span&gt;, t(&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;.your_name&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;) &lt;span class=&quot;idl&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;&amp;lt;%=&lt;/span&gt; f.text_field &lt;span class=&quot;sy&quot;&gt;:name&lt;/span&gt; &lt;span class=&quot;idl&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;ta&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;ta&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;&amp;lt;%=&lt;/span&gt; f.label &lt;span class=&quot;sy&quot;&gt;:email&lt;/span&gt;, t(&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;.your_email&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;) &lt;span class=&quot;idl&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;&amp;lt;%=&lt;/span&gt; f.text_field &lt;span class=&quot;sy&quot;&gt;:email&lt;/span&gt; &lt;span class=&quot;idl&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;ta&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;ta&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;&amp;lt;%=&lt;/span&gt; f.label &lt;span class=&quot;sy&quot;&gt;:url&lt;/span&gt;, t(&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;.your_url&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;) &lt;span class=&quot;idl&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;&amp;lt;%=&lt;/span&gt; f.text_field &lt;span class=&quot;sy&quot;&gt;:url&lt;/span&gt; &lt;span class=&quot;idl&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;ta&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;ta&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;&amp;lt;%=&lt;/span&gt; f.label &lt;span class=&quot;sy&quot;&gt;:body&lt;/span&gt;, t(&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;.your_comment&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;) &lt;span class=&quot;idl&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;
    &lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;&amp;lt;%=&lt;/span&gt; f.text_area &lt;span class=&quot;sy&quot;&gt;:body&lt;/span&gt;, &lt;span class=&quot;sy&quot;&gt;:rows&lt;/span&gt; =&amp;gt; &lt;span class=&quot;i&quot;&gt;5&lt;/span&gt; &lt;span class=&quot;idl&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span class=&quot;ta&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;        
  &lt;span class=&quot;ta&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;&amp;lt;%=&lt;/span&gt; submit_tag t(&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;common.save_changes&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;)  &lt;span class=&quot;idl&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;  
  &lt;span class=&quot;ta&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;&amp;lt;%&lt;/span&gt; &lt;span class=&quot;r&quot;&gt;end&lt;/span&gt; &lt;span class=&quot;idl&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Simplemente, hay que tener cuidado con no darle pistas, hay que evitar poner un style=&amp;#8220;hidden&amp;#8221;, ni nada parecido, mejor hacerlo por javascript:&lt;/p&gt;
&lt;div class=&quot;CodeRay&quot;&gt;
  &lt;div class=&quot;code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;pd&quot;&gt;$&lt;/span&gt;(&lt;span class=&quot;kw&quot;&gt;function&lt;/span&gt;() {
  &lt;span class=&quot;kw&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;pd&quot;&gt;$&lt;/span&gt;(&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;#new_comment&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;).length) {  
    &lt;span class=&quot;pd&quot;&gt;$&lt;/span&gt;(&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;#comment_url&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;).parent().hide();
  }
});&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Efectivo y simple.&lt;/p&gt;</description>
      <pubDate>Thu, 30 Apr 2009 12:00:00 +0000</pubDate>
      <link>http://vicentgozalbes.com/2009/04/30/un-mes-sin-spam</link>
      <guid>http://vicentgozalbes.com/2009/04/30/un-mes-sin-spam</guid>
    </item>
    <item>
      <title>Strands.com</title>
      <description>&lt;p&gt;Hace unos meses anunciaba la llegada de &lt;a href=&quot;http://corp.strands.com&quot;&gt;Strands&lt;/a&gt; a &lt;a href=&quot;http://mientrenamiento.com&quot;&gt;mientrenamiento.com&lt;/a&gt;. Desde entonces, las cosas han cambiado mucho, han sido muchos meses de duro trabajo junto con un equipo fant&#225;stico. Fruto de todo este esfuerzo ha sido la creaci&#243;n de un proyecto, &lt;a href=&quot;http://strands.com&quot;&gt;Strands.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://strands.com&quot;&gt;Strands.com&lt;/a&gt; es una p&#225;gina donde corredores de todo el mundo podr&#225;n registrar sus entrenamientos y carreras, compartirlos con otros corredores y descubrir nuevas cosas. Tambi&#233;n podr&#225;s usar una aplicaci&#243;n espec&#237;fica para el iPhone. &lt;a href=&quot;http://strands.com&quot;&gt;Strands.com&lt;/a&gt; es compatible con dispositivos Garmin y Nike+ y pronto vendr&#225;n muchos m&#225;s.&lt;/p&gt;
&lt;p&gt;Adem&#225;s, tenemos a todo un equipo de atletas de primer nivel, podr&#225;s ver que entrenan nuestros &#237;dolos como &lt;a href=&quot;http://strands.com/abelanton&quot;&gt;Abel Ant&#243;n&lt;/a&gt; (doble campe&#243;n del Mundo de Marathon), &lt;a href=&quot;http://strands.com/fabianroncero&quot;&gt;Fabi&#225;n Roncero&lt;/a&gt; (Campe&#243;n de Espa&#241;a de Media Marathon y Campe&#243;n de Espa&#241;a de Cross), entre muchos otros, &lt;a href=&quot;http://strands.com/roberto739&quot;&gt;Roberto Garc&#237;a&lt;/a&gt;, &lt;a href=&quot;http://strands.com/ribera&quot;&gt;Paco Ribera&lt;/a&gt;, &lt;a href=&quot;http://strands.com/rogerroca&quot;&gt;Roger Roca&lt;/a&gt;, &lt;a href=&quot;http://strands.com/agrario&quot;&gt;Daniel Mateo&lt;/a&gt;, y otros muchos atletas de &lt;span class=&quot;caps&quot;&gt;USA&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Os dejo un peque&#241;o video:&lt;/p&gt;
&lt;p&gt;&lt;embed src=&quot;http://blip.tv/play/AfyNXpaLNA&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;335&quot; height=&quot;253&quot; allowscriptaccess=&quot;never&quot; allowfullscreen=&quot;true&quot;&gt;&lt;/embed&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 23 Apr 2009 17:43:00 +0000</pubDate>
      <link>http://vicentgozalbes.com/2009/04/23/strands-com</link>
      <guid>http://vicentgozalbes.com/2009/04/23/strands-com</guid>
    </item>
    <item>
      <title>Ordenar alfab&#233;ticamente</title>
      <description>&lt;p&gt;Este es un hack que suelo usar muy a menudo en mis p&#225;ginas multilenguaje, es decir que el usuario puede verlas en ingl&#233;s o castellano. Imaginad que tenemos &lt;strong&gt;Categor&#237;as&lt;/strong&gt; fijas en nuestra base de datos (o en un array), cuyos nombres est&#225;n en ingl&#233;s y queremos mostrarlas ordenadas, por ejemplo en un select de un formulario. Esto se podr&#237;a hacer f&#225;cilmente con el &lt;strong&gt;order&lt;/strong&gt; al hacer la consulta, pero estar&#237;amos ordenando las palabras en ingl&#233;s, no nos servir&#237;a para castellano.&lt;/p&gt;
&lt;p&gt;Una soluci&#243;n ser&#237;a:&lt;/p&gt;
&lt;div class=&quot;CodeRay&quot;&gt;
  &lt;div class=&quot;code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;co&quot;&gt;Category&lt;/span&gt;.all.collect{|c| [&lt;span class=&quot;co&quot;&gt;I18n&lt;/span&gt;.t(&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;categories.&lt;/span&gt;&lt;span class=&quot;il&quot;&gt;&lt;span class=&quot;idl&quot;&gt;#{&lt;/span&gt;c.name&lt;span class=&quot;idl&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;), c.id] }.sort { |a,b| a[&lt;span class=&quot;i&quot;&gt;0&lt;/span&gt;] &amp;lt;=&amp;gt; b[&lt;span class=&quot;i&quot;&gt;0&lt;/span&gt;] }&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Cuyo resultado ser&#225;:&lt;/p&gt;
&lt;div class=&quot;CodeRay&quot;&gt;
  &lt;div class=&quot;code&quot;&gt;&lt;pre&gt;[[&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;proyectos&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;, &lt;span class=&quot;i&quot;&gt;2&lt;/span&gt;], [&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;rails&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;, &lt;span class=&quot;i&quot;&gt;3&lt;/span&gt;], [&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;strands&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;, &lt;span class=&quot;i&quot;&gt;1&lt;/span&gt;]]&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description>
      <pubDate>Tue, 14 Apr 2009 08:00:00 +0000</pubDate>
      <link>http://vicentgozalbes.com/2009/04/14/ordenar-alfabticamente</link>
      <guid>http://vicentgozalbes.com/2009/04/14/ordenar-alfabticamente</guid>
    </item>
  </channel>
</rss>
