<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>pydev &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/pydev/</link>
	<description>Feed of posts on WordPress.com tagged "pydev"</description>
	<pubDate>Sat, 28 Nov 2009 16:26:31 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Instalação do PyDev no Arch Linux]]></title>
<link>http://netshot.wordpress.com/2009/11/25/instalacao-do-pydev-no-arch-linux/</link>
<pubDate>Wed, 25 Nov 2009 18:41:06 +0000</pubDate>
<dc:creator>netshot</dc:creator>
<guid>http://netshot.wordpress.com/2009/11/25/instalacao-do-pydev-no-arch-linux/</guid>
<description><![CDATA[Estou lendo o livro &#8220;Dive into Python&#8221; e resolvi usar o Eclipse como ide, no Arch Linux ]]></description>
<content:encoded><![CDATA[Estou lendo o livro &#8220;Dive into Python&#8221; e resolvi usar o Eclipse como ide, no Arch Linux ]]></content:encoded>
</item>
<item>
<title><![CDATA[How to install Eclipse and PyDev in your Windows XP]]></title>
<link>http://victorwestmann.wordpress.com/2009/10/27/how-to-install-eclipse-and-pydev-in-your-windows/</link>
<pubDate>Tue, 27 Oct 2009 03:15:00 +0000</pubDate>
<dc:creator>Victorino</dc:creator>
<guid>http://victorwestmann.wordpress.com/2009/10/27/how-to-install-eclipse-and-pydev-in-your-windows/</guid>
<description><![CDATA[This post was written in(dd-mm-yyyy hh:mm) 27/10/2009 00:39 PM (-3 GMT) I’ll try to put here a step-]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This post was written in(dd-mm-yyyy hh:mm) 27/10/2009 00:39 PM (-3 GMT)</p>
<p>I’ll try to put here a step-by-step of what you should do on your Windows XP machine  in order to install Eclipse to use it as a Python IDE.</p>
<h2 style="text-align:left;"><span style="color:#333333;">DOWNLOADING</span></h2>
<p>You&#8217;ll need the following &#8211; software to be downloaded and installed &#8211; in the exact order that follows beneath:</p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong></p>
<ol>
<li><span style="font-weight:normal;"><strong>Administrator privileges</strong> in your Windows machine.</span></li>
<li><span style="font-weight:normal;"><strong><a href="http://www.python.org/">Python</a></strong><strong> </strong>(Version <a href="http://python.org/download/releases/2.6.4/"><strong>2.6.4</strong></a> (or <strong><a href="http://python.org/download/releases/3.1.1/">3.1.1</a><span style="font-weight:normal;">)</span></strong>. Size ~13Mb. <em>Depends of which version you want/need</em>)</span></li>
<li><span style="font-weight:normal;"><strong><a href="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/europa/winter/eclipse-java-europa-winter-win32.zip">Eclipse Europa</a> </strong>(Version 3.3.2 (released in 2007). Size of 79,3 Mb.)</span></li>
<li><span style="font-weight:normal;"><strong><a href="http://pydev.org/download.html">PyDev</a> </strong>(Version 1.5.0. Size ~5 Mb. <em>Will be installed through Eclipse</em>).</span></li>
</ol>
<p></strong></p>
<p>&#160;</p>
<p>After you&#8217;re logged into your machine as an administrator you should download the softwares from 2-3.</p>
<p>Eclipse:</p>
<ol>
<li>Extract and run Eclipse.</li>
<li>Go to the menu <strong>&#8220;Help&#8221; </strong>&#62;<strong> &#8220;Find and Update&#8221; </strong>&#62;<strong> &#8220;Find and Install&#8230;&#8221;</strong>.</li>
<li>Select the option<strong> &#8220;Search for new features to install&#8221; </strong>and click<strong> &#8220;Next&#8221;</strong>.</li>
<li>Click the button<strong> &#8220;New Remote Site&#8221; </strong>and fill the<strong> &#8220;Name:&#8221; </strong>field with the name <strong>PyDev </strong>and the <strong>&#8220;URL:&#8221; </strong>field with the following URL: <strong><a href="http://pydev.org/updates">http://pydev.org/updates</a></strong></li>
<li>Click<strong> &#8220;Finish&#8221;.</strong></li>
<li>Select the entire PyDev package or the packages you want <strong>&#8220;</strong><strong>PyDev&#8221;</strong> and/or <strong>&#8220;</strong><strong>PyDev Mylnyn Integration (optional)&#8221;.</strong></li>
<li>Click<strong> &#8220;Next&#8221;.</strong></li>
<li><strong>&#8220;I accept the terms in the license agreements&#8221;.</strong></li>
<li>Click<strong> &#8220;Next&#8221; </strong>and<strong> &#8220;Finish&#8221;.</strong></li>
<li>After a while click<strong> &#8220;Install all&#8221;.</strong></li>
<li>Eclipse will ask you if it&#8217;s ok to restart click <strong>&#8220;Yes&#8221;.</strong></li>
</ol>
<p>PyDev 1.5.0 will take ~21,96 Mb.</p>
<h2 style="text-align:left;"><span style="color:#333333;">CONFIGURING THE INTERPRETER</span></h2>
<p>Now you should do the following inside Eclipse:</p>
<ol>
<li>Click in <strong>&#8220;Window&#8221; &#62; &#8220;Preferences&#8230;&#8221; &#62; &#8220;PyDev&#8221;.</strong></li>
<li>Click in the option<strong> &#8220;Interpreter - Python&#8221; </strong>and click in the upper right button named <strong>&#8220;New&#8221;.</strong></li>
<li>Click in the <strong>&#8220;Browse&#8221; </strong>button to search for your <strong>&#8220;python.exe&#8221;</strong> file and after that click <strong>&#8220;Ok&#8221; </strong>three times.</li>
</ol>
<p>Done! If you did everything correctly you&#8217;ll have by now Python and Eclipse working together. For further information check the <strong><a href="http://pydev.org/manual_101_root.html">PyDev Documentation site</a></strong>. Enjoy! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[PyDev 1.5 on Eclipse Galileo 3.5 SR1]]></title>
<link>http://dbaktiar.wordpress.com/2009/10/21/pydev-1-5-on-eclipse-galileo-3-5-sr1/</link>
<pubDate>Wed, 21 Oct 2009 10:28:36 +0000</pubDate>
<dc:creator>dbaktiar</dc:creator>
<guid>http://dbaktiar.wordpress.com/2009/10/21/pydev-1-5-on-eclipse-galileo-3-5-sr1/</guid>
<description><![CDATA[I begin to have more time to explore the Eclipse Galileo Service Release 1 (Eclipse 3.5.1). This tim]]></description>
<content:encoded><![CDATA[I begin to have more time to explore the Eclipse Galileo Service Release 1 (Eclipse 3.5.1). This tim]]></content:encoded>
</item>
<item>
<title><![CDATA[A weather plasmoid in python]]></title>
<link>http://hardikmehta.wordpress.com/2009/08/13/a-weather-plasmoid-in-python/</link>
<pubDate>Thu, 13 Aug 2009 20:02:53 +0000</pubDate>
<dc:creator>hardikmehta</dc:creator>
<guid>http://hardikmehta.wordpress.com/2009/08/13/a-weather-plasmoid-in-python/</guid>
<description><![CDATA[Ever since I heard about plasma I was eager to find ways to write my own plasmoid. But for the devel]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Ever since I heard about <a title="Plasma" href="http://plasma.kde.org/" target="_blank">plasma</a> I was eager to find ways to write my own plasmoid. But for the development of binary plasmoids, it is necessary to compile at least a part of kde4, at least this is what I understood from the prerequisite listed on the official <a href="http://techbase.kde.org/Development/Tutorials/Plasma/GettingStarted">tutorial</a>. This discouraged me a bit. Moreover, I think that installation of the binary gadgets also requires to either package them properly according to the distribution you want to distribute for or you need to provide the sources that requires the users to build them. This  in my opinion is really a huge overhead for small applications like desktop gadgets / widgets. Then I found that it is also possible to develop plasmoids with script languages like <a title="Plasmoids in python" href="http://techbase.kde.org/Development/Tutorials/Plasma#Plasma_Programming_with_Python" target="_blank">python</a>, <a title="Plasmoids in ruby" href="http://techbase.kde.org/Development/Tutorials/Plasma#Plasma_Programming_with_Ruby" target="_blank">ruby</a> and <a title="Plasmoids in javascript" href="http://techbase.kde.org/Development/Tutorials/Plasma#Plasma_Programming_with_JavaScript" target="_blank">javascript</a>.</p>
<p style="text-align:justify;">Even though, I didn&#8217;t know PyQT4 or PyKDE4 libraries at all, I decided to write my first plasmoid in python.  This is an exremely simple plasmoid, the core of which was put together in a few hours on a rainy weekend. I have to admit that being a java developer, my code is not pythonic enough.</p>
<p style="text-align:justify;">
<p style="text-align:justify;">It can be downloaded from: <a title="plasma_pyweather" href="http://kde-look.org/content/show.php?content=110137" target="_blank">kde-look</a>.</p>
<p style="text-align:justify;">Here the source code: <a title="plasma_pyweather" href="http://github.com/rangalo/plasma_pyweather/tree/non-widget" target="_blank">plasma_pyweather</a>.</p>
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;"><img class="alignleft size-full wp-image-459" style="margin-left:10px;margin-right:10px;" title="wplasmoid_greytrans" src="http://hardikmehta.wordpress.com/files/2009/08/wplasmoid_greytrans.png" alt="wplasmoid_greytrans" width="343" height="326" />The layout is based on my conky setup described <a title="Conky weather script" href="http://hardikmehta.wordpress.com/2009/08/04/a-script-to-display-weather-forecast-for-conkyconky-screen-shot/" target="_blank">here</a>. I have tried to keep it as compact as possible including most of the provided information, if not all.  I don&#8217;t want the weather information to cover most of the screen.  The initial version of the plasmoid was written using the QT4 widgets, but was looking ugly.</p>
<p style="text-align:justify;">The weather information is fetched from <a title="Google weather api" href="http://blog.emerick.org/2008/05/07/google-weather-api-feed-documentation/" target="_blank">google weather api</a>. The location and the unit are configurable. The api provides forecast only for the next 3 days, so the number of forecast days were not made configurable.  Some how for google weather api the locale and so the unit is connected to the language, therefor  I had to convert the units myself. To keep the display compact I rounded the temperatures to integers.</p>
<p style="text-align:justify;">I got to learn PyQT4 and PyKDE4 libraries while writing this. Especially PyQT4 is a very powerful gui library for python.  It is fun programming with it. I have used <a title="Eclipse" href="http://eclipse.org/" target="_blank">eclipse</a> + <a title="Pydev" href="http://pydev.sourceforge.net/" target="_blank">pydev</a> for developing. In the beginning I didn&#8217;t have the auto-completion for PyQT4 as well as PyKDE4 in this environment, because they are not installed as pure python source code files. I could fix this with following <a title="Answer" href="http://stackoverflow.com/questions/1167065/autocompletion-not-working-with-pyqt4-and-pykde4-in-most-of-the-ides/1167292#1167292" target="_blank">answer</a>.</p>
<p style="text-align:justify;">The other interesting things, I learned was to use the <a title="QT4 Designer" href="http://doc.trolltech.com/4.0/qt4-designer.html" target="_blank">qt-designer </a>tool for creating gui. It is a nice <a title="WYSIWYG" href="http://en.wikipedia.org/wiki/WYSIWYG" target="_blank">WYSIWYG</a> tool for designing complex guis. The configuration form is designed using this tool. The qt-designer creates a .ui file, which is an xml file. The .ui file can be converted to the python source code using the pyuic4 tool in the following way.</p>
<pre class="brush: bash;">
pyuic4 -o configForm_ui.py ../ui/configForm.ui
</pre>
<p style="text-align:justify;">I also learned to use the .qrc file for resources like images. The .qrc file can be converted into python source code using  pyrcc4 tool</p>
<pre class="brush: bash;">
pyrcc4 -o images_rc.py images.qrc
</pre>
<p style="text-align:justify;">
<p style="text-align:justify;">The qrc file is also an xml file which contains the references to the images used. It can be created by just editing.</p>
<pre class="brush: xml;">
&lt;RCC&gt;
    &lt;qresource prefix=&quot;/images&quot;&gt;
        &lt;file alias=&quot;sunny.svgz&quot;&gt;../images/sunny.svgz&lt;/file&gt;
        &lt;file alias=&quot;showers.svgz&quot;&gt;../images/showers.svgz&lt;/file&gt;
        &lt;file alias=&quot;not-available.svgz&quot;&gt;../images/not-available.svgz&lt;/file&gt;
        &lt;file alias=&quot;cloudy.svgz&quot;&gt;../images/cloudy.svgz&lt;/file&gt;
        &lt;file alias=&quot;thunderstorms.svgz&quot;&gt;../images/thunderstorms.svgz&lt;/file&gt;
        &lt;file alias=&quot;haze.svgz&quot;&gt;../images/haze.svgz&lt;/file&gt;
        &lt;file alias=&quot;windy.svgz&quot;&gt;../images/windy.svgz&lt;/file&gt;
    &lt;/qresource&gt;
&lt;/RCC&gt;
</pre>
<p style="text-align:justify;">I decided to write this weather plasmoid in python, because all the other weather plasmoids I found were binaries. I have also tried to keep the data and presentation layer separate, I hope I succeeded in that.  In fact plasma framework provides a very good way of doing that in terms of <a title="Data Engines" href="http://techbase.kde.org/Development/Tutorials/Plasma/Python/Using_DataEngines" target="_blank">data engines</a>. I would also like to use the data engines, may be with this or other plasmoid I may develop.</p>
<p style="text-align:justify;">The svg images for weather conditions are taken from kde-look. The credit goes to the original artist, painkiller10. I have considered only a number of weather conditions, so If you see a question mark image as the weather condition, let me know which condition it is, so I can update the code to consider it.</p>
<p style="text-align:justify;">Please feel free to report any bugs or suggestions for improvement. I am sure there is a big room of improvement from code point of view as well as functionality. I am also open for changing the layout or changing the information displayed if someone comes with a better suggestion than the current one.</p>
<p style="text-align:justify;"><strong>Some more screen shots:</strong></p>
<p style="text-align:justify;"><strong> </strong></p>
<div id="attachment_493" class="wp-caption aligncenter" style="width: 682px"><strong><strong><img class="size-full wp-image-493" title="wplasmoid_seamless-tmb" src="http://hardikmehta.wordpress.com/files/2009/08/wplasmoid_seamless-tmb1.png" alt="Looks almost like conky with the seamless theme." width="672" height="420" /></strong></strong><p class="wp-caption-text">Looks almost like conky with the seamless theme.</p></div>
<p><strong> </strong></p>
<div id="attachment_460" class="wp-caption aligncenter" style="width: 710px"><img class="size-full wp-image-460" title="wplasmoid_settings" src="http://hardikmehta.wordpress.com/files/2009/08/wplasmoid_settings.png" alt="wplasmoid_settings" width="700" height="359" /><p class="wp-caption-text">With settings dialog box</p></div>
<p style="text-align:center;">
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[PYTHON: Getting Started]]></title>
<link>http://research2009.wordpress.com/2009/08/13/python-getting-started/</link>
<pubDate>Thu, 13 Aug 2009 06:55:59 +0000</pubDate>
<dc:creator>Dan</dc:creator>
<guid>http://research2009.wordpress.com/2009/08/13/python-getting-started/</guid>
<description><![CDATA[After the big reptile decision, here comes the start of serious coding and another round of research]]></description>
<content:encoded><![CDATA[After the big reptile decision, here comes the start of serious coding and another round of research]]></content:encoded>
</item>
<item>
<title><![CDATA[Eclipse ve PyDev (Python Düzenleyici)]]></title>
<link>http://okursat.wordpress.com/2009/08/03/eclipse-ve-pydev-python-duzenleyici/</link>
<pubDate>Mon, 03 Aug 2009 08:07:57 +0000</pubDate>
<dc:creator>okursat</dc:creator>
<guid>http://okursat.wordpress.com/2009/08/03/eclipse-ve-pydev-python-duzenleyici/</guid>
<description><![CDATA[Uzun zamandır Python ile ilgili yazamıyorum. BİTEFO kursu okul sonu işleri falan derken en sonun da ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Uzun zamandır Python ile ilgili yazamıyorum. BİTEFO kursu okul sonu işleri falan derken en sonun da biraz zaman buldum ve Eclipse kurarak Python kodlamayı buradan yapma isteği oldu. Zaten Eclipse ve PyDev paketleri depoda mevcut bize sadece küçük ayarlamalar yapmak kalıyor. Şimdi dilimin döndüğünce size bu ayarları anlatmaya çalışacağım. Eclipse bilindiği gibi Java geliştirme ortamı, sadece  Java değil C ve Python da geliştirilebiliyor.</p>
<p style="text-align:justify;">Depodan gerekli paketleri kurduktan sonra <strong>Pardus-Uygulamalar-Geliştirme</strong> yolunu kullanarak Eclipse programını çalıştıralım. Eclipse programına Python yolunu(Path) göstermemiz gerekmektedir. Bu pencerede <strong>İnterpreter-Python</strong> bölümüne tıklayarak ilgili bölümün açılmasını sağlıyoruz. Bu pencerede <strong>New&#8230;</strong> düğmesine tıklıyoruz.</p>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-401" title="EclipsePyDev1" src="http://okursat.wordpress.com/files/2009/07/eclipsepydev1.png" alt="EclipsePyDev1" width="638" height="496" /></p>
<p style="text-align:justify;"><strong>New&#8230;</strong> düğmesine tıkladıktan sonra karşımıza aşağıdaki gibi bir pencere çıkıyor. Bu pencere <strong>Interpreter Name</strong> kısmına ben Pardus 2009 kullandığım için <strong>Python 2.6</strong> yazdım. Çünkü Pardus Python 2.6 kullanıyor. <strong>İnterpreter Executable</strong> bölümnüde hemen <strong>Browse&#8230;</strong> düğmesini tıklıyoruz. Pardus 2009&#8242; da Python yolu <strong>/usr/bin/python2.6</strong> dır. Bu dosyayı seçerek <strong>OK</strong> düğmesine tıklıyoruz.</p>
<p><img class="aligncenter size-full wp-image-402" title="EclipsePyDev2" src="http://okursat.wordpress.com/files/2009/07/eclipsepydev2.png" alt="EclipsePyDev2" width="555" height="270" /></p>
<p>Eclipse var olan kütüphaneleri kendisi otomatik olarak buluyor. Burada da <strong>OK</strong> düğmesine tıklayarak geçiyoruz.</p>
<p><img class="aligncenter size-full wp-image-403" title="EclipsePyDev3" src="http://okursat.wordpress.com/files/2009/07/eclipsepydev3.png" alt="EclipsePyDev3" width="609" height="546" /></p>
<p style="text-align:justify;">Artık başladğımız yere geri dönüyoruz. Program bulduğu Python kütüphaneleri ve yolunu ilk girdimiz pencereye bilgi olarak girdi ve <strong>OK</strong> dememizi bekliyor. OK diyerek artık Eclipse programının Python kodlayıcı(editör) olarak çalışmasını sağlıyoruz.</p>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-404" title="EclipsePyDev4" src="http://okursat.wordpress.com/files/2009/07/eclipsepydev4.png" alt="EclipsePyDev4" width="638" height="496" /></p>
<p>Eclipse artık Python&#8217; u ve kütüphanelerini tanımaya başlıyor.</p>
<p><img class="aligncenter size-full wp-image-405" title="EclipsePyDev5" src="http://okursat.wordpress.com/files/2009/07/eclipsepydev5.png" alt="EclipsePyDev5" width="524" height="220" /></p>
<p>Yeni proje oluştur diyerek Eclipse&#8217; i Python kodlayıcı(editör) olarak kullanabilirsiniz. Hayırlı olsun. İyi geliştirme süreçleri dilerim.</p>
<p><img class="aligncenter size-full wp-image-406" title="EclipsePyDev6" src="http://okursat.wordpress.com/files/2009/07/eclipsepydev6.png" alt="EclipsePyDev6" width="525" height="612" /></p>
<p>Bu yazı da burada biter.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Feeding Nightmare]]></title>
<link>http://dmaggot.wordpress.com/2009/08/02/feeding-nightmare/</link>
<pubDate>Sun, 02 Aug 2009 01:21:13 +0000</pubDate>
<dc:creator>dmaggot</dc:creator>
<guid>http://dmaggot.wordpress.com/2009/08/02/feeding-nightmare/</guid>
<description><![CDATA[Don&#8217;t worry my friends: despite of the title of this post, I&#8217;ve been eating ok. The prob]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Don&#8217;t worry my friends: despite of the title of this post, I&#8217;ve been eating ok. The problem was not about food this time, it was about RSS Feeds and some libraries that deal with those, which I had to use for a project recently.</p>
<p>I needed a blog-planet-like solution for a website we are mounting with <a href="http://www.joomla.org/" target="_blank">Joomla</a>. Yet it wasn&#8217;t the simple type of read-them-all planet (like<a href="http://www.planetplanet.org/" target="_blank"> Planet Planet</a>), because it needed admin approval and should integrate to Joomla. Because of the perpetual-polling mode needed, there was no Joomla module that could help us there (Joomla is not a server), and because of the level of specialization, I had to roll our own solution to it.</p>
<p>I was warned, through <a href="http://oreilly.com/catalog/9780596102357/" target="_blank">this book</a> I once read (which I strongly recommend for anyone that has anything to do with web programming) that dealing with RSS Feeds was not exactly straightforward. The obvious thing was that I needed a library, so I started searching for what RSS Joomla modules were using. I found <a href="http://simplepie.org/" target="_blank">Simple Pie</a>, which seemed to be a pretty straightforward standard solution (and had a beautiful website <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  not that it would help me code better, but anyways). I coded a little sample and tried it out&#8230; and nothing happened. I moved around some stuff in the code, tried again and nothing. I was pretty sure I was following instructions correctly so I couldn&#8217;t imagine what was wrong&#8230; until I read the documentation with more detail and grepped the code for the $_SERVER variable and there it was. I then uploaded the code to my personal web server and tried it out from the web browser and it magically worked, so it was clear to me that Simple Pie requires to be inside a server to run. Given the fact that we&#8217;d probably want to run the polling in a separate server (not the web server), I had to discard that library and it&#8217;s beautiful website.</p>
<p>My next try was <a href="http://diveintomark.org/" target="_blank">Mark Pilgrim</a>&#8217;s <a href="http://www.feedparser.org/">Universal Feed Parser</a> which had the great disadvantage of being in Python, a language I can code in but I avoid, specially because <a href="http://pydev.sourceforge.net/" target="_blank">PyDev</a> hasn&#8217;t been a great solution for me as an <a href="http://www.eclipse.org/" target="_blank">Eclipse</a> plugin (don&#8217;t waste your time suggesting me another IDE&#8230; it&#8217;s Eclipse&#8217;s way or no way; instead support the <a href="http://www.eclipse.org/dltk/" target="_blank">Dynamic Languages Toolkit</a> project for Eclipse <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ). Yet it&#8217;s the one Planet Planet uses, so it had to be good enough for my purposes.</p>
<p>And it kinda was, I tried out some code samples based on intuition and the small documentation and got a little program working. I learned some things while doing so, for example the fact that Blogspot has no summary information for posts like WordPress does (i.e., WordPress rulz) so I had to do a workaround for that (i.e., Blogspot sucks). I then started to build all the rest of the stuff: DB integration with <a href="http://dev.mysql.com/usingmysql/python/">MySQL module</a>, MIME emails with <a href="http://docs.python.org/library/email" target="_blank">email module</a> and <a href="http://docs.python.org/library/smtplib.html" target="_blank">smtplib module</a> (hard to find helpful documentation on this) and everything was working quite fine (despite the spaghetti code I came up with) until I checked that the sample e-mails the script was sending had my author name instead of the title of my post. I was running tests with my blog and <a href="http://dtejera.blogspot.com/" target="_blank">di3go&#8217;s</a> one and all of di3go&#8217;s posts were looking ok. I was really puzzled, and I started checking everything from my code to the XML output of both pages&#8230; nothing seemed wrong. I finally had the idea of checking the Universal Feed Parser&#8217;s buglist, and <a href="http://code.google.com/p/feedparser/issues/detail?id=112&#38;q=WordPress" target="_blank">there it was</a>, a bug that only happened with WordPress (I&#8217;m a lucky guy, huh?) so I downloaded a nightly build from the code and everything was working fine then.</p>
<p>I tgz&#8217;d the code up and sent it away thanking God it was all over. All of this took me like 4 hours though, so I&#8217;m pretty sure I paid my RSS Feeds nightmare hours of the year and don&#8217;t want to be dealing with those anymore at least in the short term. Now some final disclaimers: Simple Pie looks like a very cool solution; Universal Feed Parser is a great tool, and simplifies the job a lot (that&#8217;s as simple as you&#8217;ll get because of the difference between the RSS, Atom and mixed standards out there, and each site&#8217;s implementation of those); so my props to these two projects.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[IronPython editor postscript]]></title>
<link>http://tonyandrewmeyer.wordpress.com/2009/07/17/ironpython-editor-postscript/</link>
<pubDate>Sat, 18 Jul 2009 04:43:26 +0000</pubDate>
<dc:creator>tonyandrewmeyer</dc:creator>
<guid>http://tonyandrewmeyer.wordpress.com/2009/07/17/ironpython-editor-postscript/</guid>
<description><![CDATA[I earlier tried various editors I was considering using to teach IronPython.  One of the glaring omi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://tonyandrewmeyer.wordpress.com/2009/07/12/choosing-an-ironpython-editor-for-teaching/">I earlier tried various editors I was considering using to teach IronPython</a>.  One of the glaring omissions was Eclipse/PyDev, which has built-in support and is a very well-known IDE (particularly in the <a href="http://java.com">Java</a> community).  The main reason that I skipped Eclipse was that when I was searching for an IDE to use professionally about five years ago I tried Eclipse (for <a href="http://python.org">Python</a>, C, and C++ development) and I really hated it &#8211; the IDE was very slow (especially to launch), it was very Java-centric, and just didn&#8217;t suit me at all.  I&#8217;d briefly tried Eclipse before that as well, with similar results.</p>
<p>Over the last few days, I decided that I was probably being unfair, and since this was a choice for my students rather than for me personally, I really ought to try Eclipse (with the PyDev extensions).  I also noticed recently a post about using IronPython with NetBeans &#8211; I&#8217;d heard of NetBeans before, but only in a Java development context, and since I stay as far away from Java development as I can, I had no experience with NetBeans at all.</p>
<h2><a href="http://www.eclipse.org/">Eclipse</a>/<a href="http://pydev.sourceforge.net/">PyDev</a></h2>
<p>I was right to re-examine Eclipse.  The things that I remember bothering me so much five years ago (speed, the interface) seem to have been completely addressed, and it looks like a quite usable product.  When adding PyDev (which was quite simple), there&#8217;s support for IronPython that appears completely built-in (although it&#8217;s still obvious that Java is the #1 choice).  It seemed like a quite reasonable contender, unlike I tried to actually configure it to use the IronPython interpreter (which has to be done manually).  I was using a completely standard, fresh, installation of IronPython 2.0.1 (from the .msi) installed in the default location (here &#8216;C:\Programs\Iron Python 2.0.1&#8242;) with &#8216;Eclipse Classic 3.5&#8242; and version 6u14 of the Java Runtime.</p>
<p>I believe that, in theory, you can click the automatic configuration button, or manually locate the IronPython interpreter, and it&#8217;ll just work.  Unfortunately, for me nothing seemed to work.  The error message indicated that having spaces on the Eclipse path could be a problem (which seems pretty shocking in 2009), so I tried moving Eclipse to C:\, which didn&#8217;t help.  I tried moving IronPython to C:\ (and renaming the folder to have no spaces), and that didn&#8217;t help.  I imagine that someone more familiar with Eclipse, or with PyDev with CPython/<a href="http://www.jython.org/">Jython</a>, might have been able to solve this easily.  However, if I can&#8217;t figure it out in 10 minutes, then I am not at all comfortable with telling my first-year students to use it (even though we walk through the installation together, some of them will need to do that by themselves as well).</p>
<h2><a href="http://www.netbeans.org/">NetBeans</a></h2>
<p>It wasn&#8217;t entirely clear which version of NetBeans to use, but I presumed that the most appropriate was NetBeans 6.7 &#8220;Python EA2&#8243;.  Although <a href="http://stevegilham.blogspot.com/2009/05/using-ironpython-with-netbeans-python.html">the post I saw</a> indicated that you needed to rename ipy.exe and ipyw.exe, I found that just selecting ipy.exe worked fine.  I quite liked this IDE, and it appeared (although I didn&#8217;t use it for long) that using IronPython worked fine.   There&#8217;s no graphical form designer, so NetBeans is in the same category as Komodo Edit (which I discussed previously).  In many ways, it&#8217;s probably a better choice than Komodo Edit (in that the IronPython integration is simpler to do, although it does require that Java is installed), although I don&#8217;t know if there is any way to provide .NET auto-complete.  It&#8217;s a fairly full-featured IDE, like Komodo and unlike DIE, which would normally be a positive, but in this specific case (first-year programming students) is actually a negative, since they need to ignore all the &#8216;team&#8217; functionality, and you have to work within projects (which is true of Visual Studio as well).  This is an &#8220;early access&#8221; version &#8211; since I&#8217;m not familiar with NetBeans I don&#8217;t know how unreliable that makes it &#8211; it makes me a little nervous about suggesting it to students, but I certainly didn&#8217;t have any trouble with it myself.</p>
<h2>Conclusion</h2>
<p>If you&#8217;re able to get Eclipse/PyDev installed, then I suspect it might slightly beat out my previous recommendations of Komodo Edit and DIE; since I didn&#8217;t get it working, I can&#8217;t recommend it to the students.  NetBeans, however, will get added to the list of suggested tools (alongside Komodo Edit and DIE).  If I wasn&#8217;t so familiar with Komodo Edit, I&#8217;d probably use NetBeans as the editor I use to demonstrate, but it didn&#8217;t wow me so much that it overcomes the familiarity.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[PyDev 1.4.7 on Eclipse Galileo]]></title>
<link>http://dbaktiar.wordpress.com/2009/07/18/pydev1-4-7ongalileo/</link>
<pubDate>Sat, 18 Jul 2009 04:41:06 +0000</pubDate>
<dc:creator>dbaktiar</dc:creator>
<guid>http://dbaktiar.wordpress.com/2009/07/18/pydev1-4-7ongalileo/</guid>
<description><![CDATA[WARNING: The content of this blog is obsolete now, as newer PyDev version 1.5 has been released. Ple]]></description>
<content:encoded><![CDATA[WARNING: The content of this blog is obsolete now, as newer PyDev version 1.5 has been released. Ple]]></content:encoded>
</item>
<item>
<title><![CDATA[Configuring pydev colors]]></title>
<link>http://weakbytes.wordpress.com/2009/07/09/configuring-pydev-colors-2/</link>
<pubDate>Thu, 09 Jul 2009 01:40:00 +0000</pubDate>
<dc:creator>Kwong</dc:creator>
<guid>http://weakbytes.wordpress.com/2009/07/09/configuring-pydev-colors-2/</guid>
<description><![CDATA[In my old blog I talked about how I tried to find themes similar to that of TextMate to use on Eclip]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://weakbytes.wordpress.com/files/2009/07/eclipse.png"><img src="http://weakbytes.wordpress.com/files/2009/07/eclipse.png?w=300" alt="" border="0" /></a>In my old blog I talked about how I tried to find themes similar to that of TextMate to use on Eclipse. And if you&#8217;ve bothered to read up more on TextMate themes, you&#8217;d surely understand the reason why. Basically, I found the default theme on pydev, or in general, the whole editor, too bright for long usage and wanted to find a way for me to use dark and elegant themes for the pydev editor.</p>
<p>Unfortunately, I wasn&#8217;t able to find any plugins that supported the use of TextMate themes and had to settle for a manual configuration using the color customisation feature in pydev itself. Results turned out to be good and I was happy with what I&#8217;ve managed.</p>
<p>p.s. After churning out a similar post back in my old blog, I&#8217;ve had people leaving messages, asking me to export my settings for distribution. Unfortunately, pydev configurations do not get exported correctly and it would be pointless for me to distribute a non-working file. So unless someone can help me with this, I&#8217;m just going to use the settings for myself.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Programación para Newbies VI: Hola mundo]]></title>
<link>http://glatelier.org/2009/06/30/programacion-para-newbies-vi-hola-mundo/</link>
<pubDate>Tue, 30 Jun 2009 04:21:30 +0000</pubDate>
<dc:creator>PaBLoX</dc:creator>
<guid>http://glatelier.org/2009/06/30/programacion-para-newbies-vi-hola-mundo/</guid>
<description><![CDATA[Bueno, luego de una soberana lata, por fin nos vamos a entrar en la programación. Finalmente entre l]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Bueno, luego de una soberana <a title="GNU/Linux Atelier - Programación para Newbies V: Lenguajes, Java y palabras finales" href="http://glatelier.wordpress.com/2009/06/21/programacion-para-newbies-v-lenguajes-java-y-palabras-finales/" target="_blank">lata</a>, por fin nos vamos a entrar en la programación. Finalmente entre los muchos lenguajes de programación existentes me pareció que el mejor para comenzar es Python.</p>
<h2>¿Por qué Python?</h2>
<ul>
<li>Lenguaje de alto nivel interpretado</li>
<li>Sintaxis sencilla (prácticamente <a title="Wikepedia - Pseudocódigo" href="http://es.wikipedia.org/wiki/Pseudoc%C3%B3digo" target="_blank">pseudocódigo</a>)</li>
<li>Ampliamente disponible</li>
<li>Libre</li>
<li>Multiplataforma</li>
<li>Orientado a objetos</li>
</ul>
<p>En fin, como ven las bondades son numerosas&#8230;</p>
<p><!--more Por fin... manos a la obra!--></p>
<p>Para programar con este lenguaje basta un <strong>editor de texto plano</strong> (nada de MS Word, u OpenOffice) o el intérprete, en el primer caso es suficiente, pero de todas formas un <a title="Wikipedia - Entorno de Desarrollo Integrado" href="http://es.wikipedia.org/wiki/Entorno_de_desarrollo_integrado">IDE</a> puede facilitar bastante las cosas. El que siempre es recomendado es <a href="http://pydev.sourceforge.net/">PyDev</a>, un <em>plugin</em> para <a href="http://www.eclipse.org/">Eclipse</a>, pero la verdad es que como les comentaba en los artículos anteriores no me gusta mucho utilizar aplicaciones basadas en Java. De todas formas en Ubuntu el paquete se llama <code>eclipse-pydev</code>.</p>
<p>Hay otro llamado <a href="http://www.activestate.com/komodo/">Komodo</a>, que es de pago (bastante profesional por cierto) y <a href="http://www.activestate.com/komodo_edit">Komodo Edit</a> que es la version gratuita y libre. Otro de pago al parecer muy bueno sería <a href="http://www.wingware.com/">Wing IDE</a> que según leía en <a href="http://mundogeek.net/tutorial-python/">Python para Todos</a>, con suerte podrían darte una licencia profesional si lo utilizas para desarrollar software libre no comercial.</p>
<p>Yo voy a utilizar <a href="http://www.geany.org/">Geany</a> (<code>geany</code>), porque cumple perfectamente mis expectativas, tiene coloreado de sintaxis, autocompletado, edición en pestañas y abajo tiene una pequeña terminal donde se pueden ejecutar los programas que creamos. Por otra parte es muy liviano, rápido y ha demostrado ser bastante estable.</p>
<p>Respecto al intérprete, puedes instalar <a href="http://ipython.scipy.org/moin/">iPython</a> (<code>ipython</code>) que viene siendo una versión mejorada del intérprete común y silvestre. Al menos en el comienzo creo que es más lo que enreda por ser más avanzado, así que no lo utilizaré.</p>
<p>Si te sientes incómodo utilizando la línea de comandos, también podría recomendarte <code>IDLE</code> un IDE de Python que es un intérprete, a medio camino entre el &#8220;a secas&#8221; y lo estrambótico de iPython.</p>
<p>Para este tutorial, utilizaré <a href="http://docs.python.org/library/idle.html">IDLE</a>, pero con cualquiera deberías andar bien.</p>
<h2>¡Hola mundo!</h2>
<p>Como es costumbre en esto de la programación, para comenzar vamos a realizar nuestro primer programa que imprimirá &#8220;Hola Mundo!&#8221; por la pantalla. Para entonces vamos a arrancar el intérprete (o IDLE, lo mismo)&#8230;</p>
<pre>pablo@xubuntu:~$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
&#62;&#62;&#62;</pre>
<p>La última línea (&#62;&#62;&#62;) es el prompt, es decir que python está esperando que tipiemos alguna orden.</p>
<pre>&#62;&#62;&#62; hola
Traceback (most recent call last):
    File "", line 1, in
NameError: name 'hola' is not defined
&#62;&#62;&#62;</pre>
<p>Como ves, Python no reconoció el comando &#8220;hola&#8221;, vamos a probar con otro&#8230;</p>
<pre>&#62;&#62;&#62; print "¡Hola mundo!"
¡Hola mundo!
&#62;&#62;&#62;</pre>
<p>¡Felicitaciones! Tu primer programa en Python <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<blockquote><p>Para salir del intérprete puedes hacerlo de tres formas: <code>exit()</code>, <code>quit()</code> o con &#60;Ctrl + D&#62; (comando de fin de línea; <a title="Wikipedia - End of File" href="http://en.wikipedia.org/wiki/End-of-file">EOF</a>)</p></blockquote>
<p>La otra forma que puedes programar es escribir lo anterior en un archivo de texto y guardándolo con extensión <code>.py</code>:</p>
<pre class="brush: python;">
#!/usr/bin/env python
# coding: latin-1

print &quot;¡Hola mundo!&quot;
</pre>
<p>La primera línea es un comando Unix que se conoce como <em>shebang</em>, <em>hashbang</em> o <em>sharpbang</em>. Su función es indicar en que ruta buscar el intérprete, si estuviera programando en bash, tendría que cambiar &#8220;<code>python</code>&#8221; por &#8220;<code>bash</code>&#8221; o el que corresponda. Habitualmente el intérprete de Python se encuentra en <code>/usr/bin/python</code>, pero como por desgracia eso no está estandarizado, preferiría asegurarme de que lo encontrase si acaso estuviera en una ubicación poco habitual. Para eso utilice el comando <code>env</code> que se encarga de ubicar al intérprete, así corro menos riesgos que no lo encuentre.</p>
<p>La línea siguiente es para que Python <a href="http://www.python.org/dev/peps/pep-0263/" target="_blank">entienda</a> más caracteres: mira que pasa si ejecutas sin la segunda línea, tirará un error porque el carácter <code>¡</code> no es ASCII. En fin, si quieres utilizar caracteres presentes en el castellano y no sólo los provenientes del inglés (básicamente ASCII) agrégalo, sino puedes omitirlo.</p>
<p>Por supuesto, además de añadir esta línea debemos darle permiso de ejecución:</p>
<p><code>~$ chmod +x hola.py</code></p>
<p>Luego ya podemos ejecutarlo con:</p>
<p><code>~$ ./hola.py</code></p>
<p>En ambos casos obtendremos los mismos resultados, con el intérprete tenemos la ventaja que no necesitamos darle permiso de ejecución ni estar guardando el archivo, por lo que utilizaré este.</p>
<blockquote><p>Si están familiarizados con algún otro lenguaje, notarán que no es necesario agregar el punto y coma al final de cada línea <code>;</code>, puedes agregarlo si quieres, pero no tendrá ningún efecto. Si agregas código después, Python lo considerará como un salto de línea, pero la verdad es que no es muy buena idea porque sacrificas algo de legibilidad.</p></blockquote>
<h2>Ingredientes e instrucciones</h2>
<p>¿<a title="GNU/Linux Atelier - Programacion para Newbies II - Introducción" href="http://glatelier.wordpress.com/2009/06/11/programacion-para-newbies-parte-ii-introduccion/" target="_blank">Recuerdas</a> la receta que puse en un par de partes atrás?</p>
<ol>
<li>Mezclar azúcar y mantequilla hasta que quede una sustancia cremosa</li>
<li>Agregar 3 huevos</li>
<li>Mezclar y agregar 2 tazas de harina</li>
<li>Cocinar en un horno a llama baja por 45 minutos</li>
</ol>
<p>Bueno, nuestra receta tiene ingredientes ¿verdad?, huevos y harina (por ejemplo) y también presenta instrucciones (<em>statements</em>), como mezclar y cocinar. Un programa tiene ambas cosas, éstos serán los temas les hablaré en las <a title="GNU/Linux Atelier - Programación para Newbies VII: Ingredientes – Variables y Tipos de Números" href="http://glatelier.wordpress.com/2009/07/05/programacion-para-newbies-vii-ingredientes-variables-y-tipos-de-numeros/" target="_blank">siguientes</a> partes (comenzando con los <em>ingredientes</em>).</p>
<blockquote><p><strong>Nota:</strong> Lamento lo corta, poco interesante y como si fuera poco &#8211; la tardanza para escribir esta parte, pero me costó mucho decidirme y la verdad es que tuve que rehacer varias veces porque no sabía cuál de las siguientes dos partes poner primero. Lo bueno es que quedé con todos los artículos a medio hacer, así que voy a poder desarrollarlos más rápido.</p></blockquote>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Shooting myself in the head with Python, Django,Pinax]]></title>
<link>http://tombrander.wordpress.com/2009/06/29/shooting-myself-in-the-head-with-python-djangopinax/</link>
<pubDate>Mon, 29 Jun 2009 16:28:11 +0000</pubDate>
<dc:creator>tbrander</dc:creator>
<guid>http://tombrander.wordpress.com/2009/06/29/shooting-myself-in-the-head-with-python-djangopinax/</guid>
<description><![CDATA[Well I decided to take some time off from working with the App-engine-patch and try Native Django,, ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Well I decided to take some time off from working with the App-engine-patch and try Native Django,, go more mainstream so I could take advantage of more robust database and tutorials&#8230;</p>
<p>I&#8217;m using Python 2.62 Win 64 Eclipse 3.4 Ganymede, and trunk SVN Django 1.1</p>
<p>1st, one must install a Mysql driver The one in the &#8220;official library won&#8217;t work, version differences.. go here for a windows installer for Python 2.6 https://sourceforge.net/forum/forum.php?thread_id=2316047&#38;forum_id=70460  Fwiw I&#8217;m using 32 bit versions although there is a 64 bit version available (for both Python and the Mysql driver (lower down on that thread).</p>
<p>You also need to add the following change manually to the Mysqldb code</p>
<p>About warnings:</p>
<p>1) file &#8220;__init__&#8221;, replace:</p>
<p>from sets import ImmutableSet<br />
class DBAPISet(ImmutableSet):</p>
<p>with</p>
<p>class DBAPISet(frozenset)</p>
<p>2) file &#8220;converters.py&#8221;, remove:</p>
<p>from sets import BaseSet, Set</p>
<p>3) file &#8220;converters.py&#8221;, change &#8220;Set&#8221; by &#8220;set&#8221; (IMPORTANT: only two places):</p>
<p>line 48: return set([ i for i in s.split(',') if i ])<br />
line 128: set: Set2Str,</p>
<p>I hope this be useful.</p>
<p>Regards,</p>
<p>Luis Moreno<!-- google_ad_section_end --></p>
<p>I realized That I had not been documenting myself when I blew up and was about ready to re install and realized I&#8217;d have to look every thing up again&#8230; Hence back to posting!</p>
<p>One of the most interesting revelations for me recently is how Python &#8220;installs&#8221; and referrers to packages and extensions. At this point I now think that all the trashing about is a bit too much on many installs. Looking in site-pkges in Libs in the Python directory I noticed several .pth files named for some of the extensions I was installing and using, the file was the module name.pth.. and contained the full path to the module&#8230; cool! So that is a mechanism that can be used to create a nice place to keep that stuff without messing up your basic Python install&#8230; good to know..</p>
<p>Another major revelation has been the use of revision control systems,,, It seems that it is well worthwhile to have a copy of all of the major systems on your machine. Git, SVN and Mercurial. If you checkout a copy of a system like Django,,, then when you want a update to the current version just do another checkout and your done!</p>
<p>Btw it turns out that even if you use TortoiseSVN as I do it is a good ides to install Silk SVN also because Tortoise does not provide command line access, which is used by some packages for automated installation/updating, in particular Pinax! So even if you don&#8217;t want command line you need to have it on your system&#8230;</p>
<p>If you use tagging with the 1.0 or latter Django you must use the svn version of tagging &#8230;.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Python su Eclipse con PyDev]]></title>
<link>http://mikesatta.wordpress.com/2009/06/25/python-su-eclipse-con-pydev/</link>
<pubDate>Thu, 25 Jun 2009 13:35:35 +0000</pubDate>
<dc:creator>mikesatta</dc:creator>
<guid>http://mikesatta.wordpress.com/2009/06/25/python-su-eclipse-con-pydev/</guid>
<description><![CDATA[Sviluppare con Python può risultare molto più semplice se si ricorre ad un qualche Integrated Develo]]></description>
<content:encoded><![CDATA[Sviluppare con Python può risultare molto più semplice se si ricorre ad un qualche Integrated Develo]]></content:encoded>
</item>
<item>
<title><![CDATA[Eclipse y Pydev]]></title>
<link>http://solodelinux.wordpress.com/2009/06/23/eclipse-y-pydev/</link>
<pubDate>Tue, 23 Jun 2009 16:56:39 +0000</pubDate>
<dc:creator>betoo20</dc:creator>
<guid>http://solodelinux.wordpress.com/2009/06/23/eclipse-y-pydev/</guid>
<description><![CDATA[Empezando a programar en Phyton, estuve buscando un buen entorno gráfico para programar y decidí ins]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		A:link { so-language: zxx } --></p>
<p style="margin-bottom:0;" align="left">Empezando a programar en Phyton, estuve buscando un buen entorno gráfico para programar y decidí instalar <a href="http://es.wikipedia.org/wiki/Eclipse_(software)">Eclipse</a> que es un <span style="text-decoration:none;">entorno de desarrollo integrado </span>de <em>código abierto</em> multiplataforma para desarrollar  &#8220;Aplicaciones de Cliente Enriquecido&#8221;.</p>
<p style="margin-bottom:0;" align="left">Eclipse es un Ide de java, pero se pueden poner plugins para poder programar en Phyton, c++.</p>
<p style="margin-bottom:0;" align="left">Para programar en phyton, hay que instalar <a href="http://pydev.sourceforge.net/">Pydev</a> que es un plugin que se instala en Eclipse, la instalación la puedes hacer desde Synaptic es muy fácil, solo buscas Eclipse y Pydev.</p>
<p style="margin-bottom:0;" align="left">Ya que instalas Eclipse y Pydev hay que configurarlo:</p>
<p style="margin-bottom:0;" align="left">En el menú de la ventana principal, elegir Ventana -&#62; Abrir perspectiva -&#62; otro.</p>
<p style="margin-bottom:0;" align="left"><img class="alignnone size-full wp-image-71" title="menu" src="http://solodelinux.wordpress.com/files/2009/06/menu.jpg" alt="menu" width="315" height="298" /></p>
<p style="margin-bottom:0;" align="left">Se abre una ventana para elegir la perspectiva, vamos a elegir Pydev, y se abre una ventana que es entorno para desarrollar con phyton.</p>
<p>Ahora para configurar Pydev, hay que ir a menú -&#62; Ventana -&#62; Preferencias</p>
<p>Nos vamos a Pydev en el arbol de opciones y seleccionamos  <strong>&#8220;Interpreter &#8211; Python&#8221; </strong> y seleccionamos new y nos vamos a la ruta <strong>usr/bin</strong> y buscamos el archivo llamado &#8220;phyton&#8221;, damos aceptar y asi debe de verse:</p>
<p><img class="alignnone size-full wp-image-72" title="Pantallazo" src="http://solodelinux.wordpress.com/files/2009/06/pantallazo4.png" alt="Pantallazo" width="761" height="475" /></p>
<p style="margin-bottom:0;" align="left">
<p style="margin-bottom:0;" align="left">
<p style="margin-bottom:0;" align="left">Y listo ya puedes depurar tus programas desde Eclipse.</p>
<p style="margin-bottom:0;" align="left">Esto es solo una opción para programar en Phyton, existen varios entornos para programar mas ligeros, o si no quieres instalar nada, desde consola es posible también.</p>
<p style="margin-bottom:0;" align="left">Bueno aqui les dejo algunos buenos tutoriales  que me han servido para programar en Phyton:</p>
<p style="margin-bottom:0;" align="left"><a href="http://mundogeek.net/tutorial-python/">-Phyton para todos</a></p>
<p style="margin-bottom:0;" align="left">-<a href="http://www.awaretek.com/tutorials.html">Phyton Tutorials</a></p>
<p style="margin-bottom:0;" align="left"><a href="http://www.lawebdelprogramador.com/cursos/enlace.php?idp=4463&#38;id=79&#38;texto=Python">-Introducción a la programación con Python</a></p>
<p style="margin-bottom:0;" align="left">
<p style="margin-bottom:0;" align="left">
<p style="margin-bottom:0;" align="left">
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Python Workbench]]></title>
<link>http://10thvirtue.wordpress.com/?p=15</link>
<pubDate>Fri, 29 May 2009 22:12:34 +0000</pubDate>
<dc:creator>luke</dc:creator>
<guid>http://10thvirtue.wordpress.com/?p=15</guid>
<description><![CDATA[In order to begin work on my project, I want to make sure I&#8217;ve got a tidy work bench to start ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>In order to begin work on my project, I want to make sure I&#8217;ve got a tidy work bench to start the Python part of my project (again, I&#8217;m developing in Windows XP).</p>
<p>Advice from others as well as personal preference yields the following:</p>
<p><strong>Interpreter:</strong> <a href="http://python.org">Python</a> 2.6.2<br />
Reason: It&#8217;s the current production version</p>
<p><strong>IDE:</strong> <a href="http://www.eclipse.org">Eclipse</a> Ganymede<br />
Reason: I had Ganymede already on my system from a recent Salesforce.com dev project and to facilitate an android tether.  As much as I loved being forced to learn to write C++ from vi in college, I was ruined by the fancy-pants Microsoft Visual Studio years ago when I did a lot of coding in Visual Basic.  It&#8217;s just easier to keep track of things, and autocomplete is a life-saver for those of us who haven&#8217;t memorized all of the names of all of the library functions in whatever language we&#8217;re using.  I love <a href="http://notepad-plus.sourceforge.net/uk/site.htm">Notepad++</a> for its immense buffer, its myriad handy text functions, and its language highlighting, and I often end up writing code in there just because it doesn&#8217;t take 5 minutes to start the program, but I try to suck it up and go to my IDE before too long.</p>
<p><strong>Version Control:</strong> <a href="http://pypi.python.org/pypi/Mercurial">Mercurial</a> 1.2.1<br />
Reason: <a href="http://www.stuartellis.eu/articles/python-development-windows/">Stuart Ellis</a> says so.  In all seriousness, I am a stickler for version control (not to mention internal documentation) when I write code, generally speaking.  After completing a working first draft, I save it as an 0.1 version, then start redrafting by commenting out the complete old code and writing the revised code below for each step.  When I&#8217;ve got the second draft working, I describe what I did in the header as a changelog, save a copy of it as 0.19, then remove commented old code and save clean version as 0.2.  This is great, because it allows me to reference earlier versions and track code&#8217;s path of evolution, but is also a pain in the neck.  Embedded version control makes this easier.  Anybody who&#8217;s been embarassed by sending or receiving a Word document containing all prior revisions complete with misspellings, poor grammar, and filthy language will know what I&#8217;m talking about.  It&#8217;s a handy thing to have once you&#8217;ve figured out how and when to use it.</p>
<p>OK, that&#8217;s great, you say.  Doesn&#8217;t Eclipse, your IDE, have a CVS-compatible version-tracking system built-in?  Well sure, but I don&#8217;t have a CVS server to govern my commits.  Mercurial is decentralized.  I love decentralized systems.  I love to study them and figure out whether it&#8217;s wise to incorporate them into my daily life.  Plus, if the Python, Google, and Mozilla people are using it, it has to be pretty decent.  How often have you made an arbitrary, irrationally-based decision in your life?</p>
<p><strong>Other Important Tools:<br />
</strong></p>
<ul>
<li><a href="http://peak.telecommunity.com/DevCenter/setuptools">Setuptools</a> &#8211; This is a package manager for Python &#8212; a couple people advised me to do nothing without it.  After attempting a few library compiles from the source .tgz, I&#8217;m happy to let a utility handle the installation and maintenance of libraries.</li>
<li><a href="http://pypi.python.org/pypi/virtualenv">Virtualenv</a> &#8211; Virtual Development Environment &#8212; It allows me to create &#8220;clean&#8221; workspaces that are separate and distinct in their libraries, versions, etc.  In the words of one of my python advisors, &#8220;You&#8217;ll save yourself a lot of pain if you only work in and install Python modules to an insulated virtual environment, without polluting your system-wide Python installation.&#8221;  It&#8217;s a bit of a pain to set up with the IDE, but the instructions below should make it clear.</li>
</ul>
<p><strong>Order of operations:</strong></p>
<p><strong>Python:</strong></p>
<p>I downloaded the newest .MSI from python.org and installed it to the folder &#8216;C:\Python26&#8242;.  Clean and simple.</p>
<p>I manually created the folder &#8216;C:\Python26\Scripts&#8217; because setuptools wanted me to.</p>
<p>I modified my system&#8217;s PATH: right-clicked on My Computer, selected Properties, clicked Advanced, then Environment Variables, and added &#8220;;C:\Python26;C:\Python26\Scripts&#8221; to the end of my PATH statement (by highlighting it in the top box and clicking &#8220;edit&#8221;).</p>
<p><strong>Setuptools:</strong></p>
<p>I went to the setuptools <a href="http://pypi.python.org/pypi/setuptools">download page</a> and saw there was no .exe installer for python 2.6.</p>
<p>I downloaded the win32 py2.6 .egg and couldn&#8217;t figure out what to do with it.</p>
<p>I attempted to install from the source and that didn&#8217;t work either.</p>
<p>I googled &#8220;setuptools python 2.6&#8243; and found <a href="http://stackoverflow.com/questions/309412/how-to-setup-setuptools-for-python-2-6-on-windows">this gem</a> of a website, which gave me the following set of instructions with which I found success:</p>
<ol>
<li>Download <a rel="nofollow" href="http://pypi.python.org/pypi?:action=show_md5&#38;digest=3864c01d9c719c8924c455714492295e">setuptools-0.6c9.tar.gz</a></li>
<li>Download <a rel="nofollow" href="http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg#md5=ca37b1ff16fa2ede6e19383e7b59245a">setuptools-0.6c9-py2.6.egg</a> to a folder(directory) outside your Windows Python installation folder</li>
<li>Use <a rel="nofollow" href="http://www.7-zip.org/">7-zip</a> to extract ez_setup.py in the same folder as <a rel="nofollow" href="http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg#md5=ca37b1ff16fa2ede6e19383e7b59245a">setuptools-0.6c9-py2.6.egg</a></li>
<li>Go to the corresponding dos prompt and run python ez_setup.py setuptools-0.6c9-py2.6.egg from the command prompt</li>
<li>Ensure that your PATH includes the appropriate C:\Python2X\Scripts directory.</li>
</ol>
<p>Et voila.  Thanks, <a href="http://stackoverflow.com/users/30289/bhadra">bhadra</a>!</p>
<p><strong>Virtualenv:</strong></p>
<p>With Setuptools installed, I simply typed the following at the C:\ prompt:</p>
<blockquote><p>\&#62; easy_install -U virtualenv</p></blockquote>
<p>Which errored out, saying it couldn&#8217;t find a module named win32api.</p>
<p>30 seconds on google later, I found <a href="http://sourceforge.net/projects/pywin32/">pywin32</a>.</p>
<p>Then, I went back to the C:\ prompt and typed:</p>
<blockquote><p>\&#62; easy_install -U pywin32</p></blockquote>
<p>Which returned successfully.  I then retried</p>
<blockquote><p>\&#62; easy_install -U virtualenv</p></blockquote>
<p>And that worked out just fine.</p>
<p><strong>Mercurial:</strong></p>
<p>I went to the <a href="http://www.selenic.com/mercurial/wiki/BinaryPackages">Mercurial download page</a>, which told me I could<strong> </strong>obtain the newest version on my &#8220;modern system with Python and SetupTools installed&#8221; by simply going to my command line and typing:</p>
<blockquote><p>\&#62; easy_install -U mercurial</p></blockquote>
<p>Well, that returned this:</p>
<blockquote><p>error: Setup script exited with error: Unable to find vcvarsall.bat</p></blockquote>
<p>So now I need to figure out what vcvarsall.bat is and why I don&#8217;t have it.</p>
<p>Google tells me this is my Visual Studio C++ Compiler.  I don&#8217;t have Virtual C++ installed on my machine.  I download <a href="http://www.microsoft.com/Express/vc/#webInstall">Visual C++ Express</a>.  What the hell, I install optional Silverlight and MS SQL Server Express 2008 as well, just for kicks.</p>
<p>This looks like it might take a while.  I go fold some laundry and shift clothes from washer to dryer.  OK, still not done.  I&#8217;ll take the dog out for a walk.  OK done, now gotta reboot.</p>
<p>With Visual C++ Express installed, <em>easy_install -U mercurial</em> at the prompt now returns:</p>
<blockquote><p>Finished processing dependencies for mercurial</p></blockquote>
<p>Looks like we&#8217;re in business with version control.  After finishing this process, I stumbled upon <a href="http://www.selenic.com/mercurial/wiki/WindowsInstall">this page</a>, which seems to indicate I did what I was supposed to do, but explains it better and gives more options.</p>
<p>I&#8217;m <a href="http://www.selenic.com/mercurial/wiki/Tutorial"><span style="text-decoration:underline;">told</span></a> to modify <em>mercurial.ini</em> to change a few things around.  First, I need to find it.  A system search tells me it doesn&#8217;t exist.  I wonder if because I used <em>easy_install</em>, it created a Un*x-style <em>.hgrc</em> init file for me instead.  Another system search reveals no <em>.hgrc</em>, either.</p>
<p>OK, maybe I&#8217;ll just go ahead and make a new one.  I&#8217;m creating a new file called &#8220;mercurial.ini&#8221; in my C:\Documents and Settings\[username]\ directory (where username is the name I use to log in to my machine).  I&#8217;m adding the following lines:</p>
<blockquote><p>[ui]<br />
username = Luke &#60;luke@xyz.xyz&#62;<br />
editor = C:\Progra~1\Notepa~1\notepa~1.exe<br />
[extensions]<br />
hgext.graphlog =</p></blockquote>
<p>And then I&#8217;m saving and quitting.  The lines under [ui] tell Mercurial who I am, and what my preferred editor is.  The lines under [extensions] tell Mercurial I want to be able to use glog, which is a handy ascii-graph representation of a development chain.</p>
<p><strong>Eclipse:</strong></p>
<p>I already had Eclipse (3.4.1) installed on my machine, which I installed by downloading and installing Java SE <a href="http://java.sun.com/javase/downloads/index.jsp">JDK</a>, downloading and unzipping <a href="http://www.eclipse.org/downloads/">Eclipse Classic</a> to &#8216;C:\Eclipse&#8217;, and creating a shortcut on my desktop to &#8216;C:\eclipse\eclipse.exe&#8217;</p>
<p><strong>Eclipse-Pydev:</strong></p>
<p>In Eclipse 3.4.1, it&#8217;s pretty easy to perform modular installs of different &#8220;plug-ins&#8221; that turn Eclipse-the-vanilla-memory-hog into Eclipse-the-smart-[language]-development-environment.</p>
<p>A little off-putting but strangely appropriate, Eclipse (3.4.1) hides its Software Updates utility in the Help menu.  Click &#8220;Help&#8221;, then &#8220;Software Updates&#8230;&#8221; to bring up the dialog titled, &#8220;Software Updates and Add-ons&#8221;</p>
<p>To be honest, I learned how to install PyDev in Eclipse by watching <a href="http://showmedo.com/videotutorials/video?name=PydevEclipseFabio">this video on showmedo</a>, which is the visual version of <a href="http://www.fabioz.com/pydev/manual_101_root.html">this manual from fabioz</a>.</p>
<p><strong>Mercurial Eclipse</strong>:</p>
<p>Wicked simple to install.  Check out <a href="http://www.vectrace.com/mercurialeclipse/">the homepage</a>.  Head to Eclipse&#8217;s handy Software Updates page, click to the &#8220;Available Software&#8221; tab.</p>
<p>As it turns out, following the instructions on the website yielded a broken install (because the latest production version of MercurialEclipse isn&#8217;t compatible with the versions of everything else I&#8217;m using).  So instead, do this:</p>
<p>Click the &#8220;Add Site&#8230;&#8221; button.  Enter http://home.zingo.org/eclipse-betaupdate/ and click &#8220;OK.&#8221;</p>
<p>Expand the new item appearing in your Available Software list named &#8220;file:/home/zingo/projects/src/www/eclipse/mercurialeclipse/ &#8211; metadata&#8221;, check the box next to &#8220;com.vectrace.MercurialEclipse&#8221;, and click the &#8220;Install&#8230;&#8221; button at the top-right.  Click &#8220;OK&#8221; a few times, it&#8217;ll ask you to reset Eclipse, BOOM.</p>
<p>At least that&#8217;s what I had to do to make it work after I found a dead end on the MercurialEclipse homepage and was sent <a href="http://bitbucket.org/mercurialeclipse/main/issue/158/installing-plugin-error">here</a>.</p>
<p><strong>Configuration:</strong></p>
<p>Now to get it all working together.</p>
<p>First, I&#8217;ll create a virtual environment in the C:\Dev folder named &#8220;GContactsCleaner&#8221; with</p>
<blockquote><p>\&#62; virtualenv GContactsCleaner</p></blockquote>
<p>Now I&#8217;m going to run Eclipse, click &#8220;File&#8230;Switch Workspace&#8230;Other&#8230;&#8221; enter &#8220;C:\Dev\GContactsCleaner\&#8221; as the new workspace, and watch as Eclipse reboots itself.</p>
<p>Now I have to click &#8220;Workbench&#8221; from the Eclipse launch screen to get to the workbench.  By default, Eclipse puts me in a Java IDE.  I have to click the icon to the left of the Java icon in the top-right and click &#8220;Other&#8230;&#8221;</p>
<p>Next, I select &#8220;Pydev&#8221;</p>
<p>It tells me I need to fix my Mercurial install.  Indeed.  I&#8217;ll locate my mercurial executable (C:\Python26\Scripts\hg.bat) and set up my mercurial username.  I click &#8220;Apply&#8221;.  I also need to click &#8220;Pydev &#8230; Interpreter &#8211; Python&#8221; and set up my virtualenv&#8217;s interpreter, which is now located at &#8220;C:\Dev\GContactsCleaner\Scripts\python.exe&#8221; and I name it &#8220;GContactsCleaner &#8211; python 2.6.2&#8243;.  I tell it OK, and OK again.</p>
<p>Now all I have left is to create my project and set it up with MercurialEclipse.</p>
<p>First step, &#8220;File&#8230;New&#8230;Pydev Project.&#8221;  I name it GContactsCleaner (which places it in the awkward C:\Dev\GContactsCleaner\GContactsCleaner folder).</p>
<p>I right-click the newly-created &#8220;GContactsCleaner&#8221; and click &#8220;Team&#8230;Share Project&#8230;&#8221; to bring up the &#8220;Share Project&#8221; dialog.  I tell it I&#8217;d like to use MercurialEclipse as the repository plug-in, accept the default directory (the project root) and click &#8220;Finish.&#8221;</p>
<p>If all went well, that should do it.  So far the only awkward thing I&#8217;ve had to do now that it&#8217;s all set is to add anything installed by virtualenv-activate easy_install again in Eclipse as a library to my interpreter.</p>
<p>Whew.  Now I&#8217;ve just got to remember to <em>activate.bat</em> my environment before I use <em>easy_install</em> to bring in a required library so I can avoid corrupting my global python setup.  I feel this is inevitable, and at some point I&#8217;m going to have to post the steps for manually uninstalling something that was <em>easy_install</em>ed.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Aptana: Comunicando "Python" y "R" a Través del Paquete RPY2]]></title>
<link>http://enfoquevirtual.wordpress.com/2009/05/27/aptana-comunicando-python-y-r-a-traves-del-paquete-rpy/</link>
<pubDate>Wed, 27 May 2009 19:35:50 +0000</pubDate>
<dc:creator>alatrista</dc:creator>
<guid>http://enfoquevirtual.wordpress.com/2009/05/27/aptana-comunicando-python-y-r-a-traves-del-paquete-rpy/</guid>
<description><![CDATA[RPY2 En estos últimos días estuve buscando la forma más adecuada de comunicar el lenguaje interpreta]]></description>
<content:encoded><![CDATA[RPY2 En estos últimos días estuve buscando la forma más adecuada de comunicar el lenguaje interpreta]]></content:encoded>
</item>
<item>
<title><![CDATA[Setting up your IDE for web2py development]]></title>
<link>http://kollerie.wordpress.com/2009/04/07/setting-up-your-ide-for-web2py-development/</link>
<pubDate>Tue, 07 Apr 2009 17:30:57 +0000</pubDate>
<dc:creator>Guido</dc:creator>
<guid>http://kollerie.wordpress.com/2009/04/07/setting-up-your-ide-for-web2py-development/</guid>
<description><![CDATA[Recently I have started developing an application using the excellent Python web framework web2py. W]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Recently I have started developing an application using the excellent <a href="http://www.python.org/">Python</a> web framework <a href="http://www.web2py.com/">web2py</a>. <a href="http://www.web2py.com/">Web2py</a> comes with its own a web-based integrated development environment that makes it easy to write small web based applications from within your browser. However once you start developing something bigger you will want the convenience of a real IDE. Code completion, multiple open files and a debugger will all make the experience more comfortable. However due to <a href="http://www.web2py.com/">web2py&#8217;s</a> mode of operation your IDE will require some additional help from you to allow its full powers to  blossom.</p>
<h2>Web2py&#8217;s mode of operation</h2>
<p>Contrary to other Python web frameworks, such a Django, <a href="http://www.web2py.com/">web2py</a> doesn&#8217;t use Python&#8217;s import statement to load your code. Instead it <em>executes</em> your code using Python&#8217;s built in function <code>execfile</code> and supplies it with a prepared environment that contains a number of global objects that are central to <a href="http://www.web2py.com/">web2py&#8217;s</a> programming model (e.g. request, response, session objects, HTML helper functions, etc). This also means that your IDE has no knowledge of these objects and functions unless you explicitly tell it about them.</p>
<h2>Informing your IDE about web2py&#8217;s prepared environment</h2>
<p>Even though I use <a href="http://pydev.sourceforge.net/">Eclipse/PyDev</a>, the trick to let any Python aware IDE know about these objects is the same. In fact I got the idea from the How-To <a href="http://www.wingware.com/doc/howtos/web2py">Using Wing IDE with web2py</a>.</p>
<p>From the IDE&#8217;s point of view there are two types of files that it requires additional information about:</p>
<ul>
<li>models</li>
<li>controllers</li>
</ul>
<p>Simply adding import statements for the global objects and functions <a href="http://www.web2py.com/">web2py</a> is going to provide us with at runtime might cause unforeseen problems. Hence we need to import them conditionally.</p>
<p>For models adding the following snippet of code at the top will suffice:<br />
<code><br />
if 0:<br />
    from gluon.sql import *<br />
    from gluon.validators import *<br />
</code></p>
<p>For controllers the following will do:<br />
<code><br />
if 0:<br />
    from gluon.globals import *<br />
    from gluon.html import *<br />
    from gluon.http import *<br />
    from gluon.sqlhtml import SQLFORM, SQLTABLE, form_factory<br />
    session = Session()<br />
    request = Request()<br />
    response = Response()<br />
</code></p>
<p>How does this work? The conditional <code>0</code> will always evaluate to False. This means that at run-time the statements following the <code>if</code> statement will never be executed. It&#8217;s dead code and hence will never interfere with whatever <a href="http://www.web2py.com/">web2py</a> has setup for us in its prepared environment.</p>
<p>It&#8217;s different for the IDE. The Python parser that&#8217;s part of your preferred Python IDE only parses your code. It does not evaluate it as Python does. As such it has to take the possibility into account that it might be executed at some point in time and that other code might depend on it. It has to read in the imports and consequently has all the information needed for code completion. Your IDE is now aware of <a href="http://www.web2py.com/">web2py&#8217;s</a> prepared environment</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The tools of choice]]></title>
<link>http://pythonhaven.wordpress.com/2009/03/10/the-tools-of-choice/</link>
<pubDate>Tue, 10 Mar 2009 00:16:27 +0000</pubDate>
<dc:creator>Federico</dc:creator>
<guid>http://pythonhaven.wordpress.com/2009/03/10/the-tools-of-choice/</guid>
<description><![CDATA[Well, we have decided which tools we are going to use for our semester project. The winners are: Ecl]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Well, we have decided which tools we are going to use for our semester project. The winners are:</p>
<p><a href="http://www.eclipse.org" target="_blank">Eclipse</a> with the following plugins:</p>
<ul>
<li><a href="http://pydev.sourceforge.net/" target="_blank">PyDev</a> (For python Development)</li>
<li><a href="http://subclipse.tigris.org/" target="_blank">Subclipse</a> (For SVN connectivity)</li>
</ul>
<p>And for our development framework (after a period of uncertainty):</p>
<p><a href="http://www.djangoproject.com/" target="_blank">Django</a> was the clear winner.</p>
<p><a href="http://www.postgresql.org/" target="_blank">PostgreSQL </a>will be our DBMS.</p>
<p>Eventually we&#8217;ll configure the <a href="http://httpd.apache.org/" target="_blank">Apache HTTP Server</a> to work with <a href="http://code.google.com/p/modwsgi/" target="_blank">mod_wsgi</a> for Apache-Python interpretation.</p>
<p>Shortly I&#8217;ll post on how to get all those working nice together.</p>
<p>Until then.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Python en Eclipse 3.4 - PyDev Plugin]]></title>
<link>http://ovnicraft.wordpress.com/2009/02/26/python-en-eclipse-34-pydev-plugin/</link>
<pubDate>Thu, 26 Feb 2009 05:08:55 +0000</pubDate>
<dc:creator>ovnicraft</dc:creator>
<guid>http://ovnicraft.wordpress.com/2009/02/26/python-en-eclipse-34-pydev-plugin/</guid>
<description><![CDATA[Despues de haber trabajado con Netbeans por varios meses, he venido probando tambien este plugin de ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Despues de haber trabajado con Netbeans por varios meses, he venido probando tambien este plugin de <a class="wp-caption" title="Eclipse IDE" href="http://eclipse.org" target="_blank">Eclipse</a> <a title="PyDev Plugin" href="http://fabioz.com/pydev/" target="_blank">PyDev</a>, y en verdad me parece muy bueno, creo que sobre todo en velocidad aunque esto es relacionado a la plataforma porque netbeans como todos sabemos consume mas recursos que Eclipse.</p>
<p>Features a resaltar;</p>
<ul>
<li>Autocompletacion</li>
<li>Construccion de metodos y clases</li>
<li>Debugger</li>
<li>personalizacion de source paths en proyectos para agregar librerias externas</li>
<li>Velocidad en carga de outlines y propiedades (esto es Eclipse)</li>
</ul>
<p>La simplicidad que brinda para poder desarrollar con cualquier libreria sea Django, appengine, openobject y en fin cualquiera que este en tu PYTHONPATH o la agregues a las propiedades de tu proyecto pues va de pelicula, altamente recomendado para un Python developer.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Configuring PyDev colors]]></title>
<link>http://weakbytes.wordpress.com/2009/02/08/configuring-pydev-colors/</link>
<pubDate>Sun, 08 Feb 2009 04:13:15 +0000</pubDate>
<dc:creator>Kwong</dc:creator>
<guid>http://weakbytes.wordpress.com/2009/02/08/configuring-pydev-colors/</guid>
<description><![CDATA[I picked up Python around 2 months ago and was amazed by the robustness and extensibility of the lan]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I picked up Python around 2 months ago and was amazed by the robustness and extensibility of the language. Eclipse is my IDE of choice and I do most of my python coding in pydev. However, the default eclipse themed colors was extremely glaring and it really took a toll on me and hindered my output.</p>
<p>Yesterday, I came across TextMate. I&#8217;ve never used it before but have heard rave reviews on it. I decided to read up more about it and lo and behold, I discovered TextMate <strong>themes</strong>.</p>
<p>&#8220;I could code to these themes all day&#8221;, I thought to myself.</p>
<p>I assumed some smart guy must have written a plugin for eclipse that allows some form of theming on Eclipse. I was wrong.</p>
<p>The only thing closest to it was Afae editor which wasn&#8217;t exactly what I wanted since</p>
<p>1. you had to use the editor itself instead of pydev to code</p>
<p>2. bad syntax highlighting support for python</p>
<p>I then remembered pydev itself allows customisation of color options. I fired up Eclipse and indeed  it was there &#8211; but lacking. Still I decided to use whatever was available and this is what I&#8217;ve managed so far.</p>
<p><img class="alignleft size-full wp-image-16" title="eclipsepydev4" src="http://weakbytes.wordpress.com/files/2009/02/eclipsepydev4.png" alt="eclipsepydev4" width="500" height="364" /></p>
<p>Bye bye bloodshot eyes.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Eclipse/App Engine/Bloog Part 4, The hard part]]></title>
<link>http://tombrander.wordpress.com/2009/01/26/eclipseapp-enginebloog-part-4-the-hard-part/</link>
<pubDate>Mon, 26 Jan 2009 19:51:55 +0000</pubDate>
<dc:creator>tbrander</dc:creator>
<guid>http://tombrander.wordpress.com/2009/01/26/eclipseapp-enginebloog-part-4-the-hard-part/</guid>
<description><![CDATA[Well I had a long and frustrating week/week-end, all sort of run together. I discovered that my new ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Well I had a long and frustrating week/week-end, all sort of run together. I discovered that my new site would not take even moderately long articles. This is apparently a &#8220;known problem&#8221; and it relates to exploding indexes, as <a href="http://groups.google.com/group/google-appengine/browse_thread/thread/f7ba7a76c0c9afdf/ca6c5906a612624c?hl=en&#38;lnk=gst&#38;q=exploding+indexes+nick#ca6c5906a612624c" target="_blank">somewhat explained here</a>.</p>
<p>I finally got to corresponding with one of the Bloog Maintainers who had it turned out created a modified site search capability using Google Site Search. According to him  it still does not provide for longer article without some code mods that I have not yet started. But is a prerequisite. I got a copy from Git-hub, where Bloog is hosted. This required that I get and install GIT version control system. I chose to start with Windows based  <a href="https://sourceforge.net/projects/gitextensions/" target="_blank">Git Extensions</a>. It still required that you install the basic <a href="http://git-scm.com/" target="_blank">GIT</a>. It is only available in Tar format you will need <a href="http://www.7-zip.org/" target="_blank">7zip</a> to unpack although after a posting the developer has now provided a &#8220;full&#8221; option for Git extensions.</p>
<p>I then tried to apply the new code to my existing Bloog version as I had modified it. That required a differential editor,which I did not have <a href="http://kdiff3.sourceforge.net/">Kdiff3</a> turned out to be a great choice. It compares entire directory structures and than lets you click through the files and selectively choose to apply a, b to your revised file. Very cool.</p>
<p>I then tried to fire things up, FAIL. I then went back to the Version I had just obtained and I could not get it to fire up either. I then started to look for &#8220;real&#8221; debug information. Not much available.</p>
<p>Eventually I downloaded <a href="http://pydev.sourceforge.net/" target="_blank"><strong>PYdev for Eclipse</strong></a>, and that was a major improvement  my entire development environment. In fact I would go so far to say <strong>Do not attempt development for APP-Engine without Pydev</strong>!! It provides a much better editor, code outlining and a runtime environment. There are <a href="http://code.google.com/appengine/articles/eclipse.html" target="_blank">several tutorials</a> on setting up <a href="http://www.ibm.com/developerworks/opensource/library/os-eclipse-mashup-google-pt1/" target="_blank">Eclipse for app-engine</a>. Use them!!! Supposedly it also provides breakpoints, but I have not been able to get that working yet, but the other improvements are a major joy. The Debug environment did give me better log messages. Through which I was eventually able to make some headway. I found out that the two versions had changed the DB schema slightly so I had to delete a few older records You can see and modify the local datastore using <a href="http://localhost:8080/_ah/admin/datastore" target="_blank">http://localhost:8080/_ah/admin/datastore</a> and bang it all started to work. It actually took a long time to go through each step, and I still have to go back and learn each of the new tools much better.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Ubuntu Hardy 8.04 / Java 6: Eclipse terminated]]></title>
<link>http://ricobl.wordpress.com/2008/11/26/ubuntu-hardy-804-java-6-eclipse-terminated/</link>
<pubDate>Thu, 27 Nov 2008 02:45:53 +0000</pubDate>
<dc:creator>Rico</dc:creator>
<guid>http://ricobl.wordpress.com/2008/11/26/ubuntu-hardy-804-java-6-eclipse-terminated/</guid>
<description><![CDATA[Há algum tempo troquei de PC, sempre usei o Windows e o PC novo veio com o Ubuntu 8.04, resolvi apro]]></description>
<content:encoded><![CDATA[Há algum tempo troquei de PC, sempre usei o Windows e o PC novo veio com o Ubuntu 8.04, resolvi apro]]></content:encoded>
</item>
<item>
<title><![CDATA[Python Development in Eclipse with Pydev]]></title>
<link>http://pythonprogramming.wordpress.com/2008/11/25/python-development-in-eclipse/</link>
<pubDate>Tue, 25 Nov 2008 10:16:34 +0000</pubDate>
<dc:creator>jsalatan</dc:creator>
<guid>http://pythonprogramming.wordpress.com/2008/11/25/python-development-in-eclipse/</guid>
<description><![CDATA[I&#8217;ve had a short free time to continue my studies with python. I decided to look for Eclipse u]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I&#8217;ve had a short free time to continue my studies with python.</p>
<p>I decided to look for Eclipse using python mainly because of my frustration with Visual Studio 6.</p>
<p>I enjoy developing in eclipse and miss the feeling of the quickness of accessing what you want during my Struts development times. I wish that same ease of development were available with my current project.</p>
<p>I am doing this to reminisce those times and to keep that mastery and enjoyment of eclipse.</p>
<p>To setup my environment, I used this <a href="http://www.rose-hulman.edu/Class/csse/resources/Eclipse/eclipse-python-configuration.htm">link</a>.</p>
<p>That&#8217;s all!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Python... por donde empezar?]]></title>
<link>http://apirola.wordpress.com/2008/09/28/python-por-donde-empezar/</link>
<pubDate>Sun, 28 Sep 2008 06:49:18 +0000</pubDate>
<dc:creator>alejamp</dc:creator>
<guid>http://apirola.wordpress.com/2008/09/28/python-por-donde-empezar/</guid>
<description><![CDATA[Bueno para los que como yo vienen de otros lenguajes de programacion y estan interesados en comenzar]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Bueno para los que como yo vienen de otros lenguajes de programacion y estan interesados en comenzar con Python creo que conseguir informacion no es lo dificil sino saber elegir.</p>
<p><strong>IDE</strong></p>
<blockquote>
<p style="text-align:left;">En el campo de IDEs y editores de código gratuitos <a title="PyDEV" href="http://pydev.sourceforge.net/"><strong>PyDEV</strong></a> (http://pydev.sourceforge.net/) se alza como cabeza de serie. PyDEV es un plu-gin para Eclipse que permite utilizar este IDE multiplataforma para programar en Python. Cuenta con autocompletado de código (con información sobre cada elemento), resaltado de sintaxis, un depurador gráfico, resaltado de errores, explorador de clases, formateo del código,<br />
refactorización, etc. Sin duda es la opción más completa, sobre todo si instalamos las extensiones comerciales, aunque necesita de una canti-dad importante de memoria y no es del todo estable.<br />
Otras opciones gratuitas a considerar son <strong>SPE</strong> o Stani’s Python Editor (http://sourceforge.net/projects/spe/), Eric (http://die-offenbachs.de/eric/), <strong>BOA Constructor </strong>(http://boa-constructor.sourceforge.net/) o incluso<br />
emacs o vim.</p>
<p style="text-align:left;">Si no te importa desembolsar algo de dinero, Komodo (http://www.activestate.com/komodo_ide/) y <strong>Wing IDE</strong> (http://www.wingware.com/) son también muy buenas opciones, con montones de características interesantes, como PyDEV, pero mucho más estables y robustos. Además, si desarrollas software libre no comercial puedes contactar con Wing Ware y obtener, con un poco de suerte, una licencia gratuita para Wing IDE Professional.</p>
<p style="text-align:left;">Fuente &#8220;Python para todos&#8221; de<strong> Raul Gonzalez Duque</strong>.<br />
<a href="http://mundogeek.net/tutorial-python/">http://mundogeek.net/tutorial-python/</a></p></blockquote>
<p style="text-align:left;">Por mi lado, tomando la sugerencia de nuestro amigo Raul,  y dado que estoy familiarizado con Eclipse, creo que la mejor eleccion es<strong> PyDEV.</strong></p>
<p style="text-align:left;">
<p style="text-align:left;"><strong>Instalacion de PyDEV</strong></p>
<p style="text-align:left;"><strong>Linux &#8211; Ubuntu, </strong>en el caso de que tengan Ubuntu 8.04 esto es muy facil. Utilizando Synaptic Packet Manager, pueden descargar el paquete pyDev y automaticamente se instalara el IDE Eclipse y el SDK de Eclipse con todas las dependencias y plugins necesarios para pyDev. O desde consola:</p>
<blockquote>
<p style="text-align:left;"><em>sudo aptitude install eclipse-pydev</em></p>
</blockquote>
<p style="text-align:left;">En cuanto al interprete, en el caso de Ubuntu 8.04 creo que viene por defecto. De no ser asi lo bajan de la misma manera:</p>
<blockquote>
<p style="text-align:left;"><em>sudo aptitude install python2.5</em></p>
</blockquote>
<p style="text-align:left;">Para otras formas de instalacion pueden ir a <a href="http://begnu.wordpress.com/2007/09/26/pydev-python-eclipse/">http://begnu.wordpress.com/2007/09/26/pydev-python-eclipse/</a></p>
<p style="text-align:left;">
</div>]]></content:encoded>
</item>

</channel>
</rss>
