<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>virtualdag.org &#187; python</title>
	<atom:link href="http://virtualdag.org/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://virtualdag.org</link>
	<description>dag ftw :`p</description>
	<lastBuildDate>Wed, 28 Jul 2010 10:13:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>BlueProximity &#8211; Bloquea y Desbloquea con tu Celular</title>
		<link>http://virtualdag.org/2008/09/27/blueproximity-bloquea-y-desbloquea-con-tu-celular/</link>
		<comments>http://virtualdag.org/2008/09/27/blueproximity-bloquea-y-desbloquea-con-tu-celular/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 16:38:56 +0000</pubDate>
		<dc:creator>dag</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[blueproximity]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[Celulares]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://virtualdag.org/?p=121</guid>
		<description><![CDATA[BlueProximity, Software que permite a nuestro sistema tener mas seguridad y funciona como un detector de presencia, usando la tecnología bluetooth. En simples palabras funciona El programa detecta la presencia de un dispositivo bluetooth a su alcance y el cual debe de estar emparejado al alejarse del equipo corre un comando el cual puede ser [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-223" title="blueproximity_logo" src="http://debian-ar.org/wp-content/uploads/2008/09/blueproximity_logo.png" alt="" width="60" height="60" /></p>
<p>BlueProximity,  <span style="border-bottom: 1px dotted; color: #ff0000; text-decoration: underline;">Software</span> que permite a nuestro sistema tener mas seguridad y funciona como un detector de presencia, usando la  <span style="border-bottom: 1px dotted; color: #ff0000; text-decoration: underline;">tecnología</span> bluetooth.</p>
<p>En simples palabras funciona</p>
<p>El programa detecta la presencia de un dispositivo bluetooth a su alcance y el cual debe de estar emparejado al alejarse del equipo corre un comando el cual puede ser bloquear y activar el salvapantallas y al volver a acercarse al equipo este mismo puede desactivarlo y volver a trabajar normalmente. Cabe mencionar que puedes ejecutar cualquier comando shell, cuando te alejas o acercas..</p>
<p>Instalando Blueproximity</p>
<p>Hay 2 maneras</p>
<ol>
<li>Bajando el codigo Fuente   -   <a onclick="javascript:urchinTracker ('/outbound/article/downloads.sourceforge.net');" href="http://downloads.sourceforge.net/blueproximity/blueproximity-1.2.5.tar.gz?modtime=1204220865&amp;big_mirror=0" target="_blank">blueproximity-1.2.5.tar.gz </a></li>
<li>Descargando el paquete .deb   -   <a onclick="javascript:urchinTracker ('/outbound/article/downloads.sourceforge.net');" href="http://downloads.sourceforge.net/blueproximity/blueproximity_1.2.5-0ubuntu1_all.deb?modtime=1204220845&amp;big_mirror=0" target="_blank">blueproximity_1.2.5-0ubuntu1_all.deb</a></li>
</ol>
<p>Para Instalar sin problemas tenemos que agregar el siguiente  <a style="border-bottom: 1px dotted; color: #ff0000; text-decoration: underline;" onclick="hwClick18556138131810(894549278);return false;" onmouseover="hw18556138131810(event, this, '894549278'); this.style.cursor='hand'; this.style.textDecoration='underline'; this.style.borderBottom='solid';" onmouseout="hideMaybe(event, this); this.style.cursor='hand'; this.style.textDecoration='underline'; this.style.borderBottom='dotted 1px'; " href="http://gndx.org/2008/09/blueproximity-bloquea-y-desbloquea-con-tu-celular/#">soporte</a> de python</p>
<blockquote><p><span style="color: #ff0000;">$ sudo apt-get install python-glade2 python-configobj python-bluez</span></p></blockquote>
<p>Configurando blueproximity</p>
<p>Recuerden que antes de todo deben de tener emparejado su celular con su equipo.</p>
<p><img class="aligncenter size-full wp-image-122" title="blueproximiti" src="http://virtualdag.org/wp-content/uploads/2008/09/blueproximiti.jpg" alt="" width="500" height="505" /></p>
<p><a href="http://gndx.org/2008/09/blueproximity-bloquea-y-desbloquea-con-tu-celular/" target="_blank">Fuente</a></p>
]]></content:encoded>
			<wfw:commentRss>http://virtualdag.org/2008/09/27/blueproximity-bloquea-y-desbloquea-con-tu-celular/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mi primer script en python [TXT2LINK]</title>
		<link>http://virtualdag.org/2008/08/05/mi-primer-script-en-python-txt2link/</link>
		<comments>http://virtualdag.org/2008/08/05/mi-primer-script-en-python-txt2link/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 02:21:01 +0000</pubDate>
		<dc:creator>dag</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[desarrollo]]></category>
		<category><![CDATA[Mi primer script en python]]></category>
		<category><![CDATA[pasar lista de link a txt]]></category>
		<category><![CDATA[pasar txt a link]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://virtualdag.org/?p=19</guid>
		<description><![CDATA[Hola, como andan? Hoy dejare un post cortito, porque tengo cosas que terminar. Me veía en la necesidad de poner a descargar muchos links, y lopardo, me dijo que “DownThemAll!” un addon de Firefox, que tiene la opción que al dar click derecho en una pagina te permite descargar todos los links o imágenes que [...]]]></description>
			<content:encoded><![CDATA[<p>Hola, como andan? Hoy dejare un post cortito, porque tengo cosas que terminar. Me veía en la necesidad de poner a descargar muchos links, y <a href="http://360software.com.ar" target="_blank">lopardo</a>, me dijo que “<a href="https://addons.mozilla.org/es-ES/firefox/addon/201" target="_blank">DownThemAll!</a>” un addon de <a href="https://www.getfirefox.com/" target="_blank">Firefox</a>, que tiene la opción que al dar click derecho en una pagina te permite descargar todos los links o imágenes que se encuentre en ella, entonces lo instale, y el problema se me genero fue: tener que poner todos los enlaces en una web (con links), pensé que el dreamweaver al pegar las direcciones de los archivos en diseño, les crearía el vinculo/link solo, como no lo hiso, decidí leer y buscar un poco sobre python, que había escuchado que era simple , comencé  a escribir el pequeño script y  me daba fallas, así que decidí pedir ayuda en el canal #python-es de <a href="http://www.freenode.net" target="_blank">freenode</a>, y ahí <a href="http://freehardware.blogspot.com/" target="_blank">Miuler</a> me ayudo muy gentilmente, y bueno aquí les dejo el script, por si alguien lo necesita para algo:</p>
<p><code>#!/usr/bin/env python<br />
#Autor: dag<br />
#Mail: dag[arroba]debian-ar[punto]com<br />
#Blog: http://www.virtualdag.org<br />
&nbsp;from Tkinter import *<br />
&nbsp;import sys<br />
&nbsp;if len(sys.argv)&gt;1:<br />
&nbsp;&nbsp;&nbsp;&nbsp;FileName = sys.argv[1]<br />
&nbsp;&nbsp;&nbsp;&nbsp;try:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Source = open(FileName,'r')<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Destination = open(FileName+'.html','w')<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for line in Source.readlines():<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Destination.write('&lt;a href="'+line[:-1]+'"&gt;'+line[:-1]+'&lt;/a&gt;\n')<br />
&nbsp;&nbsp;&nbsp;&nbsp;except:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print 'Error al abrir o intentar guardar el archivo', FileName<br />
&nbsp;&nbsp;&nbsp;&nbsp;Source.close()<br />
&nbsp;&nbsp;&nbsp;&nbsp;Destination.close()<br />
&nbsp;else:<br />
&nbsp;&nbsp;&nbsp;&nbsp;print 'Ha ocurrido un error inesperado.'<br />
&nbsp;&nbsp;&nbsp;&nbsp;sys.exit()<br />
</code></p>
<p><strong>Un ejemplo seria:</strong><br />
Teniendo un archivo llamado dag.txt que contenga:<br />
<code>http://virtualdag.org/test.rar</p>
<p>http://debian-ar.org/hola.rar</p>
<p>http://lerolero.com/ja.tar</p>
<p>http://www.la.com/un.rar</p>
<p></code></p>
<p>Al aplicar el script:<br />
<code>daniel@princess:~$ ./txt2link.py dag.txt<br />
</code></p>
<p>Se crearia un archivo llamado dag.txt.html con este contenido:<br />
<code>&lt;a href="http://virtualdag.org/test.rar"&gt;http://virtualdag.org/test.rar&lt;/a&gt;<br />
&lt;a href="http://debian-ar.org/hola.rar"&gt;http://debian-ar.org/hola.rar&lt;/a&gt;<br />
&lt;a href="http://lerolero.com/ja.tar"&gt;http://lerolero.com/ja.tar&lt;/a&gt;<br />
&lt;a href="http://www.la.com/un.rar"&gt;http://www.la.com/un.rar&lt;/a&gt;</code></p>
<p><a href="http://virtualdag.org/wp-content/uploads/2008/08/txt2linktar.gz">Click aquí para descargar txt2link (tar.gz)</a><br />
<a href="http://virtualdag.org/wp-content/uploads/2008/08/txt2link.rar">Click aquí para descargar txt2link (rar)</a></p>
<p>Esto es todo por hoy <img src='http://virtualdag.org/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /><br />
Saludos dag</p>
<p>Nota: Si les interesa aprender python entren <a href="http://users.servicios.retecal.es/tjavier/python/Pequeno_tutorial_de_Pyhton.html" target="_blank">aquí</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://virtualdag.org/2008/08/05/mi-primer-script-en-python-txt2link/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
