Archive for September, 2009

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

Nerdisms: Destroying America

Hey there kids! Put your walk-mans down and listen up! Let’s “rap” for a second about nerds. Nerds, the social stragglers that make your stuff go just so you won’t beat them. Nerds, the… Actually, I’m sick of this already. I was browsing Graphjam today, and I ran across this: I, like many, thought it […]

Monday, September 14th, 2009