typical ofi #44

.

Barely recovering from the shock of the loss of Dennis Ritchie, few days ago we had to say good bye to John McCarthy. He created Lisp programming language, undoubtedly very influential in the development of various languages for the last few decades. Not only that, he was also the pioneer in the field of artificial… Read more »

spooky testing: casper, ghostbuster, poltergeist

.

With Halloween around the corner, it seems to be a good time to mention some interesting projects related to PhantomJS, the headless WebKit tool I have started some time ago. If you think writing test cases for PhantomJS is too close to the metal, then have a look at Casper.js (github.com/n1k0/casperjs) from Nicolas Perriault. Spend… Read more »

detecting browser sniffing

.

The latest version of PhantomJS has added the support for initialization callback, which allows you to modify the global objects which will be seen by the client code. The example I previously shown was changing the behavior of Math.random to return a constant. What follows is another example, available in the repository (look under examples/detectsniff.js),… Read more »

typical ofi #43

.

Google announced Ice Cream Sandwich, officially known as Android 4.0. This version brings all the improvements from Honeycomb (Android 3.0) into the smartphone form factor, plus some more goodies. At the same time, Samsung demonstrated the premier phone featuring Ice Cream Sandwich, Galaxy Nexus. With 1.2 GHz dual-core OMAP 4460, 1 GB RAM, Super AMOLED… Read more »

javascript tools for continuous integration

.

You want to build JSLint-based syntax checking into your continuous integration workflow? What about its variant JSHint? Perhaps even including the automatic minification for the deployed build? Look no more, just use EightPack, a convenience hassle-free collection of several command-line tools designed to help your application development process. As of now, EightPack consists of the following JavaScript-related… Read more »

magnetic compass via device orientation

.

In the specification of DeviceOrientation Event, it was mentioned that: To get the compass heading, one would simply subtract alpha from 360 degrees. As the device is turned on the horizontal surface, the compass heading is (360 – alpha). Unfortunately, when iOS 4.2 added the support for this event, the value of alpha was rather… Read more »