Ubuntu auf dem Galaxy Tab

Android auf dem Galaxy Tab ist ja schön und gut, aber was ist wenn man z.B. seinen bevorzugten Audio Editor auf dem Gerät benutzen möchte? Nun gibt es eine Lösung für dieses Problem (wenn es denn eines ist ;)). Man installiert sich einfach Ubuntu auf dem Tab. Wer sich das mal in Bild und Ton anschauen möchte sollte einfach mal http://galaxytabhacks.com/galaxy-tab-10-1-hacks/how-to-install-ubuntu-linux-on-galaxy-tab-10-1-tabuntu/ besuchen :)

Weitere Informationen gibt es unter:
http://trompetenkaefer.wordpress.com/2011/07/01/tabuntu-ubuntu-fur-tablets/

Probleme mit textContent und dem Internet Explorer 8

Der Internet Explorer 8 hat mit der Javascript Eigenschaft textContent so seine Probleme. Es kommt ein undefined heraus wenn man diese Eigenschaft im Internet Explorer 8 abfragt. Eli Grey hat für dieses Problem eine schöne Lösung gefunden:

if (Object.defineProperty && Object.getOwnPropertyDescriptor && !Object.getOwnPropertyDescriptor(Element.prototype, "textContent").get)
 (function() {
     var innerText = Object.getOwnPropertyDescriptor(Element.prototype, "innerText");
     Object.defineProperty(Element.prototype, "textContent",
     { // It won't work if you just drop in innerText.get
       // and innerText.set or the whole descriptor.
       get : function() {
         return innerText.get.call(this)
       },
       set : function(x) {
         return innerText.set.call(this, x)
       }
     }
  );
 })();

Diese Funktion fügt man dabei in eine extra Javascript Datei ein und bindet sich dann per Browserweiche ein:

<!--[if gte IE 8]><script type="text/javascript" src="textContent.js"></script><![endif]-->

Anschließend kann man die textContent Eigenschaft normal benutzen.

Weitere Informationen gibt es unter:
http://eligrey.com/blog/post/textcontent-in-ie8