<?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>hvivani&#039;s website</title>
	<atom:link href="http://hvivani.com.ar/feed/" rel="self" type="application/rss+xml" />
	<link>http://hvivani.com.ar</link>
	<description>bitácora de un sysadmin</description>
	<lastBuildDate>Fri, 24 May 2013 23:55:48 +0000</lastBuildDate>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hvivani.com.ar' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/7539008b2700c4de522075f9e4aeab12?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>hvivani&#039;s website</title>
		<link>http://hvivani.com.ar</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hvivani.com.ar/osd.xml" title="hvivani&#039;s website" />
	<atom:link rel='hub' href='http://hvivani.com.ar/?pushpress=hub'/>
		<item>
		<title>C#: Añadir ToolTip Text a un botón / Set ToolTip for a Button</title>
		<link>http://hvivani.com.ar/2013/05/21/c-anadir-tooltip-text-a-un-boton-set-tooltip-for-a-button/</link>
		<comments>http://hvivani.com.ar/2013/05/21/c-anadir-tooltip-text-a-un-boton-set-tooltip-for-a-button/#comments</comments>
		<pubDate>Tue, 21 May 2013 12:06:29 +0000</pubDate>
		<dc:creator>hvivani</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://hvivani.com.ar/?p=1535</guid>
		<description><![CDATA[Instanciamos un objeto ToolTip y, dentro de un evento MouseHover, establecemos el texto que queremos que aparezca al pasar por arriba del botón: System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip(); public frmABMC() {     InitializeComponent();     this.btnCerrar.MouseHover += new EventHandler(btnCerrar_MouseHover); } void &#8230; <a href="http://hvivani.com.ar/2013/05/21/c-anadir-tooltip-text-a-un-boton-set-tooltip-for-a-button/">Sigue leyendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1535&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Instanciamos un objeto ToolTip y, dentro de un evento MouseHover, establecemos el texto que queremos que aparezca al pasar por arriba del botón:</p>
<pre>System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();

public frmABMC() 
{
    InitializeComponent();
    this.btnCerrar.MouseHover += new EventHandler(btnCerrar_MouseHover);
}

void btnCerrar_MouseHover(object sender, EventArgs e)
{
    ToolTip1.SetToolTip(this.btnCerrar, "Cerrar");
}</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hvivani.wordpress.com/1535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hvivani.wordpress.com/1535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hvivani.wordpress.com/1535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hvivani.wordpress.com/1535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hvivani.wordpress.com/1535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hvivani.wordpress.com/1535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hvivani.wordpress.com/1535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hvivani.wordpress.com/1535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hvivani.wordpress.com/1535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hvivani.wordpress.com/1535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hvivani.wordpress.com/1535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hvivani.wordpress.com/1535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hvivani.wordpress.com/1535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hvivani.wordpress.com/1535/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1535&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hvivani.com.ar/2013/05/21/c-anadir-tooltip-text-a-un-boton-set-tooltip-for-a-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8a1f31e01d7faf46342744b18ae8aa38?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hvivani</media:title>
		</media:content>
	</item>
		<item>
		<title>Evolution no muestra correo entrante / Evolution not showing new emails</title>
		<link>http://hvivani.com.ar/2013/05/20/evolution-no-muestra-correo-entrante-evolution-not-showing-new-emails/</link>
		<comments>http://hvivani.com.ar/2013/05/20/evolution-no-muestra-correo-entrante-evolution-not-showing-new-emails/#comments</comments>
		<pubDate>Mon, 20 May 2013 12:36:39 +0000</pubDate>
		<dc:creator>hvivani</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hvivani.com.ar/?p=1531</guid>
		<description><![CDATA[Esto es algo que suele suceder a menudo, mas aún en entornos configurados sobre nfs, o con frecuentes fallos de red. Evolution, simplemente deja de mostrar los mensajes que arriban, no vemos ningún mensaje de error. Como primera medida para &#8230; <a href="http://hvivani.com.ar/2013/05/20/evolution-no-muestra-correo-entrante-evolution-not-showing-new-emails/">Sigue leyendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1531&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Esto es algo que suele suceder a menudo, mas aún en entornos configurados sobre nfs, o con frecuentes fallos de red.</p>
<p>Evolution, simplemente deja de mostrar los mensajes que arriban, no vemos ningún mensaje de error.</p>
<p>Como primera medida para solucionar este problema, podemos intentar una <a href="http://hvivani.com.ar/2012/02/03/reconstruir-las-carpetas-del-evolution/" target="_blank">reconstrucción de las carpetas del evolution</a>.</p>
<p>Si esto no da resultado, procederemos de la siguiente manera:</p>
<p>1) Cerramos el Evolution</p>
<p>2) Renombramos el archivo Inbox actualmente en uso:</p>
<pre>$ cd /home/gsosa/.local/share/evolution/mail/local
$ mv Inbox Inbox.bak</pre>
<p>3) Abrimos el Evolution: al no encontrar una carpeta Inbox, la creará nuevamente vacía.</p>
<p>4) En el Evolution vamos a Archivo &#8211;&gt; Importar y seguimos los pasos para &#8220;importar un unico archivo&#8221;. Cuando lo solicite, seleccionamos el archivo previamente renombrado en el paso 2).</p>
<p>Con esto tendremos nuevamente operativa la bandeja de entrada (Inbox)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hvivani.wordpress.com/1531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hvivani.wordpress.com/1531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hvivani.wordpress.com/1531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hvivani.wordpress.com/1531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hvivani.wordpress.com/1531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hvivani.wordpress.com/1531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hvivani.wordpress.com/1531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hvivani.wordpress.com/1531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hvivani.wordpress.com/1531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hvivani.wordpress.com/1531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hvivani.wordpress.com/1531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hvivani.wordpress.com/1531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hvivani.wordpress.com/1531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hvivani.wordpress.com/1531/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1531&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hvivani.com.ar/2013/05/20/evolution-no-muestra-correo-entrante-evolution-not-showing-new-emails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8a1f31e01d7faf46342744b18ae8aa38?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hvivani</media:title>
		</media:content>
	</item>
		<item>
		<title>Posicionamiento de sitios web / Google Webmaster Tools</title>
		<link>http://hvivani.com.ar/2013/05/18/posicionamiento-de-sitios-web-google-webmaster-tools/</link>
		<comments>http://hvivani.com.ar/2013/05/18/posicionamiento-de-sitios-web-google-webmaster-tools/#comments</comments>
		<pubDate>Sat, 18 May 2013 16:27:30 +0000</pubDate>
		<dc:creator>hvivani</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[posicionamiento web]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://hvivani.com.ar/?p=1528</guid>
		<description><![CDATA[Seguramente, luego de crear un sitio web, colocarlo en un servidor de hosting, configurar un dominio, sus dns&#8217;s, entre otras tareas, nos encontremos ante la gran pregunta: cuando será indexado mi sitio por los buscadores ? Será indexado ? No &#8230; <a href="http://hvivani.com.ar/2013/05/18/posicionamiento-de-sitios-web-google-webmaster-tools/">Sigue leyendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1528&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Seguramente, luego de crear un sitio web, colocarlo en un servidor de hosting, configurar un dominio, sus dns&#8217;s, entre otras tareas, nos encontremos ante la gran pregunta: cuando será indexado mi sitio por los buscadores ? Será indexado ?</p>
<p>No siempre vamos a tener la certeza de que nuestro sitio va a ser indexado inmediatamente, dado que eso depende de muchos factores, pero sí podemos hacer algo para que los buscadores se enteren de que el nuevo sitio existe y de que está disponible para indexar.</p>
<p>Para ello, debemos utilizar las webmaster tools. Todos los buscadores grandes tienen estas herramientas, que nos permitirán subir nuestro sitemap o mapa del sitio, administrar links a nuestro sitio, errores de rastreo, o definir que páginas pueden indexarse y cuales no.</p>
<p><strong>Mapa del Sitio:</strong></p>
<p>Uno de los puntos mas importantes son los mapas del sitio (sitemap). Debemos definir o cargar el mapa de nuestro sitio para facilitar la indexación. Esto se hace generando un archivo .xml con la estructura del sitio. Como hacemos eso ? Podemos hacerlo con, por ejemplo, el sitio <a href="http://www.xml-sitemaps.com/" target="_blank">xml-sitemaps</a>, que genera el sitemap de la dirección que le indiquemos.</p>
<p>Una vez que lo tengamos, podemos cargarlo en las Webmaster Tools de un buscador determinado y así le daremos al buscador toda la estructura de nuestro sitio.</p>
<p><strong>Google Webmaster Tools:</strong></p>
<p>Para cargar nuestro sitemap.xml en Google, entramos a <a href="https://www.google.com/webmasters/tools/">https://www.google.com/webmasters/tools/</a> (debemos tener una cuenta de google) y añadimos la dirección de nuestro sitio. Luego, en Optimización &#8211;&gt; Sitemaps añadimos el nombre del xml que hemos creado. Tendremos que subirlo previamente a nuestro hosting también a fin de que google pueda leerlo.</p>
<p>Yahoo y Bing, comparten esta herramienta también: <a href="http://www.bing.com/toolbox/webmaster/" target="_blank">http://www.bing.com/toolbox/webmaster/</a></p>
<p>Espero que esta información sea de utilidad para todos aquellos que arrancan con la publicación de sitios y el posicionamiento web.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hvivani.wordpress.com/1528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hvivani.wordpress.com/1528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hvivani.wordpress.com/1528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hvivani.wordpress.com/1528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hvivani.wordpress.com/1528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hvivani.wordpress.com/1528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hvivani.wordpress.com/1528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hvivani.wordpress.com/1528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hvivani.wordpress.com/1528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hvivani.wordpress.com/1528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hvivani.wordpress.com/1528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hvivani.wordpress.com/1528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hvivani.wordpress.com/1528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hvivani.wordpress.com/1528/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1528&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hvivani.com.ar/2013/05/18/posicionamiento-de-sitios-web-google-webmaster-tools/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8a1f31e01d7faf46342744b18ae8aa38?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hvivani</media:title>
		</media:content>
	</item>
		<item>
		<title>Fedora y Red con chipset nvidia MCP61</title>
		<link>http://hvivani.com.ar/2013/05/16/fedora-y-red-con-chipset-nvidia-mcp61/</link>
		<comments>http://hvivani.com.ar/2013/05/16/fedora-y-red-con-chipset-nvidia-mcp61/#comments</comments>
		<pubDate>Thu, 16 May 2013 12:04:40 +0000</pubDate>
		<dc:creator>elsupergomez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hvivani.com.ar/?p=1522</guid>
		<description><![CDATA[Fedora y Red con chipset nvidia MCP61 Si alguno tiene una placa base con chipset nVidia MCP61 y no le conecta la red, siguiendo el enlace encontrará como solucionarlo.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1522&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a title="Fedora y Red con chipset nvidia MCP61" href="http://elsupergomez.blogspot.com.ar/2013/05/fedora-y-red-mcp61.html" target="_blank">Fedora y Red con chipset nvidia MCP61</a></p>
<p>Si alguno tiene una placa base con chipset nVidia MCP61 y no le conecta la red, siguiendo el enlace encontrará como solucionarlo.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hvivani.wordpress.com/1522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hvivani.wordpress.com/1522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hvivani.wordpress.com/1522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hvivani.wordpress.com/1522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hvivani.wordpress.com/1522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hvivani.wordpress.com/1522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hvivani.wordpress.com/1522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hvivani.wordpress.com/1522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hvivani.wordpress.com/1522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hvivani.wordpress.com/1522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hvivani.wordpress.com/1522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hvivani.wordpress.com/1522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hvivani.wordpress.com/1522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hvivani.wordpress.com/1522/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1522&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hvivani.com.ar/2013/05/16/fedora-y-red-con-chipset-nvidia-mcp61/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8c89e54ef7562ec36669fc010057e829?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">elsupergomez</media:title>
		</media:content>
	</item>
		<item>
		<title>Añadir búsqueda en ComboBox / ComboBox Autocomplete</title>
		<link>http://hvivani.com.ar/2013/05/15/anadir-busqueda-en-combobox-combobox-autocomplete/</link>
		<comments>http://hvivani.com.ar/2013/05/15/anadir-busqueda-en-combobox-combobox-autocomplete/#comments</comments>
		<pubDate>Wed, 15 May 2013 17:59:15 +0000</pubDate>
		<dc:creator>hvivani</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://hvivani.com.ar/?p=1518</guid>
		<description><![CDATA[Dado que no es una opción que sea muy intuitiva para el usuario y que muchas veces es necesaria, acá va un ayuda memoria de como configurar la búsqueda o autocompletar cadenas a medida que se escribe dentro de un &#8230; <a href="http://hvivani.com.ar/2013/05/15/anadir-busqueda-en-combobox-combobox-autocomplete/">Sigue leyendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1518&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Dado que no es una opción que sea muy intuitiva para el usuario y que muchas veces es necesaria, acá va un ayuda memoria de como configurar la búsqueda o autocompletar cadenas a medida que se escribe dentro de un ComboBox:</p>
<p>Supongamos que <em>ya tenemos cargado un ComboBox con los datos de clientes</em>, debemos configurar, adicionalmente, 3 propiedades que harán posible esta funcionalidad, AutoCompleteCustomSource, AutoCompleteMode, AutoCompleteSource:</p>
<p><strong>AutoCompleteCustomSource</strong></p>
<p>Debemos definir una fuente de datos adicional que contenga todos los strings o cadenas donde se realizará la búsqueda. En este caso, llamamos a un método que nos devuelva todas las razones sociales de los clientes en una lista de strings.</p>
<pre>this.clienteComboBox.AutoCompleteCustomSource.AddRange(new Clientes().getListaRazonSocial().ToArray());</pre>
<p><strong>AutoCompleteMode</strong></p>
<p>Los modos mas utilizados son suggest y suggestappend, para completado sugerido o suger y añadir.</p>
<pre>this.clienteComboBox.AutoCompleteMode = AutoCompleteMode.Suggest;</pre>
<p><strong>AutoCompleteSource</strong></p>
<p>Definimos la fuente de datos cargada en el CustomSource.</p>
<pre>this.clienteComboBox.AutoCompleteSource = AutoCompleteSource.CustomSource;</pre>
<p>El resultado es algo así:</p>
<p><a href="http://hvivani.files.wordpress.com/2013/05/autocompletarcombobox.jpg"><img class="aligncenter size-full wp-image-1519" alt="autocompletarComboBox" src="http://hvivani.files.wordpress.com/2013/05/autocompletarcombobox.jpg?w=640"   /></a></p>
<p><strong>Vale aclarar que la propiedad DropDownStyle debe establecerse en DropDown en vez de DropDownList.</strong></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hvivani.wordpress.com/1518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hvivani.wordpress.com/1518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hvivani.wordpress.com/1518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hvivani.wordpress.com/1518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hvivani.wordpress.com/1518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hvivani.wordpress.com/1518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hvivani.wordpress.com/1518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hvivani.wordpress.com/1518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hvivani.wordpress.com/1518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hvivani.wordpress.com/1518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hvivani.wordpress.com/1518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hvivani.wordpress.com/1518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hvivani.wordpress.com/1518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hvivani.wordpress.com/1518/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1518&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hvivani.com.ar/2013/05/15/anadir-busqueda-en-combobox-combobox-autocomplete/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8a1f31e01d7faf46342744b18ae8aa38?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hvivani</media:title>
		</media:content>

		<media:content url="http://hvivani.files.wordpress.com/2013/05/autocompletarcombobox.jpg" medium="image">
			<media:title type="html">autocompletarComboBox</media:title>
		</media:content>
	</item>
		<item>
		<title>Deshabilitar SELinux / Turn Off SELinux</title>
		<link>http://hvivani.com.ar/2013/05/15/deshabilitar-selinux-turn-off-selinux/</link>
		<comments>http://hvivani.com.ar/2013/05/15/deshabilitar-selinux-turn-off-selinux/#comments</comments>
		<pubDate>Wed, 15 May 2013 17:14:20 +0000</pubDate>
		<dc:creator>hvivani</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Seguridad]]></category>

		<guid isPermaLink="false">http://hvivani.com.ar/?p=1515</guid>
		<description><![CDATA[Seguramente en alguna ocasión, se habrán encontrado con algún problema de seguridad y se han preguntado como deshabilitar SELinux, a fin de descartarlo como fuente del problema.  Es que por línea de comandos, solo veremos la opción de colocarlo en &#8230; <a href="http://hvivani.com.ar/2013/05/15/deshabilitar-selinux-turn-off-selinux/">Sigue leyendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1515&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Seguramente en alguna ocasión, se habrán encontrado con algún problema de seguridad y se han preguntado como deshabilitar <a href="http://es.wikipedia.org/wiki/SELinux" target="_blank">SELinux</a>, a fin de descartarlo como fuente del problema.  Es que por línea de comandos, solo veremos la opción de colocarlo en modo:</p>
<p>Enforcing:</p>
<pre># setenforce 1</pre>
<p>o en modo Permissive:</p>
<pre># setenforce 0</pre>
<p>Pero para deshabilitarlo totalmente, al igual que si queremos hacer persistente el cambio de modo, debemos tocar el archivo <strong>/etc/sysconfig/selinux </strong>y allí modificar la línea</p>
<pre>SELINUX=disabled</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hvivani.wordpress.com/1515/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hvivani.wordpress.com/1515/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hvivani.wordpress.com/1515/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hvivani.wordpress.com/1515/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hvivani.wordpress.com/1515/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hvivani.wordpress.com/1515/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hvivani.wordpress.com/1515/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hvivani.wordpress.com/1515/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hvivani.wordpress.com/1515/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hvivani.wordpress.com/1515/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hvivani.wordpress.com/1515/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hvivani.wordpress.com/1515/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hvivani.wordpress.com/1515/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hvivani.wordpress.com/1515/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1515&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hvivani.com.ar/2013/05/15/deshabilitar-selinux-turn-off-selinux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8a1f31e01d7faf46342744b18ae8aa38?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hvivani</media:title>
		</media:content>
	</item>
		<item>
		<title>Qmail &#8211; Problemas en envíos de mails &#8211; Lentitud respuesta al puerto 25</title>
		<link>http://hvivani.com.ar/2013/04/30/qmail-problemas-en-envios-de-mails-lentitud-respuesta-al-puerto-25/</link>
		<comments>http://hvivani.com.ar/2013/04/30/qmail-problemas-en-envios-de-mails-lentitud-respuesta-al-puerto-25/#comments</comments>
		<pubDate>Tue, 30 Apr 2013 12:58:58 +0000</pubDate>
		<dc:creator>matiasdanielmdq</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">http://hvivani.com.ar/?p=1470</guid>
		<description><![CDATA[El síntoma era que tardaba unos 5 minutos en contestar el telnet al puerto 25 Por lo que no se podían enviar mails , si recibir. El problema venia dado porque una de las rbls que usamos estaba inactiva (estaban &#8230; <a href="http://hvivani.com.ar/2013/04/30/qmail-problemas-en-envios-de-mails-lentitud-respuesta-al-puerto-25/">Sigue leyendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1470&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>El síntoma era que tardaba unos 5 minutos en contestar el telnet al puerto 25<br />
Por lo que no se podían enviar mails , si recibir.</p>
<p>El problema venia dado porque una de las rbls que usamos estaba inactiva (estaban en periodo de cierre, deja de existir).<br />
Las rbls se configuran dentro del archivo run en /var/qmail/supervise/qmail-smtpd</p>
<p>&#8220;-a rwl.dominio.com \</p>
<p>-r &#8220;rbl.dominio.com:listado en rbl local&#8221; \</p>
<p>-b -r &#8220;IM-96Y6-Bxxxxxxxxxxxxxxx33-36QEL.r.mail-abuse.com:blocked using Trend Micro RBL+, please see <a href="http://www.mail-abuse.com/cgi-bin/lookup?ip_address=%IP%&#038;#8221" rel="nofollow">http://www.mail-abuse.com/cgi-bin/lookup?ip_address=%IP%&#038;#8221</a>; \</p>
<p>-B -r &#8220;IM-96Y6-xxxxxxxxxxxxxxxxx-36QEL.q.mail-abuse.com:blocked using Trend Micro Network Anti-Spam see <a href="http://www.mail-abuse.com/cgi-bin/lookup?ip_address=%IP%&#038;#8221" rel="nofollow">http://www.mail-abuse.com/cgi-bin/lookup?ip_address=%IP%&#038;#8221</a>; \</p>
<p>-r cbl.abuseat.org \</p>
<p>-r combined.njabl.org \&#8221;</p>
<p>Cada lista es la que se pone seguido al parametro -r<br />
&#8220;combined.njabl.org&#8221; era la del problema,se bajó el servicio, se eliminó esa linea y se levantó el servicio nuevamente y su funcionamiento fue correcto.</p>
<p>qmailctl stop (baja servicio)<br />
vi /var/qmail/supervise/qmail-smtpd/run (edito las rbls)<br />
qmailctl start (levanta servicio)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hvivani.wordpress.com/1470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hvivani.wordpress.com/1470/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hvivani.wordpress.com/1470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hvivani.wordpress.com/1470/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hvivani.wordpress.com/1470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hvivani.wordpress.com/1470/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hvivani.wordpress.com/1470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hvivani.wordpress.com/1470/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hvivani.wordpress.com/1470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hvivani.wordpress.com/1470/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hvivani.wordpress.com/1470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hvivani.wordpress.com/1470/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hvivani.wordpress.com/1470/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hvivani.wordpress.com/1470/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1470&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hvivani.com.ar/2013/04/30/qmail-problemas-en-envios-de-mails-lentitud-respuesta-al-puerto-25/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/87f0765b68022d83610a92638eac6368?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">matiasdanielmdq</media:title>
		</media:content>
	</item>
		<item>
		<title>mysql: reparar tabla por consola / repair table from command line</title>
		<link>http://hvivani.com.ar/2013/04/29/mysql-reparar-tabla-por-consola-repair-table-from-command-line/</link>
		<comments>http://hvivani.com.ar/2013/04/29/mysql-reparar-tabla-por-consola-repair-table-from-command-line/#comments</comments>
		<pubDate>Mon, 29 Apr 2013 14:20:21 +0000</pubDate>
		<dc:creator>hvivani</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://hvivani.com.ar/?p=1467</guid>
		<description><![CDATA[Para checkear o reparar tablas de mysql por consola, debemos primero ingresar a la base de datos en cuestión: [factura@localhost ~]$ mysql -uusuario -ppassusuario Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL connection id is &#8230; <a href="http://hvivani.com.ar/2013/04/29/mysql-reparar-tabla-por-consola-repair-table-from-command-line/">Sigue leyendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1467&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Para checkear o reparar tablas de mysql por consola, debemos primero ingresar a la base de datos en cuestión:</p>
<pre>[factura@localhost ~]$ mysql -uusuario -ppassusuario
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.0.37 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql&gt; use dbclientes;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed</pre>
<p>Luego, podemos hacer un check sobre una tabla específica:</p>
<pre>mysql&gt; check table temp_ventas;
+------------------+-------+----------+------------------------------------------------------------------------+
| Table            | Op    | Msg_type | Msg_text                                                               |
+------------------+-------+----------+------------------------------------------------------------------------+
| temp_ventas      | check | error    | Table 'temp_ventas' is marked as crashed and should be repaired        | 
+------------------+-------+----------+------------------------------------------------------------------------+
1 row in set (0.00 sec)</pre>
<p>y con un resultado como este, realizar un repair:</p>
<pre>mysql&gt; repair table temp_ventas;
+------------------+--------+----------+--------------------------------------+
| Table            | Op     | Msg_type | Msg_text                             |
+------------------+--------+----------+--------------------------------------+
|      temp_ventas | repair | warning  | Number of rows changed from 13 to 14 | 
|      temp_ventas | repair | status   | OK                                   | 
+------------------+--------+----------+--------------------------------------+
2 rows in set (0.03 sec)

</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hvivani.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hvivani.wordpress.com/1467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hvivani.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hvivani.wordpress.com/1467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hvivani.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hvivani.wordpress.com/1467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hvivani.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hvivani.wordpress.com/1467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hvivani.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hvivani.wordpress.com/1467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hvivani.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hvivani.wordpress.com/1467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hvivani.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hvivani.wordpress.com/1467/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1467&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hvivani.com.ar/2013/04/29/mysql-reparar-tabla-por-consola-repair-table-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8a1f31e01d7faf46342744b18ae8aa38?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hvivani</media:title>
		</media:content>
	</item>
		<item>
		<title>cerrar conexiones TCP / killing tcp connections</title>
		<link>http://hvivani.com.ar/2013/04/25/cerrar-conexiones-tcp-killling-tcp-connections/</link>
		<comments>http://hvivani.com.ar/2013/04/25/cerrar-conexiones-tcp-killling-tcp-connections/#comments</comments>
		<pubDate>Thu, 25 Apr 2013 14:37:14 +0000</pubDate>
		<dc:creator>hvivani</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[Servidores]]></category>

		<guid isPermaLink="false">http://hvivani.com.ar/?p=1460</guid>
		<description><![CDATA[Si alguna vez tuvimos un servidor bajo ataque, seguramente hemos tenido la necesidad de cerrar o matar determinadas conexiones a nuestro servidor. Con un netstat, vemos la conexión, pero no tenemos opción de matarla. Para ello, podemos utilizar el comando &#8230; <a href="http://hvivani.com.ar/2013/04/25/cerrar-conexiones-tcp-killling-tcp-connections/">Sigue leyendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1460&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Si alguna vez tuvimos un servidor bajo ataque, seguramente hemos tenido la necesidad de cerrar o matar determinadas conexiones a nuestro servidor. Con un <a href="http://es.wikipedia.org/wiki/Netstat" target="_blank">netstat</a>, vemos la conexión, pero no tenemos opción de matarla.</p>
<p>Para ello, podemos utilizar el comando tcpkill, que viene en el paquete dsniff, junto con otras utilidades de línea de comandos.</p>
<p>Así que si no lo tenemos, primero, lo instalamos:</p>
<pre>$ sudo yum install dsniff</pre>
<p>Luego, podremos utilizar el tcpkill de diferentes maneras, por ejemplo:</p>
<pre># tcpkill −9 host www.gmail.com
# tcpkill −9 192.168.0.1
# tcpkill −9 host hvivani.com.ar and host www.google.com</pre>
<p>Se sienten mas tranquilos ahora ?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hvivani.wordpress.com/1460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hvivani.wordpress.com/1460/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hvivani.wordpress.com/1460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hvivani.wordpress.com/1460/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hvivani.wordpress.com/1460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hvivani.wordpress.com/1460/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hvivani.wordpress.com/1460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hvivani.wordpress.com/1460/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hvivani.wordpress.com/1460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hvivani.wordpress.com/1460/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hvivani.wordpress.com/1460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hvivani.wordpress.com/1460/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hvivani.wordpress.com/1460/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hvivani.wordpress.com/1460/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1460&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hvivani.com.ar/2013/04/25/cerrar-conexiones-tcp-killling-tcp-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8a1f31e01d7faf46342744b18ae8aa38?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hvivani</media:title>
		</media:content>
	</item>
		<item>
		<title>Utilizar Lista de Parámetros en Stored Procedure</title>
		<link>http://hvivani.com.ar/2013/04/25/utilizar-lista-de-parametros-en-stored-procedure/</link>
		<comments>http://hvivani.com.ar/2013/04/25/utilizar-lista-de-parametros-en-stored-procedure/#comments</comments>
		<pubDate>Thu, 25 Apr 2013 13:28:46 +0000</pubDate>
		<dc:creator>hvivani</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://hvivani.com.ar/?p=1457</guid>
		<description><![CDATA[Tal vez se encuentren en la situación, donde deban pasarle una lista variable de parámetros a un sp. Por ejemplo, supongamos que se seleccionan los id de cliente 1,27,345,73 y deben pasarse a un sp que debe consultar los datos &#8230; <a href="http://hvivani.com.ar/2013/04/25/utilizar-lista-de-parametros-en-stored-procedure/">Sigue leyendo <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1457&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Tal vez se encuentren en la situación, donde deban pasarle una lista variable de parámetros a un sp. Por ejemplo, supongamos que se seleccionan los id de cliente 1,27,345,73 y deben pasarse a un sp que debe consultar los datos de los id de cliente seleccionados.</p>
<p>Tenemos varias soluciones posibles, inclusive, en SQL Server 2008 es posible solucionarlo utilizando un xml pasado por parámetro, pero vamos a aproximar una solución mas general, que nos sirva para diferentes motores.</p>
<p>Lo que hacemos es crear una función, a la que le pasamos la lista de ids separada por comas, y nos devolverá los id en una tabla que utilizaremos para filtrar los ids en la consulta de clientes.</p>
<p><strong>La función:</strong></p>
<pre>CREATE FUNCTION intlist_to_tbl
(@list nvarchar(MAX))
RETURNS @tbl TABLE (number int NOT NULL) 
AS
BEGIN
   DECLARE @pos        int,
           @nextpos    int,
           @valuelen   int

   SELECT @pos = 0, @nextpos = 1

   WHILE @nextpos &gt; 0
   BEGIN
      SELECT @nextpos = charindex(',', @list, @pos + 1)
      SELECT @valuelen = CASE WHEN @nextpos &gt; 0
                              THEN @nextpos
                              ELSE len(@list) + 1
                         END - @pos - 1
      INSERT @tbl (number)
         VALUES (convert(int, substring(@list, @pos + 1, @valuelen)))
      SELECT @pos = @nextpos
   END
   RETURN
END</pre>
<p><strong>El procedimiento:</strong></p>
<pre>CREATE PROCEDURE consultarListaClientes 
@ids varchar(50) 
AS
   SELECT id, razonsocial
   FROM   clientes 
   inner join intlist_to_tbl(@ids) i ON clientes.id = i.number</pre>
<p><strong>La llamada:</strong></p>
<pre>EXEC consultarListaClientes '1, 27, 345, 73'</pre>
<p>Vale aclarar que esta solución no es la mas rápida, en terminos de velocidad, si la cantidad de ids a consultar es muy grande, será lenta, pero nos servirá para resolver muchas situaciones simples.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hvivani.wordpress.com/1457/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hvivani.wordpress.com/1457/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hvivani.wordpress.com/1457/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hvivani.wordpress.com/1457/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hvivani.wordpress.com/1457/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hvivani.wordpress.com/1457/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hvivani.wordpress.com/1457/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hvivani.wordpress.com/1457/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hvivani.wordpress.com/1457/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hvivani.wordpress.com/1457/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hvivani.wordpress.com/1457/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hvivani.wordpress.com/1457/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hvivani.wordpress.com/1457/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hvivani.wordpress.com/1457/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hvivani.com.ar&#038;blog=28117918&#038;post=1457&#038;subd=hvivani&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hvivani.com.ar/2013/04/25/utilizar-lista-de-parametros-en-stored-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/8a1f31e01d7faf46342744b18ae8aa38?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hvivani</media:title>
		</media:content>
	</item>
	</channel>
</rss>
