<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Lateral Opinion - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-c7836065" type="application/json" /><link>http://lateralopinion.disqus.com/</link><description>Roberto Alsina's blog</description><language>en</language><lastBuildDate>Fri, 07 Jun 2013 11:27:00 -0000</lastBuildDate><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CommentsForRalsina-Haloscancom" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="commentsforralsina-haloscancom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>Re: Late congress report</title><link>http://ralsina.com.ar/tr/es/weblog/posts/P219.html#comment-922306937</link><description>&lt;p&gt;a smaller room, about 35/40 people?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Y8</dc:creator><pubDate>Fri, 07 Jun 2013 11:27:00 -0000</pubDate></item><item><title>Re: Deploying Django Into My Cheap VPS</title><link>http://ralsina.com.ar/weblog/posts/deploying-django-into-my-cheap-vps.html#comment-918021532</link><description>&lt;p&gt;Se ve muy piola! Me parece que sale secuela...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roberto Alsina</dc:creator><pubDate>Mon, 03 Jun 2013 16:36:46 -0000</pubDate></item><item><title>Re: Deploying Django Into My Cheap VPS</title><link>http://ralsina.com.ar/weblog/posts/deploying-django-into-my-cheap-vps.html#comment-918016213</link><description>&lt;p&gt;Pegale una mirada a esto: &lt;a href="https://github.com/jonathanslenders/python-deployer" rel="nofollow"&gt;https://github.com/jonathansle...&lt;/a&gt; . Para mi le pasa el trapo a Fabric (que para mi es bash escrito en python. it sucks)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martín Gaitán</dc:creator><pubDate>Mon, 03 Jun 2013 16:30:25 -0000</pubDate></item><item><title>Re: Deploying Django Into My Cheap VPS</title><link>http://ralsina.com.ar/weblog/posts/deploying-django-into-my-cheap-vps.html#comment-918014838</link><description>&lt;p&gt;Tambien tendria que ponerme a ver el benchmark que hay en la pagina de gunicorn para elegir entre gevent y todos los otros backends que soporta.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roberto Alsina</dc:creator><pubDate>Mon, 03 Jun 2013 16:28:49 -0000</pubDate></item><item><title>Re: Deploying Django Into My Cheap VPS</title><link>http://ralsina.com.ar/weblog/posts/deploying-django-into-my-cheap-vps.html#comment-918013429</link><description>&lt;p&gt;Hola Roberto.&lt;/p&gt;

&lt;p&gt;No probe con gunicorn, pero hace un tiempo hice un benchmark de uwsgi corriendo sobre un socket TCP y un socket Unix, y consegui aumentar la velocidad de respuesta en un ~3%. No es mucho pero todo suma!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nassty</dc:creator><pubDate>Mon, 03 Jun 2013 16:27:06 -0000</pubDate></item><item><title>Re: Deploying Django Into My Cheap VPS</title><link>http://ralsina.com.ar/weblog/posts/deploying-django-into-my-cheap-vps.html#comment-917879598</link><description>&lt;p&gt;Uff.. viejecito... si algún día tenés que jubilarlo porque ya le agarró azheimer acá tenés como hacerlo:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.percona.com/doc/percona-server/5.5/installation/apt_repo.html" rel="nofollow"&gt;http://www.percona.com/doc/per...&lt;/a&gt;&lt;br&gt;&lt;a href="https://downloads.mariadb.org/mariadb/repositories/" rel="nofollow"&gt;https://downloads.mariadb.org/...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jose</dc:creator><pubDate>Mon, 03 Jun 2013 14:05:41 -0000</pubDate></item><item><title>Re: Deploying Django Into My Cheap VPS</title><link>http://ralsina.com.ar/weblog/posts/deploying-django-into-my-cheap-vps.html#comment-917871685</link><description>&lt;p&gt;Justo este proveedor de VPS me da un ubuntu jovato que tiene MySQL 5.1.69 :(&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roberto Alsina</dc:creator><pubDate>Mon, 03 Jun 2013 13:58:55 -0000</pubDate></item><item><title>Re: Deploying Django Into My Cheap VPS</title><link>http://ralsina.com.ar/weblog/posts/deploying-django-into-my-cheap-vps.html#comment-917860385</link><description>&lt;p&gt;Si tenés que usar MySQL con InnoDB como motor de almacenamiento te sugiero que uses la versión 5.6x, o mejor aún MariaDB o las versiones de Percona[1] de MySQL. Cualquiera de las 2 últimas le pegan un par de vueltas a la manzana al MySQL de Oracle.&lt;/p&gt;

&lt;p&gt;Si vas a usar MyISAM como motor de almacenamiento, olvidate de todo lo que te dije :P&lt;/p&gt;

&lt;p&gt;[1] &lt;a href="http://www.percona.com/software/percona-server" rel="nofollow"&gt;http://www.percona.com/softwar...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jose</dc:creator><pubDate>Mon, 03 Jun 2013 13:49:07 -0000</pubDate></item><item><title>Re: Javascript Makes Me Cry: Turning a Date into a String</title><link>http://ralsina.com.ar/weblog/posts/javascript-makes-me-cry-turning-a-date-into-a-string.html#comment-913130237</link><description>&lt;p&gt;Yeah, saw some of those, and I can't describe my happiness when it worked without the padding ;-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roberto Alsina</dc:creator><pubDate>Wed, 29 May 2013 17:04:00 -0000</pubDate></item><item><title>Re: Javascript Makes Me Cry: Turning a Date into a String</title><link>http://ralsina.com.ar/weblog/posts/javascript-makes-me-cry-turning-a-date-into-a-string.html#comment-913128768</link><description>&lt;p&gt;Oh... And +1 for doing server side. No reason not to support non-JS if possible.&lt;br&gt;Ok. Done now.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nemo</dc:creator><pubDate>Wed, 29 May 2013 17:02:13 -0000</pubDate></item><item><title>Re: Javascript Makes Me Cry: Turning a Date into a String</title><link>http://ralsina.com.ar/weblog/posts/javascript-makes-me-cry-turning-a-date-into-a-string.html#comment-913115213</link><description>&lt;p&gt;y = (new Array(count + 1 - x.toString().length)).join('0') + x;&lt;br&gt;For padding.  Various other solutions listed here:&lt;br&gt;&lt;a href="http://stackoverflow.com/questions/1267283/how-can-i-create-a-zerofilled-value-using-javascript" rel="nofollow"&gt;http://stackoverflow.com/quest...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Really though, I probably would just have called toLocaleFormat or toLocaleDateString- has advantage of being, oh, localised :)&lt;br&gt;And. Yes, the default JS API lacks a lot.  Fortunately there are a ton of libs out there, so this is usually not a big deal.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nemo</dc:creator><pubDate>Wed, 29 May 2013 16:46:33 -0000</pubDate></item><item><title>Re: Javascript Makes Me Cry: Turning a Date into a String</title><link>http://ralsina.com.ar/weblog/posts/javascript-makes-me-cry-turning-a-date-into-a-string.html#comment-913059176</link><description>&lt;p&gt;Thanks for the comment!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roberto Alsina</dc:creator><pubDate>Wed, 29 May 2013 15:48:03 -0000</pubDate></item><item><title>Re: Javascript Makes Me Cry: Turning a Date into a String</title><link>http://ralsina.com.ar/weblog/posts/javascript-makes-me-cry-turning-a-date-into-a-string.html#comment-913058543</link><description>&lt;p&gt;Oh, extra fun :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roberto Alsina</dc:creator><pubDate>Wed, 29 May 2013 15:47:23 -0000</pubDate></item><item><title>Re: Javascript Makes Me Cry: Turning a Date into a String</title><link>http://ralsina.com.ar/weblog/posts/javascript-makes-me-cry-turning-a-date-into-a-string.html#comment-913052758</link><description>&lt;p&gt;I'd also like to note you shouldn't use getYear in JavaScript ever, since while most browsers follow the specification and do the -1900 thing, IE8 and older do not.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nemo</dc:creator><pubDate>Wed, 29 May 2013 15:41:49 -0000</pubDate></item><item><title>Re: Javascript Makes Me Cry: Turning a Date into a String</title><link>http://ralsina.com.ar/weblog/posts/javascript-makes-me-cry-turning-a-date-into-a-string.html#comment-913051014</link><description>&lt;p&gt;Your update thoughtfully does mention the origins in:&lt;br&gt;&lt;a href="http://en.cppreference.com/w/c/chrono/tm" rel="nofollow"&gt;http://en.cppreference.com/w/c...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;"What other language does this? Anyone knows one?"&lt;br&gt;&lt;a href="http://docs.oracle.com/javase/6/docs/api/java/util/Date.html#getMonth%28%29" rel="nofollow"&gt;http://docs.oracle.com/javase/...&lt;/a&gt;&lt;br&gt;&lt;a href="http://docs.oracle.com/javase/6/docs/api/java/util/Date.html#getYear%28%29" rel="nofollow"&gt;http://docs.oracle.com/javase/...&lt;/a&gt;&lt;br&gt;Is also 0-based month, 1900 based year.    Perl does this too.  Actually, is fairly common.&lt;/p&gt;

&lt;p&gt;0 based month is convenient for arrays referencing month.  Which was often used for, oh, localising the month string which was often the only string people had in a date.&lt;br&gt;1900 makes less sense, but common in languages from back then.  Bit silly to be sure, but fairly harmless if you're aware of it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nemo</dc:creator><pubDate>Wed, 29 May 2013 15:39:59 -0000</pubDate></item><item><title>Re: Javascript Makes Me Cry: Turning a Date into a String</title><link>http://ralsina.com.ar/weblog/posts/javascript-makes-me-cry-turning-a-date-into-a-string.html#comment-912722321</link><description>&lt;p&gt;Mi opinión es que tenés que asumir las stdlib de javascript que implementan los browsers como lo que son: incompatibles, rotas, inútiles.&lt;/p&gt;

&lt;p&gt;Y luego elegir para tus proyectos un par de bibliotecas buenas, como la que te sugieren acá y usar eso. Lo mismo que con CSS.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">alecu</dc:creator><pubDate>Wed, 29 May 2013 11:31:02 -0000</pubDate></item><item><title>Re: Javascript Makes Me Cry: Turning a Date into a String</title><link>http://ralsina.com.ar/weblog/posts/javascript-makes-me-cry-turning-a-date-into-a-string.html#comment-912627002</link><description>&lt;p&gt;Exactamente, era parte de la movida para que "JavaScript sea lo más parecido a Java", copiado del horrible diseño de Calendar circa 1996/1998. Y como muchas otras cosas en software, simplemente quedó así.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Camilo Díaz Repka</dc:creator><pubDate>Wed, 29 May 2013 10:30:04 -0000</pubDate></item><item><title>Re: Javascript Makes Me Cry: Turning a Date into a String</title><link>http://ralsina.com.ar/weblog/posts/javascript-makes-me-cry-turning-a-date-into-a-string.html#comment-912612467</link><description>&lt;p&gt;Argh? ;-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roberto Alsina</dc:creator><pubDate>Wed, 29 May 2013 10:21:20 -0000</pubDate></item><item><title>Re: Javascript Makes Me Cry: Turning a Date into a String</title><link>http://ralsina.com.ar/weblog/posts/javascript-makes-me-cry-turning-a-date-into-a-string.html#comment-912604020</link><description>&lt;p&gt;No sé si era una pregunta retórica, pero sobre otro lenguaje que sea "zero-based" para los meses, Java, en el paquete java.util.Calendar tiene ese hermoso comportamiento.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matias Graña</dc:creator><pubDate>Wed, 29 May 2013 10:17:05 -0000</pubDate></item><item><title>Re: Javascript Makes Me Cry: Turning a Date into a String</title><link>http://ralsina.com.ar/weblog/posts/javascript-makes-me-cry-turning-a-date-into-a-string.html#comment-912594587</link><description>&lt;p&gt;Yes, I saw it mentioned, but I am not adding this: &lt;a href="https://raw.github.com/timrwood/moment/2.0.0/min/moment.min.js" rel="nofollow"&gt;https://raw.github.com/timrwoo...&lt;/a&gt; to avoid one ugly line :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roberto Alsina</dc:creator><pubDate>Wed, 29 May 2013 10:12:23 -0000</pubDate></item><item><title>Re: Javascript Makes Me Cry: Turning a Date into a String</title><link>http://ralsina.com.ar/weblog/posts/javascript-makes-me-cry-turning-a-date-into-a-string.html#comment-912588155</link><description>&lt;p&gt;I kindly direct you to &lt;a href="http://momentjs.com/" rel="nofollow"&gt;http://momentjs.com/&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Striker</dc:creator><pubDate>Wed, 29 May 2013 10:09:06 -0000</pubDate></item><item><title>Re: Encuesta</title><link>http://ralsina.com.ar/weblog/posts/encuesta.html#comment-907257925</link><description>&lt;p&gt;Una vez que los tenga, los estudie, de la charla, etc, claro que sí.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roberto Alsina</dc:creator><pubDate>Fri, 24 May 2013 15:34:37 -0000</pubDate></item><item><title>Re: Encuesta</title><link>http://ralsina.com.ar/weblog/posts/encuesta.html#comment-907250592</link><description>&lt;p&gt;¿Vas a compartir los resultados en la lista? Me interesa.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pato</dc:creator><pubDate>Fri, 24 May 2013 15:28:03 -0000</pubDate></item><item><title>Re: Encuesta</title><link>http://ralsina.com.ar/weblog/posts/encuesta.html#comment-907206459</link><description>&lt;p&gt;Es casualidad nomás. Un programa de encuestas en serio randomizaria el orden de las opciones para cada uno que responde, pero bué.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roberto Alsina</dc:creator><pubDate>Fri, 24 May 2013 14:48:42 -0000</pubDate></item><item><title>Re: Encuesta</title><link>http://ralsina.com.ar/weblog/posts/encuesta.html#comment-907201597</link><description>&lt;p&gt;En la primera pregunta las opciones son No y Si. En la segunda en adelante Si y No. Me hizo ruido&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mariano Alejandro Montero Sina</dc:creator><pubDate>Fri, 24 May 2013 14:44:16 -0000</pubDate></item></channel></rss>
