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

<channel>
	<title>Andrew Channels Dexter Pinion</title>
	<atom:link href="http://halfcooked.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://halfcooked.com/blog</link>
	<description>Wherein I write some stuff  that you may like to read. Or not, its up to you really.</description>
	<pubDate>Mon, 21 Jul 2008 12:18:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Shiny New Engine (v2.6)</title>
		<link>http://halfcooked.com/blog/2008/07/21/shiny-new-engine-v26/</link>
		<comments>http://halfcooked.com/blog/2008/07/21/shiny-new-engine-v26/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 11:56:43 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=67</guid>
		<description><![CDATA[I&#8217;ve just upgraded to WordPress 2.6. As I have claims to be a technologist I install and upgrade my blog software using Subversion. An upgrade simply requires issuing an &#8216;svn switch&#8216; command and then running the WordPress database upgrade via the page that presents. Usually this works like a charm. Today I had issues.
I&#8217;ve logged [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just upgraded to WordPress 2.6. As I have claims to be a technologist I install and upgrade my blog <a href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion">software using Subversion</a>. An upgrade simply requires issuing an &#8216;<span class="inlinecode">svn switch</span>&#8216; command and then running the WordPress database upgrade via the page that presents. Usually this works like a charm. Today I had issues.</p>
<p>I&#8217;ve <a href="http://wordpress.org/support/topic/190717">logged a support ticket</a> but thought I should mention it here in case anyone else sees the same issue.</p>
<p>When I tried to log in after the database upgrade the login page just kept re-directing back to itself. The main page of this blog was showing, but with an error message stating (in part) - &#8220;error in akismet.php on line 487&#8243;. </p>
<p>After a little checking around I discovered that <a href="http://akismet.com/">Akismet</a> (the WordPress spam fighting plugin) needed to be upgraded at the same time as the core WordPress code and hadn&#8217;t. The old version (2.1.4) is not compatible with the latest WordPress release and needed to be upgraded (to 2.1.6). A simple workaround was to download and install the latest version of Akismet by hand so it wasn&#8217;t a huge problem, but it would have been nice if the WordPress Subversion repository had been updated to reflect the change.</p>
<p><strong>Update</strong>: OK, it&#8217;s probably me. A fresh checkout of WordPress (release 2.6 <em>or</em> 2.5) comes complete with the correct version of the Akismet plug in. It must have a problem with my &#8216;<span class="inlinecode">svn switch</span>&#8216; that I didn&#8217;t catch.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/07/21/shiny-new-engine-v26/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Inspiration</title>
		<link>http://halfcooked.com/blog/2008/06/11/inspiration/</link>
		<comments>http://halfcooked.com/blog/2008/06/11/inspiration/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 11:03:34 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=66</guid>
		<description><![CDATA[I just read, courtesy of Simon, a great article at the Guardian covering a presentation that Adrian Holovaty gave there last week.
Strangely enough I was talking about this with a colleague this very afternoon. My thesis was that data is generated by applications but should be considered independent of them. Treat your data carefully and [...]]]></description>
			<content:encoded><![CDATA[<p>I just read, courtesy of <a href="http://www.brunningonline.net/simon/blog/">Simon</a>, a great article at the Guardian covering a <a href="http://blogs.guardian.co.uk/digitalcontent/2008/06/_future_of_journalism_adrian_h.html">presentation</a> that <a href="http://www.holovaty.com/">Adrian Holovaty</a> gave there last week.</p>
<p>Strangely enough I was talking about this with a colleague this very afternoon. My thesis was that data is generated by applications but should be considered independent of them. Treat your data carefully and you have a treasure trove of information that defines your organisation. Take an application centric view of the world and you end up with a load of blobs that are only meaningful in the context of your application code. If you can ever find a way to free your information you can find so many different ways of viewing, interpreting and analysing it.</p>
<p>In essence this is the excitement that surrounds mashups and the value that shown in sites like <a href="http://chicagocrime.org/">Chicago Crime</a> and <a href="http://www.mysociety.org/">My Society</a>. Expose the data and then marvel at what happens.</p>
<p>As I said in a (remarkably brief) presentation that I gave tonight - I&#8217;m Andy and I&#8217;m a data manager. If I can ever find a way of making a living taking data, turning it into information and making it available in new and interesting ways I guarantee that I will quit my day job in a heartbeat.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/06/11/inspiration/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OSDC 2008 Call For Papers</title>
		<link>http://halfcooked.com/blog/2008/05/23/osdc-2008-call-for-papers/</link>
		<comments>http://halfcooked.com/blog/2008/05/23/osdc-2008-call-for-papers/#comments</comments>
		<pubDate>Fri, 23 May 2008 03:37:44 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=65</guid>
		<description><![CDATA[In case you haven&#8217;t seen this elsewhere;
Call for Papers
Open Source Developers&#8217; Conference 2008
2nd - 5th December 2008, Sydney, Australia
The Open Source Developers&#8217; Conference 2008 is a conference run by open source developers, for developers and business people. It covers numerous programming languages across a range of operating systems, and related topics such as business processes, [...]]]></description>
			<content:encoded><![CDATA[<p>In case you haven&#8217;t seen this elsewhere;</p>
<p>Call for Papers<br />
Open Source Developers&#8217; Conference 2008<br />
2nd - 5th December 2008, Sydney, Australia</p>
<p>The Open Source Developers&#8217; Conference 2008 is a conference run by open source developers, for developers and business people. It covers numerous programming languages across a range of operating systems, and related topics such as business processes, licensing, and strategy. Talks vary from introductory pieces through to the deeply technical. It is a great opportunity to meet, share, and learn with like-minded individuals.</p>
<p>This year, the conference will be held in Sydney, Australia during the first week of December (2nd - 5th). If you are an Open Source maintainer, developer or user, the organising committee would encourage you to submit a talk proposal on open source tools, solutions, languages or technologies you are working with.</p>
<p>For more details and to submit your proposal(s), goto: <a href="http://osdc.com.au/2008/papers/cfp.html">http://osdc.com.au/2008/papers/cfp.html</a></p>
<p>If you have any questions or require assistance with your submission, please don&#8217;t hesitate to ask!</p>
<p>We recognise the importance of Open Source in providing a medium for collaboration between individuals, researchers, business and government. In recognition of this and ensure a high standard of presentations, we intend to peer-review all submitted papers.</p>
<p>OSDC 2008 Sydney (Australia) - Key Program Dates:</p>
<p>30 Jun - Initial proposals (short abstract) due<br />
21 Jul - Proposal acceptance<br />
15 Sep - Accepted paper submissions<br />
13 Oct - Reviews completed<br />
27 Oct - Final paper submission cutoff</p>
<p>For all information, contacts and updates, see the OSDC conference web site at <a href="http://osdc.com.au/2008/">http://osdc.com.au/2008/</a></p>
<p>Also if you are interested in sponsoring, please see: <a href="http://www.osdc.com.au/2008/sponsors/opportunities.html">http://www.osdc.com.au/2008/sponsors/opportunities.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/05/23/osdc-2008-call-for-papers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Opening a file in Python</title>
		<link>http://halfcooked.com/blog/2008/05/09/opening-a-file-in-python/</link>
		<comments>http://halfcooked.com/blog/2008/05/09/opening-a-file-in-python/#comments</comments>
		<pubDate>Fri, 09 May 2008 11:01:18 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=64</guid>
		<description><![CDATA[I&#8217;m sure I read this somewhere recently, but my scratchy memory and command of Google can&#8217;t bring it back to me.
Is there a Python idiom for accepting either a file name or a file object as a function parameter?
The closest I can get is this;

def my_function(file_name_or_object):
    try:
      [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure I read this somewhere recently, but my scratchy memory and command of Google can&#8217;t bring it back to me.</p>
<p>Is there a Python idiom for accepting either a file name or a file object as a function parameter?</p>
<p>The closest I can get is this;</p>
<pre>
def my_function(file_name_or_object):
    try:
        open(file_name_or_object)
    except TypeError:
        file = file_name_or_object
    return file
</pre>
<p>Any improvements on this are more than welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/05/09/opening-a-file-in-python/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Trouble Getting a Date</title>
		<link>http://halfcooked.com/blog/2008/05/09/trouble-getting-a-date/</link>
		<comments>http://halfcooked.com/blog/2008/05/09/trouble-getting-a-date/#comments</comments>
		<pubDate>Thu, 08 May 2008 22:04:59 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[database]]></category>

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

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=63</guid>
		<description><![CDATA[I&#8217;m having trouble with dates. This can be summed up in a couple of high level issues;
1. Date support in relational databases is insane, or at the best inconsistent.
As far as I can tell the ANSI SQL-92 standard defines date, time, interval and timestamp data types. Which doesn&#8217;t help when SQL Server only implements something [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m having trouble with dates. This can be summed up in a couple of high level issues;
<p>1. Date support in relational databases is insane, or at the best inconsistent.</p>
<p>As far as I <a href="http://www.cyberarmy.net/library/article/190">can tell</a> the ANSI SQL-92 standard defines date, time, interval and timestamp data types. Which doesn&#8217;t help when <a href="http://www.microsoft.com/sql/default.mspx">SQL Server</a> only implements something called &#8216;datetime&#8217; - at least I think so, have you tried accessing any sort of manual for a Microsoft product online? Blimey, I thought billg had embraced this web thing years ago. Oracle has the &#8216;date&#8217; data type (which is actually a time stamp) and <a href="http://dev.mysql.com/doc/refman/5.1/en/date-and-time-types.html">MySQL</a>, well they&#8217;ve gone and outdone everyone by implementing  DATETIME, DATE, TIMESTAMP, TIME, and YEAR.</p>
<p>2. The Python DB-API does not cope with date data type ambiguity well.</p>
<p>When it comes to the date question the <a href="http://www.python.org/dev/peps/pep-0249/">Python DB-API</a> states (and I quote) &#8221; &#8230; may use mx.DateTime&#8221;, which if you ask me isn&#8217;t much of a standard. This needs to change so that all DB-API modules return consistent datetime objects, not such a big issue as datetime has been part of the standard library since, what, Python 2.3?</p>
<p>Sadly even if we fix this it won&#8217;t work with <a href="http://www.sqlite.org/">Sqlite</a> as it doesn&#8217;t consistently support data typing. In my experiments regardless of what sort of date you insert into the database you get a unicode string back. Don&#8217;t believe me? Try this in Python 2.5;</p>
<pre>
>>> from sqlite3 import dbapi2
>>> db = dbapi2.connect('test_db')
>>> cursor = db.cursor()
>>> cursor.execute('create table date_test (id integer not null primary key autoincrement, sample_date DATE NOT NULL)'
>>> stmt = "INSERT INTO date_test (sample_date) VALUES (?)"
>>> cursor.execute(stmt, (1234, ))
>>> import datetime
>>> cursor.execute(stmt, (datetime.date(2008, 3, 10), ))
>>> cursor.execute(stmt, ('My name is Earl', ))
>>> db.commit()
>>> cursor.execute("SELECT * FROM date_test")
>>> results = cursor.fetchall()
>>> for item in results:
...     print item[1], type(item[1])
1234 <type 'int'>
2008-03-10 <type 'unicode'>
My name is Earl <type 'unicode'>
>>>
</pre>
<p>But note that it is fine for integers.</p>
<p>3. The people writing the Python standard library modules are on crack.
<p>Outside of the database world and within the batteries included Python standard library some modules use <a href="http://docs.python.org/lib/module-datetime.html">datetime</a>, others <a href="http://docs.python.org/lib/module-time.html">time</a> and there are even uses of <a href="http://docs.python.org/lib/module-calendar.html">calendar</a>.</p>
<p>O.K. I&#8217;ll accept that maybe the module authors aren&#8217;t on full strength crack, because the <a href="http://docs.python.org/lib/module-time.html">time</a> module just exposes underlying posix functions. But the people who wrote those were on something strong and hallucinogenic. I table the following function signatures from section <a href="http://docs.python.org/lib/module-time.html">14.2</a> of the Python Library Reference 2.5 as an example;</p>
<pre>
strftime(format[, t ])
strptime(string[, format ])
</pre>
<p>This has bitten me twice in the last twenty four hours and frankly I&#8217;m not happy.</p>
<p>I appreciate that there are historical reasons for having inconsistent function signatures but can someone please fix this in Python 3.0. All we need is a single module that can access the underlying system clock and then convert between a number of different representations of that and other epoch driven dates. How hard can it be? As far as I can tell this is not part of the <a href="http://www.python.org/dev/peps/pep-3108/">proposed standard library re-organisation</a>. I think it should be.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/05/09/trouble-getting-a-date/feed/</wfw:commentRss>
		</item>
		<item>
		<title>May Sydney Python Meeting</title>
		<link>http://halfcooked.com/blog/2008/04/30/may-sydney-python-meeting/</link>
		<comments>http://halfcooked.com/blog/2008/04/30/may-sydney-python-meeting/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 01:51:50 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=62</guid>
		<description><![CDATA[This Thursday, the 1st of May, 2008 from 6:30pm there will be a social gathering of the Sydney Python Users Group and any individuals interested in discussing Python, Web, Ruby, Perl etc.
Laptops, OLPC&#8217;s, code review, show and tell etc allowed and encouraged.
We meet in the ground floor area next to P.J. O&#8217;Briens Pub internal entrance [...]]]></description>
			<content:encoded><![CDATA[<p>This Thursday, the 1st of May, 2008 from 6:30pm there will be a social gathering of the Sydney Python Users Group and any individuals interested in discussing Python, Web, Ruby, Perl etc.</p>
<p>Laptops, OLPC&#8217;s, code review, show and tell etc allowed and encouraged.</p>
<p>We meet in the ground floor area next to P.J. O&#8217;Briens Pub internal entrance in the;</p>
<p>Grace Hotel at the corner of York and King Street in Sydney, New South Wales 2000. See you there</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/04/30/may-sydney-python-meeting/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Small Administrative Note</title>
		<link>http://halfcooked.com/blog/2008/04/27/small-administrative-note/</link>
		<comments>http://halfcooked.com/blog/2008/04/27/small-administrative-note/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 05:28:43 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/?p=61</guid>
		<description><![CDATA[As the feedback I got on the daily twitter posts was entirely negative they are gone. Sorry for that folks.
It seems that I&#8217;ll have to write more original content instead, I will see what I can do.
]]></description>
			<content:encoded><![CDATA[<p>As the feedback I got on the daily twitter posts was entirely negative they are gone. Sorry for that folks.</p>
<p>It seems that I&#8217;ll have to write more original content instead, I will see what I can do.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/04/27/small-administrative-note/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Twitter Updates for 2008-04-24</title>
		<link>http://halfcooked.com/blog/2008/04/24/twitter-updates-for-2008-04-24/</link>
		<comments>http://halfcooked.com/blog/2008/04/24/twitter-updates-for-2008-04-24/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 13:59:59 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/2008/04/24/twitter-updates-for-2008-04-24/</guid>
		<description><![CDATA[
Dodging the rain by ducking into cafes #
@alang I&#8217;m there. With bells on. #
Another skinny cappuccino? Oh alright then. #
Getting the barbecue ready? #
Preparing the barbecue to burn a load of meat and fish #

Powered by Twitter Tools.
]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>Dodging the rain by ducking into cafes <a href="http://twitter.com/andy47/statuses/795686767">#</a></li>
<li>@alang I&#8217;m there. With bells on. <a href="http://twitter.com/andy47/statuses/795687668">#</a></li>
<li>Another skinny cappuccino? Oh alright then. <a href="http://twitter.com/andy47/statuses/795687880">#</a></li>
<li>Getting the barbecue ready? <a href="http://twitter.com/andy47/statuses/796301232">#</a></li>
<li>Preparing the barbecue to burn a load of meat and fish <a href="http://twitter.com/andy47/statuses/796311445">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/04/24/twitter-updates-for-2008-04-24/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Twitter Updates for 2008-04-23</title>
		<link>http://halfcooked.com/blog/2008/04/23/twitter-updates-for-2008-04-23/</link>
		<comments>http://halfcooked.com/blog/2008/04/23/twitter-updates-for-2008-04-23/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 13:59:59 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/2008/04/23/twitter-updates-for-2008-04-23/</guid>
		<description><![CDATA[
Off to talk about Feature Driven Development #

Powered by Twitter Tools.
]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>Off to talk about Feature Driven Development <a href="http://twitter.com/andy47/statuses/794744460">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/04/23/twitter-updates-for-2008-04-23/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Twitter Updates for 2008-04-22</title>
		<link>http://halfcooked.com/blog/2008/04/22/twitter-updates-for-2008-04-22/</link>
		<comments>http://halfcooked.com/blog/2008/04/22/twitter-updates-for-2008-04-22/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 13:59:59 +0000</pubDate>
		<dc:creator>Andy Todd</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://halfcooked.com/blog/2008/04/22/twitter-updates-for-2008-04-22/</guid>
		<description><![CDATA[
Making calls, writing down random thoughts #

Powered by Twitter Tools.
]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>Making calls, writing down random thoughts <a href="http://twitter.com/andy47/statuses/793995033">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://halfcooked.com/blog/2008/04/22/twitter-updates-for-2008-04-22/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
