<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    
    <link href="http://www.fail2fail.com/feeds/atom.xml" rel="self" title="fail2fail" type="application/atom+xml" />
    <link href="http://www.fail2fail.com/"                        rel="alternate"    title="fail2fail" type="text/html" />
    <link href="http://www.fail2fail.com/rss.php?version=2.0"     rel="alternate"    title="fail2fail" type="application/rss+xml" />
    <title type="html">fail2fail</title>
    <subtitle type="html">perfectionism or disability?</subtitle>
    
    <id>http://www.fail2fail.com/</id>
    <updated>2012-02-01T11:43:41Z</updated>
    <generator uri="http://www.s9y.org/" version="1.6">Serendipity 1.6 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="http://www.fail2fail.com/archives/44-Setup-the-environment-depending-on-the-host-the-user-logins-from.html" rel="alternate" title="Setup the environment depending on the host the user logins from" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2012-01-27T16:55:25Z</published>
        <updated>2012-02-01T11:43:41Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=44</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=44</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://www.fail2fail.com/archives/44-guid.html</id>
        <title type="html">Setup the environment depending on the host the user logins from</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">Just spent about 20 minutes to answer a <a href="http://stackoverflow.com/questions/9035228/unix-profile-detect-who-logged-in">question on stackoverflow</a> and as I was ready to commit it, the question got already closed. It would be a pity to throw the answer away, so i'll paste it here. <img src="http://www.fail2fail.com/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" />
</p><p class="break">Hi there. You could script around the outputs of <tt>who</tt>.</p><p class="whiteline"><div class="bash geshi" style="text-align: left;">&#160; &#160; <span style="color: #007800;">$who</span><br />&#160; &#160; jham &#160; &#160; pts<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">13</span> &#160; &#160; &#160; <span style="color: #000000;">2012</span>-01-<span style="color: #000000;">27</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">48</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>somehost<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />&#160; &#160; jham &#160; &#160; pts<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">14</span> &#160; &#160; &#160; <span style="color: #000000;">2012</span>-01-<span style="color: #000000;">27</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">45</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>localhost.localdomain<span style="color: #7a0874; font-weight: bold;">&#41;</span></div>

</p><p class="break">we want to know only the user associated with stdin:</p><p class="whiteline"><div class="bash geshi" style="text-align: left;">&#160; &#160; <span style="color: #007800;">$who</span> <span style="color: #660033;">-m</span><br />&#160; &#160; jham &#160; &#160; pts<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">14</span> &#160; &#160; &#160; <span style="color: #000000;">2012</span>-01-<span style="color: #000000;">27</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">45</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>localhost.localdomain<span style="color: #7a0874; font-weight: bold;">&#41;</span></div>
</p><p class="break">now get the host only and save to a variable:  </p><p class="whiteline"><div class="bash geshi" style="text-align: left;">&#160; &#160; <span style="color: #007800;">myhost</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">who</span> <span style="color: #660033;">-m</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-n1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{printf $5}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/(\(.*\))/\1/'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></div>
</p><p class="break">define group of hostnames to react:</p><p class="whiteline"><div class="bash geshi" style="text-align: left;">&#160; &#160; <span style="color: #007800;">goodhosts</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>goodhost anotherhost localhost.localdomain<span style="color: #7a0874; font-weight: bold;">&#41;</span></div>
</p><p class="break">react: </p><p class="whiteline"><div class="bash geshi" style="text-align: left;">&#160; &#160; <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${goodhosts[@]}</span>&quot;</span> <span style="color: #000000; font-weight: bold;">in</span> <br />&#160; &#160; &#160; &#160;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">$myhost</span>&quot;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />&#160; &#160; &#160; &#160; &#160; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;good host&quot;</span><br />&#160; &#160; &#160; &#160; &#160; <span style="color: #000000; font-weight: bold;">;;</span> <br />&#160; &#160; &#160; &#160;<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />&#160; &#160; &#160; &#160; &#160; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;bad host&quot;</span> <br />&#160; &#160; &#160; &#160; &#160; <span style="color: #000000; font-weight: bold;">;;</span> <br />&#160; &#160; <span style="color: #000000; font-weight: bold;">esac</span></div>

</p><p class="break">You could put it into a file which is sourced on login (like <tt>.profile</tt>, depending on your configuration).</p> 
            </div>
        </content>
        <dc:subject>bash</dc:subject>
<dc:subject>linux</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/45-Screen-like-tmux-Attach-a-tmux-session-from-multiple-clients-and-view-different-windows-per-client.html" rel="alternate" title="Screen-like tmux: Attach a tmux session from multiple clients and view different windows per client" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2012-02-01T09:39:02Z</published>
        <updated>2012-02-01T11:14:28Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=45</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=45</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/4-Software" label="Software" term="Software" />
    
        <id>http://www.fail2fail.com/archives/45-guid.html</id>
        <title type="html">Screen-like tmux: Attach a tmux session from multiple clients and view different windows per client</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">If using terminal multiplexer <tt><strong>screen</strong></tt>, one can easily attach a session which is not detached with </p><pre><div class="bash geshi" style="text-align: left;"><span style="color: #c20cb9; font-weight: bold;">screen</span> <span style="color: #660033;">-x</span></div></pre><p class="whiteline">That way it is possible to attach the same session to multiple clients. By default you are able to view different screen windows per client which attached that session. 
</p><p class="whiteline">In <tt><strong>tmux</strong></tt> the default behavior differs. Though you can also attach the same tmux session to multiple clients e.g. with </p><pre><div class="bash geshi" style="text-align: left;">tmux attach-session</div></pre><p> it will let you view the same tmux window in all clients that attached that tmux session. When tmux instance starts it creates automatically one tmux session. Such a session is presented equally to every client. 
</p><h3>Create independend tmux sessions for the same window set</h3><p class="break">A user creates a new tmux session with</p><pre><div class="bash geshi" style="text-align: left;">user<span style="color: #000000; font-weight: bold;">@</span>clientA$ tmux new-session<br /><span style="color: #666666; font-style: italic;">## create some more windows</span><br /><span style="color: #666666; font-style: italic;">## work</span></div></pre><p>
</p><p class="break">The user decides to work with the same window set in another terminal independend:</p><pre><div class="bash geshi" style="text-align: left;">user<span style="color: #000000; font-weight: bold;">@</span>clientB$ tmux list-sessions<br /><span style="color: #000000;">0</span>: <span style="color: #000000;">8</span> windows <span style="color: #7a0874; font-weight: bold;">&#40;</span>created Tue Dec <span style="color: #000000;">13</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">55</span>:<span style="color: #000000;">56</span> <span style="color: #000000;">2011</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>136x49<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>group <span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>attached<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /><br />user<span style="color: #000000; font-weight: bold;">@</span>clientB$ tmux new-session <span style="color: #660033;">-t</span> <span style="color: #000000;">0</span></div></pre><p>That creates a new session which uses the same window set as group 0 listed above and attaches <tt>clientB</tt> to it. Two independent sessions working on the same set of windows are running. Very close to screen behavior.
</p><p class="break">Output of <tt>tmux list-sessions</tt> looks now like:</p><pre><div class="bash geshi" style="text-align: left;"><span style="color: #000000;">0</span>: <span style="color: #000000;">8</span> windows <span style="color: #7a0874; font-weight: bold;">&#40;</span>created Tue Dec <span style="color: #000000;">13</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">55</span>:<span style="color: #000000;">56</span> <span style="color: #000000;">2011</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>136x49<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>group <span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>attached<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /><span style="color: #000000;">1</span>: <span style="color: #000000;">8</span> windows <span style="color: #7a0874; font-weight: bold;">&#40;</span>created Wed Dec <span style="color: #000000;">14</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">53</span>:<span style="color: #000000;">44</span> <span style="color: #000000;">2011</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>101x33<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>group <span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>attached<span style="color: #7a0874; font-weight: bold;">&#41;</span></div></pre><p class="whiteline">While attached to a tmux session tmux lets you change your session interactively with <tt>&lt;C-b s&gt;</tt>. Closing sessions is done e.g. by </p><pre><div class="bash geshi" style="text-align: left;">tmux kill-session <span style="color: #660033;">-t</span> <span style="color: #000000; font-weight: bold;">&lt;</span>sessionnumber<span style="color: #000000; font-weight: bold;">&gt;</span></div></pre><p>
</p> 
            </div>
        </content>
        <dc:subject>screen</dc:subject>
<dc:subject>software</dc:subject>
<dc:subject>tmux</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/42-Reduce-the-size-of-PDF-documents.html" rel="alternate" title="Reduce the size of PDF documents" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2011-12-12T09:26:28Z</published>
        <updated>2012-01-20T23:20:03Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=42</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=42</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/4-Software" label="Software" term="Software" />
    
        <id>http://www.fail2fail.com/archives/42-guid.html</id>
        <title type="html">Reduce the size of PDF documents</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">Use case: You are using (La)Tex to create your document and include some big non-vector graphics or high-quality scanned documents via <tt>&#92includepdf{}</tt> from <tt>pdfpages</tt> package. You could resize/size-optimize your included parts one by one to make your resulting PDF document smaller. Or you could compile your document and then use a trick to reduce the size of the final compiled document as PDF at once: <div class="bash geshi" style="text-align: left;">pdf2ps finaldoc.pdf finaldoc.ps <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">ps2pdf</span> finaldoc.ps finaldoc_reduced.pdf</div></p><p class="whiteline">That way I managed to reduce the document size from 22MB to 4MB. Of course, the effect depends on the material included in your document. Give it a shot.
</p><p class="break"><em>Update (2012/01/20):</em></p><p class="break">If the hint above is still not enough you might want to try to reduce the final size with <tt><strong>gs</strong></tt> via <tt>PDFSETTINGS</tt> option described in the <a href="http://www.ghostscript.com/doc/9.04/Ps2pdf.htm#Options">Ghostscript Documentation</a>:</p><pre></p><blockquote><p class="break"><strong>-dPDFSETTINGS</strong>=configuration</p><p class="break"> Presets the "distiller parameters" to one of four predefined settings:</p><p class="break">   <strong>/screen</strong> selects low-resolution output similar to the Acrobat Distiller</p><p class="break">           "Screen Optimized" setting.</p><p class="break">   <strong>/ebook</strong> selects medium-resolution output similar to the Acrobat Distiller</p><p class="break">          "eBook" setting.</p><p class="break">   <strong>/printer</strong> selects output similar to the Acrobat Distiller </p><p class="break">          "Print Optimized" setting.</p><p class="break">   <strong>/prepress</strong> selects output similar to Acrobat Distiller </p><p class="break">          "Prepress Optimized" setting.</p><p class="break">   <strong>/default</strong> selects output intended to be useful across a wide variety of </p><p class="break">           uses, possibly at the expense of a larger output file. </p></blockquote><p></pre><p class="break">You can apply the desired parameter using <tt>ps2pdf</tt>:</p><pre><div class="bash geshi" style="text-align: left;"><span style="color: #c20cb9; font-weight: bold;">ps2pdf</span> <span style="color: #660033;">-dPDFSETTINGS</span>=<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">screen</span> finaldoc.ps finaldoc_reduced.pdf</div></pre><p class="break">or <tt>gs</tt>:</p><pre><div class="bash geshi" style="text-align: left;"><span style="color: #c20cb9; font-weight: bold;">gs</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">-dBATCH</span> <span style="color: #660033;">-dNOPAUSE</span> <span style="color: #660033;">-sDEVICE</span>=pdfwrite \<br /><span style="color: #660033;">-dPDFSETTING</span>=<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">screen</span> <span style="color: #660033;">-sOutputFile</span>=finaldoc_reduced.pdf finaledoc.ps</div></pre><p class="break">Since it will lower the quality of the document it is advisable to check whether the document will still meet the requirements for the usage intended.</p> 
            </div>
        </content>
        <dc:subject>latex</dc:subject>
<dc:subject>pdf</dc:subject>
<dc:subject>software</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/43-Case-insensitive-token-matching-in-NotionIon3.html" rel="alternate" title="Case insensitive token matching in Notion/Ion3" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2012-01-20T11:58:34Z</published>
        <updated>2012-01-20T14:55:00Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=43</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=43</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/4-Software" label="Software" term="Software" />
    
        <id>http://www.fail2fail.com/archives/43-guid.html</id>
        <title type="html">Case insensitive token matching in Notion/Ion3</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">To enable <em>case insensitive</em> token matching in Notion's menus like "Attach Window" (META-A) and "Go to Window" (META-G) add this line to any "dopathed" file in the notion configuration:</p><pre><div class="lua geshi" style="text-align: left;">mod_query.set<span style="color: #66cc66;">&#123;</span> caseicompl <span style="color: #66cc66;">=</span> <span style="color: #b1b100;">true</span> <span style="color: #66cc66;">&#125;</span></div></pre><p>That will save some time while navigating or layouting your workspaces.
</p><p class="break"><div class="serendipity_imageComment_center" style="width: 150px"><div class="serendipity_imageComment_img"><a class="serendipity_image_link"  href='http://fail2fail.com/dump/kram/screenies/2012-01-20-goto_caseinsensitive.png' onclick="F1 = window.open('http://fail2fail.com/dump/kram/screenies/2012-01-20-goto_caseinsensitive.png','Zoom','height=783,width=1039,top=0,left=0,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes'); return false;"><!-- s9ymdb:71 --><img class="serendipity_image_center" width="150" height="113" src="http://fail2fail.com/dump/kram/screenies/2012-01-20-goto_caseinsensitive.png" alt="Notion with case insensitive Goto-Query" /></a></div><div class="serendipity_imageComment_txt">Notion with case insensitive Goto-Query</div></div></p> 
            </div>
        </content>
        <dc:subject>ion3</dc:subject>
<dc:subject>lua</dc:subject>
<dc:subject>notion</dc:subject>
<dc:subject>software</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/41-Eclipse-EE-crashes.html" rel="alternate" title="Eclipse (EE) crashes " />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2011-11-12T16:55:35Z</published>
        <updated>2012-01-20T14:10:45Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=41</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=41</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/4-Software" label="Software" term="Software" />
    
        <id>http://www.fail2fail.com/archives/41-guid.html</id>
        <title type="html">Eclipse (EE) crashes </title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">Some months ago Eclipse EE (Indigo) started to crash whenever Java EE view was active and I selected the menu entry "Window->Web Browser". Somewhere in the WWW I've found a solution by adding following lines into <tt>eclipse.ini</tt>:<div class="text geshi" style="text-align: left;">-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-2.0/<br />-Dorg.eclipse.swt.browser.UseWebKitGTK=true</div>Posting it here for the logs. Today I got the problem on another machine and had to login into the machine where I already altered eclipse.ini to see which lines were relevant. Now it's here, just in case it happens to me somewhere else again.</p> 
            </div>
        </content>
        <dc:subject>eclipse</dc:subject>
<dc:subject>software</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/8-Bundestag-stimmt-dem-Gesetz-fuer-Internet-Sperren-zu.html" rel="alternate" title="Bundestag stimmt dem Gesetz für Internet-Sperren zu " />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2009-06-21T13:52:00Z</published>
        <updated>2011-09-21T19:59:43Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=8</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=8</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/5-Politics" label="Politics" term="Politics" />
    
        <id>http://www.fail2fail.com/archives/8-guid.html</id>
        <title type="html">Bundestag stimmt dem Gesetz für Internet-Sperren zu </title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">Am 18.06.2009 hat der Bundestag dem umstrittenen Gesetz für Internet-Sperren mit 389 Ja- zu 128 Nein-Stimmen zugestimmmt. Das bedeutet, dass wenn die Formalitäten (Setzen der Unterschrift durch den Bundespräsidenten) erledigt sind, erhält BKA die Macht eine sog. "Sperrliste" anzufertigen und zu "pflegen". Ach ja, da war ja noch das "unabhängige Expertengremium", das die Sperrliste - natürlich unabhängig - nach Rechtmäßigkeit begutachten soll. Dass ich nicht lache... </p><p class="whiteline">Auch die bis jetzt <a href="https://epetitionen.bundestag.de/index.php?action=petition;sa=details;petition=3860" title="Petition gegen Zensur">am meisten gezeichnete Online-Petition deutscher Geschichte</a> konnte dagegen nichts bewirken.
</p><p class="whiteline">Falls jemand das Problem noch nicht bemerkt hat: <em>das BKA braucht dafür keinen richterlichen Beschluss - Ciao, Gewaltenteilung</em>.
</p><p class="whiteline">Was hat es nun mit dieser Sperrliste für den normalen Bürger auf sich? Sollte der Bürger auf eine auf dieser Liste gelisteten Seite zugreifen wollen, wird er auf ein <a href="http://www.fail2fail.com/uploads/misc/stoppschild.png" title="Stoppschild">Stoppschild-Bildchen</a> umgeleitet. Doch nichts Schlimmes, oder? Man möchte ja als durchschnittlicher Mensch keine vergewaltigten Kinder sehen - da soll man doch dem lieben Staat danken!
</p><h3>Unreimheiten in der Begründung  und Umsetzung der Sperren</h3><ul><li>Einer der Argumente der Zensurfraktion für Internet-Sperren heißt oft: <a href="http://www.cducsu.de/Titel__Das_Internet_darf_kein_moral__und_rechtsfreier_Raum_sein/TabID__6/SubTabID__7/InhaltTypID__1/InhaltID__12150/Inhalte.aspx" title="CSU/CDU Pressemitteilung">"Internet darf kein rechtsfreier Raum sein."</a> Ist es auch nicht! Jeder haftet für seine Taten bzw. Inhalte im Internet (ja, auch vor der Einführung des "Zensurgesetzes"). Man denke ja nur an die Abmahnwellen der Musikindustrie. Demagogie auf Höchsttouren, also.</li><li>Warum möchte Ursula von der Leyen sperren, wenn auch löschen funktioniert? In 12 Stunden schafft eine nicht staatliche Organisation <a href="http://ak-zensur.de/2009/05/loeschen-funktioniert.html" title="AK Zensur - Löschen statt verstecken: Es funktioniert!">Löschungen von 60 KiPo-Angeboten durch E-Mails</a> an Provider zu erzielen. Auch Provider im Ausland - Russland, Holland, Dänemark - löschen Inhalte z.T. binnen Minuten!</li><li>Sperren sind DNS-Sperren - folglich leicht Umgehbar. Auch für IT-Laien <a href="http://www.youtube.com/watch?v=1NNG5I6DBm0" title="Youtube - DNS Sperre umgehen in 27 Sekunden">eine Sache von Minuten</a>. Möchte man da den "versierten" Benutzern die Sperren gleichgültig machen und erstmal das Gesetz durchprügeln? Technik kann man ja im Nachhinein verfeinern...<li>Ursula von der Leyen macht gegenüber Medien (u.A. der FAZ und Spiegel-Online) gewisse pseudo-kompetente Aussagen bzgl. Sperren - siehe <a href="http://blog.handelsblatt.de/indiskretion/eintrag.php?id=2147" title="Amtlich: Ursula von der Leyen hat gelogen">diesen Artikel</a>, z.B. <a href="http://blog.odem.org/2009/06/bundesregierung-keine-kenntnis.html" title="Bundesregierung hat keine Kenntniss, will aber sperren">Eine Antwort der Bundesregierung auf eine Bundestagsanfrage zeigt auf, dass die Zensursula ohne Recherchen bzw. fundierten Erkenntnissen und Wissen, ja, <strike>gelabert</strike> gelogen hat.</a></li><li>Oft wurde betont, dass gerade die Tendenz der KiPo-Straftaten die (absurden) Maßnahmen fordern. <a href="http://mogis.wordpress.com/2009/06/15/die-polizeiliche-kriminalstatistik-2008-ist-da/trackback/">Der Tendenz-Mythos wird von der veröffentlichten polizeilichen Kriminalstatistik niedergemetzelt.</a></li><li>Bei mir stellte sich gleich die Frage auf: Wie zum Henker kann einer Maus in Katzenkrallen geholfen werden, in dem man über beide eine Decke drüber wirft? <a href="http://i.friendfeed.com/eb2991cd5c06abb43742261dedf6ca7522fd6cfb" title="Urusla von der Leyen bekämpft erflogreich ALtersarmut und Obdachlosigkeit">Hier</a> auch eine tolle Grafik für diesen Sachverhalt.</li></ul><p>Während des Sammelns von Links für Bekräftigung weiterer Punkte meiner Liste, bin ich auf eine Seite gestoßen, die viele andere Lügen ganz vorbildlich darstellt: <a href="http://netzpolitik.org/2009/die-dreizehn-luegen-der-zensursula/trackback/">Die dreizehn Lügen der Zensursula</a>. Deswegen spare ich mir jetzt weitere Mühe diesbezüglich.
</p><h3>Es bleibt nicht bei KiPo-Sperren</h3><p class="break">Ist erst ein Mechanismus für Zensur im Internet geschaffen, wird dessen Technik weiter verfeinert werden. Schlimmer ist, dass man Zensur auch auf andere "unerwünschte" Themen ausweiten wird. Auch wenn die Zensurfraktion von heute wirklich so naiv ist und die Sperren in ihrer Naivität nur gut meinen - was passiert in der Nächsten Legislaturperiode? Oder der übernächsten? Aber so weit braucht man gar nicht erst denken. </p><p class="whiteline">Hier mal eine Veranschaulichung warum es nie und nimmer bei KiPo-Sperren bleibt:</p><ul><li>Die Leiche des zensurfreien Deutschlands ist noch warm, als Thomas Strobl (CDU) <a href="http://www.presseportal.de/pm/66749/1425454/koelner_stadt_anzeiger" title="Auch Killerspiele sperren">Internet-Sperren auf "Killerspiele" ausweiten</a> möchte [<a href="http://www.golem.de/0906/67871.html">Golem-Artikel</a>]. <em>"Killerspiele" sind sowieso ein Thema für sich. Während Schützenvereine weiterhin keine Konsequenzen spüren, macht man Killerspiele für das Übel in der Welt verantwortlich. Während die Schützenfeste in Deutschland laufen, werden eSports-Veranstaltungen vom Staat untersagt [<a href="http://netzpolitik.org/2009/kein-e-sport-turnier-in-karlsruhe/" title="Kein E-Sport-Trunier in Karslruhe">Karlsruhe</a>, <a href="http://www.heise.de/newsticker/Stuttgart-untersagt-Computerspiele-Wettbewerb--/meldung/135025" title="Stuttgart untersagt Computerspiele-Wettbewerb">Stuttgart</a>, ...].</em></li><li>Weitere Lobbies warten nur darauf die Sperren für ihren Vorteil auszunutzen - lange wird es nicht dauern bis "unabhängige" Politiker den Forderungen der <a href="http://www.golem.de/0812/63870.html" title="Hessens Innenministerium will Sperre von Glückspielseiten">Glückspiel-Lobby</a>, <a href="http://www.golem.de/0905/67102.html" title="Musikindustrie will Internetsperren auch in Deutschland">Musik- und Filmindustrie</a> nachgeben werden.</li><li>Zensur politisch/religiös "unpassender" Angebote ist bereits auch in Sicht [<a href="http://newsticker.welt.de/?module=dpa&id=21454856" title="Wiefelspütz für weitere Sperren">Wiefelspütz</a>].</li><li><a href="http://www.spiegel.de/netzwelt/web/0,1518,631299,00.html">Spiegel-Online berichtet</a>, dass es laut Eßlinger Zeitung Forderungen gibt, Zugriff auf Foren mit Magersucht-Diskussionen zu sperren.</li></ul><p>
</p><p class="whiteline">Mit KiPo-Sperren wird nur das Fundament für Zensurinfrastruktur gelegt - auf der technischen <em>und </em>moralischen Ebene.
</p><h3>Warum Gewaltenteilung aushebeln schlechte Idee ist</h3><p class="whiteline">Ich möchte hier nicht über Konstitution oder Beispiele aus deutscher Nazi-Zeit schreiben. Ich möchte hier die Thematik aufgreifen, dass Menschen nun mal keine Roboter sind und eigene Gefühle, Meinungen, etc. beim Verrichten ihrer Arbeit nicht abschalten können. Was auch zum Überschreiten (auch z.T. bzw. anfangs unbewusst) eigener Kompetenzen führen kann. Es ist halb so schlimm, wenn es mehrere Instanzen gibt, die sich gegenseitig kontrollieren, und es zu solchen Kompetenz-Überschreitungen kommt. Wenn aber einer Orga die Macht gegeben wird allein zu entscheiden, was für die Bevölkerung gut und schlecht ist, ist es nur eine Frage der Zeit bis die Macht missbraucht wird.
</p><p class="whiteline">Hier konkrete Beispiele für Kompetenzüberschreitungen der Exekutiven <strong>in der heutigen BRD</strong>: <a href="http://www.blaulichtreporter.de/pageID_8112326.html" title="Polizist wird handgreiflich">Handgreiflich werdender Polizist</a> (achtet Bitte auf seine Antwort auf "Sie verstoßen gerade gegen Pressefreiheitsrecht"), <a href="http://linksjugendrsn.blogsport.de/2009/06/19/polizei-ueberfaellt-landesbuero-der-linkspartei-in-erfurt-offenbar-enge-kooperation-mit-neonazis/trackback/" title="Polizei überfällt Landesbüro der Linkspartei in Erfurt">Überfall vom Landesbüro seitens Polizei</a>, <a href="http://www.asta.uni-frankfurt.de/aktuell/presse/196902.html">Einschränkung der Pressefreiheit</a>, <a href="http://www.ruhrbarone.de/arger-mit-zensursula/" title="Ärger mit Zensursula">überzogener Platzverweis</a>. Vielleicht nicht die besten Beispiele, aber auch nicht die einzigen. Um mehr zu finden, muss man nur Goolge bemühen.
</p><p class="whiteline">Und die Exekutive soll nun im Alleingang über Verfügbarkeit der Inhalte entscheiden?
</p><p class="whiteline">Irren ist menschlich, eine Organisation ist immer parteiisch, Finanzierung weckt Sympathie. Und wenn dann noch eine Prise Vetternherrschaft dazu kommt... 
</p><h3>Mehr zur Abstimmung über Gesetz zu Internet-Sperren</h3><p class="break">Auf Forderungen einiger Politiker (u.A. <a href="http://www.tauss.de/">Jörg Tauss</a>) ist es zur namentlichen Abstimmung gekommen. Das <a href="http://www.abgeordnetenwatch.de/internet_sperren-636-180----abst_ja.html" title="Abstimmverhalten - Internet-Sperren">Abstimmverhalten der Abgeordneten</a> ist nun für jeden auf "Abgeordnetenwatch" einsehbar.</p><p class="break">Schaut euch bei Interesse die Liste an. Sehr interessant fand ich, dass Wolfgang Schäuble und Angela Merkel sich nicht an der Abstimmung beteiligten.</p><p class="whiteline">Ansonsten, finde ich es schade, dass die Abstimmung nicht aus eigener persönlicher Verantwortung und Gewissen jedes einzelnen Parteimitglieds stattfindet, sondern scheinbar <strong>nur auf Befehl der Fraktionsführung</strong>. Ist es das, was Demokratie heute ist?
</p><p class="whiteline">Man kann sich anhand der Postleitzahl die Abstimmung des persönlichen Wahlkreisabgeordneten anzeigen lassen. Tut es doch und schreibt in einer <em>höflichen</em> Form eure Stellungnahme an den/die Abgeordnete(n). Am besten als Brief im "Toter-Baum-Format". E-Mails landen bestimmt eh im Spam-Filter. (Ich gebe zu, ich habe es noch nicht gemacht, aber ich habe es vor).
</p><h3>Outro</h3><p class="break">Informiert euch bitte weiter über die Problematik (auch über die Vorratsdatenspeicherung und weitere Späße der Regierung), sagt es weiter! Verdeutlicht auch den Nicht-IT-Leuten, dass es keine "Panikmache" ist, sondern die ersten Bausteine für dreiste Zensur und Einschränkung der Grundrechte. </p><p class="whiteline">Man braucht nicht über China, Iran und Russland zu lästern, wenn man nicht in der Lage zu sehen ist, was im eigenen Land passiert.
</p><p class="whiteline">Damit ihr dann in 20 Jahren nicht von euren Kindern und Enkeln die Frage anhören müsst: "Wie konntet ihr nur zulassen, dass es so weit kommt?". Wie es sich die Weimarer-Republik-Generation anhören musste.

</p> 
            </div>
        </content>
        <dc:subject>überwachung</dc:subject>
<dc:subject>datenschutz</dc:subject>
<dc:subject>politics</dc:subject>
<dc:subject>politik</dc:subject>
<dc:subject>zensur</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/22-Mehrere-Benutzer-auf-einer-Soundkarte-mit-ALSA.html" rel="alternate" title="Mehrere Benutzer auf einer Soundkarte mit ALSA" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2010-01-27T20:19:34Z</published>
        <updated>2011-09-12T10:28:19Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=22</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=22</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://www.fail2fail.com/archives/22-guid.html</id>
        <title type="html">Mehrere Benutzer auf einer Soundkarte mit ALSA</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">In einigen Fällen laufen gleichzeitig mehrere Xsessions mit verschiedenen Benutzern. Oft ist das Problem bei Umgebungen ohne Soundserver wie Pulseaudio oder ESD, dass ein Benutzer das Ausgabegerät blockiert und andere somit ohne Audio-Wiedergabe zurecht kommen müssen. Auch falls ein Musik-Daemon wie MPD über eigenen Benutzer läuft, kann es mit dem Xsession-Benutzer eine Schlacht ganz nach "wer zuerst kommt, mahlt zuerst" um das Gerät geben.
</p><p class="break">Eine mögliche 3-Schritte-Lösung für ALSA setzt auf der Benutzung des dmix-Plugins auf:</p> <br /><a href="http://www.fail2fail.com/archives/22-Mehrere-Benutzer-auf-einer-Soundkarte-mit-ALSA.html#extended">Continue reading "Mehrere Benutzer auf einer Soundkarte mit ALSA"</a>
            </div>
        </content>
        <dc:subject>alsa</dc:subject>
<dc:subject>archlinux</dc:subject>
<dc:subject>linux</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/39-.-..html" rel="alternate" title="Линукс не для тебя. Брось это." />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2011-03-06T00:02:42Z</published>
        <updated>2011-07-10T13:52:49Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=39</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=39</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/1-Misc" label="Misc" term="Misc" />
    
        <id>http://www.fail2fail.com/archives/39-guid.html</id>
        <title type="html">Линукс не для тебя. Брось это.</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">Серьёзно, не трать сил и стараний. Это свыше твоих возможностей. Ты напрасно потратишь <strike>часы</strike> дни, только чтобы в конечном итоге сдаться. Ты заставишь тратить усилия других людей. Через несколько дней ты снова проинсталлируешь Windows - так зачем старания?
</p><p class="whiteline">Ты думаешь, я шучу? Ни капельки. Делай то, что не можешь перестать делать, но не жалуйся позже не то, что тебя не предупреждали.
</p><h3>У тебя не те мотивы</h3><p>Ты умственная компьютерная элита. По крайней мере считаешь себя таким. Ты пользуешься хакерскими программами как Firefox и mIRC, ты знаешь элитные подпольные форумы и у тебя есть страничка на яндексе. Ты ремонтируешь компьютеры других (то есть, ты форматируешь их жёсткие диски и устанавливаешь заново Windows). И вообще, в твоём классе все тебя считают экспертом по компьютерам.
</p><p class="break">Но у тебя есть одна проблема. Тебе скучно (да ещё и каникулы)... Ты прощёлкал мышкой весь свой не лицензионный Windows - знаешь все эти прекрасные настройки. В принципе, тебе даже нравится Windows, но с ним ты больше не чувствуешь себя достаточно элитным - в конце концов, на сегодняшний день, им пользуется каждый. До этой поры, ты ограничивался тем, давать квалифицированные комментарии на форумах и радовал твоих читателей изречениями как "LOL! Сраный M$! OMFG!11111одинодинодиннадцать" и "Вонючий масдай!!!одинодинодин", только чтобы дать всем понять о твоём глубоком и обоснованном отвращении к Windows.</p><p class="whiteline">Но тебе этого больше недостаточно. После пятой партии Counterstrike ты заглядываешь к своим корешам в IRC. Там тебе рассказывают о настоящей хакерской операционке. Ибо элита пользуется Линуксом. От тебя слышат сразу же только "Ого, вот это офигенно!" и ты ещё успеваешь добавить "а где надыбать ISOz?". Но далее ты не воспринимаешь ответ; Ты уже давно на Piratebay и ищешь там Linux 9 или Linux 10. Всё равно. 
</p><p class="whiteline">Как истинный хакер, ты уже конечно знаком с "расшариванием" и с твоей супер-бупер-быстрой безлимиткой ты быстро скачиваешь DVD c Kubuntu. Хотя ты и не уверен, что делать с этим "ubuntu-10.10-desktop-amd64-alpha1.iso", к счастью есть форум, где тебе советовали не распаковывать этот файл твоим любимым архиватором, и вообще, это не та архитектура. Установка, на данный момент, настолько идиотически проста, что через несколько мгновений твой новый Линукс с KDE улыбaется тебе рабочим столом. Windows, ты подумал, тебе уже так и так не понадобится - поэтому ты удалил его при этой возможности.
</p><h3>Линукс - не замена Windows</h3><p>Ну вот ты и сидишь перед твоим Линуксом 10.10 и пытаешься в нём разобраться. "В принципе," - говоришь ты себе - "это очень даже мило". Но ты не можешь найти систему управления. Вообще, некоторые вещи не функционируют и ты задаёшь себе вопрос, почему ты не можешь воспроизвести твои .mp3 файлы. Ты спрашиваешь себя, зачем в 2010-ом году нужна консоль.</p><p class="whiteline">В скором времени тебе выявляют апокалипсис. Обнаруживается то, что ты не считал возможным: О, ужас - под Линуксом не работает твоя любимая стрелялка! Эта новость тебя довольно-таки подламывает. Ну ладно - думаешь ты - ты высоко мотивированный и новый человек - потренируюсь-ка я в Photoshop'е. О, да, ещё один нюанс - Photoshop тоже не идёт. Только Gimp. Какая замена. Вообще ты удивляешься, почему в твоём стартовом меню так много программ - и ничего полезного.
</p><p class="whiteline">Но ты настоящий хакер. Ты не сдаёшься. Ты упрям. Ты намерен доказать всем насколько ты элитарен. Ты же ведь уже заявил в школе, что ты элитный Линукс-хакер. Но по настоящему подружиться с твоим Линуксом всё-таки пока не получается. Напротив, ты находишь всё очень запутанным и тебя постоянно направляют на какие-то Howtos и "Маны" и всякие не занимающие вещи. Читать? Да ну нафиг! С таким бы успехом ты мог бы начать читать заданный в школе "Война и мир". Кому нужно чтение, если у него дома компьютер? Излишне!
</p><p class="whiteline">Ты задаёшься вопросом, чего там все находят в этом Линуксе? Каким образом это когда-либо может стать заменой "Вендовозу", если там не не работают простейшие вещи? Идея, что Линукс - это альтернатива, не приходит тебе даже в голову. В конце концов - KDE даже оптически смахивает немного на Windows. Всё равно, сдаться вне обсуждении. Ты думаешь о том, как <i>это архаичное что-то</i> может заменить Windows. Как эти странные DEB могут быть комфортнее двойного щелчка на "setup.exe"? Ты начинаешь скучать по повседневным вещам: "Что? Скомпилировать ядро? Я же просто хочу разрешение выше 800x600 на рабочем столе".
</p><h3>Ты не готов набираться знаний</h3><p>"Раньше", думаешь ты, "я просто щёлкал по кнопочкам до тех пор, пока оно не начинало работать". Для тебя кажется логичным, что под Линуксом должно получаться так же. 15 постов на форуме и 20 часов в IRC позже и после того, как ты прокопался через кучу "RTFM"ов, ты находишь два или три сострадательных совета. Ты не понимаешь, что хотят от тебя эти люди. Каждый когда-то начинал! Почему тебе не помогают? Почему все настолько не дружелюбны? Высокомерный народ, эти Линуксоиды. Лучшее, что ты от них слышишь, это ссылки на какие-то бесполезные ресурсы на английском. Не то чтобы ты бросал на них взгляд, ведь дать простой ответ на твой простой вопрос не может быть таким тяжёлым. Все вокруг виноваты, только не ты. И почему Линукс не такой как Windows? Такой удобный для начинающих и простой. С тебя достаточно. "Если это всё, что Линукс может дать, тогда я с радостью останусь на Windows", думаешь ты. Пересесть заново на Windows после самых долгих трёх дней твоей жизни тебе даётся не особо тяжело, особенно после того, как тебе в IRC посоветовали "прооптимировать" твой жёсткий диск:</p><pre>&lt;xxx&gt; набери просто if=/dev/random of=/dev/hda  bs=1M  count=2048</pre><p>Конечно же, ты это сделал. Ты даже не поинтересовался, что ты этим сделаешь. Зато, ты на данный момент вылечен от Линукса. Но недавно, в IRC, тебе сказали, что на твоём маршрутизаторе тоже установлен Линукс и что с ним можно вытворять невообразимые вещи. Ты попробуешь это обязательно. На следующих выходных.
</p><p class="break"><em>Свободный перевод немецкого оригинала "<a href="http://daemonkeeper.net/43/linux-ist-nichts-fuer-dich-lass-es">Linux ist nichts für dich. Lass es</a>."  с разрешения автора. </p><p class="break">Creative Commons Attribution-NoDerivs 3.0 Unported License. <div xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/" about="http://daemonkeeper.net/autor-impressum/"><span property="dct:title">d(a)emonkeeper's purgatory</span> (<a rel="cc:attributionURL" property="cc:attributionName" href="http://daemonkeeper.net">Arno Toell</a>) / <a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">CC BY-ND 3.0</a></div></em></p> 
            </div>
        </content>
        <dc:subject>linux</dc:subject>
<dc:subject>misc</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/32-Restructured-Text-nach-Mediawiki-Markup-konvertieren.html" rel="alternate" title="Restructured Text nach Mediawiki Markup konvertieren" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2010-09-21T16:11:22Z</published>
        <updated>2011-05-02T22:57:12Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=32</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=32</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/4-Software" label="Software" term="Software" />
    
        <id>http://www.fail2fail.com/archives/32-guid.html</id>
        <title type="html">Restructured Text nach Mediawiki Markup konvertieren</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">Vor einigen Tagen wollte ich größere Menge von restructured text Dokumenten (<a href="http://docutils.sourceforge.net/docs/user/rst/quickref.html" title="restructured Text Quick Reference">reST</a>) nach Mediawiki Markup konvertieren. Eine Recherche ergab, dass es noch gar keine Werkzuege gibt, die das so machen, wie ich es haben wollte. Für sehr einfache reST Dokumente könnte sich <a href="http://johnmacfarlane.net/pandoc/" title="pandoc">Pandoc</a> eignen. In vielen Fällen bei meinen Dokumenten, hatte es keine ordentliche Ausgabe hingekriegt.
</p><p class="whiteline">Basierend auf <a href="http://code.google.com/p/wikir/" title="Wikir">Wikir</a> (reST zu <a href="http://code.google.com/p/support/wiki/WikiSyntax" title="Google Code Wiki Syntax">GoogleCodeWiki</a>) und docutils habe ich einen Python-Skript geschrieben, der die Konvertierung so macht, wie ich es haben möchte. Bei Bedarf kann der Skript nicht nur reST nach Mediawiki Markup überführen, sondern auch das Dokument in eine minimale XML-Struktur "verpacken", so dass die Ergebnisse über die Import-Spezialseite importiert werden können. Der Code wird keinen Schönheits-Award gewinnen, seinen Zweck erfüllt er aber bei mir und, hoffentlich, kann es jemandem auf eine Weise behilflich sein.
</p><p class="whiteline">Der Skript steht <a href="http://github.com/jhamb/rest2wiki" title="rest2wiki">auf Github zur Verfügung</a>.
</p><p class="break">Kurz der Stand der Dinge:</p><ul>
    <li>reST nach GoogleWiki kennt:</li>
        </p><ul><li>title</li>
        <li>code block </li>
        <li>strong + emphased text</li>
        <li>bullet + enumeration lists</li>
        <li>paragraph</li>
        <li>references</li>
    </ul><p class="break">    <li>reST nach Mediawiki kennt:</li></p><ul>
        <li>title</li>
        <li>code block</li><li>inline literals
        </li><li>strong + emphased text</li>
        <li>image</li>
        <li>bullet + enumeration lists</li>
        <li>definition lists</li>
        <li>paragraph</li>
        <li>comment</li>
        <li><strong>keine interne Links (todo)</strong></li>
    </ul><p class="break">    <li>minimale XML-Struktur für Mediawiki-Import</li></p><p class="whiteline"></ul><p>Möglicherweise werde ich in der nächsten Zeit etwas verbessern, oder sogar, wenn ich Zeit finde, Mediawiki-Support im Wikir ordnungsgemäß einpflegen.
</p><h3>Anwendungsbeispiel</h3><pre><div class="bash geshi" style="text-align: left;">user<span style="color: #000000; font-weight: bold;">@</span>host $ &#160; <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>directory_with_rest_documents<br />user<span style="color: #000000; font-weight: bold;">@</span>host $ &#160; <span style="color: #c20cb9; font-weight: bold;">mkdir</span> ..<span style="color: #000000; font-weight: bold;">/</span>docs.mediawiki<br />user<span style="color: #000000; font-weight: bold;">@</span>host $ &#160; <span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">*</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;processing '<span style="color: #007800;">$i</span>'&quot;</span>; <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>rest2wiki.py \<br />&#160; &#160; &#160; &#160; &#160; &#160;<span style="color: #660033;">-w</span> mediawiki \<br />&#160; &#160; &#160; &#160; &#160; &#160;<span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$i</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> ..<span style="color: #000000; font-weight: bold;">/</span>docs.mediawiki<span style="color: #000000; font-weight: bold;">/</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">$i</span>&quot;</span>.mediawiki; <span style="color: #000000; font-weight: bold;">done</span></div></pre><p>Aufruf von <tt>rest2wiki.py -h</tt> listet weitere mögliche Argumente auf.</p><p class="break">Vorschläge und Patches sind sehr willkommen. <img src="http://www.fail2fail.com/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" /></p> 
            </div>
        </content>
        <dc:subject>docutils</dc:subject>
<dc:subject>google</dc:subject>
<dc:subject>mediawiki</dc:subject>
<dc:subject>python</dc:subject>
<dc:subject>rest</dc:subject>
<dc:subject>restructured text</dc:subject>
<dc:subject>software</dc:subject>
<dc:subject>wikir</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/40-Scrollgeschwindigkeit-im-Vimperator.html" rel="alternate" title="Scrollgeschwindigkeit im Vimperator" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2011-04-11T17:49:51Z</published>
        <updated>2011-04-11T18:07:28Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=40</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=40</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/4-Software" label="Software" term="Software" />
    
        <id>http://www.fail2fail.com/archives/40-guid.html</id>
        <title type="html">Scrollgeschwindigkeit im Vimperator</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">Damit man im Vimperator gefühlt noch schneller browsen kann, die Scrollweite hochsetzen mit dem Eintrag in <tt>.vimperatorrc</tt>:<p><div class="text geshi" style="text-align: left;">nnoremap j 7j<br />nnoremap k 7k</div></p></p> 
            </div>
        </content>
        <dc:subject>software</dc:subject>
<dc:subject>vimperator</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/35-IMAP-Fehlermeldung-Web-Login-required-bei-GMail.html" rel="alternate" title="IMAP Fehlermeldung: &quot;Web Login required&quot; bei GMail" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2011-01-12T11:07:47Z</published>
        <updated>2011-03-11T10:14:23Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=35</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=35</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/1-Misc" label="Misc" term="Misc" />
    
        <id>http://www.fail2fail.com/archives/35-guid.html</id>
        <title type="html">IMAP Fehlermeldung: &quot;Web Login required&quot; bei GMail</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">Heute habe ich von <texttt>offlineimap</texttt> folgenden Fehler beim Abrufen der (Google) Mails bekommen:</p><p class="break"><div class="plaintext geshi" style="text-align: left;">WARNING: Error occured attempting to sync account gmail: [ALERT] Web login required</div></p><p class="whiteline">Gründe dafür u.A. könnten sein: Passwort kürzer als 8 Zeichen oder zu klein gewählter Zeitinterval zwischen den IMAP/POP3 Anfragen.
</p><p class="break">Das lösen des Captchas auf <a href="https://www.google.com/accounts/DisplayUnlockCaptcha">https://www.google.com/accounts/DisplayUnlockCaptcha</a> behebt das Problem. Sollte es öfter geschehen, muss wahrscheinlich die Zeit zwischen Abfragen erhöht werden. Offiziell sollte die Zeit mindestens 10 Minuten betragen. Aber, psst.. mal unter uns,  funktioniert es auch mit 4 Minuten seit Monaten wunderbar.</p> 
            </div>
        </content>
        <dc:subject>gmail</dc:subject>
<dc:subject>imap</dc:subject>
<dc:subject>misc</dc:subject>
<dc:subject>pop3</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/38-Betrugsfalle-beim-Autoverkauf.html" rel="alternate" title="Betrugsfalle beim Autoverkauf" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2011-02-22T19:00:26Z</published>
        <updated>2011-02-22T20:03:47Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=38</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=38</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/6-Hardware" label="Hardware" term="Hardware" />
    
        <id>http://www.fail2fail.com/archives/38-guid.html</id>
        <title type="html">Betrugsfalle beim Autoverkauf</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">Eigentlich wäre das Betrugsverfahren gar nicht wert es zu beschreiben, wenn es nicht in die Kategorie Hardware Hacking fallen würde.
</p><p class="whiteline"><em>An dieser Stelle möchte ich explizit darauf hinweisen, dass ich nicht zum Nachahmen animieren möchte, sondern lediglich einen Trick beschreibe, auf den ein Verwandter von mir fast reingefallen ist.</em>
</p><p class="break">Zielopfer: privater Diesel-Autoverkäufer (A)</p><p class="break">Betrüger: mindestens zwei Personen (B1 und B2)</p><p class="whiteline">Umgebung: frostige Temperatur
</p><p class="break">&bull; Bs einigen sich auf den vorgeschlagenen Preis</p><p class="break">&bull; B1 setzt sich ans Steuer um den Motor anzulassen und betätigt den Hebel zum Öffnen der Motorhaube</p><p class="break">&bull; B2 öffnet die Motorhaube und schraubt den Öldeckel am Motor ab (um dort "prüfend" reinzuschauen)</p><p class="break">&bull; B1 dreht den Zündschlüssel ohne abzuwarten bis Zündungsspirale warm ist. Dabei startet der Motor dementsprechend lange und kurz bevor er nun starten soll, lässt B1 die Zündung wieder los (dabei guckt B1 noch ganz fragend). Dies wird 2-3 mal gemacht, bevor man den Motor starten lässt.</p><p class="whiteline">&bull; sobald der Motor (schwer) startet drückt B1 stark auf das Gaspedal.
</p><p class="whiteline">Ergebnis: durch das "Leiern" und Ansaugen der Luft kommt aus dem Auspuff eine schwarze Flüssigkeit rausgeschossen und die Bs reden einem ein, dass es Motorschaden gibt und bieten die Hälfte des abgemachten Preises an. Jemand der technisch weniger versiert oder älter ist, steht erstmal unter Schock und ist froh das Auto mal überhaupt loszuwerden. Wenn dabei noch die Bs sehr gut spielen, hat ein Opfer wenig Chancen.

</p><p class="break">Mich hat die Story ziemlich sprachlos gemacht. Ich denke, auf solche Tricks (wahrscheinlich gibt es mehrere dieser Art), sollte man als Privatverkäufer gut vorbereitet sein.</p> 
            </div>
        </content>
        <dc:subject>auto</dc:subject>
<dc:subject>hack</dc:subject>
<dc:subject>hardware</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/37-Ein-Personalausweis-beweist-noch-lange-nichts.html" rel="alternate" title="Ein Personalausweis beweist noch lange nichts" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2011-02-10T11:43:03Z</published>
        <updated>2011-02-10T16:08:25Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=37</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=37</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/1-Misc" label="Misc" term="Misc" />
    
        <id>http://www.fail2fail.com/archives/37-guid.html</id>
        <title type="html">Ein Personalausweis beweist noch lange nichts</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">Ich <del>wollte</del> musste mich heute das erste Mal für die deutsche Regierung &ldquo;biometrisieren&rdquo; lassen und meinen Personalausweis verlängern. Paradoxerweise, stellt sich heraus, dass in meinem Landkreis ein deutscher und noch gültiger Personalausweis nicht dazu ausreicht, um die deutsche Staatsangehörigkeit, den Geburtsort und das Geburtsdatum nachzuweisen.</p><p class="whiteline">In der Praxis bedeutet das, wenn der Ausweis nicht in meinem aktuellen Landkreis ausgestellt worden ist, muss man Geburtsurkunde <u>und</u> Einbürgerungsurkunde mitbringen. Beim zweiten Dokument, übrigens, darf ich meine Eltern bitten mir es von WeitWeitWeg&#153; zukommen zu lassen. Bis es soweit ist, läuft wahrscheinlich mein Personalausweis ab. <img src="http://www.fail2fail.com/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" />
</p><p class="break">Noch mal zum auf der Zunge zergehen zu lassen:</p><p class="whiteline">Man braucht einen extra Nachweis, dass die Daten in einem nicht abgelaufenen deutschen Personalausweis auch stimmen.
</p><p class="whiteline">Wozu der Ausweis dann eigentlich?
</p><p class="break">P. S.: Das ist keine rhetorische Frage - Erklärungen sind willkommen.</p> 
            </div>
        </content>
        <dc:subject>fun</dc:subject>
<dc:subject>misc</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/26-1.-Mai-und-schlechtes-Wetter.html" rel="alternate" title="1. Mai und schlechtes Wetter" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2010-05-01T23:30:00Z</published>
        <updated>2011-02-08T13:07:35Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=26</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=26</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/1-Misc" label="Misc" term="Misc" />
    
        <id>http://www.fail2fail.com/archives/26-guid.html</id>
        <title type="html">1. Mai und schlechtes Wetter</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">Feiertag, an dem alles geschlossen und draußen zu nass ist, resultiert im häuslichen Abendvertrieb - heute Kritze-Kratze in Gimp.</p><p class="break"><div class="serendipity_imageComment_center" style="width: 500px"><div class="serendipity_imageComment_img"><a class='serendipity_image_link' href='http://www.fail2fail.com/uploads/misc/kitty.png'><!-- s9ymdb:51 --><img class="serendipity_image_center" width="500" src="http://www.fail2fail.com/serendipity_admin_image_selector.php?serendipity[image]=53&serendipity[disposition]=inline&serendipity[step]=showItem&serendipity[resizeWidth]=500" alt="" /></a></div><div class="serendipity_imageComment_txt">Flying Kitty</div></div></p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/36-Pegel-der-Murg-in-Rastatt.html" rel="alternate" title="Pegel der Murg in Rastatt" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2011-01-16T19:25:13Z</published>
        <updated>2011-01-16T20:09:25Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=36</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=36</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/1-Misc" label="Misc" term="Misc" />
    
        <id>http://www.fail2fail.com/archives/36-guid.html</id>
        <title type="html">Pegel der Murg in Rastatt</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">Heute habe ich ein schönes Photo bekommen, das den Pegelanstieg der Murg veranschaulicht. Das untere Photo zeigt den "Normalzustand". Das Obere wurde am 13.01.2011 geschossen.</p><p class="break"><div class='s9y_typeset s9y_typeset_center' style='text-align: center; margin: 5px auto 0px auto'><div class="serendipity_imageComment_center" style="width: 400px"><div class="serendipity_imageComment_img"><a class="serendipity_image_link"  href='http://www.fail2fail.com/uploads/misc/murgpegel_mid.jpg'><!-- s9ymdb:70 --><img class="serendipity_image_center" width="400" src="http://www.fail2fail.com/serendipity_admin_image_selector.php?serendipity[image]=70&serendipity[disposition]=inline&serendipity[step]=showItem&serendipity[resizeWidth]=400" alt="Murgpegel" /></a></div><div class="serendipity_imageComment_txt">Photo auf der Brücke Zur Friedrichsfeste in Richtung Ottersdorfer Str. in Rastatt.</div></div></div></p><p class="break">Die Häuser neben dem Kanal liegen geschätzt ca. 1.5 Meter unter der Böschungskante.</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/34-Entfernen-aller-Dateien,-die-zuvor-mit-unzip-extrahiert-wurden.html" rel="alternate" title="Entfernen aller Dateien, die zuvor mit unzip extrahiert wurden" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2010-10-22T23:28:14Z</published>
        <updated>2011-01-08T15:40:18Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=34</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=34</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://www.fail2fail.com/archives/34-guid.html</id>
        <title type="html">Entfernen aller Dateien, die zuvor mit unzip extrahiert wurden</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">Auch wenn sowas nach einigen Jahren Erfahrung nicht passieren sollte: ein Mal guckt man nicht in die Dateiliste eines Archivs vor dem Entpacken und schon hat man ein Verzeichnis zugemüllt. Heute speziell bei mir: unzip.
</p><p class="break">Da das nun nicht das erste (und wohl auch nicht das letzte) Mal gewesen ist - ein schmutziger "Einzeiler" für die bash für das Entfernen der zuvor <strong>mit unzip</strong> entpackten Dateien, damit ich beim nächsten mal nicht wieder Zeit verliere. Anzuwenden im selben Ordner, in dem die Dateien entpackt worden sind und in dem das Archiv liegt. </p><pre><div class="bash geshi" style="text-align: left;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>trash; <span style="color: #c20cb9; font-weight: bold;">unzip</span> <span style="color: #660033;">-l</span> ARCHIV.zip <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tail</span> -n+<span style="color: #000000;">4</span> <span style="color: #000000; font-weight: bold;">|</span> \<br /><span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-n-2</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tr</span> <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot; &quot;</span> <span style="color: #000000; font-weight: bold;">|</span> \<br /><span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-r</span> line; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$line</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">' '</span> -f5; <span style="color: #000000; font-weight: bold;">done</span> <span style="color: #000000; font-weight: bold;">|</span> \<br /><span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-I</span> moveme <span style="color: #c20cb9; font-weight: bold;">mv</span> moveme <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>trash;</div></pre><p>Der Skript wird leider alle beim Entpacken erstellte Ordner nicht löschen (war bei mir in diesem Fall nicht relevant). Da könnte einem hinterher noch folgendes behilflich sein:</p><pre><div class="bash geshi" style="text-align: left;"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-depth</span> <span style="color: #660033;">-type</span> d <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #c20cb9; font-weight: bold;">rmdir</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null</div></pre><p>Das soll im Arbeitsverzeichnis rekursiv alle leeren Ordner löschen. Nicht elegant, aber wer braucht schon leere Ordner? *hust*</p><p class="break">Für das regexen der Ordnernamen aus der Archiv-Dateiliste war ich (noch) zu faul.</p><p class="whiteline">Achtung: getestet nur an einem meinen konkreten Fall, ohne Gewähr, etc.
</p><p class="break">Update:</p><p class="break">Lösung für das Mitnehmen von Ordnern wäre:</p><pre><div class="bash geshi" style="text-align: left;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>trash; <span style="color: #c20cb9; font-weight: bold;">unzip</span> <span style="color: #660033;">-l</span> ARCHIV.zip <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tail</span> -n+<span style="color: #000000;">4</span> <span style="color: #000000; font-weight: bold;">|</span> \<br /><span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-n-2</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tr</span> <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot; &quot;</span> <span style="color: #000000; font-weight: bold;">|</span> \<br /><span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-r</span> line; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$line</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">' '</span> -f5; <span style="color: #000000; font-weight: bold;">done</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">'/'</span> <span style="color: #660033;">-f1</span> \<br /><span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-I</span> moveme <span style="color: #c20cb9; font-weight: bold;">mv</span> moveme <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>trash <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null;</div></pre><p>(Ungetestet). Hier besteht allerdings die Gefahr, dass man Ordner, die vor dem Entpacken des Archivs existierten, mitnimmt. </p> 
            </div>
        </content>
        <dc:subject>bash</dc:subject>
<dc:subject>linux</dc:subject>
<dc:subject>misc</dc:subject>
<dc:subject>unzip</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/33-Das-beste-Mac-Feature.html" rel="alternate" title="Das beste Mac Feature" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2010-10-22T16:54:46Z</published>
        <updated>2010-10-22T17:34:24Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=33</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=33</wfw:commentRss>
    
    
        <id>http://www.fail2fail.com/archives/33-guid.html</id>
        <title type="html">Das beste Mac Feature</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">Meine erste Mac-Erfahrung: Ich durfte/sollte mir im Rahmen einer Projektarbeit einen iMac  in OVP nach Hause nehmen. Von allen  Features hat mir am meisten der <strong>Geruch</strong> gefallen. Gibt's das als Spray für meine alte Kisten?</p> 
            </div>
        </content>
        <dc:subject>mac</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/31-Abenteuerland-e-bug.de.html" rel="alternate" title="Abenteuerland - e-bug.de" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2010-09-08T10:56:30Z</published>
        <updated>2010-10-04T21:20:07Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=31</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=31</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/1-Misc" label="Misc" term="Misc" />
    
        <id>http://www.fail2fail.com/archives/31-guid.html</id>
        <title type="html">Abenteuerland - e-bug.de</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break"><div class="serendipity_imageComment_right" style="width: 222px"><div class="serendipity_imageComment_img"><!-- s9ymdb:66 --><img class="serendipity_image_right" width="222" height="147" src="http://www.fail2fail.com/serendipity_admin_image_selector.php?serendipity[image]=66&serendipity[disposition]=inline&serendipity[step]=showItem&serendipity[resizeHeight]=147&serendipity[resizeWidth]=222" alt="" /></div><div class="serendipity_imageComment_txt">Credits: <a href="http://www.freedigitalphotos.net/images/view_photog.php?photogid=987">Image: graur razvan ionut / FreeDigitalPhotos.net</a></div></div></p><p class="break"><!-- s9ymdb:66 -->Eine neue Tastatur musste mal her, also bestellte ich beim Online-Shop e-bug.de.</p><p class="whiteline">Da man gewöhnt ist, über Web 2.0 ohne Probleme einzukaufen, bestellt man ohne Recherchieren nach Erfahrungsberichten wild los. Und siehe da, aus einer langweiligen 08/15-Bestellung wird durch eine Prise Pech ein rosiges Abenteuer!
</p><h3>Protokoll</h3><h4>30.07.2010:</h4><p>- Bestellung Online über Web-Seite getätigt und am selben Tag Geld überwiesen. Beide Artikel zum Bestellzeitpunkt als sofort lieferbar angegeben.</p><p class="break">- Web-Seite zeigt im Kundenmenü an, dass Bestellung in Bearbeitung ist</p><p class="whiteline">- Bestätigungsmail bekommen
</p><h4>03.08.2010:</h4><p>- Web-Seite zeigt im Kundenmenü an "Zahlungseingang erfolgt. Diese Bestellung wurde per dpm_dpm_moneyorder versendet!"
</p><h4>10.08.2010:</h4><p>Anfrage bzgl. Bearbeitungsstand der Bestellung über LiveZilla. e-bug-Support-1 antwortet, dass die Ware heute in den Versand gehen soll. Meine explizite Nachfrage, ob die Ware also _bei mir_ am nächsten oder übernächsten Tag voraussichtlich eintrifft, beantwortet der Mitarbeiter mit einem "ja".</p><p class="whiteline">(Bemerkung: zu diesem Zeitpunkt ist die Tastatur immer noch als "sofort lieferbar" angegeben.)
</p><h4>12.08.2010:</h4><p>Erneute Anfrage bzgl. Bearbeitungsstand der Bestellung über LiveZilla. e-bug-Support-2 antwortet, es sei keine Zahlung im System hinterlegt. Als ich ihn darauf aufmerksam mache, dass im Kundenmenü Zahlungseingang als 03.08 angegeben ist und e-bug-Support-1 mir den Versand bereits am 10.08 versprochen hatte, möchte er "noch einmal eben nachschauen". Eine Minute später schreibt er, die Ware sei wirklich am 10.08 versandt worden, aber (festhalten) "von unserem Hauptlager zu uns und wir werden dieses voraussichtlich morgen erhalten und ihnen dann zukommen lassen". (er konnte ja nicht wissen, dass ich den e-bug-Support-1 explizit nach dem Versandziel fragte)
</p><h4>17.08.2010:</h4><p>Noch eine Anfrage bzgl. Bearbeitungsstand, wieder LiveZilla. e-bug-Support-3 antwortet "Leider war die Tastatur zwischenzeitlich abverkauft, neue Ware kommt am Mittwoch rein".
</p><h4>26.08.2010:</h4><p>Immer noch keine Ware erhalten. Ich verschicke einen Rücktritt von der Bestellung/Kaufvertrag als Brief per Einschreiben mit Rückschein und der Aufforderung mein Geld bis spätestens 08.09.2010 an mich zu zurückzuüberweisen.
</p><h4>Anfang September</h4><p>kommt der Rückschein zurück, mit Briefempfangsnachweis am 31.08.2010.
</p><h4>08.09.2010:</h4><p>Kann immer noch kein Geldeingang von e-bug auf meinem Konto verzeichnen.

</p><p class="whiteline">Fazit: Stunden verlorener Zeit durch die Schreibarbeit an Support, und das auch noch auf der alten Tastatur.
</p><p class="whiteline">Ich grübele gerade vor sich hin, ob es ein Mahnbescheid tut, oder doch zum Anwalt gehen.
</p><p class="break"><em>Update 04.10.2010:</p><p class="whiteline">Am 22.09.2010 habe ich mich entschieden noch eine letzte Rückzahlungsfrist per Mail zu setzen. Binnen einiger Minuten kam eine Mail von e-bug an, ich soll die Forderung über die speziell von e-bug eingerichtete (SSL-gesicherte) Seite oder "klassisch per Brief" (hatte ich bereits eigentlich) abwickeln. Nach dem Befolgen des Ratschlags und einer weiteren Woche kam das Geld auf meinem Konto an.
</p><p class="break">Fakt ist dennoch, ich musste knapp zwei Monate auf mein Geld verzichten und für die Erstattung selbst Zeit investieren. Ach, die Kosten für den Brief per Einschreiben mit Rückschein kommen zusätzlich hinzu... </em></p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/23-In-der-Mittagspause-mit-der-IT-abrechnen.html" rel="alternate" title="In der Mittagspause mit der IT abrechnen" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2010-02-10T16:53:58Z</published>
        <updated>2010-08-15T01:33:56Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=23</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=23</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/1-Misc" label="Misc" term="Misc" />
    
        <id>http://www.fail2fail.com/archives/23-guid.html</id>
        <title type="html">In der Mittagspause mit der IT abrechnen</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="break">Anlass - meine neuliche Auseinandersetzung mit Software, die ich normalerweise nicht nutzen würde. Wenn man mal wieder von irgendeiner nervenden IT-Plage, egal welcher Größenordnung, betroffen ist, kann man Pigor &amp; Eichhorn reden lassen, falls einem selbst die Worte fehlen:</p><p class="break"><div class='s9y_typeset s9y_typeset_center' style='text-align: center; margin: 10px auto 0px auto'><object width="320" height="265"><param name="movie" value="http://www.youtube.com/v/BKfTlJ06Eu0?fs=1&amp;hl=de_DE"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/xTorchdVl5c&hl=de_DE&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="265"></embed></object></div></p><p class="break">Möglicherweise fühlt man sich dann besser, unabhängig vom Musikgeschmack. Den Text finde ich aber wirklich interessant.</p> 
            </div>
        </content>
        <dc:subject>fun</dc:subject>
<dc:subject>misc</dc:subject>
<dc:subject>musik</dc:subject>
<dc:subject>software</dc:subject>

    </entry>
    <entry>
        <link href="http://www.fail2fail.com/archives/30-Ion3Notion-und-Fullscreen-Flash-Videos.html" rel="alternate" title="Ion3/Notion und Fullscreen Flash-Videos" />
        <author>
            <name>Juri Hamburg</name>
                    </author>
    
        <published>2010-08-14T23:05:35Z</published>
        <updated>2010-08-15T00:29:40Z</updated>
        <wfw:comment>http://www.fail2fail.com/wfwcomment.php?cid=30</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://www.fail2fail.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=30</wfw:commentRss>
    
            <category scheme="http://www.fail2fail.com/categories/4-Software" label="Software" term="Software" />
    
        <id>http://www.fail2fail.com/archives/30-guid.html</id>
        <title type="html">Ion3/Notion und Fullscreen Flash-Videos</title>
        <content type="xhtml" xml:base="http://www.fail2fail.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p class="whiteline">Da ständig in #ion und #notion Leute nach dem Workaround fragen, wie man Flash-Videos im Vollbild unter ion3 anschauen kann, soll hier es kurz zusammengefasst werden, da über google man nicht sonderlich schnell eine kompakte Lösung findet.
</p><p class="whiteline">Kurz zum Problem selbst: Flash-Videos (z.B. auf youtube) verlassen den Vollbildmodus seit Flashplugin-Version 9.x (?), wenn kurz nach dem Vollbildmodus-Aufruf der Fokus auf des Video-Fenster verschwindet. Resultat: keine Fullscreen-Flash-Videos für ion3-Nutzer. 
</p><p class="whiteline">Zumindest nicht ohne einem üblen Hack, den es <a href="http://git.decadent.org.uk/gitweb?p=ion3.git;a=blob_plain;f=debian/cfg_kludge_flash.lua;hb=ec316c66d2678ffeddfca6c0be39d23eab55bd34" title="flash fullscreen workaround for ion3">hier zum Runterladen</a> gibt (<a href="http://fail2fail.com/dump/notion/cfg_kludge_flash.lua">lokale Kopie</a>). Diesen kann man direkt in <tt>cfg_kludges.lua</tt> oder in einer beliebige andere Datei, auf die <tt>dopath()</tt> angewandt wird,  reinkopieren.
</p><p class="whiteline">Nun muss man noch die Winprops korrigieren, damit die Workaround-Funktionen auf das richtige Fenster angewandt werden. Dazu muss man zuerst die <tt>class</tt>  und <tt>instance</tt> des Fullscreen-Flash-Fensters rauskriegen. Dazu kopiert man diesen Lua-Snippet (<a href="http://blog.gmane.org/gmane.comp.window-managers.ion.general/month=20091201">hier gefunden</a>) in ion's Lua-Code Prompt (Mod+F3):</p><pre><div class="lua geshi" style="text-align: left;">ioncore.get_hook<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'clientwin_do_manage_alt'</span><span style="color: #66cc66;">&#41;</span>:add<span style="color: #66cc66;">&#40;</span><br />&#160; &#160; <span style="color: #b1b100;">function</span><span style="color: #66cc66;">&#40;</span>cwin, <span style="color: #b1b100;">table</span><span style="color: #66cc66;">&#41;</span><br />&#160; &#160; ioncore.write_savefile<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;windowinfos&quot;</span>, cwin:get_ident<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br /><span style="color: #b1b100;">end</span><span style="color: #66cc66;">&#41;</span><br />&#160;</div></pre><p>Flash im Vollbildmodus aufrufen und die Ausgabe im <tt>~/default-session-0/windowsinfos.lua</tt> betrachten. Die <tt>class</tt> und <tt>instance</tt> müssen in den zugehörigen cfg_kludges.lua übernommen werden (auch wenn da auf den ersten Blick etwas sinnloses wie "&lt;unknown&gt;" steht).
</p><p class="break">Falls man alles richtig gemacht hat und trotzdem keinen Erfolg hat, kann es durchaus helfen die Zahl in der Zeile</p><pre><div class="lua geshi" style="text-align: left;">timer:set<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">200</span>, <span style="color: #b1b100;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> cwin:goto<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">end</span><span style="color: #66cc66;">&#41;</span></div></pre><p> zu erhöhen.</p> 
            </div>
        </content>
        <dc:subject>flash</dc:subject>
<dc:subject>ion3</dc:subject>
<dc:subject>linux</dc:subject>
<dc:subject>notion</dc:subject>
<dc:subject>software</dc:subject>

    </entry>

</feed>
