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

<feed version="0.3" 
   xmlns="http://purl.org/atom/ns#"
   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://klumpp.net/blog/rss.php?version=atom0.3" rel="service.feed" title="http://klumpp.net/blog/" type="application/x.atom+xml" />
    <link href="http://klumpp.net/blog/"                        rel="alternate"    title="http://klumpp.net/blog/" type="text/html" />
    <link href="http://klumpp.net/blog/rss.php?version=2.0"     rel="alternate"    title="http://klumpp.net/blog/" type="application/rss+xml" />
    <title mode="escaped" type="text/html">http://klumpp.net/blog/</title>
    <tagline mode="escaped" type="text/html">Was gesagt werden muss: </tagline>
    <id>http://klumpp.net/blog/</id>
    <modified>2010-06-14T16:31:20Z</modified>
    <generator url="http://www.s9y.org/" version="1.5.1">Serendipity 1.5.1 - http://www.s9y.org/</generator>
    <dc:language>de</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:" />
    <info mode="xml" type="text/html">
        <div xmlns="http://www.w3.org/1999/xhtml">You are viewing an ATOM formatted XML site feed. Usually this file is inteded to be viewed in an aggregator or syndication software. If you want to know more about ATOM, please visist <a href="http://atomenabled.org/">Atomenabled.org</a></div>
    </info>

    <entry>
        <link href="http://klumpp.net/blog/archives/106-Let-Confluence-Edit-and-Add-Page-buttons-float-in-your-view.html" rel="alternate" title="Let Confluence Edit and Add-Page buttons float in your view" type="text/html" />
        <author>
            <name>Paul D. Klumpp</name>
            <email>paul@klumpp.net</email>        </author>
    
        <issued>2010-06-14T00:07:16Z</issued>
        <created>2010-06-14T00:07:16Z</created>
        <modified>2010-06-14T16:31:20Z</modified>
        <wfw:comment>http://klumpp.net/blog/wfwcomment.php?cid=106</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://klumpp.net/blog/rss.php?version=atom0.3&amp;type=comments&amp;cid=106</wfw:commentRss>
    
        <id>http://klumpp.net/blog/archives/106-guid.html</id>
        <title mode="escaped" type="text/html">Let Confluence Edit and Add-Page buttons float in your view</title>
        <content type="application/xhtml+xml" xml:base="http://klumpp.net/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I have been using Confluence for a long time now, running business and using it privately for organising family stuff.  Wikis are all about ease of use. <p>So, if a wiki page is full of content, it often happens that you scroll down a lot. You read, read on... And there you find a small typo or something else that you want to edit.</p>

<p>In Mediawiki, you would find the next "edit section"-button and are set to go.</p>

<p>But for Confluence (by the time of writing, 3.2 is the latest version), this means, you would have to scroll all up again or hit they Home-Key on the keyboard. You could as well press alt+e to edit the page, but in Google Chrome, alt+e is reserved for another function already. So, that toolbar needs to come to where the user is, always to the current view.</p>

<p><a class="serendipity_image_link"  href='http://klumpp.net/blog/uploads/Wiki-Bilder/confluence-js-editbutton.jpg' onclick="F1 = window.open('/blog/uploads/Wiki-Bilder/confluence-js-editbutton.jpg','Zoom','height=507,width=792,top=266,left=251.5,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes'); return false;"><!-- s9ymdb:8 --><img class="serendipity_image_left" width="150" height="95"  src="http://klumpp.net/blog/uploads/Wiki-Bilder/confluence-js-editbutton.serendipityThumb.jpg"  alt="Confluence Edit-Add-Buttons"  /></a></p>

Also, I think the "one-click-edit"-Paradigma needs to live on. Here I wrote a small Javascript that moves the Edit and Add-Page buttons down and up while you scroll!<p>This works for JS-DOM compatible browsers like Mozilla Firefox, Google Chrome.</p>

As Confluence Administrator, navigate to the "Custom HTML" section and put the following code into "At end of the HEAD".
<pre><code>&lt;script type=&quot;text/javascript&quot;&gt;

var _isDOM = (document.getElementById ? true : false);
var _isIE4 = ((document.all &amp;&amp; !isDOM) ? true : false);
var _isNS4 = (document.layers ? true : false);
var _isNS = navigator.appName == &quot;Netscape&quot;;

var _floatTimeoutNextCheck = 50;
var _floatCfgYOffset = 0;

function floaterId(idname) {
  if (_isDOM) {
    
    document.getElementById(idname).style.visibility = 'visible'; // better set it again ;-)
    document.getElementById(idname).style.position = 'relative'; // must be defined .. otherwise style.top won't function at all.

    setInterval(&quot;document.getElementById('&quot;+idname+&quot;').style.top = document.body.scrollTop + 
      _floatCfgYOffset +'px'&quot;, _floatTimeoutNextCheck)
  }
}

AJS.toInit(function () {
  floaterId('navigation');
});
&lt;/script&gt;</code></pre>

 
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://klumpp.net/blog/archives/104-Fix-fuer-Eclipse-unter-Gentoo-Linux-Wie-man-Unsupported-major.minor-version-49.0-loswird.html" rel="alternate" title="Fix für Eclipse unter Gentoo Linux: Wie man &quot;Unsupported major.minor version 49.0&quot; loswird" type="text/html" />
        <author>
            <name>Nikolaus Klumpp</name>
            <email>nick@klumpp.net</email>        </author>
    
        <issued>2009-12-15T21:12:38Z</issued>
        <created>2009-12-15T21:12:38Z</created>
        <modified>2010-06-14T16:28:35Z</modified>
        <wfw:comment>http://klumpp.net/blog/wfwcomment.php?cid=104</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://klumpp.net/blog/rss.php?version=atom0.3&amp;type=comments&amp;cid=104</wfw:commentRss>
    
        <id>http://klumpp.net/blog/archives/104-guid.html</id>
        <title mode="escaped" type="text/html">Fix für Eclipse unter Gentoo Linux: Wie man &quot;Unsupported major.minor version 49.0&quot; loswird</title>
        <content type="application/xhtml+xml" xml:base="http://klumpp.net/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>Eclipse<sup><a href="http://de.wikipedia.org/wiki/Eclipse_%28IDE%29" onclick="window.open(this.href, '_blank'); return false;">1</a></sup> ist eine mächtige Entwicklungsplattform. Sie wurde ursprünglich für Java gebaut, ist aber aufgrund ihrer Plugintechnologie inzwischen weit darüber hinaus einsetzbar.</p>

<p>Neulich hatte ich das Problem, dass Eclipse auf meinem Gentoosystem nicht starten wollte.</p>

<p>So sah das aus:</p>


<pre><code>nick@shenron ~ $ eclipse-3.4
Exception in thread &quot;main&quot; java.lang.UnsupportedClassVersionError: org/eclipse/equinox/launcher/Main (Unsupported major.minor version 49.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
[..]</code></pre>

<p>Da ging es noch weiter, aber den Rest sparen wir uns.</p>

<p>Woran lag's? "Unsupported major.minor version 49.0" weißt darauf hin - irgendwas stimmt nicht mit dem installierten Java.</p>

<p>Mal nachgesehen:</p>


<pre><code>nick@shenron ~ $ java -version
java version &quot;1.4.2-03&quot;
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-03)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-03, mixed mode)</code></pre>

<p>In der Tat. Neulich beim letzten Merge war mir aber aufgefallen: Ich hatte natürlich auch Suns Java-Implementierung auf dem System. Parallel zum veralteten Blackdown<sup><a href="http://de.wikipedia.org/wiki/Blackdown" onclick="window.open(this.href, '_blank'); return false;">2</a></sup>; die Frage war nur, wie komm' ich dran?</p>

<p>In solchen Fällen nie verkehrt: Ein Blick ins <em>eselect</em> (app-admin/eselect).</p>


<pre><code>nick@shenron ~ $ eselect help
Usage: eselect &lt;global options&gt; &lt;module name&gt; &lt;module options&gt;

Global options:
  --brief                   Make output shorter
  --no-color,--no-colour    Disable coloured output

Built-in modules:
  help                      Display a help message
  usage                     Display a usage message
  version                   Display version information

Extra modules:
  bashcomp                  Manage contributed bash-completion scripts
  binutils                  Manage installed versions of sys-devel/binutils
  [..]
  java-vm                   Manage the Java system and user VM
  [..]</code></pre>

<p>Üblicherweise beherrscht so ein Eselect-Modul den Dreiklang <em>show</em>, <em>list</em>, <em>set</em>.</p>

<p>Also der Reihe nach:</p>


<pre><code>nick@shenron ~ $ eselect java-vm show
Current system-vm
  blackdown-jdk-1.4.2
Current user-vm
  blackdown-jdk-1.4.2</code></pre>

<p>Das änderte ich mit:</p>


<pre><code>nick@shenron ~ $ eselect java-vm set
!!! Error: Usage [user|system] [vm]
exiting</code></pre>

<p>Gut. Da fehlte erstmal noch was. Zum einen musste ich noch aussuchen, ob ich die Änderung für den User oder das System durchführen wollte, und zum anderen wollte <em>eselect</em> noch die Nummer der Java-Implementierung haben ("vm"). An die kommt man mit list:</p>


<pre><code>nick@shenron ~ $ eselect java-vm list
Available Java Virtual Machines:
  [1]   blackdown-jdk-1.4.2  system-vm
  [2]   sun-jdk-1.5
  [3]   sun-jdk-1.6</code></pre>

<p>Also, nochmal:</p>


<pre><code>nick@shenron ~ $ eselect java-vm set user 3</code></pre>

<p>Alles ging gut, denn das System meldete sich gleich mit dem Kommandoprompt wieder - <em>no news are good news</em>.</p>

<p>Und tatsächlich: Eclipse startete nun ohne zu murren. Darauf einen Kaffee.</p>

 
            </div>
        </content>

        
    </entry>
</feed>