<?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>Random Geekage &#187; python</title>
	<atom:link href="http://kevinisageek.org/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://kevinisageek.org</link>
	<description>Randomness, geekery and whatever else I feel like</description>
	<lastBuildDate>Thu, 20 May 2010 10:29:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Foursquare Python Library</title>
		<link>http://kevinisageek.org/2010/04/23/foursquare-python-library/</link>
		<comments>http://kevinisageek.org/2010/04/23/foursquare-python-library/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 22:16:13 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Foursquare]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://kevinisageek.org/?p=684</guid>
		<description><![CDATA[I signed up to Foursquare a couple weeks ago just to see what it is like. However, a lack of clients for my phone (formally a Nokia N95, now an N900) makes it somewhat of a hassle to use (that and the lack of places the site recognises, damn American focus). Anyway, while at work [...]]]></description>
			<content:encoded><![CDATA[<p>I signed up to <a href="http://foursquare.com/">Foursquare</a> a couple weeks ago just to see what it is like. However, a lack of clients for my phone (formally a Nokia N95, now an N900) makes it somewhat of a hassle to use (that and the lack of places the site recognises, damn American focus).</p>
<p>Anyway, while at work today I had an idea to make an application for my new phone. I haven&#8217;t got particularly far with it, only creating a library with a sprinkling of methods, one to &#8220;check in&#8221;, another to search for venues based on your GPS coordinates and one to do the actual data requests.</p>
<p>Even if you don&#8217;t understand Python, it shouldn&#8217;t be too hard to follow along. If anybody uses this cruft, let me know and I&#8217;ll apologise directly to you.</p>
<p><a href="http://kevinisageek.org/wordpress/wp-content/uploads/2010/04/foursquare.py_.txt">foursquare.py</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kevinisageek.org/2010/04/23/foursquare-python-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Robot updated</title>
		<link>http://kevinisageek.org/2009/01/21/robot-updated/</link>
		<comments>http://kevinisageek.org/2009/01/21/robot-updated/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 14:40:25 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Robot Army]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[robot]]></category>

		<guid isPermaLink="false">http://kevinisageek.org/?p=402</guid>
		<description><![CDATA[Just a quick post to say that my robot code has been updated to communicate with my arduino. Learned some more about Python as well, mostly relating to how badly I suck at it. Can&#8217;t get object orientation to work with modules but objects are not necessary for this. Straight procedural code is all that [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick post to say that my robot code has been updated to communicate with my arduino. Learned some more about Python as well, mostly relating to how badly I suck at it. Can&#8217;t get object orientation to work with modules but objects are not necessary for this. Straight procedural code is all that is required, for the moment.</p>
<p><a href="http://kevinisageek.org/code/robot.zip">Download robot code</a></p>
<p><a href="http://kevinisageek.org/code/spy_gear_atv_360_motor_control-081225a.zip">Download arduino code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kevinisageek.org/2009/01/21/robot-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PyInvaders</title>
		<link>http://kevinisageek.org/2008/08/22/pyinvaders/</link>
		<comments>http://kevinisageek.org/2008/08/22/pyinvaders/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 12:02:21 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[pygame]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[space invaders]]></category>

		<guid isPermaLink="false">http://www.kevinisageek.org/?p=207</guid>
		<description><![CDATA[I made a game! Well, copied from a magazine (Linux Format 110) but it still counts. It is a stripped down version of space invaders which is coded in python. Needs the pygame software installed to work as well as an install of python (duh). No idea what the liscence is with the code, I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>I made a game! Well, copied from a magazine (Linux Format 110) but it still counts. It is a stripped down version of space invaders which is coded in python. Needs the <a title="Pygame download" href="http://www.pygame.org/download.shtml">pygame software</a> installed to work as well as an install of python (duh).</p>
<p>No idea what the liscence is with the code, I&#8217;m assuming some version of the GPL. <a title="PyInvaders download" href="http://kevinisageek.org/code/pyinvaders.zip">I&#8217;m putting it up anyway</a>. It is pretty hard, goes quite fast. Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://kevinisageek.org/2008/08/22/pyinvaders/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Python</title>
		<link>http://kevinisageek.org/2008/05/20/python/</link>
		<comments>http://kevinisageek.org/2008/05/20/python/#comments</comments>
		<pubDate>Tue, 20 May 2008 14:04:44 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[robot]]></category>
		<category><![CDATA[XKCD]]></category>

		<guid isPermaLink="false">http://www.kevinisageek.org/weblog/?p=89</guid>
		<description><![CDATA[I love Python. So clean and elegant. Loops are simple: for i in range (0, 10): print i There is no hassle with curly braces either, though I do think they make things look prettier (but that is just syntactic sugar) Been working on my robot code, split it up into modules. Was piss easy [...]]]></description>
			<content:encoded><![CDATA[<p><img style="vertical-align: middle;" src="http://imgs.xkcd.com/comics/python.png" alt="Python on XKCD" width="518" height="588" /></p>
<p>I love Python. So clean and elegant. Loops are simple:</p>
<blockquote><p>for i in range (0, 10):</p>
<p>print i</p></blockquote>
<p>There is no <a title="Missing curly brace" href="http://www.bash.org/?7748">hassle with curly braces</a> either, though I do think they make things look prettier (but that is just syntactic sugar)</p>
<p>Been working on my <a title="My robot code" href="/code/robot.zip">robot code</a>, split it up into modules. Was piss easy with Python. I need to get my hands on some form of chassis and an interface between it and my portable deck (which will run the code).</p>
]]></content:encoded>
			<wfw:commentRss>http://kevinisageek.org/2008/05/20/python/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Weee code!</title>
		<link>http://kevinisageek.org/2008/04/21/weee-code/</link>
		<comments>http://kevinisageek.org/2008/04/21/weee-code/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 16:57:23 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Robot Army]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[robot]]></category>
		<category><![CDATA[XKCD]]></category>

		<guid isPermaLink="false">http://www.kevinisageek.org/weblog/?p=58</guid>
		<description><![CDATA[After reading the latest XKCD comic, showing it to my mates and then squeeing like a crazed fangirl I decided to make one. The current plans are to borrow a chassis that a mate may have, interface it with my eeepc via an arduino, somehow work out how to get the webcam working and then [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Robot squeeing" href="http://www.kevinisageek.org/weblog/2008/04/21/i-want-one/">After reading the latest</a> <a title="Want so much" href="http://xkcd.com/413/">XKCD comic</a>, showing it to my mates and then squeeing like a crazed fangirl I decided to make one. The current plans are to borrow a chassis that a mate may have, interface it with my eeepc via an <a title="Arduino" href="http://www.arduino.cc/">arduino</a>, somehow work out how to get the webcam working and then mount an airsoft gun to the whole thing.</p>
<p>&lt;scientist type=&#8221;mad&#8221;&gt;MUAHAHAHAHAHAHAHAH!!!!&lt;/scientist&gt;</p>
<p>Ahem&#8230;</p>
<p>I have a first attempt at some sort of code to drive the robot. It is coded in Python (which I am falling in love with). Feel free to try it ou yourself (Disclaimer: if the code breaks something you agree to not hld me responsible. If it does any good, give credit)</p>
<blockquote><p>#!/usr/bin/env python</p>
<p>def forward():<br />
print &#8220;moving forward&#8221;</p>
<p>def reverse():<br />
print &#8220;moving backwards&#8221;</p>
<p>def left():<br />
print &#8220;turning left&#8221;</p>
<p>def right():<br />
print &#8220;turning right&#8221;</p>
<p>while 1 == 1:<br />
objectlocation = raw_input(&#8220;please enter the object location: &#8220;)<br />
if not objectlocation == &#8220;front&#8221;:<br />
forward()<br />
else:<br />
reverse()<br />
if objectlocation == &#8220;left&#8221;:<br />
right()<br />
if objectlocation == &#8220;right&#8221;:<br />
left()</p></blockquote>
<p>Not very spectacular but it is a start. To use, run the script somehow on your system and type in stuff at the  prompt. It only responds to front, left and right. Anything else is ignored.</p>
]]></content:encoded>
			<wfw:commentRss>http://kevinisageek.org/2008/04/21/weee-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
