<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">

  <channel>
    <title>vsbabu.org : python</title>
    <link>http://vsbabu.org/mt/archives/categories/python/</link>
    <description>Gluing passing thoughts to foregone conclusions</description>
    <dc:language>en-us</dc:language>
    <dc:creator>vsbabu@gmail.com</dc:creator>
    <dc:rights>Copyright 2008</dc:rights>
    <dc:date>2005-07-03T21:18:36+05:00</dc:date>
    <admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=2.661" />
    <admin:errorReportsTo rdf:resource="mailto:vsbabu@gmail.com"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>

    <item>
      <title>Opera RSS to OPML</title>
      <link>http://vsbabu.org/mt/archives/2005/07/03/opera_rss_to_opml.html</link>
      <description>Small Python script to generate OPML from Opera&apos;s RSS feed list.</description>
      <guid isPermaLink="false">1008@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
I really like <a href="http://www.opera.com/">Opera</a> 8 quite a lot. It has nice integrated RSS + E-mail + NNTP reader. But one thing I found missing was ability to export my feed list. Since most RSS readers read OPML format these days, here is a Python snippet to help you export Opera feeds settings. I have tested this on my machine and my feeds. Your mileage may vary - feel free to modify this.
</p>]]></content:encoded>
      <dc:subject>python</dc:subject>
      <dc:date>2005-07-03T21:18:36+05:00</dc:date>
    </item>
    <item>
      <title>Soup is beautiful</title>
      <link>http://vsbabu.org/mt/archives/2005/03/23/soup_is_beautiful.html</link>
      <description>Came across BeautifulSoup yesterday. Very nice!</description>
      <guid isPermaLink="false">999@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
<a href="http://www.crummy.com/software/BeautifulSoup/">BeautifulSoup</a> is a great Python module that lets you
parse HTML and XML documents very easily. Via <a href="http://www.swaroopch.info/archives/2005/03/20/march-meet-of-bangpypers/">BangPypers meeting note</a>.
</p>

]]></content:encoded>
      <dc:subject>python</dc:subject>
      <dc:date>2005-03-23T12:26:37+05:00</dc:date>
    </item>
    <item>
      <title>Using Leo with reST</title>
      <link>http://vsbabu.org/mt/archives/2005/01/22/using_leo_with_rest.html</link>
      <description>Follow up on the older entry; things have changed with Leo 4.2 final.</description>
      <guid isPermaLink="false">996@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
For background infromation for this post, see <a href="http://vsbabu.org/mt/archives/2003/06/02/using_leo_for_rest.html">my original post in 2003</a>. I had to spend some time to get reST going with Leo 4.2. Now there are two plugins for reST., viz., old plugin and a new plugin called rst2 for getting
reST formatted documentation for source code.
</p>

<p>
Here's how you can use old reST plugin to keep your documentation work easy and organized.
</p>]]></content:encoded>
      <dc:subject>python</dc:subject>
      <dc:date>2005-01-22T10:32:35+05:00</dc:date>
    </item>
    <item>
      <title>Jython is great</title>
      <link>http://vsbabu.org/mt/archives/2004/02/24/jython_is_great.html</link>
      <description>Long overdue note on the ease and elegance of Jython.</description>
      <guid isPermaLink="false">981@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
    <a href="http://www.jython.org/">Jython</a> is a great time saver. It is a small
    download and installation is a very easy. It actually makes Java a bit more
    pleasing.
</p>

<p>
    Some quick uses I've found so far include:
</p>

<ol>
    <li>Making quick test scripts to integrate different Java components.</li>
    <li>Adding such scripts write into an Ant task.</li>
    <li>Using the great <a href="http://vsbabu.org/mt/archives/2003/02/13/joy_of_python_dir_help_and_pprint.html">pprint and dir</a>
        functions to dive into Java classes and methods much faster than API documentation.</li>
</ol>

<p>
    I am sure there are many more ways Jython can be used. For example, I checked in one old script
    that took about 15 minutes to write -- it provides a <a href="http://vsbabu.org/tmp/jyqlp.jy">rudimentary interactive sql shell</a>.
    The code couldn't be simpler! A while back, I needed to access an Oracle database. SQL*Plus
    was not installed in the client machine and the installer was not available either. This script
    came in handy then.
</p>]]></content:encoded>
      <dc:subject>python</dc:subject>
      <dc:date>2004-02-24T12:13:48+05:00</dc:date>
    </item>
    <item>
      <title>Quick UI for DocIndexer</title>
      <link>http://vsbabu.org/mt/archives/2003/12/23/quick_ui_for_docindexer.html</link>
      <description>Simple UI for a great utility that _just works_ using LuPy.</description>
      <guid isPermaLink="false">954@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<blockquote><a href="http://www.methods.co.nz/docindexer/">DocIndexer</a> is a toolkit for indexing and searching document directories. DocIndexer includes command-line utilities, Python file index and search classes plus a Win32 COM server (for scripting from languages such as Visual Basic) which can be used to integrate indexing and searching into application software. The current version has built-in support for Microsoft Word, HTML, RTF, PDF and plain text documents.
</blockquote>

<p>
Once the indexing is done, the search is very fast. I used it for 2 days and already can't live without it.  The search results come up in a DOS window; which makes it difficult to actually pull up documents from the search results (Mark - Copy - Paste).
</p>

<p>
So, I wrote a  <a href="http://vsbabu.org/tools/viewcvs.cgi/DocIndexerUI/">quick HTA to act as a front end</a>  for <tt>docsearch.exe</tt>.  Obligatory screen shot is below.
</p>]]></content:encoded>
      <dc:subject>python</dc:subject>
      <dc:date>2003-12-23T12:47:27+05:00</dc:date>
    </item>
    <item>
      <title>Scrape &apos;em!</title>
      <link>http://vsbabu.org/mt/archives/2003/10/23/scrape_em.html</link>
      <description>One of those moments where &quot;scripting&quot; is better than compiled languages:-)</description>
      <guid isPermaLink="false">926@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
I wanted to prove a point about the value of less number of lines of code to get
something done. I also wanted to prove a point about readability of code too.
</p>

<p>
Python code is below. Naturally, the other option is to  finish up semi-colons, braces  and compilation in that
<a href="http://vsbabu.org/tools/viewcvs.cgi/OnJavaComArticles.java?rev=HEAD&cvsroot=Java&content-type=text/vnd.viewcvs-markup" title="similar code">other 
language</a>.
</p>]]></content:encoded>
      <dc:subject>python</dc:subject>
      <dc:date>2003-10-23T13:02:46+05:00</dc:date>
    </item>
    <item>
      <title>Regex HTML extraction examples</title>
      <link>http://vsbabu.org/mt/archives/2003/09/18/regex_html_extraction_examples.html</link>
      <description>Couple of examples to parse web pages with news items.</description>
      <guid isPermaLink="false">893@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
Every other week, I find myself  facing a job requiring regular expressions.
And every other week, I need to refer to  <a href="http://www.python.org/doc/current/lib/module-re.html">python re module </a> and <a href="http://www.amk.ca/python/howto/regex/">regex howto</a>.
</p>

<p>
In an effort to reduce that time, here is <a href="http://vsbabu.org/tools/viewcvs.cgi/parse_news_html.py?rev=HEAD&content-type=text/vnd.viewcvs-markup">working code</a> that -- at the moment --  parses <a href="http://news.nationalgeographic.com/news/ngchannel.html">National Geographic News</a> and <a href="http://www-106.ibm.com/developerworks/">IBM dW home page</a>. Perhaps it might be useful to newbies too. The functions return a list of tuples like <code>(title, url, description, date, category)</code>
</p>]]></content:encoded>
      <dc:subject>python</dc:subject>
      <dc:date>2003-09-18T09:08:38+05:00</dc:date>
    </item>
    <item>
      <title>Interactive Python - notes</title>
      <link>http://vsbabu.org/mt/archives/2003/09/16/interactive_python_notes.html</link>
      <description>Additional notes on what I like about Python&apos;s interactive interpreter.</description>
      <guid isPermaLink="false">891@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
<a href="http://simon.incutio.com/">Simon Willison</a> has a great
example, <a href="http://simon.incutio.com/archive/2003/09/15/interactivePython">explaining
Python's interactive interpreter</a>. I agree with Simon on how useful it is for rapid application development, by seeing results for each line, right there.
</p>

<p>
A really great feature is the <code>-i</code> option.
</p>]]></content:encoded>
      <dc:subject>python</dc:subject>
      <dc:date>2003-09-16T06:21:04+05:00</dc:date>
    </item>
    <item>
      <title>Jython zxJDBC rocks!</title>
      <link>http://vsbabu.org/mt/archives/2003/09/15/jython_zxjdbc_rocks.html</link>
      <description>Jython with zxJDBC makes life so much easier for data maintenance scripts.</description>
      <guid isPermaLink="false">890@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
I usually use <a href="http://www.computronix.com/utilities.shtml#Oracle">cxOracle</a> from Python for accessing Oracle. Today,
I tried using <a href="http://www.jython.org/">Jython</a>. It is as easy as using CPython. 
</p>

<p>
I really liked  <a href="http://www.jython.org/docs/zxjdbc.html"><code>zxJDBC</code></a>.
Especially the <code>dbexts</code> wrapper - makes it much easier
to write portable code by moving DB parameters to a configuration file.
</p>]]></content:encoded>
      <dc:subject>python</dc:subject>
      <dc:date>2003-09-15T18:05:12+05:00</dc:date>
    </item>
    <item>
      <title>Updates to feeds</title>
      <link>http://vsbabu.org/mt/archives/2003/09/14/updates_to_feeds.html</link>
      <description>Feed on feeds get categorization and opml.</description>
      <guid isPermaLink="false">888@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
<a href="http://spycyroll.sourceforge.net/">Spycyroll</a> has been
pretty much dead after arrival :-) Today, I got some time to mess
with the source to add quick templating using <a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/162292">XYAPTU</a>.
I need to figure out how to check it in - now, the code is a collection
of Python and shell scripts (some things are just too easy in Shell).
</p>

<p>
Summary of results are below.
</p>]]></content:encoded>
      <dc:subject>python</dc:subject>
      <dc:date>2003-09-14T11:17:39+05:00</dc:date>
    </item>
    <item>
      <title>Python 2.3</title>
      <link>http://vsbabu.org/mt/archives/2003/09/12/python_23.html</link>
      <description>What&apos;s new in Python 2.3? Coverage in Byte.com.</description>
      <guid isPermaLink="false">885@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>I love these new features. Read <a href="http://www.byte.com/documents/s=8880/byt1062182129207/">the full article at Byte.com</a></p>

<ul><li>Pure Python implementation of strptime()</li>
<li>Better datetime!  _print &#8221;%d days between dates&#8221; % (date1 - date2).days_</li>
<li><span class="caps">CSV</span> module</li>
<li>Better logging module</li>
<li><span class="caps">A </span><em>sets</em> module. Wow!</li>
<li>Another great built-in function - _for i, word in enumerate(words):_</li>
<li>Slicing for sequence types get an optional &#8220;stride&#8221;.</li>
</ul>]]></content:encoded>
      <dc:subject>python</dc:subject>
      <dc:date>2003-09-12T11:37:47+05:00</dc:date>
    </item>
    <item>
      <title>Python is bad</title>
      <link>http://vsbabu.org/mt/archives/2003/09/08/python_is_bad.html</link>
      <description>It is making it difficult to analyze code in other languages.</description>
      <guid isPermaLink="false">883@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>
I spent more than half an hour trying to debug a problem in a
Java code. I was half-asleep, but I couldn't find what was wrong.
</p>

<p>
Looked at the specs. The implementation is about 100 lines. Kept dreaming about how this would have been about 10 lines of Python code (which is even smaller than the specs).
</p>]]></content:encoded>
      <dc:subject>python</dc:subject>
      <dc:date>2003-09-08T11:11:53+05:00</dc:date>
    </item>
    <item>
      <title>Java, Python and Russ</title>
      <link>http://vsbabu.org/mt/archives/2003/07/25/java_python_and_russ.html</link>
      <description>Good writeup by Russ on why he decided to go back to Java. Surprisingly, his reasons made me realise why I decided against Java!</description>
      <guid isPermaLink="false">845@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>Russell Beattie notes his thoughts about Python from a Java fan&#39;s perspective and <a href="http://www.russellbeattie.com/notebook/20030725.html#125136">concludes against Python</a>. It is a pretty good read. Good luck Russ.</p>

<p>I&#39;ve slightly different views on this.</p>]]></content:encoded>
      <dc:subject>java</dc:subject>
      <dc:date>2003-07-25T11:51:51+05:00</dc:date>
    </item>
    <item>
      <title>Server side python</title>
      <link>http://vsbabu.org/mt/archives/2003/07/09/server_side_python.html</link>
      <description>Reposting comment I made on Russ&apos; notebook here.</description>
      <guid isPermaLink="false">828@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>Russell Beattie has a <a href="http://www.russellbeattie.com/notebook/20030709.html#161214">post about the subject</a>. I made a comment on his weblog about that.</p>

<p>For future reference, I&#39;m posting my comment as an entry here too.</p>

<p>Point to ponder: I feel kind of silly posting my comment there as a post here. Feels like duplication (well, it is) and some kind of copyright issue. Zzzz&#8230;</p>]]></content:encoded>
      <dc:subject>zope</dc:subject>
      <dc:date>2003-07-09T11:17:18+05:00</dc:date>
    </item>
    <item>
      <title>A little too simplistic definition</title>
      <link>http://vsbabu.org/mt/archives/2003/07/07/a_little_too_simplistic_definition.html</link>
      <description>How do you differentiate scripting from programming?</description>
      <guid isPermaLink="false">827@http://vsbabu.org/mt/</guid>
      <content:encoded><![CDATA[<p>I was reading a DevX article titled <a href="http://www.devx.com/Java/Article/7866">Build a Reflection-based Interpreter in Java</a>. It has an interesting sidebar, viz., <a href="http://www.devx.com/Java/Article/7866/1763?supportItem=4">Scripting vs. Programming</a></p>

<p>The author comes up with a rough conclusion that scripting languages  follow <em>quick and dirty</em> programming style, whereas system programming languages follow a <em>thought out</em> programming style.</p>

<p>Give me a break! This prompts me to rant.</p>]]></content:encoded>
      <dc:subject>programming</dc:subject>
      <dc:date>2003-07-07T18:13:14+05:00</dc:date>
    </item>


  </channel>
</rss>

