<?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>delx &#187; python</title>
	<atom:link href="http://delx.net.au/blog/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://delx.net.au/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 01 Jul 2010 11:59:00 +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>Mercurial remote repository names</title>
		<link>http://delx.net.au/blog/2009/02/mercurial-remote-repository-names/</link>
		<comments>http://delx.net.au/blog/2009/02/mercurial-remote-repository-names/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 08:39:09 +0000</pubDate>
		<dc:creator>delx</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://delx.net.au/blog/?p=120</guid>
		<description><![CDATA[I just discovered that Mercurial supports named shortcuts for repositories. This is great for when you want to be pushing and pulling from several repository URLs without typing their full locations. I was aware you could set a default and default-push repository in .hg/hgrc, in fact whenever you clone a repository a default remote path [...]]]></description>
			<content:encoded><![CDATA[<p>I just discovered that Mercurial supports named shortcuts for repositories. This is great for when you want to be pushing and pulling from several repository URLs without typing their full locations.</p>
<p><span id="more-120"></span></p>
<p>I was aware you could set a default and default-push repository in <tt>.hg/hgrc</tt>, in fact whenever you clone a repository a default remote path is created for you.</p>
<p>You can actually put arbitrary names in there. For example, I have a repository &#8220;chatbots&#8221; that I cloned from Katie&#8217;s repository: <tt>http://katharos.id.au/hg/chatbots"</tt>. I want to be able to push and pull changes from my repository as well as pull from her&#8217;s without typing the full path out at any time.</p>
<p><code><br />
[paths]<br />
default = ssh://hg@delx.net.au/chatbots<br />
katie = http://katharos.id.au/hg/chatbots<br />
</code></p>
<p>The above snippet goes in the repositories <tt>.hg/hgrc</tt>, and I can now run commands like this:<br />
<code><br />
$ hg pull katie<br />
$ hg push<br />
</code><br />
This pulls any new changes in from Katie&#8217;s repository and pushes them to the default, mine.</p>
]]></content:encoded>
			<wfw:commentRss>http://delx.net.au/blog/2009/02/mercurial-remote-repository-names/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OfflineIMAP IDLE support</title>
		<link>http://delx.net.au/blog/2009/02/offlineimap-idle-support/</link>
		<comments>http://delx.net.au/blog/2009/02/offlineimap-idle-support/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 05:36:45 +0000</pubDate>
		<dc:creator>delx</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[offlineimap]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://delx.net.au/blog/?p=112</guid>
		<description><![CDATA[I&#8217;ve implemented IDLE support into OfflineIMAP. For the last day or two I&#8217;ve been using this and I&#8217;m loving the instant email notifications. I emailed the original author and plan to work with him to get the code included into an official OfflineIMAP release. There&#8217;s a Git repository with the patch included here: http://delx.net.au/git/offlineimap I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve implemented IDLE support into OfflineIMAP. For the last day or two I&#8217;ve been using this and I&#8217;m loving the instant email notifications. I emailed the original author and plan to work with him to get the code included into an official OfflineIMAP release.</p>
<p><span id="more-112"></span></p>
<p>There&#8217;s a Git repository with the patch included here:<br />
<a href="http://delx.net.au/git/offlineimap">http://delx.net.au/git/offlineimap</a></p>
<p>I followed the plan John Goerzen suggested in <a href="http://software.complete.org/software/issues/show/18">offlineimap ticket 18</a>. Here&#8217;s an overview of the changes.</p>
<ul>
<li>Use <a href="http://www.cs.usyd.edu.au/~piers/python/imaplib2">imaplib2</a> as it implements the IDLE command and a few other nice things. This is written by Piers Lauder, the author Python&#8217;s standard imaplib.</li>
<li>Some small changes to the OfflineIMAP code were needed for it to work with imaplib2.</li>
<li>Added a config parameter &#8216;idlefolders&#8217; to specify a list of mailboxes to monitor. This parameter forces holdconnectionopen, keepalive and maxconnections to be sane values.</li>
<li>Hijack the keepalive thread. Use the available connections for IDLE, one on each of the given mailboxes. If there are leftover connections we send NOOP as before.</li>
<li>Added documentation to the sample offlineimap.conf</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://delx.net.au/blog/2009/02/offlineimap-idle-support/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
