<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Austernkommunikation</title>
	<atom:link href="http://austernkommunikation.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://austernkommunikation.wordpress.com</link>
	<description>verwirrt im Web 2.0</description>
	<lastBuildDate>Thu, 25 Dec 2008 23:28:56 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='austernkommunikation.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Austernkommunikation</title>
		<link>http://austernkommunikation.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://austernkommunikation.wordpress.com/osd.xml" title="Austernkommunikation" />
	<atom:link rel='hub' href='http://austernkommunikation.wordpress.com/?pushpress=hub'/>
		<item>
		<title>as times goes by</title>
		<link>http://austernkommunikation.wordpress.com/2008/12/25/as-times-goes-by/</link>
		<comments>http://austernkommunikation.wordpress.com/2008/12/25/as-times-goes-by/#comments</comments>
		<pubDate>Thu, 25 Dec 2008 23:28:56 +0000</pubDate>
		<dc:creator>austernkommunikation</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Nicht kategorisiert]]></category>
		<category><![CDATA[fortschrittsbalken]]></category>
		<category><![CDATA[konsole]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[skript]]></category>
		<category><![CDATA[spinning wheel]]></category>

		<guid isPermaLink="false">http://austernkommunikation.wordpress.com/?p=67</guid>
		<description><![CDATA[Für den/die BenutzerIn ist es immer ganz angenehm, wenn sich auf den Bildschirm was bewegt damit er/sie weiß, das Programm läuft noch, auch wenn es etwas längert dauert. In der GUI Welt wurden deshalb Dinge wie der Fortschrittsbalken oder die drehende Sanduhr eingeführt. Auf der Konsole helfen simple ASCII-Zeichen das Gefühl das sich was tut [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=67&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Für den/die BenutzerIn ist es immer ganz angenehm, wenn sich auf den Bildschirm was bewegt damit er/sie weiß, das Programm läuft noch, auch wenn es etwas längert dauert.</p>
<p>In der GUI Welt wurden deshalb Dinge wie der Fortschrittsbalken oder die drehende Sanduhr eingeführt. Auf der Konsole helfen simple ASCII-Zeichen das Gefühl das sich was tut zu vermitteln.</p>
<p>Das kann dann beispielsweise so aussehen, wie in den folgenden beiden Beispielen. Statt<br />
<code><br />
for a in `seq 1 100`; do<br />
...<br />
</code><br />
könnte man in einem Skript eine Reihe von Dateien verarbeiten<br />
<code><br />
for file in `ls *.txt`; do<br />
...<br />
</code></p>
<p>Und wenn in der Schleife wirklich was passiert, kann auch auf den sleep Befehl verzichtet werden.</p>
<p><font color="#00ff00">&nbsp;1 </font><font color="#ff6060">#!/bin/bash</font><br />
<font color="#00ff00">&nbsp;2 </font><font color="#00ffff">c</font>=<font color="#ff40ff">(</font><font color="#ffff00">\|</font><font color="#ffff00">&nbsp;</font><font color="#ffff00">\\</font><font color="#ffff00">&nbsp;- </font><font color="#ffff00">\|</font><font color="#ffff00">&nbsp;/ -</font><font color="#ff40ff">)</font><br />
<font color="#00ff00">&nbsp;3 </font><font color="#00ffff">del</font>=<font color="#ffff00">&#8216;</font><font color="#ff40ff">\b</font><font color="#ffff00">&#8216;</font><br />
<font color="#00ff00">&nbsp;4 </font><br />
<font color="#00ff00">&nbsp;5 </font><font color="#ffff00">echo</font><font color="#ff40ff">&nbsp;-n </font><font color="#ffff00">&quot;</font><font color="#ff40ff">spinning wheel:&nbsp;&nbsp;</font><font color="#ffff00">&quot;</font><br />
<font color="#00ff00">&nbsp;6 </font><br />
<font color="#00ff00">&nbsp;7 </font><font color="#ffff00">for</font>&nbsp;a <font color="#ffff00">in</font>&nbsp;<font color="#ffff00">`seq </font><font color="#ff40ff">1</font><font color="#ffff00">&nbsp;</font><font color="#ff40ff">100</font><font color="#ffff00">`</font>; <font color="#ffff00">do</font><br />
<font color="#00ff00">&nbsp;8 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#ffff00">let</font>&nbsp;<font color="#00ffff">i</font>=<font color="#ffff00">(</font><font color="#ff40ff">$a</font>+<font color="#ff40ff">1</font><font color="#ffff00">)</font>%<font color="#ff40ff">6</font><br />
<font color="#00ff00">&nbsp;9 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#ffff00">echo</font><font color="#ff40ff">&nbsp;-n </font><font color="#ff40ff">${</font><font color="#ff40ff">c</font><font color="#ff40ff">[</font><font color="#ff40ff">$i</font><font color="#ff40ff">]</font><font color="#ff40ff">}</font><br />
<font color="#00ff00">10 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#ffff00">echo</font><font color="#ff40ff">&nbsp;-ne </font><font color="#ff40ff">$del</font><br />
<font color="#00ff00">11 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#ffff00">sleep</font>&nbsp;<font color="#ff40ff">0</font>.<font color="#ff40ff">2</font><br />
<font color="#00ff00">12 </font><font color="#ffff00">done</font><br />
<font color="#00ff00">13 </font><br />
<font color="#00ff00">14 </font><font color="#ffff00">echo</font><br />
<font color="#00ff00">15 </font><font color="#ffff00">echo</font><font color="#ff40ff">&nbsp;-n </font><font color="#ffff00">&quot;</font><font color="#ff40ff">oder:&nbsp;&nbsp;</font><font color="#ffff00">&quot;</font><br />
<font color="#00ff00">16 </font><br />
<font color="#00ff00">17 </font><font color="#00ffff">c</font>=<font color="#ff40ff">(</font><font color="#ffff00">. o </font><font color="#ff40ff">0</font><font color="#ffff00">&nbsp;O</font><font color="#ff40ff">)</font><br />
<font color="#00ff00">18 </font><br />
<font color="#00ff00">19 </font><font color="#ffff00">for</font>&nbsp;a <font color="#ffff00">in</font>&nbsp;<font color="#ffff00">`seq </font><font color="#ff40ff">1</font><font color="#ffff00">&nbsp;</font><font color="#ff40ff">200</font><font color="#ffff00">`</font>; <font color="#ffff00">do</font><br />
<font color="#00ff00">20 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#ffff00">let</font>&nbsp;<font color="#00ffff">i</font>=<font color="#ffff00">(</font><font color="#ff40ff">$a</font>+<font color="#ff40ff">1</font><font color="#ffff00">)</font>%<font color="#ff40ff">4</font><br />
<font color="#00ff00">21 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#ffff00">echo</font><font color="#ff40ff">&nbsp;-ne </font><font color="#ff40ff">$del</font><br />
<font color="#00ff00">22 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#ffff00">echo</font><font color="#ff40ff">&nbsp;-n </font><font color="#ff40ff">${</font><font color="#ff40ff">c</font><font color="#ff40ff">[</font><font color="#ff40ff">$i</font><font color="#ff40ff">]</font><font color="#ff40ff">}</font><br />
<font color="#00ff00">23 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#ffff00">sleep</font>&nbsp;<font color="#ff40ff">0</font>.<font color="#ff40ff">1</font><br />
<font color="#00ff00">24 </font><font color="#ffff00">done</font><br />
</font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/austernkommunikation.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/austernkommunikation.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/austernkommunikation.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/austernkommunikation.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/austernkommunikation.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/austernkommunikation.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/austernkommunikation.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/austernkommunikation.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/austernkommunikation.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/austernkommunikation.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/austernkommunikation.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/austernkommunikation.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/austernkommunikation.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/austernkommunikation.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=67&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://austernkommunikation.wordpress.com/2008/12/25/as-times-goes-by/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">austernkommunikation</media:title>
		</media:content>
	</item>
		<item>
		<title>secure google</title>
		<link>http://austernkommunikation.wordpress.com/2008/12/19/secure-google/</link>
		<comments>http://austernkommunikation.wordpress.com/2008/12/19/secure-google/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 20:09:02 +0000</pubDate>
		<dc:creator>austernkommunikation</dc:creator>
				<category><![CDATA[firefox-addons]]></category>
		<category><![CDATA[Nicht kategorisiert]]></category>
		<category><![CDATA[verschlüsselung]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[privacy]]></category>

		<guid isPermaLink="false">http://austernkommunikation.wordpress.com/?p=64</guid>
		<description><![CDATA[google anonym und ssl verschlüsselt benutzen? und dann auch noch ohne Werbung? Gibts nicht? Gibts doch: scroogle, der Screen Scraping Proxy für die Suchmaschine Google, schaltet sich als Zwischeninstanz zwischen deine Suchanfrage und die google Server und lässt damit jeden Versuch bei dir cookies abzuladen, deine IP zu speichern u.ä. ins leere laufen. Die Startseite [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=64&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>google anonym und ssl verschlüsselt benutzen? und dann auch noch ohne Werbung? Gibts nicht? Gibts doch:</p>
<p><a href="https://ssl.scroogle.org/">scroogle</a>, der Screen Scraping Proxy für die Suchmaschine Google, schaltet sich als Zwischeninstanz zwischen deine Suchanfrage und die google Server und lässt damit jeden Versuch bei dir cookies abzuladen, deine IP zu speichern u.ä. ins leere laufen.</p>
<p>Die Startseite mag etwas seltsam ausschauen, aber die Ergebnissseite präsentiert sich dafür umso aufgeräumter, übersichtlicher und zusätzlich vollkommen werbefrei. Nur die automatischen Korrekturvorschläge, bei falsch geschriebenen Suchbegriffen wird leider verschluckt.<br />
Default werden 100 Suchergebnisse (wenn vorhanden) aufgelistet.</p>
<p>Dazu empfehle ich das passende Suchmaschinen <a href="http://mycroft.mozdev.org/search-engines.html?name=scroogle">plugin</a> für Firefox, denn sonst benutzt man morgen aus Gewohnheit ja doch wieder<br />
&#8216;pure&#8217; google.</p>
<p>btw: für vimperator:</p>
<p>: dialog searchengines</p>
<p>scroogle ssl auswaehlen und mit schlüsselwort s verknüpfen.<br />
Und gesucht wird zukünftig ueber &#8216;o&#8217; + &#8216;s&#8217; + &#8216; suchwort&#8217;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/austernkommunikation.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/austernkommunikation.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/austernkommunikation.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/austernkommunikation.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/austernkommunikation.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/austernkommunikation.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/austernkommunikation.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/austernkommunikation.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/austernkommunikation.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/austernkommunikation.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/austernkommunikation.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/austernkommunikation.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/austernkommunikation.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/austernkommunikation.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=64&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://austernkommunikation.wordpress.com/2008/12/19/secure-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">austernkommunikation</media:title>
		</media:content>
	</item>
		<item>
		<title>vimperator</title>
		<link>http://austernkommunikation.wordpress.com/2008/12/18/vimperator/</link>
		<comments>http://austernkommunikation.wordpress.com/2008/12/18/vimperator/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 12:43:49 +0000</pubDate>
		<dc:creator>austernkommunikation</dc:creator>
				<category><![CDATA[firefox-addons]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[add-on]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://austernkommunikation.wordpress.com/?p=58</guid>
		<description><![CDATA[Ein wunderbares, nein großartiges firefox add-on habe ich heute entdeckt: vimperator &#8222;Vimperator is a free browser add-on for Firefox, which makes it look and behave like the Vim text editor. It has similar key bindings, and you could call it a modal web browser, as key bindings differ according to which mode you are in.&#8220; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=58&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ein wunderbares, nein großartiges firefox add-on habe ich heute entdeckt:</p>
<p><strong><a href="http://vimperator.org/trac/wiki/Vimperator">vimperator</a></strong></p>
<blockquote><p>&#8222;Vimperator is a free browser add-on for Firefox, which makes it look<br />
and behave like the Vim text editor. It has similar key bindings, and<br />
you could call it a modal web browser, as key bindings differ according<br />
to which mode you are in.&#8220;</p></blockquote>
<p>Nach der Installation fällt als erstes auf, dass die GUI deutlich<br />
schlanker ist. Die Titelzeile (mit der URL), die Menu- und<br />
Bookmarkleiste sind verschwunden, stattdessen ist am unteren Fensterand die vim typische status line zu erkennen. </p>
<p>Vimperator kennt wie vim zwei modi, den normal modus und den<br />
command-line modus in den mit &#8216;:&#8217; gewechsel wird.  bringt die<br />
Benutzerin zurück in den normal modus.</p>
<p>Es lohnt sich kurz das quick-start tutorial zu überfliegen um schnell<br />
eine Ahnung zu bekommen, wie sich tabs öffnen und schließen lassen und<br />
wie man zwischen den tabs navigieren kann.</p>
<p>Dann ist, vorrausgesetzt man ist an vim gewöhnt, alles weitere<br />
eigentlich sehr schnell vertraut.</p>
<p>Bequem finde ich, dass ich eigentlich vollkommen auf die maus<br />
verzeichten kann. &#8216;f&#8217; (oder &#8216;F&#8217;) markiert alle links mit einer Zahl -<br />
eingetippen und der link öffnet sich (in einem neuen Fenster). Beim<br />
Konqueror hab ich das auch schonmal gesehen.</p>
<p>so long&#8230;</p>
<p>:wq</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/austernkommunikation.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/austernkommunikation.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/austernkommunikation.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/austernkommunikation.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/austernkommunikation.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/austernkommunikation.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/austernkommunikation.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/austernkommunikation.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/austernkommunikation.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/austernkommunikation.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/austernkommunikation.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/austernkommunikation.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/austernkommunikation.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/austernkommunikation.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=58&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://austernkommunikation.wordpress.com/2008/12/18/vimperator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">austernkommunikation</media:title>
		</media:content>
	</item>
		<item>
		<title>Debian Pakete bauen</title>
		<link>http://austernkommunikation.wordpress.com/2008/11/08/debian-pakete-bauen/</link>
		<comments>http://austernkommunikation.wordpress.com/2008/11/08/debian-pakete-bauen/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 21:58:56 +0000</pubDate>
		<dc:creator>austernkommunikation</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[package]]></category>

		<guid isPermaLink="false">http://austernkommunikation.wordpress.com/?p=55</guid>
		<description><![CDATA[Ich brauche ein Debian Paket für pkpgcounter. Beim googlen habe ich dieses sehenswerte Video gefunden, das erläutert, wie man in wenigen Schritten ein python Programm in einem Debian Paket verpackt.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=55&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ich brauche ein Debian Paket für <a href="http://www.pykota.com/software/pkpgcounter">pkpgcounter</a>. Beim googlen habe ich <a href="http://showmedo.com/videos/video?name=linuxJensMakingDeb#TB_inline?&amp;width=776&amp;height=618&amp;inlineId=videoPlayer">dieses sehenswerte Video</a> gefunden, das erläutert, wie man in wenigen Schritten ein python Programm in einem Debian Paket verpackt.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/austernkommunikation.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/austernkommunikation.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/austernkommunikation.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/austernkommunikation.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/austernkommunikation.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/austernkommunikation.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/austernkommunikation.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/austernkommunikation.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/austernkommunikation.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/austernkommunikation.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/austernkommunikation.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/austernkommunikation.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/austernkommunikation.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/austernkommunikation.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=55&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://austernkommunikation.wordpress.com/2008/11/08/debian-pakete-bauen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">austernkommunikation</media:title>
		</media:content>
	</item>
		<item>
		<title>kernel-package&#8230;</title>
		<link>http://austernkommunikation.wordpress.com/2008/10/31/kernel-package/</link>
		<comments>http://austernkommunikation.wordpress.com/2008/10/31/kernel-package/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 23:17:12 +0000</pubDate>
		<dc:creator>austernkommunikation</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://austernkommunikation.wordpress.com/?p=47</guid>
		<description><![CDATA[&#8230;so heisst das debian paket, indem sich das programm make-kpkg verbirgt. hat ein wenig gedauert, bis ich das vorhin wieder gefunden hatte. make-kpkg ermöglicht es einen kernel the debian way zu kompilieren, d,h, das ergebnis ist ein deb paket, das ganz normal über die paketverwaltung installiert werden kann. in diesem fall mit dpkg -i und [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=47&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8230;so heisst das debian paket, indem sich das programm make-kpkg verbirgt.</p>
<p>hat ein wenig gedauert, bis ich das vorhin wieder gefunden hatte.</p>
<p>make-kpkg ermöglicht es einen kernel <em>the debian way</em> zu kompilieren, d,h, das ergebnis ist ein deb paket, das ganz normal über die paketverwaltung installiert werden kann.<br />
in diesem fall mit dpkg -i </p>
<p>und wieder deinstallieren (dpkg -r) und das ist der hauptgrund, warum ich es gegenüber einem make &amp;&amp; make modules &amp;&amp; cp x nach y usw usf. bevorzuge.</p>
<p><code><br />
# make-kpkg kernel_image --append-to-version=-`hostname`<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/austernkommunikation.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/austernkommunikation.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/austernkommunikation.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/austernkommunikation.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/austernkommunikation.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/austernkommunikation.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/austernkommunikation.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/austernkommunikation.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/austernkommunikation.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/austernkommunikation.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/austernkommunikation.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/austernkommunikation.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/austernkommunikation.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/austernkommunikation.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=47&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://austernkommunikation.wordpress.com/2008/10/31/kernel-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">austernkommunikation</media:title>
		</media:content>
	</item>
		<item>
		<title>/proc/sys/vm/block_dump</title>
		<link>http://austernkommunikation.wordpress.com/2008/10/25/procsysvmblock_dump/</link>
		<comments>http://austernkommunikation.wordpress.com/2008/10/25/procsysvmblock_dump/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 21:41:34 +0000</pubDate>
		<dc:creator>austernkommunikation</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://austernkommunikation.wordpress.com/?p=34</guid>
		<description><![CDATA[Für eine Solid State Disk, wie sie in meinem neuen aspire one drin ist, sind zu viele Schreibvorgänge tötlich. Deswegen wollte ich herausbekommen, welche wie oft auf die &#8222;platte&#8220; zugreifen. Nichts einfacher als das (sagte Piggeldi zu Frederick): $ cat 1 &#62; /proc/sys/vm/block_dump $ tail -f /var/log/kern.log und lesen&#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=34&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Für eine Solid State Disk, wie sie in meinem neuen aspire one drin ist, sind zu viele Schreibvorgänge <a href="http://de.wikipedia.org/wiki/Solid_State_Drive#Verschlei.C3.9F_und_Ausfallvorhersage">tötlich</a>. </p>
<p>Deswegen wollte ich herausbekommen, welche wie oft auf die &#8222;platte&#8220; zugreifen.</p>
<p>Nichts einfacher als das (sagte Piggeldi zu Frederick):</p>
<p>$ cat 1 &gt; /proc/sys/vm/block_dump<br />
$ tail -f /var/log/kern.log</p>
<p>und lesen&#8230;<br />
<a href="http://austernkommunikation.files.wordpress.com/2008/10/piggeldyundfrederik.jpg"><img src="http://austernkommunikation.files.wordpress.com/2008/10/piggeldyundfrederik.jpg?w=300&#038;h=179" alt="" title="piggeldyundfrederik" width="300" height="179" class="aligncenter size-medium wp-image-35" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/austernkommunikation.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/austernkommunikation.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/austernkommunikation.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/austernkommunikation.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/austernkommunikation.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/austernkommunikation.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/austernkommunikation.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/austernkommunikation.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/austernkommunikation.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/austernkommunikation.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/austernkommunikation.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/austernkommunikation.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/austernkommunikation.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/austernkommunikation.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=34&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://austernkommunikation.wordpress.com/2008/10/25/procsysvmblock_dump/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">austernkommunikation</media:title>
		</media:content>

		<media:content url="http://austernkommunikation.files.wordpress.com/2008/10/piggeldyundfrederik.jpg?w=300" medium="image">
			<media:title type="html">piggeldyundfrederik</media:title>
		</media:content>
	</item>
		<item>
		<title>pyosd: ein einfaches beispiel</title>
		<link>http://austernkommunikation.wordpress.com/2008/10/22/pyosd-ein-einfaches-beispiel/</link>
		<comments>http://austernkommunikation.wordpress.com/2008/10/22/pyosd-ein-einfaches-beispiel/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 18:10:09 +0000</pubDate>
		<dc:creator>austernkommunikation</dc:creator>
				<category><![CDATA[mcabber]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[osd]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://austernkommunikation.wordpress.com/?p=30</guid>
		<description><![CDATA[nach einer langen pause mal wieder ein beitrag. Ich hab gerade pythons On-Screen-Display Bibliothek pyosd entdeckt. Eine simple Schnittstelle zur X On-Screen Display library, die es ermöglicht jede beliebige Nachrichten im X display einzublenden. Eine gute Anwendung um pyosd auszuprobieren ist mcabber. Mcabber, ein consolenbasierter jabber client, der mittlerweile in Version 0.9.9 vorliegt bietet schon [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=30&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>nach einer langen pause mal wieder ein beitrag.</p>
<p>Ich hab gerade pythons On-Screen-Display Bibliothek <a href="http://freshmeat.net/projects/pyosd/">pyosd</a> entdeckt. Eine simple Schnittstelle zur X On-Screen Display library, die es ermöglicht jede beliebige Nachrichten im X display einzublenden.</p>
<p>Eine gute Anwendung um pyosd auszuprobieren ist <a href="http://www.lilotux.net/~mikael/mcabber/">mcabber</a>. Mcabber, ein consolenbasierter jabber client, der mittlerweile in Version 0.9.9 vorliegt bietet schon seit Version 0.7.1 die Möglichkeit events wie einkommende Nachrichten oder Statuswechsel der buddies an einen externen Befehl weiterzuleiten. Mcabber liefert z.B. ein <a href="http://www.lilotux.net/~mikael/mcabber/hg/index.cgi/file/ec55cdf44335/mcabber/contrib/events/eventcmd">einfaches Shellskript</a> aus, das jede Nachricht mit einem nervigen PING ankündigen kann oder ein <a href="http://www.lilotux.net/~mikael/mcabber/hg/index.cgi/file/ec55cdf44335/mcabber/contrib/events/eventcmd.osd">Skript</a>, dass osd_cat verwendet um die Nachricht auf dem X Display anzukündigen.</p>
<p>Aus der mcabberrc:</p>
<p><font face="monospace"><br />
<font color="#00ff00">&nbsp;1 </font><font color="#ff6060"># External command for events You can specify a script or</font><br />
<font color="#00ff00">&nbsp;2 </font><font color="#ff6060"># process to be launched when an event occurs.&nbsp;&nbsp;Set</font><br />
<font color="#00ff00">&nbsp;3 </font><font color="#ff6060"># &#8216;events_ignore_active_window&#8217; to 1 if you don&#8217;t want the</font><br />
<font color="#00ff00">&nbsp;4 </font><font color="#ff6060"># script to be run for a message to the current active</font><br />
<font color="#00ff00">&nbsp;5 </font><font color="#ff6060"># window (default: 0).</font><br />
<font color="#00ff00">&nbsp;6 </font><font color="#ff6060">#</font><br />
<font color="#00ff00">&nbsp;7 </font><font color="#ff6060"># If &#8216;event_log_files&#8217; is set, a file is created and</font><br />
<font color="#00ff00">&nbsp;8 </font><font color="#ff6060"># contains the body of the message (incoming messages only);</font><br />
<font color="#00ff00">&nbsp;9 </font><font color="#ff6060"># the file name is the last parameter.&nbsp;&nbsp;If you enable this,</font><br />
<font color="#00ff00">10 </font><font color="#ff6060"># you can specify the directory mcabber will use to create</font><br />
<font color="#00ff00">11 </font><font color="#ff6060"># these messages with the &#8216;event_log_dir&#8217; variable (default</font><br />
<font color="#00ff00">12 </font><font color="#ff6060"># is the system temp dir, or MCABBERTMPDIR environment</font><br />
<font color="#00ff00">13 </font><font color="#ff6060"># variable).&nbsp;&nbsp;Please note that mcabber won&#8217;t delete these</font><br />
<font color="#00ff00">14 </font><font color="#ff6060"># files, it&#8217;s your script&#8217;s job.</font><br />
<font color="#00ff00">15 </font><font color="#ff6060">#</font><br />
<font color="#00ff00">16 </font><font color="#ff6060"># The command is called the following way: </font><br />
<font color="#00ff00">17 </font><font color="#ff6060"># $events_command MSG IN jabber@id [file] </font><br />
<font color="#00ff00">18 </font><font color="#ff6060">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (when receiving a message)</font><br />
<font color="#00ff00">19 </font><font color="#ff6060"># $events_command MSG OUT jabber@id&nbsp;&nbsp; </font><br />
<font color="#00ff00">20 </font><font color="#ff6060">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (when sending a message) </font><br />
<font color="#00ff00">21 </font><font color="#ff6060"># $events_command MSG MUC room_id [file]&nbsp;&nbsp;</font><br />
<font color="#00ff00">22 </font><font color="#ff6060">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (when receiving a MUC message)</font><br />
<font color="#00ff00">23 </font><font color="#ff6060"># $events_command STATUS X jabber@id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><br />
<font color="#00ff00">24 </font><font color="#ff6060">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (new buddy status is X) </font><br />
<font color="#00ff00">25 </font><font color="#ff6060"># See sample script in contrib/ directory.</font><br />
<font color="#00ff00">26 </font>set events_command = ~/.mcabber/eventcmd.py<br />
~                                                                                      </p>
<p>Das osd_cat Shellskript lässt sich schnell mit python und pyosd ersetzen:</p>
<p><font face="monospace"><br />
<font color="#00ff00">&nbsp;1 </font><font color="#ff6060">#!/usr/bin/python</font><br />
<font color="#00ff00">&nbsp;2 </font><font color="#ff6060">#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</font><br />
<font color="#00ff00">&nbsp;3 </font><font color="#ff6060">#</font><br />
<font color="#00ff00">&nbsp;4 </font><font color="#ff6060">#</font><br />
<font color="#00ff00">&nbsp;5 </font><font color="#ff6060"># Filename:&nbsp;&nbsp;&nbsp;&nbsp;eventcmd.py</font><br />
<font color="#00ff00">&nbsp;6 </font><font color="#ff6060"># Description: OSD for mcabber events</font><br />
<font color="#00ff00">&nbsp;7 </font><font color="#ff6060"># Date:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10/22/08</font><br />
<font color="#00ff00">&nbsp;8 </font><font color="#ff6060">#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</font><br />
<font color="#00ff00">&nbsp;9 </font><br />
<font color="#00ff00">10 </font><br />
<font color="#00ff00">11 </font><font color="#ff40ff">import</font>&nbsp;pyosd<br />
<font color="#00ff00">12 </font><font color="#ff40ff">import</font>&nbsp;sys<br />
<font color="#00ff00">13 </font><font color="#ff40ff">import</font>&nbsp;os<br />
<font color="#00ff00">14 </font><font color="#ff40ff">from</font>&nbsp;random <font color="#ff40ff">import</font>&nbsp;randint<br />
<font color="#00ff00">15 </font><br />
<font color="#00ff00">16 </font><font color="#ff6060"># use xfontsel to select a font</font><br />
<font color="#00ff00">17 </font>FONT = <span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><font color="#ff40ff">-*-fixed-*-*-*-*-15-*-*-*-c-90-*-*</font><span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><br />
<font color="#00ff00">18 </font>COLOR_MSG=<span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><font color="#ff40ff">darkgreen</font><span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><br />
<font color="#00ff00">19 </font>COLOR_STATUS=<span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><font color="#ff40ff">yellow</font><span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><br />
<font color="#00ff00">20 </font>POSITION = pyosd.POS_BOT<br />
<font color="#00ff00">21 </font>ALIGN = pyosd.ALIGN_RIGHT<br />
<font color="#00ff00">22 </font>TIMEOUT = 10<br />
<font color="#00ff00">23 </font>MAXOFFSET = 100<br />
<font color="#00ff00">24 </font><font color="#ff6060"># maximum number of characters to display</font><br />
<font color="#00ff00">25 </font><font color="#ff6060"># 0: nothing from the message is displayed</font><br />
<font color="#00ff00">26 </font>MAXCHARS = 0<br />
<font color="#00ff00">27 </font><br />
<font color="#00ff00">28 </font><br />
<font color="#00ff00">29 </font>MSG_FROM = <span style="background-color:#808080;"><font color="#ffffff">&#8216;</font></span><font color="#ff40ff">msg from %s</font><span style="background-color:#808080;"><font color="#ffffff">&#8216;</font></span><br />
<font color="#00ff00">30 </font>MSG_SAYS = <span style="background-color:#808080;"><font color="#ffffff">&#8216;</font></span><font color="#ff40ff">%s: %s</font><span style="background-color:#808080;"><font color="#ffffff">&#8216;</font></span><br />
<font color="#00ff00">31 </font>OFFLINE = <span style="background-color:#808080;"><font color="#ffffff">&#8216;</font></span><font color="#ff40ff">%s offline</font><span style="background-color:#808080;"><font color="#ffffff">&#8216;</font></span><br />
<font color="#00ff00">32 </font>ONLINE = <span style="background-color:#808080;"><font color="#ffffff">&#8216;</font></span><font color="#ff40ff">%s online</font><span style="background-color:#808080;"><font color="#ffffff">&#8216;</font></span><br />
<font color="#00ff00">33 </font><br />
<font color="#00ff00">34 </font><br />
<font color="#00ff00">35 </font><font color="#ffff00">def</font>&nbsp;<font color="#00ffff">display</font>(str, color):<br />
<font color="#00ff00">36 </font>&nbsp;&nbsp;&nbsp;&nbsp;<span style="background-color:#808080;"><font color="#ffffff">&#8220;&#8217;</font></span><font color="#ff40ff">&nbsp;Show OSD message </font><span style="background-color:#808080;"><font color="#ffffff">&#8220;&#8217;</font></span><br />
<font color="#00ff00">37 </font><br />
<font color="#00ff00">38 </font>&nbsp;&nbsp;&nbsp;&nbsp;ods = pyosd.osd(font=<span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><font color="#ff40ff">fixed</font><span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span>, timeout=TIMEOUT)<br />
<font color="#00ff00">39 </font><br />
<font color="#00ff00">40 </font>&nbsp;&nbsp;&nbsp;&nbsp;ods.set_colour(color)<br />
<font color="#00ff00">41 </font>&nbsp;&nbsp;&nbsp;&nbsp;ods.set_font(FONT)<br />
<font color="#00ff00">42 </font>&nbsp;&nbsp;&nbsp;&nbsp;ods.set_align(ALIGN)<br />
<font color="#00ff00">43 </font>&nbsp;&nbsp;&nbsp;&nbsp;ods.set_pos(POSITION)<br />
<font color="#00ff00">44 </font><br />
<font color="#00ff00">45 </font>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ff6060"># change position randomly, so that</font><br />
<font color="#00ff00">46 </font>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ff6060"># new messages don&#8217;t cover old ones.</font><br />
<font color="#00ff00">47 </font>&nbsp;&nbsp;&nbsp;&nbsp;offset = randint(0,MAXOFFSET)<br />
<font color="#00ff00">48 </font>&nbsp;&nbsp;&nbsp;&nbsp;ods.set_vertical_offset(offset)<br />
<font color="#00ff00">49 </font><br />
<font color="#00ff00">50 </font>&nbsp;&nbsp;&nbsp;&nbsp;ods.display(str)<br />
<font color="#00ff00">51 </font>&nbsp;&nbsp;&nbsp;&nbsp;ods.wait_until_no_display()<br />
<font color="#00ff00">52 </font><br />
<font color="#00ff00">53 </font><br />
<font color="#00ff00">54 </font><br />
<font color="#00ff00">55 </font><font color="#ffff00">def</font>&nbsp;<font color="#00ffff">main</font>(e, w, b, f=None):<br />
<font color="#00ff00">56 </font>&nbsp;&nbsp;&nbsp;&nbsp;<span style="background-color:#808080;"><font color="#ffffff">&#8220;&#8217;</font></span><font color="#ff40ff">&nbsp;identify mcabber message </font><span style="background-color:#808080;"><font color="#ffffff">&#8220;&#8217;</font></span><br />
<font color="#00ff00">57 </font><br />
<font color="#00ff00">58 </font><br />
<font color="#00ff00">59 </font>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">if</font>&nbsp;e == <span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><font color="#ff40ff">MSG</font><span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span>:<br />
<font color="#00ff00">60 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">if</font>&nbsp;w == <span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><font color="#ff40ff">IN</font><span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span>:<br />
<font color="#00ff00">61 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">if</font>&nbsp;f <font color="#ffff00">and</font>&nbsp;MAXCHARS:<br />
<font color="#00ff00">62 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">print</font>&nbsp;<span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><font color="#ff40ff">using line</font><span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><br />
<font color="#00ff00">63 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;line = file(filename).readline().rstrip(<span style="background-color:#808080;"><font color="#ffffff">&#8216;</font></span><font color="#ffff00">\n</font><span style="background-color:#808080;"><font color="#ffffff">&#8216;</font></span>)<br />
<font color="#00ff00">64 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;file.close<br />
<font color="#00ff00">65 </font><br />
<font color="#00ff00">66 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">if</font>&nbsp;len(line) &gt;= MAXCHARS:<br />
<font color="#00ff00">67 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;line = line[:maxchars] + <span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><font color="#ff40ff">&#8230;</font><span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><br />
<font color="#00ff00">68 </font><br />
<font color="#00ff00">69 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg = MSG_SAYS % (b, line )<br />
<font color="#00ff00">70 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;os.remove(filename)<br />
<font color="#00ff00">71 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">else</font>:<br />
<font color="#00ff00">72 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg = MSG_FROM % b<br />
<font color="#00ff00">73 </font><br />
<font color="#00ff00">74 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display(msg, COLOR_MSG)<br />
<font color="#00ff00">75 </font><br />
<font color="#00ff00">76 </font>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">elif</font>&nbsp;e == <span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><font color="#ff40ff">STATUS</font><span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span>:<br />
<font color="#00ff00">77 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">if</font>&nbsp;w == <span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><font color="#ff40ff">_</font><span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span>:<br />
<font color="#00ff00">78 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display(OFFLINE % b, COLOR_STATUS)<br />
<font color="#00ff00">79 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">elif</font>&nbsp;w == <span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span><font color="#ff40ff">O</font><span style="background-color:#808080;"><font color="#ffffff">&quot;</font></span>:<br />
<font color="#00ff00">80 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display(ONLINE % b, COLOR_STATUS)<br />
<font color="#00ff00">81 </font><br />
<font color="#00ff00">82 </font><br />
<font color="#00ff00">83 </font><br />
<font color="#00ff00">84 </font><font color="#ffff00">if</font>&nbsp;__name__ == <span style="background-color:#808080;"><font color="#ffffff">&#8216;</font></span><font color="#ff40ff">__main__</font><span style="background-color:#808080;"><font color="#ffffff">&#8216;</font></span>:<br />
<font color="#00ff00">85 </font><br />
<font color="#00ff00">86 </font>&nbsp;&nbsp;&nbsp;&nbsp;event = sys.argv[1]<br />
<font color="#00ff00">87 </font>&nbsp;&nbsp;&nbsp;&nbsp;what = sys.argv[2]<br />
<font color="#00ff00">88 </font>&nbsp;&nbsp;&nbsp;&nbsp;buddy = sys.argv[3]<br />
<font color="#00ff00">89 </font><br />
<font color="#00ff00">90 </font><br />
<font color="#00ff00">91 </font>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">if</font>&nbsp;len(sys.argv) &gt; 4:<br />
<font color="#00ff00">92 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filename = sys.argv[4]<br />
<font color="#00ff00">93 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;main(event, what, buddy, filename)<br />
<font color="#00ff00">94 </font>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffff00">else</font>:<br />
<font color="#00ff00">95 </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;main(event, what, buddy)<br />
<font color="#00ff00">96 </font><br />
<font color="#00ff00">97 </font>&nbsp;&nbsp;&nbsp;&nbsp;sys.exit(0)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/austernkommunikation.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/austernkommunikation.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/austernkommunikation.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/austernkommunikation.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/austernkommunikation.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/austernkommunikation.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/austernkommunikation.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/austernkommunikation.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/austernkommunikation.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/austernkommunikation.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/austernkommunikation.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/austernkommunikation.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/austernkommunikation.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/austernkommunikation.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=30&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://austernkommunikation.wordpress.com/2008/10/22/pyosd-ein-einfaches-beispiel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">austernkommunikation</media:title>
		</media:content>
	</item>
		<item>
		<title>thunderbird plugin</title>
		<link>http://austernkommunikation.wordpress.com/2008/07/28/thunderbird-plugin/</link>
		<comments>http://austernkommunikation.wordpress.com/2008/07/28/thunderbird-plugin/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 14:01:41 +0000</pubDate>
		<dc:creator>austernkommunikation</dc:creator>
				<category><![CDATA[email]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[thunderbird]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://austernkommunikation.wordpress.com/?p=26</guid>
		<description><![CDATA[Für gewisse Dinge benutze ich nicht mutt. In diesen Fällen kommt für mich (zur Zeit) dann nur thunderbird in Frage. (Wer es genau wissen will: die Auto-Vervollständigung in thunderbird, die sich Adressen, die ich einmal verwendet habe merkt, ist für mich das ausschlaggebenste Argument.) Das tolle, oder eines der tollen Dinge an thunderbird ist, dass [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=26&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Für gewisse Dinge benutze ich nicht mutt. In diesen Fällen kommt für mich (zur Zeit) dann nur <a href="http://www.mozilla.com/en-US/thunderbird/">thunderbird</a> in Frage.<br />
(Wer es genau wissen will: die Auto-Vervollständigung in thunderbird, die sich Adressen, die ich einmal verwendet habe merkt, ist für mich das ausschlaggebenste Argument.)<br />
Das tolle, oder eines der tollen Dinge an thunderbird ist, dass er, wie firefox, über extensions erweitert werden kann.</p>
<p>Eines der schrecklichsten Dinge an thunderbird ist der Editor. Besonders dann, wenn ich mutt im Hinterkopf habe, der es mir erlaubt  jeden belieben Editor zu verwenden. z.b <a href="http://www.vim.org/">vim</a>.</p>
<p>Aber auch für dieses Problem existiert natürlich bereits eine Lösung in Form einer extention.<br />
<strong><a href="http://globs.org/articles.php?lng=en&amp;pg=2">External Editor Extension</a></strong> heisst das gute Stück, dass es ermöglicht jeden beliebigen Editor mit thunderbird zu kombinieren. Kurz <a href="http://globs.org/articles.php?lng=en&amp;pg=2">einrichten </a> und im composer STRG-E tippen und der heißgeliebte vim präsentiert mit meine mail.</p>
<p>fast wie mutt&#8230;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/austernkommunikation.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/austernkommunikation.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/austernkommunikation.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/austernkommunikation.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/austernkommunikation.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/austernkommunikation.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/austernkommunikation.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/austernkommunikation.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/austernkommunikation.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/austernkommunikation.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/austernkommunikation.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/austernkommunikation.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/austernkommunikation.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/austernkommunikation.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/austernkommunikation.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/austernkommunikation.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=26&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://austernkommunikation.wordpress.com/2008/07/28/thunderbird-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">austernkommunikation</media:title>
		</media:content>
	</item>
		<item>
		<title>screenshots von der konsole</title>
		<link>http://austernkommunikation.wordpress.com/2008/06/12/screenshots-von-der-konsole/</link>
		<comments>http://austernkommunikation.wordpress.com/2008/06/12/screenshots-von-der-konsole/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 16:01:45 +0000</pubDate>
		<dc:creator>austernkommunikation</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://austernkommunikation.wordpress.com/?p=25</guid>
		<description><![CDATA[jedes mal gimp starten um schnell einen screenshot zu machen das dauert mir einfach zu lange. Im gimp immer laufen lassen verbraucht zu viel RAM. Aber zum Glück gibt es für screenshots eine kleine und schnelle Lösung. Das Programm xwd aus dem Paket x11-apps erstellt screenshots auf der Konsole. xwd -out screenshoot.png und der Cursor [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=25&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>jedes mal gimp starten um schnell einen screenshot zu machen das dauert mir einfach zu lange.<br />
Im gimp immer laufen lassen verbraucht zu viel RAM.</p>
<p>Aber zum Glück gibt es für screenshots eine kleine und schnelle Lösung. Das Programm xwd aus dem Paket x11-apps erstellt screenshots auf der Konsole.</p>
<p><code> xwd -out screenshoot.png </code></p>
<p>und der Cursor verändert sich zu zu einem Kreuz, mit dem das gewünschte Fenster angeklickt werden kann. </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/austernkommunikation.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/austernkommunikation.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/austernkommunikation.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/austernkommunikation.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/austernkommunikation.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/austernkommunikation.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/austernkommunikation.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/austernkommunikation.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/austernkommunikation.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/austernkommunikation.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/austernkommunikation.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/austernkommunikation.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/austernkommunikation.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/austernkommunikation.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/austernkommunikation.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/austernkommunikation.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=25&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://austernkommunikation.wordpress.com/2008/06/12/screenshots-von-der-konsole/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">austernkommunikation</media:title>
		</media:content>
	</item>
		<item>
		<title>Sonnenaufgang berechnen mit perl</title>
		<link>http://austernkommunikation.wordpress.com/2008/05/31/sonnenaufgang-berechnen-mit-perl/</link>
		<comments>http://austernkommunikation.wordpress.com/2008/05/31/sonnenaufgang-berechnen-mit-perl/#comments</comments>
		<pubDate>Sat, 31 May 2008 13:58:48 +0000</pubDate>
		<dc:creator>austernkommunikation</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[sonnenaufgang]]></category>
		<category><![CDATA[sunrise]]></category>

		<guid isPermaLink="false">http://austernkommunikation.wordpress.com/?p=24</guid>
		<description><![CDATA[Berechnung des Sonnenaufgangs mit Perl, basierend auf http://lexikon.astronomie.info/zeitgleichung/ Jetzt würde ich nur noch gerne wissen, wie ich möglichst einfach bestimmen kann, ob a dem Tag Sommer- oder Winterzeit gilt. #!/usr/bin/perl -w #--------------------------------------- # # Filename: sonne.pl # Description: Berechnung von Sonnenauf- und Untergang. # Date: 05/24/08 #--------------------------------------- use strict; use Math::Trig 'acos'; my $day = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=24&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Berechnung des Sonnenaufgangs mit Perl, basierend auf <a href="http://lexikon.astronomie.info/zeitgleichung/">http://lexikon.astronomie.info/zeitgleichung/</a></p>
<p>Jetzt würde ich nur noch gerne wissen, wie ich möglichst einfach bestimmen kann, ob a dem Tag Sommer- oder Winterzeit gilt.</p>
<p><code></p>
<p>#!/usr/bin/perl -w<br />
#---------------------------------------<br />
#<br />
# Filename:    sonne.pl<br />
# Description: Berechnung von Sonnenauf- und Untergang.<br />
# Date:        05/24/08<br />
#---------------------------------------</p>
<p>use strict;<br />
use Math::Trig 'acos';</p>
<p>my $day = 150;</p>
<p>my $zeitzone = 1;</p>
<p># kontrolle:<br />
# http://lexikon.astronomie.info/zeitgleichung/sunscript.html</p>
<p># berlin<br />
my $breite = 52.5;<br />
my $laenge = 13.5;</p>
<p>my ($a, $u) = &amp;risingSun($breite, $laenge, $day);</p>
<p>print "Aufgang:   ". &amp;toMinute($a) . "\t" . $a ."\n";<br />
print "Untergang: ". &amp;toMinute($u) . "\t" . $u ."\n";</p>
<p>###################################################<br />
# Berechnet Zeitpunkt des Sonnenauf- und untergangs fuer einen<br />
# bestimmten Tag des Jahres.<br />
# Die Berechnung basiert auf  http://lexikon.astronomie.info/zeitgleichung/</p>
<p># Parameter:<br />
#  breite: geographische Breite in Bogenmaß<br />
#  laenge: geographische Länge in Grad<br />
#     day: Tag des Jahres.<br />
#<br />
# returns:<br />
#       (aufgang, untergang) als dezimalwert.<br />
#       fuer den Referenzbreitengrad 15°E. (MEZ)<br />
sub risingSun {<br />
###################################################<br />
    my $breite = shift;<br />
    my $laenge = shift;<br />
    my $day = shift;</p>
<p>    my $PI = 3.1415926536;<br />
    my $RAD = $PI/180.0;</p>
<p>    my $B = $breite * $RAD;</p>
<p>    my $zeitgleichung = -0.171 * sin(0.0337 * $day + 0.465) - 0.1299 * sin(0.01787 * $day - 0.168);</p>
<p>    my $deklination = 0.4095 * sin(0.016906 * ($day - 80.086));</p>
<p>    # daemmerung, wenn sonne 50 bogenminuten unterhalb des horizonts<br />
    my $h = -0.0145;<br />
    my $tmp = (sin($h) - (sin($B) * sin($deklination))) / (cos($B) * cos($deklination));</p>
<p>    if (abs($tmp) &gt; 1) {<br />
        # Mitternachtssonne o.ae.<br />
        warn("Sonne erreicht nie die geforderte Hoehe $h");<br />
        return -1;<br />
    }</p>
<p>    my $zeitdifferenz = 12 * acos( $tmp )/ $PI;</p>
<p>    # Mittlere Ortszeit:<br />
    my $a_ort = 12 - $zeitdifferenz - $zeitgleichung;<br />
    my $u_ort = 12 + $zeitdifferenz - $zeitgleichung;</p>
<p>    # 15. Breitengrad fuer MEZ.<br />
    my $a = $a_ort + (15 - $laenge ) * 4/60 + $zeitzone;<br />
    my $u = $u_ort + (15 - $laenge )  * 4/60 + $zeitzone;</p>
<p>    return ($a, $u);<br />
}</p>
<p>###################################################<br />
# wandelt einen dezimalwert in eine Zeitangabe der<br />
# Form HH:MM:SS<br />
sub toMinute {<br />
###################################################<br />
    my $time = shift;</p>
<p>    my $stunde   = int($time);<br />
    my $minuten  = ($time - int($time)) * 60;<br />
    my $sekunden = int(($minuten - int($minuten)) * 60);<br />
       $minuten  = int($minuten);</p>
<p>    return sprintf("%2d:%02d:%02d", $stunde, $minuten, $sekunden);<br />
}</p>
<p></code></p>
<p>update: erst jetzt fällt mir auf, dass es auch <a href="http://search.cpan.org/~rkhill/Astro-Sunrise-0.91/Sunrise.pm"> Perl Modul</a> dafür gibt.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/austernkommunikation.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/austernkommunikation.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/austernkommunikation.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/austernkommunikation.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/austernkommunikation.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/austernkommunikation.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/austernkommunikation.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/austernkommunikation.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/austernkommunikation.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/austernkommunikation.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/austernkommunikation.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/austernkommunikation.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/austernkommunikation.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/austernkommunikation.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/austernkommunikation.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/austernkommunikation.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=austernkommunikation.wordpress.com&amp;blog=2560521&amp;post=24&amp;subd=austernkommunikation&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://austernkommunikation.wordpress.com/2008/05/31/sonnenaufgang-berechnen-mit-perl/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">austernkommunikation</media:title>
		</media:content>
	</item>
	</channel>
</rss>
