Zerg Rush Easter Egg

It’s incredibly funny, especially if you know that “Zerg Rush” is a very popular method for rooting Google’s Android OS. I wonder why that connection hasn’t so far popped up in any reports I’ve found about the Google Zerg Rush easter egg

Posted in: Default Category by Hans Schmucker 1 Comment

Tip: Relaxing JSON strictness

I’ve decided to start posting about the little things I encounter day by day. Post #1: I needed less strict JSON parsing than Firefox usually does and a little RegEx seems to do the trick for now (it also allows for single word strings à la PHP, e.g. FOO becomes “FOO”: var findRelevantToken=/(?:”(?:|.*?[^\\](?:\\\\)*)”|([\s,\:\{\[]|^)([a-z\_\$][a-z\_\$0-9]*))/gi; str=str.replace(findRelevantToken,function(m,ssep,nqs){ if(nqs) [...]

Posted in: Default Category by Hans Schmucker No Comments

2D Canvas Transforms: Wow, these things are fast

Simple Demo I just needed a little engine to display isometricly-displayed, textured blocks and wow, Firefox is fast. Chrome is a lot slower and a lot uglier (no filtering), but even there it’s quite impressive! There’s no GL going on here, just old-fashioned transforms.  

Posted in: Default Category by Hans Schmucker No Comments

References vs. Pointers in Javascript

I’m as guilty as the next guy when it comes to the confusion surrounding the terminology used for variables that get assigned objects, but I think it’s time to get my act together and define a standard at least for myself: If “new Object()” is an OBJECT, then “var obj=new Object()” makes obj a POINTER. [...]

Posted in: Default Category by Hans Schmucker 2 Comments