<?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>Albertux# ./Blog &#187; python</title>
	<atom:link href="http://albertux.ayalasoft.net/es/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://albertux.ayalasoft.net</link>
	<description>Welcome to the new decade: Java is a restricted platform, Google is evil, Apple is a monopoly and Microsoft are the underdogs</description>
	<lastBuildDate>Sat, 04 Sep 2010 00:38:46 +0000</lastBuildDate>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>#!Hackgust -w</title>
		<link>http://albertux.ayalasoft.net/es/2010/09/03/hackgust/</link>
		<comments>http://albertux.ayalasoft.net/es/2010/09/03/hackgust/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 20:30:07 +0000</pubDate>
		<dc:creator>Albertux</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[CA]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[redcross]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.net/es/?p=3556</guid>
		<description><![CDATA[<!--:en-->
<!--:-->]]></description>
			<content:encoded><![CDATA[<p><strong>#!Hackgust -w</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># RANDOM STUFF</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$RANDOM</span></pre></div></div>

<hr />
<strong>Yep now I can save a life:</strong><br />
<img src="http://albertux.ayalasoft.net/img/0826101637a.jpg"></p>
<hr />
<strong>I have network problems almost all this month</strong><br />
Script to login wireless network in Martin Luther King Jr Public Library:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># use your card number and pin, but not work this anymore</span>
<span style="color: #666666; font-style: italic;">#card=____________ # your number card</span>
<span style="color: #666666; font-style: italic;">#pass=____________ # your password</span>
<span style="color: #666666; font-style: italic;">#curl -k -d &quot;user=$card&amp;password=$pass&amp;cmd=authenticate&amp;Login=Log+In&quot; \</span>
<span style="color: #666666; font-style: italic;">#&quot;https://securelogin.arubanetworks.com/cgi-bin/login&quot; &gt; /dev/null</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Now all wireless access use this account:</span>
curl <span style="color: #660033;">-k</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;user=mlkjr&amp;password=library&amp;cmd=authenticate&amp;Login=Log+In&quot;</span> \
<span style="color: #ff0000;">&quot;https://securelogin.arubanetworks.com/cgi-bin/login&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null</pre></div></div>

<p>I use the public library wireless to access Skype but the port was blocked, no problem use a proxy</p>
<p>My .bash_aliases are something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">proxy1</span>=<span style="color: #ff0000;">'ssh -C -D $PORT -fN $user1@domain1'</span> <span style="color: #666666; font-style: italic;"># -C compress slow connection</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">proxy2</span>=<span style="color: #ff0000;">'ssh -D $PORT -fN $user3@domain3'</span> 
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">proxyn</span>=<span style="color: #ff0000;">'ssh -D $PORT -fN $user3@domain2'</span>
<span style="color: #666666; font-style: italic;"># using amazon ec2 ?</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">proxyamazon</span>=<span style="color: #ff0000;">'cd ~/.ec2; ssh -D $PORT -fN -i $USER.pem $USER@$AMAZON_SERVER'</span></pre></div></div>

<p>Proxy tools tsocks and proxychains</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> tsocks proxychains</pre></div></div>

<p>I have problems with tsocks for GUI applications so I use proxychains for Opera and Skype:<br />
My proxychains.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">strict_chain
proxy_dns
tcp_read_time_out 15000
tcp_connect_time_out 8000
[ProxyList]
socks5 127.0.0.1 $PORT</pre></div></div>

<p>Run many firefox profiles with diff (proxy, addons, etc):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
firefox <span style="color: #660033;">-P</span> $<span style="color: #000000;">1</span> <span style="color: #660033;">--no-remote</span> <span style="color: #000000; font-weight: bold;">&amp;</span></pre></div></div>

<hr />
Use Google Chrome with this extensions:</p>
<ul>
<li><a href="https://chrome.google.com/extensions/detail/gighmmpiobklfepjocnamgkkbiglidom?hl=en" target="_blank">AdBlock</a></li>
<li><a href="https://chrome.google.com/extensions/detail/homgcnaoacgigpkkljjjekpignblkeae?hl=en" target="_blank">Chrome Sniffer</li>
<li><a href="https://chrome.google.com/extensions/detail/chklaanhfefbnpoihckbnefhakgolnmc?hl=en" target="_blank">JSONView for chrome</a></li>
<li><a href="https://chrome.google.com/extensions/detail/kmgmkbicahmbceidoidjbkbpkfogaldh?hl=en" target="_blank">jsshell</li>
<li><a href="https://chrome.google.com/extensions/detail/gbkffbkamcejhkcaocmkdeiiccpmjfdi?hl=en" target="_blank">Pendule</a></li>
<li><a href="https://chrome.google.com/extensions/detail/pgnkpcgniljiolidjmodgfljeomjjiha?hl=en" target="_blank">Regular Expression Checker</li>
<li><a href="https://chrome.google.com/extensions/detail/bfbmjmiodbnnpllbbbfblcplfjjepjdn?hl=en" target="_blank">Turn off the lights</a> ( I remember the old <a href="http://www.stage6.com" target="_blank">stage6.com</a> with this extension.)</li>
<li><a href="https://chrome.google.com/extensions/detail/bfbameneiokkgbdmiekhjnmfkcnldhhm?hl=en" target="_blank">Web Developer</a></li>
<li><a href="https://chrome.google.com/extensions/detail/gbammbheopgpmaagmckhpjbfgdfkpadb?hl=en" target="_blank">XML Tree</a></li>
</ul>
<p>Read about CSS frameworks:</p>
<ul>
<li><a href="http://960.gs/" target="_blank">960 Grid Sysrem</a></li>
<li><a href="http://www.blueprintcss.org/" target="_blank">Blueprint</a> (I like this one, I&#8217;m using on one project)</li>
</ul>
<hr />
Using recaptchalib on PHP</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// Hide e-mail using recaptchalib</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'recaptchalib.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// return link (click popup to recaptcha)</span>
<span style="color: #000000; font-weight: bold;">function</span> hide_mail<span style="color: #009900;">&#40;</span><span style="color: #000088;">$mail</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$mailhide_pubkey</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'____'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// your public key</span>
    <span style="color: #000088;">$mailhide_privkey</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'____'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// your private key</span>
    <span style="color: #000088;">$mail_url</span> <span style="color: #339933;">=</span>  recaptcha_mailhide_url <span style="color: #009900;">&#40;</span><span style="color: #000088;">$mailhide_pubkey</span><span style="color: #339933;">,</span> <span style="color: #000088;">$mailhide_privkey</span><span style="color: #339933;">,</span> <span style="color: #000088;">$mail</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">&quot;&lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$mail_url</span><span style="color: #000099; font-weight: bold;">\&quot;</span> onclick=<span style="color: #000099; font-weight: bold;">\&quot;</span>window.open('<span style="color: #006699; font-weight: bold;">$mail_url</span>', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;<span style="color: #000099; font-weight: bold;">\&quot;</span> title=<span style="color: #000099; font-weight: bold;">\&quot;</span>Reveal this e-mail address<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;e-mail&lt;/a&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<hr />
I use Python to improve the speed I put my eye and use this modules: <a href="http://docs.python.org/library/thread.html" target="_blank">thread</a>, <a href="http://docs.python.org/library/multiprocessing.html" target="_blank">multiprocessing</a></p>
<p>I check this projects too (asynchronous io):</p>
<ul>
<li><a href="http://eventlet.net/" target="_blank">eventlet</a></li>
<li><a href="http://psyco.sourceforge.net/" target="_blank">psyco</a></li>
<li><a href="http://twistedmatrix.com/trac/" target="_blank">twisted</a></li>
</ul>
<p>Howto export txt to doc and pdf (using python and openoffice):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># convert resume.txt resume.pdf # very bad quality (ImageMagick)</span>
soffice <span style="color: #660033;">-accept</span>=<span style="color: #ff0000;">&quot;socket,port=8100;urp;&quot;</span> <span style="color: #666666; font-style: italic;"># for remote access</span>
python DocumentConverter.py resume.txt resume.doc <span style="color: #666666; font-style: italic;"># Word Document</span>
python DocumentConverter.py resume.doc resume.pdf <span style="color: #666666; font-style: italic;"># PDF Document</span></pre></div></div>

<p>Download <a href="http://www.artofsolving.com/opensource/pyodconverter" target="_blank">PyODConverter</a></p>
<hr />
I Use Perl:</p>
<p>How to try and catch on Perl (Handling exceptions):</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Error handling on Perl:</span>
<span style="color: #000066;">eval</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;"># your perl code here</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$@</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;Error: &quot;</span><span style="color: #0000ff;">$@</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Perl is amazing for regular expressions a simple example XML file to CSV:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
curl <span style="color: #660033;">-o</span> <span style="color: #ff0000;">&quot;feed.xml&quot;</span> <span style="color: #ff0000;">&quot;http://albertux.ayalasoft.net/feed/&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-ne</span>  <span style="color: #ff0000;">'if (/&lt;title&gt;(.*)&lt;/) {print $1}
    elsif (/&lt;link&gt;(.*)&lt;/) {print &quot;,$1&quot;}
    elsif (/&lt;pubDate&gt;(.*)&lt;/) {print &quot;,$1\n&quot;}'</span> <span style="color: #ff0000;">&quot;feed.xml&quot;</span></pre></div></div>

<hr />
<p><strong>NoSQL</strong></p>
<p>Read about NoSQL and check this projects:</p>
<ul>
<li><a href="http://cassandra.apache.org/" target="_blank">Cassandra</a></li>
<li><a href="http://couchdb.apache.org/" target="_blank">CouchDB</a></li>
<li><a href="http://www.mongodb.org/" target="_blank">MongoDB</a></li>
</ul>
<p>Only play with CouchDB and MongoDB on my notebook.</p>
<hr />
<p><strong>Personal Web projects:</strong></p>
<ul>
<li><a href="http://www.craigseed.org" target="_blank">www.craigseed.org</a></li>
<li><a href="http://www.tablon.mx" target="_blank">www.tablon.mx</a></li>
</ul>
<p>Screens:<br />
<img src="http://albertux.ayalasoft.net/img/craigseed-alpha2.png"><br />
<img src="http://albertux.ayalasoft.net/img/tablonmx-preview-01.png"><br />
<img src="http://albertux.ayalasoft.net/img/tablonmx-preview-02.png"></p>
<p>I will finish this two on this month (that the plan)</p>
<hr />
<p>Post Youtube videos on facebook using <a href="http://fbcmd.dtompkins.com/" target="_blank">fbcmd</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># HOWTO: ./script.sh &quot;text&quot; &quot;url&quot;</span>
fbcmd post flash <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #ff0000;">&quot;http://www.youtube.com/v/<span style="color: #007800;">${2#*=}</span>&quot;</span> \
<span style="color: #ff0000;">&quot;http://img.youtube.com/vi/<span style="color: #007800;">${2#*=}</span>/0.jpg&quot;</span></pre></div></div>

<hr />
Thanks Mom for this pillow:<br />
<img src="http://albertux.ayalasoft.net/img/0827100742a.jpg"><br />
<img src="http://albertux.ayalasoft.net/img/0827100742b.jpg"></p>
<hr />
<p><strong>My Grandpa, Mother and Uncle on the Skydeck Chicago:</strong></p>
<p><img src="http://albertux.ayalasoft.net/img/grandpa-mother-uncle-skydeck.jpg" ></p>
<p>The last two pics with long hair:<br />
<img src="http://albertux.ayalasoft.net/img/0808100805a.jpg"><br />
<img src="http://albertux.ayalasoft.net/img/0812101954a.jpg"></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> remove long-hair</pre></div></div>

<p>and now:<br />
<img src="http://albertux.ayalasoft.net/img/hulkhagust2010.jpg"><br />
<img src="http://albertux.ayalasoft.net/img/0819101118a.jpg"><br />
<img src="http://albertux.ayalasoft.net/img/0820100827a.jpg"><br />
<img src="http://albertux.ayalasoft.net/img/0823100731a.jpg"></p>
<p>For the next month I&#8217;m ready.<br />
<img src="http://albertux.ayalasoft.net/img/0901100816a.jpg">
</ul>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#include &quot;spanish.h&quot;</span></pre></div></div>

<p>Se me olvido mandar saludos a toda la banda en especial a los que ya son papas un saludo a Hector y a Hector Jr, un Saludo a Tere y a Sara su baby, un saludo a toda la banda de MTY pro (Ron, Ortiz Antonio, Texky, Saul (El Unhappy), Alberto Jorge (El champi), la banda del SITE de FIME (Dante, Moy, Felipe), a toda la banda ex Sinemed, a toda la banda ex DGI o DGI (Joaquin el big boss, Joel, a los dos Javieres Rene, Ofelia, Alberto, Jaquelin, Zaira) y a la raza de Softtek (Angel Tomas, Alfredo Pedraza), a la raza del <a href="http://hackerroom.mx/" target="_blank">Hacker Room Mx</a> (Hugo, Cesar Salasar, DFectuoso)</p>
<p>SI se me olvida alguien porfavor perdonenme no lo hago a proposito</p>
<p>No e tomado video por que mi camara no funciona (las fotos fueron tomadas con el celular)</p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.net/es/2010/09/03/hackgust/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Firts Week August</title>
		<link>http://albertux.ayalasoft.net/es/2010/08/08/firts-week-august/</link>
		<comments>http://albertux.ayalasoft.net/es/2010/08/08/firts-week-august/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 21:00:39 +0000</pubDate>
		<dc:creator>Albertux</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[3taps]]></category>
		<category><![CDATA[CA]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[craigseed]]></category>
		<category><![CDATA[craigslist]]></category>
		<category><![CDATA[hackerdojo]]></category>
		<category><![CDATA[indeed]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.net/es/?p=3457</guid>
		<description><![CDATA[(English) zin]]></description>
			<content:encoded><![CDATA[<p><strong>First Week August</strong></p>
<p>I know the last month was <strike>fucking</strike> lazy, but August I think is different, the first week:</p>
<p><img src="http://albertux.ayalasoft.net/img/0803101721a.jpg"></p>
<hr />
CentOS 5.5 setup on VirtualBox with LAMP</p>
<p>Download the netinstall ISO from mirrors:<br />
- <a href="http://isoredirect.centos.org/centos/5.5/isos/i386/" target="_blank">CentOS-5.5-i386-netinstall.iso</a><br />
- <a href="http://isoredirect.centos.org/centos/5.5/isos/x86_64/" target="_blank">CentOS-5.5-x86_64-netinstall.iso</a></p>
<p><img src="http://albertux.ayalasoft.net/img/install-centos-vbox.png"></p>
<p>[HTTP Setup]<br />
Website name: <font color="red">mirror.centos.org</font><br />
CentOS Directory: <font color="red">centos/5.5/os/i386</font></p>
<p>After many screens <strong>select only server</strong></p>
<p>Set up LAMP on CentOS 5.5 Server:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server <span style="color: #666666; font-style: italic;"># mysql server</span>
yum <span style="color: #c20cb9; font-weight: bold;">install</span> php-mysql <span style="color: #666666; font-style: italic;"># php with mysql</span>
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld start <span style="color: #666666; font-style: italic;"># start mysql (password empty)</span>
<span style="color: #666666; font-style: italic;"># put mysqld and httpd in run levels</span>
chkconfig mysqld <span style="color: #660033;">--level</span> <span style="color: #000000;">2345</span> on
chkconfig httpd <span style="color: #660033;">--level</span> <span style="color: #000000;">2345</span> on <span style="color: #666666; font-style: italic;"># httpd is all ready</span></pre></div></div>

<p>If you want to start CentOS on background:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Port forward SSH to 2222 localhost:</span>
VBoxManage modifyvm <span style="color: #ff0000;">&quot;CentOS&quot;</span> <span style="color: #660033;">--natpf1</span> <span style="color: #ff0000;">&quot;guestsssh,tcp,,2222,,22&quot;</span>
<span style="color: #666666; font-style: italic;"># Port forward HTTP to 8080 localhost:</span>
VBoxManage modifyvm <span style="color: #ff0000;">&quot;CentOS&quot;</span> <span style="color: #660033;">--natpf1</span> <span style="color: #ff0000;">&quot;guestshttp,tcp,,8080,,80&quot;</span>
<span style="color: #666666; font-style: italic;"># bash aliases</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">start_centos</span>=<span style="color: #ff0000;">'VBoxManage startvm &quot;CentOS&quot; --type headless'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">centos</span>=<span style="color: #ff0000;">'ssh -p 2222 root@localhost'</span></pre></div></div>

<hr />
Make twitter useful:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#  goto http://code.google.com/p/python-twitter/ on ubuntu:</span>
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> python-twitter</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/bin/env python</span>
<span style="color: #808080; font-style: italic;"># -*- coding: UTF-8 -*-</span>
<span style="color: #808080; font-style: italic;"># Albertux (Alberto Isaac Ayala Esquivias)</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">re</span>, twitter
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">subprocess</span>
<span style="color: #808080; font-style: italic;">####################</span>
<span style="color: #808080; font-style: italic;"># TWITTER  ACCOUNT #</span>
username=<span style="color: #483d8b;">'_________'</span>
password=<span style="color: #483d8b;">'_________'</span>
<span style="color: #808080; font-style: italic;">####################</span>
<span style="color: #808080; font-style: italic;">####################</span>
<span style="color: #808080; font-style: italic;"># EXECUTE COMMANDS #</span>
start = <span style="color: black;">&#91;</span><span style="color: #483d8b;">&quot;command&quot;</span>,<span style="color: #483d8b;">&quot;param1&quot;</span>,<span style="color: #483d8b;">&quot;param2&quot;</span><span style="color: black;">&#93;</span>
stop = <span style="color: black;">&#91;</span><span style="color: #483d8b;">&quot;command&quot;</span>,<span style="color: #483d8b;">&quot;param1&quot;</span>,<span style="color: #483d8b;">&quot;param2&quot;</span><span style="color: black;">&#93;</span>
<span style="color: #808080; font-style: italic;">####################</span>
<span style="color: #808080; font-style: italic;">####################</span>
api = twitter.<span style="color: black;">Api</span><span style="color: black;">&#40;</span>username, password<span style="color: black;">&#41;</span>
statuses = api.<span style="color: black;">GetUserTimeline</span><span style="color: black;">&#40;</span>USER_YOU_FOLLOW<span style="color: black;">&#41;</span>
msgs = <span style="color: black;">&#91;</span>s.<span style="color: black;">text</span> <span style="color: #ff7700;font-weight:bold;">for</span> s <span style="color: #ff7700;font-weight:bold;">in</span> statuses<span style="color: black;">&#93;</span>
last_msg = msgs<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span>
flag = <span style="color: #dc143c;">re</span>.<span style="color: black;">findall</span><span style="color: black;">&#40;</span>r<span style="color: #483d8b;">&quot;REGEX&quot;</span>,last_msg,<span style="color: #dc143c;">re</span>.<span style="color: black;">I</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span>flag<span style="color: black;">&#41;</span> <span style="color: #66cc66;">&gt;</span> <span style="color: #ff4500;">0</span>:
    <span style="color: #dc143c;">subprocess</span>.<span style="color: black;">call</span><span style="color: black;">&#40;</span>stop<span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">else</span>:
    <span style="color: #dc143c;">subprocess</span>.<span style="color: black;">call</span><span style="color: black;">&#40;</span>start<span style="color: black;">&#41;</span></pre></div></div>

<p>using bash:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> watch <span style="color: #660033;">-n</span> <span style="color: #000000;">60</span> .<span style="color: #000000; font-weight: bold;">/</span>twitter_check</pre></div></div>

<hr />
3taps heartbeater (latency of post):<br />
<img src="http://albertux.ayalasoft.net/img/grabber-indeed-3taps.png"></p>
<hr />
Myself:<br />
<img src="http://albertux.ayalasoft.net/img/0803102114a.jpg"><br />
<img src="http://albertux.ayalasoft.net/img/0804101839a.jpg"><br />
<img src="http://albertux.ayalasoft.net/img/0806100742a.jpg"><br />
<img src="http://albertux.ayalasoft.net/img/0806101108a.jpg"></p>
<hr />
Dr Martin Luther King Jr Pics:<br />
<img src="http://albertux.ayalasoft.net/img/0804101306a.jpg"><br />
<img src="http://albertux.ayalasoft.net/img/0804101306b.jpg"></p>
<hr />
Hackerdojo pics:<br />
<img src="http://albertux.ayalasoft.net/img/0803101930a.jpg"><br />
<img src="http://albertux.ayalasoft.net/img/0806101906b.jpg"><br />
<img src="http://albertux.ayalasoft.net/img/0806101906c.jpg"><br />
<img src="http://albertux.ayalasoft.net/img/0806101907a.jpg"><br />
<img src="http://albertux.ayalasoft.net/img/0806102224a.jpg"></p>
<hr />
Random pics:<br />
P0rn knowledge:<br />
<img src="http://albertux.ayalasoft.net/img/0804101309a.jpg"><br />
Damn I lost this pin of <a href="http://hackerdojo.pbworks.com/" target="_blank">#hackerdojo</a> :&#8217;(<br />
<img src="http://albertux.ayalasoft.net/img/0804101052a.jpg"></p>
<hr />
Personal projects:</p>
<ul>
<li><a href="http://www.craigseed.org" target="_blank">www.craigseed.org</a>  (a <a href="http://www.craigslist.org" target="_blank">craigslist</a> filter, status alpha-dev)</li>
<li><a href="http://www.latincoders.com" target="_blank">www.latincoders.com</a> (nothing online)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.net/es/2010/08/08/firts-week-august/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>FTP for Developers</title>
		<link>http://albertux.ayalasoft.net/es/2009/01/29/ftp-for-developers/</link>
		<comments>http://albertux.ayalasoft.net/es/2009/01/29/ftp-for-developers/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 02:54:52 +0000</pubDate>
		<dc:creator>Albertux</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[unix/linux]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.net/es/?p=1572</guid>
		<description><![CDATA[FTP para Desarrolladores En estos ejemplos se sube un archivo de texto plano para mejores implementaciones lea la API o la documentacion de cada lenguaje o comando Curl: curl -T filename -u username:password ftp://hostname/filename Perl: use Net::FTP; $hostname = &#34;localhost&#34;; $username = &#34;user&#34;; $password = &#34;pass&#34;; $filename = &#34;file.txt&#34;; $ftp = Net::FTP-&#62;new&#40;$hostname&#41;; $ftp-&#62;login&#40;$username,$password&#41;; $ftp-&#62;put&#40;$filename&#41;; $ftp-&#62;quit; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>FTP para Desarrolladores</strong></p>
<p>En estos ejemplos se sube un archivo de texto plano para mejores implementaciones lea la API o la documentacion de cada lenguaje o comando</p>
<p>Curl:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">curl <span style="color: #660033;">-T</span> filename <span style="color: #660033;">-u</span> username:password <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>hostname<span style="color: #000000; font-weight: bold;">/</span>filename</pre></div></div>

<p>Perl:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">use</span> Net<span style="color: #339933;">::</span><span style="color: #006600;">FTP</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$hostname</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;localhost&quot;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$username</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;user&quot;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$password</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;pass&quot;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$filename</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;file.txt&quot;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$ftp</span> <span style="color: #339933;">=</span> Net<span style="color: #339933;">::</span><span style="color: #006600;">FTP</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">new</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$hostname</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$ftp</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">login</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$username</span><span style="color: #339933;">,</span><span style="color: #0000ff;">$password</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$ftp</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">put</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$ftp</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">quit</span><span style="color: #339933;">;</span></pre></div></div>

<p>Manejo de errores usa &#8220;or die $@&#8221; (&#8220;$ftp>message&#8221; solo cuando el login haya funcionado)</p>
<p>PHP:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$hostname</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$username</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;user&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$password</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;pass&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;file.txt&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$conn</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ftp_connect</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hostname</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">ftp_login</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$conn</span><span style="color: #339933;">,</span> <span style="color: #000088;">$username</span><span style="color: #339933;">,</span> <span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">ftp_put</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$conn</span><span style="color: #339933;">,</span><span style="color: #000088;">$filename</span><span style="color: #339933;">,</span><span style="color: #000088;">$filename</span><span style="color: #339933;">,</span>FTP_ASCII<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">ftp_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$conn</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Manejo de errores usando &#8220;if(!function)&#8221;</p>
<p>Python:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">ftplib</span>
hostname = <span style="color: #483d8b;">&quot;localhost&quot;</span>
username = <span style="color: #483d8b;">&quot;user&quot;</span>
password = <span style="color: #483d8b;">&quot;pass&quot;</span>
filename = <span style="color: #483d8b;">&quot;file.txt&quot;</span>
ftp = <span style="color: #dc143c;">ftplib</span>.<span style="color: black;">FTP</span><span style="color: black;">&#40;</span>hostname<span style="color: black;">&#41;</span>
ftp.<span style="color: black;">login</span><span style="color: black;">&#40;</span>username, password<span style="color: black;">&#41;</span>
ftp.<span style="color: black;">storlines</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;STOR &quot;</span> + filename, <span style="color: #008000;">open</span><span style="color: black;">&#40;</span>filename<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
ftp.<span style="color: black;">quit</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div>

<p>Manejo de errores usando &#8220;try&#8221;, &#8220;except&#8221; y &#8220;else&#8221;</p>
<p>Ruby:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'net/ftp'</span>
host = <span style="color:#996600;">'localhost'</span>
user = <span style="color:#996600;">'user'</span>
pass = <span style="color:#996600;">'pass'</span>
file = <span style="color:#996600;">'file.txt'</span>
ftp = <span style="color:#6666ff; font-weight:bold;">Net::FTP</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span>hostname<span style="color:#006600; font-weight:bold;">&#41;</span>
ftp.<span style="color:#9900CC;">login</span><span style="color:#006600; font-weight:bold;">&#40;</span>username,password<span style="color:#006600; font-weight:bold;">&#41;</span>
ftp.<span style="color:#9900CC;">puttextfile</span><span style="color:#006600; font-weight:bold;">&#40;</span>filename<span style="color:#006600; font-weight:bold;">&#41;</span>
ftp.<span style="color:#9900CC;">close</span></pre></div></div>

<p>Manejo de errores usando &#8220;begin&#8221;, &#8220;rescue&#8221;, &#8220;else&#8221;, &#8220;ensure&#8221; y &#8220;end&#8221;.</p>
<p>Win32 batch:</p>

<div class="wp_syntax"><div class="code"><pre class="winbatch" style="font-family:monospace;"><span style="color: #0080FF; font-weight: bold;">ftp</span> <span style="color: #66cc66;">-</span>s<span style="color: #FF1010; font-weight: bold;">:settings.txt hostname</span></pre></div></div>

<p>settings.txt:</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">username
password
put filename
bye</pre></div></div>

<p>Manejo de errores usando &#8220;if not %errorlevel%==0 goto :error&#8221; </p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.net/es/2009/01/29/ftp-for-developers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Python and NetBeans</title>
		<link>http://albertux.ayalasoft.net/es/2009/01/23/python-and-netbeans/</link>
		<comments>http://albertux.ayalasoft.net/es/2009/01/23/python-and-netbeans/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 18:59:04 +0000</pubDate>
		<dc:creator>Albertux</dc:creator>
				<category><![CDATA[unix/linux]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.net/es/?p=1473</guid>
		<description><![CDATA[Python and NetBeans Menu => Tools => Plugins New Python Project: Jython ( http://www.jython.org ) Python ( http://www.python.org )]]></description>
			<content:encoded><![CDATA[<p><strong>Python and NetBeans</strong></p>
<p>Menu  => Tools => Plugins<br />
<a href="http://albertux.ayalasoft.net/img/python-netbeans-01.jpg" rel="shadowbox[pynb]"><br />
<img src="http://albertux.ayalasoft.net/img/python-netbeans-01-thumb.jpg" /><br />
</a></p>
<p>New Python Project:<br />
<a href="http://albertux.ayalasoft.net/img/python-netbeans-02.jpg" rel="shadowbox[pynb]"><br />
<img src="http://albertux.ayalasoft.net/img/python-netbeans-02-thumb.jpg" /><br />
</a></p>
<p><a href="http://albertux.ayalasoft.net/img/python-netbeans-03.jpg" rel="shadowbox[pynb]"><br />
<img src="http://albertux.ayalasoft.net/img/python-netbeans-03-thumb.jpg" /><br />
</a></p>
<p>Jython ( <a href="http://www.jython.org" target="_blank">http://www.jython.org</a> )<br />
Python ( <a href="http://www.python.org" target="_blank">http://www.python.org</a> )</p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.net/es/2009/01/23/python-and-netbeans/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Python 3.0 Final Released</title>
		<link>http://albertux.ayalasoft.net/es/2008/12/04/python-30-final-released/</link>
		<comments>http://albertux.ayalasoft.net/es/2008/12/04/python-30-final-released/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 08:05:52 +0000</pubDate>
		<dc:creator>Albertux</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.net/es/?p=1098</guid>
		<description><![CDATA[Python 3.0 Final Released Python 3.0 (a.k.a. &#8220;Python 3000&#8243; or &#8220;Py3k&#8221;) is a new version of the language that is incompatible with the 2.x line of releases. The language is mostly the same, but many details, especially how built-in objects like dictionaries and strings work, have changed considerably, and a lot of deprecated features have [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Python 3.0 Final Released</strong></p>
<p>Python 3.0 (a.k.a. &#8220;Python 3000&#8243; or &#8220;Py3k&#8221;) is a new version of the language that is incompatible with the 2.x line of releases. The language is mostly the same, but many details, especially how built-in objects like dictionaries and strings work, have changed considerably, and a lot of deprecated features have finally been removed. Also, the standard library has been reorganized in a few prominent places.</p>
<p><a href="http://docs.python.org/dev/3.0/whatsnew/3.0.html" target="_blank">What&#8217;s New</a> and <a href="http://python.org/download/releases/3.0/" target="_blank">download</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.net/es/2008/12/04/python-30-final-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TODO LIST 2009</title>
		<link>http://albertux.ayalasoft.net/es/2008/12/01/todo-list-2009/</link>
		<comments>http://albertux.ayalasoft.net/es/2008/12/01/todo-list-2009/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 05:01:37 +0000</pubDate>
		<dc:creator>Albertux</dc:creator>
				<category><![CDATA[unix/linux]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[cobol]]></category>
		<category><![CDATA[dotnet]]></category>
		<category><![CDATA[haskell]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.net/es/?p=1058</guid>
		<description><![CDATA[TODO LIST 2009 Read/Learn/Practice: Python 2.6 (What&#8217;s New) Perl 5 (Modules, Packages) PHP (Changes, and news) COBOL .NET (C#, LINQ, (ok VB but not much)) Java (Im interested on Mobil Applications) Haskell Ruby (Im interested on Rails) Parrot and Pugs Gnu/Linux (Services and Bash) BSD and OpenSolaris Personal Projects 2009: BSE (Blog&#8217;s Search Engine) (http://BSE.AyalaSoft.com) [...]]]></description>
			<content:encoded><![CDATA[<p><strong>TODO LIST 2009</strong></p>
<p><strong>Read/Learn/Practice:</strong></p>
<p>Python 2.6 (<a href="http://docs.python.org/whatsnew/2.6.html" target="_blank">What&#8217;s New</a>)<br />
Perl 5 (<a href="http://www.cpan.org" target="_blank">Modules</a>, <a href="http://perldoc.perl.org/functions/package.html" target="_blank">Packages</a>)<br />
PHP (<a href="http://www.php.net/archive/2008.php#id2008-08-01-1" target="_blank">Changes</a>, and news)<br />
COBOL<br />
.NET (C#, LINQ, (ok VB but not much))<br />
Java (Im interested on Mobil Applications)<br />
Haskell<br />
Ruby (Im interested on Rails)<br />
Parrot and Pugs<br />
Gnu/Linux (Services and Bash)<br />
<a href="http://www.bsd.org/" target="_blank">BSD</a> and <a href="http://opensolaris.org/os/" target="_blank">OpenSolaris</a></p>
<p><strong>Personal Projects 2009:</strong></p>
<p>BSE (Blog&#8217;s Search Engine) (<a href="http://bse.ayalasoft.net" target="_blank">http://BSE.AyalaSoft.com</a>)<br />
Invoices PHP (Now is part of a Intranet) (<a href="http://valuacion.com.mx" target="_blank">http://valuacion.com.mx</a>)<br />
Forming one&#8217;s own business<br />
And others &#8230;.</p>
<p>Lambda Functions on PHP 5.3.0:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #000088;">$lambda</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Hello World!<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Parrot &#8220;Hello World&#8221; example:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #339933;">.</span><span style="color: #000000; font-weight: bold;">sub</span> main
      <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;Hello World!<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">.</span>end</pre></div></div>

<p>COBOL &#8220;Hello World&#8221; example:</p>

<div class="wp_syntax"><div class="code"><pre class="cobol" style="font-family:monospace;"><span style="color: #a0a0a0; font-style: italic;">* Hello World Program</span>
<span style="color: #a0a0a0; font-style: italic;">* GPL Copyleft Jonathan Riddell 2001</span>
	<span style="color: #008000; font-weight: bold;">IDENTIFICATION</span> <span style="color: #008000; font-weight: bold;">DIVISION</span><span style="color: #000066;">.</span>
	<span style="color: #008000; font-weight: bold;">PROGRAM-ID</span><span style="color: #000066;">.</span>    hello<span style="color: #000066;">.</span>
	ENVIRONMENT <span style="color: #008000; font-weight: bold;">DIVISION</span><span style="color: #000066;">.</span>
	<span style="color: #008000; font-weight: bold;">DATA</span> <span style="color: #008000; font-weight: bold;">DIVISION</span><span style="color: #000066;">.</span>
&nbsp;
	<span style="color: #008000; font-weight: bold;">PROCEDURE</span> <span style="color: #008000; font-weight: bold;">DIVISION</span><span style="color: #000066;">.</span>
		<span style="color: #000000; font-weight: bold;">DISPLAY</span> <span style="color: #ff0000;">&quot;Hello ,&quot;</span> <span style="color: #008000; font-weight: bold;">WITH</span> <span style="color: #008000; font-weight: bold;">NO</span> <span style="color: #008000; font-weight: bold;">ADVANCING</span>
		<span style="color: #000000; font-weight: bold;">DISPLAY</span> <span style="color: #ff0000;">&quot;World!&quot;</span>
		<span style="color: #008000; font-weight: bold;">STOP</span> <span style="color: #008000; font-weight: bold;">RUN</span><span style="color: #000066;">.</span></pre></div></div>

<p>Haskell &#8220;Hello World&#8221; example:</p>

<div class="wp_syntax"><div class="code"><pre class="haskell" style="font-family:monospace;"><span style="font-weight: bold;">putStrLn</span> <span style="background-color: #3cb371;">&quot;Hello World!&quot;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.net/es/2008/12/01/todo-list-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google App Engine</title>
		<link>http://albertux.ayalasoft.net/es/2008/11/05/google-app-engine/</link>
		<comments>http://albertux.ayalasoft.net/es/2008/11/05/google-app-engine/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 21:22:13 +0000</pubDate>
		<dc:creator>Albertux</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.net/es/?p=812</guid>
		<description><![CDATA[Google App Engine Downloads (http://code.google.com/appengine/downloads.html) Google App Engine use Django, webob, yaml. You need Python (http://www.python.org) (Python 2.5) The configuration file app.yaml There are two main Python scripts: dev_appserver.py: the development web server appcfg.py: for uploading your app to App Engine Video from the The Google Code Channel: See the applications gallery]]></description>
			<content:encoded><![CDATA[<p><strong>Google App Engine</strong></p>
<p>Downloads (<a href="http://code.google.com/appengine/downloads.html" target="_blank">http://code.google.com/appengine/downloads.html</a>)</p>
<p>Google App Engine use <a href="http://www.djangoproject.com/" target="_blank">Django</a>, <a href="http://pythonpaste.org/webob/" target="_blank">webob</a>, <a href="http://www.yaml.org/" target="_blank">yaml</a>.</p>
<p>You need Python (<a href="http://www.python.org" target="_blank">http://www.python.org</a>) (Python 2.5)</p>
<p>The configuration file <a href="http://code.google.com/appengine/docs/configuringanapp.html" target="_blank">app.yaml</a></p>
<p>There are two main Python scripts:</p>
<ul>
<li><a href="http://code.google.com/appengine/docs/thedevwebserver.html" target="_blank">dev_appserver.py</a>: the development web server</li>
<li><a href="http://code.google.com/appengine/docs/appcfgpy.html" target="_blank">appcfg.py</a>: for uploading your app to App Engine</li>
</ul>
<p>Video from the <a href="http://www.youtube.com/user/GoogleDevelopers" target="_blank">The Google Code Channel</a>:</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/bfgO-LXGpTM&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/bfgO-LXGpTM&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>See the <a href="http://appgallery.appspot.com/" target="_blank">applications gallery</a></p>
<p><img src="http://albertux.ayalasoft.net/img/appengine-silver-120x30.gif" alt="Google App Engine" /></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.net/es/2008/11/05/google-app-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Windows ? Don&#039;t kill Yourself</title>
		<link>http://albertux.ayalasoft.net/es/2008/10/27/using-windows-dont-kill-yourself/</link>
		<comments>http://albertux.ayalasoft.net/es/2008/10/27/using-windows-dont-kill-yourself/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 19:01:41 +0000</pubDate>
		<dc:creator>Albertux</dc:creator>
				<category><![CDATA[unix/linux]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.net/es/?p=747</guid>
		<description><![CDATA[Using Windows ? Don&#8217;t Kill Yourself Supose you are Linux user and you have a Windows system. Alternatives: Cygwin, Mingw or Colinux You need some (or all) of this interpreters: Perl, PHP, Python and Ruby Modify the %PATH% Example you have a bin dir, on C:\ to include the executables on the %PATH% do this: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Using Windows ? Don&#8217;t Kill Yourself</strong></p>
<p>Supose you are Linux user and you have a Windows system.</p>
<p>Alternatives: <a href="http://www.cygwin.com/" target="_blank">Cygwin</a>, <a href="http://www.mingw.org/" target="_blank">Mingw</a> or <a href="http://www.colinux.org/" target="_blank">Colinux</a></p>
<p>You need some (or all) of this interpreters:<br />
<a href="http://strawberryperl.com" target="_blank">Perl</a>, <a href="http://www.php.net" target="_blank">PHP</a>, <a href="http://www.python.org" target="_blank">Python</a> and <a href="http://www.ruby-lang.org/en" target="_blank">Ruby</a></p>
<p>Modify the %PATH%</p>
<p>Example you have a bin dir, on <span style="color:#00ff00">C:\</span> to include the executables on the <span style="color:#00ff00">%PATH%</span> do this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="winbatch" style="font-family:monospace;">set PATH=<span style="color: #66cc66;">%</span>PATH<span style="color: #66cc66;">%</span><span style="color: #008000; font-style: italic;">;C:\bin\</span></pre></td></tr></table></div>

<p>On Windows Vista, you can use your mouse:</p>
<p>computer > properties > Advances system settings > (continue) >  Advanced > Enviroment Variables > System Variables > Path (edit)</p>
<p>Example run Kompozer on cmd.exe but no modify <span style="color:#00ff00;">%PATH%</span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="winbatch" style="font-family:monospace;"><span style="color: #FF1010; font-weight: bold;">: kompozer.bat save on %WINDIR%</span>
<span style="color: #66cc66;">@</span><span style="color: #ff0000;">&quot;C:\Program Files\Kompozer\kompozer.exe&quot;</span></pre></td></tr></table></div>

<p>Doble click on your scripts to run:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="winbatch" style="font-family:monospace;"><span style="color: #FF1010; font-weight: bold;">: Perl Scripts</span>
 assoc .pl=Perl.File
 ftype Perl.File=C<span style="color: #FF1010; font-weight: bold;">:\strawberry\perl\bin\perl.exe &quot;%1&quot; %*</span>
 set PATHEXT=<span style="color: #66cc66;">%</span>PATHEXT<span style="color: #66cc66;">%</span><span style="color: #008000; font-style: italic;">;.pl</span>
<span style="color: #FF1010; font-weight: bold;">: Python Scripts</span>
 assoc .py=Python.File
 ftype Python.File=C<span style="color: #FF1010; font-weight: bold;">:\Python26\python.exe &quot;%1&quot; %*</span>
 set PATHEXT=<span style="color: #66cc66;">%</span>PATHEXT<span style="color: #66cc66;">%</span><span style="color: #008000; font-style: italic;">;.py</span></pre></td></tr></table></div>

<p>Note:<br />
On Windows Vista you need run <span style="color:#00ff00">cmd.exe</span> as Administrator don&#8217;t work as normal user</p>
<p>Apache, PHP and MySQL ?<br />
<a href="http://www.apachefriends.org/en/xampp.html" target="_blank">XAMPP</a> and <a href="http://www.server2go-web.de/" target="_blank">Server2Go</a></p>
<p>Notes:<br />
XAMPP: simple, quick and easy install.<br />
Server2Go: is great to make CD demo of a Web Application.</p>
<p>Using Perl or Python as CGI on Windows ?</p>
<p>Using Python 2.6</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!\python26\python.exe</span></pre></td></tr></table></div>

<p>Using Strawberry Perl:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!\strawberry\perl\bin\perl.exe</span></pre></td></tr></table></div>

<p>Now your script works on http://localhost/<span style="color:#00ff00">cgi-bin/</span>script.cgi</p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.net/es/2008/10/27/using-windows-dont-kill-yourself/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PDF Libraries</title>
		<link>http://albertux.ayalasoft.net/es/2008/10/02/pdf-libraries/</link>
		<comments>http://albertux.ayalasoft.net/es/2008/10/02/pdf-libraries/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 21:51:40 +0000</pubDate>
		<dc:creator>Albertux</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c/c++]]></category>
		<category><![CDATA[dotnet]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.net/es/?p=660</guid>
		<description><![CDATA[PDF Libraries Sometimes we need create or export data into a PDF: .NET: http://www.pdfsharp.com, http://www.codeplex.com/Print2Pdf C++: http://libharu.org Perl: http://search.cpan.org/~markusb/PDF-Create/lib/PDF/Create.pm sudo perl -MCPAN -e 'install PDF::Create' PHP: http://www.fpdf.org, http://www.digitaljunkies.ca/dompdf, http://pear.php.net/package/File_PDF Python: http://www.reportlab.org wget -c http://www.reportlab.org/ftp/ReportLab_2_2.tgz tar xvzf ReportLab_2_2.tgz cd ReportLab_2_2 sudo python setup.py install Java: http://www.lowagie.com/iText, http://www.pdfbox.org Ruby: http://ruby-pdf.rubyforge.org/pdf-writer sudo gem install pdf-writer]]></description>
			<content:encoded><![CDATA[<p><strong>PDF Libraries</strong></p>
<p>Sometimes we need create or export data into a PDF:</p>
<p>.NET:<br />
<a href="http://www.pdfsharp.com" target="_blank">http://www.pdfsharp.com</a>, <a href="http://www.codeplex.com/Print2Pdf" target="_blank">http://www.codeplex.com/Print2Pdf</a></p>
<p>C++:<br />
<a href="http://libharu.org" target="_blank">http://libharu.org</a></p>
<p>Perl:<br />
<a href="http://search.cpan.org/~markusb/PDF-Create/lib/PDF/Create.pm" target="_blank">http://search.cpan.org/~markusb/PDF-Create/lib/PDF/Create.pm</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-MCPAN</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'install PDF::Create'</span></pre></div></div>

<p>PHP:<br />
<a href="http://www.fpdf.org" target="_blank">http://www.fpdf.org</a>, <a href="http://www.digitaljunkies.ca/dompdf" target="_blank">http://www.digitaljunkies.ca/dompdf</a>, <a href="http://pear.php.net/package/File_PDF" target="_blank">http://pear.php.net/package/File_PDF</a></p>
<p>Python:<br />
<a href="http://www.reportlab.org" target="_blank">http://www.reportlab.org</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-c</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.reportlab.org<span style="color: #000000; font-weight: bold;">/</span>ftp<span style="color: #000000; font-weight: bold;">/</span>ReportLab_2_2.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf ReportLab_2_2.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> ReportLab_2_2
<span style="color: #c20cb9; font-weight: bold;">sudo</span> python setup.py <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Java:<br />
<a href="http://www.lowagie.com/iText" target="_blank">http://www.lowagie.com/iText</a>, <a href="http://www.pdfbox.org" target="_blank">http://www.pdfbox.org</a></p>
<p>Ruby:<br />
<a href="http://ruby-pdf.rubyforge.org/pdf-writer" target="_blank">http://ruby-pdf.rubyforge.org/pdf-writer</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> pdf-writer</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.net/es/2008/10/02/pdf-libraries/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PunBB + Python = PynBB (Linked)</title>
		<link>http://albertux.ayalasoft.net/es/2008/09/30/punbb-python-pynbb-linked/</link>
		<comments>http://albertux.ayalasoft.net/es/2008/09/30/punbb-python-pynbb-linked/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 02:28:31 +0000</pubDate>
		<dc:creator>Albertux</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://albertux.ayalasoft.net/es/?p=674</guid>
		<description><![CDATA[PunBB + Python = PynBB (Linked) I say: Is a great honor to me, you linked my python script (PynBB) to the wiki of PunBB I will continue learing python and punbb source code to give more options to this script Thanks. http://punbb.informer.com/wiki/doku.php?id=links]]></description>
			<content:encoded><![CDATA[<p><strong>PunBB + Python = PynBB (Linked)</strong></p>
<p><strong>I say:</strong></p>
<blockquote><p>Is a great honor to me, you linked my python script (<a href="http://albertux.ayalasoft.net/2008/09/22/punbb-python-pynbb/">PynBB</a>) to the wiki of PunBB<br />
I will continue learing python and punbb source code to give more options to this script</p>
<p>Thanks.</p>
</blockquote>
<p><a href=" http://punbb.informer.com/wiki/doku.php?id=links" target="_blank"></p>
<p>http://punbb.informer.com/wiki/doku.php?id=links</a></p>
]]></content:encoded>
			<wfw:commentRss>http://albertux.ayalasoft.net/es/2008/09/30/punbb-python-pynbb-linked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
