<?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>Clackwell's Weblog</title>
	<atom:link href="http://toodifficult.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://toodifficult.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 17 Jan 2012 20:57:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='toodifficult.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Clackwell's Weblog</title>
		<link>http://toodifficult.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://toodifficult.wordpress.com/osd.xml" title="Clackwell&#039;s Weblog" />
	<atom:link rel='hub' href='http://toodifficult.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Ich verstehe nicht&#8230;</title>
		<link>http://toodifficult.wordpress.com/2011/11/28/ich-verstehe-nicht/</link>
		<comments>http://toodifficult.wordpress.com/2011/11/28/ich-verstehe-nicht/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 20:31:09 +0000</pubDate>
		<dc:creator>clackwell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toodifficult.wordpress.com/?p=166</guid>
		<description><![CDATA[&#8230;wie Herr Johann Lafer, Johannes B. Kerner und diverse andere für Bild werben können. Sind Allgemeinbildung, Meinungsdiversizität und seriöser Journalismus wirklich so unwichtig? Ist es die Moral, &#8220;wenn die Kohle stimmt werd&#8217; auch ich zur Medienhure&#8221;? &#8230;wie Sterne- und TV- und Promi-Köche wie Alfons Schuhbeck für Convenience Lebensmittel werben können. Ist es egal dass damit [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=166&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8230;wie Herr Johann Lafer, Johannes B. Kerner und diverse andere für Bild werben können. Sind Allgemeinbildung, Meinungsdiversizität und seriöser Journalismus wirklich so unwichtig? Ist es die Moral, &#8220;wenn die Kohle stimmt werd&#8217; auch ich zur Medienhure&#8221;?</p>
<p>&#8230;wie Sterne- und TV- und Promi-Köche wie Alfons Schuhbeck für Convenience Lebensmittel werben können. Ist es egal dass damit Leute geschmacklich verdummt und gleichgeschaltet werden? Meinen Sie, Herr Schuhbeck, vielleicht, das einfache Volk wird sich Ihre Gourmetgenüsse eh nie leisten können oder wollen, so daß man diesen bitteschön auch Convenience Food zumuten kann? Oder wieso machen Sie sich &#8211; offensichtlich wider besseren Wissens &#8211; zur Werbe-Hure der Lebensmittelindustrie?</p>
<p>&#8230;wie Frau Katharina Saalfrank Ihre Rolle als Super Nanny vor ihren vier Kindern rechtfertigen will. &#8220;Egal wie peinlich und erniedrigend für die Teilnehmer der Sendung, Hauptsache die Kohle stimmt&#8221;?</p>
<p>Wer bleibt standhaft wenn der Dollar lockt?</p>
<p>Gibt es Grenzen für Erniedrigung, Bloßstellung und Abzocke von Menschen aus geistigen Unterschichten? Haben wir uns irgendwann genug an Leid, Dummheit, Naivität und Armut von Hartz-4 Empfängern ergötzt?</p>
<p>Sind wir uns alle selbst am nächsten?</p>
<p>Vielleicht kannst Du man mal wieder was für andere tun? Oder für &#8220;die anderen&#8221;, zum Beispiel in der Firma mal den Geschirrspüler befüllen oder ausräumen, den Tisch abwischen, die Spüle säubern, den Lappen ausspülen? Oder einfach mal keine großen Geschenke zu Weihnachten und stattdessen mal Geld spenden statt Geld zu scheffeln?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toodifficult.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toodifficult.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toodifficult.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toodifficult.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toodifficult.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toodifficult.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toodifficult.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toodifficult.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toodifficult.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toodifficult.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toodifficult.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toodifficult.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toodifficult.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toodifficult.wordpress.com/166/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=166&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toodifficult.wordpress.com/2011/11/28/ich-verstehe-nicht/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9e7a517e29f221706bbd4ca4d501ddbc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">clackwell</media:title>
		</media:content>
	</item>
		<item>
		<title>Have your own context menu for files &amp; folders</title>
		<link>http://toodifficult.wordpress.com/2011/10/18/have-your-own-context-menu-for-files-folders/</link>
		<comments>http://toodifficult.wordpress.com/2011/10/18/have-your-own-context-menu-for-files-folders/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 13:04:44 +0000</pubDate>
		<dc:creator>clackwell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toodifficult.wordpress.com/?p=162</guid>
		<description><![CDATA[MyExplorerContextMenu introduces a custom context menu for files and folders in Windows Explorer that gives direct access to the functions that you need to perform regularly on files and folders (and without requiring installation): https://sourceforge.net/projects/mycontextmenu/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=162&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>MyExplorerContextMenu introduces a custom context menu for files and folders in Windows Explorer that gives direct access to the functions that you need to perform regularly on files and folders (and without requiring installation):</p>
<p><a href="https://sourceforge.net/projects/mycontextmenu/" title="MyExplorerContextMenu" target="_blank">https://sourceforge.net/projects/mycontextmenu/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toodifficult.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toodifficult.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toodifficult.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toodifficult.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toodifficult.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toodifficult.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toodifficult.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toodifficult.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toodifficult.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toodifficult.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toodifficult.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toodifficult.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toodifficult.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toodifficult.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=162&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toodifficult.wordpress.com/2011/10/18/have-your-own-context-menu-for-files-folders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9e7a517e29f221706bbd4ca4d501ddbc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">clackwell</media:title>
		</media:content>
	</item>
		<item>
		<title>Python 2.x: Encodings for sys.stdout/stderr() and os module</title>
		<link>http://toodifficult.wordpress.com/2011/08/30/python-2-x-encodings-for-sys-stdoutstderr-and-os-module/</link>
		<comments>http://toodifficult.wordpress.com/2011/08/30/python-2-x-encodings-for-sys-stdoutstderr-and-os-module/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 20:07:33 +0000</pubDate>
		<dc:creator>clackwell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toodifficult.wordpress.com/?p=156</guid>
		<description><![CDATA[os module With Python 2.x on Windows the functions of the os module seem to require the encoding specified in os.getfilesystemencoding() to output/use German umlauts (äÄüÜöÖ) and &#8220;ess-zett&#8221; (ß) properly: Probably/typically wrong: import os os.system("echo ä") Output: &#8220; 0 Probably/typically correct: import os, sys encoded_in_cp850 = "echo ä" encoded_in_unicode = encoded_in_cp850.decode("cp850") encoded_in_fs_encoding = encoded_in_unicode.encode(sys.getfilesystemencoding() os.system(encoded_in_fs_encoding) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=156&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>os module</strong></p>
<p>With Python 2.x on Windows the functions of the os module seem to require the encoding specified in os.getfilesystemencoding() to output/use German umlauts (äÄüÜöÖ) and &#8220;ess-zett&#8221; (ß) properly:</p>
<p>Probably/typically wrong:</p>
<p><code><br />
import os<br />
os.system("echo ä")<br />
</code></p>
<p>Output:</p>
<blockquote><p>
&#8220;<br />
0
</p></blockquote>
<p>Probably/typically correct:</p>
<p><code><br />
import os, sys<br />
encoded_in_cp850 = "echo ä"<br />
encoded_in_unicode = encoded_in_cp850.decode("cp850")<br />
encoded_in_fs_encoding = encoded_in_unicode.encode(sys.getfilesystemencoding()<br />
os.system(encoded_in_fs_encoding)<br />
</code></p>
<p>(&#8220;cp850&#8243; is the codepage on my German Windows 7.)</p>
<p>(In short: <code>os.system("echo ä".decode("cp850").encode(sys.getfilesystemencoding()))</code>)</p>
<p>Output:</p>
<blockquote><p>
ä<br />
0
</p></blockquote>
<p>The above probably applies to os.getcwd() and others as well.</p>
<p><strong>sys.stdout/stderr</strong></p>
<p>And with Python 2.x on Windows the encoding used by sys.stdout and sys.stderr are available in the &#8220;encoding&#8221; property of sys.stdout and sys.stderr:</p>
<p>Possibly wrong when the source of &#8220;s&#8221; uses a different encoding than sys.stdout:</p>
<p><code><br />
sys.stdout.write(s)<br />
</code></p>
<p>Probably right when the source of &#8220;s&#8221; uses a different encoding than sys.stdout:</p>
<p><code><br />
s_unicode = s.decode("")<br />
s_stdout_encoding = s_unicode.encode(sys.stdout.encoding)<br />
sys.stdout.write(s_stdout_encoding)<br />
</code></p>
<p>( must be the encoding of &#8220;s&#8221;.)</p>
<p>(In short: <code>sys.stdout.write(s.decode("").encode(sys.stdout.encoding))</code>)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toodifficult.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toodifficult.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toodifficult.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toodifficult.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toodifficult.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toodifficult.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toodifficult.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toodifficult.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toodifficult.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toodifficult.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toodifficult.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toodifficult.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toodifficult.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toodifficult.wordpress.com/156/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=156&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toodifficult.wordpress.com/2011/08/30/python-2-x-encodings-for-sys-stdoutstderr-and-os-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9e7a517e29f221706bbd4ca4d501ddbc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">clackwell</media:title>
		</media:content>
	</item>
		<item>
		<title>Guter Service</title>
		<link>http://toodifficult.wordpress.com/2011/02/28/guter-service/</link>
		<comments>http://toodifficult.wordpress.com/2011/02/28/guter-service/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 08:01:22 +0000</pubDate>
		<dc:creator>clackwell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toodifficult.wordpress.com/?p=148</guid>
		<description><![CDATA[Der Gast &#38; Aufmerksamkeit Hat der Gast weitere Wünsche? Augenkontakt und Nähe des Gastes suchen; gegebenenfalls unaufdringlich ansprechen. Sind Tassen, Becher, Gläser des Gastes leer? Möchte er noch etwas bestellen? Ansprechen. Möchte der Kunde zahlen? Rechnung bringen und zahlen lassen. Falls Rechnung beim Kunden abgelegt wird, Kunden nach kurzer Zeit wieder ansprechen, da er gegebenenfalls [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=148&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Der Gast &amp; Aufmerksamkeit</strong></p>
<ul>
<li>Hat der Gast weitere Wünsche? Augenkontakt und Nähe des Gastes suchen; gegebenenfalls unaufdringlich ansprechen.</li>
<li>Sind Tassen, Becher, Gläser des Gastes leer? Möchte er noch etwas bestellen? Ansprechen.</li>
<li>Möchte der Kunde zahlen? Rechnung bringen und zahlen lassen. Falls Rechnung beim Kunden abgelegt wird, Kunden nach kurzer Zeit wieder ansprechen, da er gegebenenfalls Geld wechseln möchte.</li>
</ul>
<p><strong>Nachbestellungen</strong></p>
<ul>
<li>Nachbestellung muss vollständig sein. (Beispiel: Bei Erstbestellung eines Milchkaffee werden Milchkaffee + Glas Wasser gereicht, dann muss die Nachbestellung eines Milchkaffee auch ein Glas Wasser enthalten.)</li>
</ul>
<p><strong>Sauberkeit &amp; Ordnung</strong></p>
<ul>
<li>Leere Tische zügig abräumen.</li>
<li>Leere Tische säubern.</li>
<li>Boden säubern.</li>
<li>Umgeräumte Stühle und Tische zurück räumen.</li>
</ul>
<p><strong>Für Gäste zu beachten:</strong></p>
<p>Guter Service muss sich im Trinkgeld (ca. 10% des Rechnungsbetrags) widerspiegeln. Im Hamburger Raum scheint dies nicht der Fall zu sein, da ich dort selten guten Service erlebe.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toodifficult.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toodifficult.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toodifficult.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toodifficult.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toodifficult.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toodifficult.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toodifficult.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toodifficult.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toodifficult.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toodifficult.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toodifficult.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toodifficult.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toodifficult.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toodifficult.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=148&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toodifficult.wordpress.com/2011/02/28/guter-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9e7a517e29f221706bbd4ca4d501ddbc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">clackwell</media:title>
		</media:content>
	</item>
		<item>
		<title>Mark phishing links clearly in Thunderbird/Firefox/Chrome</title>
		<link>http://toodifficult.wordpress.com/2010/12/25/mark-phishing-links-clearly-in-thunderbirdfirefoxchrome/</link>
		<comments>http://toodifficult.wordpress.com/2010/12/25/mark-phishing-links-clearly-in-thunderbirdfirefoxchrome/#comments</comments>
		<pubDate>Sat, 25 Dec 2010 13:13:48 +0000</pubDate>
		<dc:creator>clackwell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[improvement feature security novice]]></category>

		<guid isPermaLink="false">http://toodifficult.wordpress.com/?p=145</guid>
		<description><![CDATA[Again I got a phishing email with a link called &#8220;http://www.foo.com/&#8230;&#8221; but which in reality points to http://www.bar.com. Wouldn&#8217;t it make sense to mark any such link visually so that there is no mistake about its bogus nature? That way even the novice computer user would be immediately aware of it.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=145&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Again I got a phishing email with a link called &#8220;http://www.foo.com/&#8230;&#8221; but which in reality points to http://www.bar.com. Wouldn&#8217;t it make sense to mark any such link visually so that there is no mistake about its bogus nature? That way even the novice computer user would be immediately aware of it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toodifficult.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toodifficult.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toodifficult.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toodifficult.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toodifficult.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toodifficult.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toodifficult.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toodifficult.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toodifficult.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toodifficult.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toodifficult.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toodifficult.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toodifficult.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toodifficult.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=145&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toodifficult.wordpress.com/2010/12/25/mark-phishing-links-clearly-in-thunderbirdfirefoxchrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9e7a517e29f221706bbd4ca4d501ddbc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">clackwell</media:title>
		</media:content>
	</item>
		<item>
		<title>Too Difficult &#8211; Warning user about removing Python 2.6 in Kubuntu 9.04</title>
		<link>http://toodifficult.wordpress.com/2009/07/23/too-difficult-warning-user-about-removing-python-2-6-in-kubuntu-9-04/</link>
		<comments>http://toodifficult.wordpress.com/2009/07/23/too-difficult-warning-user-about-removing-python-2-6-in-kubuntu-9-04/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 21:59:20 +0000</pubDate>
		<dc:creator>clackwell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[kubuntu 9.04 jaunty python2.5 python 2.6 remove]]></category>

		<guid isPermaLink="false">http://toodifficult.wordpress.com/2009/07/23/too-difficult-warning-user-about-removing-python-2-6-in-kubuntu-9-04/</guid>
		<description><![CDATA[It seemed like a good idea to remove Python 2.6 to get over the Python 2.5 installation error messages &#8211; except so many packages in Kubuntu 9.04 depend on Python 2.6 that removing it automatically removes what feels like half the operating system. Almost as good as rm -Rf /. After removal I couldn&#8217;t connect [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=142&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It seemed like a good idea to remove Python 2.6 to get over the Python 2.5 installation error messages &#8211; except so many packages in Kubuntu 9.04 depend on Python 2.6 that removing it automatically removes what feels like half the operating system. Almost as good as rm -Rf /. After removal I couldn&#8217;t connect to the box anymore. So I&#8217;ll apply the Windows strategy of reinstalling the complete OS now to fix this horrible mess. Thanks guys. Next time give me a warning about what you donuts consider removing a &#8220;core&#8221; package, idiots. :-/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toodifficult.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toodifficult.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toodifficult.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toodifficult.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toodifficult.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toodifficult.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toodifficult.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toodifficult.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toodifficult.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toodifficult.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toodifficult.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toodifficult.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toodifficult.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toodifficult.wordpress.com/142/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=142&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toodifficult.wordpress.com/2009/07/23/too-difficult-warning-user-about-removing-python-2-6-in-kubuntu-9-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9e7a517e29f221706bbd4ca4d501ddbc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">clackwell</media:title>
		</media:content>
	</item>
		<item>
		<title>Too Difficult &#8211; Java GUI Programming</title>
		<link>http://toodifficult.wordpress.com/2009/05/22/too-difficult-java-gui-programming/</link>
		<comments>http://toodifficult.wordpress.com/2009/05/22/too-difficult-java-gui-programming/#comments</comments>
		<pubDate>Fri, 22 May 2009 20:22:00 +0000</pubDate>
		<dc:creator>clackwell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toodifficult.wordpress.com/?p=136</guid>
		<description><![CDATA[This shows how to get a spreadsheet like component which can add a row once you tab beyond the end of the current data in the component. While it is very nice that it is possible to add this at all, I wonder if any of the SWT, JFaces, Nebula developers ever stop to think [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=136&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://dev.eclipse.org/newslists/news.eclipse.technology.nebula/msg01311.html">This</a> shows how to get a spreadsheet like component which can add a row once you tab beyond the end of the current data in the component.</p>
<p>While it is very nice that it is possible to add this at all, I wonder if any of the SWT, JFaces, Nebula developers ever stop to think whether it really should take ~200 lines of code to get such a feature. Personally I would have expected this feature to be included already, ready to be enabled with a single line of code.</p>
<p>In Python they&#8217;d call such a case &#8220;no batteries included&#8221;, I guess.</p>
<p>And it&#8217;s far from the (alleged?) Java promise &#8220;make simple things easy and the complicated possible&#8221;, because here the simple things are complicated. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toodifficult.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toodifficult.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toodifficult.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toodifficult.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toodifficult.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toodifficult.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toodifficult.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toodifficult.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toodifficult.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toodifficult.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toodifficult.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toodifficult.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toodifficult.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toodifficult.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=136&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toodifficult.wordpress.com/2009/05/22/too-difficult-java-gui-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9e7a517e29f221706bbd4ca4d501ddbc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">clackwell</media:title>
		</media:content>
	</item>
		<item>
		<title>Too difficult: Providing examples/documentation for your vast and complex API/framework</title>
		<link>http://toodifficult.wordpress.com/2009/01/26/too-difficult-providing-examplesdocumentation-for-your-vast-and-complex-apiframework/</link>
		<comments>http://toodifficult.wordpress.com/2009/01/26/too-difficult-providing-examplesdocumentation-for-your-vast-and-complex-apiframework/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 17:02:01 +0000</pubDate>
		<dc:creator>clackwell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toodifficult.wordpress.com/?p=134</guid>
		<description><![CDATA[A little rant about lack of Eclipse RCP documentation and examples, and a suggestion on how to improve the situation.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=134&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am sure Paul Webster of Eclipse fame is a good lad, but I doubt that he realizes that his tireless help for all questions surrounding Eclipse falls shorter than he would believe or prefer:</p>
<p>Pointing someone asking for <a href="http://dev.eclipse.org/newslists/news.eclipse.platform/msg69794.html">how to rename a project programmatically</a> to <a href="http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ui/ide/undo/MoveResourcesOperation.html">MoveResourcesOperation</a> would be useful, if&#8230;</p>
<p>1) &#8230;the API documentation for the Eclipse RCP framework would pick the original poster up at that point (documented uses of the class inside the Eclipse RCP: 0; and it throws things like &#8220;IPath&#8221; at the humble reader)</p>
<p>2) &#8230; or if the internet would spill over with examples for using MoveResourcesOperation (10 hits for &#8220;new MoveResourcesOperation&#8221;).</p>
<p>What can be done to improve the current situation? Maybe every new API, method, class, extension point, etc. in the Eclipse RCP framework must be accompanied by a tiny and self-contained example before a release build of Eclipse is allowed to be shipped as &#8220;stable&#8221; or &#8220;final&#8221;.</p>
<p>As it is now, the Eclipse RCP is horribly frustrating to develop for, not because it is a vast and over-engineered framework (which it is in my opinion), but because of lack of examples and documentation for a vast number of very common use cases.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toodifficult.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toodifficult.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toodifficult.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toodifficult.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toodifficult.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toodifficult.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toodifficult.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toodifficult.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toodifficult.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toodifficult.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toodifficult.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toodifficult.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toodifficult.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toodifficult.wordpress.com/134/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=134&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toodifficult.wordpress.com/2009/01/26/too-difficult-providing-examplesdocumentation-for-your-vast-and-complex-apiframework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9e7a517e29f221706bbd4ca4d501ddbc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">clackwell</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows Vista: Abysmal moving folders performance</title>
		<link>http://toodifficult.wordpress.com/2009/01/16/windows-vista-abysmal-moving-folders-performance/</link>
		<comments>http://toodifficult.wordpress.com/2009/01/16/windows-vista-abysmal-moving-folders-performance/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 20:22:12 +0000</pubDate>
		<dc:creator>clackwell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toodifficult.wordpress.com/?p=128</guid>
		<description><![CDATA[In Windows Vista&#8217;s Windows Explorer moving the folder MyFolder (containing 40,000 files, and roughly 3.5 GB) at C:\Users\MyUser to C:\Users\MyUser\Desktop takes roughly 2 to 4 seconds. Moving the folder back via Windows Explorer takes about 23 to 25 seconds (!). Moving the folder back and forth via &#8220;move&#8221; command in cmd.exe takes roughly 1 second. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=128&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Windows Vista&#8217;s Windows Explorer moving the folder MyFolder (containing 40,000 files, and roughly 3.5 GB) at C:\Users\MyUser to C:\Users\MyUser\Desktop takes roughly 2 to 4 seconds.</p>
<p>Moving the folder back via Windows Explorer takes about 23 to 25 seconds (!).</p>
<p>Moving the folder back and forth via &#8220;move&#8221; command in cmd.exe takes roughly 1 second.</p>
<p>Given that moving a directory on the same partition is a very cheap operation on NTFS, the last figure seems acceptable, the second one leaves me unsatisfied and the first figure &#8211; plus the fact that it is 4+ times as slow to move in the other direction &#8211; leaves me with the feeling that some Microsoft developers suck just as much as everybody else at programming.</p>
<p>Throw in the complaints about perceived performance issues in Windows Vista and I am at wits end as to what the heck the product managers and developers at Microsoft are thinking when they decide not to fix these issues.</p>
<p>The system specs:</p>
<p>Windows Vista Ultimate, SP1<br />
AMD Dual Core 4450e<br />
4 GB RAM</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toodifficult.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toodifficult.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toodifficult.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toodifficult.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toodifficult.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toodifficult.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toodifficult.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toodifficult.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toodifficult.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toodifficult.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toodifficult.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toodifficult.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toodifficult.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toodifficult.wordpress.com/128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=128&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toodifficult.wordpress.com/2009/01/16/windows-vista-abysmal-moving-folders-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9e7a517e29f221706bbd4ca4d501ddbc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">clackwell</media:title>
		</media:content>
	</item>
		<item>
		<title>Documenting algorithms in Python (using pydoc)</title>
		<link>http://toodifficult.wordpress.com/2008/11/03/documenting-algorithms-in-python-using-pydoc/</link>
		<comments>http://toodifficult.wordpress.com/2008/11/03/documenting-algorithms-in-python-using-pydoc/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 03:08:51 +0000</pubDate>
		<dc:creator>clackwell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://toodifficult.wordpress.com/?p=122</guid>
		<description><![CDATA[Python&#8217;s pydoc allows to include documentation for a method in the source code, in the first lines of a method&#8217;s body for example: def test(): """Documentation for method test.""" # If file exists: ... # Delete file ... # Do this ... # Do that ... But what if you want to document the algorithm [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=122&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Python&#8217;s pydoc allows to include documentation for a method in the source code, in the first lines of a method&#8217;s body for example:</p>
<blockquote><pre>
def test():
    """Documentation for method test."""

    # If file exists:
    ...
        # Delete file
        ...
    # Do this
    ...
    # Do that
    ...
</pre>
</blockquote>
<p>But what if you want to document the algorithm used in the body of that method so that it shows up in the pydoc output as well? You could just add it to the pydoc comment explicitly:</p>
<blockquote><pre>
def test():
    """Documentation for method test.

    It uses the following steps:
        If file exists
            Delete file
        Do this
        Do that"""

    # If file exists:
    ...
        # Delete file
        ...
    # Do this
    ...
    # Do that
    ...
</pre>
</blockquote>
<p>Because the code already contains the documentation of each step adding each to the pydoc comment is uncomfortable, a duplication of effort.</p>
<p>By &#8220;extending&#8221; pydoc the duplication effort can be removed, so that documenting the algorithm could look like this:</p>
<blockquote><pre>
def test():
    """Documentation for method test."""

    #ALGO: If file exists:
    ...
        #ALGO: Delete file
        ...
    #ALGO: Do this
    ...
    #ALGO: Do that
    ...
</pre>
</blockquote>
<p>Note how the prefix &#8220;ALGO&#8221; in the comments is used to mark a comment as a comment for the algorithm.</p>
<p>Here is how to &#8220;extend&#8221; pydoc to support this functionality (contents of a file &#8220;pydoc_algo.py&#8221; created by you):</p>
<blockquote><pre>
import pydoc
import inspect

def test():
    """This is an example of algorithm documentation entries.

    Note using capitalized keyword "ALGO" to see
    algorithm pydoc entries more quickly in the
    code.

    Also note the use of "pass" in the example: If
    a comment is not followed by at least one line
    of actual code it does not end up in
    inspect.getsource() and inspect.getsourcelines."""

    #ALGO: If file exists:
    if True:
        #ALGO: Delete file
        pass

    #ALGO: Create the file
    pass

    #ALGO: Open file
    pass

    #ALGO: Write data to file
    pass

    #ALGO: Close file
    pass

def getdoc(object):
    algoComments = []
    sourceLines = inspect.getsourcelines(object)[0]
    for line in sourceLines:
        lineLower = line.lower()

        while True:
            s = "# algo "
            if lineLower.find(s) != -1:
                break
            s = "# algo: "
            if lineLower.find(s) != -1:
                break
            s = "#algo "
            if lineLower.find(s) != -1:
                break
            s = "#algo: "
            if lineLower.find(s) != -1:
                break

            s = None
            break

        if s is not None:
            start       = lineLower.find(s)
            end         = start + len(s)
            indent      = line[:start - 1]
            algoComment = line[end:]
            algoComments.append(indent + algoComment)

    s = inspect_getdoc(object)

    if len(algoComments) &gt; 0:
        s += "\n\nAlgorithm:\n"
        for c in algoComments:
            s += c

    return s

# "Install" the extension by replacing inspect.getdoc().
# Keep the reference to the previous inspect.getdoc()
# to call it ourselves.
inspect_getdoc = inspect.getdoc
inspect.getdoc = getdoc

if __name__ == "__main__":
    pydoc.help(test)
</pre>
</blockquote>
<p>Here is an example call:</p>
<blockquote><pre>
&gt;&gt;&gt; import pydoc
&gt;&gt;&gt; pydoc.help(pydoc_algo.test)
Help on function test in module pydoc_algo:

test()
    This is an example of algo documentation entries.

    Note using capitalized keyword "ALGO" to see
    algorithm pydoc entries more quickly in the
    code.

    Also note the use of "pass" in the example: If
    a comment is not followed by at least one line
    of actual code it does not end up in
    inspect.getsource() and inspect.getsourcelines.

    Algorithm:
       If file exists:
           Delete file
       Create the file
       Open file
       Write data to file
       Close file

&gt;&gt;&gt;
</pre>
</blockquote>
<p>This approach could be useful for &#8220;To do&#8221; entries too (&#8220;#ToDo: Do this and that here in the code!&#8221;).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/toodifficult.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/toodifficult.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/toodifficult.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/toodifficult.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/toodifficult.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/toodifficult.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/toodifficult.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/toodifficult.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/toodifficult.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/toodifficult.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/toodifficult.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/toodifficult.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/toodifficult.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/toodifficult.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=toodifficult.wordpress.com&amp;blog=4373767&amp;post=122&amp;subd=toodifficult&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://toodifficult.wordpress.com/2008/11/03/documenting-algorithms-in-python-using-pydoc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9e7a517e29f221706bbd4ca4d501ddbc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">clackwell</media:title>
		</media:content>
	</item>
	</channel>
</rss>
