<?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>slackve.org &#187; Python</title>
	<atom:link href="http://slackve.org/category/desarrollo/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://slackve.org</link>
	<description>Colectivo Slackve, Usuarios de slackware de venezuela en defensa de la revolución</description>
	<lastBuildDate>Sun, 01 Aug 2010 19:52:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ejemplo de manejo de mensajes de texto (sms) con Android y Python</title>
		<link>http://slackve.org/2010/08/01/ejemplo-de-manejo-de-mensajes-de-texto-sms-con-android-y-python/</link>
		<comments>http://slackve.org/2010/08/01/ejemplo-de-manejo-de-mensajes-de-texto-sms-con-android-y-python/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 19:38:49 +0000</pubDate>
		<dc:creator>pablo</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Aplicaciones]]></category>
		<category><![CDATA[Desarrollo]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Slackware]]></category>

		<guid isPermaLink="false">http://slackve.org/?p=554</guid>
		<description><![CDATA[Este script da una autorespuesta a un mensaje de texto entrante Open Unformatted Code In New Window __author__ = 'Pablo Romero pablo@slackve.org' __license__ = 'GNU/GPL' import android droid = android.Android() ids = droid.smsGetMessageIds(True, 'inbox').result if ids != []: print &#34;Se encontraron mensajes nuevos&#34; for item in ids: mensajes = droid.smsGetMessageById(item, ['body', 'address']).result texto = mensajes['body'] [...]]]></description>
			<content:encoded><![CDATA[<p>Este script da una autorespuesta a un mensaje de texto entrante</p>
<p>
<p><a target="_blank" href="/scripts/sms.py">Open Unformatted Code In New Window</a></p>
<pre name="code" class="sh_python">
__author__ = 'Pablo Romero pablo@slackve.org'
__license__ = 'GNU/GPL'
import android
droid = android.Android()
ids = droid.smsGetMessageIds(True, 'inbox').result
if ids != []:
  print &quot;Se encontraron mensajes nuevos&quot;
  for item in ids:
    mensajes = droid.smsGetMessageById(item, ['body', 'address']).result
    texto = mensajes['body']
    telefono = mensajes['address']
    print 'Enviando a' + telefono
    droid.smsSend(telefono, &quot;Estoy ocupado, te llamo luego camarada!&quot;)
    droid.smsMarkMessageRead([item],True)

    
    
    </pre>

</p>
<script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_python.js"></script>]]></content:encoded>
			<wfw:commentRss>http://slackve.org/2010/08/01/ejemplo-de-manejo-de-mensajes-de-texto-sms-con-android-y-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python en Android</title>
		<link>http://slackve.org/2010/07/31/python-en-android/</link>
		<comments>http://slackve.org/2010/07/31/python-en-android/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 02:11:26 +0000</pubDate>
		<dc:creator>pablo</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Aplicaciones]]></category>
		<category><![CDATA[Desarrollo]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://slackve.org/?p=531</guid>
		<description><![CDATA[Toda la potencia de python en Android. Su instalación es sumamente facil y en unos minutos se verán progamando scripts en Python utilizando el ASE de Android. Pasos: 1. Descargamos e instalamos el apk del ASE aqui 2. Entramos al ASE -&#62; Menu -&#62; View -&#62; Interpreters -&#62; Add -&#62; Python 2.x.x Se instalará todo [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://slackve.org/wp-content/uploads/2010/07/device1.png"><img class="size-full wp-image-540 alignleft" style="border: 0pt none; margin-left: 5px; margin-right: 5px;" title="device" src="http://slackve.org/wp-content/uploads/2010/07/device1.png" alt="" width="190" height="159" /></a>Toda la potencia de python en Android.</p>
<p>Su instalación es sumamente facil y en unos minutos se verán progamando scripts en Python utilizando el ASE de Android.</p>
<p><span id="more-531"></span>Pasos:</p>
<p>1. Descargamos e instalamos el apk del ASE <a href="http://code.google.com/p/android-scripting/downloads/list">aqui</a></p>
<p>2. Entramos al ASE -&gt; Menu -&gt; View -&gt; Interpreters -&gt; Add -&gt; Python 2.x.x</p>
<p>Se instalará todo lo necesario, hasta scrpits con ejemplos de la implementación de las llamadas al API de Android.</p>
<p>Bien, eso es todo&#8230; corto pero suficiente, lo otro está en sus manos</p>
<p style="text-align: center;"><a href="http://slackve.org/wp-content/uploads/2010/07/device.png"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://slackve.org/2010/07/31/python-en-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python &#8211; Reemplazar una palabra recursivamente en todos los archivos de un directorio</title>
		<link>http://slackve.org/2009/11/27/python-reemplazar-una-palabra-recursivamente-en-todos-los-archivos-de-un-directorio/</link>
		<comments>http://slackve.org/2009/11/27/python-reemplazar-una-palabra-recursivamente-en-todos-los-archivos-de-un-directorio/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 20:27:12 +0000</pubDate>
		<dc:creator>pablo</dc:creator>
				<category><![CDATA[Desarrollo]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://slackve.org/?p=450</guid>
		<description><![CDATA[Open Unformatted Code In New Window import os ruta=&#34;/root/Desktop/prueba&#34; palabra=&#34;damian&#34; reemplazo=&#34;victor&#34; for root,dirs,files in os.walk(ruta): for file in [f for f in files if f.lower().endswith(&#34;&#34;)]: print(os.path.join(root, file)) fr = open(os.path.join(root, file),'r') chain = fr.read() chain = chain.replace(palabra,reemplazo) fr.close() fw = open(os.path.join(root, file),'w') fw.write(chain) fw.close()]]></description>
			<content:encoded><![CDATA[<p>
<p><a target="_blank" href="/scripts/reemplaza.py">Open Unformatted Code In New Window</a></p>
<pre name="code" class="sh_python">
import os
ruta=&quot;/root/Desktop/prueba&quot;
palabra=&quot;damian&quot;
reemplazo=&quot;victor&quot;
for root,dirs,files in os.walk(ruta):
	for file in [f for f in files if f.lower().endswith(&quot;&quot;)]:
		print(os.path.join(root, file))
		fr = open(os.path.join(root, file),'r')
		chain = fr.read()
		chain = chain.replace(palabra,reemplazo)
		fr.close()
		fw = open(os.path.join(root, file),'w')
		fw.write(chain)
		fw.close() 
</pre>

</p>
<script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_python.js"></script>]]></content:encoded>
			<wfw:commentRss>http://slackve.org/2009/11/27/python-reemplazar-una-palabra-recursivamente-en-todos-los-archivos-de-un-directorio/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
