<?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>zahlenzerkleinerer</title>
	<atom:link href="http://zahlenzerkleinerer.de/feed" rel="self" type="application/rss+xml" />
	<link>http://zahlenzerkleinerer.de</link>
	<description>alles rund um elektronik und deren nebenwirkungen</description>
	<lastBuildDate>Mon, 30 Aug 2010 17:42:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Python Client f&#252;r das W&#252;rfelspiel</title>
		<link>http://zahlenzerkleinerer.de/1904/python-client-fuer-das-wuerfelspiel.html</link>
		<comments>http://zahlenzerkleinerer.de/1904/python-client-fuer-das-wuerfelspiel.html#comments</comments>
		<pubDate>Mon, 30 Aug 2010 17:42:14 +0000</pubDate>
		<dc:creator>dexta</dc:creator>
				<category><![CDATA[Coden / Hacken]]></category>

		<guid isPermaLink="false">http://zahlenzerkleinerer.de/?p=1904</guid>
		<description><![CDATA[Mein kleiner Beitrag, ein Python Client f&#252;r den Server des Wettbewerbs. Das Linux-Magazin l&#228;dt ein zum Programmierwettbewerb 2010. Im Heft 09/10 (ab 5. August am Kiosk) findet sich ab Seite 94 ein Artikel, der den Wettbewerb beschreibt. Dabei geht es darum, einen Client zu schreiben, der sich &#252;ber eine Netzwerkverbindung an wettbewerb.linux-magazin.de auf TCP-Port 3333 [...]]]></description>
			<content:encoded><![CDATA[<p>Mein kleiner Beitrag, ein Python Client f&#252;r den Server des <a href="http://wettbewerb.linux-magazin.de/index.php/Hauptseite">Wettbewerbs</a>.</p>
<blockquote><p>Das Linux-Magazin l&#228;dt ein zum Programmierwettbewerb 2010. Im Heft 09/10 (ab 5. August am Kiosk) findet sich ab Seite 94 ein Artikel, der den Wettbewerb beschreibt. Dabei geht es darum, einen Client zu schreiben, der sich &#252;ber eine Netzwerkverbindung an wettbewerb.linux-magazin.de auf TCP-Port 3333 verbindet und dort &#252;ber ein spezifiziertes Protokoll an einem W&#252;rfelspiel teilnimmt. </p></blockquote>
<p><span id="more-1904"></span></p>
<p>Aus einem Versuch wie es aussehen k&#246;nnte einen Client in Python zu schreiben ist ein Script entstanden das zumindest spielen kann. <a href="http://www.pasteall.org/15345/python">Code auf PasteALL</a></p>
<pre class="brush: python;">
#!/usr/bin/env python
import sys
import telnetlib
import re

HOST = &quot;wettbewerb.linux-magazin.de&quot;
PORT = &quot;3333&quot;

tn = telnetlib.Telnet(HOST,PORT)
print tn.read_until(&quot;\n&quot;)
tn.write(&quot;AUTH zahlenzerkleinerer.de auf gehts\n&quot;)
dran = re.compile(&quot;.*Du bist dran!.*&quot;)
win = re.compile(&quot;WIN ([0-9]{1,2}) ([0-9]{1,2}) (.*)&quot;)
loo = re.compile(&quot;DEF ([0-9]{1,2}) ([0-9]{1,2}) (.*)&quot;)
switchIt = 0
play = True
while play:
	line = tn.read_until(&quot;\n&quot;)
	print line
	if dran.search(line):
		if switchIt &gt; 4:
			tn.write(&quot;SAVE sicher ist sicher\n&quot;)
			switchIt = 0
		else:
			tn.write(&quot;ROLL weiter geht es\n&quot;)
			switchIt += 1
	if win.match(line):
		print &quot;GEWONNEN&quot;
		print &quot;mit %s zu %s&quot;%(win.match(line).group(1),win.match(line).group(2))
		#tn.write(&quot;exit\n&quot;) nicht noetig da der Server die Verbindung beendet
		play = False
	if loo.match(line):
		print &quot;VERLOREN&quot;
		print &quot;mit %s zu %s&quot;%(loo.match(line).group(1),loo.match(line).group(2))
		#tn.write(&quot;exit\n&quot;)
		play = False
</pre>
]]></content:encoded>
			<wfw:commentRss>http://zahlenzerkleinerer.de/1904/python-client-fuer-das-wuerfelspiel.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>LOLcats: Waas!</title>
		<link>http://zahlenzerkleinerer.de/1902/lolcats-waas.html</link>
		<comments>http://zahlenzerkleinerer.de/1902/lolcats-waas.html#comments</comments>
		<pubDate>Wed, 24 Mar 2010 20:44:39 +0000</pubDate>
		<dc:creator>dexta</dc:creator>
				<category><![CDATA[Unterhaltung]]></category>
		<category><![CDATA[lolcat]]></category>

		<guid isPermaLink="false">http://zahlenzerkleinerer.de/?p=1902</guid>
		<description><![CDATA[Was !?!! Der lag schon so hier bevor ich da war. see more Lolcats and funny pictures]]></description>
			<content:encoded><![CDATA[<p>Was !?!!<br />
Der lag schon so hier bevor ich da war.<br />
<span id="more-1902"></span><br />
<a href="http://icanhascheezburger.com/2010/03/23/funny-pictures-got-here/"><img title="funny-pictures-kitten-acts-innocent" src="http://icanhascheezburger.files.wordpress.com/2010/03/funny-pictures-kitten-acts-innocent.jpg" alt="funny pictures of cats with captions" /></a><br />see more <a href="http://icanhascheezburger.com">Lolcats and funny pictures</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zahlenzerkleinerer.de/1902/lolcats-waas.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Firefox has frozen</title>
		<link>http://zahlenzerkleinerer.de/1899/firefox-has-frozen.html</link>
		<comments>http://zahlenzerkleinerer.de/1899/firefox-has-frozen.html#comments</comments>
		<pubDate>Fri, 15 Jan 2010 10:10:47 +0000</pubDate>
		<dc:creator>dexta</dc:creator>
				<category><![CDATA[Unterhaltung]]></category>
		<category><![CDATA[lolcat]]></category>

		<guid isPermaLink="false">http://zahlenzerkleinerer.de/?p=1899</guid>
		<description><![CDATA[Firefox ist eingefroren. M&#246;chten sie Neustart J/N ? see more Lolcats and funny pictures]]></description>
			<content:encoded><![CDATA[<p>Firefox ist eingefroren.<br />
M&#246;chten sie Neustart J/N ?<br />
<span id="more-1899"></span><br />
<a href="http://icanhascheezburger.com/2010/01/10/funny-pictures-you-like-to-restart-yn/"><img title="funny-pictures-firefox-is-frozen" src="http://icanhascheezburger.wordpress.com/files/2010/01/funny-pictures-firefox-is-frozen.jpg" alt="funny pictures of cats with captions" /></a><br />see more <a href="http://icanhascheezburger.com">Lolcats and funny pictures</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zahlenzerkleinerer.de/1899/firefox-has-frozen.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ever have the feeling…</title>
		<link>http://zahlenzerkleinerer.de/1897/ever-have-the-feeling.html</link>
		<comments>http://zahlenzerkleinerer.de/1897/ever-have-the-feeling.html#comments</comments>
		<pubDate>Tue, 24 Nov 2009 17:19:30 +0000</pubDate>
		<dc:creator>dexta</dc:creator>
				<category><![CDATA[Unterhaltung]]></category>
		<category><![CDATA[lolcat]]></category>
		<category><![CDATA[Cat]]></category>
		<category><![CDATA[LOL]]></category>
		<category><![CDATA[deutsch]]></category>

		<guid isPermaLink="false">http://zahlenzerkleinerer.de/?p=1897</guid>
		<description><![CDATA[Immer dieses Gef&#252;hl &#8230;. Du wirst beobachtet ? see more Lolcats and funny pictures]]></description>
			<content:encoded><![CDATA[<p>Immer dieses Gef&#252;hl &#8230;.<br />
Du wirst beobachtet ?<br />
<span id="more-1897"></span><br />
<a href="http://icanhascheezburger.com/2009/11/23/funny-pictures-being-watched/"><img title="funny-pictures-cat-watches-you" src="http://icanhascheezburger.wordpress.com/files/2009/08/funny-pictures-cat-watches-you.jpg" alt="funny pictures of cats with captions"></a><br />see more <a href="http://icanhascheezburger.com">Lolcats and funny pictures</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zahlenzerkleinerer.de/1897/ever-have-the-feeling.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>u’z not doin well at dis game hooman</title>
		<link>http://zahlenzerkleinerer.de/1895/uz-not-doin-well-at-dis-game-hooman.html</link>
		<comments>http://zahlenzerkleinerer.de/1895/uz-not-doin-well-at-dis-game-hooman.html#comments</comments>
		<pubDate>Mon, 23 Nov 2009 17:18:48 +0000</pubDate>
		<dc:creator>dexta</dc:creator>
				<category><![CDATA[Unterhaltung]]></category>
		<category><![CDATA[lolcat]]></category>
		<category><![CDATA[Cat]]></category>
		<category><![CDATA[LOL]]></category>
		<category><![CDATA[deutsch]]></category>

		<guid isPermaLink="false">http://zahlenzerkleinerer.de/?p=1895</guid>
		<description><![CDATA[Du machst was falsch Mensch. Ein weiterer Ball ist Dir in das Loch gefallen. see more Lolcats and funny pictures]]></description>
			<content:encoded><![CDATA[<p>Du machst was falsch Mensch.<br />
Ein weiterer Ball ist Dir in das Loch gefallen.<br />
<span id="more-1895"></span><br />
<a href="http://icanhascheezburger.com/2009/11/22/funny-pictures-down-teh-hole/"><img title="funny-pictures-cat-watches-you-play-pool" src="http://icanhascheezburger.wordpress.com/files/2009/11/funny-pictures-cat-watches-you-play-pool.jpg" alt="funny pictures of cats with captions" /></a><br />see more <a href="http://icanhascheezburger.com">Lolcats and funny pictures</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zahlenzerkleinerer.de/1895/uz-not-doin-well-at-dis-game-hooman.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Waddya mean ‘Get help’?</title>
		<link>http://zahlenzerkleinerer.de/1892/waddya-mean-get-help.html</link>
		<comments>http://zahlenzerkleinerer.de/1892/waddya-mean-get-help.html#comments</comments>
		<pubDate>Fri, 20 Nov 2009 09:20:45 +0000</pubDate>
		<dc:creator>dexta</dc:creator>
				<category><![CDATA[Unterhaltung]]></category>
		<category><![CDATA[lolcat]]></category>
		<category><![CDATA[Cat]]></category>
		<category><![CDATA[LOL]]></category>
		<category><![CDATA[deutsch]]></category>

		<guid isPermaLink="false">http://zahlenzerkleinerer.de/?p=1892</guid>
		<description><![CDATA[Was hei&#223;t &#8220;Hole Hilfe!&#8221; ? Sehe ich f&#252;r dich aus wie Lassie &#8230; see more Lolcats and funny pictures]]></description>
			<content:encoded><![CDATA[<p>Was hei&#223;t &#8220;Hole Hilfe!&#8221; ?<br />
Sehe ich f&#252;r dich aus wie Lassie &#8230;<br />
<span id="more-1892"></span><br />
<a href="http://icanhascheezburger.com/2009/11/19/funny-pictures-look-like-lassie-to-you/"><img title="funny-pictures-cat-will-not-help-you" src="http://icanhascheezburger.wordpress.com/files/2009/11/funny-pictures-cat-will-not-help-you.jpg" alt="funny pictures of cats with captions" /></a><br />see more <a href="http://icanhascheezburger.com">Lolcats and funny pictures</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zahlenzerkleinerer.de/1892/waddya-mean-get-help.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It’s like</title>
		<link>http://zahlenzerkleinerer.de/1890/its-like.html</link>
		<comments>http://zahlenzerkleinerer.de/1890/its-like.html#comments</comments>
		<pubDate>Sun, 08 Nov 2009 20:14:22 +0000</pubDate>
		<dc:creator>dexta</dc:creator>
				<category><![CDATA[Unterhaltung]]></category>
		<category><![CDATA[lolcat]]></category>
		<category><![CDATA[Cat]]></category>
		<category><![CDATA[LOL]]></category>
		<category><![CDATA[deutsch]]></category>

		<guid isPermaLink="false">http://zahlenzerkleinerer.de/?p=1890</guid>
		<description><![CDATA[Es ist als w&#252;rde ich in den Spiegel gucken. see more Lolcats and funny pictures]]></description>
			<content:encoded><![CDATA[<p>Es ist als w&#252;rde ich in den Spiegel gucken.<br />
<span id="more-1890"></span><br />
<a href="http://icanhascheezburger.com/2009/11/06/funny-pictures-lookn-in-da-merror/"><img title="funny-pictures-cat-thinks-he-is-tiger" src="http://icanhascheezburger.wordpress.com/files/2009/10/funny-pictures-cat-thinks-he-is-tiger.jpg" alt="funny pictures of cats with captions" /></a><br />see more <a href="http://icanhascheezburger.com">Lolcats and funny pictures</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zahlenzerkleinerer.de/1890/its-like.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Plz to open door.</title>
		<link>http://zahlenzerkleinerer.de/1888/plz-to-open-door.html</link>
		<comments>http://zahlenzerkleinerer.de/1888/plz-to-open-door.html#comments</comments>
		<pubDate>Sat, 07 Nov 2009 09:28:50 +0000</pubDate>
		<dc:creator>dexta</dc:creator>
				<category><![CDATA[Unterhaltung]]></category>
		<category><![CDATA[lolcat]]></category>
		<category><![CDATA[Cat]]></category>
		<category><![CDATA[LOL]]></category>
		<category><![CDATA[deutsch]]></category>

		<guid isPermaLink="false">http://zahlenzerkleinerer.de/?p=1888</guid>
		<description><![CDATA[W&#252;rdest du mir bitte die T&#252;r &#246;ffnen ? Nicht das ich sicher bin das ich raus will. Aber in die T&#252;r stellen und dann &#252;berlegen ob ich wirklich raus will. Das verstehst du nicht das ist so ein Katzen Ding&#8230; see more Lolcats and funny pictures]]></description>
			<content:encoded><![CDATA[<p>W&#252;rdest du mir bitte die T&#252;r &#246;ffnen ?<br />
Nicht das ich sicher bin das ich raus will.<br />
Aber in die T&#252;r stellen und dann &#252;berlegen ob<br />
ich wirklich raus will.<br />
Das verstehst du nicht das ist so ein Katzen Ding&#8230;<br />
<span id="more-1888"></span><br />
<a href="http://icanhascheezburger.com/2009/07/12/funny-pictures-you-wouldnt-understand/"><img class="mine_4522957" title="funny-pictures-cat-asks-you-to-open-door" src="http://icanhascheezburger.wordpress.com/files/2009/06/funny-pictures-cat-asks-you-to-open-door.jpg" alt="funny-pictures-cat-asks-you-to-open-door" /></a><br />see more <a href="http://icanhascheezburger.com">Lolcats and funny pictures</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zahlenzerkleinerer.de/1888/plz-to-open-door.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Well, they’re mine</title>
		<link>http://zahlenzerkleinerer.de/1886/well-theyre-mine.html</link>
		<comments>http://zahlenzerkleinerer.de/1886/well-theyre-mine.html#comments</comments>
		<pubDate>Thu, 05 Nov 2009 23:27:26 +0000</pubDate>
		<dc:creator>dexta</dc:creator>
				<category><![CDATA[Unterhaltung]]></category>
		<category><![CDATA[lolcat]]></category>
		<category><![CDATA[Cat]]></category>
		<category><![CDATA[LOL]]></category>
		<category><![CDATA[deutsch]]></category>

		<guid isPermaLink="false">http://zahlenzerkleinerer.de/?p=1886</guid>
		<description><![CDATA[So das sind meine, oder bist du anderer Meinung ? see more Lolcats and funny pictures]]></description>
			<content:encoded><![CDATA[<p>So das sind meine,<br />
oder bist du anderer Meinung ?<br />
<span id="more-1886"></span><br />
<a href="http://icanhascheezburger.com/2009/11/04/funny-pictures-now-arent-they/"><img title="funny-pictures-cat-eats-your-pancakes" src="http://icanhascheezburger.wordpress.com/files/2009/09/funny-pictures-cat-eats-your-pancakes.jpg" alt="funny pictures of cats with captions" /></a><br />see more <a href="http://icanhascheezburger.com">Lolcats and funny pictures</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zahlenzerkleinerer.de/1886/well-theyre-mine.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What iz you doin</title>
		<link>http://zahlenzerkleinerer.de/1880/what-iz-you-doin.html</link>
		<comments>http://zahlenzerkleinerer.de/1880/what-iz-you-doin.html#comments</comments>
		<pubDate>Thu, 05 Nov 2009 10:12:37 +0000</pubDate>
		<dc:creator>dexta</dc:creator>
				<category><![CDATA[Unterhaltung]]></category>
		<category><![CDATA[lolcat]]></category>
		<category><![CDATA[Cat]]></category>
		<category><![CDATA[LOL]]></category>
		<category><![CDATA[deutsch]]></category>

		<guid isPermaLink="false">http://zahlenzerkleinerer.de/?p=1880</guid>
		<description><![CDATA[Was machst du auf dem Boden. Bist du schon wieder betrunken ? see more Lolcats and funny pictures]]></description>
			<content:encoded><![CDATA[<p>Was machst du auf dem Boden.<br />
Bist du schon wieder betrunken ?<br />
<span id="more-1880"></span><br />
<a href="http://icanhascheezburger.com/2008/12/10/funny-pictures-doin-on-da-flor-iz-you-drunk-agin/"><img class="mine_2674366" title="funny-pictures-cat-asks-what-you-are-doing-on-the-floor" src="http://icanhascheezburger.wordpress.com/files/2008/11/funny-pictures-cat-asks-what-you-are-doing-on-the-floor.jpg" alt="funny pictures of cats with captions" /></a><br />see more <a href="http://icanhascheezburger.com">Lolcats and funny pictures</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zahlenzerkleinerer.de/1880/what-iz-you-doin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
