<?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>Don&#039;t Panic! &#187; Python</title>
	<atom:link href="http://www.plasser.net/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.plasser.net</link>
	<description>Time is an illusion.</description>
	<lastBuildDate>Tue, 17 Jan 2012 10:43:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>From Scheme to Python</title>
		<link>http://www.plasser.net/2006/11/21/from-scheme-to-python/</link>
		<comments>http://www.plasser.net/2006/11/21/from-scheme-to-python/#comments</comments>
		<pubDate>Tue, 21 Nov 2006 17:12:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://plasser.net/?p=329</guid>
		<description><![CDATA[MIT has changed their introductory courses from Scheme to Python. Content-wise, the class is a mix as well. The first four weeks of C1 will be a lot like the first four weeks of 6.001, Abelson said. The difference is &#8230; <a href="http://www.plasser.net/2006/11/21/from-scheme-to-python/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://lambda-the-ultimate.org/node/1840">MIT has changed their introductory courses</a> from Scheme to <a href="http://python.org">Python</a>.</p>
<blockquote><p>Content-wise, the class is a mix as well. The first four weeks of C1<br />
will be a lot like the first four weeks of 6.001, Abelson said. The<br />
difference is that programming will be done in <b>Python and not Scheme</b>.</p></blockquote>
<p>Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/mit" rel="tag">mit</a>, <a class="performancingtags" href="http://technorati.com/tag/python" rel="tag">python</a>, <a class="performancingtags" href="http://technorati.com/tag/scheme" rel="tag">scheme</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.plasser.net/2006/11/21/from-scheme-to-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wenn Du bei * arbeiten willst, &#8230;</title>
		<link>http://www.plasser.net/2006/07/14/wenn-du-bei-arbeiten-willst/</link>
		<comments>http://www.plasser.net/2006/07/14/wenn-du-bei-arbeiten-willst/#comments</comments>
		<pubDate>Fri, 14 Jul 2006 21:25:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://plasser.net/?p=364</guid>
		<description><![CDATA[Wer die Story lesen will, bemühe bitte Google (und aufpassen, dass ihr keine Tomaten auf den Augen bekommt). Mein Script fand insgesamt 7 Unternehmen, die vorkommen können: IBM SAPXY SIEMENS Dresdner Bank AEG SAP Microsoft Meine Schlußfolgerung: Glaube keinem lustigen &#8230; <a href="http://www.plasser.net/2006/07/14/wenn-du-bei-arbeiten-willst/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wer die Story lesen will, bemühe bitte <a href="http://www.google.com/search?q=%22wenn+du+bei+*+arbeiten+willst,+brauchst+du+eine%22&amp;hl=de&amp;lr=lang_de&amp;rls=GGGL,GGGL:2006-22,GGGL:de&amp;start=0&amp;sa=N" target="_self">Google</a> (und aufpassen, dass ihr keine Tomaten auf den Augen bekommt).</p>
<p>Mein Script fand insgesamt <b>7 Unternehmen</b>, die vorkommen können:</p>
<ul>
<li>IBM</li>
<li>SAPXY</li>
<li>SIEMENS</li>
<li>Dresdner Bank</li>
<li>AEG</li>
<li>SAP</li>
<li>Microsoft</li>
</ul>
<p>Meine Schlußfolgerung: <b>Glaube keinem lustigen E-Mail auch nur ein Wort</b>, zumeist ist es völliger Stumpfsinn.<br />Mein Rat:<b> Löschen! Und zwar sofort.</b> Vor allem wenn es, so wie heute als Powerpoint-Datei rein kommt und gestern ein <a href="http://www.securityfocus.com/brief/254" target="_self">0-Day-Exploit</a> davon publik wurde (<a href="http://blogs.securiteam.com/index.php/archives/508" target="_self">mehr Info dazu</a>).</p>
<p>Hier noch das schnell rein gehackte Python-Skript (man braucht nur <a href="http://pygoogle.sourceforge.net/" target="_self">PyGoogle</a> und einen <a href="http://www.google.com/apis/index.html" target="_self">Google-API-Key</a>):
<pre>import googleimport refrom sets import Set

p = re.compile(r"wenn du bei (.*) arbeiten", re.I)companies = Set()  # pack them all in a single set for easier handling

for i in range(0,400,10):  offset = i  print offset  data = google.doGoogleSearch('"wenn du bei * arbeiten willst, brauchst du eine"',offset,10,"lang_de")  print data.meta.searchTime  for each in data.results:    m = p.search(each.snippet)    if m.groups():      companies.add(m.group(1))

print companies</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.plasser.net/2006/07/14/wenn-du-bei-arbeiten-willst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quotes in strings with python</title>
		<link>http://www.plasser.net/2005/12/15/quotes-in-strings-with-python/</link>
		<comments>http://www.plasser.net/2005/12/15/quotes-in-strings-with-python/#comments</comments>
		<pubDate>Wed, 14 Dec 2005 23:25:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://plasser.net/?p=401</guid>
		<description><![CDATA[AK has a rant about python and why it&#8217;s not his favourite language. He writes: 1. # replace *text* by '''text'''. 2. p = re.compile('*([^*]+)*',re.MULTILINE) 3. text = p.sub(r"""'''\1'''""",text) So many quotes, just awful, and so absolutely un-intuitive. First of &#8230; <a href="http://www.plasser.net/2005/12/15/quotes-in-strings-with-python/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://synflood.at/blog/">AK</a> has a <a href="http://synflood.at/blog/index.php?/archives/497-Why-python-is-not-my-favorite-language.html">rant about python</a> and why it&#8217;s not his favourite language. He writes:</p>
<blockquote>
<pre>   1. # replace *text* by '''text'''.   2. p = re.compile('*([^*]+)*',re.MULTILINE)   3. text = p.sub(r"""'''\1'''""",text) </pre>
<p>
So many quotes, just awful, and so absolutely un-intuitive.
</p></blockquote>
<p></p>
<p>First of all your regex will not work when you don&#8217;t escape the asterisks (the blog&#8217;s markup has eaten the backslashes?) and maybe I am missing something here, but why should we need multiline (raw) strings for the substitution? It should work with single double quotes.</p>
<pre>&gt;&gt;&gt; import re
&gt;&gt;&gt; p = re.compile ('\*([^*]+)\*', re.MULTILINE)
&gt;&gt;&gt; text = "convert the *markup*"
&gt;&gt;&gt; print p.sub(r"'''\1'''", text)
convert the '''markup'''
</pre>
<p>
Is there a better way to enter your string?</p>
<pre>&gt;&gt;&gt; s = "'" * 3
&gt;&gt;&gt; print r"%s\1%s" % (s,s)
'''\1'''
</pre>
<p>
IMHO not much better &#8230; but the following is an interesting approach (but not really suited for this simple problem):</p>
<pre>&gt;&gt;&gt; from string import Template

&gt;&gt;&gt; s = Template('$threesinglequotes\\1$threesinglequotes')
&gt;&gt;&gt; singlequote = "'"
&gt;&gt;&gt; s.substitute(threesinglequotes=singlequote*3)
"'''\\1'''"
&gt;&gt;&gt; p.sub(s.substitute(threesinglequotes=singlequote*3), text)
"convert the '''markup'''"
</pre>
<p></p>
<p>Hmm, overhead but readable, I&#8217;d prefer the simple string above.</p>
<p>BTW, which language supports better syntax to define the string &#8220;&#8221;&#8217;\1&#8221;&#8217;&#8221;?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plasser.net/2005/12/15/quotes-in-strings-with-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open the Google API</title>
		<link>http://www.plasser.net/2005/11/05/open-the-google-api/</link>
		<comments>http://www.plasser.net/2005/11/05/open-the-google-api/#comments</comments>
		<pubDate>Sat, 05 Nov 2005 01:42:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://plasser.net/?p=406</guid>
		<description><![CDATA[Dave Winer says: Clone the Google API.]]></description>
			<content:encoded><![CDATA[<p>Dave Winer says:  <q><a href="http://www.clonethegoogleapi.com">Clone the Google API</a>.</q></p>
]]></content:encoded>
			<wfw:commentRss>http://www.plasser.net/2005/11/05/open-the-google-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zeitchaos</title>
		<link>http://www.plasser.net/2005/10/30/zeitchaos/</link>
		<comments>http://www.plasser.net/2005/10/30/zeitchaos/#comments</comments>
		<pubDate>Sun, 30 Oct 2005 10:18:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://plasser.net/?p=408</guid>
		<description><![CDATA[Ich bin ja ein eingeschworener Gegner dieser Zeitumstellungen von Normalzeit auf Sommerzeit et vice versa. Heute ergab sich dadurch bei mir eine etwas chaotisch anmutende Situation. Ich habe zwei Funkuhren, die eine zeigte heute morgen statt 11:00 Uhr, 13:00 Uhr &#8230; <a href="http://www.plasser.net/2005/10/30/zeitchaos/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ich bin ja ein eingeschworener Gegner dieser Zeitumstellungen von Normalzeit auf Sommerzeit et vice versa. Heute ergab sich dadurch bei mir eine etwas chaotisch anmutende Situation.</p>
<p>Ich habe zwei Funkuhren, die eine zeigte heute morgen statt 11:00 Uhr, 13:00 Uhr (sic!), die andere korrekt 11:00 Uhr. Mein Mobiltelefon hatte (was ich nicht erwartet habe) von Sommerzeit auf Normalzeit umgestellt und zeigte 11:00 Uhr an. Mein Notebook war wohl auch  verwirrt und hat nicht richtig umgestellt, was zu einer Anzeige von 12:00 führte.</p>
<ul>
<li>Sommerzeit: 12:00 Uhr</li>
<li>Normalzeit: 11:00 Uhr</li>
<li>Mobiltelefon: 11:00 Uhr</li>
<li>Notebook: 12:00 Uhr</li>
<li>Funkuhr 1: 13:00 Uhr</li>
<li>Funkuhr 2: 11:00 Uhr</li>
</ul>
<p>Ich hatte also drei verschiedene Zeiten zur Auswahl, was direkt nach dem Aufstehen zu einigermassen Verwirrung bei mir führte. Ich musste mich an den guten alten Analog-Uhren orientieren, damit ich feststellen konnte welche Zeit wir hatten.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plasser.net/2005/10/30/zeitchaos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Musik der 2000er</title>
		<link>http://www.plasser.net/2005/10/25/musik-der-2000er/</link>
		<comments>http://www.plasser.net/2005/10/25/musik-der-2000er/#comments</comments>
		<pubDate>Tue, 25 Oct 2005 21:52:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://plasser.net/?p=409</guid>
		<description><![CDATA[Hmm, im Moment höre ich andauernd Cream-Songs und kann nicht genug davon kriegen. Keine Ahnung, aber die haben es mir angetan, letztendlich war das ja auch nur Pop-Rock aber eben melodisch und mit geilem Gitarrensound. Da kann ich mich nicht &#8230; <a href="http://www.plasser.net/2005/10/25/musik-der-2000er/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hmm, im Moment höre ich andauernd Cream-Songs und kann nicht genug davon kriegen. Keine Ahnung, aber die haben es mir angetan, letztendlich war das ja auch nur Pop-Rock aber eben melodisch und mit geilem Gitarrensound. Da kann ich mich nicht mal satthören davon, wobei ich so manchen Müll von heute nicht mal zweimal hören mag.</p>
<p><a href="http://uckan.info">Alp</a> <a href="http://uckan.info/2005/10/25/wo-bleibt-die-mukke-der-2000er/">schreibt davon</a>, dass er das Neue am Musikhorizont vermisst und die aktuelle Generation nur covert.</p>
<p>Gut, ich bin mit Blues und Beatles aufgewachsen, vielleicht bin ich auch schon zu <i>alt</i>, aber eine klare Musikrichtung ist in den letzten Jahren nicht erkennbar. Vielleicht auch ein Resultat all dieser Mixes und Mashups und so ist das nunmehr alles sehr bunt und vielfältig finde ich. Hat doch auch was, oder? &mdash; Gefallen muss einem nicht immer alles. Die Zeit heilt alle Wunder &#8230;</p>
</p>
<p>Gecovert wurde immer (auch von Cream z.B.), der Blues lebte sogar davon, also ich fühle keine Leere diesbezüglich.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.plasser.net/2005/10/25/musik-der-2000er/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Email turned 34</title>
		<link>http://www.plasser.net/2005/10/23/email-turned-34/</link>
		<comments>http://www.plasser.net/2005/10/23/email-turned-34/#comments</comments>
		<pubDate>Sun, 23 Oct 2005 00:25:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://plasser.net/?p=410</guid>
		<description><![CDATA[Paul Buchheit, Gmail Engineer, writes about the origins of email and its future: It&#8217;s difficult to pin down the exact origin of email, but in October 1971, an engineer named Ray Tomlinson chose the &#8216;@&#8217; symbol for email addresses and &#8230; <a href="http://www.plasser.net/2005/10/23/email-turned-34/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Paul Buchheit, Gmail Engineer, writes about the origins of email and its <a href="http://googleblog.blogspot.com/2005/10/guess-what-just-turned-34.html">future</a>:</p>
<blockquote><p>It&#8217;s difficult to pin down the exact origin of email, but in <a href="http://news.bbc.co.uk/2/hi/in_depth/sci_tech/2000/dot_life/1586229.stm">October 1971</a>, an engineer named Ray Tomlinson chose the &#8216;@&#8217; symbol for email addresses and wrote software to send <a href="http://openmap.bbn.com/%7Etomlinso/ray/firstemailframe.html">the first network email</a>.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.plasser.net/2005/10/23/email-turned-34/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flock &#8211; A New Browser Experience</title>
		<link>http://www.plasser.net/2005/10/21/flock-a-new-browser-experience/</link>
		<comments>http://www.plasser.net/2005/10/21/flock-a-new-browser-experience/#comments</comments>
		<pubDate>Thu, 20 Oct 2005 23:55:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://plasser.net/?p=411</guid>
		<description><![CDATA[I have tried Flock today on both Windows and Linux and it looks very nice. Sadly I am not able to post to my blog via Flock because I this here is a (simple) SimpleBlog in Plone 2.0.5 and it &#8230; <a href="http://www.plasser.net/2005/10/21/flock-a-new-browser-experience/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have tried <a href="http://www.flock.com/fiveways/togetstarted/">Flock</a> today on both Windows and Linux and it looks very nice. Sadly I am not able to post to my blog via Flock because I this here is a (simple) SimpleBlog in Plone 2.0.5 and it has no  api (I have plans to migrate this to Plone 2.1.1 and <a href="http://plone.org/products/quills">Quills</a> in the near future).</p>
<p>I instantly fell in love with Flock&#8217;s <a href="http://del.icio.us">del.icio.us</a> social bookmarking features. I don&#8217;t use Firefox&#8217;s bookmarks any more, only sometimes the toolbar folder for some quick links.</p>
<p>Go and get your own <a href="http://www.flock.com/fiveways/togetstarted/">Flock</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plasser.net/2005/10/21/flock-a-new-browser-experience/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Verschollene Aufnahmen</title>
		<link>http://www.plasser.net/2005/10/21/verschollene-aufnahmen/</link>
		<comments>http://www.plasser.net/2005/10/21/verschollene-aufnahmen/#comments</comments>
		<pubDate>Thu, 20 Oct 2005 23:37:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://plasser.net/?p=412</guid>
		<description><![CDATA[Herr Ostbahn sucht seine verschollenen Aufnahmen, genauso wie ich letztens eine von mir eingespielte Aufnahme von Santanas Black Magic Woman gesucht habe. Ich habe das etwa 1996 mit der MusicalWerkstadtWels live im Alten Schlachthof in Wels gespielt und kann mich &#8230; <a href="http://www.plasser.net/2005/10/21/verschollene-aufnahmen/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Herr <a href="http://de.wikipedia.org/wiki/Kurt_Ostbahn">Ostbahn</a> sucht seine <a href="http://wien.orf.at/magazin/lustaufwien/wohlfuehlen/stories/65253/">verschollenen Aufnahmen</a>, genauso wie ich letztens eine von mir eingespielte Aufnahme von Santanas Black Magic Woman gesucht habe. Ich habe das etwa 1996 mit der <a href="http://www.muwe.at">MusicalWerkstadtWels</a> live im Alten Schlachthof in Wels gespielt und kann mich an eine irrsinnig schlechte (Analog-)Kassettenversion erinnern, die ich zu Hause liegen hatte. Leider ging die irgendwie verloren und das Original ist auch nicht mehr auffindbar. Schade! In meiner Erinnerung ist das das beste Solo meiner <i>Karriere</i>.</p>
<div class="shadow"><img src="/assets/band-voices-01.jpg" /></div>
<p><br style="clear: both;" />(auf dem Foto bin ich der dritte von links, ca. 1996)</p>
<p>Ich habe zwar noch die Aufnahmen der &#8220;Flashback into the 60s&#8221;-CD, aber die sind bei weitem nicht so authentisch und gut wie die der Live-Aufnahme. Ich kann mich gut an den Auftritt erinnern, Augen zu und gespielt wie Gott <img src='http://www.plasser.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Schade!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plasser.net/2005/10/21/verschollene-aufnahmen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Büchse der Pandora &#8211; nun offen!</title>
		<link>http://www.plasser.net/2005/10/07/buchse-der-pandora-nun-offen/</link>
		<comments>http://www.plasser.net/2005/10/07/buchse-der-pandora-nun-offen/#comments</comments>
		<pubDate>Fri, 07 Oct 2005 00:01:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://plasser.net/?p=413</guid>
		<description><![CDATA[Im Armed Forces Institute of Pathology (Afip) in Rockville, Maryland, wurde der tödliche Erreger wiederbelebt.> Alles nur eine Sache des Trade-Offs, wenn es hilft zukünftige Influenza-Pandemien zu vermeiden, sehr gut, wenn es aber als perfekter Killervirus für militärische Zwecke missbraucht &#8230; <a href="http://www.plasser.net/2005/10/07/buchse-der-pandora-nun-offen/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Im Armed Forces Institute of Pathology (Afip) in Rockville, Maryland, wurde der <a href="http://www.zeit.de/2005/41/M-Grippe?page=1" title="Tod aus dem Eis -- Vor achtzig Jahren wütete die Spanische Grippe. Jetzt haben Forscher ihren Erreger reanimiert">tödliche Erreger wiederbelebt</a>.<br />><br />
Alles nur eine Sache des <a href="http:/www.schneier.com/" alt="Bruce Schneier's Weblog">Trade-Offs</a>, wenn es hilft zukünftige <a href="http://www.google.at/search?sourceid=navclient-ff&#038;ie=UTF-8&#038;rls=GGGL,GGGL:2005-09,GGGL:en&#038;q=influenza+pandemie" alt="Google Search: Influenza Pandemie">Influenza-Pandemien</a> zu vermeiden, sehr gut, wenn es aber als perfekter Killervirus für militärische Zwecke missbraucht wird, dann gute Nacht.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.plasser.net/2005/10/07/buchse-der-pandora-nun-offen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

