Sep 12 25
Wie ich zu meinem Bedauern feststellen musst wird die JavaScript-Funktion getElementsByClassName() wohl nicht vom IE unterstützt.
Nun gut, um diese nun aber trotzdem verwenden zu können, habe ich sie mir kurzerhand selbst geschrieben:
function getElementsByClassName(node, classname)
{
var a = [];
var re = new RegExp('(^| )'+classname+'( |$)');
var els = node.getElementsByTagName("*");
for(var i=0,j=els.length; i<j; i++)
if(re.test(els[i].className))a.push(els[i]);
return a;
}
Continue reading »
written by d45id
\\ tags: development, DOM, function, IE, JavaScript
Sep 12 12
Die WordPress-Funktion wp_get_archives() gibt eine datumsbasierte Archivliste der Blogeinträge aus.
Nun möchte ich jedoch die erzeugte Archivliste auf eine bestimmte Kategorie beschränken. Wie ich feststellen musste ist dies nicht so ohne weiteres möglich bzw. etwas trickreich, denn die SQL-Abfrage der Funktion wp_get_archives() muss hierfür manipuliert werden. Continue reading »
written by d45id
\\ tags: archives, howto, PHP, SQL, WordPress
Sep 12 03
It’s very simple to run Software Update from the command line in OS X, the command softwareupdate is what you are looking for.
List all available updates:
sudo softwareupdate -l
The following command will update OS X via the terminal:
sudo softwareupdate -i -a
Continue reading »
written by d45id
\\ tags: Apple, cli, OS X, Softwareupdate