<?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/"
	>

<channel>
	<title>seshblog</title>
	<atom:link href="http://sesh.gubbyprojects.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://sesh.gubbyprojects.com/blog</link>
	<description></description>
	<pubDate>Wed, 04 Mar 2009 01:41:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simplest API Ever?</title>
		<link>http://sesh.gubbyprojects.com/blog/?p=17</link>
		<comments>http://sesh.gubbyprojects.com/blog/?p=17#comments</comments>
		<pubDate>Wed, 04 Mar 2009 01:39:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[api]]></category>

		<category><![CDATA[football]]></category>

		<guid isPermaLink="false">http://sesh.gubbyprojects.com/blog/?p=17</guid>
		<description><![CDATA[Last week I announced on Twitter that I had written a really simple python script to rip AFL scores from the AFL&#8217;s Game Day Live page. It had a pretty decent response so I&#8217;ve turned it into a quick and dirty web server for anyone to use.

Using web.py meant that the web service took all [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I announced on Twitter that I had written a really simple python script to rip AFL scores from the AFL&#8217;s <a href="http://livescores.afl.com.au/all-matches.html">Game Day Live</a> page. It had a pretty decent response so I&#8217;ve turned it into a quick and dirty web server for anyone to use.</p>
<p><img class="aligncenter size-full wp-image-16" title="twitter-post" src="http://sesh.gubbyprojects.com/blog/wp-content/uploads/2009/03/picture-1.png" alt="twitter-post" width="395" height="225" /></p>
<p>Using <a href="http://webpy.org">web.py</a> meant that the web service took all of about 20 minutes to actually code up, the biggest problem was getting Lighttpd virtual hosts to play nice on a server with multiple domains hosted.</p>
<p>For anyone interested the complete code (all 2Kb of it) is available here: <a href="http://sesh.gubbyprojects.com/labs/score/">http://sesh.gubbyprojects.com/labs/score/</a></p>
<p>And now to the fun part - explaining the single API call that this makes available.</p>
<p>I&#8217;ve created a sub domain specifically for this API, and it has just two parameters:</p>
<p><code>http://scores.gubbyprojects.com/{sport}/{team(s)}/</code></p>
<p>You&#8217;re going to need to fill in those two parameters with valid values; for the sport you need to put &#8220;afl&#8221;, and for teams you need to put the name of the AFL teams you want scores for - seperated by commas.</p>
<p>Here&#8217;s an example for this Friday&#8217;s game:</p>
<p><code>http://scores.gubbyprojects.com/afl/essendon,collingwood/</code></p>
<p>Check out what it returns - it&#8217;s so self explanitory that it&#8217;s hardly worth exaplaining:</p>
<p><code>Return Value:<br />
ESSENDON,{Q1},{Q2},{Q3},{Q4},{total}<br />
</code><code>COLLINGWOOD,{Q1},{Q2},{Q3},{Q4},{total}</code></p>
<p>One little gotcha is that you can&#8217;t put spaces in the domain. You just need to make sure that you&#8217;re using a unique piece of text from the team name that appears on the Game Day Live page. For &#8220;West Coast&#8221; you can use &#8220;Coast&#8221; and for &#8220;Western Bulldogs&#8221; you can use either &#8220;Western&#8221; or &#8220;Bulldogs&#8221;.</p>
<p>That&#8217;s about it for now, I&#8217;m going to be expaning this a fair bit in the next going of weeks - but this call won&#8217;t change at all.</p>
<p>Plans for the immediate future:</p>
<ul>
<li>Get a list of games for the week</li>
<li>Get more details about a specific game (time remaining, goal scorers, etc.)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sesh.gubbyprojects.com/blog/?feed=rss2&amp;p=17</wfw:commentRss>
		</item>
		<item>
		<title>It&#8217;s Your Ride</title>
		<link>http://sesh.gubbyprojects.com/blog/?p=15</link>
		<comments>http://sesh.gubbyprojects.com/blog/?p=15#comments</comments>
		<pubDate>Wed, 25 Feb 2009 10:35:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[bike]]></category>

		<category><![CDATA[cycling]]></category>

		<category><![CDATA[film]]></category>

		<category><![CDATA[short film]]></category>

		<guid isPermaLink="false">http://sesh.gubbyprojects.com/blog/?p=15</guid>
		<description><![CDATA[It&#8217;s Your Ride from Cinecycle on Vimeo.
]]></description>
			<content:encoded><![CDATA[<p><object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2989396&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2989396&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object><br /><a href="http://vimeo.com/2989396">It&#8217;s Your Ride</a> from <a href="http://vimeo.com/cinecycle">Cinecycle</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sesh.gubbyprojects.com/blog/?feed=rss2&amp;p=15</wfw:commentRss>
		</item>
		<item>
		<title>2009 Melbourne Summer Cycle</title>
		<link>http://sesh.gubbyprojects.com/blog/?p=10</link>
		<comments>http://sesh.gubbyprojects.com/blog/?p=10#comments</comments>
		<pubDate>Tue, 24 Feb 2009 22:47:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[active]]></category>

		<category><![CDATA[bike ride]]></category>

		<category><![CDATA[charity]]></category>

		<category><![CDATA[fun]]></category>

		<category><![CDATA[sport]]></category>

		<guid isPermaLink="false">http://sesh.gubbyprojects.com/blog/?p=10</guid>
		<description><![CDATA[On Sunday 22nd of Feb myself an around 4,000 others rode in the 2009 Melbourne Summer Cycle.
Our team, Swan Hill Supporting MS, managed to raise of $17,500 for MS Australia - a cause very close to the hearts of many of the team members.
You can still help out by sponsoring the team (even though the [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/sesh00/3301951084/sizes/o/"><img title="Swan Hill Supporting MS - Team Photo" src="http://farm4.static.flickr.com/3348/3301951084_9991f28f1e.jpg" alt="Swan Hill Supporting MS - Team Photo" width="500" height="240" /></a><p class="wp-caption-text">Swan Hill Supporting MS - Team Photo</p></div>
<p>On Sunday 22nd of Feb myself an around 4,000 others rode in the 2009 Melbourne Summer Cycle.</p>
<p>Our team, Swan Hill Supporting MS, managed to raise of $17,500 for MS Australia - a cause very close to the hearts of many of the team members.</p>
<p>You can still help out by sponsoring the team (even though the event is over, all 40 members managed to ride the 40kms) by clicking on the link below.</p>
<p><a title="Support Swan Hill Supporting MS" href="http://register.melbournesummercycle.org.au/?Swan+Hill+Supporting+MS">http://register.melbournesummercycle.org.au/?Swan+Hill+Supporting+MS</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sesh.gubbyprojects.com/blog/?feed=rss2&amp;p=10</wfw:commentRss>
		</item>
		<item>
		<title>Hannah live at the Empress</title>
		<link>http://sesh.gubbyprojects.com/blog/?p=8</link>
		<comments>http://sesh.gubbyprojects.com/blog/?p=8#comments</comments>
		<pubDate>Tue, 24 Feb 2009 22:42:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[live music]]></category>

		<category><![CDATA[qik]]></category>

		<guid isPermaLink="false">http://sesh.gubbyprojects.com/blog/?p=8</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="319" data="http://qik.com/swfs/qikPlayer4.swf" type="application/x-shockwave-flash"><param name="id" value="qikPlayer" /><param name="align" value="middle" /><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="quality" value="high" /><param name="bgcolor" value="#333333" /><param name="FlashVars" value="rssURL=http://qik.com/video/a5009b818bae46f59eff882d8aea22fb.rss&amp;autoPlay=false" /><param name="src" value="http://qik.com/swfs/qikPlayer4.swf" /><param name="name" value="qikPlayer" /><param name="flashvars" value="rssURL=http://qik.com/video/a5009b818bae46f59eff882d8aea22fb.rss&amp;autoPlay=false" /><param name="allowfullscreen" value="true" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://sesh.gubbyprojects.com/blog/?feed=rss2&amp;p=8</wfw:commentRss>
		</item>
		<item>
		<title>Using Cron to Automate Tasks on Linux</title>
		<link>http://sesh.gubbyprojects.com/blog/?p=3</link>
		<comments>http://sesh.gubbyprojects.com/blog/?p=3#comments</comments>
		<pubDate>Fri, 13 Feb 2009 05:09:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://sesh.gubbyprojects.com/blog/?p=3</guid>
		<description><![CDATA[Note: This was originally posted on my *old* blog. Posting here to add some content while I write a couple of things on my mind.
An exteremely useful feature of most *nix based systems is the ability to use a tool called cron (or crontab) to create what are called “cron jobs”. These are actions that [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Note: </strong>This was originally posted on my *old* blog. Posting here to add some content while I write a couple of things on my mind.</p>
<p>An exteremely useful feature of most *nix based systems is the ability to use a tool called cron (or crontab) to create what are called “cron jobs”. These are actions that can be made to be executed at a specific time on a specific day.</p>
<p>The two most useful commands for most users are:</p>
<blockquote><p>crontab -l (list the crontab file for the current user)</p></blockquote>
<p>and</p>
<blockquote><p>crontab -e (edit the crontab file for a particular user)</p></blockquote>
<p>Once you are editing the crontab file (you will generally need to be root to do this) you simply need to follow this format:</p>
<p>min hour day month dayofweek command</p>
<p>So if you wanted to run a command at 3am every morning, then you would do something like this:</p>
<blockquote><p>0 3 * * * pacman -Syu</p></blockquote>
<p>This is all well and good, and nothing more that you would get from the crontab man file, but there are a couple of handy tricks I can share. For starters, if you want to run a graphical application you need to send it to a screen. This can be done using a command like:</p>
<blockquote><p>DISPLAY=:0 deluge</p></blockquote>
<p>One of the main applications that I have for cron tab isn’t a system administration task at all, it’s to open and close a bittorrent client to download files while I’m asleep. Since most Australian ISPs now offer larger download quotas overnight it’s quite handy to be able to start downloads at 3am and kill them at 9am. It’s easy to do to. You simply use the DISPLAY=:0 trick to start the graphical bittorrent application, and then use killall to make sure that it’s shutdown at the right time:</p>
<blockquote><p>0 3 * * * DISPLAY=:0 deluge<br />
0 9 * * * killall deluge</p></blockquote>
<p>I’m sure there are at least a few people out there that will find this helpful.</p>
]]></content:encoded>
			<wfw:commentRss>http://sesh.gubbyprojects.com/blog/?feed=rss2&amp;p=3</wfw:commentRss>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://sesh.gubbyprojects.com/blog/?p=1</link>
		<comments>http://sesh.gubbyprojects.com/blog/?p=1#comments</comments>
		<pubDate>Fri, 13 Feb 2009 04:43:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sesh.gubbyprojects.com/blog/?p=1</guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://sesh.gubbyprojects.com/blog/?feed=rss2&amp;p=1</wfw:commentRss>
		</item>
	</channel>
</rss>
