On the iPad, don’t try to fix scrolling

I have to admit that this really bothers me. Yesterday, I decided to write a little tool to let my boss create his presentations on an iPad by sorting a set of pre-created images. Nothing fancy, but I needed two separately scrolling viewports that are NOT operated with the two-finger-dragging-gesture. Seemed pretty straight forward. Make [...]

Posted in: Default Category by Hans Schmucker 8 Comments

Streaming videos to a MK802 Android system-on-a-stick

I got my MK802 Friday and immediately tried to stream videos… first via SMB shares (works, but the little decoder chip usually isn’t able to keep up with my movies) and then via TravelDevel’s VLC Stream and Convert, which I’m using on my LG P920. Unfortunately VLC S&C is not quiet up to the job [...]

Posted in: Default Category by Hans Schmucker No Comments

Off-Topic: That’s the way online video should work: Indie Game – The Movie

I don’t really buy any movies online… rather, I buy them on DVD or BluRay and save them to my external hard-drive from there. It’s inconvenient and not how I would like things to work, but it’s the best I can get. Movie studios are paranoid and constantly require newer and stricter copy-protections for online [...]

Posted in: Default Category by Hans Schmucker No Comments

Carmageddon

This doesn’t have anything with code or Javascript, but I just love playing the games I played when I was younger. The Settlers, Incubation and Sam and Max are at the top of the list, but in the racing section Carmageddon is just below Screamer and Ignition and even pulls ahead of Twisted Metal 2 [...]

Posted in: Default Category by Hans Schmucker 2 Comments

Scripting the windows commandline with Spidermonkey made easy

I frequently have to automate really simple tasks, like moving files with a certain filename to another directory and the Spidermonkey shell that now comes with XULRunner (thank you for that Mozilla, building it yourself was time-consuming and annoying) has become an invaluable tool. Few people know how easy it is to use any Mozilla-JS [...]

Posted in: Default Category by Hans Schmucker No Comments

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

Adding icons to bookmarklets … again

Show simple Demo Yesterday I got a question on how to make my Bookmarklet-with-icon code work and sadly, it seems to be broken now. So I set out to find another method and strangely enough the solution that works with modern Firefox versions is quite simple and elegant: Open the bookmarklet in "page mode" once [...]

Posted in: Default Category by Hans Schmucker 4 Comments