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

<channel>
	<title>An Experiment in Bloggery &#187; Python</title>
	<atom:link href="http://kevin.sb.org/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://kevin.sb.org</link>
	<description>The occasional view into my life</description>
	<lastBuildDate>Wed, 30 Jun 2010 18:48:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Slices in Pythonica</title>
		<link>http://kevin.sb.org/2004/06/10/slices-in-pythonica/</link>
		<comments>http://kevin.sb.org/2004/06/10/slices-in-pythonica/#comments</comments>
		<pubDate>Thu, 10 Jun 2004 21:41:18 +0000</pubDate>
		<dc:creator>Kevin Ballard</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://10cad98699e5229c27b81169256db620</guid>
		<description><![CDATA[I&#8217;ve just made another enhancement to Pythonica. It now supports lists and slices a la Mathematica. This change was inspired by a conversation with Arteum Bochevarov, who is also working on expanding Pythonica. Hopefully we can merge our versions together.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just made another enhancement to <a href="http://www.tildesoft.com/Pythonica.html">Pythonica</a>. It now supports lists and slices a la Mathematica.</p>

<p>This change was inspired by a conversation with Arteum Bochevarov, who is also working on expanding Pythonica. Hopefully we can merge our versions together.</p>
]]></content:encoded>
			<wfw:commentRss>http://kevin.sb.org/2004/06/10/slices-in-pythonica/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pythonica</title>
		<link>http://kevin.sb.org/2004/05/24/pythonica/</link>
		<comments>http://kevin.sb.org/2004/05/24/pythonica/#comments</comments>
		<pubDate>Mon, 24 May 2004 22:33:42 +0000</pubDate>
		<dc:creator>Kevin Ballard</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://f009946d807995f90619fc24d43a06a9</guid>
		<description><![CDATA[Joe Strout posted recent on the RB Network Users Group list about a cool project he did a while ago called Pythonica (in the context of symbolic evaluation). While Pythonica is a bit out of date (the page last updated in &#8217;97), it&#8217;s still pretty nifty. Pythonica is a symbolic evaluation program written in Python. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.strout.net">Joe Strout</a> posted recent on the <a href="http://www.realsoftware.com/listarchives/realbasic-nug/">RB Network Users Group</a> list about a cool project he did a while ago called <a href="http://www.strout.net/info/coding/python/pythonica.html">Pythonica</a> (in the context of symbolic evaluation). While Pythonica is a bit out of date (the page last updated in &#8217;97), it&#8217;s still pretty nifty.</p>

<p>Pythonica is a symbolic evaluation program written in <a href="http://www.python.org">Python</a>. It&#8217;s loosely based off of <a href="http://www.wolfram.com">Mathematica</a> and is a really good start. It&#8217;s missing a lot and it&#8217;s weak in other areas, but it&#8217;s still fun to play around with and can be extended.</p>

<p>Anyway, over the last couple of days I&#8217;ve been updating it a bit (replacing uses of the <code>regex</code> module with <code>re</code>, removing some deprecated uses of the <code>string</code> module, etc) and improving it. I&#8217;ve implemented some new functions (<code>Sin</code>/<code>Cos</code>/<code>Tan</code>/<code>ASin</code>/<code>ACos</code>/<code>ATan</code>/<code>Rad2Deg</code>/<code>Deg2Rad</code>), added a couple of default symbols (<code>pi</code> and <code>e</code>), and fixed some bugs (for example, <code>Sin[pi/4]</code> used to produce <code>Sin[pi,4]</code> instead of <code>Sin[Divide[pi,4]]</code>). At some point I&#8217;m probably going to start re-writing some of the internals to support some things Joe suggests on his <a href="http://www.strout.net/info/coding/python/pythonica.html">page</a>.</p>

<p>Anyway, Pythonica is pretty cool and a decent example of Python code. If you like Python, you should <a href="http://www.strout.net/info/coding/python/pythonica.html">check it out</a>.</p>

<div class="update">I&#8217;m now maintaining Pythonica. Joe Strout doesn&#8217;t want to maintain it any longer ;) You can find my page at <a href="http://www.tildesoft.com/Pythonica.html">http://www.tildesoft.com/Pythonica.html</a></div>
]]></content:encoded>
			<wfw:commentRss>http://kevin.sb.org/2004/05/24/pythonica/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Status Update</title>
		<link>http://kevin.sb.org/2004/04/15/status-update/</link>
		<comments>http://kevin.sb.org/2004/04/15/status-update/#comments</comments>
		<pubDate>Fri, 16 Apr 2004 02:38:11 +0000</pubDate>
		<dc:creator>Kevin Ballard</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://a6d625110d3e8ab055463f6bbed873f4</guid>
		<description><![CDATA[A status update on what's happened in the last month. Topics include [Colloquy][1], [Markdown][2] [Eternal Sunshine of the Spotless Mind][3], [Python][4], and splurge purchases.

[1]: http://colloquy.info "Colloquy: Aqua IRC client"
[2]: http://daringfireball.net/projects/markdown/ "Daring Fireball: Markdown"
[3]: http://www.imdb.com/title/tt0338013/ "Will you erase me?"
[4]: http://www.python.org "Python"]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since I&#8217;ve posted anything, I know. I really should start posting again. I just don&#8217;t have much to talk about. Here&#8217;s an update on my current status:</p>

<h3>Colloquy</h3>

<p><a href="http://www.irssi.org/" title="Irssi">Colloquy</a> is a Mac OS X IRC client. It&#8217;s not as powerful as some others,
notably <a href="http://daringfireball.net/projects/markdown/" title="Daring Fireball: Markdown">X-Chat Aqua</a>, but it&#8217;s the only one that&#8217;s actually well-designed
from a UI standpoint (it looks like an Aqua IRC client <em>should</em> look).
Colloquy is also really nice from a code standpoint. For instance, the way
it does Styles. It has several different styles, and they all look fairly different.
The way it&#8217;s done is everything is rendered in a WebView using Safari&#8217;s
WebKit. It translates the IRC traffic into an XML log and uses <a href="http://movabletype.org/" title="Movable Type">XSLT</a> to
translate the log into an XHTML document and renders that in the WebView.
For new messages it uses JavaScript to append the message to the end of
the document. This makes it really flexible and really powerful. Here&#8217;s a
screenshot of my favorite style, called Meinzer:</p>

<p><span id="more-50"></span></p>

<p><img src="/images/Meinzer.png" alt="Meinzer screenshot" /></p>

<p>For comparison, here&#8217;s a screenshot of the Standard style:</p>

<p><img src="/images/Standard.png" alt="Standard screenshot" /></p>

<p>And BTW, new messages in Standard fade in. It&#8217;s really nice.</p>

<p>So anyway, this is a really nice-looking client and it&#8217;s being actively developed.
Just recently the core was switched to <a href="http://www.irssi.org/" title="Irssi">irssi</a> from Firetalk which will let a lot more
features be added. And just a few days ago I was set as an official developer for the
project, in return for all the code I donated. It&#8217;s a lot of fun, as my work is actively tested
by a core group of people that hang out on <a href="irc://irc.freenode.net/#colloquy">#colloquy</a>
on <a href="irc://irc.freenode.net">Freenode</a> and any work I do makes life better for me as I use
the app. I don&#8217;t think I&#8217;ve ever had this much fun coding before.</p>

<h3>Markdown</h3>

<p>Just yesterday I downloaded a cool script called <a href="http://daringfireball.net/projects/markdown/" title="Daring Fireball: Markdown">Markdown</a>. It&#8217;s a really nice way of
typing text that automatically gets translated into XHTML when you post to your
<a href="http://movabletype.org/" title="Movable Type">Movable Type</a> blog. It also works when called from the <a href="http://www.barebones.com/products/bbedit/index.shtml" title="BBEdit">BBEdit</a> Unix Filters menu.
And there&#8217;s a downloadable service called Humane Text that you can call using
the <a href="http://www.apple.com" title="Mac OS X">Mac OS X</a> Services menu that translates between text and XHTML using
<a href="http://daringfireball.net/projects/markdown/" title="Daring Fireball: Markdown">Markdown</a> and <a href="http://www.aaronsw.com/2002/html2text/" title="THE ASCIINATOR">html2text</a>.</p>

<p>This post was, of course, written using <a href="http://daringfireball.net/projects/markdown/" title="Daring Fireball: Markdown">Markdown</a>. It really makes it very pleasant
to type and is supported in <a href="http://www.kung-foo.tv/ecto/" title="ecto">ecto</a>&#8217;s Preview functionality.</p>

<h3>Eternal Sunshine of the Spotless Mind</h3>

<p>This is a <em>really</em> good movie. I just saw it recently. If you don&#8217;t know,
<a href="http://www.imdb.com/title/tt0338013/" title="Would you erase me?">Eternal Sunshine of the Spotless Mind</a> is a Jim Carrey movie
about somebody who just broke up with his girlfriend and goes to a clinic-like
business to have all his memories about his ex erased. However, halfway
through the process he decides he doesn&#8217;t want them erased after all but is
powerless to do anything about it. I highly recommend it.</p>

<p>On the topic of movies, I really want to see <a href="http://www.imdb.com/title/tt0167190/" title="Hellboy">Hellboy</a>.</p>

<h3>Python coding</h3>

<p>If you&#8217;ve talked to me about coding, you&#8217;ve probably heard me lament about how I <em>love</em> Python but I never get a chance to code with it. Well, one of my classes this term, CS2223 (Algorithms) has programming projects. Granted, the projects aren&#8217;t terribly great, but the flip side is the language isn&#8217;t specified so you can use whatever you want, as long as it compiles on the  CCC machines. So, for these projects, I&#8217;m using <a href="http://www.python.org" title="Python">Python</a>! So the projects suck, but at least I get to use <a href="http://www.python.org" title="Python">Python</a> ;)</p>

<h3>Splurge Purchases</h3>

<p>My dormmate Pete works at <a href="http://www.radioshack.com" title="Radio Shack">Radio Shack</a>. He&#8217;s making a lot of money there.
On a whim, today I trailed him to work so I could see if they had anything I wanted.
As it turns out, they did, but I didn&#8217;t know I wanted them until Pete told me I did ;)
I bought 2 things (3 if you count batteries, for the low low price of $5 for a 12-pack
of AA&#8217;s since they were mislabeled and Pete insisted on selling them to me for that
price. For comparison, a 4-pack costs $4 and a 12-pack usually costs $9):</p>

<ul>
<li><p>A really nice pair of headphones.</p>

<p>These headphones are <a href="http://www.sennheiser.com" title="Sennheiser">Sennheiser</a> headphones (model <a href="http://www.sennheiser.com/sennheiser/relaunch/icm_eng.nsf/root/products_headphones_hi-fi-wired_05179" title="Sennheiser HD 497">HD 497</a>). They cost
$69 and are completely worth it. They fit <em>really</em> comfortably, they sound <em>great</em>,
and they look decent. They&#8217;re the best pair of headphones I&#8217;ve ever used. With it,
I&#8217;m hearing instruments in <a href="http://www.jekyll-hyde.com/" title="Jekyll &#38; Hyde">Jekyll &#38; Hyde</a> that I never heard before! It&#8217;s great!</p></li>
<li><p>A pair of expensive walkie talkies (sorry, two-way radio)</p>

<p>These are <a href="http://www.motorola.com" title="Motorola">Motorola</a> <a href="http://www.motorola.com/talkabout" title="Motorola Talkabout Two-Way Radio">Talkabout</a> two-way radios, model T5950. They cost $99.
They&#8217;re probably not worth it, but I&#8217;m a sucker for neat gadgets. And these do everything
you could want in a two-way radio. They&#8217;re <em>very</em> durable, they have 22 channels,
they have 99 interference eliminator codes (a lot more than the standard 38), they can
get a weather broadcast so you can hear the current weather in your area, they have a
range of up to 5 miles, and they&#8217;re just damn cool.</p></li>
</ul>

<p>With these 2 (sorry, 3) purchases, I spent $180 and Pete earned, I believe, $9 on
commission. That&#8217;s pretty nice for him just chatting with me for 10 minutes about all
the cool stuff they have in that store. The two-way radios may be a but gratuitous, but
these headphones are really great, so I&#8217;m glad I bought them.</p>

<h3>Well, that&#8217;s about it</h3>

<p>I don&#8217;t really have anything else to talk about. I&#8217;ll try and update somewhat regularly
from here on.</p>
]]></content:encoded>
			<wfw:commentRss>http://kevin.sb.org/2004/04/15/status-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python goodness</title>
		<link>http://kevin.sb.org/2003/12/16/python-goodness/</link>
		<comments>http://kevin.sb.org/2003/12/16/python-goodness/#comments</comments>
		<pubDate>Tue, 16 Dec 2003 08:16:11 +0000</pubDate>
		<dc:creator>Kevin Ballard</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://b49ec73e7d110a36fbcf4537aeb7bd50</guid>
		<description><![CDATA[Yesterday I finally got mod_python working with the help of the friendly folks on the mod_python mailing list. And then I started fooling around with a script I&#8217;m calling index.py. Eventually I&#8217;ll turn this into a template system for my new website (once I finally get off my butt and design myself one). But for [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I finally got <a href="http://www.modpython.org/">mod_python</a> working with the help of the friendly folks on the mod_python mailing list. And then I started fooling around with a script I&#8217;m calling index.py. Eventually I&#8217;ll turn this into a template system for my new website (once I finally get off my butt and design myself one). But for now, I was just playing around, learning how to do stuff with this. So, to learn, I made myself a routine that duplicates the built-in FancyIndexing feature (you know, where you type in a directory that doesn&#8217;t have an index file and it displays a list of all the files, with icons and information). It duplicates everything except the Description column and sortable headers. Other than that, it looks identical to the real thing, even down to the spacing of elements and the icons (hell, I went to the trouble of parsing the server config for the AddIcon and AddIconByType and DefaultIcon directives just to get the icons right!). Later I&#8217;ll add the Description column and, hopefully, sortable headers. Then it will look exactly the same. The only way to tell the difference will be to look at the source, where you&#8217;ll see a much nicer-looking source than the built-in indexing feature.</p>

<p>The other facet of my script is anything accessed from inside that directory is funnelled through the script, i.e. the script is given the filename and it opens it and gets the content-type and outputs the contents of the file. The point of this, of course, is for the templating system, but for now it&#8217;s just for fun.</p>

<p>If you want to try it, just go <a href="http://kballard.res.wpi.net/~kevin/">here</a>.</p>

<div class="note">Please note that this address is only valid if my computer is plugged in at college. I&#8217;m going home Thursday, and at that point I&#8217;ll attempt to get a new URL for my computer</div>

<div class="note">The URL is no longer valid</div>
]]></content:encoded>
			<wfw:commentRss>http://kevin.sb.org/2003/12/16/python-goodness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->