<?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>florian.demmer.org &#187; Python</title>
	<atom:link href="http://demmer.ipax.at/blog/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://demmer.ipax.at/blog</link>
	<description>Winter is coming</description>
	<lastBuildDate>Sun, 29 Aug 2010 06:00:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Python: Amazon Web Services (AWS)</title>
		<link>http://demmer.ipax.at/blog/python-amazon-web-services-aws/</link>
		<comments>http://demmer.ipax.at/blog/python-amazon-web-services-aws/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 23:27:12 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://demmer.ipax.at/blog/?p=885</guid>
		<description><![CDATA[Last week I discovered Listen, yet another music player/database written in Python for the Gnome desktop. I tweeted it and I think it looks quite nice; has issues though, so I decided to jump in and fix some stuff. For example the cover fetch from Amazon. Amazon decided to require a signature for each REST [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I discovered <a href="https://www.listen-project.org">Listen</a>, yet another music player/database written in Python for the Gnome desktop. I tweeted it and I think it looks quite nice; has issues though, so I decided to jump in and fix some stuff. For example the cover fetch from Amazon. Amazon decided to require a signature for each REST request.</p>
<p>I am not sure how this is supposed to work though. From Amazon you get a private and public key after signing up for an AWS account. You use the public key in plain text as a parameter in your request. In addition you now (since August 2009 as it seems) have to add a timestamp and compute a signature key using the whole request string (including that timestamp and your public key) and the private key. Now append that signature as another parameter to the request and send it.</p>
<p>Of course every request will have a different signature because (a) you want to query for different stuff and (b) time changes and the timestamp must be recent or Amazon will consider the request as &#8220;old&#8221; and not worthy of an answer.</p>
<p>So what do you do now? Include your private key in your Python source, that you put out in a public repository? You probably shouldn&#8217;t, but that means the customer (user?) must have it&#8217;s own public/private key pair from Amazon. What a major inconvenience for the customer, to be required to have a AWS account just to get some covers.</p>
<p>Anyway, back to Listen. I created a <a href="https://code.launchpad.net/~fdemmer/listen/0.6">branch</a> of the 0.6 series on Launchpad  (a first for me, still getting used to bzr) and committed the necessary changes to <a href="http://bazaar.launchpad.net/~fdemmer/listen/0.6/annotate/head%3A/src/amazon.py">amazon.py</a> in revision <a href="http://bazaar.launchpad.net/~fdemmer/listen/0.6/revision/1126">1126</a>. Today I merged changes from the parent 0.6 and therefore that file now contains both public and private key &#8212; of someone else, not mine.</p>
<p>By the way, he original amazon.py is from of <a href="http://sourceforge.net/projects/pyaws/">PyAWS</a>. Unfortunately a later release of <a href="http://kunxi.org/archives/2008/05/pyaws-030-released/">PyAWS 0.3</a> was not uploaded to SourceForge and further changes by <a href="http://blog.umlungu.co.uk/blog/2009/jul/12/pyaws-adding-request-authentication/">others</a> for the signature stuff also never found their way back to the repository. Isn&#8217;t open source great? &lt;/sarcasm&gt;</p>




	<a rel="nofollow"  target="_blank" href="mailto:?subject=Python%3A%20Amazon%20Web%20Services%20%28AWS%29&amp;body=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F" title="email"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F&amp;partner=sociable" title="PDF"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F&amp;title=Python%3A%20Amazon%20Web%20Services%20%28AWS%29&amp;annotation=Last%20week%20I%20discovered%20Listen%2C%20yet%20another%20music%20player%2Fdatabase%20written%20in%20Python%20for%20the%20Gnome%20desktop.%20I%20tweeted%20it%20and%20I%20think%20it%20looks%20quite%20nice%3B%20has%20issues%20though%2C%20so%20I%20decided%20to%20jump%20in%20and%20fix%20some%20stuff.%20For%20example%20the%20cover%20fetch%20from%20Am" title="Google Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F&amp;t=Python%3A%20Amazon%20Web%20Services%20%28AWS%29&opener=bm&amp;ei=UTF-8&amp;d=Last%20week%20I%20discovered%20Listen%2C%20yet%20another%20music%20player%2Fdatabase%20written%20in%20Python%20for%20the%20Gnome%20desktop.%20I%20tweeted%20it%20and%20I%20think%20it%20looks%20quite%20nice%3B%20has%20issues%20though%2C%20so%20I%20decided%20to%20jump%20in%20and%20fix%20some%20stuff.%20For%20example%20the%20cover%20fetch%20from%20Am" title="Yahoo! Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F&amp;title=Python%3A%20Amazon%20Web%20Services%20%28AWS%29&amp;notes=Last%20week%20I%20discovered%20Listen%2C%20yet%20another%20music%20player%2Fdatabase%20written%20in%20Python%20for%20the%20Gnome%20desktop.%20I%20tweeted%20it%20and%20I%20think%20it%20looks%20quite%20nice%3B%20has%20issues%20though%2C%20so%20I%20decided%20to%20jump%20in%20and%20fix%20some%20stuff.%20For%20example%20the%20cover%20fetch%20from%20Am" title="del.icio.us"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Python%3A%20Amazon%20Web%20Services%20%28AWS%29%20-%20http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F" title="Twitter"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F&amp;title=Python%3A%20Amazon%20Web%20Services%20%28AWS%29" title="Reddit"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F&amp;title=Python%3A%20Amazon%20Web%20Services%20%28AWS%29&amp;bodytext=Last%20week%20I%20discovered%20Listen%2C%20yet%20another%20music%20player%2Fdatabase%20written%20in%20Python%20for%20the%20Gnome%20desktop.%20I%20tweeted%20it%20and%20I%20think%20it%20looks%20quite%20nice%3B%20has%20issues%20though%2C%20so%20I%20decided%20to%20jump%20in%20and%20fix%20some%20stuff.%20For%20example%20the%20cover%20fetch%20from%20Am" title="Digg"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F&amp;title=Python%3A%20Amazon%20Web%20Services%20%28AWS%29&amp;body=Last%20week%20I%20discovered%20Listen%2C%20yet%20another%20music%20player%2Fdatabase%20written%20in%20Python%20for%20the%20Gnome%20desktop.%20I%20tweeted%20it%20and%20I%20think%20it%20looks%20quite%20nice%3B%20has%20issues%20though%2C%20so%20I%20decided%20to%20jump%20in%20and%20fix%20some%20stuff.%20For%20example%20the%20cover%20fetch%20from%20Am" title="Ping.fm"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Python%3A%20Amazon%20Web%20Services%20%28AWS%29&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F" title="Slashdot"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F&amp;t=Python%3A%20Amazon%20Web%20Services%20%28AWS%29" title="Facebook"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F&amp;t=Python%3A%20Amazon%20Web%20Services%20%28AWS%29" title="MySpace"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F" title="Technorati"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F&amp;h=Python%3A%20Amazon%20Web%20Services%20%28AWS%29" title="NewsVine"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F&amp;t=Python%3A%20Amazon%20Web%20Services%20%28AWS%29&amp;s=Last%20week%20I%20discovered%20Listen%2C%20yet%20another%20music%20player%2Fdatabase%20written%20in%20Python%20for%20the%20Gnome%20desktop.%20I%20tweeted%20it%20and%20I%20think%20it%20looks%20quite%20nice%3B%20has%20issues%20though%2C%20so%20I%20decided%20to%20jump%20in%20and%20fix%20some%20stuff.%20For%20example%20the%20cover%20fetch%20from%20Am" title="Tumblr"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-amazon-web-services-aws%2F&amp;title=Python%3A%20Amazon%20Web%20Services%20%28AWS%29" title="StumbleUpon"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://demmer.ipax.at/blog/python-amazon-web-services-aws/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cx_Oracle: Error after setting NLS_LANG</title>
		<link>http://demmer.ipax.at/blog/cx_oracle-error-after-setting-nls_lang/</link>
		<comments>http://demmer.ipax.at/blog/cx_oracle-error-after-setting-nls_lang/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 22:01:09 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cx_oracle]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[sqlalchemy]]></category>

		<guid isPermaLink="false">http://demmer.ipax.at/blog/?p=860</guid>
		<description><![CDATA[I am working with a database containing Unicode data in NVARCHAR2 fields. Selecting rows that contain those fields just works with current cx_Oracle and SQLAlchemy as long as I don&#8217;t actually try to limit my result set by one of those in the query (like '%ü%'). I tried it with PL/SQL Developer and like unistr('%\00fc%') [...]]]></description>
			<content:encoded><![CDATA[<p>I am working with a database containing Unicode data in NVARCHAR2 fields. Selecting rows that contain those fields just works with current cx_Oracle and SQLAlchemy as long as I don&#8217;t actually try to limit my result set by one of those in the query (<code>like '%ü%'</code>). I tried it with PL/SQL Developer and <code>like unistr('%\00fc%')</code> worked.</p>
<p>The SQLAlchemy documentation says that with cx_Oracle &gt;= 5 everything should just work, but earlier versions needed NLS_LANG set in the environment. Unfortunately they do not tell you anywhere near that paragraph that SQLALchemy &lt;= 0.5.x needs it too. It took me another hour to find that information <a href="http://www.sqlalchemy.org/trac/wiki/DatabaseNotes#Oracle">here</a>. So set NLS_LANG to something like this and go selecting:</p>
<pre>export NLS_LANG='AMERICAN_AMERICA.UTF8'</pre>
<p>There is one trap however. Do not set &#8216;AL32UTF8&#8242;! Reading Oracle docs lead me to believe &#8216;UTF8&#8242; or &#8216;AL32UTF8&#8242; were valid values for NLS_LANG. They are not (so it seems) and setting them caused my app to crash with the following when connecting (which is not a very helpful message, if you do have ORACLE_HOME set properly):</p>
<pre>sqlalchemy.exc.InterfaceError: (InterfaceError) Unable to acquire Oracle environment handle None None</pre>
<p>More about valid values <a href="http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm#_Toc110410543">here</a>.</p>




	<a rel="nofollow"  target="_blank" href="mailto:?subject=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG&amp;body=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F" title="email"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F&amp;partner=sociable" title="PDF"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F&amp;title=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG&amp;annotation=I%20am%20working%20with%20a%20database%20containing%20Unicode%20data%20in%20NVARCHAR2%20fields.%20Selecting%20rows%20that%20contain%20those%20fields%20just%20works%20with%20current%20cx_Oracle%20and%20SQLAlchemy%20as%20long%20as%20I%20don%27t%20actually%20try%20to%20limit%20my%20result%20set%20by%20one%20of%20those%20in%20the%20query%20%28l" title="Google Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F&amp;t=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG&opener=bm&amp;ei=UTF-8&amp;d=I%20am%20working%20with%20a%20database%20containing%20Unicode%20data%20in%20NVARCHAR2%20fields.%20Selecting%20rows%20that%20contain%20those%20fields%20just%20works%20with%20current%20cx_Oracle%20and%20SQLAlchemy%20as%20long%20as%20I%20don%27t%20actually%20try%20to%20limit%20my%20result%20set%20by%20one%20of%20those%20in%20the%20query%20%28l" title="Yahoo! Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F&amp;title=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG&amp;notes=I%20am%20working%20with%20a%20database%20containing%20Unicode%20data%20in%20NVARCHAR2%20fields.%20Selecting%20rows%20that%20contain%20those%20fields%20just%20works%20with%20current%20cx_Oracle%20and%20SQLAlchemy%20as%20long%20as%20I%20don%27t%20actually%20try%20to%20limit%20my%20result%20set%20by%20one%20of%20those%20in%20the%20query%20%28l" title="del.icio.us"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG%20-%20http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F" title="Twitter"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F&amp;title=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG" title="Reddit"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F&amp;title=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG&amp;bodytext=I%20am%20working%20with%20a%20database%20containing%20Unicode%20data%20in%20NVARCHAR2%20fields.%20Selecting%20rows%20that%20contain%20those%20fields%20just%20works%20with%20current%20cx_Oracle%20and%20SQLAlchemy%20as%20long%20as%20I%20don%27t%20actually%20try%20to%20limit%20my%20result%20set%20by%20one%20of%20those%20in%20the%20query%20%28l" title="Digg"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F&amp;title=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG&amp;body=I%20am%20working%20with%20a%20database%20containing%20Unicode%20data%20in%20NVARCHAR2%20fields.%20Selecting%20rows%20that%20contain%20those%20fields%20just%20works%20with%20current%20cx_Oracle%20and%20SQLAlchemy%20as%20long%20as%20I%20don%27t%20actually%20try%20to%20limit%20my%20result%20set%20by%20one%20of%20those%20in%20the%20query%20%28l" title="Ping.fm"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F" title="Slashdot"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F&amp;t=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG" title="Facebook"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F&amp;t=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG" title="MySpace"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F" title="Technorati"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F&amp;h=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG" title="NewsVine"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F&amp;t=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG&amp;s=I%20am%20working%20with%20a%20database%20containing%20Unicode%20data%20in%20NVARCHAR2%20fields.%20Selecting%20rows%20that%20contain%20those%20fields%20just%20works%20with%20current%20cx_Oracle%20and%20SQLAlchemy%20as%20long%20as%20I%20don%27t%20actually%20try%20to%20limit%20my%20result%20set%20by%20one%20of%20those%20in%20the%20query%20%28l" title="Tumblr"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fcx_oracle-error-after-setting-nls_lang%2F&amp;title=cx_Oracle%3A%20Error%20after%20setting%20NLS_LANG" title="StumbleUpon"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://demmer.ipax.at/blog/cx_oracle-error-after-setting-nls_lang/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flot: Javascript plotting for jQuery</title>
		<link>http://demmer.ipax.at/blog/flot-javascript-plotting-for-jquery/</link>
		<comments>http://demmer.ipax.at/blog/flot-javascript-plotting-for-jquery/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 07:50:54 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[awesome]]></category>
		<category><![CDATA[flot]]></category>
		<category><![CDATA[flup]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[wsgi]]></category>

		<guid isPermaLink="false">http://demmer.ipax.at/blog/?p=837</guid>
		<description><![CDATA[When eye-candy and function meet, you get perfection. Now add ease of use and offloading of a few CPU cycles to the client and you get flot. It&#8217;s a JavaScript library for jQuery that creates beautiful diagrams from your raw data&#8230; just like that. It just works.
Take a look at this&#8230; awesome!
This picture was generated [...]]]></description>
			<content:encoded><![CDATA[<p>When eye-candy and function meet, you get perfection. Now add ease of use and offloading of a few CPU cycles to the client and you get <a href="http://code.google.com/p/flot/">flot</a>. It&#8217;s a JavaScript library for jQuery that creates beautiful diagrams from your raw data&#8230; just like that. It just works.</p>
<p>Take a look at this&#8230; awesome!</p>
<p><a rel="attachment wp-att-838" href="http://demmer.ipax.at/blog/flot-javascript-plotting-for-jquery/transformers/"><img class="aligncenter size-full wp-image-838" title="transformers" src="http://demmer.ipax.at/blog/wp-content/uploads/2010/01/transformers.jpg" alt="" width="514" height="211" /></a>This picture was generated from data collected from plain text logfiles inserted into MySQL using Perl, queried using Python/SQLAlchemy, served using a Python/WSGI application through SCGI using <a href="http://trac.saddi.com/flup">flup</a> and Apache2 and plotted using JavaScript on Mozilla Firefox&#8230; and I get paid to do that!</p>




	<a rel="nofollow"  target="_blank" href="mailto:?subject=flot%3A%20Javascript%20plotting%20for%20jQuery&amp;body=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F" title="email"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F&amp;partner=sociable" title="PDF"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F&amp;title=flot%3A%20Javascript%20plotting%20for%20jQuery&amp;annotation=When%20eye-candy%20and%20function%20meet%2C%20you%20get%20perfection.%20Now%20add%20ease%20of%20use%20and%20offloading%20of%20a%20few%20CPU%20cycles%20to%20the%20client%20and%20you%20get%20flot.%20It%27s%20a%20JavaScript%20library%20for%20jQuery%20that%20creates%20beautiful%20diagrams%20from%20your%20raw%20data...%20just%20like%20that.%20It" title="Google Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F&amp;t=flot%3A%20Javascript%20plotting%20for%20jQuery&opener=bm&amp;ei=UTF-8&amp;d=When%20eye-candy%20and%20function%20meet%2C%20you%20get%20perfection.%20Now%20add%20ease%20of%20use%20and%20offloading%20of%20a%20few%20CPU%20cycles%20to%20the%20client%20and%20you%20get%20flot.%20It%27s%20a%20JavaScript%20library%20for%20jQuery%20that%20creates%20beautiful%20diagrams%20from%20your%20raw%20data...%20just%20like%20that.%20It" title="Yahoo! Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F&amp;title=flot%3A%20Javascript%20plotting%20for%20jQuery&amp;notes=When%20eye-candy%20and%20function%20meet%2C%20you%20get%20perfection.%20Now%20add%20ease%20of%20use%20and%20offloading%20of%20a%20few%20CPU%20cycles%20to%20the%20client%20and%20you%20get%20flot.%20It%27s%20a%20JavaScript%20library%20for%20jQuery%20that%20creates%20beautiful%20diagrams%20from%20your%20raw%20data...%20just%20like%20that.%20It" title="del.icio.us"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=flot%3A%20Javascript%20plotting%20for%20jQuery%20-%20http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F" title="Twitter"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F&amp;title=flot%3A%20Javascript%20plotting%20for%20jQuery" title="Reddit"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F&amp;title=flot%3A%20Javascript%20plotting%20for%20jQuery&amp;bodytext=When%20eye-candy%20and%20function%20meet%2C%20you%20get%20perfection.%20Now%20add%20ease%20of%20use%20and%20offloading%20of%20a%20few%20CPU%20cycles%20to%20the%20client%20and%20you%20get%20flot.%20It%27s%20a%20JavaScript%20library%20for%20jQuery%20that%20creates%20beautiful%20diagrams%20from%20your%20raw%20data...%20just%20like%20that.%20It" title="Digg"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F&amp;title=flot%3A%20Javascript%20plotting%20for%20jQuery&amp;body=When%20eye-candy%20and%20function%20meet%2C%20you%20get%20perfection.%20Now%20add%20ease%20of%20use%20and%20offloading%20of%20a%20few%20CPU%20cycles%20to%20the%20client%20and%20you%20get%20flot.%20It%27s%20a%20JavaScript%20library%20for%20jQuery%20that%20creates%20beautiful%20diagrams%20from%20your%20raw%20data...%20just%20like%20that.%20It" title="Ping.fm"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=flot%3A%20Javascript%20plotting%20for%20jQuery&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F" title="Slashdot"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F&amp;t=flot%3A%20Javascript%20plotting%20for%20jQuery" title="Facebook"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F&amp;t=flot%3A%20Javascript%20plotting%20for%20jQuery" title="MySpace"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F" title="Technorati"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F&amp;h=flot%3A%20Javascript%20plotting%20for%20jQuery" title="NewsVine"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F&amp;t=flot%3A%20Javascript%20plotting%20for%20jQuery&amp;s=When%20eye-candy%20and%20function%20meet%2C%20you%20get%20perfection.%20Now%20add%20ease%20of%20use%20and%20offloading%20of%20a%20few%20CPU%20cycles%20to%20the%20client%20and%20you%20get%20flot.%20It%27s%20a%20JavaScript%20library%20for%20jQuery%20that%20creates%20beautiful%20diagrams%20from%20your%20raw%20data...%20just%20like%20that.%20It" title="Tumblr"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fflot-javascript-plotting-for-jquery%2F&amp;title=flot%3A%20Javascript%20plotting%20for%20jQuery" title="StumbleUpon"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://demmer.ipax.at/blog/flot-javascript-plotting-for-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python: Building MySQL-python 1.2.3c1 on Solaris 10 with MySQL 5.1.42</title>
		<link>http://demmer.ipax.at/blog/python-building-mysql-python-on-solaris-10-with-mysql-5-1-42/</link>
		<comments>http://demmer.ipax.at/blog/python-building-mysql-python-on-solaris-10-with-mysql-5-1-42/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 11:23:37 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://demmer.ipax.at/blog/?p=806</guid>
		<description><![CDATA[Trying to build MySQL-python from source on Solaris 10 when using MySQL 5.1.42 (pkg from mysql.com) may fail with something like this:
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'gamma',1) -D__version__=1.2.3c1 -I/opt/mysql/mysql/include -I/opt/alcatel/logger/include/python2.6 -c _mysql.c -o build/temp.solaris-2.10-sun4u-2.6/_mysql.o -g -mt -m32 -xarch=sparc -DHAVE_RWLOCK_T -DUNIV_SOLARIS -DUNIV_SOLARIS
gcc: warning: `-x arch=sparc' after last input file has no effect
cc1: [...]]]></description>
			<content:encoded><![CDATA[<p>Trying to build MySQL-python from source on Solaris 10 when using MySQL 5.1.42 (pkg from mysql.com) may fail with something like this:</p>
<pre>gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'gamma',1) -D__version__=1.2.3c1 -I/opt/mysql/mysql/include -I/opt/alcatel/logger/include/python2.6 -c _mysql.c -o build/temp.solaris-2.10-sun4u-2.6/_mysql.o -g -mt -m32 -xarch=sparc -DHAVE_RWLOCK_T -DUNIV_SOLARIS -DUNIV_SOLARIS
gcc: warning: `-x arch=sparc' after last input file has no effect
cc1: error: invalid option `t'
error: command 'gcc' failed with exit status 1
</pre>
<p>It happened to me on a Sun Fire V240 (sparc), but may also happen on i386.</p>
<p>The problem here is the &#8220;-mt&#8221; option. As mentioned in this <a href="http://archives.devshed.com/forums/development-94/cc1-error-invalid-option-t-393177.html">forum post</a> the &#8220;-mt&#8221; option is targeted at <em>IA-64</em> platforms. This option is used because it is also used in MySQLs &#8220;&#8211;cflags&#8221; and setup.py uses mysql_config to determine build options. If you run mysql_config you probably get something like this:</p>
<pre># /opt/mysql/mysql/bin/mysql_config --cflags
-I/opt/mysql/mysql/include  -g <strong>-mt</strong> -m32 -xarch=sparc   -DHAVE_RWLOCK_T -DUNIV_SOLARIS -DUNIV_SOLARIS
</pre>
<p>To overcome this I added &#8220;m&#8221; to the compiler options to ignore in setup_posix.py in line 55:</p>
<pre>removable_compile_args = [ compiler_flag(f) for f in "ILl<strong>m</strong>" ]</pre>
<p>This makes it not use the &#8220;-mt -m32&#8243; options from mysql_config. The &#8220;-m32&#8243; option makes gcc generate code for 32-bit systems and regarding the &#8220;-x arch=sparc&#8221;: gcc ignores it anyway:</p>
<pre>gcc: warning: `-x arch=sparc' after last input file has no effect
</pre>
<p>Furthermore there is a bug in the setup.py that seems to link dynamically even if you configure it to link statically in site.cfg. There is a patch attached to this <a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1878264&amp;group_id=22307&amp;atid=374932">ticket</a>.</p>




	<a rel="nofollow"  target="_blank" href="mailto:?subject=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42&amp;body=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F" title="email"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F&amp;partner=sociable" title="PDF"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F&amp;title=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42&amp;annotation=Trying%20to%20build%20MySQL-python%20from%20source%20on%20Solaris%2010%20when%20using%20MySQL%205.1.42%20%28pkg%20from%20mysql.com%29%20may%20fail%20with%20something%20like%20this%3A%0D%0Agcc%20-fno-strict-aliasing%20-DNDEBUG%20-g%20-fwrapv%20-O3%20-Wall%20-Wstrict-prototypes%20-fPIC%20-Dversion_info%3D%281%2C2%2C3%2C%27gamma%27%2C1%29%20" title="Google Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F&amp;t=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42&opener=bm&amp;ei=UTF-8&amp;d=Trying%20to%20build%20MySQL-python%20from%20source%20on%20Solaris%2010%20when%20using%20MySQL%205.1.42%20%28pkg%20from%20mysql.com%29%20may%20fail%20with%20something%20like%20this%3A%0D%0Agcc%20-fno-strict-aliasing%20-DNDEBUG%20-g%20-fwrapv%20-O3%20-Wall%20-Wstrict-prototypes%20-fPIC%20-Dversion_info%3D%281%2C2%2C3%2C%27gamma%27%2C1%29%20" title="Yahoo! Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F&amp;title=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42&amp;notes=Trying%20to%20build%20MySQL-python%20from%20source%20on%20Solaris%2010%20when%20using%20MySQL%205.1.42%20%28pkg%20from%20mysql.com%29%20may%20fail%20with%20something%20like%20this%3A%0D%0Agcc%20-fno-strict-aliasing%20-DNDEBUG%20-g%20-fwrapv%20-O3%20-Wall%20-Wstrict-prototypes%20-fPIC%20-Dversion_info%3D%281%2C2%2C3%2C%27gamma%27%2C1%29%20" title="del.icio.us"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42%20-%20http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F" title="Twitter"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F&amp;title=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42" title="Reddit"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F&amp;title=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42&amp;bodytext=Trying%20to%20build%20MySQL-python%20from%20source%20on%20Solaris%2010%20when%20using%20MySQL%205.1.42%20%28pkg%20from%20mysql.com%29%20may%20fail%20with%20something%20like%20this%3A%0D%0Agcc%20-fno-strict-aliasing%20-DNDEBUG%20-g%20-fwrapv%20-O3%20-Wall%20-Wstrict-prototypes%20-fPIC%20-Dversion_info%3D%281%2C2%2C3%2C%27gamma%27%2C1%29%20" title="Digg"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F&amp;title=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42&amp;body=Trying%20to%20build%20MySQL-python%20from%20source%20on%20Solaris%2010%20when%20using%20MySQL%205.1.42%20%28pkg%20from%20mysql.com%29%20may%20fail%20with%20something%20like%20this%3A%0D%0Agcc%20-fno-strict-aliasing%20-DNDEBUG%20-g%20-fwrapv%20-O3%20-Wall%20-Wstrict-prototypes%20-fPIC%20-Dversion_info%3D%281%2C2%2C3%2C%27gamma%27%2C1%29%20" title="Ping.fm"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F" title="Slashdot"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F&amp;t=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42" title="Facebook"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F&amp;t=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42" title="MySpace"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F" title="Technorati"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F&amp;h=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42" title="NewsVine"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F&amp;t=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42&amp;s=Trying%20to%20build%20MySQL-python%20from%20source%20on%20Solaris%2010%20when%20using%20MySQL%205.1.42%20%28pkg%20from%20mysql.com%29%20may%20fail%20with%20something%20like%20this%3A%0D%0Agcc%20-fno-strict-aliasing%20-DNDEBUG%20-g%20-fwrapv%20-O3%20-Wall%20-Wstrict-prototypes%20-fPIC%20-Dversion_info%3D%281%2C2%2C3%2C%27gamma%27%2C1%29%20" title="Tumblr"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-building-mysql-python-on-solaris-10-with-mysql-5-1-42%2F&amp;title=Python%3A%20Building%20MySQL-python%201.2.3c1%20on%20Solaris%2010%20with%20MySQL%205.1.42" title="StumbleUpon"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://demmer.ipax.at/blog/python-building-mysql-python-on-solaris-10-with-mysql-5-1-42/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python: abspath, basename, dirname</title>
		<link>http://demmer.ipax.at/blog/python-abspath-basename-dirname/</link>
		<comments>http://demmer.ipax.at/blog/python-abspath-basename-dirname/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 00:20:26 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://demmer.ipax.at/blog/?p=744</guid>
		<description><![CDATA[This is a note-to-self post regarding three of Python&#8217;s os.path functions, some examples:
&#62;&#62;&#62; os.path.abspath('/opt/stuff/things/bin')
'/opt/stuff/things/bin'
&#62;&#62;&#62; os.path.abspath('stuff/things/bin')
'/opt/stuff/things/bin'
&#62;&#62;&#62; os.path.basename('/opt/stuff/things/bin')
'bin'
&#62;&#62;&#62; os.path.dirname('/opt/stuff/things/bin')
'/opt/stuff/things'




	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>This is a note-to-self post regarding three of Python&#8217;s <a href="http://docs.python.org/library/os.path.html">os.path</a> functions, some examples:</p>
<pre>&gt;&gt;&gt; os.path.abspath('/opt/stuff/things/bin')
'/opt/stuff/things/bin'
&gt;&gt;&gt; os.path.abspath('stuff/things/bin')
'/opt/stuff/things/bin'
&gt;&gt;&gt; os.path.basename('/opt/stuff/things/bin')
'bin'
&gt;&gt;&gt; os.path.dirname('/opt/stuff/things/bin')
'/opt/stuff/things'</pre>




	<a rel="nofollow"  target="_blank" href="mailto:?subject=Python%3A%20abspath%2C%20basename%2C%20dirname&amp;body=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F" title="email"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F&amp;partner=sociable" title="PDF"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F&amp;title=Python%3A%20abspath%2C%20basename%2C%20dirname&amp;annotation=This%20is%20a%20note-to-self%20post%20regarding%20three%20of%20Python%27s%20os.path%20functions%2C%20some%20examples%3A%0D%0A%26gt%3B%26gt%3B%26gt%3B%20os.path.abspath%28%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%29%20%0D%0A%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%0D%0A%26gt%3B%26gt%3B%26gt%3B%20os.path.abspath%28%27stuff%2Fthings%2Fbin%27%29%0D%0A%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%0D%0A%26gt" title="Google Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F&amp;t=Python%3A%20abspath%2C%20basename%2C%20dirname&opener=bm&amp;ei=UTF-8&amp;d=This%20is%20a%20note-to-self%20post%20regarding%20three%20of%20Python%27s%20os.path%20functions%2C%20some%20examples%3A%0D%0A%26gt%3B%26gt%3B%26gt%3B%20os.path.abspath%28%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%29%20%0D%0A%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%0D%0A%26gt%3B%26gt%3B%26gt%3B%20os.path.abspath%28%27stuff%2Fthings%2Fbin%27%29%0D%0A%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%0D%0A%26gt" title="Yahoo! Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F&amp;title=Python%3A%20abspath%2C%20basename%2C%20dirname&amp;notes=This%20is%20a%20note-to-self%20post%20regarding%20three%20of%20Python%27s%20os.path%20functions%2C%20some%20examples%3A%0D%0A%26gt%3B%26gt%3B%26gt%3B%20os.path.abspath%28%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%29%20%0D%0A%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%0D%0A%26gt%3B%26gt%3B%26gt%3B%20os.path.abspath%28%27stuff%2Fthings%2Fbin%27%29%0D%0A%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%0D%0A%26gt" title="del.icio.us"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Python%3A%20abspath%2C%20basename%2C%20dirname%20-%20http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F" title="Twitter"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F&amp;title=Python%3A%20abspath%2C%20basename%2C%20dirname" title="Reddit"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F&amp;title=Python%3A%20abspath%2C%20basename%2C%20dirname&amp;bodytext=This%20is%20a%20note-to-self%20post%20regarding%20three%20of%20Python%27s%20os.path%20functions%2C%20some%20examples%3A%0D%0A%26gt%3B%26gt%3B%26gt%3B%20os.path.abspath%28%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%29%20%0D%0A%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%0D%0A%26gt%3B%26gt%3B%26gt%3B%20os.path.abspath%28%27stuff%2Fthings%2Fbin%27%29%0D%0A%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%0D%0A%26gt" title="Digg"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F&amp;title=Python%3A%20abspath%2C%20basename%2C%20dirname&amp;body=This%20is%20a%20note-to-self%20post%20regarding%20three%20of%20Python%27s%20os.path%20functions%2C%20some%20examples%3A%0D%0A%26gt%3B%26gt%3B%26gt%3B%20os.path.abspath%28%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%29%20%0D%0A%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%0D%0A%26gt%3B%26gt%3B%26gt%3B%20os.path.abspath%28%27stuff%2Fthings%2Fbin%27%29%0D%0A%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%0D%0A%26gt" title="Ping.fm"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Python%3A%20abspath%2C%20basename%2C%20dirname&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F" title="Slashdot"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F&amp;t=Python%3A%20abspath%2C%20basename%2C%20dirname" title="Facebook"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F&amp;t=Python%3A%20abspath%2C%20basename%2C%20dirname" title="MySpace"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F" title="Technorati"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F&amp;h=Python%3A%20abspath%2C%20basename%2C%20dirname" title="NewsVine"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F&amp;t=Python%3A%20abspath%2C%20basename%2C%20dirname&amp;s=This%20is%20a%20note-to-self%20post%20regarding%20three%20of%20Python%27s%20os.path%20functions%2C%20some%20examples%3A%0D%0A%26gt%3B%26gt%3B%26gt%3B%20os.path.abspath%28%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%29%20%0D%0A%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%0D%0A%26gt%3B%26gt%3B%26gt%3B%20os.path.abspath%28%27stuff%2Fthings%2Fbin%27%29%0D%0A%27%2Fopt%2Fstuff%2Fthings%2Fbin%27%0D%0A%26gt" title="Tumblr"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-abspath-basename-dirname%2F&amp;title=Python%3A%20abspath%2C%20basename%2C%20dirname" title="StumbleUpon"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://demmer.ipax.at/blog/python-abspath-basename-dirname/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exaile: Custom Statusbar Plugin</title>
		<link>http://demmer.ipax.at/blog/exaile-custom-statusbar-plugin/</link>
		<comments>http://demmer.ipax.at/blog/exaile-custom-statusbar-plugin/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 21:26:58 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[exaile]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://demmer.ipax.at/blog/?p=658</guid>
		<description><![CDATA[I made a plugin for Exaile, that allows customisation of the text in the main window&#8217;s statusbar. I wrote it for and tested only against 0.3.1+ which is the current in-development version from bzr. It does NOT work with 0.3.0.2, which is the current stable. Also it requires Python &#62;= 2.6.
Here&#8217;s how you check out [...]]]></description>
			<content:encoded><![CDATA[<p>I made a plugin for <a href="http://www.exaile.org/">Exaile</a>, that allows customisation of the text in the main window&#8217;s statusbar. I wrote it for and tested only against 0.3.1+ which is the current in-development version from bzr. It does NOT work with 0.3.0.2, which is the current stable. Also it requires Python &gt;= 2.6.</p>
<p>Here&#8217;s how you check out the code:</p>
<pre>bzr checkout lp:exaile</pre>
<p>There is a screenshot and the plugin package attached to this Exaile bug on <a href="https://bugs.launchpad.net/exaile/+bug/136141">launchpad</a>.</p>




	<a rel="nofollow"  target="_blank" href="mailto:?subject=Exaile%3A%20Custom%20Statusbar%20Plugin&amp;body=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F" title="email"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F&amp;partner=sociable" title="PDF"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F&amp;title=Exaile%3A%20Custom%20Statusbar%20Plugin&amp;annotation=I%20made%20a%20plugin%20for%20Exaile%2C%20that%20allows%20customisation%20of%20the%20text%20in%20the%20main%20window%27s%20statusbar.%20I%20wrote%20it%20for%20and%20tested%20only%20against%200.3.1%2B%20which%20is%20the%20current%20in-development%20version%20from%20bzr.%20It%20does%20NOT%20work%20with%200.3.0.2%2C%20which%20is%20the%20current%20" title="Google Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F&amp;t=Exaile%3A%20Custom%20Statusbar%20Plugin&opener=bm&amp;ei=UTF-8&amp;d=I%20made%20a%20plugin%20for%20Exaile%2C%20that%20allows%20customisation%20of%20the%20text%20in%20the%20main%20window%27s%20statusbar.%20I%20wrote%20it%20for%20and%20tested%20only%20against%200.3.1%2B%20which%20is%20the%20current%20in-development%20version%20from%20bzr.%20It%20does%20NOT%20work%20with%200.3.0.2%2C%20which%20is%20the%20current%20" title="Yahoo! Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F&amp;title=Exaile%3A%20Custom%20Statusbar%20Plugin&amp;notes=I%20made%20a%20plugin%20for%20Exaile%2C%20that%20allows%20customisation%20of%20the%20text%20in%20the%20main%20window%27s%20statusbar.%20I%20wrote%20it%20for%20and%20tested%20only%20against%200.3.1%2B%20which%20is%20the%20current%20in-development%20version%20from%20bzr.%20It%20does%20NOT%20work%20with%200.3.0.2%2C%20which%20is%20the%20current%20" title="del.icio.us"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Exaile%3A%20Custom%20Statusbar%20Plugin%20-%20http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F" title="Twitter"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F&amp;title=Exaile%3A%20Custom%20Statusbar%20Plugin" title="Reddit"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F&amp;title=Exaile%3A%20Custom%20Statusbar%20Plugin&amp;bodytext=I%20made%20a%20plugin%20for%20Exaile%2C%20that%20allows%20customisation%20of%20the%20text%20in%20the%20main%20window%27s%20statusbar.%20I%20wrote%20it%20for%20and%20tested%20only%20against%200.3.1%2B%20which%20is%20the%20current%20in-development%20version%20from%20bzr.%20It%20does%20NOT%20work%20with%200.3.0.2%2C%20which%20is%20the%20current%20" title="Digg"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F&amp;title=Exaile%3A%20Custom%20Statusbar%20Plugin&amp;body=I%20made%20a%20plugin%20for%20Exaile%2C%20that%20allows%20customisation%20of%20the%20text%20in%20the%20main%20window%27s%20statusbar.%20I%20wrote%20it%20for%20and%20tested%20only%20against%200.3.1%2B%20which%20is%20the%20current%20in-development%20version%20from%20bzr.%20It%20does%20NOT%20work%20with%200.3.0.2%2C%20which%20is%20the%20current%20" title="Ping.fm"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Exaile%3A%20Custom%20Statusbar%20Plugin&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F" title="Slashdot"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F&amp;t=Exaile%3A%20Custom%20Statusbar%20Plugin" title="Facebook"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F&amp;t=Exaile%3A%20Custom%20Statusbar%20Plugin" title="MySpace"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F" title="Technorati"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F&amp;h=Exaile%3A%20Custom%20Statusbar%20Plugin" title="NewsVine"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F&amp;t=Exaile%3A%20Custom%20Statusbar%20Plugin&amp;s=I%20made%20a%20plugin%20for%20Exaile%2C%20that%20allows%20customisation%20of%20the%20text%20in%20the%20main%20window%27s%20statusbar.%20I%20wrote%20it%20for%20and%20tested%20only%20against%200.3.1%2B%20which%20is%20the%20current%20in-development%20version%20from%20bzr.%20It%20does%20NOT%20work%20with%200.3.0.2%2C%20which%20is%20the%20current%20" title="Tumblr"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fexaile-custom-statusbar-plugin%2F&amp;title=Exaile%3A%20Custom%20Statusbar%20Plugin" title="StumbleUpon"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://demmer.ipax.at/blog/exaile-custom-statusbar-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Weekly for 2009-10-24</title>
		<link>http://demmer.ipax.at/blog/twitter-weekly-for-2009-10-24/</link>
		<comments>http://demmer.ipax.at/blog/twitter-weekly-for-2009-10-24/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 04:30:00 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[gnome shell]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[tweets]]></category>

		<guid isPermaLink="false">http://demmer.ipax.at/blog/2009/10/24/twitter-weekly-for-2009-10-24/</guid>
		<description><![CDATA[
RT @IMDb #IMDb turns 19 today. Thank you all. #
got a blinking cursor in firefox and scrolling with the keyboard sucks now? &#8230; disable &#8220;caret&#8221; mode by pressing F7 or via about:config. #
MySQL Python/Connector actually only works with Python &#62;= 2.6, because of extensive use of the &#8220;as&#8221; keyword. https://launchpad.net/myconnpy #
&#8220;Everything will be okay in [...]]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>RT @<a class="aktt_username" href="http://twitter.com/IMDb">IMDb</a> #<a class="aktt_hashtag" href="http://search.twitter.com/search?q=%23IMDb">IMDb</a> turns 19 today. Thank you all. <a class="aktt_tweet_time" href="http://twitter.com/fdemmer/statuses/4940303212">#</a></li>
<li><strong>got a blinking cursor in firefox and scrolling with the keyboard sucks now? &#8230; disable &#8220;caret&#8221; mode by pressing F7 or via about:config. <a class="aktt_tweet_time" href="http://twitter.com/fdemmer/statuses/4947637607">#</a></strong></li>
<li><strong>MySQL Python/Connector actually only works with Python &gt;= 2.6, because of extensive use of the &#8220;as&#8221; keyword. <a rel="nofollow" href="https://launchpad.net/myconnpy">https://launchpad.net/myconnpy</a> <a class="aktt_tweet_time" href="http://twitter.com/fdemmer/statuses/5029355803">#</a></strong></li>
<li>&#8220;Everything will be okay in the end. If it’s not okay, it’s not the end.&#8221; #<a class="aktt_hashtag" href="http://search.twitter.com/search?q=%23quotes">quotes</a> <a class="aktt_tweet_time" href="http://twitter.com/fdemmer/statuses/5043570410">#</a></li>
<li>RT @<a class="aktt_username" href="http://twitter.com/PerezHilton">PerezHilton</a> Whoever started the RIP Kanye West hoax, Imma let you finish, but Balloon Boy had the best hoax of all time! <a class="aktt_tweet_time" href="http://twitter.com/fdemmer/statuses/5050024387">#</a></li>
<li>RT @<a class="aktt_username" href="http://twitter.com/larry_david">larry_david</a> &#8220;Forgot about Twitter for a while. I&#8217;m sorry, okay?&#8221; #<a class="aktt_hashtag" href="http://search.twitter.com/search?q=%23quotes">quotes</a> <a class="aktt_tweet_time" href="http://twitter.com/fdemmer/statuses/5081452810">#</a></li>
<li>RT @<a class="aktt_username" href="http://twitter.com/HannoSettele">HannoSettele</a> Ausrede nötig? Wie wärs damit? <a rel="nofollow" href="http://bit.ly/QDdx6">http://bit.ly/QDdx6</a> #<a class="aktt_hashtag" href="http://search.twitter.com/search?q=%23fb">fb</a> <a class="aktt_tweet_time" href="http://twitter.com/fdemmer/statuses/5102638898">#</a></li>
<li>Karmic install done; Gnome Shell is pretty cool, give it a try: <a rel="nofollow" href="http://bit.ly/BF9Zh">http://bit.ly/BF9Zh</a> #<a class="aktt_hashtag" href="http://search.twitter.com/search?q=%23ubuntu">ubuntu</a> #<a class="aktt_hashtag" href="http://search.twitter.com/search?q=%23gnome">gnome</a> <a class="aktt_tweet_time" href="http://twitter.com/fdemmer/statuses/5108685567">#</a></li>
</ul>




	<a rel="nofollow"  target="_blank" href="mailto:?subject=Twitter%20Weekly%20for%202009-10-24&amp;body=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F" title="email"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F&amp;partner=sociable" title="PDF"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F&amp;title=Twitter%20Weekly%20for%202009-10-24&amp;annotation=%0D%0A%09RT%20%40IMDb%20%23IMDb%20turns%2019%20today.%20Thank%20you%20all.%20%23%0D%0A%09got%20a%20blinking%20cursor%20in%20firefox%20and%20scrolling%20with%20the%20keyboard%20sucks%20now%3F%20...%20disable%20%22caret%22%20mode%20by%20pressing%20F7%20or%20via%20about%3Aconfig.%20%23%0D%0A%09MySQL%20Python%2FConnector%20actually%20only%20works%20with%20Python%20%26" title="Google Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F&amp;t=Twitter%20Weekly%20for%202009-10-24&opener=bm&amp;ei=UTF-8&amp;d=%0D%0A%09RT%20%40IMDb%20%23IMDb%20turns%2019%20today.%20Thank%20you%20all.%20%23%0D%0A%09got%20a%20blinking%20cursor%20in%20firefox%20and%20scrolling%20with%20the%20keyboard%20sucks%20now%3F%20...%20disable%20%22caret%22%20mode%20by%20pressing%20F7%20or%20via%20about%3Aconfig.%20%23%0D%0A%09MySQL%20Python%2FConnector%20actually%20only%20works%20with%20Python%20%26" title="Yahoo! Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F&amp;title=Twitter%20Weekly%20for%202009-10-24&amp;notes=%0D%0A%09RT%20%40IMDb%20%23IMDb%20turns%2019%20today.%20Thank%20you%20all.%20%23%0D%0A%09got%20a%20blinking%20cursor%20in%20firefox%20and%20scrolling%20with%20the%20keyboard%20sucks%20now%3F%20...%20disable%20%22caret%22%20mode%20by%20pressing%20F7%20or%20via%20about%3Aconfig.%20%23%0D%0A%09MySQL%20Python%2FConnector%20actually%20only%20works%20with%20Python%20%26" title="del.icio.us"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Twitter%20Weekly%20for%202009-10-24%20-%20http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F" title="Twitter"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F&amp;title=Twitter%20Weekly%20for%202009-10-24" title="Reddit"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F&amp;title=Twitter%20Weekly%20for%202009-10-24&amp;bodytext=%0D%0A%09RT%20%40IMDb%20%23IMDb%20turns%2019%20today.%20Thank%20you%20all.%20%23%0D%0A%09got%20a%20blinking%20cursor%20in%20firefox%20and%20scrolling%20with%20the%20keyboard%20sucks%20now%3F%20...%20disable%20%22caret%22%20mode%20by%20pressing%20F7%20or%20via%20about%3Aconfig.%20%23%0D%0A%09MySQL%20Python%2FConnector%20actually%20only%20works%20with%20Python%20%26" title="Digg"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F&amp;title=Twitter%20Weekly%20for%202009-10-24&amp;body=%0D%0A%09RT%20%40IMDb%20%23IMDb%20turns%2019%20today.%20Thank%20you%20all.%20%23%0D%0A%09got%20a%20blinking%20cursor%20in%20firefox%20and%20scrolling%20with%20the%20keyboard%20sucks%20now%3F%20...%20disable%20%22caret%22%20mode%20by%20pressing%20F7%20or%20via%20about%3Aconfig.%20%23%0D%0A%09MySQL%20Python%2FConnector%20actually%20only%20works%20with%20Python%20%26" title="Ping.fm"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Twitter%20Weekly%20for%202009-10-24&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F" title="Slashdot"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F&amp;t=Twitter%20Weekly%20for%202009-10-24" title="Facebook"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F&amp;t=Twitter%20Weekly%20for%202009-10-24" title="MySpace"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F" title="Technorati"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F&amp;h=Twitter%20Weekly%20for%202009-10-24" title="NewsVine"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F&amp;t=Twitter%20Weekly%20for%202009-10-24&amp;s=%0D%0A%09RT%20%40IMDb%20%23IMDb%20turns%2019%20today.%20Thank%20you%20all.%20%23%0D%0A%09got%20a%20blinking%20cursor%20in%20firefox%20and%20scrolling%20with%20the%20keyboard%20sucks%20now%3F%20...%20disable%20%22caret%22%20mode%20by%20pressing%20F7%20or%20via%20about%3Aconfig.%20%23%0D%0A%09MySQL%20Python%2FConnector%20actually%20only%20works%20with%20Python%20%26" title="Tumblr"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ftwitter-weekly-for-2009-10-24%2F&amp;title=Twitter%20Weekly%20for%202009-10-24" title="StumbleUpon"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://demmer.ipax.at/blog/twitter-weekly-for-2009-10-24/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python: easy_install behind proxy with Windows</title>
		<link>http://demmer.ipax.at/blog/python-easy_install-behind-proxy-under-windows/</link>
		<comments>http://demmer.ipax.at/blog/python-easy_install-behind-proxy-under-windows/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 10:04:49 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://demmer.ipax.at/blog/?p=580</guid>
		<description><![CDATA[In general you just need to set the HTTP_PROXY environment variable to make easy_install work through a proxy. With Linux you do the using the &#8220;export&#8221; command and add it to you .bashrc or something. On Windows you can either use the &#8220;set&#8221; command every time or set the variable permanently in Control Panel &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>In general you just need to set the HTTP_PROXY environment variable to make easy_install work through a proxy. With Linux you do the using the &#8220;export&#8221; command and add it to you .bashrc or something. On Windows you can either use the &#8220;set&#8221; command every time or set the variable permanently in Control Panel &#8211; System &#8211; Advanced &#8211; Environment Variables. The value of the variable should be &#8220;http://&lt;proxyhost&gt;:&lt;port&gt;&#8221;</p>




	<a rel="nofollow"  target="_blank" href="mailto:?subject=Python%3A%20easy_install%20behind%20proxy%20with%20Windows&amp;body=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F" title="email"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F&amp;partner=sociable" title="PDF"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F&amp;title=Python%3A%20easy_install%20behind%20proxy%20with%20Windows&amp;annotation=In%20general%20you%20just%20need%20to%20set%20the%20HTTP_PROXY%20environment%20variable%20to%20make%20easy_install%20work%20through%20a%20proxy.%20With%20Linux%20you%20do%20the%20using%20the%20%22export%22%20command%20and%20add%20it%20to%20you%20.bashrc%20or%20something.%20On%20Windows%20you%20can%20either%20use%20the%20%22set%22%20command%20ev" title="Google Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F&amp;t=Python%3A%20easy_install%20behind%20proxy%20with%20Windows&opener=bm&amp;ei=UTF-8&amp;d=In%20general%20you%20just%20need%20to%20set%20the%20HTTP_PROXY%20environment%20variable%20to%20make%20easy_install%20work%20through%20a%20proxy.%20With%20Linux%20you%20do%20the%20using%20the%20%22export%22%20command%20and%20add%20it%20to%20you%20.bashrc%20or%20something.%20On%20Windows%20you%20can%20either%20use%20the%20%22set%22%20command%20ev" title="Yahoo! Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F&amp;title=Python%3A%20easy_install%20behind%20proxy%20with%20Windows&amp;notes=In%20general%20you%20just%20need%20to%20set%20the%20HTTP_PROXY%20environment%20variable%20to%20make%20easy_install%20work%20through%20a%20proxy.%20With%20Linux%20you%20do%20the%20using%20the%20%22export%22%20command%20and%20add%20it%20to%20you%20.bashrc%20or%20something.%20On%20Windows%20you%20can%20either%20use%20the%20%22set%22%20command%20ev" title="del.icio.us"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Python%3A%20easy_install%20behind%20proxy%20with%20Windows%20-%20http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F" title="Twitter"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F&amp;title=Python%3A%20easy_install%20behind%20proxy%20with%20Windows" title="Reddit"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F&amp;title=Python%3A%20easy_install%20behind%20proxy%20with%20Windows&amp;bodytext=In%20general%20you%20just%20need%20to%20set%20the%20HTTP_PROXY%20environment%20variable%20to%20make%20easy_install%20work%20through%20a%20proxy.%20With%20Linux%20you%20do%20the%20using%20the%20%22export%22%20command%20and%20add%20it%20to%20you%20.bashrc%20or%20something.%20On%20Windows%20you%20can%20either%20use%20the%20%22set%22%20command%20ev" title="Digg"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F&amp;title=Python%3A%20easy_install%20behind%20proxy%20with%20Windows&amp;body=In%20general%20you%20just%20need%20to%20set%20the%20HTTP_PROXY%20environment%20variable%20to%20make%20easy_install%20work%20through%20a%20proxy.%20With%20Linux%20you%20do%20the%20using%20the%20%22export%22%20command%20and%20add%20it%20to%20you%20.bashrc%20or%20something.%20On%20Windows%20you%20can%20either%20use%20the%20%22set%22%20command%20ev" title="Ping.fm"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Python%3A%20easy_install%20behind%20proxy%20with%20Windows&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F" title="Slashdot"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F&amp;t=Python%3A%20easy_install%20behind%20proxy%20with%20Windows" title="Facebook"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F&amp;t=Python%3A%20easy_install%20behind%20proxy%20with%20Windows" title="MySpace"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F" title="Technorati"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F&amp;h=Python%3A%20easy_install%20behind%20proxy%20with%20Windows" title="NewsVine"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F&amp;t=Python%3A%20easy_install%20behind%20proxy%20with%20Windows&amp;s=In%20general%20you%20just%20need%20to%20set%20the%20HTTP_PROXY%20environment%20variable%20to%20make%20easy_install%20work%20through%20a%20proxy.%20With%20Linux%20you%20do%20the%20using%20the%20%22export%22%20command%20and%20add%20it%20to%20you%20.bashrc%20or%20something.%20On%20Windows%20you%20can%20either%20use%20the%20%22set%22%20command%20ev" title="Tumblr"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Fpython-easy_install-behind-proxy-under-windows%2F&amp;title=Python%3A%20easy_install%20behind%20proxy%20with%20Windows" title="StumbleUpon"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://demmer.ipax.at/blog/python-easy_install-behind-proxy-under-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox vs. Chrome vs. IE8: multiple connections to one HTTP/SCGI/WSGI app</title>
		<link>http://demmer.ipax.at/blog/firefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app/</link>
		<comments>http://demmer.ipax.at/blog/firefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 13:03:43 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[scgi]]></category>
		<category><![CDATA[wsgi]]></category>

		<guid isPermaLink="false">http://demmer.ipax.at/blog/?p=573</guid>
		<description><![CDATA[I am currently evaluating ways to run a persistent Python WSGI Webapp using Apache2 or Lighttpd. The idea is to have a daemon running on it&#8217;s own doing all the work, that also has an interface towards the webserver.
So I set up Lighttpd as SCGI client and used flup to wrap a simple WSGI app [...]]]></description>
			<content:encoded><![CDATA[<p>I am currently evaluating ways to run a persistent Python WSGI Webapp using Apache2 or Lighttpd. The idea is to have a daemon running on it&#8217;s own doing all the work, that also has an interface towards the webserver.</p>
<p>So I set up Lighttpd as SCGI client and used <a href="http://trac.saddi.com/flup">flup</a> to wrap a simple WSGI app in a threaded SCGI server. The configuration is pretty straight forward &#8230;</p>
<pre>server.modules   += ( "mod_scgi" )
scgi.debug = 1

scgi.server = (
    "/" =>
    (
        "127.0.0.1" =>
        (
        "host" => "127.0.0.1",
        "port" => 4000,
        "check-local" => "disable",
        "disable-time" => 3
        )
    )
)</pre>
<p>&#8230; and an example app using flup is also available <a href="http://trac.saddi.com/flup/wiki/FlupServers">online</a>. I added a few lines to log the time the request arrived, a random time.sleep() and a log for after the sleep to simulate longer requests.</p>
<pre>
msg = "%s: %s: sleeping %s seconds, request %s" % (time.time(), thread.get_ident(), local, request)
time.sleep(random.randint(0,10))
msg = "%s\n%s: %s: slept for %s seconds!" % (msg, time.time(), thread.get_ident(), local)
</pre>
<p>The weirdness started when I actually tried to load the app in multiple tabs in Firefox at once. They were executed strictly one after the other. The start time stamp of the second tab was always about the finish time of the first and so on. Same effect with Chrome!</p>
<p>There is a forking and a threaded version of the flup SCGI server. I tried both. The thread.get_ident() output from my debug lines clearly showed that flup was multithreading. The serverside log of the SCGI/WSGI application however showed that the &#8220;GET /&#8221; requests did not come in all at once!</p>
<p>So I also set up Apache2 for the same SCGI server to see if Lighttpd was not working right. The configuration looked like this:</p>
<pre>LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so
SCGIMount / 127.0.0.1:4000</pre>
<p>Again, the requests were processed strictly sequential.</p>
<p>Ok, so maybe SCGI just sucks. So I tried mod_wsgi with Apache2, but of course that showed the same behavior.</p>
<p>Finally, in a moment of desperation, I tested the app using IE8&#8230; and everything worked perfectly. All three start-timestamps were about the same. Now&#8230; what&#8230;?!</p>
<p>Firefox&#8217;s &#8220;network.http.max-connections&#8221; is set to it&#8217;s default value of 8. Don&#8217;t know about Chrome, but a Wireshark trace clearly showed that Firefox and Chrome send the &#8220;GET /&#8221; requests only after the previous one finished (using the same source port), while IE8 fires all of them at once (opening a new socket for each).</p>
<p>What is this!? Some weird &#8220;only one connection per server IP&#8221; rule? If anybody can shed some light on this, please comment!</p>




	<a rel="nofollow"  target="_blank" href="mailto:?subject=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app&amp;body=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F" title="email"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F&amp;partner=sociable" title="PDF"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F&amp;title=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app&amp;annotation=I%20am%20currently%20evaluating%20ways%20to%20run%20a%20persistent%20Python%20WSGI%20Webapp%20using%20Apache2%20or%20Lighttpd.%20The%20idea%20is%20to%20have%20a%20daemon%20running%20on%20it%27s%20own%20doing%20all%20the%20work%2C%20that%20also%20has%20an%20interface%20towards%20the%20webserver.%0D%0A%0D%0ASo%20I%20set%20up%20Lighttpd%20as%20SCGI%20cl" title="Google Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F&amp;t=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app&opener=bm&amp;ei=UTF-8&amp;d=I%20am%20currently%20evaluating%20ways%20to%20run%20a%20persistent%20Python%20WSGI%20Webapp%20using%20Apache2%20or%20Lighttpd.%20The%20idea%20is%20to%20have%20a%20daemon%20running%20on%20it%27s%20own%20doing%20all%20the%20work%2C%20that%20also%20has%20an%20interface%20towards%20the%20webserver.%0D%0A%0D%0ASo%20I%20set%20up%20Lighttpd%20as%20SCGI%20cl" title="Yahoo! Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F&amp;title=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app&amp;notes=I%20am%20currently%20evaluating%20ways%20to%20run%20a%20persistent%20Python%20WSGI%20Webapp%20using%20Apache2%20or%20Lighttpd.%20The%20idea%20is%20to%20have%20a%20daemon%20running%20on%20it%27s%20own%20doing%20all%20the%20work%2C%20that%20also%20has%20an%20interface%20towards%20the%20webserver.%0D%0A%0D%0ASo%20I%20set%20up%20Lighttpd%20as%20SCGI%20cl" title="del.icio.us"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app%20-%20http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F" title="Twitter"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F&amp;title=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app" title="Reddit"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F&amp;title=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app&amp;bodytext=I%20am%20currently%20evaluating%20ways%20to%20run%20a%20persistent%20Python%20WSGI%20Webapp%20using%20Apache2%20or%20Lighttpd.%20The%20idea%20is%20to%20have%20a%20daemon%20running%20on%20it%27s%20own%20doing%20all%20the%20work%2C%20that%20also%20has%20an%20interface%20towards%20the%20webserver.%0D%0A%0D%0ASo%20I%20set%20up%20Lighttpd%20as%20SCGI%20cl" title="Digg"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F&amp;title=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app&amp;body=I%20am%20currently%20evaluating%20ways%20to%20run%20a%20persistent%20Python%20WSGI%20Webapp%20using%20Apache2%20or%20Lighttpd.%20The%20idea%20is%20to%20have%20a%20daemon%20running%20on%20it%27s%20own%20doing%20all%20the%20work%2C%20that%20also%20has%20an%20interface%20towards%20the%20webserver.%0D%0A%0D%0ASo%20I%20set%20up%20Lighttpd%20as%20SCGI%20cl" title="Ping.fm"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F" title="Slashdot"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F&amp;t=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app" title="Facebook"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F&amp;t=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app" title="MySpace"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F" title="Technorati"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F&amp;h=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app" title="NewsVine"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F&amp;t=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app&amp;s=I%20am%20currently%20evaluating%20ways%20to%20run%20a%20persistent%20Python%20WSGI%20Webapp%20using%20Apache2%20or%20Lighttpd.%20The%20idea%20is%20to%20have%20a%20daemon%20running%20on%20it%27s%20own%20doing%20all%20the%20work%2C%20that%20also%20has%20an%20interface%20towards%20the%20webserver.%0D%0A%0D%0ASo%20I%20set%20up%20Lighttpd%20as%20SCGI%20cl" title="Tumblr"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Ffirefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app%2F&amp;title=Firefox%20vs.%20Chrome%20vs.%20IE8%3A%20multiple%20connections%20to%20one%20HTTP%2FSCGI%2FWSGI%20app" title="StumbleUpon"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://demmer.ipax.at/blog/firefox-vs-chrome-vs-ie8-multiple-connections-to-one-httpscgiwsgi-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle &amp; Python</title>
		<link>http://demmer.ipax.at/blog/oracle-python/</link>
		<comments>http://demmer.ipax.at/blog/oracle-python/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 13:29:40 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://demmer.ipax.at/blog/?p=170</guid>
		<description><![CDATA[The module to access an Oracle database with Python is cx_Oracle. This works for all versions from 8i to 11g. To compile you need to have Oracle libraries, but luckily you do not need the full installation &#8212; the &#8220;instant client&#8221; with OCI is enough. (Thanks for pointing that out in this article.)
When using the [...]]]></description>
			<content:encoded><![CDATA[<p>The module to access an Oracle database with Python is <a href="http://sourceforge.net/projects/cx-oracle">cx_Oracle</a>. This works for all versions from 8i to 11g. To compile you need to have Oracle libraries, but luckily you do not need the full installation &#8212; the &#8220;<a href="http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html">instant client</a>&#8221; with OCI is enough. (Thanks for pointing that out in <a href="http://unpythonic.blogspot.com/2006/11/oracle-from-python-in-linux.html">this article</a>.)<br />
When using the compiled module make sure your ORACLE_HOME points to the instant client or your Oracle installation.</p>
<p><img src="http://farm4.static.flickr.com/3032/2787257998_48ef51307b_b.jpg" alt="" width="540px"/></p>
<p><a href="https://twiki.cern.ch/twiki/bin/view/PSSGroup/ConnectionManagement">Here</a> are a few tips if you run into cryptic ORA errors and <a href="http://wiki.oracle.com/page/Python">this</a> is the official Python page in the Oracle Wiki.</p>
<p>If you use a connection pool &#8212; do not trust it! Network problems or simple timeouts can happen silently and the connections the pool manages could be gone even though the acquire() works just fine. I learned that the hard way&#8230; always got an &#8220;ORA-03135 &#8211; Connection lost contact&#8221; after around 15 minutes idle. Interestingly each third retry worked again. My minimum pool size was two, so the third connection would always be a newly opened one.</p>
<p>My workaround is now a loop around a connect() method&#8230;</p>
<pre>success = False
for i in range(ORACLE_POOL_MIN+1):
    success = connect()
    if success: break
if not success: return
</pre>
<p>&#8230; and the connect() method has a short query to test the connection, before returning a success.</p>
<pre>conn = oracle.pool.acquire()
cursor = conn.cursor()
cursor.execute("SELECT * FROM dual")
</pre>




	<a rel="nofollow"  target="_blank" href="mailto:?subject=Oracle%20%26amp%3B%20Python&amp;body=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F" title="email"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F&amp;partner=sociable" title="PDF"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F&amp;title=Oracle%20%26amp%3B%20Python&amp;annotation=The%20module%20to%20access%20an%20Oracle%20database%20with%20Python%20is%20cx_Oracle.%20This%20works%20for%20all%20versions%20from%208i%20to%2011g.%20To%20compile%20you%20need%20to%20have%20Oracle%20libraries%2C%20but%20luckily%20you%20do%20not%20need%20the%20full%20installation%20--%20the%20%22instant%20client%22%20with%20OCI%20is%20enough.%20" title="Google Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F&amp;t=Oracle%20%26amp%3B%20Python&opener=bm&amp;ei=UTF-8&amp;d=The%20module%20to%20access%20an%20Oracle%20database%20with%20Python%20is%20cx_Oracle.%20This%20works%20for%20all%20versions%20from%208i%20to%2011g.%20To%20compile%20you%20need%20to%20have%20Oracle%20libraries%2C%20but%20luckily%20you%20do%20not%20need%20the%20full%20installation%20--%20the%20%22instant%20client%22%20with%20OCI%20is%20enough.%20" title="Yahoo! Bookmarks"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F&amp;title=Oracle%20%26amp%3B%20Python&amp;notes=The%20module%20to%20access%20an%20Oracle%20database%20with%20Python%20is%20cx_Oracle.%20This%20works%20for%20all%20versions%20from%208i%20to%2011g.%20To%20compile%20you%20need%20to%20have%20Oracle%20libraries%2C%20but%20luckily%20you%20do%20not%20need%20the%20full%20installation%20--%20the%20%22instant%20client%22%20with%20OCI%20is%20enough.%20" title="del.icio.us"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Oracle%20%26amp%3B%20Python%20-%20http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F" title="Twitter"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F&amp;title=Oracle%20%26amp%3B%20Python" title="Reddit"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F&amp;title=Oracle%20%26amp%3B%20Python&amp;bodytext=The%20module%20to%20access%20an%20Oracle%20database%20with%20Python%20is%20cx_Oracle.%20This%20works%20for%20all%20versions%20from%208i%20to%2011g.%20To%20compile%20you%20need%20to%20have%20Oracle%20libraries%2C%20but%20luckily%20you%20do%20not%20need%20the%20full%20installation%20--%20the%20%22instant%20client%22%20with%20OCI%20is%20enough.%20" title="Digg"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F&amp;title=Oracle%20%26amp%3B%20Python&amp;body=The%20module%20to%20access%20an%20Oracle%20database%20with%20Python%20is%20cx_Oracle.%20This%20works%20for%20all%20versions%20from%208i%20to%2011g.%20To%20compile%20you%20need%20to%20have%20Oracle%20libraries%2C%20but%20luckily%20you%20do%20not%20need%20the%20full%20installation%20--%20the%20%22instant%20client%22%20with%20OCI%20is%20enough.%20" title="Ping.fm"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Oracle%20%26amp%3B%20Python&amp;url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F" title="Slashdot"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F&amp;t=Oracle%20%26amp%3B%20Python" title="Facebook"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F&amp;t=Oracle%20%26amp%3B%20Python" title="MySpace"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F" title="Technorati"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F&amp;h=Oracle%20%26amp%3B%20Python" title="NewsVine"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F&amp;t=Oracle%20%26amp%3B%20Python&amp;s=The%20module%20to%20access%20an%20Oracle%20database%20with%20Python%20is%20cx_Oracle.%20This%20works%20for%20all%20versions%20from%208i%20to%2011g.%20To%20compile%20you%20need%20to%20have%20Oracle%20libraries%2C%20but%20luckily%20you%20do%20not%20need%20the%20full%20installation%20--%20the%20%22instant%20client%22%20with%20OCI%20is%20enough.%20" title="Tumblr"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdemmer.ipax.at%2Fblog%2Foracle-python%2F&amp;title=Oracle%20%26amp%3B%20Python" title="StumbleUpon"><img src="http://demmer.ipax.at/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://demmer.ipax.at/blog/oracle-python/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
