Linux Geeks beißen nicht!

Posted April 29th, 2009 in quote by Michael

Auf so einem Linux-Event beißt keiner, auch wenn sie alle bleich im Gesicht und schwarz gekleidet sind. ;)

Martin über die Linuxtage.

Vienna is the city rated with the best quality of living worldwide

Posted April 29th, 2009 in privat by Michael

Vienna has passed Zurich to take the top spot as the world’s city with the best quality of living, according to the Mercer 2009 Quality of Living Survey. Geneva retains its position in third place, while Vancouver and Auckland are now joint fourth in the rankings.

While I’m happy to live in Vienna I also would not mind living in Auckland for some time…

The full report can be found here.

“jQuery for Absolute Beginners” Video Series

Posted April 22nd, 2009 in web by Michael

There are tons of jQuery tutorials available, but I just recently found out about the “jQuery for Absolute Beginners” Video Series, which has 15 online videos and, according to a good friend, teaches exactly what is needed to get started with jQuery.

So if you want to learn jQuery just fire up your browser and point it to the “jQuery for Absolute Beginners” Video Series.

Your browser is not supported

Posted April 21st, 2009 in rant by Michael

Seeing this hurts:
Especially because we have 2009 and I’m using the latest version of Firefox 3…. and the product/website is brand new!

Display Dojo tooltips based on the title tag

Posted April 21st, 2009 in javascript by Michael

Recently I had to add nice tooltips to a larger Web application that is based on the Dojo framework. I thought “nothing easier that that”, as with jQuery I can do stuff like

jQuery('a').tooltip();

with some (optional) parameters and that’s it. Unfortunately I had to learn from the various sources and samples that this simple feature is not supported out of the box by Dojo. There is a way of creating tooltips on the fly but there does not seem to be a ready-to-use solution which uses the title tag of the elements and shows a tooltip based on that.

So here is the code I came up with to display Dojo tooltips based on the title tag:

dojo.addOnLoad(function() {
  //render each tooltip
  var i = 0;
  dojo.query(".withTooltip").forEach(function(node) {
      if(!node.title)
          return; // don't do anything if there is no title
      if(!node.id) // Dojo requires an ID for the element
      {
          node.id = "dojoToolTip-"+i;
          i++;
      }
      var tt = new dijit.Tooltip({label:node.title, connectId:[node.id]});
      node.title = ""; // remove the Browsers standard title tag
  });
});

The code selects all elements with the class “withTooltip” and creates a Tooltip dijit for each of the found elements. It is important to notice that an ID is being added in case there is none – dijit.Tooltip requires an id and does not seem to work with classes or just an element being specified.

Angepasste Erwartungen…

Posted April 15th, 2009 in rant by Michael

Die Wirtschaftskrise und die Gastwirtschaft

Posted April 9th, 2009 in rant by Michael

Ja, die Wirtschaftskrise wirkt sich offensichtlich auch auf die Gastwirtschaft aus. Bei einem sehr guten Italiener in der Wiener Innenstadt hat der Aperol-Spritz schon immer 5 Euro gekostet, wurde aber auch in einem Rotweinglas serviert und war nicht nur anständig viel sondern auch anständig gut.
Gestern, mitten in der Wirtschaftskrise, gibt es dann auf einmal nur mehr gut halb gefüllte Weißwein-Gläser und auf der Rechnung stehen plötzlich 5,10 Euro…. die direkteste Auswirkung der Wirtschaftskrise!

Also danke, ich esse meine Pizza ab sofort in anderen Lokalitäten, wo man nicht auch noch für das Gedeck bezahlt und das Personal höflich ist… ein Punkt der mich dort ja schon immer gestört hat.

(Bild von flickr)

10 year anniversary of The Matrix

Posted April 8th, 2009 in fun by Michael

Boy, I’m getting old…

(Comic from xkcd)