<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Chuletillas's Weblog</title>
	<atom:link href="http://chuletillas.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://chuletillas.wordpress.com</link>
	<description>Mis chuletillas online</description>
	<lastBuildDate>Fri, 09 Oct 2009 13:32:13 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='chuletillas.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/7847ecf277c27ea647c612775425918c?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Chuletillas's Weblog</title>
		<link>http://chuletillas.wordpress.com</link>
	</image>
			<item>
		<title>Mostrar errores de las p&#225;ginas de sharepoint</title>
		<link>http://chuletillas.wordpress.com/2009/10/09/mostrar-errores-de-las-pginas-de-sharepoint/</link>
		<comments>http://chuletillas.wordpress.com/2009/10/09/mostrar-errores-de-las-pginas-de-sharepoint/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 13:32:13 +0000</pubDate>
		<dc:creator>chuletillas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chuletillas.wordpress.com/2009/10/09/mostrar-errores-de-las-pginas-de-sharepoint/</guid>
		<description><![CDATA[Problema: Ocurre un error en mis páginas de Sharepoint, pero me sale la página de error genérica y no hay manera de saber de qué es.
Solución: Modificar el web.config del sitio y dejar las siguientes líneas así:
En la sección &#60;System.web&#62;:
&#60;customErrors mode=&#34;Off&#34;/&#62;
Y luego buscar: 
&#60;SafeMode MaxControls=”200″ CallStack=”false”…
y poner
&#60;SafeMode MaxControls=“200“ CallStack=”true”…

       [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=63&subd=chuletillas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Problema: Ocurre un error en mis páginas de Sharepoint, pero me sale la página de error genérica y no hay manera de saber de qué es.</p>
<p>Solución: Modificar el web.config del sitio y dejar las siguientes líneas así:</p>
<blockquote><p>En la sección &lt;System.web&gt;:</p>
<p><font face="Arial">&lt;customErrors mode=&quot;Off&quot;/&gt;</font></p>
<p>Y luego buscar: </p>
<p>&lt;SafeMode MaxControls=”200″ CallStack=”false”…</p>
<p>y poner</p>
<p>&lt;SafeMode MaxControls=“200“ CallStack=”true”…</p>
</blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chuletillas.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chuletillas.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chuletillas.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chuletillas.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chuletillas.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chuletillas.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chuletillas.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chuletillas.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chuletillas.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chuletillas.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=63&subd=chuletillas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chuletillas.wordpress.com/2009/10/09/mostrar-errores-de-las-pginas-de-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfa0dcc2f299c72cecfa7a1eb62adc6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chuletillas</media:title>
		</media:content>
	</item>
		<item>
		<title>&#191;C&#243;mo se hace la funci&#243;n trim en javascript?</title>
		<link>http://chuletillas.wordpress.com/2009/08/07/cmo-se-hace-la-funcin-trim-en-javascript/</link>
		<comments>http://chuletillas.wordpress.com/2009/08/07/cmo-se-hace-la-funcin-trim-en-javascript/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 13:20:34 +0000</pubDate>
		<dc:creator>chuletillas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chuletillas.wordpress.com/2009/08/07/cmo-se-hace-la-funcin-trim-en-javascript/</guid>
		<description><![CDATA[Problema: ¿Cómo puedo hacer la función trim en javascript?
Solución: Mediante una expresión regular sale:
function trim(str)     &#160;&#160;&#160; {      &#160;&#160;&#160;&#160;&#160;&#160;&#160; return str.replace(/^\s\s*/, &#8221;).replace(/\s\s*$/, &#8221;);      &#160;&#160;&#160; }

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=62&subd=chuletillas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Problema:</strong> ¿Cómo puedo hacer la función trim en javascript?</p>
<p><strong>Solución:</strong> Mediante una expresión regular sale:</p>
<blockquote><p>function trim(str)     <br />&#160;&#160;&#160; {      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; return str.replace(/^\s\s*/, &#8221;).replace(/\s\s*$/, &#8221;);      <br />&#160;&#160;&#160; }</p>
</blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chuletillas.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chuletillas.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chuletillas.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chuletillas.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chuletillas.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chuletillas.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chuletillas.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chuletillas.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chuletillas.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chuletillas.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=62&subd=chuletillas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chuletillas.wordpress.com/2009/08/07/cmo-se-hace-la-funcin-trim-en-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfa0dcc2f299c72cecfa7a1eb62adc6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chuletillas</media:title>
		</media:content>
	</item>
		<item>
		<title>Validar varias direcciones de correo por expresiones regulares</title>
		<link>http://chuletillas.wordpress.com/2009/08/07/validar-varias-direcciones-de-correo-por-expresiones-regulares/</link>
		<comments>http://chuletillas.wordpress.com/2009/08/07/validar-varias-direcciones-de-correo-por-expresiones-regulares/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 13:19:05 +0000</pubDate>
		<dc:creator>chuletillas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chuletillas.wordpress.com/2009/08/07/validar-varias-direcciones-de-correo-por-expresiones-regulares/</guid>
		<description><![CDATA[Problema: Sé como validar una dirección de correo mediante javascript y expresiones regulares, pero no sé cómo hacerlo para permitir que se puedan introducir varias direcciones separadas por el caracter coma.
Solución: Esta expresión regular valida varias direcciones de correo separadas por coma o por punto y coma, y se permiten también espacios en blanco entre [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=61&subd=chuletillas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Problema:</strong> Sé como validar una dirección de correo mediante javascript y expresiones regulares, pero no sé cómo hacerlo para permitir que se puedan introducir varias direcciones separadas por el caracter coma.</p>
<p><strong>Solución:</strong> Esta expresión regular valida varias direcciones de correo separadas por coma o por punto y coma, y se permiten también espacios en blanco entre las direcciones de correo a ambos lados del separador (, <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<blockquote><p>var emailRegEx = /^(([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+)(([\s]*[;,]+[\s]*(([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+))*)$/;</p>
</blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chuletillas.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chuletillas.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chuletillas.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chuletillas.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chuletillas.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chuletillas.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chuletillas.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chuletillas.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chuletillas.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chuletillas.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=61&subd=chuletillas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chuletillas.wordpress.com/2009/08/07/validar-varias-direcciones-de-correo-por-expresiones-regulares/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfa0dcc2f299c72cecfa7a1eb62adc6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chuletillas</media:title>
		</media:content>
	</item>
		<item>
		<title>Postbacks indeseados en Firefox con el control &lt;button&gt;</title>
		<link>http://chuletillas.wordpress.com/2009/07/27/postbacks-indeseados-en-firefox-con-el-control-button/</link>
		<comments>http://chuletillas.wordpress.com/2009/07/27/postbacks-indeseados-en-firefox-con-el-control-button/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 09:29:49 +0000</pubDate>
		<dc:creator>chuletillas</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://chuletillas.wordpress.com/2009/07/27/postbacks-indeseados-en-firefox-con-el-control-button/</guid>
		<description><![CDATA[Problema: Estoy trabajando en una página asp.net, y cuando pongo un control HTML del tipo &#60;button&#62;, en el Explorer funciona como me espero que funcione, pero en el Firefox cada vez que le doy me causa un postback de la página
Solución: Basta con declarar el comportamiento del botón con el atributo “Type”. El problema surge [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=60&subd=chuletillas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Problema:</strong> Estoy trabajando en una página asp.net, y cuando pongo un control HTML del tipo &lt;button&gt;, en el Explorer funciona como me espero que funcione, pero en el Firefox cada vez que le doy me causa un postback de la página</p>
<p><strong>Solución:</strong> Basta con declarar el comportamiento del botón con el atributo “Type”. El problema surge al no incluir este atributo, ya que Firefox toma por defecto el valor “submit”, mientras explorer toma por defecto el valor “button”. </p>
<blockquote><p>&lt;button type=”button”&gt;&lt;/button&gt;</p>
</blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chuletillas.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chuletillas.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chuletillas.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chuletillas.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chuletillas.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chuletillas.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chuletillas.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chuletillas.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chuletillas.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chuletillas.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=60&subd=chuletillas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chuletillas.wordpress.com/2009/07/27/postbacks-indeseados-en-firefox-con-el-control-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfa0dcc2f299c72cecfa7a1eb62adc6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chuletillas</media:title>
		</media:content>
	</item>
		<item>
		<title>C&#243;mo se pasa un c&#243;digo de color en HTML a un objeto de .NET</title>
		<link>http://chuletillas.wordpress.com/2009/07/14/cmo-se-pasa-un-cdigo-de-color-en-html-a-un-objeto-de-net/</link>
		<comments>http://chuletillas.wordpress.com/2009/07/14/cmo-se-pasa-un-cdigo-de-color-en-html-a-un-objeto-de-net/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 11:52:35 +0000</pubDate>
		<dc:creator>chuletillas</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://chuletillas.wordpress.com/2009/07/14/cmo-se-pasa-un-cdigo-de-color-en-html-a-un-objeto-de-net/</guid>
		<description><![CDATA[Problema: Tengo un un código de color en HTML (Por ejemplo #E8E8F3 y quiero usarlo en .NET, pero no puedo usarlo directamente porque los colores en .NET tienen que ser de la clase System.Drawing.Color y no sé a qué color se corresponde.
Solución: Usar la siguiente función
System.Drawing.ColorTranslator.FromHtml(&#34;#E8E8F3&#34;)

Y si lo queremos a la inversa, esto nos convertiría [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=59&subd=chuletillas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Problema:</strong> Tengo un un código de color en HTML (Por ejemplo #E8E8F3 y quiero usarlo en .NET, pero no puedo usarlo directamente porque los colores en .NET tienen que ser de la clase System.Drawing.Color y no sé a qué color se corresponde.</p>
<p><strong>Solución:</strong> Usar la siguiente función</p>
<blockquote><p>System.Drawing.ColorTranslator.FromHtml(&quot;#E8E8F3&quot;)</p>
</blockquote>
<p>Y si lo queremos a la inversa, esto nos convertiría un System.Drawing.Color en una cadena con el código HTML</p>
<blockquote><p>System.Drawing.ColorTranslator.ToHtml(color);</p>
</blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chuletillas.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chuletillas.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chuletillas.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chuletillas.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chuletillas.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chuletillas.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chuletillas.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chuletillas.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chuletillas.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chuletillas.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=59&subd=chuletillas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chuletillas.wordpress.com/2009/07/14/cmo-se-pasa-un-cdigo-de-color-en-html-a-un-objeto-de-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfa0dcc2f299c72cecfa7a1eb62adc6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chuletillas</media:title>
		</media:content>
	</item>
		<item>
		<title>No me funciona el Intellisense en visual studio 2008</title>
		<link>http://chuletillas.wordpress.com/2009/06/03/no-me-funciona-el-intellisense-en-visual-studio-2008/</link>
		<comments>http://chuletillas.wordpress.com/2009/06/03/no-me-funciona-el-intellisense-en-visual-studio-2008/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 08:36:47 +0000</pubDate>
		<dc:creator>chuletillas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chuletillas.wordpress.com/2009/06/03/no-me-funciona-el-intellisense-en-visual-studio-2008/</guid>
		<description><![CDATA[Problema: No sé qué es lo que le he instalado al Visual Studio 2008, que desde hace unos días no me funciona el intellisense cuando trabajo con XAML (Ni con WPF ni con Silverlight)
Solución: Para ver si estamos hablando de lo mismo, comprueba en el registro (usando el regedit) si está vacía la entrada:
Para Windows [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=58&subd=chuletillas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Problema:</strong> No sé qué es lo que le he instalado al Visual Studio 2008, que desde hace unos días no me funciona el intellisense cuando trabajo con XAML (Ni con WPF ni con Silverlight)</p>
<p><strong>Solución:</strong> Para ver si estamos hablando de lo mismo, comprueba en el registro (usando el regedit) si está vacía la entrada:</p>
<blockquote><p>Para Windows de 32 bits:     <br />HKEY_CLASSES_ROOT\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32</p>
<p>Para Windows de 64 bits:     <br />HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32</p>
</blockquote>
<p>Si la entrada (Default) está vacía entonces el problema se puede solucionar de la siguiente forma:</p>
<blockquote><p align="left">Abriendo una ventana de símbolo de sistema y escribiendo(cuidado que en vista habrá que estar como administrador)     <br />Para Windows de 32 bits:      <br />regsvr32 &quot;%CommonProgramFiles%\Microsoft Shared\MSEnv\TextMgrP.dll&quot;</p>
<p align="left">Para Windows de 64 bits:     <br />regsvr32 &quot;%CommonProgramFiles(X86)%\Microsoft Shared\MSEnv\TextMgrP.dll&quot;</p>
</blockquote>
<p>Reinicia el Visual Studio y listo.</p>
<p>Solución tomada de <a href="http://social.msdn.microsoft.com/forums/en-US/windowssdk/thread/dd6f14ed-e582-4b49-9358-64f2afaec151/" target="_blank">aquí</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chuletillas.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chuletillas.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chuletillas.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chuletillas.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chuletillas.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chuletillas.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chuletillas.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chuletillas.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chuletillas.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chuletillas.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=58&subd=chuletillas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chuletillas.wordpress.com/2009/06/03/no-me-funciona-el-intellisense-en-visual-studio-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfa0dcc2f299c72cecfa7a1eb62adc6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chuletillas</media:title>
		</media:content>
	</item>
		<item>
		<title>Problemas con expresiones condicionales del tipo &lt;condicion&gt; ? expresion1 : expresion2</title>
		<link>http://chuletillas.wordpress.com/2009/04/08/problemas-con-expresiones-condicionales-del-tipo-condicion-expresion1-expresion2/</link>
		<comments>http://chuletillas.wordpress.com/2009/04/08/problemas-con-expresiones-condicionales-del-tipo-condicion-expresion1-expresion2/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 09:33:08 +0000</pubDate>
		<dc:creator>chuletillas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chuletillas.wordpress.com/2009/04/08/problemas-con-expresiones-condicionales-del-tipo-condicion-expresion1-expresion2/</guid>
		<description><![CDATA[Problema: Tengo una expresión del tipo &#60;condicion&#62; ? expresion1 : expresion2 y al compilar me da el siguiente error: “Type of conditional expression cannot be determined because there is no implicit conversion between &#60;tipo1&#62; and &#60;tipo2&#62;
Solución: Este problema aparece porque las expresiones de este tipo solo pueden devolver un tipo, no dos. Al poner tipos [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=57&subd=chuletillas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Problema:</strong> Tengo una expresión del tipo &lt;condicion&gt; ? expresion1 : expresion2 y al compilar me da el siguiente error: “Type of conditional expression cannot be determined because there is no implicit conversion between &lt;tipo1&gt; and &lt;tipo2&gt;</p>
<p><strong>Solución:</strong> Este problema aparece porque las expresiones de este tipo solo pueden devolver un tipo, no dos. Al poner tipos diferentes como resultado de expresion1 y expresion2 el compilador nos daría ese error. Tenemos que decidir que tipo va a devolver la expresión y hacerle un casting a una de las dos expresiones. O si por un lado queremos devolver null y por otro un tipo primitivo (los cuales no pueden ser null) podemos usar los nullables. Ej:</p>
<blockquote><p><font face="Arial Unicode MS" color="#004000">string filtro;</font></p>
<p><font face="Arial Unicode MS" color="#004000">(filtro.Equals(“todos”)) ? (bool?)null : false;</font></p>
</blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chuletillas.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chuletillas.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chuletillas.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chuletillas.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chuletillas.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chuletillas.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chuletillas.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chuletillas.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chuletillas.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chuletillas.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=57&subd=chuletillas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chuletillas.wordpress.com/2009/04/08/problemas-con-expresiones-condicionales-del-tipo-condicion-expresion1-expresion2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfa0dcc2f299c72cecfa7a1eb62adc6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chuletillas</media:title>
		</media:content>
	</item>
		<item>
		<title>C&#243;mo le doy formato a una cantidad en SQL Server?</title>
		<link>http://chuletillas.wordpress.com/2009/04/02/cmo-le-doy-formato-a-una-cantidad-en-sql-server/</link>
		<comments>http://chuletillas.wordpress.com/2009/04/02/cmo-le-doy-formato-a-una-cantidad-en-sql-server/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 14:49:04 +0000</pubDate>
		<dc:creator>chuletillas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chuletillas.wordpress.com/2009/04/02/cmo-le-doy-formato-a-una-cantidad-en-sql-server/</guid>
		<description><![CDATA[Problema: Estoy haciendo un select en SQL Server, y quiero que lo que me devuelve la consulta me venga ya formateado (por ejemplo, redondeado con 2 decimales y los miles separados por comas)
Solución: Para los decimales podemos usar la funcion “cast”. Por ejemplo, haciendo cast de nuestro valor al tipo money conseguiremos el formato con [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=56&subd=chuletillas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Problema</strong>: Estoy haciendo un select en SQL Server, y quiero que lo que me devuelve la consulta me venga ya formateado (por ejemplo, redondeado con 2 decimales y los miles separados por comas)</p>
<p><strong>Solución</strong>: Para los decimales podemos usar la funcion “cast”. Por ejemplo, haciendo cast de nuestro valor al tipo money conseguiremos el formato con 2 decimales:</p>
<blockquote><p>CAST(@variable AS money)</p>
</blockquote>
<p>Para darle un formato que nos separe la crifra por miles, podemos usar la función “convert”:</p>
<blockquote><p>CONVERT(varchar, CAST(@variable AS money), 1)</p>
</blockquote>
<p>Y finalmente un ejemplo usándolo todo junto para que devuelva una cadena de texto con la cantidad formateada y la moneda añadida:</p>
<blockquote><p>CAST(CONVERT(varchar, CAST(@variable AS money), 1) AS varchar) + ‘Euros’</p>
</blockquote>
<p>Más info sobre éstas funciones <a href="http://msdn.microsoft.com/es-es/library/ms187928.aspx" target="_blank">aquí</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chuletillas.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chuletillas.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chuletillas.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chuletillas.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chuletillas.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chuletillas.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chuletillas.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chuletillas.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chuletillas.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chuletillas.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=56&subd=chuletillas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chuletillas.wordpress.com/2009/04/02/cmo-le-doy-formato-a-una-cantidad-en-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfa0dcc2f299c72cecfa7a1eb62adc6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chuletillas</media:title>
		</media:content>
	</item>
		<item>
		<title>C&#243;mo puedo en javascript obtener el contenido del atributo onclick en una cadena de texto?</title>
		<link>http://chuletillas.wordpress.com/2009/03/30/cmo-puedo-en-javascript-obtener-el-contenido-del-atributo-onclick-en-una-cadena-de-texto/</link>
		<comments>http://chuletillas.wordpress.com/2009/03/30/cmo-puedo-en-javascript-obtener-el-contenido-del-atributo-onclick-en-una-cadena-de-texto/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 09:26:13 +0000</pubDate>
		<dc:creator>chuletillas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chuletillas.wordpress.com/2009/03/30/cmo-puedo-en-javascript-obtener-el-contenido-del-atributo-onclick-en-una-cadena-de-texto/</guid>
		<description><![CDATA[Problema: Quiero obtener el contenido del atributo onclick de un objeto javascript para manipularlo con las funciones de cadena, por lo que lo necesito como un objeto tipo string. Pero al obtenerlo mediante objeto.getAttribute(“onclick”) no me vuelve como una cadena de texto, ya que no puedo aplicar ningún método de cadena sobre lo que me [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=55&subd=chuletillas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Problema:</strong> Quiero obtener el contenido del atributo onclick de un objeto javascript para manipularlo con las funciones de cadena, por lo que lo necesito como un objeto tipo string. Pero al obtenerlo mediante objeto.getAttribute(“onclick”) no me vuelve como una cadena de texto, ya que no puedo aplicar ningún método de cadena sobre lo que me devuelve.</p>
<p><strong>Solución:</strong> Mediante getAttribute obtendremos lo que realmente hay en ese atributo, que seguramente será una función anónima. Si lo necesitamos como una cadena de texto, podemos hacer lo siguiente:</p>
<blockquote><p align="left"><font face="Consolas">var obj = document.getElementById(&quot;objId&quot;);&#160; <br /></font><font face="Consolas">var attributesArray = obj.attributes;        <br />var contenido = attributesArray[&quot;onclick&quot;].nodeValue;</font></p>
</blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chuletillas.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chuletillas.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chuletillas.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chuletillas.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chuletillas.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chuletillas.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chuletillas.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chuletillas.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chuletillas.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chuletillas.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=55&subd=chuletillas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chuletillas.wordpress.com/2009/03/30/cmo-puedo-en-javascript-obtener-el-contenido-del-atributo-onclick-en-una-cadena-de-texto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfa0dcc2f299c72cecfa7a1eb62adc6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chuletillas</media:title>
		</media:content>
	</item>
		<item>
		<title>C&#243;mo reemplazo todas las apariciones de un car&#225;cter en una cadena de javascript?</title>
		<link>http://chuletillas.wordpress.com/2009/03/30/cmo-reemplazo-todas-las-apariciones-de-un-carcter-en-una-cadena-de-javascript/</link>
		<comments>http://chuletillas.wordpress.com/2009/03/30/cmo-reemplazo-todas-las-apariciones-de-un-carcter-en-una-cadena-de-javascript/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 09:13:27 +0000</pubDate>
		<dc:creator>chuletillas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chuletillas.wordpress.com/2009/03/30/cmo-reemplazo-todas-las-apariciones-de-un-carcter-en-una-cadena-de-javascript/</guid>
		<description><![CDATA[Problema: Quiero reemplazar todas las apariciones de un caracter o una cadena en un objeto string de javascript, pero al usar el método “replace” sólo me sustituye la primera ocurrencia, no los demás.
Solución: Tal y como funciona la función replace de javascript, solo sustituye la primera ocurrencia que se encuentra. Para sustituir todas podemos usar [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=54&subd=chuletillas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Problema:</strong> Quiero reemplazar todas las apariciones de un caracter o una cadena en un objeto string de javascript, pero al usar el método “replace” sólo me sustituye la primera ocurrencia, no los demás.</p>
<p><strong>Solución:</strong> Tal y como funciona la función replace de javascript, solo sustituye la primera ocurrencia que se encuentra. Para sustituir todas podemos usar replace reiteradamente mediante un bucle for, o bien y más elegante, usar expresiones regulares. Por ejemplo:</p>
<blockquote><p><font face="Courier New" color="#004000" size="2">micadena.replace( new RegExp(“[\’]”,”g”),”” )</font></p>
</blockquote>
<p>Nos eliminaría todas las comillas simples que aparecieran en nuestra cadena.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chuletillas.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chuletillas.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chuletillas.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chuletillas.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chuletillas.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chuletillas.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chuletillas.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chuletillas.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chuletillas.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chuletillas.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chuletillas.wordpress.com&blog=3078306&post=54&subd=chuletillas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chuletillas.wordpress.com/2009/03/30/cmo-reemplazo-todas-las-apariciones-de-un-carcter-en-una-cadena-de-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bfa0dcc2f299c72cecfa7a1eb62adc6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chuletillas</media:title>
		</media:content>
	</item>
	</channel>
</rss>