<?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>Blog[nbsp] &#187; Desarrollo web</title>
	<atom:link href="http://www.nbsp.es/category/desarrollo-web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nbsp.es</link>
	<description>.Desarrollo web para profesionales de internet.</description>
	<lastBuildDate>Fri, 28 May 2010 20:51:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Formas de acortar un condicional de varios elementos</title>
		<link>http://www.nbsp.es/2010/05/28/formas-de-acortar-un-condicional-de-varios-elementos/</link>
		<comments>http://www.nbsp.es/2010/05/28/formas-de-acortar-un-condicional-de-varios-elementos/#comments</comments>
		<pubDate>Fri, 28 May 2010 20:51:40 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Turoriales]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/?p=631</guid>
		<description><![CDATA[Estaba mirando stackoverflow cuando he encontrado la pregunta que da nombre a esta entrada, me ha encantando ver que tanta gente añade sus propuestas y hay tantas que no me he podido resistir las ganas de compartir esto con vosotros.
NOTA: Los créditos de toda la entrada se van a stackoverflow y a sus respectivos usuarios.
Imaginemos [...]]]></description>
			<content:encoded><![CDATA[<p>Estaba mirando stackoverflow cuando he encontrado la pregunta que da nombre a esta entrada, me ha encantando ver que tanta gente añade sus propuestas y hay tantas que no me he podido resistir las ganas de compartir esto con vosotros.<br />
<strong>NOTA: </strong>Los créditos de toda la entrada se van a <a href="http://stackoverflow.com/questions/2932131/short-hand-for-chaining-logical-operators-in-javascript">stackoverflow</a> y a sus respectivos usuarios.</p>
<p>Imaginemos que tenemos un condicional largo como el siguiente:</p>
<p><code>if (value == 1 || value == 16 || value == -500 || value == 42.42 || value == 'something' ) {<br />
  // blah blah blah<br />
}</code></p>
<p>Y queremos acortarlo para que nos sea más fácil de mantener y gestionar, bien, a continuación varias formas de tratar ese condicional de una forma un poco alternativa:</p>
<p>Primera opción (no compatible con IE)</p>
<p><code>var a = [1, 16, -500, 42.42, 'something'];<br />
var value = true;<br />
if (a.indexOf(testVar) > -1){<br />
// blah blah blah<br />
}<br />
</code></p>
<p>Lo que hace es utilizar la función indexOf de Array, la cual nos retorna la posición del elemento que estemos buscando, si el array no contiene lo que buscamos devuelve -1. Podéis obtener más información del siguiente enlace: <a href="http://www.tutorialspoint.com/javascript/array_indexof.htm">pulsa aquí</a>.</p>
<p>Basicamente la mejora sería implementar un indexOf manualmente.<br />
<code>Object.prototype.in = function(){<br />
  for(var i = 0; i < arguments.length; i++){<br />
    if (this == arguments[i]) return true;<br />
  }<br />
  return false;<br />
}</p>
<p>if (value.in(1, 16, -500, 42.42, 'something')){<br />
// blah blah blah<br />
}<br />
</code></p>
<p>Otra alternativa menos sofisticada, el mítico switch:</p>
<p><code>switch (value) {<br />
  case 1 :<br />
  case 16 :<br />
  case -500 :<br />
  case 42.42:<br />
  case 'something'<br />
    //código<br />
  break;<br />
}</code></p>
<p>Basicamente es como el if pero a lo vertical. </p>
<p>Otra opción será creando un objeto, y luego accediendo directamente al indice del mismo:</p>
<p><code>var accept = { 1: true, 16: true, '-500': true, 42.42: true, something: true }; //mas corto cambiando el true por un 1<br />
if (accept[value]) {<br />
  // blah blah blah<br />
}<br />
</code></p>
<p>Sinceramente esta me parece una idea muy original, pero menos practica que las otras.</p>
<p>Pues listos, 3 métodos alternativos para comprobar si un array contiene un elemento dado.</p>
<p>&#8230; por cierto 3 no son tantas :P</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2010/05/28/formas-de-acortar-un-condicional-de-varios-elementos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Función de descarga mediante PHP anonimamente con proxys automáticos</title>
		<link>http://www.nbsp.es/2009/10/14/funcion-de-descarga-mediante-php-anonimamente-con-proxys-automaticos/</link>
		<comments>http://www.nbsp.es/2009/10/14/funcion-de-descarga-mediante-php-anonimamente-con-proxys-automaticos/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 15:54:08 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Desarrollo web]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/10/14/569/</guid>
		<description><![CDATA[Por fin algo de código :)
He desarrollado una función que descarga una URL mediante un proxy con PHP y cURL. Lo bueno (y a la vez lo malo) de la función, es que descarga un listado de IPs (las IPs de los proxys y sus puertos) de una página y va realizando peticiones proxy a [...]]]></description>
			<content:encoded><![CDATA[<p>Por fin algo de código :)</p>
<p>He desarrollado una función que descarga una URL mediante un proxy con PHP y cURL. Lo bueno (y a la vez lo malo) de la función, es que descarga un listado de IPs (las IPs de los proxys y sus puertos) de una página y va realizando peticiones proxy a proxy hasta que da con uno que funcione, lo malo vendría por la lentitud de la ejecución de la misma, por lo que está pensada para utilizar con CRONJOBS o scripts que no requieran de velocidad de ejecución. Se podría añadir una caché para los proxys de forma que los vaya utilizando hasta que no quede ninguno con vida, pero eso ya sería complicar un poco más la historia y ahora mismo no tengo tiempo para ello.</p>
<div class="igBar"><span id="lphp-2"><a href="#" onclick="javascript:showPlainTxt('php-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-2">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> curl_proxy<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$url</span>,<span style="color:#0000FF;">$proxys</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$index_proxy</span> = <span style="color:#CC66CC;color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$end</span> = <span style="color:#000000; font-weight:bold;">false</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">do</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$proxy</span> = <span style="color:#0000FF;">$proxys</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#0000FF;">$index_proxy</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$ip</span> = <span style="color:#0000FF;">$proxy</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$port</span> = <span style="color:#0000FF;">$proxy</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//&nbsp; echo &quot;Try: $ip : $port &lt;br&gt;\n&quot;;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$ch</span> = curl_init<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_URL,<span style="color:#0000FF;">$url</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_HEADER, <span style="color:#000000; font-weight:bold;">TRUE</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_RETURNTRANSFER, <span style="color:#000000; font-weight:bold;">TRUE</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_FOLLOWLOCATION, <span style="color:#000000; font-weight:bold;">TRUE</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_HTTPPROXYTUNNEL, <span style="color:#000000; font-weight:bold;">TRUE</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_PROXYTYPE, CURLPROXY_HTTP<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_SSL_VERIFYPEER, <span style="color:#000000; font-weight:bold;">FALSE</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_PROXY, <span style="color:#FF0000;">"http://$ip:$port"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$info</span> = curl_exec<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; curl_close<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$index_proxy</span>&gt;=<a href="http://www.php.net/count"><span style="color:#000066;">count</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$proxys</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$end</span> = <span style="color:#000000; font-weight:bold;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$index_proxy</span>++;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#616100;">while</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$info</span> === <span style="color:#000000; font-weight:bold;">false</span> || <span style="color:#0000FF;">$end</span> === <span style="color:#000000; font-weight:bold;">true</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <a href="http://www.php.net/explode"><span style="color:#000066;">explode</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"<span style="color:#000099; font-weight:bold;">\r</span><span style="color:#000099; font-weight:bold;">\n</span><span style="color:#000099; font-weight:bold;">\r</span><span style="color:#000099; font-weight:bold;">\n</span>"</span>,<span style="color:#0000FF;">$info</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> obte_llistat_proxys<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$proxys</span> = <a href="http://www.php.net/file_get_contents"><span style="color:#000066;">file_get_contents</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'http://www.samair.ru/proxy/time-01.htm'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/preg_match_all"><span style="color:#000066;">preg_match_all</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'%&lt;td&gt;([0-9]{1,3}<span style="color:#000099; font-weight:bold;">\.</span>[0-9]{1,3}<span style="color:#000099; font-weight:bold;">\.</span>[0-9]{1,3}<span style="color:#000099; font-weight:bold;">\.</span>[0-9]{1,3}):(<span style="color:#000099; font-weight:bold;">\d</span>*?)&lt;/td&gt;&lt;td&gt;(.*?)&lt;/td&gt;%s'</span>, <span style="color:#0000FF;">$proxys</span>, <span style="color:#0000FF;">$result</span>, PREG_PATTERN_ORDER<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$ps</span> = <span style="color:#0000FF;">$result</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$ip</span> = <span style="color:#0000FF;">$result</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$po</span> = <span style="color:#0000FF;">$result</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$ti</span> = <span style="color:#0000FF;">$result</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$t</span> = <a href="http://www.php.net/count"><span style="color:#000066;">count</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ps</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$sortida</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">for</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$i</span>=<span style="color:#CC66CC;color:#800000;">0</span>;<span style="color:#0000FF;">$i</span>&lt;<span style="color:#0000FF;">$t</span>;<span style="color:#0000FF;">$i</span>++<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$sortida</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ip</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#0000FF;">$i</span><span style="color:#006600; font-weight:bold;">&#93;</span>,<span style="color:#0000FF;">$po</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#0000FF;">$i</span><span style="color:#006600; font-weight:bold;">&#93;</span>,<span style="color:#0000FF;">$ti</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#0000FF;">$i</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$sortida</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/print_r"><span style="color:#000066;">print_r</span></a><span style="color:#006600; font-weight:bold;">&#40;</span>curl_proxy<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'http://004.es/test/contador.php'</span>,obte_llistat_proxys<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ah si, he utilizado DOS funciones en lugar de una, la que te devuelve el listado de IPs y la que hace la petición cURL usando el listado de IPs y puertos devueltos por la otra función.</p>
<p>Espero que le vaya bien a alguien. Saludos peñita!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/10/14/funcion-de-descarga-mediante-php-anonimamente-con-proxys-automaticos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Entidades HTML</title>
		<link>http://www.nbsp.es/2009/09/19/entidades-html/</link>
		<comments>http://www.nbsp.es/2009/09/19/entidades-html/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 01:08:22 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Desarrollo web]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/09/19/entidades-html/</guid>
		<description><![CDATA[A Sloth le gustan las entidades HTML, y HTML5 viene cargadito de ellas: entidades HTML definidas en la revisión 5 del lenguaje. Ahí es nada :D
]]></description>
			<content:encoded><![CDATA[<p>A Sloth le gustan las entidades HTML, y HTML5 viene cargadito de ellas: <a href="http://www.w3.org/TR/html5/named-character-references.html">entidades HTML definidas en la revisión 5 del lenguaje</a>. Ahí es nada :D</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/09/19/entidades-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lo bueno de FireBug para Internet Explorer 6+</title>
		<link>http://www.nbsp.es/2009/09/17/lo-bueno-de-firebug-para-internet-explorer-6/</link>
		<comments>http://www.nbsp.es/2009/09/17/lo-bueno-de-firebug-para-internet-explorer-6/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 18:10:28 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Aplicaciones web]]></category>
		<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Turoriales]]></category>
		<category><![CDATA[Varios]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/09/17/lo-bueno-de-firebug-para-internet-explorer-6/</guid>
		<description><![CDATA[Buxplorer es un pequeño bookmarklet  (unas 700 líneas de chatarra) que te iniciará una barra inferior en tu Internet Explorer y que te permitirá recorrer el código HTML viendo los margenes y los paddings de cada elemento, de la misma forma que lo hace Firebug. Es un excelente complemento para la developer toolbar (que [...]]]></description>
			<content:encoded><![CDATA[<p>Buxplorer es un pequeño bookmarklet  (unas 700 líneas de chatarra) que te iniciará una barra inferior en tu Internet Explorer y que te permitirá recorrer el código HTML viendo los margenes y los paddings de cada elemento, de la misma forma que lo hace Firebug. Es un excelente complemento para la developer toolbar (que tan solo te bordea el elemento).</p>
<p>Hace más de un año que tengo esto pendiente de terminar, naturalmente es una beta que funciona con pinzas, pero funciona:</p>
<div class="igBar"><span id="lhtml-4"><a href="#" onclick="javascript:showPlainTxt('html-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-4">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">javascript:scScript=document.createElement('script');scScript.src='http://www.javascript.es/bmk/buxplorer.js?nocache='+Math.random();scScript.type='text/javascript';void(document.getElementsByTagName('head')[0].appendChild(scScript)); </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Recuerda, el bookmarklet que os propongo sólo funciona con Internet Explorer 6.</p>
<p>A ver si alguien se anima a meterle un empujón :), y si lo pruebas, me das tu opinión (O el gran <a href="http://www.venganza.org/">FSM</a> colgará un Ubuntu al azar).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/09/17/lo-bueno-de-firebug-para-internet-explorer-6/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Novato de AdobeAIR (en JavaScript)</title>
		<link>http://www.nbsp.es/2009/09/11/novato-de-adobeair-en-javascript/</link>
		<comments>http://www.nbsp.es/2009/09/11/novato-de-adobeair-en-javascript/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 01:05:40 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[air]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/09/11/novato-de-adobeair-en-javascript/</guid>
		<description><![CDATA[Cosas que he aprendido hoy a hacer con AIR y JS:
Abrir una URL en el navegador predefinido del sistema:
PLAIN TEXT
JavaScript:




function openInBrowser&#40;url&#41; &#123;


&#160; &#160; air.navigateToURL&#40; new air.URLRequest&#40;url&#41;&#41;; 


&#125; 






Guardar datos en un fichero:
PLAIN TEXT
JavaScript:




var flash = window.runtime.flash;


var file = flash.filesystem.File;


var fm = flash.filesystem.FileMode;


var fs = new flash.filesystem.FileStream&#40;&#41;;


var dir = file.applicationStorageDirectory; //carpeta de la aplicación (más abajo [...]]]></description>
			<content:encoded><![CDATA[<p>Cosas que he aprendido hoy a hacer con AIR y JS:</p>
<p><strong>Abrir una URL en el navegador predefinido del sistema:</strong></p>
<div class="igBar"><span id="ljavascript-13"><a href="#" onclick="javascript:showPlainTxt('javascript-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-13">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> openInBrowser<span style="color: #66cc66;">&#40;</span>url<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; air.<span style="color: #006600;">navigateToURL</span><span style="color: #66cc66;">&#40;</span> <span style="color: #003366; font-weight: bold;">new</span> air.<span style="color: #006600;">URLRequest</span><span style="color: #66cc66;">&#40;</span>url<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Guardar datos en un fichero:</strong></p>
<div class="igBar"><span id="ljavascript-14"><a href="#" onclick="javascript:showPlainTxt('javascript-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-14">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> flash = window.<span style="color: #006600;">runtime</span>.<span style="color: #006600;">flash</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> file = flash.<span style="color: #006600;">filesystem</span>.<span style="color: #006600;">File</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> fm = flash.<span style="color: #006600;">filesystem</span>.<span style="color: #006600;">FileMode</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> fs = <span style="color: #003366; font-weight: bold;">new</span> flash.<span style="color: #006600;">filesystem</span>.<span style="color: #006600;">FileStream</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> dir = file.<span style="color: #006600;">applicationStorageDirectory</span>; <span style="color: #009900; font-style: italic;">//carpeta de la aplicación (más abajo más carpetas)</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> arx = dir.<span style="color: #006600;">resolvePath</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"data.obj"</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #009900; font-style: italic;">//data.obj es el nombre del fichero</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fs.<span style="color: #000066;">open</span><span style="color: #66cc66;">&#40;</span>arx, fm.<span style="color: #000066; font-weight: bold;">WRITE</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #009900; font-style: italic;">//abrimos para guardar fm.UPDATE para actualizar</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fs.<span style="color: #006600;">writeUTFBytes</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'Hola mundo!'</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Más carpetas del sistema:</strong></p>
<div class="igBar"><span id="ljavascript-15"><a href="#" onclick="javascript:showPlainTxt('javascript-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-15">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> flash = window.<span style="color: #006600;">runtime</span>.<span style="color: #006600;">flash</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> _file = flash.<span style="color: #006600;">filesystem</span>.<span style="color: #006600;">File</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// Carpeta de aplicación. Carpeta privada sólo para la aplicación actual;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">_file.<span style="color: #006600;">applicationStorageDirectory</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// La carpeta donde se encuentra instalada la aplicación. Sólo lectura.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">_file.<span style="color: #006600;">applicationDirectory</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//Escritorio del SO</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">_file.<span style="color: #006600;">desktopDirectory</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//la carpeta de documentos usuario del SO (C:\Documents and Settings\usuario\Mis Documentos, Users/usuario/Documents, etc...)</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">_file.<span style="color: #006600;">documentsDirectory</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//la carpeta del usuario del SO&nbsp; (C:\Documents and Settings\usuario, Users/usuario, etc...)</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">_file.<span style="color: #006600;">userDirectory</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Formas de abrir un fichero</strong></p>
<div class="igBar"><span id="ljavascript-16"><a href="#" onclick="javascript:showPlainTxt('javascript-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-16">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> fm = window.<span style="color: #006600;">runtime</span>.<span style="color: #006600;">flash</span>.<span style="color: #006600;">filesystem</span>.<span style="color: #006600;">FileMode</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//Abre el fichero para sólo poder ser leido.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fm.<span style="color: #006600;">READ</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//Abre un fichero (si no existe lo crea), y borra todo el contenido actual. Solo escritura.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fm.<span style="color: #000066; font-weight: bold;">WRITE</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//Abre un fichero (si no existe lo crea), y añade todo el contenido al final del fichero. Solo escritura.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fm.<span style="color: #006600;">APPEND</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//Abre un fichero (si no existe lo crea), y permite acceder a cualquier punto del mismo para añadir o leer contenido.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fm.<span style="color: #006600;">UPDATE</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// esto se usa juntamente con objetoFileStream.position=NumeroInt; </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Le puedes cargar CUALQUIER libreria JS (por ejemplo JQuery)</strong></p>
<div class="igBar"><span id="ljavascript-17"><a href="#" onclick="javascript:showPlainTxt('javascript-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-17">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> elementos = $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#aplicacion #formulario input'</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Tiene expresiones regulares!</strong></p>
<div class="igBar"><span id="ljavascript-18"><a href="#" onclick="javascript:showPlainTxt('javascript-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-18">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> absolute = f.<span style="color: #006600;">url</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">absolute = absolute.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066FF;">/file\:\/\/\/<span style="color: #66cc66;">&#40;</span>\w<span style="color: #66cc66;">&#41;</span>\:/</span>,<span style="color: #3366CC;">'$1:'</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>objetoFileStream.writeUTF es el diablo, usa objetoFileStream.writeUTFBytes</strong></p>
<div class="igBar"><span id="ljavascript-19"><a href="#" onclick="javascript:showPlainTxt('javascript-19'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-19">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//esto aún no se porqué, a ver si alguien me dice porqué writeUTF coloca un bytes de control al inicio del fichero :) </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Desactivar la selección de elementos</strong></p>
<div class="igBar"><span id="lcss-20"><a href="#" onclick="javascript:showPlainTxt('css-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-20">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">body<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; -webkit-user-select:<span style="color: #993333;">none</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Iré poniendo más cositas hasta que termine el programita que estoy haciendo :).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/09/11/novato-de-adobeair-en-javascript/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Función PHP para descargar vídeos de youtube</title>
		<link>http://www.nbsp.es/2009/08/23/funcion-php-para-descargar-videos-de-youtube/</link>
		<comments>http://www.nbsp.es/2009/08/23/funcion-php-para-descargar-videos-de-youtube/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 10:17:50 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Aplicaciones web]]></category>
		<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Otras páginas]]></category>
		<category><![CDATA[Varios]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/08/23/funcion-php-para-descargar-videos-de-youtube/</guid>
		<description><![CDATA[Funciona en la fecha terrestre 23/08/2009:
PLAIN TEXT
PHP:




function descarga_video_youtube&#40;$youtube,$nom=false&#41;&#123;


&#160; &#160; &#160; &#160; $tot = file_get_contents&#40;$youtube&#41;;


&#160; &#160; &#160; &#160; preg_match&#40;'/, &#34;t&#34;: &#34;(.*?)&#34;,/s', $tot, $regs&#41;;


&#160; &#160; &#160; &#160; $codi = $regs&#91;1&#93;;


&#160; &#160; &#160; &#160; $_video_id = explode&#40;"=",$youtube&#41;;


&#160; &#160; &#160; &#160; $video_id = $_video_id&#91;1&#93;;


&#160; &#160; &#160; &#160; 


&#160; &#160; &#160; &#160; if&#40;!$nom&#41;&#123;


&#160; &#160; &#160; &#160; &#160; &#160; preg_match&#40;'/title&#34;: &#34;(.*?)&#34;,/s', [...]]]></description>
			<content:encoded><![CDATA[<p>Funciona en la fecha terrestre 23/08/2009:</p>
<div class="igBar"><span id="lphp-24"><a href="#" onclick="javascript:showPlainTxt('php-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-24">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> descarga_video_youtube<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$youtube</span>,<span style="color:#0000FF;">$nom</span>=<span style="color:#000000; font-weight:bold;">false</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$tot</span> = <a href="http://www.php.net/file_get_contents"><span style="color:#000066;">file_get_contents</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$youtube</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/preg_match"><span style="color:#000066;">preg_match</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'/, &quot;t&quot;: &quot;(.*?)&quot;,/s'</span>, <span style="color:#0000FF;">$tot</span>, <span style="color:#0000FF;">$regs</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$codi</span> = <span style="color:#0000FF;">$regs</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$_video_id</span> = <a href="http://www.php.net/explode"><span style="color:#000066;">explode</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"="</span>,<span style="color:#0000FF;">$youtube</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$video_id</span> = <span style="color:#0000FF;">$_video_id</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>!<span style="color:#0000FF;">$nom</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/preg_match"><span style="color:#000066;">preg_match</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'/title&quot;: &quot;(.*?)&quot;,/s'</span>, <span style="color:#0000FF;">$tot</span>, <span style="color:#0000FF;">$nomini</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$nom</span> = <a href="http://www.php.net/urldecode"><span style="color:#000066;">urldecode</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$nomini</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$ruta_video</span> = <span style="color:#FF0000;">"videos/$nom.flv"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$url</span> = <span style="color:#FF0000;">"http://www.youtube.com/get_video?video_id=$video_id&amp;t=$codi"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$video</span> = <a href="http://www.php.net/file_get_contents"><span style="color:#000066;">file_get_contents</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$url</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$fp</span> = <a href="http://www.php.net/fopen"><span style="color:#000066;">fopen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ruta_video</span>,<span style="color:#FF0000;">'w'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/fputs"><span style="color:#000066;">fputs</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$fp</span>,<span style="color:#0000FF;">$video</span>,<a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$video</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/fclose"><span style="color:#000066;">fclose</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$fp</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#000000; font-weight:bold;">true</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>El uso es bien sencillo:</p>
<p>Si sólo se le pasa la URL del vídeo, lo descargará en la carpeta videos/titulo del video en youtube.flv</p>
<div class="igBar"><span id="lphp-25"><a href="#" onclick="javascript:showPlainTxt('php-25'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-25">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">descarga_video_youtube<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"http://www.youtube.com/watch?v=edZYah2CdLY"</span><span style="color:#006600; font-weight:bold;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Si le añadimos el segundo parámetro (nombre), nos guardará el vídeo en la carpeta videos/nombrequelehayamospuesto.flv</p>
<div class="igBar"><span id="lphp-26"><a href="#" onclick="javascript:showPlainTxt('php-26'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-26">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">descarga_video_youtube<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"http://www.youtube.com/watch?v=edZYah2CdLY"</span>,<span style="color:#FF0000;">"nombrequelehayamospuesto"</span><span style="color:#006600; font-weight:bold;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/08/23/funcion-php-para-descargar-videos-de-youtube/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>¿que son pagerror.gif y refresh.gif? ¡solucionado!</title>
		<link>http://www.nbsp.es/2009/08/12/%c2%bfque-son-pagerrorgif-y-refreshgif-%c2%a1solucionado/</link>
		<comments>http://www.nbsp.es/2009/08/12/%c2%bfque-son-pagerrorgif-y-refreshgif-%c2%a1solucionado/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 15:34:03 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Aplicaciones web]]></category>
		<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Otras páginas]]></category>
		<category><![CDATA[Varios]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/08/12/%c2%bfque-son-pagerrorgif-y-refreshgif-%c2%a1solucionado/</guid>
		<description><![CDATA[Vaya, después de varios meses recopilando logs de errores 404 sin ningún tipo de sentido, hoy me he decidido a buscar cual era el motivo por el cual dos imágenes imaginarias (pagerror.gif y refresh.gif) aparecían en dichos logs de páginas no encontradas. Parece ser que el error solo se da en versiones de Internet Explorer [...]]]></description>
			<content:encoded><![CDATA[<p>Vaya, después de varios meses recopilando logs de errores 404 sin ningún tipo de sentido, hoy me he decidido a buscar cual era el motivo por el cual dos imágenes imaginarias (pagerror.gif y refresh.gif) aparecían en dichos logs de páginas no encontradas. Parece ser que el error solo se da en versiones de <strong>Internet Explorer 6</strong>. Tambien parece que dichas imágenes NO EXISTEN en mi servidor (ni en ninguno de las personas que se hayan encontrado con el problema), pues vaya... y entonces ¿porqué? ¡muy sencillo!.</p>
<p>Resulta que nuestro amigo de la infancia Internet Explorer 6 se resiste a ser como los demás (si, después de tantos años de andaduras el tío no ha madurado lo más mínimo) y cada vez que detecta un <strong><a href="http://www.w3.org/TR/1999/REC-html401-19991224/present/frames.html#h-16.5">iframe</a></strong> sin el atributo <strong><a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-src">src</a></strong> dentro de una página cargado mediante SSL (https://), se decide sin ningún tipo de pudor a cargar una página de error, la cual increíblemente carga las supuestas imágenes desde el servidor donde se ha cargado el iframe. Esto es ... una chapuza, yeah!</p>
<p>¿Solución? fácil, hagamos lo que hagamos que necesitemos un iframe vacío, tan solo tenemos que ponerle el siguiente atributo src:</p>
<div class="igBar"><span id="lhtml-28"><a href="#" onclick="javascript:showPlainTxt('html-28'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-28">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/iframe.html"><span style="color: #000000; font-weight: bold;">&lt;iframe</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"javascript:false;"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Yo (y mi ego) 1 - Internet Exploter 0</p>
<p>Más información en la <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;261188">keynote de microsoft</a></p>
<p><a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;261188">pagerror.gif</a> <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;261188">refresh.gif</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/08/12/%c2%bfque-son-pagerrorgif-y-refreshgif-%c2%a1solucionado/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Configurar VirtualHost para tener varios dominios con su directorio cada uno en Apache</title>
		<link>http://www.nbsp.es/2009/07/17/configurar-virtualhost-para-tener-varios-dominios-con-su-directorio-cada-uno-en-apache/</link>
		<comments>http://www.nbsp.es/2009/07/17/configurar-virtualhost-para-tener-varios-dominios-con-su-directorio-cada-uno-en-apache/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 15:09:05 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Turoriales]]></category>
		<category><![CDATA[[nbsp]]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/07/17/configurar-virtualhost-para-tener-varios-dominios-con-su-directorio-cada-uno-en-apache/</guid>
		<description><![CDATA[Esto me lo dejo aquí a modo de recordatorio para configurar el dichoso httpd.conf para poder tener varios sitios en local con su correspondiente dominio (local tambien).
Primero añadimos los dominios en el archivo hosts:
127.0.0.1		local.dominio-1.org
127.0.0.1       local.dominio-2.net
Y luego añadimos las siguiente líneas a nuestro querido httpd.conf:
PLAIN TEXT
CODE:




NameVirtualHost&#160;&#160;127.0.0.1


&#60;VirtualHost local.dominio-1.org&#62;


&#160; &#160; ServerName&#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Esto me lo dejo aquí a modo de recordatorio para configurar el dichoso httpd.conf para poder tener varios sitios en local con su correspondiente dominio (local tambien).</p>
<p>Primero añadimos los dominios en el archivo hosts:</p>
<p><code>127.0.0.1		local.dominio-1.org<br />
127.0.0.1       local.dominio-2.net</code></p>
<p>Y luego añadimos las siguiente líneas a nuestro querido httpd.conf:</p>
<div class="igBar"><span id="lcode-30"><a href="#" onclick="javascript:showPlainTxt('code-30'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-30">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">NameVirtualHost&nbsp;&nbsp;<span style="color:#800000;color:#800000;">127</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;VirtualHost local.<span style="">dominio</span>-<span style="color:#800000;color:#800000;">1</span>.<span style="">org</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ServerName&nbsp; &nbsp; local.<span style="">dominio</span>-<span style="color:#800000;color:#800000;">1</span>.<span style="">org</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; DocumentRoot&nbsp; &nbsp; <span style="color:#CC0000;">"D:/www/dominio-1.org/web/"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; DirectoryIndex&nbsp; index.<span style="">php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; AccessFileName&nbsp; .<span style="">htaccess</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ErrorLog&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0000;">"D:/www/dominio-1.org/logs/error.log"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; LogLevel&nbsp; &nbsp; &nbsp; &nbsp; warn</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; CustomLog&nbsp; &nbsp;&nbsp; &nbsp;<span style="color:#CC0000;">"D:/www/dominio-1.org/logs/access.log"</span> combined</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;Directory <span style="color:#CC0000;">"D:/www/dominio-1.org/web/"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Options -Indexes FollowSymLinks</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; AllowOverride AuthConfig FileInfo</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Order allow,deny</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Allow from all</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/Directory&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/VirtualHost&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;VirtualHost local.<span style="">dominio</span>-<span style="color:#800000;color:#800000;">2</span>.<span style="">net</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ServerName&nbsp; &nbsp; local.<span style="">dominio</span>-<span style="color:#800000;color:#800000;">2</span>.<span style="">net</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; DocumentRoot&nbsp; &nbsp; <span style="color:#CC0000;">"D:/www/dominio-2.net/web/"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; DirectoryIndex&nbsp; index.<span style="">php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; AccessFileName&nbsp; .<span style="">htaccess</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ErrorLog&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0000;">"D:/www/dominio-2.net/logs/error.log"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; LogLevel&nbsp; &nbsp; &nbsp; &nbsp; warn</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; CustomLog&nbsp; &nbsp;&nbsp; &nbsp;<span style="color:#CC0000;">"D:/www/dominio-2.net/logs/access.log"</span> combined</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;Directory <span style="color:#CC0000;">"D:/www/dominio-2.net/web/"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Options -Indexes FollowSymLinks</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; AllowOverride AuthConfig FileInfo</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Order allow,deny</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Allow from all</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/Directory&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/VirtualHost&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Y listos! ideal para los que no se aclaran ni p'atrás (como yo :P).</p>
<p><strong>NOTA:</strong> modificad las comillas “...” por las de SHIFT+2.<br />
<strong>NOTA 2:</strong> Creo que nadie lo ha probado, ya que había un fallo en el paste y no se veía el código VirtualHost ...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/07/17/configurar-virtualhost-para-tener-varios-dominios-con-su-directorio-cada-uno-en-apache/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Talleres subflash 2009</title>
		<link>http://www.nbsp.es/2009/07/03/talleres-subflash-2009/</link>
		<comments>http://www.nbsp.es/2009/07/03/talleres-subflash-2009/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 09:58:37 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Diseño]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Otras páginas]]></category>
		<category><![CDATA[Varios]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/07/03/talleres-subflash-2009/</guid>
		<description><![CDATA[
Un año más los talleres Subflash ya están de vuelta, con gran ilusión yo ya me he apuntado. Para los pocos visitantes de este blog que no conozcáis los talleres Subflash, tan solo os puedo comentar que son los talleres para profesionales del web más amenos, divertidos, familiares y altamente valorados por sus habituales (como [...]]]></description>
			<content:encoded><![CDATA[<p><img id="image540" src="http://www.nbsp.es/images/2009/07/sbfl09.jpg" alt="Talleres Subflash... eh yo estoy ahí­!" /></p>
<p>Un año más los talleres Subflash ya están de vuelta, con gran ilusión yo ya me he apuntado. Para los pocos visitantes de este blog que no conozcáis los talleres Subflash, tan solo os puedo comentar que son los talleres para profesionales del web más amenos, divertidos, familiares y altamente valorados por sus habituales (como un servidor).</p>
<p>Este año repetimos lugar en la Villa Universitaria de Alicante, las fechas son 28, 29 y 30 de Agosto (que cae de viernes a domingo), el precio es de 100€ modalidad completa (los 100€ mejor invertidos del año) y en el momento de escribir esta entrada quedan 26 plazas (de 50).</p>
<p>Si queréis más información no dudéis en visitar la <a href="http://www.subflash.com/talleres/2009/php/index.php">página oficial de los talleres Subflash 2009</a> o en el <a href="http://www.subflash.com/2009/06/talleres-sublash-2009-abierta-inscripcion/">post del blog de Subflash</a>.</p>
<p>Ah, y gracias Marcos y a todo el equipo de Subflash por hacer posible estas minivacaciones profesionales.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/07/03/talleres-subflash-2009/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Bookmarklet para detectar elementos HTML obsoletos</title>
		<link>http://www.nbsp.es/2009/05/26/bookmarklet-para-detectar-elementos-html-obsoletos/</link>
		<comments>http://www.nbsp.es/2009/05/26/bookmarklet-para-detectar-elementos-html-obsoletos/#comments</comments>
		<pubDate>Tue, 26 May 2009 19:22:49 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Aplicaciones web]]></category>
		<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Otras páginas]]></category>
		<category><![CDATA[[nbsp]]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/05/26/bookmarklet-para-detectar-elementos-html-obsoletos/</guid>
		<description><![CDATA[Basandome en una entrada de webintenta donde menciona una CSS para detectar los elementos y atributos obsoletos, propuestos como obsoletos o elementos vacíos, he montado este bookmarklet para cargar en cualquier página, ya que tan solo ejecutando el enlace de los favoritos, se ejecutará un script que cargará la CSS en la página donde nos [...]]]></description>
			<content:encoded><![CDATA[<p>Basandome en <a href="http://www.webintenta.com/resaltar-con-css-codigo-html-obsoleto-o-deprecated.html">una entrada de webintenta</a> donde menciona una CSS para detectar los elementos y atributos obsoletos, propuestos como obsoletos o elementos vacíos, he montado este bookmarklet para cargar en cualquier página, ya que tan solo ejecutando el enlace de los favoritos, se ejecutará un script que cargará la CSS en la página donde nos encontremos.</p>
<p><a href="javascript:CSS=document.createElement('link');CSS.href='http://www.nbsp.es/ajax/bm/css-diagnostics2.0.1.css';CSS.type='text/css';CSS.rel='stylesheet';void(document.getElementsByTagName('head')[0].appendChild(CSS));">Detectar elementos obsoletos</a></p>
<p>Más información de cómo colorea los elementos en la página del autor de la <a href="http://www.nealgrosskopf.com/tech/thread.asp?pid=17">CSS diagnostics</a></p>
<p>Es divertido de usar, al menos para criticar un rato :^P</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/05/26/bookmarklet-para-detectar-elementos-html-obsoletos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Correcto formato de formularios XHTML</title>
		<link>http://www.nbsp.es/2009/05/26/correcto-formato-de-formularios-xhtml/</link>
		<comments>http://www.nbsp.es/2009/05/26/correcto-formato-de-formularios-xhtml/#comments</comments>
		<pubDate>Tue, 26 May 2009 18:37:22 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Aplicaciones web]]></category>
		<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[[nbsp]]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/05/26/correcto-formato-de-formularios-xhtml/</guid>
		<description><![CDATA[Hace una semana mandé un correo a la lista de Ovillo preguntando cual creía la gente que era la forma más correcta de maquetar un formulario. Las respuestas fueron varias y estuvimos comentando cuales eran los pros y los contras de cada método utilizado.
Finalmente y después de mucho divagar e intentar acercar opiniones me llegó [...]]]></description>
			<content:encoded><![CDATA[<p>Hace una semana <a href="http://www.mail-archive.com/ovillo@lists.ovillo.org/msg25465.html">mandé un correo a la lista de Ovillo</a> preguntando cual creía la gente que era la forma más correcta de maquetar un formulario. Las respuestas fueron varias y estuvimos comentando cuales eran los pros y los contras de cada método utilizado.</p>
<p>Finalmente y después de mucho divagar e intentar acercar opiniones me llegó un correo de Daniel Navarro donde daba con una muy correcta solución, ya que a las fuentes se remitió y razón no le faltó (olé):</p>
<blockquote><p>En un DTD estricto se especifica que dentro de un form sólo puede haber elementos de bloque (que no sean otros form). Así que entre los diferentes controles y el form debe de mediar un elemento de bloque como div o fieldset, por ejemplo. Esto te falta en la solución A. Además, obligas a saltos de línea con br y esto limita la flexibilidad de CSS.</p></blockquote>
<p>Así que finalmente ganó la opción:</p>
<div class="igBar"><span id="lxml-32"><a href="#" onclick="javascript:showPlainTxt('xml-32'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-32">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;form<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;fieldset<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;div<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">"campo"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Campo:<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;input</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"campo"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/div<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; ... más aquí ...</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/fieldset<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/form<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Gracias a todos los que participasteis y me ayudasteis!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/05/26/correcto-formato-de-formularios-xhtml/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cristalab y MDW desde el Googleplex de Silicon Valley</title>
		<link>http://www.nbsp.es/2009/05/23/cristalab-y-mdw-desde-el-googleplex-de-silicon-valley/</link>
		<comments>http://www.nbsp.es/2009/05/23/cristalab-y-mdw-desde-el-googleplex-de-silicon-valley/#comments</comments>
		<pubDate>Sat, 23 May 2009 20:23:35 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Aplicaciones web]]></category>
		<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Otras páginas]]></category>
		<category><![CDATA[Varios]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/05/23/cristalab-y-mdw-desde-el-googleplex-de-silicon-valley/</guid>
		<description><![CDATA[Literalmente copio y pego el vídeo que he encontrado en los comentarios de Freddie de Cristalab en Twitter, en donde se ve a él y a Christian de Maestros del web en Google Plex pidiendo a la comunidad de desarrolladores que les hagan llegar aplicaciones que estén desarrollando y que hagan uso de servicios de [...]]]></description>
			<content:encoded><![CDATA[<p>Literalmente copio y pego el vídeo que he encontrado en los comentarios de Freddie de <a href="http://www.cristalab.com">Cristalab</a> en Twitter, en donde se ve a él y a Christian de <a href="http://www.maestrosdelweb.com/">Maestros del web</a> en Google Plex pidiendo a la comunidad de desarrolladores que les hagan llegar aplicaciones que estén desarrollando y que hagan uso de servicios de Google o Wordpress. Así, tambien se ofrecen a hacer algunas críticas a tus aplicaciones desarrolladas en Flash, recomiendo echar un vistazo al vídeo.</p>
<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/I1oT2Oq71e4&#038;hl=es&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/I1oT2Oq71e4&#038;hl=es&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
<p>Que sorpresa me he llevado cuando les he visto a los dos juntos, que cracks!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/05/23/cristalab-y-mdw-desde-el-googleplex-de-silicon-valley/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>aaarrjrjjjjjjj!!! bug en JSFL addItemToDocument</title>
		<link>http://www.nbsp.es/2009/05/13/aaarrjrjjjjjjj-bug-en-jsfl-additemtodocument/</link>
		<comments>http://www.nbsp.es/2009/05/13/aaarrjrjjjjjjj-bug-en-jsfl-additemtodocument/#comments</comments>
		<pubDate>Wed, 13 May 2009 19:08:49 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Desarrollo web]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/05/13/aaarrjrjjjjjjj-bug-en-jsfl-additemtodocument/</guid>
		<description><![CDATA[Nada como perder varias horas de trabajo gracias a un fallo tan estúpido como unos valores redondeados por defecto, me encanta!!!
¿solución?
PLAIN TEXT
JavaScript:




//No es JavaScript, es JSFL!!


&#160; &#160; lib.addItemToDocument&#40;&#123;x:0,y:0&#125;,municipi&#41;;


&#160;


&#160; &#160; var e=t&#40;&#41;.layers&#91;0&#93;.frames&#91;0&#93;.elements;


&#160; &#160; var iClip=e&#91;e.length-1&#93;;


&#160; &#160; iClip.x = 123.45;


&#160; &#160; iClip.y = 678.90; 






voilá, unas horas menos de trabajo "pa tí" ;)
]]></description>
			<content:encoded><![CDATA[<p>Nada como perder varias horas de trabajo gracias a un fallo tan estúpido como unos valores redondeados por defecto, me encanta!!!</p>
<p>¿solución?</p>
<div class="igBar"><span id="ljavascript-34"><a href="#" onclick="javascript:showPlainTxt('javascript-34'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-34">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//No es JavaScript, es JSFL!!</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; lib.<span style="color: #006600;">addItemToDocument</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>x:<span style="color: #CC0000;color:#800000;">0</span>,y:<span style="color: #CC0000;color:#800000;">0</span><span style="color: #66cc66;">&#125;</span>,municipi<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> e=t<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">layers</span><span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">frames</span><span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">elements</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> iClip=e<span style="color: #66cc66;">&#91;</span>e.<span style="color: #006600;">length</span>-<span style="color: #CC0000;color:#800000;">1</span><span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; iClip.<span style="color: #006600;">x</span> = <span style="color: #CC0000;color:#800000;">123</span>.<span style="color: #CC0000;color:#800000;">45</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; iClip.<span style="color: #006600;">y</span> = <span style="color: #CC0000;color:#800000;">678</span>.<span style="color: #CC0000;color:#800000;">90</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>voilá, unas horas menos de trabajo "pa tí" ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/05/13/aaarrjrjjjjjjj-bug-en-jsfl-additemtodocument/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Créditos de los patrocinadores de OFFF 2009</title>
		<link>http://www.nbsp.es/2009/05/09/creditos-de-los-patrocinadores-de-offf-2009/</link>
		<comments>http://www.nbsp.es/2009/05/09/creditos-de-los-patrocinadores-de-offf-2009/#comments</comments>
		<pubDate>Sat, 09 May 2009 21:04:33 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Diseño]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Otras páginas]]></category>
		<category><![CDATA[Varios]]></category>
		<category><![CDATA[videos]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/05/09/creditos-de-los-patrocinadores-de-offf-2009/</guid>
		<description><![CDATA[Después de 3 días de festival sólo me falta colgar los créditos de los patrocinadores del festival.
Por favor, 3500 personas, conferencias SUPER interesantes y motivadoras, unas infraestructuras de la ostia, una gente de p**a m***e, ¿qué más se puede pedir?
Cuando saquen el DVD me lo compro (y si cuelgan las conferencias en Internet me las [...]]]></description>
			<content:encoded><![CDATA[<p>Después de 3 días de festival sólo me falta colgar los créditos de los patrocinadores del festival.</p>
<p>Por favor, 3500 personas, conferencias SUPER interesantes y motivadoras, unas infraestructuras de la ostia, una gente de p**a m***e, ¿qué más se puede pedir?</p>
<p>Cuando saquen el DVD me lo compro (y si cuelgan las conferencias en Internet me las bajaré seguro!).</p>
<p>Gracias a toda la organización por el super trabajo realizado :)</p>
<p>Y ahora los créditos:</p>
<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=4558827&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=4558827&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object>
<p><a href="http://vimeo.com/4558827">OFFF 2009 Sponsor Titles</a> from <a href="http://vimeo.com/offf">OFFF</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p><a href="http://www.offf.ws">VIVA EL OFFF!!!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/05/09/creditos-de-los-patrocinadores-de-offf-2009/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RegexBuddy online</title>
		<link>http://www.nbsp.es/2009/04/30/regexbuddy-online/</link>
		<comments>http://www.nbsp.es/2009/04/30/regexbuddy-online/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 10:09:49 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Otras páginas]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/04/30/regexbuddy-online/</guid>
		<description><![CDATA[Nota mental
Para testear expresiones regulares tal como lo hace regexbuddy: http://regexpal.com/
/Nota mental
]]></description>
			<content:encoded><![CDATA[<p><strong>Nota mental</strong></p>
<p>Para testear expresiones regulares tal como lo hace regexbuddy: <a href="http://regexpal.com/">http://regexpal.com/</a></p>
<p><strong>/Nota mental</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/04/30/regexbuddy-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
