<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>titles are overrated</title>
	<atom:link href="http://iaintgoodatnamingthings.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://iaintgoodatnamingthings.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 21 Apr 2010 19:40:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='iaintgoodatnamingthings.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>titles are overrated</title>
		<link>http://iaintgoodatnamingthings.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://iaintgoodatnamingthings.wordpress.com/osd.xml" title="titles are overrated" />
	<atom:link rel='hub' href='http://iaintgoodatnamingthings.wordpress.com/?pushpress=hub'/>
		<item>
		<title>¡desafio shortcode! group by para arrays</title>
		<link>http://iaintgoodatnamingthings.wordpress.com/2010/04/21/%c2%a1desafio-shortcode-group-by-para-arrays/</link>
		<comments>http://iaintgoodatnamingthings.wordpress.com/2010/04/21/%c2%a1desafio-shortcode-group-by-para-arrays/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 19:40:23 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[desafio]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[group by]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[shortcode]]></category>

		<guid isPermaLink="false">http://iaintgoodatnamingthings.wordpress.com/?p=68</guid>
		<description><![CDATA[a veces jugamos &#8216;competencias&#8217; con amigos/compañeros viendo quien hace el codigo mas corto&#8230; anteriormente hicimos buscar año bisiesto mas corto y otras&#8230; esta vez la idea es crear una funcion para agrupar arrays multidimensionales de una forma similar al GROUP BY en MySQL. reglas/aclaraciones: - la funcion debe llamarse group - la funcion debe tomar [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=68&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>a veces jugamos &#8216;competencias&#8217; con amigos/compañeros viendo quien hace el codigo mas corto&#8230; anteriormente hicimos <a href="http://theresnobetterplacelikelocalhost.blogspot.com/2010/01/desafio-nerd-anos-bisiestos-php.html" target="_blank">buscar año bisiesto mas corto</a> y otras&#8230;</p>
<p>esta vez la idea es crear una funcion para agrupar arrays multidimensionales de una forma similar al GROUP BY en MySQL.</p>
<p>reglas/aclaraciones:<br />
- la funcion debe llamarse group<br />
- la funcion debe tomar dos parametros, el primero es el array multidimensional y el segundo un string con los subindices por los que debe agrupar separados por coma<br />
- no es necesaria la validacion de los parametros<br />
- debe agregarse al final de cada componente un subcomponente que indica cuantos elementos se agruparon (1 si no se agrupo ninguno)<br />
- debe agrupar todo tipo de indices (salvo que contengan coma)<br />
- se pueden crear funciones auxiliares<br />
- la version de php es 5.3.1 corriendo en fedora fresh install<br />
- solo se va a medir la funcion, sin los tags de php<br />
- puede tirar notices/warnings<br />
- el &#8220;contest&#8221; cierra el 30/04/2010 a las 18:00 GMT-3<br />
- todo lo demas&#8230; vale :)</p>
<p>ejemplo:</p>
<pre><em>$x = array(
	array(1,2,3), // 0 =&gt; 1, 1 =&gt; 2, 2 =&gt; 3
	array(1,5,3), // 0 =&gt; 1, 1 =&gt; 5, 2 =&gt; 3
	array(1,2,3), // 0 =&gt; 1, 1 =&gt; 2, 2 =&gt; 3
	array(1,2,4), // 0 =&gt; 1, 1 =&gt; 2, 2 =&gt; 4
);

var_dump(group($x, '0,2')); // agrupar el array $x por subindice 0 y subindice 2

resultado:
array(
	array(1,2,3,3), // se agruparon los 3 primeros dejando solo el primero y se le agrega al final la cantidad de elementos que se agruparon (3)
	array(1,2,4,1), // en este caso no se agrupo ninguno, se agrega 1
);</em>
</pre>
<p>enviar los codigos a <img src="http://www.c0wa.com/text2img/s/bWFyY29AbGl2ZS5jb20uYXJ8YXJpYWx8OHwwfDB8MDAwMDAwfEZGRkZGRg==.png" alt="" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iaintgoodatnamingthings.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iaintgoodatnamingthings.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iaintgoodatnamingthings.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iaintgoodatnamingthings.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iaintgoodatnamingthings.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iaintgoodatnamingthings.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iaintgoodatnamingthings.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iaintgoodatnamingthings.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iaintgoodatnamingthings.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iaintgoodatnamingthings.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iaintgoodatnamingthings.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iaintgoodatnamingthings.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iaintgoodatnamingthings.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iaintgoodatnamingthings.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=68&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iaintgoodatnamingthings.wordpress.com/2010/04/21/%c2%a1desafio-shortcode-group-by-para-arrays/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82173e3bf074153f0023b38302dcfbd5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marco</media:title>
		</media:content>

		<media:content url="http://www.c0wa.com/text2img/s/bWFyY29AbGl2ZS5jb20uYXJ8YXJpYWx8OHwwfDB8MDAwMDAwfEZGRkZGRg==.png" medium="image" />
	</item>
		<item>
		<title>lazyload &#8211; carga de imagenes con delay</title>
		<link>http://iaintgoodatnamingthings.wordpress.com/2010/03/30/lazyload-carga-de-imagenes-con-delay/</link>
		<comments>http://iaintgoodatnamingthings.wordpress.com/2010/03/30/lazyload-carga-de-imagenes-con-delay/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 15:28:00 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[delay]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[lazyload]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://iaintgoodatnamingthings.wordpress.com/?p=66</guid>
		<description><![CDATA[creo que es mi primer plugin mas o menos prolijo de jQuery, lo que hace es no mostrar las imagenes hasta que entran en la pantalla del usuario evitando cargar las que quedan fuera y haciendo asi mas bella la vida para los servidores y los clientes :) esta inspirado en este plugin de Mika [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=66&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>creo que es mi primer plugin mas o menos prolijo de jQuery, lo que hace es no mostrar las imagenes hasta que entran en la pantalla del usuario evitando cargar las que quedan fuera y haciendo asi mas bella la vida para los servidores y los clientes :)</p>
<p>esta inspirado en <a href="http://www.appelsiini.net/projects/lazyload">este plugin</a> de Mika Tuupola.</p>
<p>uso:<br />
$(&#8216;img&#8217;).lazyload()</p>
<p>opciones:</p>
<ul>
<li> placeHolder: imagen para mostrar hasta cargar la correcta</li>
<li> effect: efecto al mostrar la imagen (i.e. show o fadeIn)</li>
<li> effectSpeed: duracion del efecto (milisegundos)</li>
<li> sensitivity: cuantos pixels antes cargar la imagen</li>
</ul>
<p>ejemplo:<br />
$(&#8216;img.lazy&#8217;).lazyload({ placeHolder: &#8216;blank.gif&#8217;, effect: &#8216;fadeIn&#8217;, effectSpeed: 250, sensitivity: 200 });</p>
<p>demo: comentarios de T! :)</p>
<p><a href="http://www.c0wa.com/lazyload.js">lazyload.js</a> (893b)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iaintgoodatnamingthings.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iaintgoodatnamingthings.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iaintgoodatnamingthings.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iaintgoodatnamingthings.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iaintgoodatnamingthings.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iaintgoodatnamingthings.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iaintgoodatnamingthings.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iaintgoodatnamingthings.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iaintgoodatnamingthings.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iaintgoodatnamingthings.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iaintgoodatnamingthings.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iaintgoodatnamingthings.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iaintgoodatnamingthings.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iaintgoodatnamingthings.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=66&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iaintgoodatnamingthings.wordpress.com/2010/03/30/lazyload-carga-de-imagenes-con-delay/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82173e3bf074153f0023b38302dcfbd5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marco</media:title>
		</media:content>
	</item>
		<item>
		<title>de mIRC scripting a Javascript</title>
		<link>http://iaintgoodatnamingthings.wordpress.com/2010/02/16/de-mirc-scripting-a-javascript/</link>
		<comments>http://iaintgoodatnamingthings.wordpress.com/2010/02/16/de-mirc-scripting-a-javascript/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 00:25:53 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[capslock]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mirc]]></category>
		<category><![CDATA[proteccion]]></category>

		<guid isPermaLink="false">http://iaintgoodatnamingthings.wordpress.com/?p=61</guid>
		<description><![CDATA[hoy aplique ideas del viejo mIRC a la web, para que los users no posteen los titulos en mayusculas. es un snippet de tabo publicado en mircscripts.org porteado a js. /* _capsprot(str) : devuelve el porcentaje de mayusculas en str */ function _capsprot(s) { var len = s.length, strip = s.replace(/([A-Z])+/g, '').length, strip2 = s.replace(/([a-zA-Z])+/g, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=61&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>hoy aplique ideas del viejo mIRC a la web, para que los users no posteen los titulos en mayusculas. es un snippet de tabo publicado en mircscripts.org porteado a js.</p>
<p><code>/* _capsprot(str) : devuelve el porcentaje de mayusculas en str */<br />
function _capsprot(s) { var len = s.length, strip = s.replace(/([A-Z])+/g, '').length, strip2 = s.replace(/([a-zA-Z])+/g, '').length; percent = (len  - strip) / (len - strip2) * 100; return percent; }</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iaintgoodatnamingthings.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iaintgoodatnamingthings.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iaintgoodatnamingthings.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iaintgoodatnamingthings.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iaintgoodatnamingthings.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iaintgoodatnamingthings.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iaintgoodatnamingthings.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iaintgoodatnamingthings.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iaintgoodatnamingthings.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iaintgoodatnamingthings.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iaintgoodatnamingthings.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iaintgoodatnamingthings.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iaintgoodatnamingthings.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iaintgoodatnamingthings.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=61&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iaintgoodatnamingthings.wordpress.com/2010/02/16/de-mirc-scripting-a-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82173e3bf074153f0023b38302dcfbd5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marco</media:title>
		</media:content>
	</item>
		<item>
		<title>profiling en php</title>
		<link>http://iaintgoodatnamingthings.wordpress.com/2010/02/05/profiling-en-php/</link>
		<comments>http://iaintgoodatnamingthings.wordpress.com/2010/02/05/profiling-en-php/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 02:09:33 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[profiling]]></category>

		<guid isPermaLink="false">http://iaintgoodatnamingthings.wordpress.com/?p=57</guid>
		<description><![CDATA[escribi una clase muy simple para hacer analisis de performance en php. functiona como un stopwatch: se instancia la clase para empezar a tomar el tiempo y se van agregando laps con un id opcional para luego analizar. para terminar se agrega una lap llamada end o se llama al metodo stop. un ejemplo, y [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=57&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>escribi una clase muy simple para hacer analisis de performance en php. functiona como un stopwatch: se instancia la clase para empezar a tomar el tiempo y se van agregando laps con un id opcional para luego analizar. para terminar se agrega una lap llamada end o se llama al metodo stop.</p>
<p><a href="http://www.c0wa.com/profiler.php" target="_blank" title="profiling in php example">un ejemplo</a>, y el <a href="http://www.c0wa.com/profiler.php?source" target="_blank" title="profiling in php">source code</a></p>
<p>edit: functiona? :S se nota que vengo dos dias programando sin dormir.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iaintgoodatnamingthings.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iaintgoodatnamingthings.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iaintgoodatnamingthings.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iaintgoodatnamingthings.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iaintgoodatnamingthings.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iaintgoodatnamingthings.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iaintgoodatnamingthings.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iaintgoodatnamingthings.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iaintgoodatnamingthings.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iaintgoodatnamingthings.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iaintgoodatnamingthings.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iaintgoodatnamingthings.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iaintgoodatnamingthings.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iaintgoodatnamingthings.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=57&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iaintgoodatnamingthings.wordpress.com/2010/02/05/profiling-en-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82173e3bf074153f0023b38302dcfbd5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marco</media:title>
		</media:content>
	</item>
		<item>
		<title>fases lunares</title>
		<link>http://iaintgoodatnamingthings.wordpress.com/2010/02/02/fases-lunares/</link>
		<comments>http://iaintgoodatnamingthings.wordpress.com/2010/02/02/fases-lunares/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 17:46:29 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fase lunar]]></category>
		<category><![CDATA[luna]]></category>
		<category><![CDATA[moon]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://iaintgoodatnamingthings.wordpress.com/?p=53</guid>
		<description><![CDATA[una clase en php para el calculo de las fases lunares. esto es algo que tuve que desarrollar para un modulo de clima y creo que quedo bastante lindo, por eso lo publico. puede calcular, dandole una fecha a partir de 1970, la fase lunar, la visibilidad, fecha de la proxima luna nueva / llena [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=53&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>una clase en php para el calculo de las fases lunares. esto es algo que tuve que desarrollar para un modulo de clima y creo que quedo bastante lindo, por eso lo publico.<br />
puede calcular, dandole una fecha a partir de 1970, la fase lunar, la visibilidad, fecha de la proxima luna nueva / llena y el porcentaje del ciclo actual</p>
<p>aca <a title="fases lunares" href="http://www.c0wa.com/moon.php" target="_blank">un ejemplo</a> y aca el <a title="fases lunares source code" href="http://www.c0wa.com/moon.php?source" target="_blank">source code</a></p>
<p>edit: la misma clase pero en javascript <a href="http://www.c0wa.com/moon.js" target="_blank" title="fases lunares en javascript">aca</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iaintgoodatnamingthings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iaintgoodatnamingthings.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iaintgoodatnamingthings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iaintgoodatnamingthings.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iaintgoodatnamingthings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iaintgoodatnamingthings.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iaintgoodatnamingthings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iaintgoodatnamingthings.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iaintgoodatnamingthings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iaintgoodatnamingthings.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iaintgoodatnamingthings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iaintgoodatnamingthings.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iaintgoodatnamingthings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iaintgoodatnamingthings.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=53&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iaintgoodatnamingthings.wordpress.com/2010/02/02/fases-lunares/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82173e3bf074153f0023b38302dcfbd5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marco</media:title>
		</media:content>
	</item>
		<item>
		<title>¡kuain!</title>
		<link>http://iaintgoodatnamingthings.wordpress.com/2010/02/01/%c2%a1kuain/</link>
		<comments>http://iaintgoodatnamingthings.wordpress.com/2010/02/01/%c2%a1kuain/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 04:30:12 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[quine]]></category>

		<guid isPermaLink="false">http://iaintgoodatnamingthings.wordpress.com/?p=51</guid>
		<description><![CDATA[un quine es un programa cuyo source code es igual al output que produce&#8230; como no encontre ninguno que me guste en php hice uno mio (la gracia es hacerlo lo mas corto posible) &#60;? $a='&#60;? $a=\'%s\';printf($a,addslashes($a));';printf($a,addslashes($a)); tip para codigos mas cortos: no hay errores ni warnings si no se incluye el close-tag de php [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=51&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>un quine es un programa cuyo source code es igual al output que produce&#8230; como no encontre ninguno que me guste en php hice uno mio (la gracia es hacerlo lo mas corto posible)</p>
<pre>&lt;? $a='&lt;? $a=\'%s\';printf($a,addslashes($a));';printf($a,addslashes($a));</pre>
<p>tip para codigos mas cortos: no hay errores ni warnings si no se incluye el close-tag de php :)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iaintgoodatnamingthings.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iaintgoodatnamingthings.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iaintgoodatnamingthings.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iaintgoodatnamingthings.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iaintgoodatnamingthings.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iaintgoodatnamingthings.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iaintgoodatnamingthings.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iaintgoodatnamingthings.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iaintgoodatnamingthings.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iaintgoodatnamingthings.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iaintgoodatnamingthings.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iaintgoodatnamingthings.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iaintgoodatnamingthings.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iaintgoodatnamingthings.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=51&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iaintgoodatnamingthings.wordpress.com/2010/02/01/%c2%a1kuain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82173e3bf074153f0023b38302dcfbd5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marco</media:title>
		</media:content>
	</item>
		<item>
		<title>fcache, memcached alike</title>
		<link>http://iaintgoodatnamingthings.wordpress.com/2010/01/16/fcache-memcached-alike/</link>
		<comments>http://iaintgoodatnamingthings.wordpress.com/2010/01/16/fcache-memcached-alike/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 02:53:36 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://iaintgoodatnamingthings.wordpress.com/?p=48</guid>
		<description><![CDATA[viernes productivo, escribi una clase que emula a memcached pero usando archivos para guardar los datos y sin ningun requerimiento en el servidor, salvo PHP5 y permiso de escritura&#8230; aca un ejemplo, y aca el source el ejemplo la primera vez tarda 5 segundos en cargar, simulando un procedimiento lento, pero al cargarlo de nuevo [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=48&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>viernes productivo, escribi una clase que emula a memcached pero usando archivos para guardar los datos y sin ningun requerimiento en el servidor, salvo PHP5 y permiso de escritura&#8230;</p>
<p>aca un <a href="http://www.c0wa.com/leap.php" target="_blank">ejemplo</a>, y aca el <a href="http://www.c0wa.com/leap.php?show_source" target="_blank">source</a></p>
<p>el ejemplo la primera vez tarda 5 segundos en cargar, simulando un procedimiento lento, pero al cargarlo de nuevo dentro de los 20 segundos va a ser instantaneo ya que lee del cache&#8230;</p>
<p>la opcion max_files no la probe porque no tengo exec en el hosting y no creo que ande :)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iaintgoodatnamingthings.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iaintgoodatnamingthings.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iaintgoodatnamingthings.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iaintgoodatnamingthings.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iaintgoodatnamingthings.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iaintgoodatnamingthings.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iaintgoodatnamingthings.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iaintgoodatnamingthings.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iaintgoodatnamingthings.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iaintgoodatnamingthings.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iaintgoodatnamingthings.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iaintgoodatnamingthings.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iaintgoodatnamingthings.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iaintgoodatnamingthings.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=48&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iaintgoodatnamingthings.wordpress.com/2010/01/16/fcache-memcached-alike/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82173e3bf074153f0023b38302dcfbd5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marco</media:title>
		</media:content>
	</item>
		<item>
		<title>vulns en zonajobs o como no manejar los datos</title>
		<link>http://iaintgoodatnamingthings.wordpress.com/2010/01/08/vulns-en-zonajobs-o-como-no-manejar-los-datos/</link>
		<comments>http://iaintgoodatnamingthings.wordpress.com/2010/01/08/vulns-en-zonajobs-o-como-no-manejar-los-datos/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 19:53:12 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[Seguridad]]></category>

		<guid isPermaLink="false">http://iaintgoodatnamingthings.wordpress.com/?p=45</guid>
		<description><![CDATA[me habia olvidado mi clave de zonajobs y complete el formulario para recuperarla, me sorprendio bastante que al recibir el mail no me habian generado una clave nueva, sino que habian recuperado la anterior&#8230; no las guardan encriptadas? asi nomas? que miedo&#8230; me puse a jugar un poco pero no encontre nada interesante, LFI pero [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=45&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>me habia olvidado mi clave de zonajobs y complete el formulario para recuperarla, me sorprendio bastante que al recibir el mail no me habian generado una clave nueva, sino que habian recuperado la anterior&#8230; no las guardan encriptadas? asi nomas? que miedo&#8230;</p>
<p>me puse a jugar un poco pero no encontre nada interesante, LFI pero no encontre forma de explotarlo hasta que fui a editar mis datos, me llamo la atencion que el cambio de email no pida confirmacion: puedo asociar mi cuenta a otro mail, con la clave original y recuperarla ahi? esto se pone turbio</p>
<p>por ultimo, catastrofe&#8230; el formulario de los datos personales toma el id de usuario de un input hidden y no de la session, cuestion que modificando mi id por otro, puedo cambiar el mail (y todos los datos) de otra persona, recuperar la contraseña y volverlo al mail anterior sin que el pobre usuario se haya enterado&#8230;</p>
<p>feo zonajobs, iba a dar de baja mi cuenta pero no encontre donde, por las dudas puse un password que no comparto con ningun otro sitio :)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iaintgoodatnamingthings.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iaintgoodatnamingthings.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iaintgoodatnamingthings.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iaintgoodatnamingthings.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iaintgoodatnamingthings.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iaintgoodatnamingthings.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iaintgoodatnamingthings.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iaintgoodatnamingthings.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iaintgoodatnamingthings.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iaintgoodatnamingthings.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iaintgoodatnamingthings.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iaintgoodatnamingthings.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iaintgoodatnamingthings.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iaintgoodatnamingthings.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=45&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iaintgoodatnamingthings.wordpress.com/2010/01/08/vulns-en-zonajobs-o-como-no-manejar-los-datos/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82173e3bf074153f0023b38302dcfbd5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marco</media:title>
		</media:content>
	</item>
		<item>
		<title>fase de testing</title>
		<link>http://iaintgoodatnamingthings.wordpress.com/2010/01/08/fase-de-testing/</link>
		<comments>http://iaintgoodatnamingthings.wordpress.com/2010/01/08/fase-de-testing/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 00:55:38 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://iaintgoodatnamingthings.wordpress.com/?p=42</guid>
		<description><![CDATA[estos son un par de bugs que reportaron y me parecieron graciosos&#8230; usuario: nadie tiene papel para imprimir mas de una hoja la orden, habria que hacerla en una sola hoja reply: pongan mas hojas? si lo achicamos mas no van a leer nada usuario: …probe las 60 y todo bien… reply: Si probaste las [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=42&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>estos son un par de bugs que reportaron y me parecieron graciosos&#8230;</p>
<p>usuario: nadie tiene papel para imprimir mas de una hoja la orden, habria que hacerla en una sola hoja<br />
reply: pongan mas hojas? si lo achicamos mas no van a leer nada</p>
<p>usuario: …probe las 60 y todo bien…<br />
reply: Si probaste las 60 fotos y todo bien… Cual es el bug?</p>
<p>usuario: Podemos quitar el Hoja 1 de 1 de la impresion?<br />
reply: si queres desactivalo desde tu browser, a mi me gusta.</p>
<p>usuario: Pero el que no tiene mail no tiene Internet!<br />
reply: …y si sos tester, sos boludo?</p>
<p>usuario: Que es ese cuadrado con un mas al lado de empresas?<br />
reply: para ver mas empresas.</p>
<p>usuario: Cuando quise probar el boton de Imprimir me mostro la selección de la impresora pero no me mostró nada más<br />
reply: Porque tenes que imprimirlo para verlo en eso consiste la funcionalidad</p>
<p>usuario: En la subida de foto en lugar de aparecer el path completo del lugar donde se sube la foto solo aparece el boton de choose file, quizas sea de ayuda para el usuario que aparezca como en windows<br />
reply: Forma parte de la UI de Mac, tampoco tenemos nivel de control como para modificarlo.</p>
<p>usuario: El proceso de login es mucho mas lento que con Windows<br />
reply: …no depende del sistema operativo sino de la performance de la PC/Mac ……</p>
<p>usuario: Cuando escribi el user para loguearme me escribio deajo de cada letra un puntito rojo como si estuviera revisando el spell<br />
reply: Es el corrector ortografico instalado en el OS. No tenemos tanto nivel de control como para deshabilitarlo.</p>
<p>usuario: Recuperar clave seria ideal que devuelva la clave que la persona cargo y no que genere una nueva. Es mejor para la percepcion del cliente<br />
reply: las claves se guardan encriptadas y no es reversible&#8230; tambien podemos guardarle el numero de tarjeta de credito y el codigo de seguridad por si la pierde y la quiere recuperar</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iaintgoodatnamingthings.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iaintgoodatnamingthings.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iaintgoodatnamingthings.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iaintgoodatnamingthings.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iaintgoodatnamingthings.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iaintgoodatnamingthings.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iaintgoodatnamingthings.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iaintgoodatnamingthings.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iaintgoodatnamingthings.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iaintgoodatnamingthings.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iaintgoodatnamingthings.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iaintgoodatnamingthings.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iaintgoodatnamingthings.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iaintgoodatnamingthings.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=42&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iaintgoodatnamingthings.wordpress.com/2010/01/08/fase-de-testing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82173e3bf074153f0023b38302dcfbd5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marco</media:title>
		</media:content>
	</item>
		<item>
		<title>rewrites mas seguros</title>
		<link>http://iaintgoodatnamingthings.wordpress.com/2010/01/06/rewrites-mas-seguros/</link>
		<comments>http://iaintgoodatnamingthings.wordpress.com/2010/01/06/rewrites-mas-seguros/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 04:48:11 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://iaintgoodatnamingthings.wordpress.com/?p=35</guid>
		<description><![CDATA[trabajando en un sitio donde seguro vamos a recibir ataques, er tuvo una idea: filtrar los parametros antes de ser enviados, usando rewrites&#8230; big deal, todo el mundo lo hace, pero la mayoria deja permitido el acceso directo a los archivos como quedo nuestro .htaccess: # si el visitante accede directo a home.php redirigimos a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=35&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>trabajando en un sitio donde seguro vamos a recibir ataques, er tuvo una idea: filtrar los parametros antes de ser enviados, usando rewrites&#8230; big deal, todo el mundo lo hace, pero la mayoria deja permitido el acceso directo a los archivos</p>
<p>como quedo nuestro .htaccess:</p>
<pre># si el visitante accede directo a home.php redirigimos a un error
RewriteCond %{ENV:SCRIPT_URL} =/home.php
RewriteRule ^home.php(.*) /h4x0r.php [L]
# las urls desde las que el visitante puede ver el home.php
# permitiendo solo numeros para el paginado y caracteres alfanumericos para el resto
RewriteRule ^list(\/)?$ /home.php [L]
RewriteRule ^submit(\/)?$ /home.php?s=submit [L]
RewriteRule ^search(\/)?$ /home.php?s=search [L]
RewriteRule ^filter/([A-Za-z0-9\ ]+)(\/)?([0-9]*) /home.php?s=filter&amp;q=$1&amp;p=$3 [L]
RewriteRule ^user/([A-Za-z0-9]+)(\/)?([0-9]*)? /home.php?s=user&amp;user=$1&amp;p=$3 [L]
RewriteRule ^list/([A-Za-z0-9]+)(\/)?([0-9]*)? /home.php?s=list&amp;type=$1&amp;p=$3 [L]</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iaintgoodatnamingthings.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iaintgoodatnamingthings.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iaintgoodatnamingthings.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iaintgoodatnamingthings.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iaintgoodatnamingthings.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iaintgoodatnamingthings.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iaintgoodatnamingthings.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iaintgoodatnamingthings.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iaintgoodatnamingthings.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iaintgoodatnamingthings.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iaintgoodatnamingthings.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iaintgoodatnamingthings.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iaintgoodatnamingthings.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iaintgoodatnamingthings.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iaintgoodatnamingthings.wordpress.com&amp;blog=8437258&amp;post=35&amp;subd=iaintgoodatnamingthings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iaintgoodatnamingthings.wordpress.com/2010/01/06/rewrites-mas-seguros/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82173e3bf074153f0023b38302dcfbd5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marco</media:title>
		</media:content>
	</item>
	</channel>
</rss>
