<?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>Axel's Travelog</title>
	<atom:link href="http://amagard.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://amagard.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 24 Jan 2012 12:59:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='amagard.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Axel's Travelog</title>
		<link>http://amagard.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://amagard.wordpress.com/osd.xml" title="Axel&#039;s Travelog" />
	<atom:link rel='hub' href='http://amagard.wordpress.com/?pushpress=hub'/>
		<item>
		<title>A Python Expression Evaluator</title>
		<link>http://amagard.wordpress.com/2012/01/24/a-python-expression-evaluator/</link>
		<comments>http://amagard.wordpress.com/2012/01/24/a-python-expression-evaluator/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 12:59:19 +0000</pubDate>
		<dc:creator>amagard</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">https://amagard.wordpress.com/?p=409</guid>
		<description><![CDATA[To start going with my first little Python based web application here I came up with Python Expression Evaluator. What is does ? The name says it all: it evaluates Python expressions, which the user can enter into a form and send to the server where this little 25-liner does its work and returns the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=409&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To start going with my first little Python based web application here I came up with <a href="http://www.amagard.frihost.org/cgi-bin/py_eval.py">Python Expression Evaluator</a>. What is does ? The name says it all: it evaluates Python expressions, which the user can enter into a form and send to the server where this little 25-liner does its work and returns the result plus all the HTML code to render it nicely on the user&#8217;s screen: </p>
<p><img src="https://lh6.googleusercontent.com/-TbczXjw4row/Tx6bbIC3iTI/AAAAAAAACnU/FSYXBIloQzw/s418/Python%252520Expression%252520Evaluator.jpg" /> </p>
<p>It allows the user to type in any type of Python expression, like e.g. </p>
<ul>
<li><strong>80 / 4</strong>, or any other type of basic calculation, thus we can use it as a calculator </li>
<li><strong>len(&quot;Hellow World!&quot;)</strong> &#8211; we can use it to compute the length of a given string </li>
<li><strong>&quot;Hello World&quot;.count(&quot;o&quot;)</strong> to find out how often a particular character shows up in a given string </li>
<li>&#8230; and many more ( ideas ? ) </li>
</ul>
<p>Here is the code:</p>
<div style="border-bottom:gray 1px solid;border-left:gray 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:consolas, &#039;max-height:200px;font-size:8pt;overflow:auto;border-top:gray 1px solid;cursor:text;border-right:gray 1px solid;margin:20px 0 10px;padding:4px;">
<div style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;">
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> #!/usr/bin/python</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>&#160; </pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> import cgitb; cgitb.enable()</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>&#160; </pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> import cgi</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> form = cgi.FieldStorage()</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>&#160; </pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span> expr = form.getvalue(<span style="color:#008000;">'expr', None)</span></pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>&#160; </pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>&#160; </pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span>&#160; </pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span> <span style="color:#0000ff;">if</span> expr != None:</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span>     <span style="color:#0000ff;">try</span>: output = expr + <span style="color:#006080;">&quot; =&gt; &quot;</span> + str(eval(expr))</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span>     except Exception,e: output = <span style="color:#006080;">&quot;&lt;font color=\&quot;</span>red\<span style="color:#006080;">&quot;&gt;%s =&gt; %s&lt;/font&gt;&quot;</span> % (expr,e)</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span> <span style="color:#0000ff;">else</span>: output = <span style="color:#006080;">&quot;&quot;</span></pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span>&#160; </pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span> print <span style="color:#008000;">'''Content-type: text/html</span></pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  18:</span>&#160; </pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  19:</span> &lt;html&gt;</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  20:</span>   &lt;head&gt;</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  21:</span>     &lt;title&gt;Python Expression Evaluator&lt;/title&gt;</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  22:</span>   &lt;/head&gt;</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  23:</span>   &lt;body&gt;</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  24:</span>     &lt;h1&gt;Python Expression Evaluator&lt;/h1&gt;</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  25:</span>     &lt;div&gt;%s&lt;/div&gt;</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  26:</span>     &lt;br&gt;</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  27:</span>     &lt;form action=<span style="color:#008000;">'py_eval.py'&gt;</span></pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  28:</span>     Expression &lt;input type=<span style="color:#008000;">'text' name='expr' /&gt;</span></pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  29:</span>     &lt;input type=<span style="color:#008000;">'submit' /&gt;</span></pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  30:</span>     &lt;/form&gt;</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  31:</span>   &lt;/body&gt;</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  32:</span> &lt;/html&gt;</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  33:</span> ''' % output </pre>
</p></div>
</div>
<p>Let&#8217;s decipher what it does: </p>
<ol>
<li>Let the script know we are using Python code </li>
<li>Import cgitb module and enable CGI Tracebacks to nicely show error messages on the screen rather than in the web server log file. Not really needed here since my little script basically catches all sorts of exceptions, as we will see in a minute. Thanks to Magnus Lie Hetland and his great book &quot;<a href="http://www.amazon.de/Beginning-Python-Novice-Professional-ebook/dp/B001FA0HNY/ref=sr_1_2?ie=UTF8&amp;qid=1327407630&amp;sr=8-2">Beginning Python: From Novice to Professional, Second Edition</a>&quot; for this tip ! </li>
<li>Import cgi module, mainly used to retrieve values sent to the server </li>
<li>Implement the cgi FieldStorage to retrieve values sent to the server </li>
<li>Evaluate the expression sent to the server. With the help of exception handling all possible exceptions are handled and translated to a message ( variable output ) sent back to the user </li>
<li>Generate the HTML for the user frontend and insert the output message; either the output from the eval() or the exception message. </li>
</ol>
<p>
  <br />Try the expression (&quot;10/0&quot;) to see how Python&#8217;s exception handling catches that error. If I would remove my own exception handling from the code and change it from </p>
<div style="border-bottom:gray 1px solid;border-left:gray 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:consolas, &#039;max-height:200px;font-size:8pt;overflow:auto;border-top:gray 1px solid;cursor:text;border-right:gray 1px solid;margin:20px 0 10px;padding:4px;">
<div style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;">
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">if</span> expr != None:</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>     <span style="color:#0000ff;">try</span>: output = expr + <span style="color:#006080;">&quot; =&gt; &quot;</span> + str(eval(expr))</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     except Exception,e: output = <span style="color:#006080;">&quot;&lt;font color=\&quot;</span>red\<span style="color:#006080;">&quot;&gt;%s =&gt; %s&lt;/font&gt;&quot;</span> % (expr,e)</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> <span style="color:#0000ff;">else</span>: output = <span style="color:#006080;">&quot;&quot;</span> </pre>
</p></div>
</div>
<p>to just</p>
<div style="border-bottom:gray 1px solid;border-left:gray 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:consolas, &#039;max-height:200px;font-size:8pt;overflow:auto;border-top:gray 1px solid;cursor:text;border-right:gray 1px solid;margin:20px 0 10px;padding:4px;">
<div style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;">
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> output = expr + <span style="color:#006080;">&quot; =&gt; &quot;</span> + str(eval(expr)) </pre>
</p></div>
</div>
<p>then the cgitb module would kick in and transform the unhandled exception into a message shown in the browser, like here for example:</p>
<p><img src="https://lh3.googleusercontent.com/-zyKNyvuZ-GY/Tx6amntWCxI/AAAAAAAACnI/xEeI76jMses/s791/Python%252520cgitb%252520sample%252520.jpg" /> </p>
</p>
<p>Nice, so far.<br />
  <br />What enhancements can we think of to enhance this little tool ? Here are my ideas, any more to come ? </p>
<ol>
<li>Support multi-line Python code </li>
<li>Support regular expressions </li>
<li>Support expression storage &amp; retrieval ( partially works thru your browser; try to hit the Down while entry field has focus ) </li>
<li>Support a more dynamic user interface </li>
<li>5. &#8230; ? </li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amagard.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amagard.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amagard.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amagard.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amagard.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amagard.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amagard.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amagard.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amagard.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amagard.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amagard.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amagard.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amagard.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amagard.wordpress.com/409/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=409&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amagard.wordpress.com/2012/01/24/a-python-expression-evaluator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb607d761b7f332b796da352d6a4d58a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amagard</media:title>
		</media:content>

		<media:content url="https://lh6.googleusercontent.com/-TbczXjw4row/Tx6bbIC3iTI/AAAAAAAACnU/FSYXBIloQzw/s418/Python%252520Expression%252520Evaluator.jpg" medium="image" />

		<media:content url="https://lh3.googleusercontent.com/-zyKNyvuZ-GY/Tx6amntWCxI/AAAAAAAACnI/xEeI76jMses/s791/Python%252520cgitb%252520sample%252520.jpg" medium="image" />
	</item>
		<item>
		<title>Happy New Year 2012 everyone !</title>
		<link>http://amagard.wordpress.com/2012/01/03/happy-new-year-2012-everyone/</link>
		<comments>http://amagard.wordpress.com/2012/01/03/happy-new-year-2012-everyone/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 10:15:02 +0000</pubDate>
		<dc:creator>amagard</dc:creator>
				<category><![CDATA[future]]></category>
		<category><![CDATA[history]]></category>

		<guid isPermaLink="false">https://amagard.wordpress.com/?p=403</guid>
		<description><![CDATA[Happy New Year 2012 everyone ! I hope you have had a good start into the New Year and hopefully don’t start it with too many items sitting in your in-box and waiting for you to get you into the same hectic and trouble like every year. Still looking for some good New Year resolutions [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=403&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Happy New Year 2012 everyone ! I hope you have had a good start into the New Year and hopefully don’t start it with too many items sitting in your in-box and waiting for you to get you into the same hectic and trouble like every year.</p>
<p>Still looking for some good New Year resolutions ? Check out this Lifehacker article: <a href="http://lifehacker.com/5872232/top-10-easy+to+keep-resolutions-for-this-new-year">Top 10 Easy-to-Keep Resolutions for This New Year</a>. And here are some more general hints and insights about making New Year’s resolutions: <a href="http://lifehacker.com/5871955/the-science-behind-new-years-resolutions-and-how-to-use-it-to-achieve-yours">The Science Behind New Year’s Resolutions (and How to Use It to Achieve Yours)</a></p>
<p>Don’t need any of those ? I don’t have any but I actually like <a href="http://www.gocomics.com/garfield/2011/12/30">this one from Garfield</a>.</p>
<p>May be you are just curious about the most successful blog postings on Lifehacker last year ? Here they are: <a href="http://lifehacker.com/5872033/this-is-the-best-of-lifehacker-2011">This Is the Best of Lifehacker 2011</a>: about How-To guides, DIY projects, photography, Mac and linux downloads, desktops and workspaces, browser extensions and Android apps. How about starting an <a href="http://lifehacker.com/5872436/how-to-start-your-information-diet">information diet</a> this year ? Or some very basic means to improve your health: “<a href="http://lifehacker.com/5872377/a-half+hour-walk-can-make-a-big-difference-even-if-its-your-only-activity">A Half-Hour Walk Can Make a Big Difference, Even If It’s Your Only Activity</a>” ?</p>
<p><a href="http://en.wikiquote.org/wiki/File:The_Original_Party_Tree!,_Hobbiton,_New_Zealand.jpg"><img style="display:inline;margin:5px 0 5px 10px;" align="right" src="http://upload.wikimedia.org/wikipedia/commons/thumb/0/05/The_Original_Party_Tree!,_Hobbiton,_New_Zealand.jpg/800px-The_Original_Party_Tree!,_Hobbiton,_New_Zealand.jpg" width="300" height="200" /></a> Many seem to say the world will end this year: the Bible, the <a href="http://en.wikipedia.org/wiki/Maya_calendar">Maya Calendar</a>, <a href="http://en.wikipedia.org/wiki/Nostradamus">Nostradamus</a>, <a title="http://www.polereversal.com/" href="http://www.polereversal.com/">http://www.polereversal.com/</a>. Most likely this will be a mis-interpretation of “information” one can find there or elsewhere; don’t forget my last posting from last year: <a href="http://amagard.wordpress.com/2011/12/20/common-knowledge-doesnt-exist/">Common knowledge doesn’t exist.</a> : <em>It is more a question of belief which evidence you accept and who you trust</em> … and how you interpret information.</p>
<p>Nevertheless, even if the world would end this year, let’s just continue to do what we do now, let’s do it right and with our full power, let’s follow the philosophy of <a href="http://en.wikipedia.org/wiki/Martin_Luther">Martin Luther</a>, to whom the following quote was attributed: </p>
<blockquote><p>“If I knew that tomorrow was the end of the world, I would plant an apple tree today.”</p>
</blockquote>
<p align="right"><a href="http://en.wikiquote.org/wiki/File:The_Original_Party_Tree!,_Hobbiton,_New_Zealand.jpg">Image from Wikiquote</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amagard.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amagard.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amagard.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amagard.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amagard.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amagard.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amagard.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amagard.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amagard.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amagard.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amagard.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amagard.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amagard.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amagard.wordpress.com/403/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=403&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amagard.wordpress.com/2012/01/03/happy-new-year-2012-everyone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb607d761b7f332b796da352d6a4d58a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amagard</media:title>
		</media:content>

		<media:content url="http://upload.wikimedia.org/wikipedia/commons/thumb/0/05/The_Original_Party_Tree!,_Hobbiton,_New_Zealand.jpg/800px-The_Original_Party_Tree!,_Hobbiton,_New_Zealand.jpg" medium="image" />
	</item>
		<item>
		<title>2011 in review</title>
		<link>http://amagard.wordpress.com/2012/01/01/2011-in-review/</link>
		<comments>http://amagard.wordpress.com/2012/01/01/2011-in-review/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 13:09:29 +0000</pubDate>
		<dc:creator>amagard</dc:creator>
				<category><![CDATA[blogging]]></category>

		<guid isPermaLink="false">http://amagard.wordpress.com/?p=400</guid>
		<description><![CDATA[The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog. Here&#8217;s an excerpt: The concert hall at the Syndey Opera House holds 2,700 people. This blog was viewed about 20,000 times in 2011. If it were a concert at Sydney Opera House, it would take about 7 sold-out performances for that many [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=400&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.</p>
<p><a href="/2011/annual-report/"><img src="http://www.wordpress.com/wp-content/mu-plugins/annual-reports/img/emailteaser.jpg" alt="" width="100%" /></a></p>
<p>Here&#8217;s an excerpt:</p>
<blockquote><p>The concert hall at the Syndey Opera House holds 2,700 people. This blog was viewed about <strong>20,000</strong> times in 2011. If it were a concert at Sydney Opera House, it would take about 7 sold-out performances for that many people to see it.</p></blockquote>
<p><a href="/2011/annual-report/">Click here to see the complete report.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amagard.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amagard.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amagard.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amagard.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amagard.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amagard.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amagard.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amagard.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amagard.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amagard.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amagard.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amagard.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amagard.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amagard.wordpress.com/400/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=400&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amagard.wordpress.com/2012/01/01/2011-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb607d761b7f332b796da352d6a4d58a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amagard</media:title>
		</media:content>

		<media:content url="http://www.wordpress.com/wp-content/mu-plugins/annual-reports/img/emailteaser.jpg" medium="image" />
	</item>
		<item>
		<title>How do you celebrate Christmas ?</title>
		<link>http://amagard.wordpress.com/2011/12/27/how-to-you-celebrate-christmas/</link>
		<comments>http://amagard.wordpress.com/2011/12/27/how-to-you-celebrate-christmas/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 11:52:10 +0000</pubDate>
		<dc:creator>amagard</dc:creator>
				<category><![CDATA[culture]]></category>

		<guid isPermaLink="false">http://amagard.wordpress.com/?p=397</guid>
		<description><![CDATA[Yesterday my wife and I visited my grandma in the home of the aged where she lives now. They had an interesting session there where one lady was telling about the different ways people celebrate Christmas in different cultures. We Germans, she said, seem to take Christmas quiet serious. May be true. In other countries [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=397&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday my wife and I visited my grandma in the home of the aged where she lives now. They had an interesting session there where one lady was telling about the different ways people celebrate Christmas in different cultures.<br />
We Germans, she said, seem to take Christmas quiet serious. May be true. In other countries in Africa or South America Christmas seems to be a quiet happy fest.<br />
Different cultures have very different traditions how to celebrate, and also different traditional meals and habits for the holidays around Dec. 24th.<br />
In the household of my mother we have a woman from Poland. While carp is supposed to be a traditional Polish Christmas dinner as we learned yesterday she actually is always cooking a soup of <a href="http://en.wikipedia.org/wiki/Beetroot" rel="nofollow" target="_blank">beetroot </a>with some sort of filled noodles, called <a href="http://en.wikipedia.org/wiki/Pierogi" rel="nofollow" target="_blank">Pierogi</a>. Very delicious ! They also have the nice tradition to pass around a large baked <a href="http://en.wikipedia.org/wiki/Wafer" rel="nofollow" target="_blank">wafer </a>from which everyone breaks apart a little piece to give to someone else; a nice way to symbolize charity, may be the true sense of Christmas.</p>
<p>So folks, since we are hopefully a multi-cultural community here: let us know how you celebrate Christmas every year. What are you special traditions, habits and meals during those festive days at the end of the year ?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amagard.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amagard.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amagard.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amagard.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amagard.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amagard.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amagard.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amagard.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amagard.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amagard.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amagard.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amagard.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amagard.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amagard.wordpress.com/397/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=397&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amagard.wordpress.com/2011/12/27/how-to-you-celebrate-christmas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb607d761b7f332b796da352d6a4d58a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amagard</media:title>
		</media:content>
	</item>
		<item>
		<title>Common knowledge doesn&#8217;t exist.</title>
		<link>http://amagard.wordpress.com/2011/12/20/common-knowledge-doesnt-exist/</link>
		<comments>http://amagard.wordpress.com/2011/12/20/common-knowledge-doesnt-exist/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 07:38:03 +0000</pubDate>
		<dc:creator>amagard</dc:creator>
				<category><![CDATA[knowledge]]></category>
		<category><![CDATA[philosophy]]></category>

		<guid isPermaLink="false">https://amagard.wordpress.com/?p=393</guid>
		<description><![CDATA[Over the weekend my wife and I visited some relatives living in Regensburg and we have had some good discussions about several topics – from blood cholesterol level to politics to the magnetic polar reversal scheduled for December 21, 2012.&#160; &#34;Big Moon&#34; by KM&#38;G-Morris. I noticed: common knowledge doesn’t exist. People know, what they want [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=393&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Over the weekend my wife and I visited some relatives living in Regensburg and we have had some good discussions about several topics – from blood cholesterol level to politics to the <a href="http://www.polereversal.com/">magnetic polar reversal scheduled for December 21, 2012</a>.&#160; </p>
<table style="width:20%;margin-left:10px;" align="right">
<tbody>
<tr>
<td><a href="http://www.flickr.com/photos/mzmo/3186645474/"><img alt="Big Moon" src="http://farm4.staticflickr.com/3255/3186645474_19de8dbc50_m.jpg" /></a></td>
</tr>
<tr>
<td><small>&quot;<a href="http://www.flickr.com/photos/mzmo/3186645474/">Big Moon</a>&quot; by <a href="http://www.flickr.com/people/mzmo/">KM&amp;G-Morris</a><i>.</i></small></td>
</tr>
</tbody>
</table>
<p>I noticed: common knowledge doesn’t exist. People know, what they want to know. They filter and interpret facts according to their believes. A common body of knowledge doesn’t exist for human mankind, nor for any group of people, for any culture, community or company. People are different, and everyone is having his own version of the truth.</p>
<p>I was reminded to this when reading <a href="http://en.wikiquote.org/wiki/Edwin_Abbott_Abbott">this quote today by Edwin Abbott Abbott</a>: </p>
<blockquote><p>Men are divided in opinion as to the facts. And even granting the facts, they explain them in different ways.</p>
</blockquote>
<div style="width:190px;float:right;color:#c4ab2c;font-size:1.2em;font-weight:bold;padding:10px;">And so I sit, poor silly man No wiser now than when I began..
<div style="text-align:right;font-size:.8em;font-weight:normal;"><a href="http://en.wikiquote.org/wiki/Goethe%27s_Faust#Scene_4:_Night">––Faust, lines 354–59. </a></div>
</p></div>
<p>For every fact you can come up with evidences, but you can also come up with evidences to refute it. It is more a question of belief which evidence you accept and who you trust, who’s book you read and who’s you criticize, probably without even reading it. Do you trust your doctor more than one who you don’t know and who has written a book titled “The Cholesterol Lie” ? Do you believe those who announce world’s end knowing that so far the world never ended before, which of course is no evidence that some time in the future it might happen ? Do you think our politicians are telling us the truth, our leaders really lead us, scientist and experts acknowledge wisdom and insight more than their carrier ?</p>
<p>“I know that I know nothing” said <a href="http://en.wikiquote.org/wiki/Johann_Wolfgang_von_Goethe">Johann Wolfgang von Goethe</a>’s Faust. This is probably the only truth you can come up with, besides certain facts from mathematics where true evidences really exist – as far as I can tell.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amagard.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amagard.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amagard.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amagard.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amagard.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amagard.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amagard.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amagard.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amagard.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amagard.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amagard.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amagard.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amagard.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amagard.wordpress.com/393/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=393&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amagard.wordpress.com/2011/12/20/common-knowledge-doesnt-exist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb607d761b7f332b796da352d6a4d58a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amagard</media:title>
		</media:content>

		<media:content url="http://farm4.staticflickr.com/3255/3186645474_19de8dbc50_m.jpg" medium="image">
			<media:title type="html">Big Moon</media:title>
		</media:content>
	</item>
		<item>
		<title>The secret of success of social networks</title>
		<link>http://amagard.wordpress.com/2011/10/13/the-secret-of-success-of-social-networks/</link>
		<comments>http://amagard.wordpress.com/2011/10/13/the-secret-of-success-of-social-networks/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 07:40:35 +0000</pubDate>
		<dc:creator>amagard</dc:creator>
				<category><![CDATA[people]]></category>
		<category><![CDATA[social-networking]]></category>
		<category><![CDATA[tv]]></category>

		<guid isPermaLink="false">https://amagard.wordpress.com/2011/10/13/the-secret-of-success-of-social-networks/</guid>
		<description><![CDATA[These web sites are like email on crack.. quote from episdoe 5&#215;22 of the TV show Criminal Minds Yesterday I have been watching episode 5&#215;22 of the TV show Criminal Minds: “The internt is forever”. It is about a murderer who successfully seeks his victims thru social networks. OK, that’s a TV show with lots [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=390&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="width:190px;float:right;color:#c4ab2c;font-size:1.2em;font-weight:bold;padding:10px;">These web sites are like email on crack..
<div style="text-align:right;font-size:.8em;font-weight:normal;"><a href="http://www.youtube.com/watch?v=kj_5W2itd6w">quote from episdoe 5&#215;22 of the TV show Criminal Minds </a></div>
</p></div>
<p>Yesterday I have been watching episode 5&#215;22 of the TV show <a href="http://en.wikipedia.org/wiki/Criminal_Minds">Criminal Minds</a>: “<a href="http://www.youtube.com/watch?v=kj_5W2itd6w">The internt is forever</a>”. It is about a murderer who successfully seeks his victims thru social networks.</p>
<p>OK, that’s a TV show with lots of fiction and thrill. But this episode contains a big portion of realism. Many people are scared of participating in social networks. Many of them probably don’t even know exactly why they are afraid of social networks, they just follow their instincts or have a kind of unspecified phobia that someone could abuse their data in some form.</p>
<p>And they might be right. While social&#160; networks provide some great opportunities to “meet” a lot of “remote” people, discover new knowledge, find experts and hints and tips and solutions to problems, boost someone’s own reputation, they also come with a lot of risk as well. If for instance you post by the minute where you are foreigners easily can figure out when you are not at home. If they also found out where that is you should not be surprised that your home has been robbed when you return. Hint # 1: post your travel plans after the fact. Hint # 2: don’t post your address. Nevertheless, you might have posted a photo somewhere of your house which has been geo-tagged and thus one does not have to be a good hacker to find out your address.</p>
<p>This is just one example of a risk. There are many and thus it is vital to use social networks right and smart once you decided to use them at all. But be aware: the more you publish, the higher your risk. And once you have joined there is always some risk that someone abuses your data. You simply have to accept this when joining some social network.</p>
<p>Is it worth it ? Boosting ones own reputation is certainly one motivation to use social networks. Is it the main reason for many ? In this TV show one agent is making an interesting statement: The success of social network lies in the fact that people believe other people are interested in what they are posting.</p>
<p>A nasty statement. Or a true one ? I actually believe there is much truth in that statement. If you are an active participant in social networks, think for yourself: how much do you worry about your own writings and feedback you get ? And how much do you worry about what others write ?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amagard.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amagard.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amagard.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amagard.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amagard.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amagard.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amagard.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amagard.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amagard.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amagard.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amagard.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amagard.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amagard.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amagard.wordpress.com/390/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=390&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amagard.wordpress.com/2011/10/13/the-secret-of-success-of-social-networks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb607d761b7f332b796da352d6a4d58a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amagard</media:title>
		</media:content>
	</item>
		<item>
		<title>Good bye delicious, hello Google Bookmarks !</title>
		<link>http://amagard.wordpress.com/2011/09/29/good-by-delicious-hello-google-bookmarks/</link>
		<comments>http://amagard.wordpress.com/2011/09/29/good-by-delicious-hello-google-bookmarks/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 07:12:27 +0000</pubDate>
		<dc:creator>amagard</dc:creator>
				<category><![CDATA[delicious]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[social-bookmarking]]></category>

		<guid isPermaLink="false">https://amagard.wordpress.com/2011/09/29/good-by-delicious-hello-google-bookmarks/</guid>
		<description><![CDATA[After delicious has decided to come up with new functions I don’t need and brake the old essential functionality I have been using since years ( this mess is discussed here on the review page for the Firefox extension Delicious Bookmarks ) I decided to migrate over to Goolge Bookmarks. Luckily Google Bookmarks provides an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=384&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After <a href="https://secure.delicious.com/">delicious</a> has decided <a href="http://lifehacker.com/5844215/delicious-relaunches-to-help-you-find-and-create-stacks-of-cool-stuff-on-the-web">to come up with new functions</a> I don’t need and brake the old essential functionality I have been using since years ( <a href="https://www.evernote.com/shard/s4/sh/6cf86657-99f8-4751-a130-93302d257399/79b47dd358e1d79e18985b5e8d40cc1e">this mess</a> is discussed here on <a href="https://addons.mozilla.org/en-US/firefox/addon/delicious-bookmarks/reviews/">the review page for the Firefox extension Delicious Bookmarks</a> ) I decided to migrate over to <a href="https://www.google.com/bookmarks/l#!view=threadsmgmt&amp;fo=Starred&amp;g=Time&amp;q=">Goolge Bookmarks</a>. Luckily Google Bookmarks provides an “Import Delicious Bookmarks” function and that function works quiet nicely and is smart enough to also figure out which bookmarks I already imported some time ago when I first tried out Google Bookmarks.</p>
<p><img style="display:inline;margin:0 0 0 10px;" align="right" src="https://lh6.googleusercontent.com/-CB736VB1cpY/ToQZ5Wu0zGI/AAAAAAAAClQ/D_zzW3wp7oE/google%252520bookmarks.jpg" /> Google Bookmarks performs much better than delicious now (as a matter of fact it is really fast!) and comes with a simple user interface which … just works and provides the essentials I need ( except that I could not figure out yet how to get my bookmarks sorted by date as a default ). I am using the <a href="https://addons.mozilla.org/en-US/firefox/addon/gbookmarks-google-bookmarks-fo/">GBookmarks</a> Firefox extension for bookmarking and so far I am happy with Google Bookmarks now.</p>
<p>Whether I ever will return to delicious certainly also depends on whether they provide a service to easily migrate back my bookmarks from Google Bookmarks. Nevertheless, as soon as I figure out some way to include a list of my recent bookmarks from Google Bookmarks in <a href="http://amagard.wordpress.com/">my blog</a> as I do it nowadays with delicious bookmarks there is probably no reason for me to ever return to delicious.</p>
<p><strong><u>Update</u></strong>: Getting a “502 Bad Gateway” Error today when trying to login to delicious.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amagard.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amagard.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amagard.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amagard.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amagard.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amagard.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amagard.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amagard.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amagard.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amagard.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amagard.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amagard.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amagard.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amagard.wordpress.com/384/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=384&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amagard.wordpress.com/2011/09/29/good-by-delicious-hello-google-bookmarks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb607d761b7f332b796da352d6a4d58a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amagard</media:title>
		</media:content>

		<media:content url="https://lh6.googleusercontent.com/-CB736VB1cpY/ToQZ5Wu0zGI/AAAAAAAAClQ/D_zzW3wp7oE/google%252520bookmarks.jpg" medium="image" />
	</item>
		<item>
		<title>Strange behavior of Firefox 5</title>
		<link>http://amagard.wordpress.com/2011/08/04/strange-behavior-of-firefox-5/</link>
		<comments>http://amagard.wordpress.com/2011/08/04/strange-behavior-of-firefox-5/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 07:09:06 +0000</pubDate>
		<dc:creator>amagard</dc:creator>
				<category><![CDATA[browser]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">https://amagard.wordpress.com/2011/08/04/strange-behavior-of-firefox-5/</guid>
		<description><![CDATA[Since yesterday I observe some strange behavior of my Firefox 5 browser. Two of my extensions stopped working: Mister-Wong Toolbar ( this is for a German social bookmarking service ) Share On Tumblr Both add-ons worked before and used to display some dialog box for bookmarking / sharing. Now nothing happens when trying to invoke [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=382&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="display:inline;margin:0 0 0 10px;" align="right" src="https://lh6.googleusercontent.com/-GgqLer_DC1w/SGCbvj-XxHI/AAAAAAAAAuM/jjb9CuFPJKY/firefox.jpg" /> Since yesterday I observe some strange behavior of my Firefox 5 browser. Two of my extensions stopped working:</p>
<ul>
<li><a href="http://www.mister-wong.de/toolbar/">Mister-Wong Toolbar</a> ( this is for a German social bookmarking service )</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/share-on-tumblr/">Share On Tumblr</a></li>
</ul>
<p>Both add-ons worked before and used to display some dialog box for bookmarking / sharing. Now nothing happens when trying to invoke these add-ons.</p>
<p>Besides <a href="http://getfirebug.com/">Firebug</a> 1.8.0 does not seem to work as well; I can’t find any means to enable / start it, there is for instance no icon showing up in the Add-On Toolbar, even after trying <a href="http://getfirebug.com/wiki/index.php/FAQ#Opening_Firebug">this</a> recommendation.</p>
<p>The weird thing is: after I tried to use any of the two extensions mentioned above the Tools –&gt; Add-ons feature in Firefox stops working as well: no add-ons page is displayed anymore.</p>
<p>And: after exiting Firefox it stays in memory ( I can see the process in Windows Task Manager ) and thus I can not re-start it without first killing that process.</p>
<p>Time of switch to Google Chrome as my default browser like many others are doing it these days ? Or does anyone have any idea how I can debug, investigate, mitigate or solve these problems ?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amagard.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amagard.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amagard.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amagard.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amagard.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amagard.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amagard.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amagard.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amagard.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amagard.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amagard.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amagard.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amagard.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amagard.wordpress.com/382/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=382&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amagard.wordpress.com/2011/08/04/strange-behavior-of-firefox-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb607d761b7f332b796da352d6a4d58a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amagard</media:title>
		</media:content>

		<media:content url="https://lh6.googleusercontent.com/-GgqLer_DC1w/SGCbvj-XxHI/AAAAAAAAAuM/jjb9CuFPJKY/firefox.jpg" medium="image" />
	</item>
		<item>
		<title>Running a sub process from a Python script</title>
		<link>http://amagard.wordpress.com/2011/07/27/running-a-sub-process-from-a-python-script/</link>
		<comments>http://amagard.wordpress.com/2011/07/27/running-a-sub-process-from-a-python-script/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 07:53:58 +0000</pubDate>
		<dc:creator>amagard</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">https://amagard.wordpress.com/2011/07/27/running-a-sub-process-from-a-python-script/</guid>
		<description><![CDATA[Python is such a powerful language that “Python scripts” actually deserve to be called “Python programs” or “Python applications”, but nevertheless, let’s go with this title for todays’s blog posting: “Running a sub process from a Python script”. Currently I am writing test scripts for one of our storage products and thus apparently I have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=378&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Python is such a powerful language that “Python scripts” actually deserve to be called “Python programs” or “Python applications”, but nevertheless, let’s go with this title for todays’s blog posting: “Running a sub process from a Python script”.</p>
<p>Currently I am writing test scripts for one of our storage products and thus apparently I have the need to invoke commands from my Python script, capture the output and look at the return code.</p>
<p>There are various ways in Python how to do this. One way is popen which allows to run an external command in a sub process and return its output in form of a file like stream, so that it can be read and analyzed any further ( see <a href="http://www.daniweb.com/software-development/python/threads/40790">this</a> easy example ). Nevertheless, there are many popens available for Python, from the standard popen provided by the <a href="http://docs.python.org/library/os.html">os</a> module to several variations in other modules like <a href="http://docs.python.org/library/popen2.html">popen2</a> and <a href="http://docs.python.org/library/subprocess.html">subprocess</a>, called popen, popen2, popen3, popen4.&#160; A bit confusing for a Python newbie, especially since I had come up with some specific requirements:</p>
<ol>
<li>I wanted to capture stderr as well – the file stream for error messages – and actually treat it like the standard output stream so that in case of an error the error messages are displayed where usually the output is displayed. And depending on my future test scenarios I probbaly have the need to analyze the error message stream as well. </li>
<li>I need to capture the return code from the command executed in the sub process. </li>
</ol>
<p>After working on this for 2 to 3 hours and exploring all the possibilities I got to the point where I thought I either can have 1 or 2, but not both. Until I figured out this solution based on the popen2 module: </p>
<div style="border-bottom:gray 1px solid;border-left:gray 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:consolas, &#039;max-height:200px;font-size:8pt;overflow:auto;border-top:gray 1px solid;cursor:text;border-right:gray 1px solid;margin:20px 0 10px;padding:4px;">
<div style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;">
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> import popen2</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> # ...</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> cmd = <span style="color:#006080;">&quot;ping bla&quot;</span>            # No, I am not <span style="color:#0000ff;">using</span> foo here <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> f = popen2.Popen4(cmd)</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> <span style="color:#0000ff;">while</span> True:</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>     <span style="color:#0000ff;">try</span>: line = f.fromchild.readline()</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>     except IOError: <span style="color:#0000ff;">break</span></pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>     <span style="color:#0000ff;">if</span> not line: <span style="color:#0000ff;">break</span></pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>     # ...</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span> rc = f.poll()</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span> f.fromchild.close()</pre>
</p></div>
</div>
<p>Popen4 from the popen2 module by default combines stderr and stdout into one stream, thus no need to handle both streams. This implementation actually seemed to work nicely, except … I got a “depreciation” warning about the popen2 module when importing it saying basically that this module will go away in the future and will be replaced by the subprocess module.</p>
<p>Thus I had to continue my research and find a working solution based on the subprocess module. Here it is:</p>
<div style="border-bottom:gray 1px solid;border-left:gray 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:consolas, &#039;max-height:200px;font-size:8pt;overflow:auto;border-top:gray 1px solid;cursor:text;border-right:gray 1px solid;margin:20px 0 10px;padding:4px;">
<div style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;">
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> import subprocess</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> # ...</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> cmd = <span style="color:#006080;">&quot;ping blabla&quot;</span>                 # Still not <span style="color:#0000ff;">using</span> foo, but never mind <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> f = subprocess.Popen(cmd, shell=True, stderr=subprocess.PIPE, stdout=subprocess.PIPE)</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> <span style="color:#0000ff;">while</span> True:</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>     line = f.stderr.readline()</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>     <span style="color:#0000ff;">if</span> not line: <span style="color:#0000ff;">break</span></pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>     m = re.match(<span style="color:#006080;">&quot;shell-init&quot;</span>,line)        # Ignore shell-init errors</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>     <span style="color:#0000ff;">if</span> not m:</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>         # ...</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span> <span style="color:#0000ff;">while</span> True:</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span>    line = f.stdout.readline()</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span>    <span style="color:#0000ff;">if</span> not line: <span style="color:#0000ff;">break</span></pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span>    # ...</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span> rc = f.poll()</pre>
<pre style="line-height:12pt;background-color:#f4f4f4;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span> f.stderr.close()</pre>
<pre style="line-height:12pt;background-color:white;width:100%;font-family:consolas, &#039;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span> f.stdout.close() </pre>
</p></div>
</div>
<p>Here I get two message streams, one for stdout and one for stderr to be handled independently. One hurdle is that I get strange “shell-init” errors always in my stderr stream, wheter or not the command itself finishs successfully. The other observation to make: the return code obtained by using this implementation is different than the one I get from the first implementation. If the command is okay – in my case I ping an existing network address, I get 0 in both cases. If I ping some non-existing network address ( like “foo”, “bla” or “blabla” ) I get a return code 512 with the first code snippet and a return code of 2 with the second alternative.</p>
<p>Even I have a solution now working quiet well I guess there is still more to explore for me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amagard.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amagard.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amagard.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amagard.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amagard.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amagard.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amagard.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amagard.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amagard.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amagard.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amagard.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amagard.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amagard.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amagard.wordpress.com/378/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=378&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amagard.wordpress.com/2011/07/27/running-a-sub-process-from-a-python-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb607d761b7f332b796da352d6a4d58a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amagard</media:title>
		</media:content>
	</item>
		<item>
		<title>Sitting kills</title>
		<link>http://amagard.wordpress.com/2011/07/13/sitting-kills/</link>
		<comments>http://amagard.wordpress.com/2011/07/13/sitting-kills/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 07:15:38 +0000</pubDate>
		<dc:creator>amagard</dc:creator>
				<category><![CDATA[health]]></category>

		<guid isPermaLink="false">https://amagard.wordpress.com/2011/07/13/sitting-kills/</guid>
		<description><![CDATA[After we know how dangerous it is too spend too much time in a chair ( see e.g. these articles here and here )&#160; I think chairs should be labeled in the same way as cigarette packages need to be labeled nowadays, with signs like: “Sitting kills”, “Sitting for more than 23 hours a week [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=376&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After we know how dangerous it is too spend too much time in a chair ( see e.g. these articles <a href="http://lifehacker.com/5586757/incorporate-physical-activity-into-your-work-breaks-for-better-health">here</a> and <a href="http://lifehacker.com/5800720/the-sitting-is-killing-you-infographic-illustrates-the-stress-of-prolonged-sitting-importance-of-getting-up">here</a> )&#160; I think chairs should be labeled in the same way as cigarette packages need to be labeled nowadays, with signs like:</p>
<p>“Sitting kills”,</p>
<p>“Sitting for more than 23 hours a week increases your chance of dying from heart disease by 64 %”</p>
<p>“Get up every hour ! Exercising after work is not sufficient !”</p>
<p>What do you think ?</p>
<p>May be we should re-design our work places to force us getting out of our chairs regularly and more often, keeping in mind that the human body is not designed to sit for hours. We are designed to cross the savanna and chase animals, everything in our body works much better if we are moving, using our legs, driving up our heart beats once in a while. Instead of hunting animals some long distance walk, many short walks and other sorts of physical training might do the trick as well.</p>
<p>How about computer operating systems, media, entertainment and gaming gadgets going into suspend mode automatically after 1 or 2 hours, being wirelessly connected to some step counter a user has to carry and starting up again after you have walked so many steps ?&#160; Or asking you for a password displayed on some screen half a kilometer away ? How about “buying” extra computer or TV hours through your step counter, thus paying with number of steps done or amount of calories burned ?</p>
<p>How about a system assigning a network printer to your computer farthest away from your work place ? </p>
<p>How about forgetting about meeting rooms, doing meetings while doing a little hike ?</p>
<p>How about … any&#160; more ideas ?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amagard.wordpress.com/376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amagard.wordpress.com/376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amagard.wordpress.com/376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amagard.wordpress.com/376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amagard.wordpress.com/376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amagard.wordpress.com/376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amagard.wordpress.com/376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amagard.wordpress.com/376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amagard.wordpress.com/376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amagard.wordpress.com/376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amagard.wordpress.com/376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amagard.wordpress.com/376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amagard.wordpress.com/376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amagard.wordpress.com/376/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amagard.wordpress.com&amp;blog=1226183&amp;post=376&amp;subd=amagard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amagard.wordpress.com/2011/07/13/sitting-kills/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb607d761b7f332b796da352d6a4d58a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">amagard</media:title>
		</media:content>
	</item>
	</channel>
</rss>
