<?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; Aplicaciones web</title>
	<atom:link href="http://www.nbsp.es/category/aplicaciones-web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nbsp.es</link>
	<description>.Desarrollo web para profesionales de internet.</description>
	<lastBuildDate>Fri, 12 Aug 2011 07:04:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<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 tan [...]]]></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-2"><a href="#" onclick="javascript:showPlainTxt('html-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-2">
<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>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; [...]]]></description>
			<content:encoded><![CDATA[<p>Funciona en la fecha terrestre 23/08/2009:</p>
<div class="igBar"><span id="lphp-6"><a href="#" onclick="javascript:showPlainTxt('php-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-6">
<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-7"><a href="#" onclick="javascript:showPlainTxt('php-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-7">
<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-8"><a href="#" onclick="javascript:showPlainTxt('php-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-8">
<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-10"><a href="#" onclick="javascript:showPlainTxt('html-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-10">
<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>Anomalía en esquemas en Firefox</title>
		<link>http://www.nbsp.es/2009/08/02/anomalia-en-esquemas-en-firefox/</link>
		<comments>http://www.nbsp.es/2009/08/02/anomalia-en-esquemas-en-firefox/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 18:20:21 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Aplicaciones 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/02/anomalia-en-esquemas-en-firefox/</guid>
		<description><![CDATA[No tengo mucha idea de cómo explicar esto, a ver si alguien se anima a esclarecer un poco los términos. He encontrado una ligera anomalía (por no llamarlo bug explotable) en el trato que da Firefox de las URLs que contienen esquemas no reconocidos, ya que si lanzamos una dirección (del tipo ed2k:) desconocida para [...]]]></description>
			<content:encoded><![CDATA[<p>No tengo mucha idea de cómo explicar esto, a ver si alguien se anima a esclarecer un poco los términos.</p>
<p>He encontrado una ligera anomalía (por no llamarlo <strong>bug explotable</strong>) en el trato que da Firefox de las URLs que contienen <a href="http://en.wikipedia.org/wiki/URI_scheme">esquemas</a> no reconocidos, ya que si lanzamos una dirección (del tipo ed2k:) desconocida para el navegador, este muestra una alerta. Esto podría no ser nada si no fuese porque nos puede permitir saber que software tiene instalado un visitante. Lo explico:</p>
<p>El principal problema de esto es que si abrimos una URL desconocida por el navegador desde javascript, este lanzará una excepción (un error) que nos permitirá saber si el visitante tiene instalado un programa u otro similar (por ejemplo, con el esquema callto: nos puede abrir Skype como un cliente distinto de Voip).</p>
<p>A continuación podéis ver el script en ejecución*: <a href="http://www.nbsp.es/ajax/ffbug/firefox_bug.html">ver Demo</a></p>
<p>*: Necesario Firefox, la ejecución puede llegar a colgar el navegador, se guardan datos estadísticos para posterior analisi y post en el blog.</p>
<p>He abierto un track en bugzilla para que me digan algo :P.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/08/02/anomalia-en-esquemas-en-firefox/feed/</wfw:commentRss>
		<slash:comments>6</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 [...]]]></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-12"><a href="#" onclick="javascript:showPlainTxt('xml-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-12">
<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>Nuevo acortador de direcciones URL largas</title>
		<link>http://www.nbsp.es/2009/04/21/nuevo-acortador-de-direcciones-url-largas/</link>
		<comments>http://www.nbsp.es/2009/04/21/nuevo-acortador-de-direcciones-url-largas/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 23:09:02 +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>
		<category><![CDATA[[nbsp]]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/04/21/nuevo-acortador-de-direcciones-url-largas/</guid>
		<description><![CDATA[Este fin de semana he estado desarrollando junto con Cel (cenics.net) un redireccionador de URLs largas. Basicamente es para que no tengáis que pasar a vuestros contactos esos churros de direcciones tan grandes que a veces se rompen. http://lost.in Espero que os sea útil para: - Mandar correos con URLs largas pero que no se [...]]]></description>
			<content:encoded><![CDATA[<p>Este fin de semana he estado desarrollando junto con Cel (<a href="http://www.cenics.net">cenics.net</a>) un redireccionador de URLs largas. Basicamente es para que no tengáis que pasar a vuestros contactos esos churros de direcciones tan grandes que a veces se rompen.</p>
<p><a href="http://lost.in">http://lost.in</a></p>
<p>Espero que os sea útil para:</p>
<p>- Mandar correos con URLs largas pero que no se rompen<br />
- Añadir enlaces a vuestra red social de forma seguro<br />
- Facilitar el acceso a ciertos sitios solo a quien vosotros queráis (mediante password)</p>
<p>Espero vuestras aportaciones ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/04/21/nuevo-acortador-de-direcciones-url-largas/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mapas de los municipios de España vectorizados en flash</title>
		<link>http://www.nbsp.es/2009/03/15/mapas-de-los-municipios-de-espana-vectorizados-en-flash/</link>
		<comments>http://www.nbsp.es/2009/03/15/mapas-de-los-municipios-de-espana-vectorizados-en-flash/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 01:42:45 +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/03/15/mapas-de-los-municipios-de-espana-vectorizados-en-flash/</guid>
		<description><![CDATA[Después de un curro de varias semanas por fin he conseguido el objetivo que me había planteado, crear una versión de los mapas vectoriales que enlacé el otro día pero en formato flash, en clips de película con su nombre de instancia y enlazados a una base de datos. Podéis verlo en funcionamiento y descargarlo [...]]]></description>
			<content:encoded><![CDATA[<p>Después de un curro de varias semanas por fin he conseguido el objetivo que me había planteado, crear una versión de los mapas vectoriales que enlacé el otro día pero en formato flash, en clips de película con su nombre de instancia y enlazados a una base de datos.</p>
<p>Podéis verlo en funcionamiento y descargarlo en <a href="http://municipios.nacionales.es">http://municipios.nacionales.es</a>.</p>
<p><img id="image514" src="http://www.nbsp.es/images/2009/03/teruel_existe.png" alt="Teruel existe!!" /></p>
<p>Comentarios, mejoras, usos, modificaciones, etc... podéis dejar un comentario aquí o bien hacerme llegar un correo a mi dirección "marc en palaueb punto com".</p>
<p>Ah!! El proyecto lo he licenciado bajo Creative Commons, por lo que podréis usarlo para casi todo lo que queráis. Para los que quieran darle un uso comercial que contacten conmigo a través de mi correo.</p>
<p>Espero vuestro feedback!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/03/15/mapas-de-los-municipios-de-espana-vectorizados-en-flash/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Herramientas para webmasters</title>
		<link>http://www.nbsp.es/2009/02/27/herramientas-para-webmasters/</link>
		<comments>http://www.nbsp.es/2009/02/27/herramientas-para-webmasters/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 08:54:19 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Aplicaciones web]]></category>
		<category><![CDATA[Otras páginas]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2009/02/27/herramientas-para-webmasters/</guid>
		<description><![CDATA[En CDmon tenemos a disposición de los desarrolladores (sin importar donde tengan su hosting) un listado de herramientas para webmasters que os pueden ser muy útiles: ¿Cual es mi IP? Conversor de tiempo Encriptar texto Información del navegador Codificar caracteres Tabla de caracteres Listado de colores Generador de .htpasswd Localizar IP (Geolocalización) Estamos abiertos a [...]]]></description>
			<content:encoded><![CDATA[<p>En <a href="https://www.cdmon.com/">CDmon</a> tenemos a disposición de los desarrolladores (sin importar donde tengan su <a href="https://www.cdmon.com/cat/alojamiento/">hosting</a>) un listado de <a href="https://www.cdmon.com/cat/webapps/index.php">herramientas para webmasters</a> que os pueden ser muy útiles:</p>
<ul>
<li><a href="https://www.cdmon.com/cas/webapps/ip.php">¿Cual es mi IP?</a></li>
<li><a href="https://www.cdmon.com/cas/webapps/mktime.php">Conversor de tiempo</a></li>
<li><a href="https://www.cdmon.com/cas/webapps/encriptar.php">Encriptar texto</a></li>
<li><a href="https://www.cdmon.com/cas/webapps/info.php">Información del navegador</a></li>
<li><a href="https://www.cdmon.com/cas/webapps/codificar.php">Codificar caracteres</a></li>
<li><a href="https://www.cdmon.com/cas/webapps/tabla_caracteres.php">Tabla de caracteres</a></li>
<li><a href="https://www.cdmon.com/cas/webapps/colors.php">Listado de colores</a></li>
<li><a href="https://www.cdmon.com/cas/webapps/htpasswd.php">Generador de .htpasswd</a></li>
<li><a href="https://www.cdmon.com/cas/webapps/location.php">Localizar IP (Geolocalización)</a></li>
</ul>
<p>Estamos abiertos a desarrollar más, así que si queréis algo tan solo me lo comentáis por aquí o me contactáis por correo y veré que podemos hacer.</p>
<p>Espero que os gusten :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2009/02/27/herramientas-para-webmasters/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mamá! salgo en un blog de moda!</title>
		<link>http://www.nbsp.es/2008/11/26/mama-salgo-en-un-blog-de-moda/</link>
		<comments>http://www.nbsp.es/2008/11/26/mama-salgo-en-un-blog-de-moda/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 18:49:12 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Aplicaciones web]]></category>
		<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Otras páginas]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2008/11/26/mama-salgo-en-un-blog-de-moda/</guid>
		<description><![CDATA[anieto2k es el blog de Andrés Nieto. Seguro que alguna vez has caído por ahí, si no lo has hecho te mereces una colleja por pardillo. Como buen desarrollador web que soy, me place y complace aparecer por sus notitas con las herramientas para desarrolladores web que desarrollé para CDmon. Yuju! que tío más crack! [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.anieto2k.com/">anieto2k es el blog de Andrés Nieto</a>. Seguro que alguna vez has caído por ahí, si no lo has hecho te mereces una colleja por pardillo. Como buen desarrollador web que soy, me place y complace <a href="http://www.anieto2k.com/2008/11/26/herramientas-para-desarrolladores-web/">aparecer por sus notitas</a> con las <a href="https://www.cdmon.com/webapps/index.php">herramientas para desarrolladores web</a> que desarrollé para <a href="http://www.cdmon.com">CDmon</a>.</p>
<p>Yuju! que tío más crack!</p>
<p>Oh, si... por cierto. Lo conocí personalmente en el congresowebmasters donde le dieron un premio por su blog (con la de veces que actualiza y el nivel que tiene me parece un muy buen acierto).</p>
<p>Sigo con mis lios ... saludos!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2008/11/26/mama-salgo-en-un-blog-de-moda/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>decimal a hexadecimal a decimal en javascript</title>
		<link>http://www.nbsp.es/2008/08/14/decimal-a-hexadecimal-a-decimal-en-javascript/</link>
		<comments>http://www.nbsp.es/2008/08/14/decimal-a-hexadecimal-a-decimal-en-javascript/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 10:05:25 +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>

		<guid isPermaLink="false">http://www.nbsp.es/2008/08/14/decimal-a-hexadecimal-a-decimal-en-javascript/</guid>
		<description><![CDATA[Basándome en algo que ya sabía de hace mucho y unos pequeños aportes del master del universo john resig, ahí os dejo esto: PLAIN TEXT JavaScript: function toHex&#40;dec&#41;&#123;return Number&#40;dec&#41;.toString&#40;16&#41;;&#125; function toDec&#40;hex&#41;&#123;return parseInt&#40;hex,16&#41;;&#125;]]></description>
			<content:encoded><![CDATA[<p>Basándome en algo que ya sabía de hace mucho y unos pequeños aportes del <a href="http://ejohn.org/blog/numbers-hex-and-colors/">master del universo john resig</a>, ahí os dejo esto:</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;">function</span> toHex<span style="color: #66cc66;">&#40;</span>dec<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #000066; font-weight: bold;">return</span> Number<span style="color: #66cc66;">&#40;</span>dec<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;color:#800000;">16</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #66cc66;">&#125;</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;">function</span> toDec<span style="color: #66cc66;">&#40;</span>hex<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #000066; font-weight: bold;">return</span> parseInt<span style="color: #66cc66;">&#40;</span>hex,<span style="color: #CC0000;color:#800000;">16</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2008/08/14/decimal-a-hexadecimal-a-decimal-en-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Expresión regular para obtener comentarios xHTML</title>
		<link>http://www.nbsp.es/2008/08/14/expresion-regular-para-obtener-comentarios-xhtml/</link>
		<comments>http://www.nbsp.es/2008/08/14/expresion-regular-para-obtener-comentarios-xhtml/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 09:35:36 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Aplicaciones web]]></category>
		<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[[nbsp]]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2008/08/14/expresion-regular-para-obtener-comentarios-xhtml/</guid>
		<description><![CDATA[/&#60;!--([\w\W\s]*?)--&#62;/ Ideal para eliminar los comentarios de archivos con el DW (por ejemplo).]]></description>
			<content:encoded><![CDATA[<p><code>/&lt;!--([\w\W\s]*?)--&gt;/</code></p>
<p>Ideal para eliminar los comentarios de archivos con el DW (por ejemplo).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2008/08/14/expresion-regular-para-obtener-comentarios-xhtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Distancia entre dos puntos en AS2</title>
		<link>http://www.nbsp.es/2008/08/06/distancia-entre-dos-puntos-en-as2/</link>
		<comments>http://www.nbsp.es/2008/08/06/distancia-entre-dos-puntos-en-as2/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 16:22:31 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Aplicaciones web]]></category>
		<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Turoriales]]></category>
		<category><![CDATA[Varios]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2008/08/06/distancia-entre-dos-puntos-en-as2/</guid>
		<description><![CDATA[Estamos desarrollando con Joan Garnet una cosita que ya enseñaré y he montado una función para detectar la distancia entre el centro del Stage y el ratón, ahí va: PLAIN TEXT Actionscript: import flash.geom.Point; &#160; var punt_centre_x:Number=Stage.width/2; var punt_centre_y:Number=Stage.height/2; &#160; var punt_centre:Point=new Point&#40;punt_centre_x,punt_centre_y&#41;; &#160; function check_distance&#40;&#41;&#123; &#160; &#160; var punt_mouse_x:Number=this._xmouse; &#160; &#160; var punt_mouse_y:Number=this._ymouse; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Estamos desarrollando con Joan Garnet una cosita que ya enseñaré y he montado una función para detectar la distancia entre el centro del Stage y el ratón, ahí va:</p>
<div class="igBar"><span id="lactionscript-16"><a href="#" onclick="javascript:showPlainTxt('actionscript-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-16">
<div class="actionscript">
<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: #0066CC;">import</span> flash.<span style="color: #006600;">geom</span>.<span style="color: #006600;">Point</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: #000000; font-weight: bold;">var</span> punt_centre_x:<span style="color: #0066CC;">Number</span>=<span style="color: #0066CC;">Stage</span>.<span style="color: #0066CC;">width</span>/<span style="color: #cc66cc;color:#800000;">2</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> punt_centre_y:<span style="color: #0066CC;">Number</span>=<span style="color: #0066CC;">Stage</span>.<span style="color: #0066CC;">height</span>/<span style="color: #cc66cc;color:#800000;">2</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: #000000; font-weight: bold;">var</span> punt_centre:Point=<span style="color: #000000; font-weight: bold;">new</span> Point<span style="color: #66cc66;">&#40;</span>punt_centre_x,punt_centre_y<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;"><span style="color: #000000; font-weight: bold;">function</span> check_distance<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#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; <span style="color: #000000; font-weight: bold;">var</span> punt_mouse_x:<span style="color: #0066CC;">Number</span>=<span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">_xmouse</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: #000000; font-weight: bold;">var</span> punt_mouse_y:<span style="color: #0066CC;">Number</span>=<span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">_ymouse</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; </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: #000000; font-weight: bold;">var</span> punt_mouse:Point=<span style="color: #000000; font-weight: bold;">new</span> Point<span style="color: #66cc66;">&#40;</span>punt_mouse_x,punt_mouse_y<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; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> dist:<span style="color: #0066CC;">Number</span>=Point.<span style="color: #006600;">distance</span><span style="color: #66cc66;">&#40;</span>punt_centre,punt_mouse<span style="color: #66cc66;">&#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; distancia.<span style="color: #0066CC;">text</span>=dist+<span style="color: #ff0000;">"px"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#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;">&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: #0066CC;">this</span>.<span style="color: #0066CC;">onMouseMove</span>=check_distance; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2008/08/06/distancia-entre-dos-puntos-en-as2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FullscreenYouck, Bookmarklet para agrandar el player embed de youtube</title>
		<link>http://www.nbsp.es/2008/02/05/fullscreenyouck-bookmarklet-para-agrandar-el-player-embed-de-youtube/</link>
		<comments>http://www.nbsp.es/2008/02/05/fullscreenyouck-bookmarklet-para-agrandar-el-player-embed-de-youtube/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 21:02:36 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[Aplicaciones web]]></category>
		<category><![CDATA[Desarrollo web]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.nbsp.es/2008/02/05/fullscreenyouck-bookmarklet-para-agrandar-el-player-embed-de-youtube/</guid>
		<description><![CDATA[La motivación es la causa de muchas de las tonterías que hago, soy un motivado de la vida y eso no me lo quita nadie (ala). La causa de mi motivación esta vez ha sido la manía que tengo al player emedido de youtube, en cuanto estás mirando un blog con algunos vídeos, tienes que [...]]]></description>
			<content:encoded><![CDATA[<p>La motivación es la causa de muchas de las tonterías que hago, soy un motivado de la vida y eso no me lo quita nadie (ala). La causa de mi motivación esta vez ha sido la manía que tengo al player emedido de youtube, en cuanto estás mirando un blog con algunos vídeos, tienes que estar entrando y saliendo del blog para poner el dichoso fullscreen (pantalla completa). Ya que estamos puestos a ser frikis, seamoslo en serio, ¿porque no hacer nuestro propio <a href="http://www.nbsp.es/2006/08/04/bookmarklets/">bookmarklet</a> que nos permita listar todos los vídeos de un blog, para irlos viendo a pantalla completa uno a uno sin movernos del sitio?</p>
<p>Lo único que tenéis que hacer es añadir el siguiente código como un marcador (en vuestros favoritos) y cada vez que queráis ver algunos vídeos sin rallaros demasiado, cargáis el enlace y os aparecerá una pantalla con el listado de los vídeos de la página (extensible a cualquier cosa llamada embed).</p>
<div class="igBar"><span id="lhtml-18"><a href="#" onclick="javascript:showPlainTxt('html-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-18">
<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/fullscreenyouck.js?nocache='+Math.random();scScript.type='text/javascript';void(document.getElementsByTagName('head')[0].appendChild(scScript)); </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><a href="javascript:scScript=document.createElement('script');scScript.src='http://www.javascript.es/bmk/fullscreenyouck.js?nocache='+Math.random();scScript.type='text/javascript';void(document.getElementsByTagName('head')[0].appendChild(scScript));">O lo que es lo mismo, botón derecho aquí y añadir a favoritos</a></p>
<p>Espero un poco de feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nbsp.es/2008/02/05/fullscreenyouck-bookmarklet-para-agrandar-el-player-embed-de-youtube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

