<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Jot Notes</title>
	<atom:link href="http://blog.myjotnotes.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.myjotnotes.com</link>
	<description>Random notes about software development</description>
	<lastBuildDate>Mon, 09 Nov 2009 22:39:25 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='blog.myjotnotes.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/0be87638dfe53bd3fd77c5480455defb?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Jot Notes</title>
		<link>http://blog.myjotnotes.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.myjotnotes.com/osd.xml" title="Jot Notes" />
	<atom:link rel='hub' href='http://blog.myjotnotes.com/?pushpress=hub'/>
		<item>
		<title>Using Google Maps Via Firefox Keyword Search</title>
		<link>http://blog.myjotnotes.com/2009/04/20/using-google-maps-via-firefox-keyword-search/</link>
		<comments>http://blog.myjotnotes.com/2009/04/20/using-google-maps-via-firefox-keyword-search/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 21:20:21 +0000</pubDate>
		<dc:creator>somejotnotes</dc:creator>
				<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://blog.myjotnotes.com/?p=140</guid>
		<description><![CDATA[The keyword search functionality in Mozilla Firefox allows you to set up shortcuts to search websites directly from the browser address bar.  This allows you to save time for frequently performed searches.  For example, on my system I have it set up so that I can do a Google search just by typing &#8220;g (search [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.myjotnotes.com&blog=3897530&post=140&subd=jotnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.mozilla.org/products/firefox/smart-keywords.html">keyword search</a> functionality in <a href="http://en.wikipedia.org/wiki/Mozilla_Firefox">Mozilla Firefox</a> allows you to set up shortcuts to search websites directly from the browser address bar.  This allows you to save time for frequently performed searches.  For example, on my system I have it set up so that I can do a Google search just by typing &#8220;g (search term)&#8221; in the browser address bar and clicking enter, without having to go to the Google website first.</p>
<p>However, if you want to set up a keyword search for Google Maps, then the usual method of setting up the keyword search bookmark doesn&#8217;t work correctly.  If you try to set up a keyword search for Google Maps by right clicking in the Google Maps search bar and selecting &#8220;Add a Keyword for this Search&#8221;, the resulting bookmark has the following URL:</p>
<p>http://maps.google.ca/maps?f=q&amp;source=s_q&amp;output=js&amp;hl=en&amp;geocode=&amp;q=%s&amp;mrt=all</p>
<p>This URL will not work and returns a blank page. However, if you edit the bookmark manually and change it to the following URL, then your keyword search will return a useful result:</p>
<p>http://maps.google.ca/maps?f=q&amp;hl=en&amp;iwloc=addr&amp;q=%s</p>
<p>Thanks to Kareeser from the <a href="http://ubuntuforums.org">Ubuntu forums</a> for posting this workaround (see <a href="http://ubuntuforums.org/showthread.php?t=1070111">his original post</a>).</p>
<p><strong>Additional references:</strong></p>
<ul>
<li><a href="http://www.mozilla.org/products/firefox/smart-keywords.html">Keyword Searches (mozilla.org)</a></li>
<li><a href="http://ubuntuforums.org/showthread.php?t=1070111">Firefox keyword search not working on Google Maps? (ubuntuforums.org)</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jotnotes.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jotnotes.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jotnotes.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jotnotes.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jotnotes.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jotnotes.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jotnotes.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jotnotes.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jotnotes.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jotnotes.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.myjotnotes.com&blog=3897530&post=140&subd=jotnotes&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.myjotnotes.com/2009/04/20/using-google-maps-via-firefox-keyword-search/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">somejotnotes</media:title>
		</media:content>
	</item>
		<item>
		<title>OpenOffice Error: &#8220;javaldx: Could not find a Java Runtime Environment!&#8221;</title>
		<link>http://blog.myjotnotes.com/2009/03/11/openoffice-error-javaldx-could-not-find-a-java-runtime-environment/</link>
		<comments>http://blog.myjotnotes.com/2009/03/11/openoffice-error-javaldx-could-not-find-a-java-runtime-environment/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 06:00:41 +0000</pubDate>
		<dc:creator>somejotnotes</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenOffice]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.myjotnotes.com/?p=122</guid>
		<description><![CDATA[If you are running OpenOffice from the command line in Ubuntu, you may see the following error:
javaldx: Could not find a Java Runtime Environment!
This error can occur even if you have a valid Java Runtime Environment (JRE) on your machine.
The reason why that happens is that even though OpenOffice is installed by default in Ubuntu, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.myjotnotes.com&blog=3897530&post=122&subd=jotnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>If you are running OpenOffice from the command line in Ubuntu, you may see the following error:</p>
<blockquote><p>javaldx: Could not find a Java Runtime Environment!</p></blockquote>
<p>This error can occur even if you have a valid Java Runtime Environment (JRE) on your machine.</p>
<p>The reason why that happens is that even though OpenOffice is installed by default in Ubuntu, the package that enables OpenOffice to use the JRE is not installed by default, due to space constraints.  From the <a href="http://www.ubuntu.com/getubuntu/releasenotes/804">Ubuntu 8.04 Release Notes</a>:</p>
<blockquote><p>For reasons of disk space, the database and equation editor 	components of OpenOffice.org, as well as Java integration support, are 	not included on the installation CDs. To get the full OpenOffice.org 	suite after install, you can select &#8220;OpenOffice.org Office Suite&#8221; from 	the <strong>Applications -&gt; Add/Remove</strong> menu, or install the openoffice.org metapackage using the package manager.</p></blockquote>
<p>The way to get OpenOffice to see the JRE on your machine is to install the <em>openoffice.org-java-common</em> package.  Alternately, you could install the <em>openoffice.org</em> metapackage (as described in the release notes above), which will install the <em>openoffice.org-java-common </em>package along with some other components of OpenOffice that were left out of the default install as well.</p>
<p>This confusing behaviour exists in Hardy and Intrepid.  According to <a href="https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/249352/comments/21">this Launchpad comment</a>, in Jaunty the &#8220;javaldx: Could not find a Java Runtime Environment!&#8221; error message will be changed to something more helpful.</p>
<p><strong>Additional references</strong>:</p>
<ul>
<li><a href="http://www.ubuntu.com/getubuntu/releasenotes/804">Ubuntu 8.04 Release Notes</a></li>
<li><a href="http://packages.ubuntu.com/intrepid/openoffice.org"><em>openoffice.org</em> (packages.ubuntu.com)</a></li>
<li><a href="http://packages.ubuntu.com/hardy/openoffice.org-java-common"><em>openoffice.org-java-common</em> (packages.ubuntu.com)</a></li>
<li><a href="https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/249352">Launchpad Bug #249352: &#8220;openoffice javaldx could not find a java runtime environment&#8221;</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jotnotes.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jotnotes.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jotnotes.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jotnotes.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jotnotes.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jotnotes.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jotnotes.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jotnotes.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jotnotes.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jotnotes.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.myjotnotes.com&blog=3897530&post=122&subd=jotnotes&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.myjotnotes.com/2009/03/11/openoffice-error-javaldx-could-not-find-a-java-runtime-environment/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">somejotnotes</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting Up the Windows Key in Ubuntu</title>
		<link>http://blog.myjotnotes.com/2008/12/21/setting-up-the-windows-key-in-ubuntu/</link>
		<comments>http://blog.myjotnotes.com/2008/12/21/setting-up-the-windows-key-in-ubuntu/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 21:21:05 +0000</pubDate>
		<dc:creator>somejotnotes</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.myjotnotes.com/?p=109</guid>
		<description><![CDATA[One of the disconcerting things about switching from Windows to Ubuntu is that Ubuntu doesn&#8217;t treat the Windows key the same way Windows does, at least not by default.  This article will show you how to set up your Ubuntu system so that it treats the Windows key in a way that&#8217;s similar to how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.myjotnotes.com&blog=3897530&post=109&subd=jotnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>One of the disconcerting things about switching from Windows to Ubuntu is that Ubuntu doesn&#8217;t treat the Windows key the same way Windows does, at least not by default.  This article will show you how to set up your Ubuntu system so that it treats the Windows key in a way that&#8217;s similar to how it is used in Windows.</p>
<p>In Windows, the Windows key on your keyboard is what is known as a &#8220;modifier key&#8221;, meaning when you press the key and hold it down, it modifies the meaning of any other keys you press.  For example, in Windows, if you press &#8220;r&#8221; then you get the letter &#8220;r&#8221; on your screen, but if you press and hold down the Windows key and then press the &#8220;r&#8221; key, it launches the Run dialog box.</p>
<p>By default, the Windows key is not treated as a modifier key in Ubuntu.  It is just a regular key that does not modify anything else, and is therefore not nearly as useful as it could be.</p>
<p>In order to set up your Windows key to be a modifier key in Ubuntu, you need to do the following:</p>
<ol>
<li>Go to <em>System &gt;&gt; Preferences &gt;&gt; Keyboard</em>.</li>
<li>Go to the <em>Layouts</em> tab.</li>
<li>You will see a button marked<em> Layout Options</em> (Hardy and earlier) or <em>Other Options</em> (Intrepid).  Click on this button.  This will bring up a dialog box.</li>
<li>In the list of options, there is an item marked <em>Alt/Win key behaviour</em>.  Change the value from &#8220;Default&#8221; to &#8220;Super is mapped to the Win-keys&#8221;.  This will allow you to use the Windows key as a modifier key.</li>
</ol>
<p>Now that the Windows key is a modifier key, you can go into <em>System &gt;&gt; Preferences &gt;&gt; Keyboard Shortcuts</em> and use it to create some shortcuts.  In the <em>Keyboard Shortcuts</em> panel the Windows key will show up as &#8220;Mod4&#8243;.</p>
<p><strong>Additional references:</strong></p>
<ul>
<li><a href="http://www.uttara.ca/blog/ubuntu/use-winkey-in-ubuntu">Use WinKey in Ubuntu</a></li>
<li><a href="http://en.wikipedia.org/wiki/Modifier_key">Modifier key (Wikipedia article)</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jotnotes.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jotnotes.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jotnotes.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jotnotes.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jotnotes.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jotnotes.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jotnotes.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jotnotes.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jotnotes.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jotnotes.wordpress.com/109/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.myjotnotes.com&blog=3897530&post=109&subd=jotnotes&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.myjotnotes.com/2008/12/21/setting-up-the-windows-key-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">somejotnotes</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Transfer a Domain from GoDaddy to NearlyFreeSpeech.NET</title>
		<link>http://blog.myjotnotes.com/2008/10/05/how-to-transfer-a-domain-from-godaddy-to-nearlyfreespeechnet/</link>
		<comments>http://blog.myjotnotes.com/2008/10/05/how-to-transfer-a-domain-from-godaddy-to-nearlyfreespeechnet/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 18:45:17 +0000</pubDate>
		<dc:creator>somejotnotes</dc:creator>
				<category><![CDATA[Domain Registration]]></category>

		<guid isPermaLink="false">http://jotnotes.wordpress.com/?p=40</guid>
		<description><![CDATA[I&#8217;ve had my domains registered with GoDaddy for years.  With the exception of their unceasing self-promotion, I haven&#8217;t have any problems with GoDaddy.  I contacted Customer Service twice, and both times the customer service representative was courteous and helpful.
However, after hearing too many horror stories about GoDaddy losing their customers&#8217; domains, I decided [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.myjotnotes.com&blog=3897530&post=40&subd=jotnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had my domains registered with GoDaddy for years.  With the exception of their unceasing self-promotion, I haven&#8217;t have any problems with GoDaddy.  I contacted Customer Service twice, and both times the customer service representative was courteous and helpful.</p>
<p>However, after hearing too many <a href="http://nodaddy.com/">horror stories</a> about GoDaddy losing their customers&#8217; domains, I decided that my domains were too valuable for me to even take a chance, no matter how remote, of losing due to domain registrar incompetence. I had to find a new registrar, one where I could be 100% certain that I wouldn&#8217;t get screwed.</p>
<p>After a bit of research, I decided to go with <a href="https://www.nearlyfreespeech.net/">NearlyFreeSpeech.NET</a>.</p>
<p>Unfortunately, the process of transferring the domains from one registrar to another is not the most straightforward or intuitive process.  So here&#8217;s the notes I made to myself as I was going through the process of transferring my domains:</p>
<ol>
<li>Switch DNS service from GoDaddy to NFSN. This is done ahead of time in order to minimize the chance of downtime during the transfer.</li>
<li>Remove DomainsByProxy service (if currently enabled on your domain) using the GoDaddy DomainsByProxy control panel, and enter in your contact information (including your email address) for the whois record.  You need to be able to receive emails from GoDaddy during the transfer process, and if the emails are being sent to the DomainsByProxy email address, you probably won&#8217;t be receiving them.</li>
<li>Unlock the domain using the GoDaddy Domain Control Center (DCC).</li>
<li>Request authorization code by clicking on &#8220;Authorization Code: Send by Email&#8221;.</li>
<li>Go to &#8220;Domains &gt;&gt; Transfer an Existing Domain&#8221; in the NFSN members control panel, and enter in the authorization code you received from GoDaddy. Enter in your contact info (or choose the RespectMyPrivacy option), agree to the Terms and Conditions, and confirm.</li>
<li>You will receive an email (sent to the email address you entered in step #2) from <strong>do_not_order@myorderbox.com</strong> that reads: <em>NearlyFreeSpeech.NET [Under Registrar: Public Domain Registry] has received a request from (your name) [(your email)] on (date) for Public Domain Registry to become the new registrar of record, for (your domain).</em></li>
<li>Click on the &#8220;Approve Transfer Link&#8221; in that email.</li>
<li>Go back to GoDaddy DCC and go to &#8220;Domains &gt;&gt; Pending Transfers&#8221;.</li>
<li>Select your domain and click Accept/Decline.</li>
<li>Confirm your acceptance.</li>
<li>You will receive an email from <strong>support@godaddy.com</strong> that reads: <em>This is to confirm that the following domain name(s) has been successfully transferred away from GoDaddy.com, Inc. to Direct Information Pvt. Ltd. d/b/a DirectI.com: (your domain).</em> &#8220;Direct Information Pvt. Ltd. d/b/a DirectI.com&#8221; is the company that NFSN purchases their domains from.<em><br />
</em></li>
</ol>
<p><strong>Additional references:</strong></p>
<ul>
<li><a href="http://www.hm2k.com/posts/transfering-domains-from-godaddycom-to-tucows-opensrs">Transfering domains from Godaddy.com to TuCows OpenSRS</a></li>
<li><a href="http://www.acstucson.info/transfer+domain+from+godaddy">How to transfer a domain away from GoDaddy.com (contains pictures of each step)</a></li>
<li><a href="http://robsanheim.com/2008/03/29/how-to-move-your-domains-off-godaddy/">How to move your domains off GoDaddy</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jotnotes.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jotnotes.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jotnotes.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jotnotes.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jotnotes.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jotnotes.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jotnotes.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jotnotes.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jotnotes.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jotnotes.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.myjotnotes.com&blog=3897530&post=40&subd=jotnotes&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.myjotnotes.com/2008/10/05/how-to-transfer-a-domain-from-godaddy-to-nearlyfreespeechnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">somejotnotes</media:title>
		</media:content>
	</item>
		<item>
		<title>Bizarre Python File Error</title>
		<link>http://blog.myjotnotes.com/2008/07/08/bizarre-python-file-error/</link>
		<comments>http://blog.myjotnotes.com/2008/07/08/bizarre-python-file-error/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 20:39:44 +0000</pubDate>
		<dc:creator>somejotnotes</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://jotnotes.wordpress.com/?p=32</guid>
		<description><![CDATA[Update (December 21, 2008): I tried running the code in this blog post today, and I was unable to reproduce this bug using Python 2.5.2.  Therefore, I don&#8217;t know how useful the information in this post is.  I have decided to leave this post up in the off chance that it might help [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.myjotnotes.com&blog=3897530&post=32&subd=jotnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><span style="background-color:#FFFBCC;">Update (December 21, 2008): I tried running the code in this blog post today, and I was unable to reproduce this bug using Python 2.5.2.  Therefore, I don&#8217;t know how useful the information in this post is.  I have decided to leave this post up in the off chance that it might help somebody anyway.</span></p>
<p>I spent a couple of hours today trying to figure out this bizarre (and unhelpful) Python error message: <strong>IOError: [Errno 0] Error</strong></p>
<p>Here is some simple code which reproduces the error:</p>
<pre class="brush: python;">
fp = open(&quot;test.txt&quot;, &quot;r+&quot;)

while True:
    line = fp.readline()
    if not line:
        break

fp.write(&quot;some new text&quot;)
</pre>
<p>It seems that once readline reaches the end of the file, you can no longer write to that file.</p>
<p>Note that you can get the same error if you try to read and write a config file using the ConfigParser module:</p>
<pre class="brush: python;">
import ConfigParser

#read config file
config = ConfigParser.ConfigParser()
configfile = open(&quot;temp.config&quot;, &quot;r+&quot;)
config.readfp(configfile)

#try to write to same file
config.set(&quot;Main&quot;, &quot;tempDir&quot;, &quot;C:\\temp&quot;)
config.write(configfile)
configfile.close()
</pre>
<p>You can get around this error by closing the file after calling the readfp method, and then reopening the file if you want to write to it.</p>
<pre class="brush: python;">
import ConfigParser

#read config file
config = ConfigParser.ConfigParser()
configfile = open(&quot;temp.config&quot;, &quot;r&quot;)
config.readfp(configfile)
configfile.close()

#write config file
config.set(&quot;Main&quot;, &quot;tempDir&quot;, &quot;C:\\temp&quot;)
configfile = open(&quot;temp.config&quot;, &quot;w&quot;)
config.write(configfile)
configfile.close()
</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jotnotes.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jotnotes.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jotnotes.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jotnotes.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jotnotes.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jotnotes.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jotnotes.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jotnotes.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jotnotes.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jotnotes.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jotnotes.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jotnotes.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.myjotnotes.com&blog=3897530&post=32&subd=jotnotes&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.myjotnotes.com/2008/07/08/bizarre-python-file-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">somejotnotes</media:title>
		</media:content>
	</item>
	</channel>
</rss>