AON.at ADSL auf Mac OSX Leopard einrichten

Posted November 30th, 2009 in mac by Michael

Heute habe ich versucht AON.at ADSL von der Telekom auf meinem Mac OSX Leopard Rechner einzurichten. Effektiv habe ich ziemlich lange “versucht” und auch Google hat nicht wirklich weitergeholfen, daher hier die Anleitung um via AON.at ins Internet zu kommen:

  1. Ich gehe davon aus, dass alles richtig verkabelt ist und man durch Eingabe von http://10.0.0.138/ im Browser auf die Modem-Konfiguration gelangt. Falls nicht, hier hilft Google noch weiter :)
  2. In den Systemeinstellungen von Mac OSX ist ein neues Interface hinzuzufügen (kleines + links unter der Liste).
  3. Achtung! AON verwendet kein PPPoE sondern PPTP. Beim Hinzufügen also “VPN” aus der Liste auswählen und dann PPTP.
  4. Die Einstellungen wie nebenstehend vornehmen und unter “Authentication Settings” das Kennwort eingeben. Wichtig ist die Auswahl von “None” für die Verschlüsselung.
  5. Noch viel wichtiger ist die richtige Auswahl unter “Advanced” – hier muss “Send all traffic over VPN connection” ausgewählt sein. Sonst verbindet sich das VPN zwar aber alle Anfragen gehen ins Nirvana, nicht mal DNS Auflösung funktioniert.

Das war’s auch schon.

Spannend wird dann noch die Verbindung der Airport Extreme mit dem ADSL… mal schauen ob das klappt.

IE and script loading via Ajax

Posted November 12th, 2009 in javascript by Michael

Today I stumbled across a very strange IE issue. Again. Basically the code that was working fine in all real browsers – the code loaded some HTML fragment containing script tags using AJAX and added it to the page. Nothing complicated, except that those script tags require some special handling in Internet Explorer, as they do not execute automatically when being added to the page:

if(IE) {
var scripttags = NewlyAddedDomViaAjax.getElementsByTagName(“SCRIPT”);
var head = document.getElementsByTagName(“head”)[0];
for(var i=0, j=scripttags.length; i < j; i++)
{
var scripttag = document.createElement(“SCRIPT”);
scripttag.src = scripttags[i].src;
head.appendChild(scripttag);

}
}

No big magic and works fine. Except for the case that the script tag comes as first element in the newly inserted HTML code. In this case the getElementsByTagName is *not* returning the script node at all – it just returns an empty result set. This means that the JavaScript code is not executed in IE….

Luckily this problem is quite easy to solve – just move some other HTML code in front of the HTML snippet that is returned via AJAX – place all the script tags at its end and everything will work fine!

btw, how about Google? Not of great help, the closest I could find was this unanswered forum post.

(Image from Flickr)

Ich bin Ritter… ähm, Student!

Posted November 11th, 2009 in fun by Michael

Nur ein kurzer Screenshot einer Website, die ich persönlich recht lustig finde… und zwar zu finden auf der Seite wo sich Studenten für Jobs bewerben. Und die Auswahl zwischen “Ritter”, “Baron”, “Graf” und auch “Prinzessin” haben…

Ist meiner Meinung nach das wichtigste Feld im ganzen Bewerbungsprozess :)

Software development education is screwed

Posted November 3rd, 2009 in development by Michael

Where are students supposed to learn about version control, bug tracking, working on teams, scheduling, estimating, debugging, usability testing, and documentation? Where do they learn to write a program longer than 20 lines?

Well, I could not agree more. Most students and new-hires do not know to work in a team for longer than a night (the last night before the deadline). And unfortunately a single, long night with energy drinks does not require source control or anything else that is required in real-world code in a real-world team…

Read the full article on JoelOnSoftware.

5 minute tasks

Posted November 3rd, 2009 in fun by Michael

Well, who does not know this kind of situation where easy tasks are refused for scary reasons… and suddenly the time to complete a tasks not only doubled but it takes 5 times longer…

Too bad this still happens. But: why?

(Comic from: Dilbert, Nov 1st)

Shaolin Kung Fu in Wien

Posted November 2nd, 2009 in kungfu by Michael