Archive for the 'The Internet' Category

XML Is Like Violence…

…if it hasn’t solved your problem yet, you’re not using enough. Curiously, I always thought of that little quip as a subtle indictment of the problems with XML, but it seems to almost be a rallying cry for proponents of the standard (I refuse to recognize XML as a “language”).  And when I say proponents, […]

Wednesday, September 30th, 2009

Javascript Abuse #2,463,981: Centering Content

Another quick rant/post about the wonderful world of abusing javascript. Consider the following code: function moveScreen() { var myWidth = 0, myHeight = 0; if (typeof(window.innerWidth) == ‘number’) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { //IE 6+ in ‘standards compliant mode’ myWidth = document.documentElement.clientWidth; myHeight […]

Thursday, September 24th, 2009

Programming Nuances, PHP and JavaScript

Two little snippets, some simple things that seem to be forgotten when writing code.  First, a general example using PHP; have you ever found yourself writing a loop that looks something like this? $i = 0; while ($row = mysql_fetch_assoc($result) { // … // maybe something about $i % 2 to determine even-from-odd rows ++$i; […]

Wednesday, September 23rd, 2009

Smartphones Affected By Malware – Welcome To The Club

For years, as a P.C. and Windows user and developer, I’ve been forced to listen to inane claims about the superiority of Mac/Linux/BSD/Gameboys because they “don’t get viruses because they’re better products.”  Now, I usually try not to allow myself to be incited to anger, or shame, but come on.  That’s like saying that Malta […]

Friday, July 31st, 2009