<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4714848406863256864</id><updated>2024-08-28T10:09:28.022-03:00</updated><category term="informatica"/><category term="linux"/><category term="webs"/><category term="video"/><category term="general"/><category term="bash_script"/><category term="humor"/><category term="mate"/><category term="wikipedia"/><category term="greasemonkey"/><category term="tarjeta_sube"/><category term="java"/><category term="personal"/><category term="play"/><category term="animales"/><category term="aves"/><category term="busquedas"/><category term="captcha"/><category term="idea"/><category term="musica"/><category term="perros"/><category term="proverbios"/><title type='text'>mateware</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>73</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-1779243997189873994</id><published>2012-10-14T19:55:00.000-03:00</published><updated>2012-10-14T19:55:27.103-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash_script"/><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Arreglos con Bash - Parte 1</title><content type='html'>Hace poco repasé con la facultad el uso de arreglos con bash. Tengo que admitir que no es difícil de usarlos, pero le advierto a cualquiera que haya usado arreglos en algún lenguaje, lo siguiente: bash no es un lenguaje de programación! jejee :)&lt;br /&gt;
&lt;br /&gt;
Esta entrada intenta ser mas práctica que teórica. Solo me voy a limitar a comentar que los arreglos son dinamicos: pueden &lt;b&gt;crecer&lt;/b&gt; (nunca decrecen). Esto es una gran diferencia con algunos lenguajes de programacion que si uno declara que un arreglo posee n elementos, no se puede agregar mas de esa cantidad. Por otro lado es importante aclarar que &lt;b&gt;el&lt;/b&gt; &lt;b&gt;indice de los arreglos en bash comienza en 0&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Para arrancar, la inicializacion se puede hacer de esta manera:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#Declaración de un arreglo vacio&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;miArreglo=()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
O bien inicializarlo en su declaracion (&quot;datos precargados&quot;):&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;miArreglo=(1 2 tres cuatro &quot;hola mundo&quot;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Esta declaración crea un arreglo con 5 elementos: 1, 2, tres, cuatro y &quot;hola mundo&quot;. Es importante notar el uso del espacio como delimitador, o bien el uso de comillas para poder definir un elemento que posea espacios.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Luego para acceder a algun elemento del Arreglo se hace de la siguiente forma:&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;${miArreglo[&lt;i&gt;INDICE&lt;/i&gt;]}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Donde &lt;i&gt;INDICE&lt;/i&gt; es la posición (número) del elemento en el arreglo (0..&lt;i&gt;n&lt;/i&gt;), asi por ejemplo: &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;${miArreglo[4]}&lt;/span&gt;&lt;/span&gt; hace referencia al dato &quot;hola mundo&quot; del arreglo definido arriba.&lt;br /&gt;
&lt;br /&gt;
Siguiendo con el tema de acceder a determinada posición, existe una forma de hacer referencia a todos los elementos: &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;${miArreglo[*]}&lt;/span&gt;&lt;/span&gt; o &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;${miArreglo[@]}&lt;/span&gt;&lt;/span&gt;. De esta forma obtenemos una cadena de texto con todos los elementos separados por un espacio. Esto es útil cuando queramos imprimir todos, o bien inicializar otro arreglo con dichos datos.&lt;br /&gt;
&lt;br /&gt;
Ahora para definir un valor en alguna posición se accede de una forma mas facil:&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;miArreglo[&lt;i&gt;INDICE&lt;/i&gt;]=&lt;i&gt;DATO&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;. Es así que podemos escribir cualquier valor, de la misma forma que escribimos cuando lo inicializamos.&lt;br /&gt;
&lt;br /&gt;
La última operación que queda por ver es como borrar un dato. Para esto contamos con &lt;span style=&quot;color: #38761d;&quot;&gt;unset &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;miArreglo[&lt;i&gt;INDICE&lt;/i&gt;]&lt;/span&gt;&lt;/span&gt;, y con eso borramos el dato que poseía dicha posición, pero no la misma. Osea que nos queda una posicion vacia, y esto es imporante para tener en cuanta cuando procesemos.&lt;br /&gt;
&lt;br /&gt;
Bash nos provee de una forma fácil para saber cuantos elementos tiene un arreglo: &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;${#miArreglo[*]}&lt;/span&gt;&lt;/span&gt; o&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;span style=&quot;color: #38761d;&quot;&gt;${#miArreglo[@]}&lt;/span&gt;&lt;/span&gt;. Mas específicamente me animo a decir, que lo que realmente se imprime son los elementos no borrados. No se si esto depende de la versión de bash, pero al menos en mi versión (4.2.24) sucede eso, asi que atentos.&lt;br /&gt;
&lt;br /&gt;
En otra entrada voy a poner ejemplos mas concretos, bucles y otra forma de inicicializar los arreglos mas &quot;práctica&quot; (de la vida real) y no de los libros je.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/1779243997189873994/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/10/arreglos-con-bash-parte-1.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/1779243997189873994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/1779243997189873994'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/10/arreglos-con-bash-parte-1.html' title='Arreglos con Bash - Parte 1'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-3176208608965819584</id><published>2012-10-13T23:27:00.001-03:00</published><updated>2012-10-13T23:27:35.284-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mate"/><title type='text'>Mezcla de Cruz de Malta con Menta y Boldo + Taragui</title><content type='html'>Ultimamente volví a una mezcla de mate que hacia tiempo que no tomaba: Cruz de Malta con Menta y Boldo + Taragui.&amp;nbsp;Mas o menos mezclo mitad de ambas yerbas:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOcWmyuXOKcL61yG-L9efJz93sLJlcUdnhMRQw3NuS4HlerhuPxwInsa_MvAVthF1n-i8zyeZp6LmzwZwKOpB085ScBTbiLosFWd0YyUPYVCyDU-t5ZzoBHwvrnr2PNVna13b0h77TV-w/s1600/mi+mate+con+menta+++boldo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOcWmyuXOKcL61yG-L9efJz93sLJlcUdnhMRQw3NuS4HlerhuPxwInsa_MvAVthF1n-i8zyeZp6LmzwZwKOpB085ScBTbiLosFWd0YyUPYVCyDU-t5ZzoBHwvrnr2PNVna13b0h77TV-w/s400/mi+mate+con+menta+++boldo.JPG&quot; width=&quot;375&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Sincermente salen muy ricos mates!. Frescos, y ese gusto a boldo que lo hace particular ;). Admito que no soy muy fanatico de este último, pero en combinación con la yerba queda muy bien!.&lt;br /&gt;
&lt;br /&gt;
Asi que si alguien andaba buscando renovar el mate, combine algo similar o con probar uno no pierde nada jejee :D</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/3176208608965819584/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/10/mezcla-de-cruz-de-malta-con-menta-y.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/3176208608965819584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/3176208608965819584'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/10/mezcla-de-cruz-de-malta-con-menta-y.html' title='Mezcla de Cruz de Malta con Menta y Boldo + Taragui'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOcWmyuXOKcL61yG-L9efJz93sLJlcUdnhMRQw3NuS4HlerhuPxwInsa_MvAVthF1n-i8zyeZp6LmzwZwKOpB085ScBTbiLosFWd0YyUPYVCyDU-t5ZzoBHwvrnr2PNVna13b0h77TV-w/s72-c/mi+mate+con+menta+++boldo.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-8778675707812342001</id><published>2012-10-07T20:27:00.001-03:00</published><updated>2012-10-07T20:27:58.774-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><title type='text'>Metodo rustico para detener el inicio de WhatsApp S40</title><content type='html'>Hace poco conoci el WhatsApp. Siempre llego muy tarde a las cosas de &quot;moda&quot;, pero aun asi no es que me agrada demasiado: es como el facebook de la comunicacion movil via internet. No se ubica mucho del lado del Usuario :(... y meeeenos que sea Libre!.&lt;br /&gt;
&lt;br /&gt;
Mas alla de eso, la version para mi Nokia X2, es la WhatsApp S40. Los desarrolladores no tuvieron mejor idea y mas &quot;&quot;&quot;abarcativa&quot;&quot;&quot; que dejar que esta aplicacion corra indefinidamente en background, por mas que no se pueda detener!!.. Todo para garantizar que el Usuario reciba siempre mensajes, pero eso si: No les interesa si el usuario tiene plan de datos o que.&lt;br /&gt;
&lt;br /&gt;
En mi caso logre que no arranque al inicio del &quot;sistema&quot; (autostart). Para lo cual lo que hice fue usarlo desde la memoria externa!.&lt;br /&gt;
&lt;br /&gt;
Para lograr esto, desistalé la versión que tenia. Volví a descargarlo, y antes de instalarlo, lo moví a la memoria externa y siempre lo ejecuto de ahí. Gracias a esto &lt;b&gt;puedo &quot;desactivar&quot; su inicio&lt;/b&gt;: al reiniciar el equipo, retiro momentaneamnte la memoria y la vuelvo a colocar :D:D:D:D:D.&lt;br /&gt;
&lt;br /&gt;
Se que suena a solución bruta mal!, pero funciona!. El Whatsapp no se me inicia y por ende no me consume el credito ;).&lt;br /&gt;
&lt;br /&gt;
Aclaro que para mi celular no vienen aplicaciones para controlar el inicio, o bien controlar al WhatsApp para que no consuma mi conexión :(.&lt;br /&gt;
&lt;br /&gt;
Asi que si alguien mas sufre por el WhatsApp y anda desistalandolo una y otra vez para que no le consuma su internet, puede hacer esto :D.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/8778675707812342001/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/10/metodo-rustico-para-detener-el-inicio.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/8778675707812342001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/8778675707812342001'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/10/metodo-rustico-para-detener-el-inicio.html' title='Metodo rustico para detener el inicio de WhatsApp S40'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-4019573111791755484</id><published>2012-10-02T17:44:00.000-03:00</published><updated>2012-10-02T17:44:08.706-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="general"/><category scheme="http://www.blogger.com/atom/ns#" term="musica"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>Abel Pintos - Cactus (Gustavo Cerati)</title><content type='html'>Que buena interpretación por parte de Abel Pintos de &lt;i&gt;Cáctus&lt;/i&gt;, una canción de Gustavo Cerati.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/BeGF40RMf9A?rel=0&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Para aquellos que quieran escuchar la versión original aqui se las dejo:&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;480&quot; src=&quot;http://www.youtube.com/embed/BN1Juts_SPU?rel=0&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/4019573111791755484/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/10/abel-pintos-cactus-gustavo-cerati.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/4019573111791755484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/4019573111791755484'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/10/abel-pintos-cactus-gustavo-cerati.html' title='Abel Pintos - Cactus (Gustavo Cerati)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/BeGF40RMf9A/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-4587854492112738809</id><published>2012-09-20T23:31:00.002-03:00</published><updated>2012-09-20T23:31:28.308-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="humor"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>Sin Codificar - El Ravi Shankarlos (Yayo) </title><content type='html'>Como me moría de la risa con el personaje de Yayo!!. Que bien que lo hace :D:D.&lt;br /&gt;
&lt;br /&gt;
Dejo para que lo disfruten uds:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Sri Sri Ravi Shankarlos y su patota espiritual:
&lt;/span&gt;&lt;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/w19xboT2g0s&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;El Ravi Shankarlos se despide de la Argentina:
&lt;/span&gt;&lt;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/SxUZYh4JpQ8&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/4587854492112738809/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/09/sin-codificar-el-ravi-shankarlos-yayo.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/4587854492112738809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/4587854492112738809'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/09/sin-codificar-el-ravi-shankarlos-yayo.html' title='Sin Codificar - El Ravi Shankarlos (Yayo) '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/w19xboT2g0s/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-7635222106383157809</id><published>2012-09-18T00:57:00.001-03:00</published><updated>2012-09-18T00:57:16.318-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>Cura de Código Abierto</title><content type='html'>Hoy leía una historia bastante particular que a uno lo sorprende y lo llena de tristeza/emoción: &lt;a href=&quot;http://www.neoteo.com/mi-cura-de-codigo-abierto-video-2&quot; target=&quot;_blank&quot;&gt;Mi Cura de Código Abierto&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
Se trata de un italiano que padece de un cancer cerebral. Esta persona quiso compartir sus registros/análisis con otros médicos, pero fue muy difícil dado que la información estaba en un formato prácticamente privativo. Esto dificulta, hoy en día, compartir libremente la información: dado que se depende de una solución brindada por una persona/empresa, que es la única que conoce como interpretar (decodificar) dicha información. En este caso &lt;b&gt;estamos hablando ni mas ni menos que la historia clínica de un paciente oncológico&lt;/b&gt;, que no es para nada poca cosa. Mas allá del &lt;b&gt;&quot;impedimento tecnológico&quot;&lt;/b&gt;, él mismo se la rebuscó para hacer accesible su propia historia clínica: &lt;a href=&quot;http://www.artisopensource.net/cure/&quot; target=&quot;_blank&quot;&gt;lo publicó en un formato abierto&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Gracias a su labor, pudo comunicarse con otros médicos los cuales algunos llegaron a responderle muy rápidamente!, sin requerir de una herramienta (software) única y/o especializada.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/5ESWiBYdiN0&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;

&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Ahora en cuanto a lo de prácticamente privativo, me refiero a que el formato usado originalmente para los registros, según se puede leer en su sitio web, consistía de una especificación abierta (no software libre) llamado DICOM, ampliamente usado en el &quot;mundo de la salud&quot; para almacenar resultados de resonancias y otros estudios. Aparentemente sus registros poseían una pequeña &quot;variación&quot;, lo cual dificultaba aun mas la tarea de compartirlos.&lt;br /&gt;
&lt;br /&gt;
Ahora este formato, al no ser Libre, restringe al usuario en cuanto a lo que puede hacer y se ven cuando ocurren casos como el que padeció esta persona. ¿Esta bueno que información tan delicada quede anclada en un solo lugar?, ¿o no seria mejor que pueda ser retransmitida libremente?, y con esto no me refiero a que caiga en manos de cualquiera, sino que &lt;b&gt;no haya impedimentos a la hora de mostrar resultados de análisis médicos&lt;/b&gt;.</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/7635222106383157809/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/09/cura-de-codigo-abierto.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/7635222106383157809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/7635222106383157809'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/09/cura-de-codigo-abierto.html' title='Cura de Código Abierto'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/5ESWiBYdiN0/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-8487147468035879505</id><published>2012-09-17T23:01:00.000-03:00</published><updated>2012-09-17T23:01:21.038-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="general"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>La educación prohibida</title><content type='html'>Quiero compartir una producción sobre el Sistema Educativo vigente. Este video fue realizado de forma colaborativa (los usuarios participan) y puede ser distribuido libremente ;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/-1Y9OqSJKCc&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;

&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Está interesante para cada uno saque sus conclusiones ;).&lt;br /&gt;
&lt;br /&gt;
Mas info en: &lt;a href=&quot;http://www.educacionprohibida.com/&quot;&gt;www.educacionprohibida.com&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/8487147468035879505/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/09/la-educacion-prohibida.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/8487147468035879505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/8487147468035879505'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/09/la-educacion-prohibida.html' title='La educación prohibida'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/-1Y9OqSJKCc/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-4667479197607031733</id><published>2012-09-15T17:57:00.000-03:00</published><updated>2012-09-15T17:57:52.971-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>El resaltado de grep</title><content type='html'>Soy de las personas que valora que grep resalte los términos/caracteres que coinciden con nuestra búsqueda.&lt;br /&gt;
&lt;br /&gt;
Lo que venía lamentando estos días era no poder usar el resultado de &lt;b&gt;grep&lt;/b&gt; con el visualizador &lt;b&gt;less&lt;/b&gt; y/o bien hacer de alguna forma para tenerlo en algún archivo.&lt;br /&gt;
&lt;br /&gt;
Por suerte di en un &lt;a href=&quot;http://www.coderanch.com/t/513794/Linux-UNIX/grep-less-output&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;foro&lt;/a&gt; con una forma de hacerlo:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
grep &lt;b&gt;--color=always&lt;/b&gt; &lt;i&gt;EXPRESIÓN&lt;/i&gt; [&lt;i&gt;ARCHIVO&lt;/i&gt;] | less &lt;b&gt;-R&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Osea simplemente consiste en agregar el parámetro &lt;i&gt;--color=always&lt;/i&gt; a &lt;b&gt;grep&lt;/b&gt;, para forzarlo a que su resultado, usado por otro comando, posea los &quot;códigos de color&quot; (ANSI). Y a su vez &lt;b&gt;less&lt;/b&gt; con el parámetro &lt;i&gt;-R&lt;/i&gt;.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;
&lt;br /&gt;
Una vez esto hecho esto, se me ocurrió reemplazar los códigos de color usando &lt;b&gt;sed&lt;/b&gt;, por el tag &lt;i&gt;&amp;lt;b&amp;gt;&lt;/i&gt; (negrita) en HTML, para obtener un HTML resaltado.&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;grep &lt;/span&gt;&lt;b style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--color=always&lt;/b&gt;&lt;span style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/span&gt;&lt;i style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;EXPRESIÓN&lt;/i&gt;&lt;span style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; [&lt;/span&gt;&lt;i style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ARCHIVO&lt;/i&gt;&lt;span style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;]| sed &#39;s/\x1b\[01;31m\x1b\[K/&lt;/span&gt;&lt;b style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;b&amp;gt;&lt;/b&gt;&lt;span style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/g&#39; | sed &#39;s/\x1b\[m\x1b\[K/&lt;/span&gt;&lt;b style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;\/b&amp;gt;&lt;/b&gt;&lt;span style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/g&#39; | sed -r &#39;s/$/&amp;lt;br\/&amp;gt;/g&#39;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Lo que hace los comandos anteriores es, rodear lo resaltado por &lt;b&gt;grep&lt;/b&gt; con &lt;i&gt;&amp;lt;b&amp;gt; &lt;/i&gt;y &lt;i&gt;&amp;lt;/b&amp;gt;&lt;/i&gt;, y a su vez cada linea la separa con&lt;i&gt; &amp;lt;br/&amp;gt;&lt;/i&gt;, dado que en HTML el &quot;enter (caracteres de salto de linea) no sirve&quot; y se usa dicho tag.&lt;br /&gt;
&lt;br /&gt;
Ahora esto es simple, luego queda a criterio de cada uno hacer su resaltado en el HTML, usando por ejemplo una etiqueta &lt;i&gt;span&lt;/i&gt; indicando colores de fondo y letra, o bien usando una clase.&lt;br /&gt;
&lt;br /&gt;
Yo cuando lo usé, encapsulé el resultado en un archivo HTML (resultado.html) indicando que contenía caracteres UTF8, para lograr su correcta visualización. Esto lo hice así:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;( echo &#39;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&#39;; grep &lt;/span&gt;&lt;b style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--color=always&lt;/b&gt;&lt;span style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/span&gt;&lt;i style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;EXPRESIÓN&lt;/i&gt;&lt;span style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; [&lt;/span&gt;&lt;i style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ARCHIVO&lt;/i&gt;&lt;span style=&quot;color: #38761d; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;] | sed &#39;s/\x1b\[01;31m\x1b\[K/&lt;b&gt;&amp;lt;b&amp;gt;&lt;/b&gt;/g&#39; | sed &#39;s/\x1b\[m\x1b\[K/&lt;b&gt;&amp;lt;\/b&amp;gt;&lt;/b&gt;/g&#39; | sed -r &#39;s/$/&amp;lt;br\/&amp;gt;/g&#39;; echo &#39;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&#39; )&amp;nbsp; &amp;gt; &lt;b&gt;resultado.html &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/4667479197607031733/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/09/el-resaltado-de-grep.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/4667479197607031733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/4667479197607031733'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/09/el-resaltado-de-grep.html' title='El resaltado de grep'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-2283426349513798063</id><published>2012-07-29T19:36:00.000-03:00</published><updated>2012-07-29T19:36:28.295-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="wikipedia"/><title type='text'>Mas cerca de hacer un Wikifiltro :)</title><content type='html'>Bueno desde mi última entrada con respecto al tema del &lt;a href=&quot;http://mateware.blogspot.com/2012/07/sueno-con-un-filtro-de-imagenes-para.html&quot; target=&quot;_blank&quot;&gt;Filtro de Imágenes Inadecuadas para Menores de Edad&lt;/a&gt;, anduve trabajando en lograr uno. Admito que estoy &quot;pesado&quot; con este tema, pero repito creo que mucha gente no sabe que hay imágenes &quot;fuertes&quot; para chicos y piensan que si ellos buscan en Wikipedia no se encontraran con nada de este estilo: &lt;b&gt;cosa que no es así&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiby73wupHYA3x4czH1Le3VltYRnT3k9t-L41EkI2H3-UvBhmJqPzXTohKNbGWdoi17_boDggFpjLyWtvqCcosMdO-3VrV8OyaAO4fQ2Iaglje4qhpfzxTeI19tB_Y4WfCK6-oz4VZzKwE/s1600/filtro+para+Wikipedia.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiby73wupHYA3x4czH1Le3VltYRnT3k9t-L41EkI2H3-UvBhmJqPzXTohKNbGWdoi17_boDggFpjLyWtvqCcosMdO-3VrV8OyaAO4fQ2Iaglje4qhpfzxTeI19tB_Y4WfCK6-oz4VZzKwE/s1600/filtro+para+Wikipedia.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Para empezar comencé a escribir un poco como se haría en &lt;a href=&quot;http://www.wikibuscador.com.ar/Devel/wikiFiltro&quot; target=&quot;_blank&quot;&gt;wikiBucador.com.ar/Devel/wikiFiltro&lt;/a&gt;, y recientemente inicié una pequeña &lt;a href=&quot;http://es.wikipedia.org/w/index.php?title=Wikipedia:Caf%C3%A9/Portal/Archivo/Propuestas/Actual&amp;amp;oldid=58353065#Creacion_de_un_FIltro_Personal_de_Imagenes_Inadecuadas_para_Menores&quot; target=&quot;_blank&quot;&gt;consulta en Wikipedia&lt;/a&gt; para mejorar, escuchar propuestas, criticas e ideas ;), ademas que este tema de las imágenes se debe resolver colectivamente! y el beneficio es para varios Usuarios.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Así que quien guste de criticar comentar, aportar algo...puede sumarse ;). Admito que aun me falta un espacio de debate, pero bue...veo si logro instalar algo. Igualmente pueden dejar comentarios acá o en Wikipedia si son Usuarios ;) jeje.&lt;br /&gt;
&lt;br /&gt;
Otra cosa que me queda pendiente es la publicación del Código Fuente, aun por mas desastroso que esté jejeje.</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/2283426349513798063/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/07/mas-cerca-de-hacer-un-wikifiltro.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/2283426349513798063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/2283426349513798063'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/07/mas-cerca-de-hacer-un-wikifiltro.html' title='Mas cerca de hacer un Wikifiltro :)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiby73wupHYA3x4czH1Le3VltYRnT3k9t-L41EkI2H3-UvBhmJqPzXTohKNbGWdoi17_boDggFpjLyWtvqCcosMdO-3VrV8OyaAO4fQ2Iaglje4qhpfzxTeI19tB_Y4WfCK6-oz4VZzKwE/s72-c/filtro+para+Wikipedia.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-2640866122159574114</id><published>2012-07-29T15:54:00.000-03:00</published><updated>2012-07-29T15:54:34.029-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="general"/><category scheme="http://www.blogger.com/atom/ns#" term="humor"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>Mr Bean en la Apertura de los Juegos Olimpicos Londres 2012</title><content type='html'>Sinceramente no vi la Apertura, pero cuando me entere de que estaba Mr Bean me puse a buscarla jaja :D:D&lt;br /&gt;
&lt;br /&gt;
En Youtube encontre este video que dentro de todo esta tomada la Escena de el, pero esta algo recortada&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/J-nsBoEg52g&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Me soprendio mucho su participación!!. Me mata las caras que pone y ese perfil de el de Competitivo/Forro/etc... que lo hace único :D.&lt;br /&gt;
&lt;br /&gt;
Por otro lado hay que destacar que fue una alta produccion la que se mandaron los Ingleses por la Apertura ;). No pense que iban a hacer tanto show jaja :D</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/2640866122159574114/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/07/mr-bean-en-la-apertura-de-los-juegos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/2640866122159574114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/2640866122159574114'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/07/mr-bean-en-la-apertura-de-los-juegos.html' title='Mr Bean en la Apertura de los Juegos Olimpicos Londres 2012'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/J-nsBoEg52g/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-2097722915103903150</id><published>2012-07-26T19:53:00.000-03:00</published><updated>2012-07-26T19:56:26.775-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="greasemonkey"/><category scheme="http://www.blogger.com/atom/ns#" term="idea"/><category scheme="http://www.blogger.com/atom/ns#" term="webs"/><category scheme="http://www.blogger.com/atom/ns#" term="wikipedia"/><title type='text'>Sueño con un filtro de imagenes para Wikipedia</title><content type='html'>Después de haber publicado la Entrada anterior, y haber encontrado la encuesta (que me la perdí por bol...) de &lt;a href=&quot;http://es.wikipedia.org/w/index.php?title=Wikipedia:Encuestas/2011/Sobre_el_filtro_de_im%C3%A1genes&amp;amp;oldid=52186083&quot; target=&quot;_blank&quot;&gt;Wikipedia acerca de un filtro de imágenes&lt;/a&gt;, decidí buscar un filtro o ver si se &quot;podía hacer&quot; uno específico para Wikipedia.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiby73wupHYA3x4czH1Le3VltYRnT3k9t-L41EkI2H3-UvBhmJqPzXTohKNbGWdoi17_boDggFpjLyWtvqCcosMdO-3VrV8OyaAO4fQ2Iaglje4qhpfzxTeI19tB_Y4WfCK6-oz4VZzKwE/s1600/filtro+para+Wikipedia.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiby73wupHYA3x4czH1Le3VltYRnT3k9t-L41EkI2H3-UvBhmJqPzXTohKNbGWdoi17_boDggFpjLyWtvqCcosMdO-3VrV8OyaAO4fQ2Iaglje4qhpfzxTeI19tB_Y4WfCK6-oz4VZzKwE/s1600/filtro+para+Wikipedia.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Lo primero que me plantie fue de tener algo que detecte imágenes con Desnudos, y eso es algo que no esta tan a mano como pensé. &lt;b&gt;La mayoría de los Filtros Parentales que vi, usan expresiones regulares para suponer si una URL posee algo de contenido adulto,o bien se basan en que el usuario o alguien previamente lo reportó como contenido ofensivo&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
El punto anterior hizo que buscara una solución, y me encontré que no hay muchas soluciones disponibles sin pagar, ya sea tanto como Usuario como Programador. Una que me sorprendió mucho fue &lt;a href=&quot;http://www.patrick-wied.at/static/nudejs/&quot; target=&quot;_blank&quot;&gt;Nude JS&lt;/a&gt;, una librería pequeña y en estado de desarrollo ,que está escrita en Javascript y sirve para detectar imágenes con desnudos. Según su desarrollador posee un 60% de efectividad. Alguien amablemente hizo un &lt;a href=&quot;https://github.com/azwan082/php-nudity-filter&quot; target=&quot;_blank&quot;&gt;port de Nude JS en PHP&lt;/a&gt;, un tanto ineficiente por el tipo de procesamiento que realiza y ademas que el port de cierta forma es literal jeje ;). Puedo decir que en mi computadora vieja procesar una imagen en PHP le toma 8 a 12 segundos, mientras que en Javascript le toma mitad del tiempo!!. Aun asi no estoy desmereciendo el trabajo, porque a uno le da una herramienta para trabajar ;).&lt;br /&gt;
&lt;br /&gt;
Bueno con Nude JS se me ocurrió usarlo con Greasemonkey, para &quot;inyectar la librería en Wikipedia&quot;. No vale la pena intentar hacer esto, porque gasté horas para hacerlo funcionar y &lt;b&gt;no se puede por cuestiones de seguridad de browser&lt;/b&gt;. Todo porque se lee una imagen de Wikipedia usando un elemento Canvas, cosa que me entero que es &quot;ilegal&quot; en JavaScript, al tratarse de distintos dominios. Mas información pueden encontrarlo &lt;a href=&quot;http://blog.project-sierra.de/archives/1577&quot; target=&quot;_blank&quot;&gt;acá&lt;/a&gt;, que un Programador lo explica simple y bien claro.&lt;br /&gt;
&lt;br /&gt;
Si Alguien le interesa como podría llegar a utilizarlo o ver lo fácil que se usa Nude JS, dejo mi Script (para Gresemonkey) original y simple, que sirve si las imágenes están alojadas en el mismo dominio. Aclaro que el codigo muestra data en la Consola y es un poco &quot;largo&quot; porque Nude JS procesa las imágenes usando su ID, no el elemento en si.
&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
 .style_0
 {
  color: #000000;
  
 }
 .style_2
 {
  color: #d00000;
  
 }
 .style_4
 {
  color: #007f00;
  
 }
 .style_5
 {
  color: #00007f;
  
  font-weight: bold;
 }
 .style_6
 {
  color: #ff8000;
  
 }
 .style_7
 {
  color: #ff8000;
  
 }
 .style_10
 {
  color: #301010;
  
 }
 .style_11
 {
  color: #000000;
  
 }

 
&lt;/style&gt;
&lt;br /&gt;
&lt;div style=&quot;background: white; padding: 5px;&quot;&gt;
&lt;span class=&quot;style_2&quot;&gt;//&amp;nbsp;==UserScript==&lt;br /&gt;
//&amp;nbsp;@name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;wikiFiltro&amp;nbsp;(Nude&amp;nbsp;JS)&lt;br /&gt;
//&amp;nbsp;@namespace&amp;nbsp;&amp;nbsp;&amp;nbsp;http://www.wikibuscador.com.ar&lt;br /&gt;
//&amp;nbsp;@description&amp;nbsp;Pequeño&amp;nbsp;filtro&amp;nbsp;para&amp;nbsp;detectar&amp;nbsp;imagenes&amp;nbsp;de&amp;nbsp;Desnudos&amp;nbsp;(tiene&amp;nbsp;aprox&amp;nbsp;un&amp;nbsp;60%&amp;nbsp;de&amp;nbsp;confiabiliadad)&lt;br /&gt;
//&amp;nbsp;@include&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&lt;br /&gt;
//&amp;nbsp;@require&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;http://www.wikibuscador.com.ar/libreriaNude/nude.js&lt;br /&gt;
//&amp;nbsp;@require&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;http://www.wikibuscador.com.ar/libreriaNude/noworker.nude.js&lt;br /&gt;
//&amp;nbsp;@version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0.1&lt;br /&gt;
//&amp;nbsp;==/UserScript==&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;style_2&quot;&gt;//MAIN&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style_11&quot;&gt;window&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;addEventListener&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;style_6&quot;&gt;&quot;load&quot;&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;style_5&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;style_5&quot;&gt;function&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;(){&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_11&quot;&gt;nude&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;init&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;();&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_5&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;imagenes&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;document&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;images&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_5&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;style_5&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;style_4&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;imagenes&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;length&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;++){&lt;/span&gt;&lt;br /&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_5&quot;&gt;var&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;style_7&quot;&gt;&#39;wikiFiltroImagen&#39;&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_11&quot;&gt;imagenes&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;setAttribute&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;style_7&quot;&gt;&#39;id&#39;&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;);&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_11&quot;&gt;nude&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;load&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_11&quot;&gt;nude&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;scan&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;style_5&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;esUnaImagenConDesnudo&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;){&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_5&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;esUnaImagenConDesnudo&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;){&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_11&quot;&gt;alert&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;style_7&quot;&gt;&#39;La&amp;nbsp;imagen&amp;nbsp;&#39;&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;imagenes&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;style_7&quot;&gt;&#39;&amp;nbsp;posee&amp;nbsp;desnudos!!&#39;&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_11&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;style_7&quot;&gt;&#39;La&amp;nbsp;imagen&amp;nbsp;POSEE&amp;nbsp;desnudos&#39;&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;imagenes&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_11&quot;&gt;imagenes&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;style_6&quot;&gt;&quot;#&quot;&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_10&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_5&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_11&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;style_7&quot;&gt;&#39;La&amp;nbsp;imagen&amp;nbsp;NO&amp;nbsp;posee&amp;nbsp;desnudos:&amp;nbsp;&#39;&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;imagenes&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;style_11&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;style_10&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_10&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_10&quot;&gt;});&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;style_10&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;style_10&quot;&gt;}&lt;/span&gt;&lt;br /&gt;

&lt;/div&gt;
&lt;br /&gt;
Ahora me quedaría usar la versión en PHP con Greasemonkey, o bien instalar un Addon de Firefox y bloquear imágenes. Pero no me convence...&lt;br /&gt;
&lt;br /&gt;
Antes &lt;b&gt;creo que es mejor tener un Addon especifico, donde se pueda reportar colaborativamente las imágenes y obviamente que las filtre si fueron reportadas&lt;/b&gt;. Creo que seria una buena idea tener algo así, que vendría a ser el filtro rechaazado en la Encuesta jeje. El beneficio seria que la base de datos de las Imágenes reportadas seria Abierta: cualquier persona podría saber que imágenes son ofensivas, y usarlas en otros contextos: Proyectos de Wikipedia Offline,etc...&lt;br /&gt;
&lt;br /&gt;
Creo que si tendría que hacer algo así, usaría Greasemonkey y aprovecharía el pseudo-proyecto (que viene lento) &lt;a href=&quot;http://www.wikibuscador.com.ar/&quot; target=&quot;_blank&quot;&gt;Wikibuscador&lt;/a&gt; ;). Creo que seria un espacio útil para construirlo, aunque admito que por ahora está en un Hosting gratuito jajaja :D.&lt;br /&gt;
&lt;br /&gt;
Si lograra hacer algo así, no descartaría que vea en un futuro hipotético filtrar según algún criterio por ejemplo Religioso. Así no solo se podrían filtrar imágenes inadecuadas para menores sino también por otro criterio ;)</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/2097722915103903150/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/07/sueno-con-un-filtro-de-imagenes-para.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/2097722915103903150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/2097722915103903150'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/07/sueno-con-un-filtro-de-imagenes-para.html' title='Sueño con un filtro de imagenes para Wikipedia'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiby73wupHYA3x4czH1Le3VltYRnT3k9t-L41EkI2H3-UvBhmJqPzXTohKNbGWdoi17_boDggFpjLyWtvqCcosMdO-3VrV8OyaAO4fQ2Iaglje4qhpfzxTeI19tB_Y4WfCK6-oz4VZzKwE/s72-c/filtro+para+Wikipedia.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-1548559411442306969</id><published>2012-07-24T17:24:00.001-03:00</published><updated>2012-07-24T17:43:55.698-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="general"/><category scheme="http://www.blogger.com/atom/ns#" term="webs"/><category scheme="http://www.blogger.com/atom/ns#" term="wikipedia"/><title type='text'>Imagenes de contenido explicito/inadecuado para Menores en Wikipedia</title><content type='html'>Seguramente esto que voy a comentar es de público conocimiento o al menos lo esta al tanto, si es así,me imagino que ud si posee menores que usan la Wikipedia para la Escuela habrá tomado medidas,no?.&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: large;&quot;&gt;¿...? &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmqV0LP0k65MVmiTX8-Q4toXhTVNOSDpgt04JswavWxiNXS4XGMNUf7LWThywEiwHN1Rwo5vngTcogjb2oJrLfdLfUSKgQjY0sc3zgEQFd3MlHgc1Yp0odGXgWgM4foZF2hL-puze6bG4/s1600/Wikipedia-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmqV0LP0k65MVmiTX8-Q4toXhTVNOSDpgt04JswavWxiNXS4XGMNUf7LWThywEiwHN1Rwo5vngTcogjb2oJrLfdLfUSKgQjY0sc3zgEQFd3MlHgc1Yp0odGXgWgM4foZF2hL-puze6bG4/s1600/Wikipedia-logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
El tema de las&amp;nbsp; imágenes&amp;nbsp; y Wikipedia viene de unos cuantos días atrás cuando leyendo el blog de la ONG Alerta Vida, dedicada entre otras cosas a defender la Infancia de los menores, nombraron a Jimmy Walles (Co-Fundador de Wikipedia)&amp;nbsp; como pedófilo. Si bien no encontré mucha data acerca de porque el título, pero aparentemente si habría cierto visto bueno de este Sr hacia esa horrible práctica (ni se cm definirla de lo horrible que es...) según dicha ONG y otras páginas que encontré buscando sobre el tema.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Buscando eso, me encontré con varios sucesos de eliminación de gran cantidad de imágenes pornográficas en Commons de Wikimedia, que es algo asi como el Almacén Multimedia de la Enciclopedia, en diversos años. Ahí se alojan todas las imágenes y videos que están incrustados en los Artículos. Lo peor es que los &quot;retos&quot; vinieron de afuera, osea de denuncias externas, donde indicaban la existencia de dicho contenido, y no siendo la misma wikipedia quien los &quot;detectara&quot;. Ojo que no quiero manchar la Wikipedia, y todos sus colaboradores que hacen un esfuerzo enorme contribuyendo a dicha enciclopedia, pero creo que esa filosofía de Libre y Sin Censura que comparto, hasta el punto de que sino vas a impedir colgar en un Articulo una IMAGEN con contenido explicito para un MENOR, me imagino que debatirán en &quot;algo&quot;.&lt;br /&gt;
&lt;br /&gt;
Hace un par de días me lei el articulo del Co-Fundador de Wikipedia, Larry Sanger,(ahora desvinculado creo...o algo mas apartado), en el cual comenta que la &lt;a href=&quot;http://larrysanger.org/2012/07/wikimedia-foundation-board-officially-rejects-porn-filter/&quot; target=&quot;_blank&quot;&gt;Fundacion Wikimedia rechazaba la utilización de un Filtro de Pornografía&lt;/a&gt; para imágenes. &lt;b&gt;Mas allá de los motivos,creo que me dio bronca saber que estamos en 2012, la Wikipedia lleva años, y el tema de los contenidos bastante explícitos para un menor están presentes&lt;/b&gt; y cualquier nene/a que imprima un Articulo puede llevar tranquilamente imágenes bastante fuertes a su Escuela para hacer un trabajo. Puedo citar por ejemplo un &quot;video&quot; de un miembro masculino eyaculando, obviamente que alguien fue tan &quot;amable&quot; de subir 4 capturas del video y ponerlas en mosaico para agregar al Articulo.&lt;br /&gt;
&lt;br /&gt;
Ahora bien, por ahí una persona común y corriente piense que no hay de que alarmarse si solo hay que tomar &quot;recaudos&quot; cuando el nene/a vea el tema de Educación Sexual y por ende prestar atención como usa la Wikipedia. Este tipo de soluciones, no me parece muy eficaz: Los artículos de la Wikipedia están vinculados uno con otro. Un nene puede consultar: Aparato Digestivo -&amp;gt; Ano -&amp;gt; Eyaculación y ve el Video/Imagen que describía antes. Todo porque comentan en el Articulo del Ano que se puede inducir a la eyaculación, y es el mismo Ano el &quot;final del Aparato Digestivo&quot;.&lt;br /&gt;
&lt;br /&gt;
Yo me estoy acordando cuando tenia unos 12 años, y llego la PC a casa!. Junto con ella llego la Mítica Enciclopedia Encarta 98, la cual me ayudaba enormemente con las tareas. Ahora bien yo que recuerde jamas me cruce con una imagen &quot;fuerte&quot;, en el peor de los casos habia gráficos explicitos pero eso es otra cosa. Hoy los chicos están conectados a múltiples fuentes de información y encima a menor edad, no quiero imaginar hacer un Trabajo Practico para la escuela lo que debe ser. Y volviendo al tema de Wikipedia, sinceramente me preocupa, mas que nada el tema que no haya al menos una implementación que oculte a simple vista las imágenes mas fuertes. O bien que te tengas que loguear y ahí el contenido se adecua al Usuario (Menor/Adulto). &lt;br /&gt;
&lt;br /&gt;
Más alla de eso, en Commons, pude ver imágenes explicitas como una mujer masturbandose con un cepìllo de dientes. Creo que no forma parte de ningún articulo, y eso mas le vale. Asi que no todo lo que se sube a Commons es con fines Academicos o para &quot;ilustrar&quot; con detalles.&lt;br /&gt;
&lt;br /&gt;
Ahora si es cierto que del lado del Usuario se puede implementar algo un filtro de contenido. Muchos que vi al menos para Linux se basan en URL/Palabras explicitas las cuales bloquean el contenido, no lo analizan. En windows se que hay algunas soluciones pero (bien) pagas.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ahora mi insistencia en cuanto a que Wikipedia debería tener algo que al menos le permita al Usuario estar &quot;avisado&quot;, es porque no solo los Artículos se ven desde un navegador Desktop&lt;/b&gt;: Se pueden ver desde una plataforma Móvil (incluyo tabletas) y no creo que tengan un buen Filtro Parental (analizador de contenido adulto) o &lt;b&gt;bien no nos olvidemos que Wikipedia provee de sus Artículos para distintas soluciones de &quot;Wikipedia Offline&quot;&lt;/b&gt;. Estas ultimas deberían revisar cada contenido previo a ser empaquetado, porque una vez que se &quot;empaqueta&quot; es muy provable que no habrá un Navegador que visualice el Articulo sino que puede estar implementado de cualquier forma y si uno tiene un filtro Parental que funciona con los navegadores y URLs, no creo que detecte una imagen empaquetada en un Software X.&lt;br /&gt;
&lt;br /&gt;
Acá hay que preveer muchas cosas.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Esta entrada es solo un &quot;comentario para reflexionar&quot;&lt;/b&gt;. Yo creo que el porcentaje de imágenes fuertes para menores en artículos es muy muy bajo.El tema es que al estar vinculado, es como que un Menor puede ir por esos caminos y desembocar en donde no queramos. &lt;b&gt;Asi que aclaro que Wikipedia NO es puro contenido inadecuado, y en el peor de los casos, repito, es un porcentaje menor&lt;/b&gt;. Me gustaría que haya algo como un SafeSearch (de Google) en Wikipedia, porque incluso usando su buscador cabe la posibilidad de dar con resultados explícitos.&lt;br /&gt;
&lt;br /&gt;
PD: Decidí no agregar links a Artículos que en realidad &quot;cito&quot; para evitar que un simple click pueda llevar a un menor a dicha página. En tal caso de querer verlos, un adulto puede buscarlos por si mismo ;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/1548559411442306969/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/07/imagenes-de-contenido.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/1548559411442306969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/1548559411442306969'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/07/imagenes-de-contenido.html' title='Imagenes de contenido explicito/inadecuado para Menores en Wikipedia'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmqV0LP0k65MVmiTX8-Q4toXhTVNOSDpgt04JswavWxiNXS4XGMNUf7LWThywEiwHN1Rwo5vngTcogjb2oJrLfdLfUSKgQjY0sc3zgEQFd3MlHgc1Yp0odGXgWgM4foZF2hL-puze6bG4/s72-c/Wikipedia-logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-5555890657675175366</id><published>2012-07-16T18:13:00.002-03:00</published><updated>2012-07-16T22:28:53.639-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="webs"/><title type='text'>GetSimple: un CMS Lite muy completo</title><content type='html'>Hace 2 noches atrás tenia el inconveniente de necesitar un CMS para la página &lt;a href=&quot;http://wikibuscador.com.ar/&quot; target=&quot;_blank&quot;&gt;wikiBuscador&lt;/a&gt;, la cual era un solo archivo que contenía tooodo!.&lt;br /&gt;
&lt;br /&gt;
En mi búsqueda de CMS Lites (livianos, Simples y sin depender de una BD) me encontré con varias soluciones, pero como estaba apurado aposte por hacer pruebas rápidas:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Funciones para crear una Template propia, debido a que ya tenia una ;) &lt;/li&gt;
&lt;li&gt;Posibilidad de Definir unaTemplate para cada Pagina&lt;/li&gt;
&lt;li&gt;Posibilidad de&amp;nbsp; Ejecutar PHP desde cada Pagina (la mas importante)&lt;/li&gt;
&lt;li&gt;Soporte de SEO: &quot;URLs bonitas&quot; (para Google jeje :D) y definición de los Meta description y keywords para cada Página&lt;/li&gt;
&lt;li&gt;Soporte de Plugins&lt;/li&gt;
&lt;/ul&gt;
Probando estos puntos con TinyCMS, WonderCMS (Beta y ultra minimalista) y GetSimple, ganó este ultimo ;).&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3w9QnEAiTfg9xPZ1ag2s1aaKamDbWuhDgpqKX4RAR4HDw9jQQVZhcyMDlthouGLPWzbA6zZ1Vl-KFIDbmhN6_voDW7goOtyLhsHX36_Du8rZgqdRxdcFU6GTXmNHwR02D7FEbxylBI2g/s1600/GetSimple+BackEnd.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;185&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3w9QnEAiTfg9xPZ1ag2s1aaKamDbWuhDgpqKX4RAR4HDw9jQQVZhcyMDlthouGLPWzbA6zZ1Vl-KFIDbmhN6_voDW7goOtyLhsHX36_Du8rZgqdRxdcFU6GTXmNHwR02D7FEbxylBI2g/s400/GetSimple+BackEnd.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Backend de GetSimple CMS&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Este tiene la particularidad de reunir los puntos que me interesaban,especialmente de una manera no problematica para un usuario nuevo, y almacena cada página en un XML separado, permitiendo definir los Meta Description y&amp;nbsp; Keyword, junto con el PHP dependendiendo de un simple Plugin (&lt;b&gt;&lt;a href=&quot;http://get-simple.info/extend/plugin/exec-php/17/&quot; target=&quot;_blank&quot;&gt;Exec-PHP&lt;/a&gt;&lt;/b&gt;), que nos habilita a insertarlo sin problemas ni &quot;tags&quot; raros (al menos desde el XML). &lt;br /&gt;
&lt;br /&gt;
También pude definir mi propia Template, junto con 2 versiones para las páginas: la versión Buscador y la Normal. Una que posee todos los JavaScripts y Estilos que requiere la Página de &quot;Inicio&quot;, y la otra es para dejar mas limpio y rápido el código para el resto de las Secciones que no lo necesitan!.&lt;br /&gt;
&lt;br /&gt;
Esto es muy útil, porque no solo aligera la página dependiendo la Sección, sino que evita que un Programador escriba código &quot;según sea el Caso&quot;:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;If ($paginaDeInicio){
    .... 
}
else{
    ...
}&lt;/span&gt;&lt;/b&gt;
&lt;/pre&gt;
&lt;br /&gt;
Código asqueroso e ineficiente como este de arriba, se evita teniendo definida la Template para cada caso ;).&lt;br /&gt;
&lt;br /&gt;
Asi que en un par de horas, pasé de tener un choclo en un único Archivo que llamaba a un par de Scripts de PHP a tener un Sitio funcional y con mejor rendimiento jejjee ;).&lt;br /&gt;
&lt;br /&gt;
Dejo bien aclarado que lo recomiendo a este CMS, tiene como bonus que uno puede hacer Backups del Sitio, soporte de Sitemaps y otras cosas básicas.&lt;br /&gt;
&lt;br /&gt;
Tal vez otros se sorprendan de mi probé análisis o mi asombro, pero es que vengo de usar (de años) CMSimple XH, y antes usaba su versión original, y era tan simple que no tenia ni Sitemaps y no soportaba PHP incrustado en sus páginas.&lt;br /&gt;
&lt;br /&gt;
También vale aclarar que tengo la manía de usar estos CMS desde un Editor de código (&lt;a href=&quot;http://www.geany.org/&quot; target=&quot;_blank&quot;&gt;Geany&lt;/a&gt;), no suelo usar el Backend salvo para definir una &quot;Nueva Pagina&quot;, esto me permite incrustar PHP puro sin drama ;). Aclaro por si alguien se baja el GetSimple y no logra ejecutar un simple &lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;echo &quot;Hola&quot;;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/5555890657675175366/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/07/getsimple-un-cms-lite-muy-completo.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/5555890657675175366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/5555890657675175366'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/07/getsimple-un-cms-lite-muy-completo.html' title='GetSimple: un CMS Lite muy completo'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3w9QnEAiTfg9xPZ1ag2s1aaKamDbWuhDgpqKX4RAR4HDw9jQQVZhcyMDlthouGLPWzbA6zZ1Vl-KFIDbmhN6_voDW7goOtyLhsHX36_Du8rZgqdRxdcFU6GTXmNHwR02D7FEbxylBI2g/s72-c/GetSimple+BackEnd.jpg" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-8310854913501722196</id><published>2012-07-13T17:26:00.000-03:00</published><updated>2012-07-16T13:36:26.893-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="webs"/><category scheme="http://www.blogger.com/atom/ns#" term="wikipedia"/><title type='text'>wikiBuscador: un Motor de Busquedas para Wikipedia</title><content type='html'>Lo que es estar algo al dope + intentar probar algo, eso da como resultado un Motor de Búsquedas (de Google) para la Wikipedia en Español:&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAcr4b1MiqUqHsCPtdBKHKFKD4bdmIhcwSOBxgwK3gIqTEHFpeFSzmicAzJYC9osxf3Ez4J5fI4rbp0ciayy2sc6t_QtlQc58RhrGU21rZlah0U3I7YTG2c7cQoapIW89QLLqaMBR9CF8/s1600/wikibuscador+resultados.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;251&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAcr4b1MiqUqHsCPtdBKHKFKD4bdmIhcwSOBxgwK3gIqTEHFpeFSzmicAzJYC9osxf3Ez4J5fI4rbp0ciayy2sc6t_QtlQc58RhrGU21rZlah0U3I7YTG2c7cQoapIW89QLLqaMBR9CF8/s400/wikibuscador+resultados.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;wikiBuscador mostrando Resultados de Linux&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
La motivación vino inicialmente por mis criticas a las Redirecciones de Wikipedia + El buscador propio que a veces no encuentra el articulo deseado en el primer intento. Se me ocurrió asi, tener un Motor de Búsqueda que este optimizado para Wikipedia en Español, esto es:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Soporte de Sinónimos&lt;/li&gt;
&lt;li&gt;Soporte de sobreescritura de Búsquedas: uno escribe &quot;Cancha de River&quot;&amp;nbsp; y debería buscar &quot;Estadio de River&quot;&lt;/li&gt;
&lt;li&gt;Cambiar el &quot;Ranking&quot; de resultados de Google, según sea una Categoría, Anexo, etc &lt;/li&gt;
&lt;/ul&gt;
Ahora bien con las primeras 2 opciones, pretendo voltear las Redirecciones &quot;innecesarias&quot;&amp;nbsp; que posee Wikipedia, y asi por ejemplo ver de que forma se puede redireccionar a un usuario tras tipiar una consulta al Articulo deseado!. Es dificil, y tal vez no sea 100% perfecto, pero al menos intentaría bajar las 1.300.000 redirecciones existentes en su mayoría por acentos y otros símbolos, e incluso por distintas formas de escribir lo mismo!&lt;br /&gt;
&lt;br /&gt;
Ahora por el momento solo está &quot;implementado&quot; la parte de la interfaz gráfica. Lo mas novedoso es que cada Articulo mostrado como Resultado es consultado con la API de Wikipedia y muestra su Calificación, Ultima modificación y algun dato más.&lt;br /&gt;
&lt;br /&gt;
En cuanto a la configuración interna del Motor aun no toque mucho, pero tengo la data como para hacerlo: Todas las Redirecciones con sus títulos Apuntados ;). De Ahi puedo sacar los Sinónimos y configurar las Sobreescrituras.&lt;br /&gt;
&lt;br /&gt;
Aclaro que los Motores de Búsqueda tienen Limites, en cuanto a la carga de Datos, pero eso estará por verse como rebuscarselas ;).&lt;br /&gt;
&lt;br /&gt;
Despues esta el lado del que el Motor sea Abierto!. Esto es si un Usuario quiere tenerlo en su blog, puede hacerlo, o bien usarlo con la API de Google!.&lt;br /&gt;
&lt;br /&gt;
Yo creo que algo así puede ser&amp;nbsp; beneficioso tanto para el que busca info, como así también para evitar las Redirecciones dentro de la Wikipedia.&lt;br /&gt;
&lt;br /&gt;
Lo mas importante es que&amp;nbsp; esta página es de Pruebas, y en caso de que no sirva para lo pensado, por lo menos deja esa enseñanza ;) jejeje... y uno sabe que tiene que buscar la solución de otra forma.&lt;br /&gt;
&lt;br /&gt;
Por último la url es &lt;a href=&quot;http://www.wikibuscador.com.ar,/&quot; target=&quot;_blank&quot;&gt;www.wikiBuscador.com.ar,&lt;/a&gt; la interfaz esta hecha con (Twitter) Bootstrap . Por ahora falta mucho por hacer y corriendo sobre un hosting gratuito (inestable) :D.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/8310854913501722196/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/07/wikibuscador-un-motor-de-busquedas-de.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/8310854913501722196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/8310854913501722196'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/07/wikibuscador-un-motor-de-busquedas-de.html' title='wikiBuscador: un Motor de Busquedas para Wikipedia'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAcr4b1MiqUqHsCPtdBKHKFKD4bdmIhcwSOBxgwK3gIqTEHFpeFSzmicAzJYC9osxf3Ez4J5fI4rbp0ciayy2sc6t_QtlQc58RhrGU21rZlah0U3I7YTG2c7cQoapIW89QLLqaMBR9CF8/s72-c/wikibuscador+resultados.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-9044146606441664596</id><published>2012-07-04T18:55:00.001-03:00</published><updated>2012-07-04T18:55:11.764-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash_script"/><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Eliminar con Bash los acentos de un texto UTF8/UNICODE</title><content type='html'>Recientemente andaba lidiando con este tema!. ¿Como reemplazar las vocales acentuadas por sus respectivas sin acento?. En mi caso no me fue posible reemplazarlos porque al estar el texto en UTF8 este usa Unicode para los acentos :(, y al intentar reemplazar alguno no me fue posible detectarlo o bien el reemplazo generaba problemas de codificación.&lt;br /&gt;
&lt;br /&gt;
Mi solución quería que fuera usando bash!, nada de perl, ni awk...etc.&lt;br /&gt;
&lt;br /&gt;
Buscando información di con dos soluciones que son útiles para dos contextos diferentes:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;b&gt;T&lt;/b&gt;&lt;b&gt;exto sin Caracteres Especiales.&lt;/b&gt; como puede ser un texto, mail escrito por uno etc, donde uno no usa &quot;símbolos raros&quot;.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Texto con caracteres Especiales&lt;/b&gt;: todos aquellos que sean de otros idiomas: griego, japones, o bien signos de ámbitos matemáticos o financieros (por poner un ejemplo).&lt;/li&gt;
&lt;/ol&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Para el primero, la solución mas fácil es convertir del formato en que esté a ascii e indicando que se desea que los caracteres que no existan en este sean reemplazados por sus similares. Esto&amp;nbsp; se logra haciendo:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
&lt;b&gt;iconv -f &lt;i&gt;CODIFICACION_ORIGINAL&lt;/i&gt; -t ascii//TRANSLIT&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Donde &lt;i&gt;CODIFICACIÓN_ORIGINAL&lt;/i&gt; es la usada por el archivo/texto de entrada. Generalmente en linux se trata del&lt;b&gt; UTF-8&lt;/b&gt;. iconv, es el comando por excelencia para hacer conversiones de una codificación a otra ;).&lt;br /&gt;
&lt;br /&gt;
Esta solución tiene el defecto de que si el texto tiene caracteres especiales, los mismos pueden ser reemplazados por otros que nada tienen que ver, así podría ocurrir que el símbolo del Euro (&lt;b&gt;€&lt;/b&gt;) sea convertido en una &quot;E&quot;, por poner un ejemplo burdo.&lt;br /&gt;
&lt;br /&gt;
Dicho de otra forma, &lt;b&gt;no es seguro a nivel binario que se haga un reemplazo efectivo&lt;/b&gt;!.&lt;br /&gt;
&lt;br /&gt;
Para el segundo caso, cuando tenemos un simbolos raros, y queremos asegurarnos de que se haga bien las cosas (seguridad binaria) podemos usar cualquier comando que reemplace los caracteres de forma segura.&lt;br /&gt;
&lt;br /&gt;
A mi se me ocurrió usar sed, de esta forma&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
&lt;b&gt;sed &#39;s/B&lt;i&gt;YTES_EN_HEXADECIMAL&lt;/i&gt;/&lt;i&gt;VOCAL&lt;/i&gt;/g&#39;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Donde:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;BYTES_EN_HEXADECIMAL: indicamos los bytes (Unicode usa 2 por carácter) de la siguiente forma: \xCODIGO\xCODIGO. Asi por ejemplo si sabemos que &quot;&lt;b&gt;ó&lt;/b&gt; &quot; es&lt;b&gt; &lt;i&gt;0xc3 0xb3&lt;/i&gt;&lt;/b&gt; en hexadecimal, deberíamos poner &lt;b&gt;\xc3\xb3&lt;/b&gt;. &lt;/li&gt;
&lt;li&gt;VOCAL: es la vocal que deseamos insertar.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Ahora al ser algo engorroso reemplazar &quot;áéíóú&quot;&amp;nbsp; y sus respectivas mayúsculas ÁÉÍÓÚ, dejo a continuación el contenido de un archivo para que sed procese los acentos y los reemplace:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;color: #6aa84f;&quot;&gt;s/\xc3\xa1/a/g
s/\xc3\xa9/e/g
s/\xc3\xad/i/g
s/\xc3\xb3/o/g
s/\xc3\xba/u/g
s/\xc3\x81/A/g
s/\xc3\x89/E/g
s/\xc3\x8d/I/g
s/\xc3\x93/O/g
s/\xc3\x9a/U/g
&lt;/pre&gt;
&lt;br /&gt;
Lo anterior no son ni mas ni menos que las instrucciones, que si uno lo guarda en un archivo, por ejemplo &quot;acentos.sed&quot;, podríamos hacer simplemente esto:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
sed -f acentos.sed&lt;/div&gt;
&lt;br /&gt;
Y obtenemos el reemplazo de los acentos sin tipiar tanto.&lt;br /&gt;
&lt;br /&gt;
Espero que alguno le sirva, y si tienen alguna alternativa que la comenten sin drama ;)</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/9044146606441664596/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/07/eliminar-con-bash-los-acentos-de-un.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/9044146606441664596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/9044146606441664596'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/07/eliminar-con-bash-los-acentos-de-un.html' title='Eliminar con Bash los acentos de un texto UTF8/UNICODE'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-2244167948365179421</id><published>2012-07-03T17:19:00.001-03:00</published><updated>2012-07-03T17:19:05.194-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="wikipedia"/><title type='text'>Las Redirecciones de Wikipedia</title><content type='html'>Hace un año aproximadamente que me había registrado como usuario de Wikipedia. Una de las principales motivación fue dar un mano y para aquel tiempo andaba con una idea en mente de crear una herramienta que procese los Backups de varios GBs que contienen todos los Artículos.&lt;br /&gt;
&lt;br /&gt;
Algo que descubrí procesándolos fue la inmensa cantidad de Redirecciones: Paginas especiales que redirigen a otras. Así por ejemplo si uno tipea en el buscador de Wikipedia &lt;i&gt;Chaplin&lt;/i&gt; [&lt;a href=&quot;http://es.wikipedia.org/w/index.php?title=Chaplin&amp;amp;redirect=no&quot; target=&quot;_blank&quot;&gt;ver pagina especial&lt;/a&gt;] nos redirige a &lt;i&gt;Charles Chaplin&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
Este es un caso simple de redirección, y simple por la &quot;motivación&quot; de crear una página que redirige a Charles Chaplin. Hay otros casos que, en términos de informática,&amp;nbsp; deberían ser tratados de otra forma y no por una pagina que apunta a otra. Estos casos son uso de Acentos e incluso de Caracteres Especiales (incluyendo los de otros idiomas). Y otras en las cuales son reducciones de otras, por ejemplo las redirecciones del Articulo &quot;Juegos Olímpicos de Londres 2012&quot; :&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Juegos Olímpicos de 2012 &lt;/li&gt;
&lt;li&gt;Juegos Olimpicos de Londres 2012&lt;/li&gt;
&lt;li&gt;Londres 2012&lt;/li&gt;
&lt;li&gt;Juegos Olimpicos de 2012&lt;/li&gt;
&lt;li&gt;Juegos Olímpicos Londres 2012&lt;/li&gt;
&lt;li&gt;Juegos Olimpicos Londres 2012&lt;/li&gt;
&lt;li&gt;Juegos Olímpicos de verano 2012&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
Donde se ve que hay redirecciones que son recortes/reducciones como &quot;Londres 2012&quot; , &quot;Juegos Olimpicos de 2012&quot;. No digo que esten todas mal, y justo para este caso solo hay 7 paginas en total que apuntan a dicho articulo, pero que pasa si hay 20, 50 o 100 redirecciones a un mismo Articulo?.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Muchas veces esos&amp;nbsp; casos, por lo que vi son producto exagerado de:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Uso de Acentos&lt;/li&gt;
&lt;li&gt;Reducciones&lt;/li&gt;
&lt;li&gt;Sinónimos, donde incluyo los regionalismos (localismos) o los nombres comunes de especies.&lt;/li&gt;
&lt;li&gt;Subtemas, escritos o a desarrollar a futuros, contenidos dentro del Articulo apuntado.&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;De los items nombrados arriba el mas natural es el de los Sinónimos, y el de los Subtemas. Aunque los subtemas como podemos suponer que &quot;Poblacion de Argentina&quot;, apunte al articulo &quot;Argentina&quot;, por momentos esta bueno, y por momentos no. Primero ya que no se escribe un tema a parte estaría bueno que se apunte al Subtema específico. Esto permite al usuario encontrar tras tipear lo que necesitaba, y no dejarlo a la deriva de buscar dentro del articulo. Hay otras situaciones donde palabras muy especificas apuntan a dicho articulo y este contiene poca o nula información. Estos casos considero que son algo innecesarios. Un ejemplo de este ultimo es el caso de este articulo &lt;a href=&quot;http://es.wikipedia.org/wiki/Anexo:Estaciones_de_Metrob%C3%BAs_de_la_Ciudad_de_M%C3%A9xico&quot; target=&quot;_blank&quot;&gt;Anexo:Estaciones de Metrobús de la Ciudad de México&lt;/a&gt;. Si bien el articulo contiene algo de información de cada estación, alguien se tomo el trabajo de crear unas 400 redirecciones en total donde cada estación apunta a dicho Articulo. Aclaro que no tiene 400 estaciones, sino que por cada redireccion agregaron varias por el uso de Acentos.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Me tome el trabajo de procesar un XML-Dump (Backup) de la Wikipedia en Español, que es bastante reciente (11/06/2012),&amp;nbsp; donde se incluyen todos los artículos más las páginas especiales como son Ayuda, Anexos, Categorias,etc, pero que no incluye las paginas de Usuario y su correspondiente Discusión (debate). El resultado que me arrojo fue que existen &lt;b&gt;2.508.188&lt;/b&gt; en total, pero &lt;b&gt;1.346.566&lt;/b&gt;&amp;nbsp; son solo redirecciónes. Esto me motivo a crear esta entrada, no para criticar las redirecciones, sino para que se reflexione mas que nada entre todos que casos son necesarios y como resolver ciertas cosas que pueden ser &quot;calculadas&quot;. Además que &lt;br /&gt;
&lt;br /&gt;
El tema de depender de paginas que redireccionan, es que pasa cuando se cambia el Articulo Apuntado, por ejemplo si&amp;nbsp; el Articulo de las Estaciones de Mexico se llamara de otra forma, 400 redirecciones deberían actualizarse. Dicho de otra forma, como se llevaría a cabo el mantenimiento.&lt;br /&gt;
&lt;br /&gt;
Hoy la Wikipedia en Español no posee tantos artículos como la versión Alemana o la Inglesa. Y que pasaría si el día de mañana cuadruplicamos la cantidad de paginas escritas, cuantas redirecciones habría?. Eso es algo también para pensar, mas que nada si uno ve que el &lt;b&gt;53%&lt;/b&gt; del total de páginas citadas arriba, son solo redirecciones&lt;br /&gt;
&lt;br /&gt;
Como yapa dejo un &lt;a href=&quot;https://docs.google.com/spreadsheet/pub?key=0AgVCWTH6HNrYdHlta0FMbWRjcWdaM0xHZzNCRjI0YUE&amp;amp;output=html&quot; target=&quot;_blank&quot;&gt;Listado que contiene el Top 5.000 Artículos Apuntados&lt;/a&gt;.&amp;nbsp; La motivación es ver cuales son los Artículos Apuntados y analizar un poco el porque de cada caso.&lt;br /&gt;
&lt;br /&gt;
El listado esta basado del XML-Dump y fue procesado con Bash :). Creo que no existe una pagina de Wikipedia que informe cuales son los Articulo más apuntados, asi que puede ser útil para aquel que buscaba dicha respuesta.</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/2244167948365179421/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/07/las-redirecciones-de-wikipedia.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/2244167948365179421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/2244167948365179421'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/07/las-redirecciones-de-wikipedia.html' title='Las Redirecciones de Wikipedia'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-3719639277918712769</id><published>2012-06-24T19:15:00.001-03:00</published><updated>2012-06-24T19:15:40.583-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="humor"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>Mr Bean va al Cine a ver Freddy</title><content type='html'>Pequeña parte de un Capitulo de Mr Bean (el 3ro) donde va con su novia al cine a ver Freddy jejee&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;413&quot; src=&quot;http://www.youtube.com/embed/qvfLWEoLhDY&quot; width=&quot;550&quot;&gt;&lt;/iframe&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Como me encanta Mr Bean!, es un personaje que encierra al Loco, competitivo, Ingenuo, Bueno, Malo,etc..etc todo en uno! jejejej :D:D.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/3719639277918712769/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/06/mr-bean-va-al-cine-ver-freddy.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/3719639277918712769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/3719639277918712769'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/06/mr-bean-va-al-cine-ver-freddy.html' title='Mr Bean va al Cine a ver Freddy'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/qvfLWEoLhDY/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-6512353243582693101</id><published>2012-06-21T22:40:00.003-03:00</published><updated>2012-06-24T19:46:19.845-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash_script"/><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Pequeño servicio con Bash para transferir Archivos usando un Navegador</title><content type='html'>Por ahí es un poco molesto pasar un archivo a alguien, siendo que esta conectado a la Red Local, por ejemplo con Wifi, o incluso Internet y no tener algo rápido como para hacerlo. La típica ¿Como te lo paso? :D.&lt;br /&gt;
&lt;br /&gt;
Estos días, di con un viejo amor que hace aaañooss que no usaba: Netcat (nc) :D. Una pequeña utilidad que nos permite abrir puertos y escuchar/mandar datos!. No es un Servidor!, simplemente abre sockets, los &quot;puertos&quot; en una maquina y puede &quot;escucharlos&quot;. &lt;br /&gt;
&lt;br /&gt;
Viendo un poco de data, y ejemplos di con uno que con simple:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
cat ARCHIVO | nc -l PUERTO&lt;/div&gt;
&lt;br /&gt;
logramos que quien se conecte en MI_IP:PUERTO, reciba los bytes de dicho Archivo. Estupendo si sabemos que estamos recibiendo de forma binaria. Y podemos volver a convertirlo haciendo algo así:&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
nc IP PUERTO &amp;gt; ARCHIVO&lt;/div&gt;
&lt;br /&gt;
Ahora lo que yo quería hacer es poder, enviar un &lt;u&gt;Archivo como corresponde, y que el cliente no tenga que hacer nada complicado ni saber que le enviamos&lt;/u&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Se me ocurrió simular con Netcat una respuesta HTTP,&lt;/b&gt; protocolo por excelencia para transferir archivos y mas que&amp;nbsp; nada por que el único requisito es tener un Navegador ;), cosa que hoy en día cualquier plataforma (Movil/Tableta/PC) con cualquier OS lo tienen!.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Fue así que di con un ejemplo de NetCat en la Wikipedia que me ilumino!,&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
{ echo &quot;HTTP/1.1 200 OK.....&quot;; cat ARCHIVO; } | nc -l PUERTO&lt;/div&gt;
&lt;br /&gt;
Una vez obtenido esto, tuve que adaptarlo para enviar un Archivo que se pase por parámetro y que incluya la data correspondiente para que en Navegador lo detecte como un Archivo que se quiere Abrir : La típica ventanita de Abrir/Guardar. Esto se logra con el Campo Content-Disposition ;).&lt;br /&gt;
&lt;br /&gt;
Fue asi que hice la prueba con una PC Windows con Wifi conectada a la Red Local, y transferí un video de 67 MB! :D, y funciono lo mas bien!.&lt;br /&gt;
&lt;br /&gt;
Aunque parezca mentira agregue mas campos (HTTP Headers) al Paquete y para una prueba de envio de un Video de Richard Stallman (20 MB), se ven así:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
HTTP/1.0 200 OK&lt;br /&gt;
Connection: close&lt;br /&gt;
Server: BashServer 0.1 @pcgon&lt;br /&gt;
Date: Thu, 21 Jun 2012 20:16:40 -0300&lt;br /&gt;
Content-Type: application/ogg&lt;br /&gt;
Content-Disposition: attachment; filename=&quot;Richard Stallman.ogv&quot;;&lt;br /&gt;
Last-Modified: Wed, 14 Sep 2011 18:37:55 -0300&lt;br /&gt;
Content-Length: 21726974&lt;/div&gt;
&lt;br /&gt;
Y el Resultado es:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ-TBLsaokWP9cFOnRG-uI1N1_vdds6GuTZ6Qldb2ybuIigf0sMysorOG3NCUyttNoqQaQOuYz3petJAG1wGeb4WVy1pagsb0WVf1G-VNFKxzz6xiogMbn0zxFeDQEp9krFxEA7CiGBYg/s1600/Enviando+Archivo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ-TBLsaokWP9cFOnRG-uI1N1_vdds6GuTZ6Qldb2ybuIigf0sMysorOG3NCUyttNoqQaQOuYz3petJAG1wGeb4WVy1pagsb0WVf1G-VNFKxzz6xiogMbn0zxFeDQEp9krFxEA7CiGBYg/s400/Enviando+Archivo.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Tras la prueba me puse a escribir un BashScript!!, así uno le pasa un archivo que quiera y lo envíe!. De yapa puede elegir un puerto a utilizar!, pero por default es el de los Servidores Web :D.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;El Script levanta este servicio, solo para una conexión!&lt;/b&gt;. Esto tiene lo bueno que apenas se conecta el Cliente (http://IP o http://IP:PUERTO), se realiza la transferencia y el Servicio desaparece!. Osea le da la caracteristica de ser &quot;Espontáneo&quot;, uno le pasa un Archivo se levanta un &quot;pseudo Servicio HTTP&quot;, hace su trabajo y listo!!: no levantamos un Servidor, no movimos el Archivo que deseamos transferir, no dijimos conectate a http://IP/ARCHIVO_A_BAJAR, y no dimos de baja al Servidor una vez que hizo su tarea. Ahora esto tiene una desventaja a la hora de que no se transfiriera correctamente, y que el Cliente intente volver a descargarlo. Pero de alguna manera se me va a ocurrir al menos checkear que se haya transferido el Archivo jejeje ;).&lt;br /&gt;
&lt;br /&gt;
Esta &quot;solución&quot;, es la alternativa a tener instalado un Apache o algo así, con la yapa de no tener que hacer los pasos que nombraba antes: levantarlo, mover archivo.... etc,etc. Lo cual no quita que se pueda crear un Script, pero lo que apuntaba era a no depender&amp;nbsp; de un software tan puntual. En cambio netcat esta presente en la gran mayoría de los derivados de Debian ;), y si se necesita instalarlo no es graan drama jee.&lt;br /&gt;
&lt;br /&gt;
El BashScript, llamado BashServer, lo dejo publicado &lt;a href=&quot;https://rapidshare.com/files/4234841277/bashServer.sh&quot; target=&quot;_blank&quot;&gt;aca&lt;/a&gt; y su código para visualizarlo online &lt;a href=&quot;https://docs.google.com/document/pub?id=13u5aSHhCOSfs7Kla4DXcLcHaDmvtZpLGhnodV4ykTXk&quot; target=&quot;_blank&quot;&gt;por aca&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Es fácil de usarlo: &lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;bashServer ARCHIVO [PUERTO]&lt;/span&gt;, cualquier cosa al llamarlo sin parámetros muestra la &quot;Ayuda&quot;.&lt;br /&gt;
&lt;br /&gt;
Cuando arranca muestra nuestras IPs, tanto la pública (Internet),gracias a &lt;a href=&quot;http://ifconfig.me/&quot; target=&quot;_blank&quot;&gt;http://ifconfig.me&lt;/a&gt;, como la Local jeje. En el caso de que le indiquemos un puerto se checkea que esté disponible. &lt;br /&gt;
&lt;br /&gt;
Y lo que se visualiza tras lanzarlo y realizarse la trasferencia es:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Enlaces con su IP para usar:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;http://localhost&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;http://192.168.1.101&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;http://186.137.XXX.XX&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Aguardando a que se conecte el Cliente...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Connection from &lt;/span&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;192.168.1.100&lt;/span&gt;&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; port 80 [tcp/www] accepted&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Fin de transferencia&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Donde ese &quot;&lt;i&gt;Connection From... &lt;/i&gt;&quot; por ahora proviene del mismo netcat, ya pronto lo estaré castellanizando :D:D. Y si se indico algún puerto, se visualiza en los enlaces ;).&lt;br /&gt;
&lt;br /&gt;
Seguramente estaré haciendo una versión con GUI, usando Zenity!, ni mas ni menos ;). Y mejorandolo un poco para que funcione mejor y sea mas compatible ;), mas que nada voy a probarlo después con algún Smartphone prestado jajaj :D:D.&lt;br /&gt;
&lt;br /&gt;
Cualquiera puede criticar/modificar/comentar algo del Script ;)...eso no hace falta decirlo!!.&lt;br /&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc; color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;b&gt;Actualización 24/06/2012:&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Probé el BashServer en un&lt;b&gt; Nokia E5-00&lt;/b&gt; y funciona lo mas bien!!. Así que para cualquier otro móvil de la familia de Nokia que tenga Symbian S60 o bien un navegador medianamente maduro que soporte HTML como corresponde deberia andar lo mas bien.&lt;br /&gt;
&lt;br /&gt;
Próximamente estaré publicando la version que incluya la posibilidad de Enviar un Archivo desde Un Dispositivo hacia nuestra PC con Linux, usando el Navegador ;)...jejeje. No se si indicar al BashServer que actue como Receptor o Emisor de Archivos, o bien separarlos en dos bashcript distintos!.&lt;br /&gt;
&lt;br /&gt;
No me olvidare de agregar una versión con Interfaz gráfica (ultra austera :D) con Zenity.</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/6512353243582693101/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/06/pequeno-servicio-con-bash-para.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/6512353243582693101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/6512353243582693101'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/06/pequeno-servicio-con-bash-para.html' title='Pequeño servicio con Bash para transferir Archivos usando un Navegador'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ-TBLsaokWP9cFOnRG-uI1N1_vdds6GuTZ6Qldb2ybuIigf0sMysorOG3NCUyttNoqQaQOuYz3petJAG1wGeb4WVy1pagsb0WVf1G-VNFKxzz6xiogMbn0zxFeDQEp9krFxEA7CiGBYg/s72-c/Enviando+Archivo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-5979734650444407304</id><published>2012-06-18T20:49:00.000-03:00</published><updated>2012-06-18T20:49:03.796-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash_script"/><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>BashScript para cortar videos usando FFMPEG</title><content type='html'>Bueno andaba recientemente necesitando algo para cortar videos, y vi que con el fabuloso FFMPEG (que todo lo puede) se puede hacer de la siguiente forma:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;b&gt;ffmpeg -i ARCHIVO_ORIGINAL -sameq -t DURACIÓN -ss INICIO ARCHIVO_DESTINO&lt;/b&gt;
&lt;/div&gt;
&lt;br /&gt;
Donde:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;INICIO&lt;/b&gt;: indica el tiempo de inicio ya sea en formato hh:mm:ss o bien en segundos&lt;/li&gt;
&lt;li&gt;&lt;b&gt;DURACIÓN&lt;/b&gt;: se escribe igual que INICIO&lt;/li&gt;
&lt;li&gt;-&lt;b&gt;sameq&lt;/b&gt;: significa la misma calidad, haciendo referencia a que utilice (prácticamente) los mismos codecs con la misma calidad que el Archivo Original para en nuevo archivo.&lt;/li&gt;
&lt;/ul&gt;
Si no les llega a funcionar lo anterior, fíjense si tienen el ffmpeg medianamente actualizado!!, porque a mi me paso eso y tras una actualización de toque anduvo. Sino uno se vuelve loco probando formas de escribir los parámetros :D:D.&lt;br /&gt;
&lt;br /&gt;
Y bueno como odio acordarme de parámetros y quería tener algo medianamente con GUI (gracias a Zenity) y/o bien puro de consola se me ocurrió escribir un Bash Script que me ayude a la hora de usarlo ;). Es como un Wrapper simple:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZp9g8wwScr0fYpOyqiaCIufYaWybWPRDSnZb5x5Jq7jckBjMxfIuyUCmPiH-7iBjJh-X9bQltWLwXm7bQkM3jlDC1qY5-MyuHmNO8p3xfKksUP7y_THm3FB-LZCbnbn4FGCr6gXtJ27Y/s1600/CortarVideo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZp9g8wwScr0fYpOyqiaCIufYaWybWPRDSnZb5x5Jq7jckBjMxfIuyUCmPiH-7iBjJh-X9bQltWLwXm7bQkM3jlDC1qY5-MyuHmNO8p3xfKksUP7y_THm3FB-LZCbnbn4FGCr6gXtJ27Y/s1600/CortarVideo.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Versión GUI&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnGYGd8GkTC9JQObttrVIxcfeECP2AEGm2DguXak96XAxongWCdfjKN1NlDlIvDmYaaOhuIf2bJVnlvZ4vxlAinNVyIyOZeRgr1fNFDYe9IWg6-Vdx1Bhi4gp1w-5WqdGb4d_vv_wwMoM/s1600/CortarVideo+consola.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;185&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnGYGd8GkTC9JQObttrVIxcfeECP2AEGm2DguXak96XAxongWCdfjKN1NlDlIvDmYaaOhuIf2bJVnlvZ4vxlAinNVyIyOZeRgr1fNFDYe9IWg6-Vdx1Bhi4gp1w-5WqdGb4d_vv_wwMoM/s400/CortarVideo+consola.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Versión Consola&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Si uno lanza el Script sin parámetros, desde consola o bien cuando le damos click ;), usa Zenity para solicitar la información de la siguiente forma:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Pedir un archivo de video.&lt;/li&gt;
&lt;li&gt;Pedir el tiempo de Inicio (hh:mm:ss).&lt;/li&gt;
&lt;li&gt;Pedir el tiempo de Fin  (hh:mm:ss). Y no confundir con el tiempo de duración, acá no hay que calcularlo ;).&lt;/li&gt;
&lt;li&gt;Solicitar al usuario donde guardar el archivo y con que nombre ;).&lt;/li&gt;
&lt;li&gt;Luego muestra un pequeña barra de progreso que dependiendo de la versión de Zenity les andará bien o no jajaja :D, pero es como la que se muestra arriba en imagen.&lt;/li&gt;
&lt;/ol&gt;
Y listo!. Aclaro que no tiene mucha &quot;logica&quot;&amp;nbsp; como para comprobar si pusieron un tiempo de inicio mayor que el de Fin y viceversa, eso queda a cuestión de cada uno: o prestamos atencion o bien cambiamos el script ;) jejeje.&lt;br /&gt;
&lt;br /&gt;
Por otro lado se puede ejecutar el Script en consola, útil para batch processing (por ejemplo) o para simpatizantes de la consola (me incluyo):&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
&lt;b&gt;cortarVideo.sh ARCHIVO_ORIGINAL TIEMPO_INICIO TIEMPO_FIN ARCHIVO_DESTINO&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Para mostrar la &quot;ayuda&quot; (la imagen capturada) basta con poner menos de 4 parámetros jejee: sii no tenia ganas de poner que sea &quot;-help&quot; lo que lo accionara y al igual que la &quot;versión GUI&quot; no tiene mucha lógica de comprobación (salvo que exista el archivo).&lt;br /&gt;
&lt;br /&gt;
Les dejo el codigo para descargar &lt;a href=&quot;https://rapidshare.com/files/1457502792/cortarVideo.sh&quot; target=&quot;_blank&quot;&gt;acá&lt;/a&gt; y si quieren &lt;a href=&quot;https://docs.google.com/document/pub?id=11Nvj62xtwpC4NXIzMDiauDb919fC8Hf68chzm0Ma3mc&quot; target=&quot;_blank&quot;&gt;verlo online &lt;/a&gt;pueden hacerlo gracias a GoogleDocs.&lt;br /&gt;
&lt;br /&gt;
Cualquiera puede mejorarlo y compartirlo obviamente sin drama ;).&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/5979734650444407304/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/06/bashscript-para-cortar-videos-usando.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/5979734650444407304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/5979734650444407304'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/06/bashscript-para-cortar-videos-usando.html' title='BashScript para cortar videos usando FFMPEG'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZp9g8wwScr0fYpOyqiaCIufYaWybWPRDSnZb5x5Jq7jckBjMxfIuyUCmPiH-7iBjJh-X9bQltWLwXm7bQkM3jlDC1qY5-MyuHmNO8p3xfKksUP7y_THm3FB-LZCbnbn4FGCr6gXtJ27Y/s72-c/CortarVideo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-6193763734725047431</id><published>2012-06-09T00:18:00.000-03:00</published><updated>2012-06-09T01:44:36.755-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash_script"/><category scheme="http://www.blogger.com/atom/ns#" term="greasemonkey"/><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>¿Como saber a donde apunta un Link Acortado?</title><content type='html'>En la entrada voy a comentar algo que muchos en programación ya saben, pero tal vez alguno que otro no...y de paso sirve para incentivar a &quot;integrar&quot; data de estos links famosos en cualquier lado: Navegadores, Celu y porque no el mismo Sistema Operativo (muy exagerado,no? jaja:D).&lt;br /&gt;
&lt;br /&gt;
Cuando uno usa alguno de los Servicios como Bit.ly, goo.gl,etc, lo que hacen a un bajo nivel (al de los protocolos) es decirle a quien se conecta (Navegador/Software) que el contenido se encuentra en otra ubicación. Esto se puede leer si uno logra acceder a la Respuesta del Servicio (Servidor), lo cual dependiendo del Lenguaje/Entorno puede ser fácil o un poco mas complicado.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Si me conecto a &lt;b&gt;goo.gl/kXRz8&lt;/b&gt; ,que apunta a este blog, el Servidor responde inmediatamente con un simple y corto &quot;mensaje&quot; (HTTP Request):&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
HTTP/1.1 &lt;b&gt;301&lt;/b&gt; &lt;b&gt;Moved Permanently
&lt;/b&gt;&lt;br /&gt;
Content-Type: text/html; charset=UTF-8
&lt;br /&gt;
&lt;i&gt;...(hay varios mas)...&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;Location: http://mateware.blogspot.com.ar/
&lt;/b&gt;&lt;br /&gt;
Content-Encoding: gzip
&lt;br /&gt;
&lt;i&gt;...(hay varios mas)...&lt;/i&gt;&lt;/div&gt;
&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Content-Length: 178
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Server: GSE
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
En la respuesta de arriba se ve claramente el destino de dicho link!. Ahora bien cuando uno se conecta a un Servidor cualquiera, este da mucha información mas allá de lo que esperamos ver. Por ejemplo dice que el Pedido es correcto (200 OK), que es correcto pero que el contenido esta en otra parte (30x: Movido Permanentemente, Temporalmente) o bien puede indicarnos que no existe!, el clásico error 404 jeje :D. También puede existir, que se haya producido un error interno del Server,&amp;nbsp; 50x.&amp;nbsp; Ahora esto que es tan trivial para &quot;muchos&quot;, a nivel programación es útil para saber si algo existe y no es erróneo. De que sirve seguir un Link que da error?. Estas respuestas se le llaman Estado/Status.&lt;br /&gt;
&lt;br /&gt;
Sin irme del tema principal analizar el destino de los Links es algo que funciona en la gran mayoría de todos los Servicios de Acortadores de URLs. Digo esto por redirigir a un usuario se puede hacer de muchas formas, pero digamos que la formal es esta.&lt;br /&gt;
&lt;br /&gt;
Ahora: ¿Cómo se hace para acceder a esto desde Bash, Greasemonkey (JS) o bien Java SE?.&lt;br /&gt;
&lt;br /&gt;
Desde Bash es &quot;fácil&quot;, ya hace unos meses comentaba &lt;a href=&quot;http://mateware.blogspot.com.ar/2012/02/usando-wget-para-leer-las-cabeceras.html&quot; target=&quot;_blank&quot;&gt;como hacer que wget muestre en pantalla las cabeceras HTTP&lt;/a&gt; (el mensaje puesto arriba), solo falta filtrar la info que nos interesa así:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
wget -qO- URL_ACORTADA -S 2&amp;gt;&amp;amp;1&amp;gt;/dev/null | grep -i &quot;location&quot; | grep -oE &quot;[^[:space:]]+$&quot;&lt;/div&gt;
&lt;br /&gt;
Y listo!, tenemos la URL apuntada en pantalla!. Esto sirve para cualquier linux, dado que wget viene en el 99.9% de todas las distros jajaa :D. Sino esta Curl, pero ese hay que instalarlo, al menos para derivados de Ubuntu, como Linux Mint.&lt;br /&gt;
&lt;br /&gt;
Ahora en Greasemonkey, esto puede lograrse haciendo una conexión con una interesante función que nos provee: GM_xmlHttpRequest. Esta es el reemplazo de la de JS, y tiene la ventaja que es sutilmente mas amigable y no posee la restricción de hacer consultas &quot;cross-domain&quot;. Todo resumiendolo en un simple ejemplo, que tal vez no sea el mejor jejee:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;// ==UserScript==
...
// ==/UserScript==
function expandirURL(urlrecortada){ 

 GM_xmlhttpRequest({
   method: &quot;GET&quot;,
   url: &quot;http://&quot;+urlrecortada,
   onload: function(respuesta) {
    console.log(respuesta.finalUrl);
   }
 }); 
}

expandirURL(&quot;goo.gl/kXRz8&quot;);&lt;/span&gt;
&lt;/pre&gt;
&lt;br /&gt;
Esto mostrará en la Consola Web, la Url apuntada!. Si queremos saber el estatus podemos obtenerlo consultando &lt;b&gt;respuesta.status&lt;/b&gt;, que nos devolverá el numero (200,404,etc..) o bien el &quot;Texto&quot; (OK, Moved..) con &lt;b&gt;respuesta.statusText&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Y ahora para finalizar un poquito de Java.&lt;br /&gt;
&lt;br /&gt;
En Java existen 2 Objetos muy parecidos a la hora de obtener esta información:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;URLConnection&lt;/b&gt;: que automáticamente sigue las redirecciones (&quot;links apuntados&quot;) y si nos conectamos a una URL Acortada, inmediatamente estaremos navegando por la URL apuntada, o bien&lt;/li&gt;
&lt;li&gt;&lt;b&gt;HttpURLConnection&lt;/b&gt;: Similar al anterior, pero que nos deja setearlo un poco más a bajo nivel (viéndolo para este contexto!!). Al cual le podemos decir No sigas las URLs,&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
Ambos nos devuelven el datos de la conexión, y podríamos usar el segundo!, así simplemente obtenemos la información que nos interesa, y no gastar 1 solicitud de conexión a destino jajaja :D.&lt;br /&gt;
&lt;br /&gt;
Para ambos casos podemos consultar un Campo de la Cabecera HTTP (&quot;Mensaje&quot;)&amp;nbsp; con el método &lt;i style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;getHeaderField&lt;/b&gt;(String)&lt;/i&gt; al cual le pasamos el deseado, en este caso &quot;Location&quot;, y listo!.&lt;br /&gt;
&lt;br /&gt;
Queda resumido en este ejemplo:&lt;br /&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;

public class Main {

    public static  void main (String[] args){
        HttpURLConnection consulta;
        String urlApuntada = null;
        try {
            consulta = (HttpURLConnection) new URL(&quot;http://goo.gl/kXRz8&quot;).openConnection();
            consulta.setInstanceFollowRedirects(false);
            urlApuntada = consulta.getHeaderField(&quot;Location&quot;);
        }
        catch (IOException ex) {
            System.out.println(&quot;Error con la conexion:&quot;+ex.getMessage());
        }

        System.out.println(&quot;URL Apuntada:\t&quot;+ urlApuntada);
    }
}&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
Así que no es tan jodido hacerlo desde Java!, y eso que es más código por lo Estructurado que es que otra cosa :D. Admito que en el ejemplo esta un poco condensada la cosa, no quería declarar varios Objetos de mas! jeje.&lt;br /&gt;
&lt;br /&gt;
Espero que este mini &quot;&quot;tutorial&quot;&quot;, le sirva alguno, más si estaba al horno jajaja :D:D.</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/6193763734725047431/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/06/como-saber-donde-apunta-un-link.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/6193763734725047431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/6193763734725047431'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/06/como-saber-donde-apunta-un-link.html' title='¿Como saber a donde apunta un Link Acortado?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-9188891073421187868</id><published>2012-06-08T20:39:00.000-03:00</published><updated>2012-06-12T00:20:56.677-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="greasemonkey"/><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="webs"/><title type='text'>Links Acronimos:Un intento de hacer links cortos para Twitter</title><content type='html'>Hace 1 año y medio, se me había ocurrido hacer algo para reducir un poco mas los links acortados e incluso algunos de &quot;uso habitual&quot; para Twitter.&lt;br /&gt;
&lt;br /&gt;
La idea consistía en convertir algo como &lt;i&gt;bit.ly/XYZ&lt;/i&gt;, &lt;i&gt;goo.gl/XYZ&lt;/i&gt; y/o &lt;i&gt;fb.me/XYZ&lt;/i&gt; a un formato corto :&lt;b&gt;bl&lt;/b&gt;XYZ :&lt;b&gt;gg&lt;/b&gt;XYZ ó :&lt;b&gt;fb&lt;/b&gt;XYZ, y que eso fuera &quot;convertido de alguna forma&quot; a un Link activo!. Ese formato y propósito es lo que llamé en un momento &lt;b&gt;Link Acrónimo&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
En su momento yo estaba cerrado con Java SE, y lo único que había hecho era &lt;a href=&quot;http://www.youtube.com/watch?v=ULfzZ2ZXXiU&quot; target=&quot;_blank&quot;&gt;una aburrida herramienta que hacia conversiones de un acortado a un Link Acrónimo, y viceversa&lt;/a&gt;, pensando que el día de mañana alguien podría embeberlo para usarlo en algún navegador,etc..&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Nunca supe si esto serviría para los usuarios de Twitter!&lt;/u&gt;, Jamas alguien dijo algo, mas cuando tenia un blog donde comentaba cosas de programación jajaja :D, y&lt;u&gt; siempre me quede con esa intriga&lt;/u&gt;.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Durante todo este tiempo estuve con otras cosas de programación para entretenerme, hasta que di con &lt;b&gt;Greasemonkey&lt;/b&gt;!, una &quot;extensión&quot; (inicialmente) para Firefox que permite ejecutar JavaScript sobre determinadas páginas!. Cuando vi lo que podía hacer este Motor de Inyección de JavaScript (así lo veo yo jejee), se me cruzó lo de los Links Acrónimos (que ya estaban enterrados), porque justamente convertir &lt;b&gt;:ggXYZ&lt;/b&gt; a &lt;b&gt;goo.gl/XYZ&lt;/b&gt; con JS se podía hacer :D. Aclaro que de JS no tengo mucha idea!, pero como es un lenguaje dinámico tirando al Scripting muy &quot;jodido&quot; no es ;).&lt;br /&gt;
&lt;br /&gt;
Fue asi que de a poco pude hacer que reconozca esos patrones (gracias a mis amadas Expresiones Regulares) y los pude convertir a links activos!. Luego se me ocurrió que seria útil conocer a donde apuntan los links recortados!, y gracias a la API de Greasemonkey (mas que nada por su &lt;a href=&quot;http://wiki.greasespot.net/GM_xmlhttpRequest&quot; target=&quot;_blank&quot;&gt;GM_xmlHttpRequest&lt;/a&gt;) que permite cierta flexibilización a la hora de programar con JS (mas que nada por políticas de seguridad) pude agregar un código simple que indica la URL apuntada entonces uno pude saber a donde apunta goo.gl/XYZ o bit.ly/XYZ, sin enterarse tras hacer click!. Y de yapa que si no existe algo (error de HTTP 404) que lo indique.&lt;br /&gt;
&lt;br /&gt;
La cuestión es que pude hacer un test y lograr esto:&lt;br /&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellspacing=&quot;5&quot; onchange=&quot;xyz()&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;th&gt;Link Acrónimo Interpretado&lt;/th&gt;
&lt;th&gt;Formato de Link Acrónimo&lt;/th&gt;
&lt;th&gt;URL convertida&lt;/th&gt;
  &lt;/tr&gt;
&lt;/tbody&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://youtu.be/JDjzxY0aTIQ&quot; id=&quot;youtu.be/JDjzxY0aTIQ&quot; target=&quot;_blank&quot; title=&quot;http://www.youtube.com/watch?v=JDjzxY0aTIQ&amp;amp;feature=youtu.be&quot;&gt;&lt;img alt=&quot;:yt&quot; src=&quot;http://youtu.be/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;JDjzxY0aTIQ&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;yt&lt;/b&gt;JDjzxY0aTIQ&lt;/td&gt;&lt;td&gt;youtu.be/JDjzxY0aTIQ&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://fb.me/personalargentina&quot; id=&quot;fb.me/personalargentina&quot; target=&quot;_blank&quot; title=&quot;http://www.facebook.com/personalargentina&quot;&gt;&lt;img alt=&quot;:fb&quot; src=&quot;http://fb.me/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;personalargentina&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;fb&lt;/b&gt;personalargentina&lt;/td&gt;&lt;td&gt;fb.me/personalargentina&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://mateware.blogspot.com/&quot; id=&quot;mateware.blogspot.com&quot; target=&quot;_blank&quot; title=&quot;http://mateware.blogspot.com.ar/&quot;&gt;&lt;img alt=&quot;:bs&quot; src=&quot;http://mateware.blogspot.com/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;mateware&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;bs&lt;/b&gt;mateware&lt;/td&gt;&lt;td&gt;mateware.blogspot.com&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://playlatam.wordpress.com/&quot; id=&quot;playlatam.wordpress.com&quot; target=&quot;_blank&quot; title=&quot;http://playlatam.wordpress.com/&quot;&gt;&lt;img alt=&quot;:wp&quot; src=&quot;http://playlatam.wordpress.com/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;playlatam&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;wp&lt;/b&gt;playlatam&lt;/td&gt;&lt;td&gt;playlatam.wordpress.com&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://www.sonico.com/publico/martin_bossi&quot; id=&quot;www.sonico.com/publico/martin_bossi&quot; target=&quot;_blank&quot; title=&quot;http://www.sonico.com/publico/500001278/martin-bossi&quot;&gt;&lt;img alt=&quot;:so&quot; src=&quot;http://www.sonico.com/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;martin_bossi&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;so&lt;/b&gt;martin_bossi&lt;/td&gt;&lt;td&gt;www.sonico.com/publico/martin_bossi&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://goo.gl/kXRz8&quot; id=&quot;goo.gl/kXRz8&quot; target=&quot;_blank&quot; title=&quot;http://mateware.blogspot.com.ar/&quot;&gt;&lt;img alt=&quot;:gg&quot; src=&quot;http://goo.gl/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;kXRz8&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;gg&lt;/b&gt;kXRz8&lt;/td&gt;&lt;td&gt;goo.gl/kXRz8&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://pinterest.com/pin/197947346091245773&quot; id=&quot;pinterest.com/pin/197947346091245773&quot; target=&quot;_blank&quot; title=&quot;http://pinterest.com/pin/197947346091245773/&quot;&gt;&lt;img alt=&quot;:pi&quot; src=&quot;http://pinterest.com/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;197947346091245773&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;pi&lt;/b&gt;197947346091245773&lt;/td&gt;&lt;td&gt;pinterest.com/pin/197947346091245773&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://instagr.am/p/Lf9A0FJFV9&quot; id=&quot;instagr.am/p/Lf9A0FJFV9&quot; target=&quot;_blank&quot; title=&quot;http://instagr.am/p/Lf9A0FJFV9&quot;&gt;&lt;img alt=&quot;:in&quot; src=&quot;http://instagr.am/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;Lf9A0FJFV9&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;in&lt;/b&gt;Lf9A0FJFV9&lt;/td&gt;&lt;td&gt;instagr.am/p/Lf9A0FJFV9&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://bit.ly/funN&quot; id=&quot;bit.ly/funN&quot; target=&quot;_blank&quot; title=&quot;https://www.google.com.ar/&quot;&gt;&lt;img alt=&quot;:bl&quot; src=&quot;http://bit.ly/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;funN&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;bl&lt;/b&gt;funN&lt;/td&gt;&lt;td&gt;bit.ly/funN&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://lockerz.com/s/214235930&quot; id=&quot;lockerz.com/s/214235930&quot; target=&quot;_blank&quot; title=&quot;http://lockerz.com/s/214235930&quot;&gt;&lt;img alt=&quot;:lo&quot; src=&quot;http://lockerz.com/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;214235930&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;lo&lt;/b&gt;214235930&lt;/td&gt;&lt;td&gt;lockerz.com/s/214235930&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://adf.ly/5XR&quot; id=&quot;adf.ly/5XR&quot; target=&quot;_blank&quot; title=&quot;http://adf.ly/5XR&quot;&gt;&lt;img alt=&quot;:af&quot; src=&quot;http://adf.ly/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;5XR&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;af&lt;/b&gt;5XR&lt;/td&gt;&lt;td&gt;adf.ly/5XR&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://git.io/SaPCDg&quot; id=&quot;git.io/SaPCDg&quot; target=&quot;_blank&quot; title=&quot;https://github.com/OpenELEC/OpenELEC.tv/commit/1789420ffd27ef5e747d8cf7042214b334c89bbc&quot;&gt;&lt;img alt=&quot;:gh&quot; src=&quot;http://git.io/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;SaPCDg&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;gh&lt;/b&gt;SaPCDg&lt;/td&gt;&lt;td&gt;git.io/SaPCDg&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://amzn.com/0385504225&quot; id=&quot;amzn.com/0385504225&quot; target=&quot;_blank&quot; title=&quot;http://www.amazon.com/dp/0385504225/ref=cm_sw_su_dp&quot;&gt;&lt;img alt=&quot;:am&quot; src=&quot;http://amzn.com/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;0385504225&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;am&lt;/b&gt;0385504225&lt;/td&gt;&lt;td&gt;amzn.com/0385504225&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://snurl.com/23tnkyv&quot; id=&quot;snurl.com/23tnkyv&quot; target=&quot;_blank&quot; title=&quot;https://www.google.com.ar/&quot;&gt;&lt;img alt=&quot;:sn&quot; src=&quot;http://snurl.com/favicon.ico&quot; style=&quot;vertical-align: middle;&quot; width=&quot;16&quot; /&gt;23tnkyv&lt;/a&gt;&lt;/td&gt;&lt;td&gt;:&lt;b&gt;sn&lt;/b&gt;23tnkyv&lt;/td&gt;&lt;td&gt;snurl.com/23tnkyv&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
Hay que prestarle atención que los Links Acrónimos Interpretados apuntan a las URL convertidas (indicadas en la tabla), aunque su atributo Title (pasar el mouse por encima :D) indiquen a donde realmente apuntan.&lt;br /&gt;
&lt;br /&gt;
El tema de usar Links Acrónimos (LA) no implica que sirva &quot;solo para&quot; acortar los servicios de Links Acortados (goo.gl,bit.ly,etc..), sino que pueden ayudar al usuario a crear un link común y corriente como a este blog: :&lt;b&gt;bs&lt;/b&gt;mateware, el cual apunta a mateware.blogspot.com, que en definitiva apunta a mateware.blogspot.com.ar jejee.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lo unico que me haría falta es saber si algo así realmente seria util para twitter y hacer que el Script de Greasemonkey corra para este, que eso va a ser medio complicado (por la naturaleza de twitter y sus 800 Javascript jaja :D) pero no imposible!.&lt;br /&gt;
&lt;br /&gt;
Algo bueno que tienen los LA es que son:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Fáciles de &quot;hacer&quot; a mano o bien para implementar algún conversor.&lt;/li&gt;
&lt;li&gt;&lt;u&gt;Son mas cortos que uno acortado&lt;/u&gt; y/o permiten crear uno incluso sin depender de un acortador. Ejemplo link a un perfil de Baddo/Face/Blogspot,etc..&lt;/li&gt;
&lt;li&gt;Al ser calculados, &lt;u&gt;si determinado servicio cambia sus URL, los LA se pueden adaptar.&lt;/u&gt; Ejemplo si el dia de mañana Blogspot cambia sus URLs a blogspot.com/USUARIO, al tener un LA :&lt;b&gt;bs&lt;/b&gt;USUARIO, se puede generar el correcto tranquilamente y no hacerce drama ;). Obviamente que esto también depende de como se cambien las URLs. &lt;/li&gt;
&lt;li&gt;&lt;u&gt;El usuario ya no elige el Acortador de URL por ser el &quot;mas corto&quot;, sino que puede hacerlo por su interfaz y/o prestaciones&lt;/u&gt;. Los Links Acortados quedan (prácticamente) a un nivel parejo de competencia. Ejemplo recorta.com/XYZ y bit.ly/XYZ, se convierten respectivamente en :&lt;b&gt;rc&lt;/b&gt;XYZ y :&lt;b&gt;bl&lt;/b&gt;XYZ , ambos de misma cantidad de caracteres ;).&lt;/li&gt;
&lt;li&gt;Se conoce el Destino de Links Acortados y/o se indica si son Erroneos (HTTP 404)&lt;/li&gt;
&lt;/ul&gt;
Y por el otro lado, las contras:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Se depende de una Extensión: Greasemonkey o propia para el navegador.&lt;/li&gt;
&lt;li&gt;Principalmente usados para Desktops: debido a que muchas plataformas &quot;reducidas&quot; (como la de los Celulares) no permiten extensiones, no creo que en este primer momento se pueda dar una solución.&lt;/li&gt;
&lt;li&gt;Son calculados, esto implica &quot;buscarlos&amp;nbsp; y generarlos&quot;, lo cual &lt;u&gt;puede comprometer la performance de PC de pocos recursos&lt;/u&gt;.&lt;/li&gt;
&lt;li&gt;&lt;u&gt;Puede ser que el Contador de Clicks (Estadisticas) del Link Acortado indique que se hizo un click&lt;/u&gt;, debido a que al obtener la URL real hace falta &quot;conectarse&quot;.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Luego me gustara adjuntar dos imágenes, una mostrando como se ve un Tweet de hoy en dia, y otra con el agregado de LA, como para que ejemplificar más &quot;gráficamente&quot;:&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFgaBelp581YaSnB1vaQDtYpMMDRAFaVjIejBozHErWwAOyHmelIRIuwJGpYn-V7RVh5OWcr1xZDl6DnDigI_DGhqWKOHk5NtFlvx7wvxt13UJkyh8OxryIUeGmXnRsNhT13P1eNRs9Lw/s1600/Ejemplo+de+Tweet+Normal.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;151&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFgaBelp581YaSnB1vaQDtYpMMDRAFaVjIejBozHErWwAOyHmelIRIuwJGpYn-V7RVh5OWcr1xZDl6DnDigI_DGhqWKOHk5NtFlvx7wvxt13UJkyh8OxryIUeGmXnRsNhT13P1eNRs9Lw/s320/Ejemplo+de+Tweet+Normal.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Tweet Normal de 137 Caracteres&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQSgk9OM4pQx9qsrSemTT5BTafIfPi7ocnXGOodOn3DFMfhF4DLgtE9cC6tLw0ZByp3u1_bb9me4epb-9TiPIxEjMf7KFtY2m1DqT1EAQXxmTwH5r2_RQchan1NcevDU2TnRrqY-IDXWE/s1600/Ejemplo+de+Tweet+con+LA.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;152&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQSgk9OM4pQx9qsrSemTT5BTafIfPi7ocnXGOodOn3DFMfhF4DLgtE9cC6tLw0ZByp3u1_bb9me4epb-9TiPIxEjMf7KFtY2m1DqT1EAQXxmTwH5r2_RQchan1NcevDU2TnRrqY-IDXWE/s320/Ejemplo+de+Tweet+con+LA.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Tweet con LA de 102 Caracteres&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
El texto escrito en el Tweet con LA corresponde a :&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
Mientras boludeo con mi blog :bsmateware, me entero de esto :di1j75mP. Despues recomiendo ver :wkBash.&lt;/div&gt;
&lt;br /&gt;
Cuyo HTML queda asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
Mientras boludeo con mi blog &lt;a id=&quot;LAbsmateware&quot; href=&quot;http://mateware.blogspot.com&quot; title=&quot;http://mateware.blogspot.com.ar/&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://mateware.blogspot.com/favicon.ico&quot; alt=&quot;:bs&quot; style=&quot;vertical-align:middle;&quot; width=&quot;16&quot;&gt;mateware&lt;/a&gt;, me entero de esto &lt;a id=&quot;LAdi1j75mP&quot; href=&quot;http://dlvr.it/1j75mP&quot; title=&quot;http://www.rsstecnologia.com/la-marina-de-ee-uu-usara-linux-para-controlar-sus-drones/&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://dlvr.it/favicon.ico&quot; alt=&quot;:di&quot; style=&quot;vertical-align:middle;&quot; width=&quot;16&quot;&gt;1j75mP&lt;/a&gt;. Despues recomiendo ver &lt;a id=&quot;LAwkBash&quot; href=&quot;http://es.wikipedia.org/wiki/Bash&quot; title=&quot;http://es.wikipedia.org/wiki/Bash&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://es.wikipedia.org/favicon.ico&quot; alt=&quot;:wk&quot; style=&quot;vertical-align:middle;&quot; width=&quot;16&quot;&gt;Bash&lt;/a&gt;. 
&lt;/div&gt;
&lt;br /&gt;
Por ultimo quería comentar que si bien Greasemonkey corre principalmente en Firefox, Chrome le agrego 
soporte nativo!. Internet Explorer tiene algo para soportalo, al igual 
que Safari. Asi que uno podría adaptar la extensión para casi &quot;cualquier&quot; navegador al menos desktop!.&lt;br /&gt;
&lt;br /&gt;
De última si esto no sirve, se puede aprovechar el Script para otros propósitos: como adonde apuntan los links acortados :D:D.</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/9188891073421187868/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/06/links-acronimosun-intento-de-hacer.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/9188891073421187868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/9188891073421187868'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/06/links-acronimosun-intento-de-hacer.html' title='Links Acronimos:Un intento de hacer links cortos para Twitter'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFgaBelp581YaSnB1vaQDtYpMMDRAFaVjIejBozHErWwAOyHmelIRIuwJGpYn-V7RVh5OWcr1xZDl6DnDigI_DGhqWKOHk5NtFlvx7wvxt13UJkyh8OxryIUeGmXnRsNhT13P1eNRs9Lw/s72-c/Ejemplo+de+Tweet+Normal.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-6298211214365624539</id><published>2012-05-26T22:16:00.001-03:00</published><updated>2012-05-27T01:20:39.419-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>Como se construye Linux</title><content type='html'>La &lt;b&gt;Linux Foundation&lt;/b&gt; publicó hace un mes un video acerca de como este Núcleo tan importante es construido:&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/JDjzxY0aTIQ&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
La motivación principal del video es mostrar como Linux está presente en todos lados e invitar a la gente a sumarse ;). Muestran de una forma muy amigable al público la filosofía de Software Libre!.&lt;br /&gt;
&lt;br /&gt;
Como pequeña acotación al video, a Linux solo le queda conquistar
 mas las PC de uso general/cotidiano y listo! jeeje. Admito que como 
usuario de Linux me gustaría ver a este OS con mucha mas presencia en 
ese sector, pero bue... será cuestión de tiempo porque de a poco lo va haciendo ;).&lt;br /&gt;
&lt;br /&gt;
Si alguien desea bajar el Video con los subtítulos, se los dejo acá.</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/6298211214365624539/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/05/como-se-construye-linux.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/6298211214365624539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/6298211214365624539'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/05/como-se-construye-linux.html' title='Como se construye Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/JDjzxY0aTIQ/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-3486025565382833305</id><published>2012-05-25T22:52:00.002-03:00</published><updated>2012-05-25T22:52:52.104-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="busquedas"/><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="webs"/><title type='text'>En &quot;alza&quot; las Busquedas del Dolar en Internet</title><content type='html'>Ahora se me dio uno poco por chusmear que busca las gente en Internet.&lt;br /&gt;
&lt;br /&gt;
Esta semana fue la semana en que el Dolar (especialmente el Blue) fue el protagonistas con sus cotizaciones!.&lt;br /&gt;
&lt;br /&gt;
Esto se ve reflejado en las Búsquedas que hacen los usuarios de Argentina usando Google en los últimos 30 días:&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;script src=&quot;http://www.google.com/jsapi&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
      google.load(&#39;visualization&#39;, &#39;1&#39;, {packages: [&#39;corechart&#39;]});
    
&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
      function drawVisualization() {
         // Create and populate the data table.
        var data = new google.visualization.DataTable();
        data.addColumn(&#39;string&#39;, &#39;Mayo&#39;); // Implicit domain label col.
        data.addColumn(&#39;number&#39;, &#39;Dolar Blue&#39;); // Implicit series 1 data col.
        data.addColumn(&#39;number&#39;, &#39;Dolar&#39;); // Implicit series 1 data col.
        data.addColumn({type:&#39;string&#39;, role:&#39;annotation&#39;}); // annotation role col.
        data.addColumn({type:&#39;string&#39;, role:&#39;annotationText&#39;}); // annotationText col.
        data.addRows([
           [&#39;27&#39;, 3, 47, &#39;G&#39;, &#39;Con una compra de u$s 200 millones, el Banco Central mantuvo estable al dólar&#39;],
           [&#39;28&#39;, 3, 45, &#39;H&#39;, &#39;La AFIP recalculará en mayo el cupo para comprar dólares&#39;],
           [&#39;29&#39;, 1, 26, null, null],
           [&#39;30&#39;, 1, 19, null, null],
           [&#39;1&#39;, 1, 23, null, null],
           [&#39;2&#39;, 1, 25, &#39;F&#39;, &#39;El ex presidente del BCRA prevé un dólar paralelo a 6 pesos para fin de año&#39;],
           [&#39;3&#39;, 4, 57, null, null],
           [&#39;4&#39;, 3, 54, null, null],
           [&#39;5&#39;, 3, 50, null, null],
           [&#39;6&#39;, 1, 27, &#39;E&#39;, &#39;La AFIP salió a las calles del microcentro para combatir al mercado marginal&#39;],
           [&#39;7&#39;, 2, 20, null, null],
           [&#39;8&#39;, 2, 51, null, null],
           [&#39;9&#39;, 3, 50, null, null],
           [&#39;10&#39;, 3, 51, null, null],
           [&#39;11&#39;, 4, 51, &#39;D&#39;, &#39;El control del dólar oficial llevó a marcado aumento de la cotización del paralelo&#39;],
           [&#39;12&#39;, 4, 50, null, null],
           [&#39;13&#39;, 2, 31, null, null],
           [&#39;14&#39;, 1, 24, null, null],
           [&#39;15&#39;, 6, 59, null, null],
           [&#39;16&#39;, 11, 82, null, null],
           [&#39;17&#39;, 14, 95, &#39;C&#39;, &#39;El dólar &quot;blue&quot; volvió a repuntar en la city porteña y se ofreció a $5,65&#39;],
           [&#39;18&#39;, 11, 78, null, null],
           [&#39;19&#39;, 8, 63, null, null],
           [&#39;20&#39;, 3, 32, null, null],
           [&#39;21&#39;, 2, 26, &#39;B&#39;, &#39;El dólar &quot;blue&quot; sondeó nuevos precios máximos&#39;],
           [&#39;22&#39;, 10, 65, null, null],
           [&#39;23&#39;, 13, 77, null, null],
           [&#39;24&#39;, 21, 100, &#39;A&#39;, &#39;Quienes compren dólares para viajar deberán dar más información a la AFIP&#39;],
           [&#39;25&#39;, 22, 100, null, null]
        ]);
       
         // Create and draw the visualization.
         new google.visualization.LineChart(document.getElementById(&#39;visualization&#39;)).
             draw(data, {curveType: &quot;function&quot;,
       width: 570, height: 350
                         }
                 );
       }

      google.setOnLoadCallback(drawVisualization);
    
&lt;/script&gt;
  
  &lt;br /&gt;
&lt;div style=&quot;border: 0 none; font-family: Arial;&quot;&gt;
&lt;div id=&quot;visualization&quot; style=&quot;height: 400px; width: 500px;&quot;&gt;
&lt;/div&gt;
&lt;table&gt;
    &lt;tbody&gt;
&lt;tr&gt;&lt;th&gt;Referencia&lt;/th&gt;
    &lt;th&gt;Link&lt;/th&gt;
    &lt;/tr&gt;
&lt;tr&gt;
     &lt;td&gt;A&lt;/td&gt;
     &lt;td&gt;&lt;a href=&quot;http://www.clarin.com/ieco/economia/compren-dolares-deberan-informar-AFIP_0_706129572.html&quot; target=&quot;_blank&quot;&gt;Clarin&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
     &lt;td&gt;B&lt;/td&gt;
     &lt;td&gt;&lt;a href=&quot;http://www.infobae.com/notas/648859-El-dolar-blue-sondeo-nuevos-precios-maximos.html&quot; target=&quot;_blank&quot;&gt;Infobae&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
     &lt;td&gt;C&lt;/td&gt;
     &lt;td&gt;&lt;a href=&quot;http://www.infobae.com/notas/648196-El-dolar-blue-vuelve-a-repuntar-en-la-city-portena-y-se-ofrece-a-565.html&quot; target=&quot;_blank&quot;&gt;Infobae&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
     &lt;td&gt;D&lt;/td&gt;
     &lt;td&gt;&lt;a href=&quot;http://www.diariouno.com.ar/economia/El-control-del-dolar-oficial-llevo-a-marcado-aumento-de-la-cotizacion-del-paralelo-20120511-0086.html&quot; target=&quot;_blank&quot;&gt;Diario UNO&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
     &lt;td&gt;E&lt;/td&gt;
     &lt;td&gt;&lt;a href=&quot;http://finanzas.iprofesional.com/notas/135955-La-AFIP-sali-a-las-calles-del-microcentro-para-combatir-al-mercado-marginal&quot; target=&quot;_blank&quot;&gt;iProfesional&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
     &lt;td&gt;F&lt;/td&gt;
     &lt;td&gt;&lt;a href=&quot;http://www.elliberal.com.ar/ampliada.php?ID=40562&quot; target=&quot;_blank&quot;&gt;El Liberal&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
     &lt;td&gt;G&lt;/td&gt;
     &lt;td&gt;&lt;a href=&quot;http://www.cronista.com/finanzasmercados/Con-una-compra-de-us-200-millones-el-Banco-Central-mantuvo-estable-al-dolar-20120427-0121.html&quot; target=&quot;_blank&quot;&gt;Cronista.com&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;tr&gt;
     &lt;td&gt;H&lt;/td&gt;
     &lt;td&gt;&lt;a href=&quot;http://www.ieco.clarin.com/economia/AFIP-recalculara-mayo-comprar-dolares_0_691130975.html&quot; target=&quot;_blank&quot;&gt;Clarin&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
La gráfica anterior (que me quedo &quot;chica&quot; para mi blog) está basado en los resultados del servicio de Estadísticas de Búsquedas de Google, para la &lt;a href=&quot;http://www.google.com/insights/search/?hl=es#q=dolar%20blue%2Cdolar&amp;amp;geo=AR&amp;amp;date=today%201-m&amp;amp;cmpt=q&quot; target=&quot;_blank&quot;&gt;búsqueda de los términos &quot;Dolar Blue&quot; y &quot;Dolar&lt;/a&gt;&quot; (en general: Oficial/Blue,etc..). Ahora bien, quise agregarle algunas noticias &quot;relevantes&quot; para las fechas (27 de Abril&amp;nbsp; al 25&amp;nbsp; de Mayo), de la misma forma que lo hace Google. Fue así que manualmente busque títulos para algunas fechas y los coloqué.&lt;br /&gt;
&lt;br /&gt;
Es muy importante aclarar que los valores de búsqueda están basados en el máximo valor alcanzado para uno de los términos usados y presentados en una escala del 0 al 100: osea que el 100, esta dado por el máximo valor de búsquedas de &quot;Dolar&quot; para el día indicado, y a partir de ahí se trazan las proporciones para los demás días y términos.&lt;br /&gt;
&lt;br /&gt;
Para ubicarnos un poco mas, si comparamos estos términos con &quot;Clarín&quot; (termino muy buscado por los argentinos) se ve, en promedio, que:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Por cada búsqueda del &quot;Dolar&quot;, se buscan 5,11 veces &quot;Clarín&quot;,y&lt;/li&gt;
&lt;li&gt;Por cada búsqueda de &quot;Dolar Blue&quot; se buscan 43.5 veces &quot;Clarín&quot; y entre 8,33 y 8,55 veces &quot;Dolar&quot;.&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;Así que en este ultimo tiempo las búsquedas del Dolar vienen en aumento.&lt;br /&gt;
&lt;br /&gt;
También estuve mirando para períodos como 90 días, y los últimos 6 Meses pero venía &quot;tranquila&quot; los valores. Y eso si, el Blue era algo que ni existía comparado con los datos de este Mes. &lt;br /&gt;
&lt;br /&gt;
No pretendo ser Economista con lo mostrado anteriormente, ni un &quot;Consultor&quot; jajaa, simplemente quería compartir esta pequeña observación ;).&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/3486025565382833305/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/05/en-alza-las-busquedas-del-dolar-en.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/3486025565382833305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/3486025565382833305'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/05/en-alza-las-busquedas-del-dolar-en.html' title='En &quot;alza&quot; las Busquedas del Dolar en Internet'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-6297617171463569596</id><published>2012-05-19T23:08:00.004-03:00</published><updated>2012-05-19T23:08:46.828-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="general"/><title type='text'>El fenómeno de las Galletitas Toddy</title><content type='html'>Hoy aburrido a la mañana me dispongo a buscar Noticias en General!.&lt;br /&gt;
&lt;br /&gt;
Por una de esas casualidades de la vida entro en twitter (aclaro que no soy usuario) y doy un con tweet que decía: &quot;&lt;i&gt;#NoSoporto no conseguir las galletitas toddy por ningún lado&lt;/i&gt;&quot;. Esto me hizo acordar a varios amigos/as que comentan lo ricas que son junto con este mismo problema, y me hace chusmear mas en twitter y son varios los tweets similares a este!!. Y mas twittes que hablan de las &lt;b&gt;#Toddy&lt;/b&gt;!! jajaa :D.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdDpKSBdt0oNUOUJJYK8VGD8LFQ7j1bqJpQog5-pnOxrOmmgZEplQjQVtYgvfg5ZifOE46GGree98uQJWO83lCohXJpMNlBKSFiwOt9xYY9RV7R0rPZOAoR0zXV5ra8TnGPzfv3IkVvgg/s1600/galletas+toddy.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdDpKSBdt0oNUOUJJYK8VGD8LFQ7j1bqJpQog5-pnOxrOmmgZEplQjQVtYgvfg5ZifOE46GGree98uQJWO83lCohXJpMNlBKSFiwOt9xYY9RV7R0rPZOAoR0zXV5ra8TnGPzfv3IkVvgg/s1600/galletas+toddy.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Galletitas Toddy&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
Y lo peor es descubrir que en este ultimo tiempo se estuvo claramente buscando info en Google acerca de el:&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcZVdncdLLaNHI-ZmfCoyw4k4Co-DqXUphdfVo3BCust20qVw75cCDaAMATfHmGElPPECQwrvc72cHRWUrERZAMERy4tpuksCbCHnpN1f8E93s_ZgBSy3ei1fzmQe-llvSr5RgeNl5NBk/s1600/Busqueda+de+Toddy.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;106&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcZVdncdLLaNHI-ZmfCoyw4k4Co-DqXUphdfVo3BCust20qVw75cCDaAMATfHmGElPPECQwrvc72cHRWUrERZAMERy4tpuksCbCHnpN1f8E93s_ZgBSy3ei1fzmQe-llvSr5RgeNl5NBk/s400/Busqueda+de+Toddy.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Búsquedas en Google acerca de Toddy&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
En la Imagen anterior se ven en colores Celeste, Rojo y Naranja las búsquedas de &quot;&lt;b&gt;Galletitas Toddy&lt;/b&gt;&quot;, &quot;&lt;b&gt;Galletas Toddy&lt;/b&gt;&quot; y &quot;&lt;b&gt;Toddy&lt;/b&gt;&quot;, que esta ultima es prácticamente una combinacion de las dos búsquedas primeras!. Estas búsquedas las contrasté con la &quot;búsqueda del Diario El Dia&quot; (de La Plata), un diario que suma mas de 40 mil &quot;me gusta&quot; del Facebook!. Pueden obtener mas info &lt;a href=&quot;http://www.google.com/insights/search/?hl=es#q=galletitas%20toddy%2Cgalletas%20toddy%2Ctoddy%2Celdia&amp;amp;geo=AR&amp;amp;date=3%2F2012%203m&amp;amp;cmpt=q&quot; target=&quot;_blank&quot;&gt;aca&lt;/a&gt;, con la Herramienta de Estadísticas de Búsquedas de Google.&lt;br /&gt;
&lt;br /&gt;
Asi que estamos ante un pequeño ejercito de Adictos a las Galletitas Toddy! jajja :D.&lt;br /&gt;
&lt;br /&gt;
El &lt;u&gt;amplio pico que se observa al día de la fecha, supongo que se debe a la búsqueda de información y/o negocios donde adquirirlas porque están faltando en las góndolas&lt;/u&gt;!! jajaj :D, parece mentira pero incluso un diario digital &quot;investigo&quot;&amp;nbsp; el porque: &lt;a href=&quot;http://www.infonews.com/2012/05/17/sociedad-22054-por-que-desaparecieron-las-galletitas-toddy.php&quot; target=&quot;_blank&quot;&gt;¿Por qué desaparecieron las galletitas Toddy?&lt;/a&gt; [InfoNews].&lt;br /&gt;
&lt;br /&gt;
Así que este fenómeno tanto en la vida &quot;virtual&quot; como en la Real me llama poderosamente la atención.Todo bien con los que comen estas galles, eh!. Yo las probé y son ricas!, simplemente me llama la atención este hecho.&lt;br /&gt;
&lt;br /&gt;
Lastima que no es trend topic en Twitter, porque sino ahí si se ve mas claramente al Gigante Monstruo Consumidor jajaja :D:D. &lt;br /&gt;
&lt;br /&gt;
Lo único que falta es que se organicen y digan donde las consiguen y a que precio y listo!!!.</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/6297617171463569596/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/05/el-fenomeno-de-las-galletitas-toddy.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/6297617171463569596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/6297617171463569596'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/05/el-fenomeno-de-las-galletitas-toddy.html' title='El fenómeno de las Galletitas Toddy'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdDpKSBdt0oNUOUJJYK8VGD8LFQ7j1bqJpQog5-pnOxrOmmgZEplQjQVtYgvfg5ZifOE46GGree98uQJWO83lCohXJpMNlBKSFiwOt9xYY9RV7R0rPZOAoR0zXV5ra8TnGPzfv3IkVvgg/s72-c/galletas+toddy.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4714848406863256864.post-6613777921581405210</id><published>2012-05-19T00:17:00.000-03:00</published><updated>2012-05-19T01:40:44.703-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash_script"/><category scheme="http://www.blogger.com/atom/ns#" term="informatica"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Creando pequeñas Notificaciones con Bash y Zenity</title><content type='html'>¿Qué se puede hacer un día de lluvia, tras haber dormido una pequeña siesta y con un buen mate en la mano?? &lt;b&gt;Boludiar con Bash!&lt;/b&gt; o mejor dicho Ñoñar jajaaa :D:D. Esta entrada tiene como destino mostrar un poco de para que se puede usar la Consola (mas famosa) de Linux e incentivar un poco su uso.&lt;br /&gt;
&lt;br /&gt;
Cuando estoy aburrido (o bien lo necesito!) me pongo a hacer pequeños scripts que obtengan y me notifiquen de algo ya sea periódicamente, cuando enciendo la PC o porque yo mismo los lanzo (manualmente). Ese algo queda en la Libertad y/o Creatividad de cada uno jeje. Generalmente mi fuente es Internet (ahí están las novedades) dentro de los :&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Feeds (&lt;i&gt;RSS/Atom&lt;/i&gt;)&lt;/li&gt;
&lt;li&gt;Alguna página que posea algo que me interese (&lt;i&gt;HTML&lt;/i&gt;): Algún valor, algún anuncio esperado (como una Promoción :D),etc..&lt;/li&gt;
&lt;li&gt;Incluso, alguna que otra vez, alguna API REST (&lt;i&gt;XML/JSON&lt;/i&gt;), pero admito que fue por aburrimiento jajaa.&lt;/li&gt;
&lt;/ul&gt;
Mas allá de los diversos Formatos, en Bash es todo lo mismo: Texto Plano!. De ahi la potencia de usar Bash para procesar algunas cosas ;). Aunque esta ventaja, es relativa. Mas adelante se verá el porque.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Desde que descubrí &lt;b&gt;Zenity&lt;/b&gt; (&quot;tataraNieto&quot; del Dialog), una utilidad que viene de la mano de Gnome (aunque se puede instalar por separado!) me acompañó mucho en hacer &quot;Notificadores&quot;. Siempre los hacia Lanzando una Notificación (&lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;notify-send &quot;titulo&quot; &quot;mensaje&quot;&lt;/span&gt;), pero últimamente los hago colgando un Icono en la Barra de Notificación del Sistema (o Barra Tray) con &lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;zenity --notification --text=&quot;Mensaje&quot;&lt;/span&gt;, o mezclándolos ;).&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Ahora lo &quot;entretenido&quot; está en buscar la Novedad!.&lt;br /&gt;
&lt;br /&gt;
Los casos mas simples, aunque depende del contexto, son las páginas webs. Uno se conecta a una URL y obtiene el HTML que requiere. Aunque para los otros casos: Feeds o APi Rest no varia mucho.&lt;br /&gt;
&lt;br /&gt;
La Forma mas cómoda (para mi) de obtener el HTML de algo es con wget. Y generalmente lo uso para que no guarde el HTML en Disco, sino que lo uso &quot;al vuelo&quot;.&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
wget -qO- URL&lt;/div&gt;
&lt;br /&gt;
Con esto nos &quot;escupe&quot; el HTML en pantalla.&lt;br /&gt;
&lt;br /&gt;
Luego esta en nosotros ir limpiando hasta llegar con el dato buscado, para lo cual previamente tendríamos que tener una idea de que &quot;formato tiene&quot; ya sea buscándolo en el código fuente con algún Visualizador de Codigo Fuente (como el de Firefox) o algo así.&lt;br /&gt;
&lt;br /&gt;
En este punto es bastante útil saber algo de Expresiones Regulares, un tema que admito que soy bastante simpatizante de ellas! jejee :D.&lt;br /&gt;
&lt;br /&gt;
Volviendo al punto anterior del HTM, por lo general uno puede empezar a filtrar lo &quot;groso&quot; con grep y/o terminar refinando con sed.&lt;br /&gt;
&lt;br /&gt;
Por lo general usar el grep con &quot;-ioE&quot; ayuda obtener directamente lo que necesitamos.&quot;i&quot; indica que no sea sensible al caso (ignora Mayúsculas/Minúsculas), &quot;o&quot; indica que solo muestre lo que coincide, y &quot;E&quot; es de Expresiones Regulares. Y en cuanto a sed la mayoría de las veces termino usando un &lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sed s/Buscar/Remplazar/g&lt;/span&gt; jejee :D. Aunque Googleando un toque se obtiene mucho mas de sed.&lt;br /&gt;
&lt;br /&gt;
Ahora tras hacer una intro muy abstracta y vaga, podría poner un ejemplo recién hecho: Sacar los valores de Compra/Venta del Dolar de la Pagina del Banco Nación. Un ejemplo que es algo trivial, aunque hoy en día que el Dolar esta loco, tal vez alguno le sirva jajja :D:D.&lt;br /&gt;
&lt;br /&gt;
Los valores extraídos son los del Cierre de cotización en la página principal del BNA, no se si son los que se actualizan periódicamente, pero nos sirve como ejemplo práctico. De ultima se cambia el un poco el script y listo ;). Así que asumimos como que &quot;cambia&quot; periódicamente y por lo tanto nos interesaría un &quot;Notificador iterativo&quot; (constantemente nos este avisando):&lt;br /&gt;
&lt;br /&gt;
Para empezar la URL es &lt;a href=&quot;http://www.bna.com.ar/&quot; target=&quot;_blank&quot;&gt;www.bna.com.ar&lt;/a&gt;. Ahora hay que buscar en el código la parte que nos interesa, lo podemos hacer desde bash, aunque para ahorrar tiempo es mas fácil con un Visualizador jejee:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqOf0TDxr2I8BTGnD89DIsW7aXsMjfKbQusvIm6OuJA8YwXVc4X20uVVxdTCDG5NxDe00FY76JMLMXtKcqbxu0VbAi-q6WEEqdc39KwReQRZ1j38DtgFE03c9bD4sm8HPC3VmlsSsgYrk/s1600/Captura+de+Dolar.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqOf0TDxr2I8BTGnD89DIsW7aXsMjfKbQusvIm6OuJA8YwXVc4X20uVVxdTCDG5NxDe00FY76JMLMXtKcqbxu0VbAi-q6WEEqdc39KwReQRZ1j38DtgFE03c9bD4sm8HPC3VmlsSsgYrk/s400/Captura+de+Dolar.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
En la imagen se observa el código que conforma la tabla que muestra los valores de Compra y Venta del Dolar. Ahora si uno tiene acceso al HTML completo descubre que buscando &quot;Dolar&quot; lo lleva directamente hasta aca, y no figura en ninguna otra parte!. Si aparece &quot;Dólar&quot; (acentuado), que lleva a otra tabla similar a esta, aunque no es de interés. Ahora &lt;u&gt;siendo la página de una Entidad bancaria, es muy probable que en algún momento &quot;hablen&quot; del Dolar, y por ende si debemos localizar esta area en base a una Palabra que puede ser muy &quot;usada&quot; estaríamos siendo bastante dependientes de lo que se publica&lt;/u&gt;. Si bien esto es una desventaja de hacer bashscripts de esa forma, conviene siempre hacer una búsqueda sutilmente mas amplia/general. Por ejemplo&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td class=...&amp;gt;Dolar&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Buscando algo así, con grep por ejemplo, evitamos el problema anterior de que si escriben Dolar en otra parte, no aparezca entre lo filtrado. Si bien en este ejemplo podríamos ser mas &quot;confiados&quot;, y buscar algo como &quot;&amp;gt;Dolar&amp;lt;/td&amp;gt;&quot;. Por ejemplo quedaría así:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;wget -qO- http://www.bna.com.ar | grep -i -A2 &quot;&amp;gt;Dolar&amp;lt;/td&amp;gt;&quot; &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
Tras ejecutarlo nos devuelve algo así:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;lt;td class=&quot;linksazul&quot; align=&quot;left&quot;&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;gt;Dolar&amp;lt;/td&amp;gt;&lt;/span&gt;
&amp;lt;td class=&quot;linksazul&quot; align=&quot;center&quot;&amp;gt;4.419&amp;lt;/td&amp;gt;
&amp;lt;td class=&quot;linksazul&quot; align=&quot;center&quot;&amp;gt;4.459&amp;lt;/td&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;br /&gt;
Aclaro que el parámetro -A2 le indica a grep que a partir de donde haya encontrado la coincidencia, incluya las 2 lineas que se encuentras Después de esta. El parámetro proviene de After (después) y también contamos con &quot;Antes&quot; (Before) -B . Son muy útiles para estos casos.&lt;br /&gt;
&lt;br /&gt;
Hasta aca tenemos en unos renglones los datos que nos interesan!. Ahora si uno conoce Expresiones Regulares, nota enseguida que lo que necesitamos son los Números y nada mas,el resto del texto puede ser ignorado!. Bien para eso nos serviría algo como:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;grep -oE &quot;ER_DE_NUMEROS&quot;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
La Expresión Regular (ER) seria para este caso un Dígito seguido de un punto, seguido por varios dígitos mas, lo cual se escribe: &lt;b&gt;[0-9][.][0-9]+&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;wget -qO- http://www.bna.com.ar | grep -i -A2 &quot;&amp;gt;Dolar&amp;lt;/td&amp;gt;&quot; | grep -oE &quot;[0-9][.][0-9]+&quot;&amp;nbsp;&lt;/span&gt;
&lt;/div&gt;
&lt;br /&gt;
Ejecutar lo anterior nos devuelve:&lt;br /&gt;
&lt;div style=&quot;color: #cc0000;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;4.419
4.459&lt;/span&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
Exactamente los valores del Dolar que andábamos buscando!.&lt;br /&gt;
&lt;br /&gt;
El resultado de la última ejecución lo podemos guardar temporalmente en una variable.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; text-align: center;&quot;&gt;
miVariable=`CODIGO_A_EJECUTAR`&lt;/div&gt;
&lt;br /&gt;
Hay que prestarle atención a los acentos (`) usados para delimitar el código. Y podemos imprimirla con:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; text-align: center;&quot;&gt;
echo $miVariable&lt;/div&gt;
&lt;br /&gt;
Muy importante el signo peso ($), porque indica que se quiere referenciar (usarla). Ahora haciendo algo como:&lt;b&gt; &lt;span style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;echo $miVariable | grep &lt;/span&gt;&lt;/b&gt;.... podemos seguir filtrando como antes!, y esto guardarlo en nuevas variables. Esto seria útil para sacar el precio de Compra y Venta. Podemos ver ahora que los valores aparecen uno a continuación del otro, separado por un espacio: 4.419 4.459.&lt;br /&gt;
&lt;br /&gt;
Esto se puede sacar de varias formas. De la forma que venimos trabajando: con grep usando -o e indicando que se desea solamente los números y el punto desde el comienzo sin incluir el espacio, y luego lo mismo pero hasta el final. Esto es:&amp;nbsp; &lt;b&gt;&quot;^[0-9.]+&quot;&lt;/b&gt;, lo cual significa&amp;nbsp; desde el comienzo (^) de la Cadena hasta varios Dígitos Numéricos y puntos (4.419). Y de una forma similar valdría para el 2do numero. Aunque para estas situaciones es mas &quot;prolijo&quot; usar &lt;b&gt;sed&lt;/b&gt; o bien &lt;b&gt;cut&lt;/b&gt;. con cut sería solicitarle la 1ra y 2da &quot;columna&quot; de esta fila. Asi:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6aa84f; text-align: center;&quot;&gt;
dolarCompra=echo $miVariable | cut -f&lt;b&gt;1&lt;/b&gt; -d&quot; &quot; &lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Con esto obtenemos en la variable dolarCompra el primer campo, solo resta hacer lo mismo para el segundo (-f2) y ya tenemos nuestros valores.&lt;br /&gt;
&lt;br /&gt;
Ahora para mostrarlos tenemos a disposicion notify-send&amp;nbsp; y Zenity!. que como arranca la entrada podremos visualizarlos.&lt;br /&gt;
&lt;br /&gt;
Dejo a continuación un Script que puede ser ejecutado infinitamente (while true) o bien 4 veces (para mostrar que funca :D ) donde se visualiza un Zenity Notification y una notification-send trabajando juntos con este ejemplo!.&lt;br /&gt;
&lt;br /&gt;
Vale aclarar que Zenity esta configurado para que se cierre cada 20 Segundos, para que se Actualice los valores ;), esto se debe cambiar. Esto es por una &quot;Limitación&quot; del Notificador de Zenity, que se queda esperando a que el Usuario haga click para cerrarlo, y no permite cambiar el texto :(.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dejo el Bash Script para verlo online [&lt;a href=&quot;https://docs.google.com/document/pub?id=1cZhra_2k-2mpRMYZKpXXh9JQDMOmIYhPRyfZ6MXdpH8&quot; target=&quot;_blank&quot;&gt;ver&lt;/a&gt;], para descargar (incluye el Icono) [&lt;a href=&quot;https://rapidshare.com/files/334972293/cotizacionDelDolar.tar.gz&quot; target=&quot;_blank&quot;&gt;bajar&lt;/a&gt;] y una captura del mismo funcionando:&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvufw1cLNqy_lfEQ3Mxoeajq8nKxfQTjr7uNzPpxjkv8j6tT1KlqjO8qTTiu4VnVeZ8LWLlE99UlwRDNlGsxXgD_3zDhy6Zd4nSCHqvYyfWQkBGHsU_rUDnmWAypkF6RF28uh6joDC8Is/s1600/bash+script+cotizador+de+dolar.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvufw1cLNqy_lfEQ3Mxoeajq8nKxfQTjr7uNzPpxjkv8j6tT1KlqjO8qTTiu4VnVeZ8LWLlE99UlwRDNlGsxXgD_3zDhy6Zd4nSCHqvYyfWQkBGHsU_rUDnmWAypkF6RF28uh6joDC8Is/s1600/bash+script+cotizador+de+dolar.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Bash Script corriendo&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
Lo que espero haber transmitido un poco con esta entrada es usar la potencia de Bash, para sintetizar la información y mostrárselo al usuario en su Desktop. No necesariamente tiene que usarse la consola!. &lt;b&gt;Creo que este tipo de &quot;utilidades&quot; mezcla lo mejor de los dos mundos: Bash y GUIs&lt;/b&gt;.</content><link rel='replies' type='application/atom+xml' href='http://mateware.blogspot.com/feeds/6613777921581405210/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mateware.blogspot.com/2012/05/creando-pequenas-notificaciones-con.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/6613777921581405210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4714848406863256864/posts/default/6613777921581405210'/><link rel='alternate' type='text/html' href='http://mateware.blogspot.com/2012/05/creando-pequenas-notificaciones-con.html' title='Creando pequeñas Notificaciones con Bash y Zenity'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqOf0TDxr2I8BTGnD89DIsW7aXsMjfKbQusvIm6OuJA8YwXVc4X20uVVxdTCDG5NxDe00FY76JMLMXtKcqbxu0VbAi-q6WEEqdc39KwReQRZ1j38DtgFE03c9bD4sm8HPC3VmlsSsgYrk/s72-c/Captura+de+Dolar.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>