<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2spanishfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Blog tech-nico.com</title>
	
	<link>http://www.tech-nico.com/blog</link>
	<description>Informacion Tecnológica, Cultural y de la vida misma.!  Programacion Web: Ajax / XML / Php / Mysql / Flash MX / ActionScript / Javascript / CSS - WISP: Wi-Fi / Mikrotik / Ubiquiti / Routerboards / Seguridad.....</description>
	<lastBuildDate>Thu, 26 Apr 2012 20:41:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/tech-nico" /><feedburner:info uri="tech-nico" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:feedFlare href="http://add.my.yahoo.com/content?lg=es&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Ftech-nico" src="http://eur.i1.yimg.com/eur.yimg.com/i/es/my/addto1.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.feedness.com/alta/http://feeds.feedburner.com/tech-nico" src="http://www.feedness.com/ayuda/wp-content/square_b_sh_feed.gif">Subscribe with Feedness</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftech-nico" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/tech-nico" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftech-nico" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Ftech-nico" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftech-nico" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftech-nico" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Ftech-nico" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftech-nico" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:browserFriendly>www.tech-nico.com/blog</feedburner:browserFriendly><item>
		<title>Hacer tunel ssh sin instalar putty</title>
		<link>http://feedproxy.google.com/~r/tech-nico/~3/UiJJEWcjaAE/</link>
		<comments>http://www.tech-nico.com/blog/hacer-tunel-ssh-sin-instalar-putty/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 20:41:27 +0000</pubDate>
		<dc:creator>soporte</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[redes]]></category>

		<guid isPermaLink="false">http://www.tech-nico.com/blog/?p=315</guid>
		<description><![CDATA[Hoy tuve la necesidad de armar un tunel SSH en Mac Lion. Se que hay una version de Putty para UNIX, por lo que estimo debería funcionar tanto en Mac como en Linux. Para salir de un apuro sin instalar Putty &#8230; <a href="http://www.tech-nico.com/blog/hacer-tunel-ssh-sin-instalar-putty/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hoy tuve la necesidad de armar un tunel SSH en Mac Lion. Se que hay una version de Putty para UNIX, por lo que estimo debería funcionar tanto en Mac como en Linux.<br />
Para salir de un apuro sin instalar Putty lo que podemos hacer es lo siguiente:</p>
<blockquote>
<pre>sudo ssh -2 201.234.33.58 -l TuUsuario -p 22 -i ~/Llave.ppk -L 127.0.0.1:8080:127.0.0.1:80</pre>
</blockquote>
<p>nota: el ssh viene instalado de forma nativa en todas las plataformas UNIX.</p>
<p><strong>Paso a paso:</strong></p>
<p><strong>1)  -2</strong> Fuerza a usar protocolo version 2<br />
<strong>2)  -l</strong> (ele) Nombre de Usuario remoto<br />
<strong>3)  -p</strong> Numero de puerto<br />
<strong>4)  -i ~/Llave.ppk</strong>. Esto significa, que busque la llave en el directorio del usuario logueado. hay que poner la llave con permisos de lectura/escritura para el propietario. sudo chmod 600 Llave.ppk.<br />
<strong>5) -L 127.0.0.1:8080:127.0.0.1:80</strong>. Es para hacer un port forwarding (si tenemos que utilizar una intranet por ejemplo). IpLocal:PuertoLocal:IpDestino:PuertoDestino.</p>
<p>Para mas detalles ejecutamos: <strong>man ssh<br />
</strong><br />
Que sirva de ayuda memoria.<br />
_____<br />
Nicolas<br />
<a href="http://www.tech-nico.com/blog">tech-nico.com/blog</a></p>
<img src="http://feeds.feedburner.com/~r/tech-nico/~4/UiJJEWcjaAE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tech-nico.com/blog/hacer-tunel-ssh-sin-instalar-putty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.tech-nico.com/blog/hacer-tunel-ssh-sin-instalar-putty/</feedburner:origLink></item>
		<item>
		<title>Clonar Mac-Address en AirOS Ubiquiti</title>
		<link>http://feedproxy.google.com/~r/tech-nico/~3/zI-BNSQ8OXc/</link>
		<comments>http://www.tech-nico.com/blog/clonar-mac-address-en-airos-ubiquiti/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 19:27:01 +0000</pubDate>
		<dc:creator>soporte</dc:creator>
				<category><![CDATA[redes]]></category>
		<category><![CDATA[trucos]]></category>

		<guid isPermaLink="false">http://www.tech-nico.com/blog/?p=313</guid>
		<description><![CDATA[Un colaborador del foro ISPARG (David Aldret) nos resolvió el gran problema de poder clonar un Mac address en AirOS y que se mantenga el cambio luego de reiniciar. Por que clonar un mac?. Se quema un equipo; y muchos clientes tienen &#8230; <a href="http://www.tech-nico.com/blog/clonar-mac-address-en-airos-ubiquiti/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Un colaborador del foro ISPARG (David Aldret) nos resolvió el gran problema de poder clonar un Mac address en AirOS y que se mantenga el cambio luego de reiniciar.</p>
<p><strong>Por que clonar un mac?.</strong> Se quema un equipo; y muchos clientes tienen fijado el mac del AP. Si hubiera tenido este tip no habria ido casa por casa <img src='http://www.tech-nico.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Hay que entrar al equipo por SSH o bien por el admin.cgi y pegarle este codigo</p>
<blockquote><p>echo &#8220;ifconfig ath0 down; ifconfig ath0 hw ether MAC; ifconfig ath0<br />
up&#8221; &gt; /etc/persistent/rc.poststart; chmod +x /etc/persistent/<br />
rc.poststart; cfgmtd -w -p /etc/; reboot</p></blockquote>
<p>___________________<br />
Nicolas <a href="http://www.tech-nico.com/blog">tech-nico.com</a></p>
<img src="http://feeds.feedburner.com/~r/tech-nico/~4/zI-BNSQ8OXc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tech-nico.com/blog/clonar-mac-address-en-airos-ubiquiti/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.tech-nico.com/blog/clonar-mac-address-en-airos-ubiquiti/</feedburner:origLink></item>
		<item>
		<title>Nuevo Firmware Ubiquiti AirMax v5.5</title>
		<link>http://feedproxy.google.com/~r/tech-nico/~3/KyexvrHmBRs/</link>
		<comments>http://www.tech-nico.com/blog/nuevo-firmware-ubiquiti-airmax-v5-5/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 04:19:07 +0000</pubDate>
		<dc:creator>soporte</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[redes]]></category>

		<guid isPermaLink="false">http://www.tech-nico.com/blog/?p=306</guid>
		<description><![CDATA[Una excelente noticia para todos los WISP, el nuevo firmware v5.5 de la serie &#8220;M&#8221; Airmax trae muchas sorpresas y cambios muy solicitados. Entre ellas el poder agregar infinitos MAC address en un ACL y poder comentarlos o desactivarlos como &#8230; <a href="http://www.tech-nico.com/blog/nuevo-firmware-ubiquiti-airmax-v5-5/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Una excelente noticia para todos los WISP, el nuevo firmware v5.5 de la serie &#8220;M&#8221; Airmax trae muchas sorpresas y cambios muy solicitados. Entre ellas el poder agregar infinitos MAC address en un ACL y poder comentarlos o desactivarlos como lo hacemos con <a href="http://www.mikrotik.com/download.html">RouterOS</a>. Tambien tenemos la actualizacion del kernel a una version superior.<br />
Ademas también tenemos ahora la posiblidad de usar Airmax Client en todos los productos 802.11 a/b/g.</p>
<p><a href="http://www.ubnt.com/download"><img class="alignnone size-medium wp-image-308" title="ubiquitiv5.5" src="http://www.tech-nico.com/blog/wp-content/uploads/2012/04/ubiquitiv5.5-300x163.png" alt="" width="300" height="163" /></a></p>
<p>Creo que mas muchas de las funcionalidades agregadas son las que faltaban para que mas de uno se decida a utilizar <a href="http://ubnt.com">Ubiquiti</a>, e incluso migrar hacia ubiquiti.</p>
<p><strong>Entre las mejoras destacadas tenemos:</strong></p>
<pre>- Improvement: <strong>Linux kernel update to 2.6.32 version</strong>
- Improvement: AirMax performance in large PtMP networks
- Improvement: AirSync performance in PtMP networks
- Improvement: <strong>ACL List: Dynamic list now allows instant changes</strong> (no restart or dropped connections required)
- Improvement: <strong>ACL List: MAC list limit increased from 64 to unlimited</strong>
- Improvement: <strong>ACL List: Ability to add comments to MACs</strong>
- Improvement: ACL List: Ability to enable/disable a MAC without removing it from the list
- Improvement: DFS functionality improvement according FCC/ETSI requirements
- Improvement: Report Horizontal / Vertical antenna instead of "Chain 0 / Chain 1"
- Improvement: New look for wireless mode configuration
- Improvement: Various WEB GUI tweaks, changes, improvements
- Improvement: Send NASID in Access-Request packet.
- Improvement: Add internal speed test tool to DMZ exemption ports
- Improvement: Hide Discovery Tool for read-only account
- Improvement: Extension for Port Forward configuration. Allow to specify Public IP</pre>
<p><strong>Entre las nuevas funcionalidades:</strong></p>
<pre>- New: Management VLAN support
- New: Advanced network settings configuration mode
- New: RADIUS MAC authentication
- New: Low TX power mode support for all M series models
- New: AirMax client support for 802.11 a/b/g products
- New: DHCP relay functionality in Router/SOHO Router mode
- New: UPnP server support in Router/SOHO Router modes
- New: Ability to Block WAN Access in SOHO Router mode
- New: Fallback IP for PPPoE client
- New: 3/8 MHz channel width support for M900
- New: 8/30 MHz channel width support for M2/M5
- New: 8/25 MHz channel width support for M3
- New: 25 MHz channel width support for M365
- New: Full range of channel width options in Compliance mode
- New: Max allowed MTU size for newer HW revision models is 2024 bytes
- New: Make Device name the Product Model by default
- New: Separate throughput graphs for LAN0/LAN1 interfaces
- New: Option to create support info file with ping watchdog before device reboot
- New: Enable/Disable CDP option in Device Discovery section
- New: Check for existing uploaded firmware image when opening System page
- New: Prepare for IPv6 support
- New: Traffic shaper for ingress traffic
- New: Notification for software updates
- New: Add PPPoE service name configuration
- New: Kernel patches for SIP conntrack/NAT support
- New: Show AirMax priority in Main page for Station mode</pre>
<p><strong>Fixes:</strong></p>
<pre>- Fix: Configuration change causes device with a long uptime to lock up
- Fix: Device stops passing traffic after some time and requires a reboot or "kick" to work again
- Fix: Dynamic DNS update after PPPoE session initialization
- Fix: Station list is empty when there are few stations associated
- Fix: Port ID is mandatory in CDP packet
- Fix: STA-WDS in bridge mode is passing back multicast/broadcast packets
- Fix: "Antenna Gain" and "Cable Loss" fields are locked for LocoM900 with external antenna
- Fix: Incorrect connection time reporting
- Fix: Timestamps reset because of stuck beacon. Causes other manufacturers' (i.e. Tranzeo) devices to re-associate.
- Fix: Can't launch airView with HTTPS enabled on IE8
- Fix: Traceroute fails to DNS host with multiple addresses</pre>
<p>__________________<br />
Nicolas <a href="http://tech-nico.com/blog">tech-nico.com</a></p>
<img src="http://feeds.feedburner.com/~r/tech-nico/~4/KyexvrHmBRs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tech-nico.com/blog/nuevo-firmware-ubiquiti-airmax-v5-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.tech-nico.com/blog/nuevo-firmware-ubiquiti-airmax-v5-5/</feedburner:origLink></item>
		<item>
		<title>Recuperando Std exception old lock file terminating – mongodb</title>
		<link>http://feedproxy.google.com/~r/tech-nico/~3/5ZSpcF4GGIk/</link>
		<comments>http://www.tech-nico.com/blog/recuperando-std-exception-old-lock-file-terminating-mongodb/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 14:08:51 +0000</pubDate>
		<dc:creator>soporte</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.tech-nico.com/blog/?p=296</guid>
		<description><![CDATA[Cuando un servidor tiene un apagado forzoso (se apaga por un corte de energia) o por alguna otra razón, es probable al querer iniciar nuevamente la base de datos /etc/init.d/mongodb start obtengamos el error: &#8220;exception in initAndListen std::exception: old lock file, &#8230; <a href="http://www.tech-nico.com/blog/recuperando-std-exception-old-lock-file-terminating-mongodb/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Cuando un servidor tiene un apagado forzoso (se apaga por un corte de energia) o por alguna otra razón, es probable al querer iniciar nuevamente la base de datos <strong>/etc/init.d/mongodb start</strong> obtengamos el error: &#8220;<em>exception in initAndListen std::exception: old lock file, terminating&#8221;</em> en el el log de mongodb.</p>
<p>Para resolverlo simplemente eliminamos el archivo  <strong>/var/lib/mongodb/mongod.lock.<br />
</strong>__________________<br />
Nicolas <a href="http://tech-nico.com/blog">tech-nico.com</a></p>
<img src="http://feeds.feedburner.com/~r/tech-nico/~4/5ZSpcF4GGIk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tech-nico.com/blog/recuperando-std-exception-old-lock-file-terminating-mongodb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.tech-nico.com/blog/recuperando-std-exception-old-lock-file-terminating-mongodb/</feedburner:origLink></item>
		<item>
		<title>Como refrigerar un Azbox HD Bravoo</title>
		<link>http://feedproxy.google.com/~r/tech-nico/~3/4-2IMJqi7iE/</link>
		<comments>http://www.tech-nico.com/blog/como-refrigerar-un-azbox-hd-bravoo/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 22:04:33 +0000</pubDate>
		<dc:creator>soporte</dc:creator>
				<category><![CDATA[trucos]]></category>

		<guid isPermaLink="false">http://www.tech-nico.com/blog/?p=288</guid>
		<description><![CDATA[Hoy decidí modificar mi equipo de FTA (Free to Air). Al parecer en lugares donde corre poco aire los equipos levantan temperatura y terminan apagándose o destellando la pantalla. Lo que hice fue comprar un Cooler de PC marca NogaNet ($ 15 pesos). Mientras &#8230; <a href="http://www.tech-nico.com/blog/como-refrigerar-un-azbox-hd-bravoo/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hoy decidí modificar mi equipo de FTA (Free to Air).</p>
<p>Al parecer en lugares donde corre poco aire los equipos levantan temperatura y terminan apagándose o destellando la pantalla.</p>
<p>Lo que hice fue comprar un Cooler de PC marca NogaNet ($ 15 pesos). Mientras sean de 12v. Cualquier marca sirve.</p>
<p>Aqui va el resultado en imagenes:</p>
<p><a href="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/IMG00410-20111224-1320.jpg"><img class="alignnone size-medium wp-image-289" title="IMG00410-20111224-1320" src="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/IMG00410-20111224-1320-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/IMG00411-20111224-1321.jpg"><img class="alignnone size-medium wp-image-290" title="IMG00411-20111224-1321" src="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/IMG00411-20111224-1321-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/IMG00414-20111224-1323-copia.jpg"><img class="alignnone size-medium wp-image-291" title="IMG00414-20111224-1323 copia" src="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/IMG00414-20111224-1323-copia-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/IMG00415-20111224-1429-copia.jpg"><img class="alignnone size-medium wp-image-292" title="IMG00415-20111224-1429 copia" src="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/IMG00415-20111224-1429-copia-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/IMG00419-20111224-1515.jpg"><img class="alignnone size-medium wp-image-293" title="IMG00419-20111224-1515" src="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/IMG00419-20111224-1515-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Feliz Navidad!!!!! <img src='http://www.tech-nico.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
______________________<br />
Nicolas <a href="http://tech-nico.com/blog">Tech-nico.com</a></p>
<img src="http://feeds.feedburner.com/~r/tech-nico/~4/4-2IMJqi7iE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tech-nico.com/blog/como-refrigerar-un-azbox-hd-bravoo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.tech-nico.com/blog/como-refrigerar-un-azbox-hd-bravoo/</feedburner:origLink></item>
		<item>
		<title>[Solucionado] Error en Thundercache (mongodb) luego de la instalación (Uncaught exception ‘MongoCursorException’ )</title>
		<link>http://feedproxy.google.com/~r/tech-nico/~3/fMHiXTfQkcY/</link>
		<comments>http://www.tech-nico.com/blog/solucionado-error-en-thundercache-mongodb-luego-de-la-instalacion-uncaught-exception-mongocursorexception/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 16:18:53 +0000</pubDate>
		<dc:creator>soporte</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[thundercache]]></category>

		<guid isPermaLink="false">http://www.tech-nico.com/blog/?p=282</guid>
		<description><![CDATA[Desde hace un tiempo que estoy intentando instalar ThunderCache en Ubuntu Server 11.04 64bits. La cuestión es que siempre que finalizaba la instalación se rompía algo, y perdía el el acceso por web al ThunderCenter. A muchos les ha pasado luego de instalar las actualizaciones o bien hacer &#8230; <a href="http://www.tech-nico.com/blog/solucionado-error-en-thundercache-mongodb-luego-de-la-instalacion-uncaught-exception-mongocursorexception/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Desde hace un tiempo que estoy intentando instalar ThunderCache en Ubuntu Server 11.04 64bits. La cuestión es que siempre que finalizaba la instalación se rompía algo, y perdía el el acceso por web al ThunderCenter. A muchos les ha pasado luego de instalar las actualizaciones o bien hacer upgrade a las versiones mas nuevas.</p>
<p><strong>Mas en detalle</strong><br />
Luego de terminar con la instalación de ThunderCache (bin 846) con ThunderCenter 3.4.4 hay que ingresar a http://ipthunder:82     usuario: admin     password:admin</p>
<p>La primer pantalla es la de configuración, algo como:<a href="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/thunder_network.jpg"><img class="alignnone size-full wp-image-283" title="thunder_network" src="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/thunder_network.jpg" alt="" width="930" height="513" /></a></p>
<p>&nbsp;</p>
<p>Al presionar en &lt;Confirm&gt; nos obliga a reiniciar el servidor. La gran sorpresa es que luego del reinicio, no podemos ingresar mas por web. Si bien la IP responde, el apache no!!.</p>
<p>Mirando en el log del apache nos vamos a encontrar con este error:</p>
<blockquote><p># tail /var/log/apache2/error.log</p></blockquote>
<p><strong>Uncaught exception &#8216;MongoCursorException&#8217; with message &#8216;getFile(): bad file number value (corrupt db?): run repair&#8217; in /usr/local/tcenter/www/index.php:15\nStack trace:\n#0 /usr/local/tcenter/www/index.php(15): MongoCollection-&gt;findOne(Array)\n#1 {main}\n thrown in /usr/local/tcenter/www/index.php on line 15</strong></p>
<p>Para resolverlo seguimos estos pasos:</p>
<pre>1 #  /etc/init.d/thunder restart
2 #  apache2ctl stop
3 #  /etc/init.d/mongo stop
4 #  /etc/init.d/mongodb stop
5 #  mongod --dbpath /var/lib/mongodb --config /etc/mongodb.conf --repair
6 #  chown mongodb  /var/lib/mongodb -R
7 #  /etc/init.d/mongodb start
8 #  apache2ctl start</pre>
<p>El funcionamiento es impresionante, realmente vale la pena instalarlo en redes grandes.<br />
<a href="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/thundercache_realtime.png"><img class="alignnone size-full wp-image-284" title="thundercache_realtime" src="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/thundercache_realtime.png" alt="" width="803" height="777" /><br />
</a></p>
<p>Las Barras de progreso en verde son descargas de objetos cacheados. Y las azulcitas son objetos que esta almacenando en el cache.</p>
<p>Que tengan unas muy felices fiestas!<br />
______________________<br />
Nicolas <a href="http://tech-nico.com/blog">tech-nico.com/blog</a></p>
<img src="http://feeds.feedburner.com/~r/tech-nico/~4/fMHiXTfQkcY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tech-nico.com/blog/solucionado-error-en-thundercache-mongodb-luego-de-la-instalacion-uncaught-exception-mongocursorexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.tech-nico.com/blog/solucionado-error-en-thundercache-mongodb-luego-de-la-instalacion-uncaught-exception-mongocursorexception/</feedburner:origLink></item>
		<item>
		<title>Native instrument Audio 8 DJ | micro cortes y ruidos raros</title>
		<link>http://feedproxy.google.com/~r/tech-nico/~3/73TgtCVxkwk/</link>
		<comments>http://www.tech-nico.com/blog/native-instrument-audio-8-dj-micro-cortes-y-ruidos-raros/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 14:36:44 +0000</pubDate>
		<dc:creator>soporte</dc:creator>
				<category><![CDATA[trucos]]></category>

		<guid isPermaLink="false">http://www.tech-nico.com/blog/?p=276</guid>
		<description><![CDATA[Esto va para todos aquellos que sufren problemas con la placa Audio 8 y Traktor. El problema esta en los drivers que son bastante inestables, probé: 3.0.1 3.0.0 2.9.8 beta (ya no están mas en el sitio de NI) 2.0.15 Y para mi &#8230; <a href="http://www.tech-nico.com/blog/native-instrument-audio-8-dj-micro-cortes-y-ruidos-raros/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Esto va para todos aquellos que sufren problemas con la placa Audio 8 y Traktor.<br />
El problema esta en los <a href="http://co.native-instruments.com/?id=freeupdates">drivers</a> que son bastante inestables, probé:</p>
<ul>
<li>3.0.1</li>
<li>3.0.0</li>
<li>2.9.8 beta (ya no están mas en el sitio de NI)</li>
<li><strong>2.0.15</strong></li>
</ul>
<div>Y para mi sorpresa los únicos que reproducen sin micro pausas en el audio son casi los mas viejos, la version 2.0.15; pero tampoco son perfectos. En mi caso se escuchan unos pequeños ruidos aleatorios, son ruidos bastante sutiles pero en fin ruidos que no debería hacer por el valor del equipamiento. Hoy encontré ademas algunos tips interesantes en el foro oficial de Native Instrument, que consisten en modificar la prioridad de los IRQ (interrupciones) para dar prioridad al IRQ10 que es la interrupción que maneja la parte de audio. También es conveniente desactivar interfaces Wireless, Ethernet, Bluethoot. Usar la Notebook con el mayor rendimiento posible de energía. (No usar dispositivos USB innecesarios). Etc.</div>
<div>A continuación, editar el registro para Windows 7 o Vista</div>
<div>
<pre>1. Ir a Inicio -&gt; Ejecutar -&gt; Escribir "Regedit" (sin comillas) -&gt; Press Enter

Esto abrirá el registro

2. Ahora en la izquierda del Regedit muévase hasta: 

HKEY_LOCAL_MACHINE\SYSTEM\Curr entControlSet\Control\Priority Control

Aquí debería ver 2 filas: "Predeterminado" y "Win32PrioritySeparation"

3. Click derecho en el area blanca de la derecha y click en

Nuevo -&gt; Valor de DWORD (32-bit) |  (como podrás ver)

Ahora veras una nueva fila!

4. Click derecho en esta nueva fila y elegir renombrar.

Renombrar como "IRQ10Priority" sin comillas (escribir Exactamente como esta!)

Presionar &lt;Enter&gt;.

5. Ahora que lo has renombrado, hacer doble click en este y veras una área de texto con el valor 0 en su interior.  

Cambiar el 0 por 1, &lt;dejar el resto igual, y click en ACEPTAR&gt;

6. Cierre el registro y reinicie la computadora!</pre>
</div>
<div>Foro Oficial: <a href="http://www.native-instruments.com/forum/showthread.php?t=125004">http://www.native-instruments.com/forum/showthread.php?t=125004<br />
</a></div>
<div><a href="http://www.native-instruments.com/forum/showthread.php?t=125004"> </a></div>
<div>Luego en el administrador de dispositivos, hay que destildar una opcion en los puertos USB, haciendo doble click en cada dispositivo llamado &#8220;Controlador raíz USB&#8221;.</div>
<div>Nos movemos a la solapa &#8220;Administración de Energía&#8221; y finalmente destildar la opción &#8221;<strong>Permitir que el equipo apague este dispositivo para ahorrar energía</strong>&#8220;.</div>
<div><a href="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/usb_energia.png"><img class="alignnone size-full wp-image-277" title="usb_energia" src="http://www.tech-nico.com/blog/wp-content/uploads/2011/12/usb_energia.png" alt="" width="648" height="284" /></a></div>
<div>Todavía sigo con esos pequeños ruidos. Espero que alguien tenga un tip para eliminarlos o bien salga un driver como la gente. <img src='http://www.tech-nico.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> . Eso fue todo amigos.<br />
Que tengan una muy Feliz Navidad y prospero año nuevo!!!_____________________<br />
Nicolas <a href="http://tech-nico.com/blog ">tech-nico.com/blog </a></p>
</div>
<img src="http://feeds.feedburner.com/~r/tech-nico/~4/73TgtCVxkwk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tech-nico.com/blog/native-instrument-audio-8-dj-micro-cortes-y-ruidos-raros/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.tech-nico.com/blog/native-instrument-audio-8-dj-micro-cortes-y-ruidos-raros/</feedburner:origLink></item>
		<item>
		<title>Crontab y PHP: Enviar logs, procesos, o backups via mail</title>
		<link>http://feedproxy.google.com/~r/tech-nico/~3/aoC7DTl0uoc/</link>
		<comments>http://www.tech-nico.com/blog/crontab-y-php-enviar-logs-procesos-o-backups-via-mail/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 15:17:00 +0000</pubDate>
		<dc:creator>soporte</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.tech-nico.com/blog/?p=270</guid>
		<description><![CDATA[Algo que surgió anoche en la clase de Linux (Crontab), fue casualmente &#8220;poder hacer un backup automático y que lo envie a nuestro mail&#8221;. Todavía no aprendimos Bash Scripting / Pyton / Perl o bien para el que esta mi situación, tenemos la alternativa de ejecutar un script PHP. &#8230; <a href="http://www.tech-nico.com/blog/crontab-y-php-enviar-logs-procesos-o-backups-via-mail/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Algo que surgió anoche en la clase de Linux (Crontab), fue casualmente &#8220;poder hacer un backup automático y que lo envie a nuestro mail&#8221;. Todavía no aprendimos Bash Scripting / Pyton / Perl o bien para el que esta mi situación, tenemos la alternativa de ejecutar un script PHP.</p>
<p>Inicialmente este script hacia un dump de la base de datos mysql y enviaba el archivo .sql via mail. Aca lo posteo con algunas modificaciones para que cada uno lo adapte a sus necesidades.<br />
En este ejemplo vamos a imprimir el syslog (tail syslog) y enviarlo via mail como archivo adjunto.<br />
La funcion en PHP para ejecutar un comando Linux es:</p>
<blockquote><p>system(&#8220;tu comando&#8221;);            // Ej: <strong> system(&#8220;ps -fea&#8221;);<br />
*En este ejemplo listamos los procesos.</strong></p></blockquote>
<p>Sabiendo esto, el código del script PHP podría ser algo asi:</p>
<pre>&lt;?php
//// Script: Nicolas Daitsch 24 de noviembre de 2011
//// http://tech-nico.com/blog

////////////// CONFIGURACION //////////////////////////
$sendto = "Webmaster &lt;tuemail@gmail.com&gt;"; // DESTINO
$sendfrom = "Log Diario Servidor &lt;logs@tuempresa.com&gt;"; // ORIGEN
$sendsubject = "Log Diario mi servidor"; // ASUNTO
$bodyofemail = "Aca esta el log que genero el Crontab."; // MENSAJE
$COMANDO_LINUX = "tail /var/log/syslog"; // COMANDO
////////////////////////////////////////////////////////

    $backupfile = "syslog_". date("Y-m-d") . '.txt';
    system($COMANDO_LINUX &gt; $backupfile);
    include('Mail.php');
    include('Mail/mime.php');

    $message = new Mail_mime();
    $text = "$bodyofemail";
    $message-&gt;setTXTBody($text);
    $message-&gt;AddAttachment($backupfile);
    $body = $message-&gt;get();
    $extraheaders = array("From"=&gt;"$sendfrom", "Subject"=&gt;"$sendsubject");
    $headers = $message-&gt;headers($extraheaders);
    $mail = Mail::factory("mail");
    $mail-&gt;send("$sendto", $headers, $body);

    //unlink($backupfile);
?&gt;</pre>
<p>Editamos la sección que dice //// CONFIGURACION y escribimos nuestros valores.<br />
Luego instalamos el modulo PEAR para envio de mails con PHP:</p>
<blockquote><p>#  apt-get  install  php-mail   php-mail-mime   php-mail-mimedecode</p></blockquote>
<p>Editamos el Crontab:</p>
<blockquote><p># crontab -e</p></blockquote>
<p>Agregamos esta linea al final, guardamos y salimos:</p>
<pre>08 12 * * * /usr/bin/php -f /var/www/backup.php &gt; /root/cronerrors.txt 2&gt;&amp;1</pre>
<p>Explicamos lo que hace esta linea:</p>
<ol>
<li>(08 12 * * *) Todos los dias a las 12:08 PM</li>
<li>(/usr/bin/php -f) Ruta del interprete PHP en Debian/Ubuntu. Flag &#8220;-f&#8221; Ejecutar un archivo PHP.</li>
<li>(/var/www/log_script/log_send.php) Ruta del Script</li>
<li>(&gt; /root/cronerrors.txt 2&gt;&amp;1) Redirecciono la salida de error hacia un archivo de texto en /root. Esto también puede ser /home/usuario/errores.log</li>
</ol>
<div><a title="Aqui.." href="http://tech-nico.com/blog/log_script.rar" target="_blank">Descargamos</a> los archivos necesarios para el funcionamiento. Y los ubicamos en la ruta /var/www/.</div>
<div>___________________</div>
<div>Nicolas <a href="http://www.tech-nico.com/blog/enviar-logs-procesos-o-backups-via-mail" target="_blank">tech-nico.com/blog </a></div>
<img src="http://feeds.feedburner.com/~r/tech-nico/~4/aoC7DTl0uoc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tech-nico.com/blog/crontab-y-php-enviar-logs-procesos-o-backups-via-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.tech-nico.com/blog/crontab-y-php-enviar-logs-procesos-o-backups-via-mail/</feedburner:origLink></item>
		<item>
		<title>Configurar OpenVPN Roadwarrior en Debian 6 y Windows</title>
		<link>http://feedproxy.google.com/~r/tech-nico/~3/A_mW-E9bqeM/</link>
		<comments>http://www.tech-nico.com/blog/configurar-openvpn-roadwarrior-con-debian-6-y-windows/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 04:51:09 +0000</pubDate>
		<dc:creator>soporte</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.tech-nico.com/blog/?p=253</guid>
		<description><![CDATA[Vamos a configurar OpenVPN del modo RoadWarrior con PKI (Public Key Infraestructure) Un claro ejemplo para explicar el modo RoadWarrior: Son 1 o mas clientes que se conectan (autenticándose) de manera remota desde una PC hacia nuestro &#8220;linux OpenVPN Server&#8221;, &#8230; <a href="http://www.tech-nico.com/blog/configurar-openvpn-roadwarrior-con-debian-6-y-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Vamos a configurar OpenVPN del modo RoadWarrior con PKI (Public Key Infraestructure)</strong><br />
Un claro ejemplo para explicar el modo RoadWarrior: Son 1 o mas clientes que se conectan (autenticándose) de manera remota desde una PC hacia nuestro &#8220;linux OpenVPN Server&#8221;, y utilizando internet como medio de acceso para ingresar de manera segura a los recursos de la empresa, como serian, un servidor de aplicaciones, mail, recursos compartidos, etc.</p>
<p><a href="http://www.tech-nico.com/blog/wp-content/uploads/2011/11/Remote-Access.jpg"><img class="alignnone size-full wp-image-255" title="Remote Access" src="http://www.tech-nico.com/blog/wp-content/uploads/2011/11/Remote-Access.jpg" alt="" width="555" height="136" /></a></p>
<p>Comenzamos con la instalacion:</p>
<p><strong>1) Instalamos OpenVPN</strong></p>
<blockquote><p># apt-get install openvpn</p></blockquote>
<p><strong>2)  comenzamos generando los certificados:</strong></p>
<blockquote><p>01. #  cp -a /usr/share/doc/openvpn/examples/easy-rsa /etc/openvpn/<br />
02. #  cd /etc/openvpn/easy-rsa/2.0/<br />
03. #  . ./vars<br />
04. #  ./clean-all<br />
05. #  ./build-ca<br />
06. #  ./build-key-server servidor<br />
07. #  ./build-key cliente1<br />
08. #  ./build-dh<br />
09. #  cd keys<br />
10. #  cp ca.crt ca.key servidor.crt servidor.key dh1024.pem  /etc/openvpn/</p></blockquote>
<p><em><span style="text-decoration: underline;">Explicación paso a paso:</span></em><br />
01: Copiamos los scripts con el comando &#8220;cp&#8221;<br />
02: Nos posicionamos sobre el directorio de scripts<br />
03: Inicializamos variables &#8220;. ./vars&#8221;<br />
04: blanqueamos el directorio de claves &#8220;./clean-all&#8221;<br />
05: generamos certificado CA  &#8221;./build-ca&#8221;</p>
<p style="padding-left: 30px;">Aquí nos nos preguntara un montón de datos sobre la empresa que utiliza el certificado. Sugiero llenarlo con datos reales. NOTA: Debemos prestar mucha atención en el &#8220;Common Name&#8221;.  Si en Common Name completamos con &#8220;TECHNICO&#8221; Lo anotamos o recordamos para no repetirlo en los proximos pasos; ya que en las 3 veces que lo generaremos, necesitamos nombres que no se repitan.</p>
<p>06: Creamos las credenciales para el servidor. &#8220; ./build-key-server servidor&#8221;.</p>
<p style="padding-left: 30px;">Completamos con los datos anteriores, sin repetir &#8220;common name&#8221; (como mencionamos anteriormente).</p>
<p>07: Creamos las credenciales para el cliente. &#8220; ./build-key cliente1&#8243;. Esto va a generar &#8220;cliente1.key&#8221; y &#8220;cliente1.crt&#8221;<br />
08: Creamos los parámetros con el comando&#8221;./build-dh&#8221;.  *dh: Diffie Hellman (Protocolo Criptografico).<br />
09: nos posicionamos en el directorio donde se generaron los certificados &#8220;cd keys&#8221;.<br />
10: copiamos los certificados a /etc/openvpn/</p>
<p><strong>3) Continuamos con la configuración:</strong><br />
Instalamos el editor VI y luego entramos a editar server.conf</p>
<blockquote><p># apt-get install vim<br />
# vi /etc/openvpn/server.conf</p></blockquote>
<p>USO DEL VI Editor<br />
a) Para editar presionan la letra &#8220;i&#8221; o la tecla &lt;insert&gt;. Luego para finalizar de editar &lt;esc&gt;<br />
b) para guardar y salir del vi: escriben &#8216; : &#8216; (dos puntos); aparecera un path para escribir.<br />
c) Escriben &#8216;wq&#8217; y presionan &lt;Enter&gt; (w de write y q de quit). Con esto ya deberian estar nuevamente en el path de linux.<br />
Archivo server.conf:</p>
<pre>port 1194
proto udp
dev tun
persist-tun
ca ca.crt
cert servidor.crt
key servidor.key
dh dh1024.pem

#Direcciones que se asignaran a los clientes, el server es .1
server 10.1.1.0 255.255.255.0

ifconfig-pool-persist ipp.txt

#Routeo para que los clientes alcancen la red local del server (1.0/24)
push .route 192.168.1.0 255.255.255.0.

#Para que los clientes se visualicen entre ellos
#Debe ir junto con la opción routeback en el shorewall
client-to-client

keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 4</pre>
<p><strong>4) Configuración de cliente OpenVPN en Windows XP, Vista o Seven.<br />
</strong><br />
a) Descargar: <a title="openvpn-2.0.9-gui-1.0.3-install.exe" href="http://openvpn.se/files/install_packages/openvpn-2.0.9-gui-1.0.3-install.exe" target="_blank">openvpn-2.0.9-gui-1.0.3-install.exe</a> y luego instalarlo.<br />
b) Copiar a la carpeta &#8220;C:\Program Files\OpenVPN\config&#8221; con WinSCP o desde un Sftp los archivos:</p>
<ul>
<li><em>/etc/openvpn/easy-rsa/2.0/keys/ca.crt</em></li>
<li><em>/etc/openvpn/easy-rsa/2.0/keys/cliente1.crt</em></li>
<li><em>/etc/openvpn/easy-rsa/2.0/keys/cliente1.key</em></li>
</ul>
<p>c) Creamos un archivo TXT y lo guardamos como cliente1.ovpn en &#8221;C:\Program Files\OpenVPN\config&#8221;. Luego le pegamos lo siguiente:</p>
<pre>tls-client
client
dev tun
proto udp
remote 192.168.1.135   # IP o dominio del servidor OpenVPN
float #debido a que la IP de arriba es dinamica
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"  #revisar las comillas luego de copy/paste
cert "C:\\Program Files\\OpenVPN\\config\\cliente1.crt"
key "C:\\Program Files\\OpenVPN\\config\\cliente1.key"
comp-lzo
verb 4</pre>
<p><a href="http://www.tech-nico.com/blog/wp-content/uploads/2011/11/archivos_OpenVPN_win.jpg"><img class="alignnone size-full wp-image-265" title="archivos_OpenVPN_win" src="http://www.tech-nico.com/blog/wp-content/uploads/2011/11/archivos_OpenVPN_win.jpg" alt="" width="597" height="282" /></a></p>
<p><strong>5) Reiniciamos openvpn en Debian</strong></p>
<blockquote><p>#  /etc/init.d/openvpn restart</p>
<pre>Stopping virtual private network daemon: server.
Starting virtual private network daemon: server.</pre>
</blockquote>
<p><strong>6) Iniciamos OpenVpn en windows. Ver Imagen</strong></p>
<p><a href="http://www.tech-nico.com/blog/wp-content/uploads/2011/11/openvpn_win_connect.jpg"><img class="alignnone size-full wp-image-261" title="openvpn_win_connect" src="http://www.tech-nico.com/blog/wp-content/uploads/2011/11/openvpn_win_connect.jpg" alt="" width="276" height="250" /></a></p>
<p>Click con boton derecho en el iconito señalado, y luego click en Connect. Si no nos arroja ningún error significa que todo es un éxito.</p>
<p><a href="http://www.tech-nico.com/blog/wp-content/uploads/2011/11/ipconfig_ovpn_windows.png"><img class="alignnone size-full wp-image-262" title="ipconfig_ovpn_windows" src="http://www.tech-nico.com/blog/wp-content/uploads/2011/11/ipconfig_ovpn_windows.png" alt="" width="649" height="425" /></a></p>
<p><a href="http://www.tech-nico.com/blog/wp-content/uploads/2011/11/ifconfig_debian.png"><img class="alignnone size-full wp-image-264" title="ifconfig_debian" src="http://www.tech-nico.com/blog/wp-content/uploads/2011/11/ifconfig_debian.png" alt="" width="683" height="422" /></a></p>
<p>______________<br />
Nicolas <a href="http://Tech-Nico.com/blog">Tech-Nico.com</a></p>
<img src="http://feeds.feedburner.com/~r/tech-nico/~4/A_mW-E9bqeM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tech-nico.com/blog/configurar-openvpn-roadwarrior-con-debian-6-y-windows/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://www.tech-nico.com/blog/configurar-openvpn-roadwarrior-con-debian-6-y-windows/</feedburner:origLink></item>
		<item>
		<title>Ejercicios de expresiones regulares</title>
		<link>http://feedproxy.google.com/~r/tech-nico/~3/4M4ZMC1EvoI/</link>
		<comments>http://www.tech-nico.com/blog/ejercicios-de-expresiones-regulares/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 00:06:52 +0000</pubDate>
		<dc:creator>soporte</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://www.tech-nico.com/blog/?p=244</guid>
		<description><![CDATA[Dado el siguiente archivo:  &#8221;expr_reg_1.txt&#8221; a aba aabb aabbb aaabbb aa baa abab ababa bababa ab bbb baaa abbba bbaabb ba aaaa baba bbaab bbabaa aaa aaba bbbb bbbaa bbbabb 1.no tenga más de tres &#8220;a&#8221; o tres &#8220;b&#8221; seguidas &#8230; <a href="http://www.tech-nico.com/blog/ejercicios-de-expresiones-regulares/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Dado el siguiente archivo:  &#8221;expr_reg_1.txt&#8221;</p>
<pre>a
aba
aabb
aabbb
aaabbb
aa
baa
abab
ababa
bababa
ab
bbb
baaa
abbba
bbaabb
ba
aaaa
baba
bbaab
bbabaa
aaa
aaba
bbbb
bbbaa
bbbabb</pre>
<p><strong>1.no tenga más de tres &#8220;a&#8221; o tres &#8220;b&#8221; seguidas</strong><br />
root@debian:~# cat expr_reg_1.txt | grep -E &#8216;^[^aaaa]|[^bbbb]$^[^bbbb]|[^aaaa]$&#8217;<br />
<span style="color: #993300;">a   &lt;  falta (por error no lo trae)</span><br />
ab<br />
ba<br />
baa<br />
bbb<br />
aabb<br />
abab<br />
baaa<br />
baba<br />
bbbb<br />
aabbb<br />
bbaab<br />
bbbaa<br />
aaabbb<br />
bababa<br />
bbaabb<br />
bbabaa<br />
bbbabb</p>
<p><strong>2.vayan alternando las &#8220;a&#8221; y las &#8220;b&#8221; sin repetirse</strong><br />
root@debian:~# cat expr_reg_1.txt | grep -E &#8216;^(ab)+$|^(ba)+$&#8217;<br />
ab<br />
ba<br />
abab<br />
baba<br />
bababa</p>
<p><strong>3.sólo tenga parejas de &#8220;a&#8221; y de &#8220;b&#8221;</strong><br />
root@debian:~# cat expr_reg_1.txt | grep -E &#8216;[a]{2}[b]{2}&#8217;<br />
aabb<br />
aabbb<br />
<span style="color: #993300;">aaabbb  &lt; este se filtro :p</span><br />
bbaabb</p>
<p><strong>4.tengan sólo &#8220;a&#8221; o sólo &#8220;b&#8221;</strong><br />
root@debian:~# cat expr_reg_1.txt | grep -E &#8216;^[a]+$|^[b]+$\b&#8217;<br />
a<br />
aa<br />
aaa<br />
bbb<br />
aaaa<br />
bbbb</p>
<p><strong>5.haya unas cuantas &#8220;a&#8221; y luego unas cuantas &#8220;b&#8221; o al revés</strong><br />
root@debian:~# cat expr_reg_1.txt | grep -E &#8216;^[a]{2,}[b]{2,}$|^[b]{2,}[a]{2,}$&#8217;<br />
aabb<br />
aabbb<br />
bbbaa<br />
aaabbb</p>
<p><strong>6.contengan la cadena &#8220;aba&#8221; o la cadena &#8220;bab&#8221;</strong><br />
root@debian:~# cat expr_reg_1.txt | grep -E &#8216;(aba|bab)&#8217;<br />
aba<br />
aaba<br />
abab<br />
baba<br />
ababa<br />
bababa<br />
bbabaa<br />
bbbabb</p>
<p><strong>7.contengan la cadena &#8220;ba&#8221; dos veces</strong><br />
root@debian:~# cat expr_reg_1.txt | grep -E &#8216;(ba){2}&#8217;<br />
baba<br />
ababa<br />
<span style="color: #993300;">bababa  &lt; este se filtro :p</span><br />
bbabaa</p>
<p>________________<br />
Nicolas <a href="http://tech-nico.com/blog">tech-nico.com</a></p>
<img src="http://feeds.feedburner.com/~r/tech-nico/~4/4M4ZMC1EvoI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tech-nico.com/blog/ejercicios-de-expresiones-regulares/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.tech-nico.com/blog/ejercicios-de-expresiones-regulares/</feedburner:origLink></item>
	</channel>
</rss>

