<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" >
<channel>
    
    <title>fail2fail - Software</title>
    <link>http://www.fail2fail.com/</link>
    <description>perfectionism or disability?</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.6 - http://www.s9y.org/</generator>
    
    

<item>
    <title>Screen-like tmux: Attach a tmux session from multiple clients and view different windows per client</title>
    <link>http://www.fail2fail.com/archives/45-Screen-like-tmux-Attach-a-tmux-session-from-multiple-clients-and-view-different-windows-per-client.html</link>
            <category>Software</category>
    
    <comments>http://www.fail2fail.com/archives/45-Screen-like-tmux-Attach-a-tmux-session-from-multiple-clients-and-view-different-windows-per-client.html#comments</comments>
    <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=2.0&amp;type=comments&amp;cid=45</wfw:commentRss>
    

    <author>nospam@example.com (Juri Hamburg)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;If using terminal multiplexer &lt;tt&gt;&lt;strong&gt;screen&lt;/strong&gt;&lt;/tt&gt;, one can easily attach a session which is not detached with &lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;screen&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-x&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;p class=&quot;whiteline&quot;&gt;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. 
&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;In &lt;tt&gt;&lt;strong&gt;tmux&lt;/strong&gt;&lt;/tt&gt; the default behavior differs. Though you can also attach the same tmux session to multiple clients e.g. with &lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;tmux attach-session&lt;/div&gt;&lt;/pre&gt;&lt;p&gt; 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. 
&lt;/p&gt;&lt;h3&gt;Create independend tmux sessions for the same window set&lt;/h3&gt;&lt;p class=&quot;break&quot;&gt;A user creates a new tmux session with&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;user&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;clientA$ tmux new-session&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;## create some more windows&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;## work&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;p&gt;
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;The user decides to work with the same window set in another terminal independend:&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;user&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;clientB$ tmux list-sessions&lt;br /&gt;&lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;: &lt;span style=&quot;color: #000000;&quot;&gt;8&lt;/span&gt; windows &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;created Tue Dec &lt;span style=&quot;color: #000000;&quot;&gt;13&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;20&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;55&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;56&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;2011&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;136x49&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;group &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;attached&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;user&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;clientB$ tmux new-session &lt;span style=&quot;color: #660033;&quot;&gt;-t&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;p&gt;That creates a new session which uses the same window set as group 0 listed above and attaches &lt;tt&gt;clientB&lt;/tt&gt; to it. Two independent sessions working on the same set of windows are running. Very close to screen behavior.
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;Output of &lt;tt&gt;tmux list-sessions&lt;/tt&gt; looks now like:&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;: &lt;span style=&quot;color: #000000;&quot;&gt;8&lt;/span&gt; windows &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;created Tue Dec &lt;span style=&quot;color: #000000;&quot;&gt;13&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;20&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;55&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;56&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;2011&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;136x49&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;group &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;attached&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;: &lt;span style=&quot;color: #000000;&quot;&gt;8&lt;/span&gt; windows &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;created Wed Dec &lt;span style=&quot;color: #000000;&quot;&gt;14&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;21&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;53&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;44&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;2011&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;101x33&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;group &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;attached&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;p class=&quot;whiteline&quot;&gt;While attached to a tmux session tmux lets you change your session interactively with &lt;tt&gt;&amp;lt;C-b s&amp;gt;&lt;/tt&gt;. Closing sessions is done e.g. by &lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;tmux kill-session &lt;span style=&quot;color: #660033;&quot;&gt;-t&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;sessionnumber&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;p&gt;
&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 01 Feb 2012 10:39:02 +0100</pubDate>
    <guid isPermaLink="false">http://www.fail2fail.com/archives/45-guid.html</guid>
    <category>screen</category>
<category>software</category>
<category>tmux</category>
<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Reduce the size of PDF documents</title>
    <link>http://www.fail2fail.com/archives/42-Reduce-the-size-of-PDF-documents.html</link>
            <category>Software</category>
    
    <comments>http://www.fail2fail.com/archives/42-Reduce-the-size-of-PDF-documents.html#comments</comments>
    <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=2.0&amp;type=comments&amp;cid=42</wfw:commentRss>
    

    <author>nospam@example.com (Juri Hamburg)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;Use case: You are using (La)Tex to create your document and include some big non-vector graphics or high-quality scanned documents via &lt;tt&gt;&amp;#92includepdf{}&lt;/tt&gt; from &lt;tt&gt;pdfpages&lt;/tt&gt; 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: &lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;pdf2ps finaldoc.pdf finaldoc.ps &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;ps2pdf&lt;/span&gt; finaldoc.ps finaldoc_reduced.pdf&lt;/div&gt;&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;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.
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;em&gt;Update (2012/01/20):&lt;/em&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;If the hint above is still not enough you might want to try to reduce the final size with &lt;tt&gt;&lt;strong&gt;gs&lt;/strong&gt;&lt;/tt&gt; via &lt;tt&gt;PDFSETTINGS&lt;/tt&gt; option described in the &lt;a href=&quot;http://www.ghostscript.com/doc/9.04/Ps2pdf.htm#Options&quot;&gt;Ghostscript Documentation&lt;/a&gt;:&lt;/p&gt;&lt;pre&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p class=&quot;break&quot;&gt;&lt;strong&gt;-dPDFSETTINGS&lt;/strong&gt;=configuration&lt;/p&gt;&lt;p class=&quot;break&quot;&gt; Presets the &quot;distiller parameters&quot; to one of four predefined settings:&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;   &lt;strong&gt;/screen&lt;/strong&gt; selects low-resolution output similar to the Acrobat Distiller&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;           &quot;Screen Optimized&quot; setting.&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;   &lt;strong&gt;/ebook&lt;/strong&gt; selects medium-resolution output similar to the Acrobat Distiller&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;          &quot;eBook&quot; setting.&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;   &lt;strong&gt;/printer&lt;/strong&gt; selects output similar to the Acrobat Distiller &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;          &quot;Print Optimized&quot; setting.&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;   &lt;strong&gt;/prepress&lt;/strong&gt; selects output similar to Acrobat Distiller &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;          &quot;Prepress Optimized&quot; setting.&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;   &lt;strong&gt;/default&lt;/strong&gt; selects output intended to be useful across a wide variety of &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;           uses, possibly at the expense of a larger output file. &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/pre&gt;&lt;p class=&quot;break&quot;&gt;You can apply the desired parameter using &lt;tt&gt;ps2pdf&lt;/tt&gt;:&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;ps2pdf&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-dPDFSETTINGS&lt;/span&gt;=&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;screen&lt;/span&gt; finaldoc.ps finaldoc_reduced.pdf&lt;/div&gt;&lt;/pre&gt;&lt;p class=&quot;break&quot;&gt;or &lt;tt&gt;gs&lt;/tt&gt;:&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;gs&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-q&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-dBATCH&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-dNOPAUSE&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-sDEVICE&lt;/span&gt;=pdfwrite \&lt;br /&gt;&lt;span style=&quot;color: #660033;&quot;&gt;-dPDFSETTING&lt;/span&gt;=&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;screen&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-sOutputFile&lt;/span&gt;=finaldoc_reduced.pdf finaledoc.ps&lt;/div&gt;&lt;/pre&gt;&lt;p class=&quot;break&quot;&gt;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.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 12 Dec 2011 10:26:28 +0100</pubDate>
    <guid isPermaLink="false">http://www.fail2fail.com/archives/42-guid.html</guid>
    <category>latex</category>
<category>pdf</category>
<category>software</category>
<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Case insensitive token matching in Notion/Ion3</title>
    <link>http://www.fail2fail.com/archives/43-Case-insensitive-token-matching-in-NotionIon3.html</link>
            <category>Software</category>
    
    <comments>http://www.fail2fail.com/archives/43-Case-insensitive-token-matching-in-NotionIon3.html#comments</comments>
    <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=2.0&amp;type=comments&amp;cid=43</wfw:commentRss>
    

    <author>nospam@example.com (Juri Hamburg)</author>
    <content:encoded>
    &lt;p class=&quot;whiteline&quot;&gt;To enable &lt;em&gt;case insensitive&lt;/em&gt; token matching in Notion&#039;s menus like &quot;Attach Window&quot; (META-A) and &quot;Go to Window&quot; (META-G) add this line to any &quot;dopathed&quot; file in the notion configuration:&lt;/p&gt;&lt;pre&gt;&lt;div class=&quot;lua geshi&quot; style=&quot;text-align: left;&quot;&gt;mod_query.set&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt; caseicompl &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;true&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;p&gt;That will save some time while navigating or layouting your workspaces.
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;div class=&quot;serendipity_imageComment_center&quot; style=&quot;width: 150px&quot;&gt;&lt;div class=&quot;serendipity_imageComment_img&quot;&gt;&lt;a class=&quot;serendipity_image_link&quot;  href=&#039;http://fail2fail.com/dump/kram/screenies/2012-01-20-goto_caseinsensitive.png&#039; onclick=&quot;F1 = window.open(&#039;http://fail2fail.com/dump/kram/screenies/2012-01-20-goto_caseinsensitive.png&#039;,&#039;Zoom&#039;,&#039;height=783,width=1039,top=0,left=0,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:71 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;150&quot; height=&quot;113&quot; src=&quot;http://fail2fail.com/dump/kram/screenies/2012-01-20-goto_caseinsensitive.png&quot; alt=&quot;Notion with case insensitive Goto-Query&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;serendipity_imageComment_txt&quot;&gt;Notion with case insensitive Goto-Query&lt;/div&gt;&lt;/div&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 20 Jan 2012 12:58:34 +0100</pubDate>
    <guid isPermaLink="false">http://www.fail2fail.com/archives/43-guid.html</guid>
    <category>ion3</category>
<category>lua</category>
<category>notion</category>
<category>software</category>
<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Eclipse (EE) crashes </title>
    <link>http://www.fail2fail.com/archives/41-Eclipse-EE-crashes.html</link>
            <category>Software</category>
    
    <comments>http://www.fail2fail.com/archives/41-Eclipse-EE-crashes.html#comments</comments>
    <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=2.0&amp;type=comments&amp;cid=41</wfw:commentRss>
    

    <author>nospam@example.com (Juri Hamburg)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;Some months ago Eclipse EE (Indigo) started to crash whenever Java EE view was active and I selected the menu entry &quot;Window-&gt;Web Browser&quot;. Somewhere in the WWW I&#039;ve found a solution by adding following lines into &lt;tt&gt;eclipse.ini&lt;/tt&gt;:&lt;div class=&quot;text geshi&quot; style=&quot;text-align: left;&quot;&gt;-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-2.0/&lt;br /&gt;-Dorg.eclipse.swt.browser.UseWebKitGTK=true&lt;/div&gt;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&#039;s here, just in case it happens to me somewhere else again.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sat, 12 Nov 2011 17:55:35 +0100</pubDate>
    <guid isPermaLink="false">http://www.fail2fail.com/archives/41-guid.html</guid>
    <category>eclipse</category>
<category>software</category>
<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Restructured Text nach Mediawiki Markup konvertieren</title>
    <link>http://www.fail2fail.com/archives/32-Restructured-Text-nach-Mediawiki-Markup-konvertieren.html</link>
            <category>Software</category>
    
    <comments>http://www.fail2fail.com/archives/32-Restructured-Text-nach-Mediawiki-Markup-konvertieren.html#comments</comments>
    <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=2.0&amp;type=comments&amp;cid=32</wfw:commentRss>
    

    <author>nospam@example.com (Juri Hamburg)</author>
    <content:encoded>
    &lt;p class=&quot;whiteline&quot;&gt;Vor einigen Tagen wollte ich größere Menge von restructured text Dokumenten (&lt;a href=&quot;http://docutils.sourceforge.net/docs/user/rst/quickref.html&quot; title=&quot;restructured Text Quick Reference&quot;&gt;reST&lt;/a&gt;) 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 &lt;a href=&quot;http://johnmacfarlane.net/pandoc/&quot; title=&quot;pandoc&quot;&gt;Pandoc&lt;/a&gt; eignen. In vielen Fällen bei meinen Dokumenten, hatte es keine ordentliche Ausgabe hingekriegt.
&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;Basierend auf &lt;a href=&quot;http://code.google.com/p/wikir/&quot; title=&quot;Wikir&quot;&gt;Wikir&lt;/a&gt; (reST zu &lt;a href=&quot;http://code.google.com/p/support/wiki/WikiSyntax&quot; title=&quot;Google Code Wiki Syntax&quot;&gt;GoogleCodeWiki&lt;/a&gt;) 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 &quot;verpacken&quot;, 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.
&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;Der Skript steht &lt;a href=&quot;http://github.com/jhamb/rest2wiki&quot; title=&quot;rest2wiki&quot;&gt;auf Github zur Verfügung&lt;/a&gt;.
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;Kurz der Stand der Dinge:&lt;/p&gt;&lt;ul&gt;
    &lt;li&gt;reST nach GoogleWiki kennt:&lt;/li&gt;
        &lt;/p&gt;&lt;ul&gt;&lt;li&gt;title&lt;/li&gt;
        &lt;li&gt;code block &lt;/li&gt;
        &lt;li&gt;strong + emphased text&lt;/li&gt;
        &lt;li&gt;bullet + enumeration lists&lt;/li&gt;
        &lt;li&gt;paragraph&lt;/li&gt;
        &lt;li&gt;references&lt;/li&gt;
    &lt;/ul&gt;&lt;p class=&quot;break&quot;&gt;    &lt;li&gt;reST nach Mediawiki kennt:&lt;/li&gt;&lt;/p&gt;&lt;ul&gt;
        &lt;li&gt;title&lt;/li&gt;
        &lt;li&gt;code block&lt;/li&gt;&lt;li&gt;inline literals
        &lt;/li&gt;&lt;li&gt;strong + emphased text&lt;/li&gt;
        &lt;li&gt;image&lt;/li&gt;
        &lt;li&gt;bullet + enumeration lists&lt;/li&gt;
        &lt;li&gt;definition lists&lt;/li&gt;
        &lt;li&gt;paragraph&lt;/li&gt;
        &lt;li&gt;comment&lt;/li&gt;
        &lt;li&gt;&lt;strong&gt;keine interne Links (todo)&lt;/strong&gt;&lt;/li&gt;
    &lt;/ul&gt;&lt;p class=&quot;break&quot;&gt;    &lt;li&gt;minimale XML-Struktur für Mediawiki-Import&lt;/li&gt;&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;/ul&gt;&lt;p&gt;Möglicherweise werde ich in der nächsten Zeit etwas verbessern, oder sogar, wenn ich Zeit finde, Mediawiki-Support im Wikir ordnungsgemäß einpflegen.
&lt;/p&gt;&lt;h3&gt;Anwendungsbeispiel&lt;/h3&gt;&lt;pre&gt;&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left;&quot;&gt;user&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;host $ &amp;#160; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;cd&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;path&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;to&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;directory_with_rest_documents&lt;br /&gt;user&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;host $ &amp;#160; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; ..&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;docs.mediawiki&lt;br /&gt;user&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;host $ &amp;#160; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; i &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;do&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;processing &#039;&lt;span style=&quot;color: #007800;&quot;&gt;$i&lt;/span&gt;&#039;&amp;quot;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;path&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;to&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;rest2wiki.py \&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;&lt;span style=&quot;color: #660033;&quot;&gt;-w&lt;/span&gt; mediawiki \&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;&lt;span style=&quot;color: #660033;&quot;&gt;-f&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$i&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; ..&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;docs.mediawiki&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$i&lt;/span&gt;&amp;quot;&lt;/span&gt;.mediawiki; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;done&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;p&gt;Aufruf von &lt;tt&gt;rest2wiki.py -h&lt;/tt&gt; listet weitere mögliche Argumente auf.&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;Vorschläge und Patches sind sehr willkommen. &lt;img src=&quot;http://www.fail2fail.com/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Tue, 21 Sep 2010 18:11:22 +0200</pubDate>
    <guid isPermaLink="false">http://www.fail2fail.com/archives/32-guid.html</guid>
    <category>docutils</category>
<category>google</category>
<category>mediawiki</category>
<category>python</category>
<category>rest</category>
<category>restructured text</category>
<category>software</category>
<category>wikir</category>
<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Scrollgeschwindigkeit im Vimperator</title>
    <link>http://www.fail2fail.com/archives/40-Scrollgeschwindigkeit-im-Vimperator.html</link>
            <category>Software</category>
    
    <comments>http://www.fail2fail.com/archives/40-Scrollgeschwindigkeit-im-Vimperator.html#comments</comments>
    <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=2.0&amp;type=comments&amp;cid=40</wfw:commentRss>
    

    <author>nospam@example.com (Juri Hamburg)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;Damit man im Vimperator gefühlt noch schneller browsen kann, die Scrollweite hochsetzen mit dem Eintrag in &lt;tt&gt;.vimperatorrc&lt;/tt&gt;:&lt;p&gt;&lt;div class=&quot;text geshi&quot; style=&quot;text-align: left;&quot;&gt;nnoremap j 7j&lt;br /&gt;nnoremap k 7k&lt;/div&gt;&lt;/p&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 11 Apr 2011 19:49:51 +0200</pubDate>
    <guid isPermaLink="false">http://www.fail2fail.com/archives/40-guid.html</guid>
    <category>software</category>
<category>vimperator</category>
<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>

</channel>
</rss>
