HTML5 Games: Creating Fun with HTML5, CSS3, and WebGL typo

I recently started reading a book titled “HTML5 Games: Creating Fun with HTML5, CSS3, and WebGL”  and it’s good so far. But I found a small typo at the beginning so share it here:

Listing 2.8 The Initial Game Module

function showScreen(screenId) {
var activeScreen = $(“#game .screen.active”)[0],
screen = $(“#” + screenId)[0];

if (activeScreen) {

// dom.removeClass(screen, “active”);  wrong!
dom.removeClass(activeScreen, “active”);
}

I believed so far the Kindle automatically updates downloaded contents with latest version so that I don’t need manually searching typo pages, but apparently it seems not. I downloaded the sample source code package from its publisher web site and verified that it contains the fixed ‘working’ version by the way. Thanks.

USB2DBG driver installation failure issue

If you want to hook up two Windows PCs with USB 2 debug dongle for kernel debugging but it keeps failing to install the driver(even though you already checked the correct bitness and others), then you might need to edit the usb2dbg.inf.

First you need to check a setupapi.dev.log.

ndv: {Update Driver Software Wizard for USB\VID_0525&PID_127A\AJAYS001}
dvi:      Set selected driver complete.
dvi:      {DIF_SELECTDEVICE} 16:53:27.799
dvi:           No class installer for ‘Ajays USB 2.0 Debug Cable’
dvi:           No CoInstallers found
dvi:      {DIF_SELECTDEVICE – exit(0xe000020e)} 16:53:27.815
ui :      Prompting user for disk…
ui :      DPROMPT result = 0
dvi:      {DIF_SELECTDEVICE} 16:53:34.783
dvi:           No class installer for ‘Ajays USB 2.0 Debug Cable’
dvi:      {DIF_SELECTDEVICE – exit(0xe000020e)} 16:53:34.799
ui :      Prompting user for disk…
ui :      DPROMPT result = 1

In case you found such error messages, try adding the ‘ClassGuid’ for USB class line into version section like,

[Version]

ClassGuid = {36fc9e60-c465-11cf-8056-444553540000}  <– add this line

This posting is provided “AS IS” with no warranties, and confers no rights.