We tried our best but here are the little things we missed:

Chapter 2

  • Page 32 (Listing 2-9) in the init() function, markers.size should be markers.length.

Chapter 5

  • Page 107, in the MySQL import statements after Listing 5-3: the first and last mysqlimport commands have only a single dash before columns, when it should be a double dash. They should read ––columns=unique_si . . .
  • Page 107, in the MySQL import statements after Listing 5-3: also in the mysqlimport command is ––fields-terminated-by ‘|’ (with single quotes around the pipe) which really needs to be ––fields-terminated-by “|” (double quotes)
  • Also on 107: the last mysqlimport (for fcc_structures.dat) references two extraneous columns, date_constructed and date_dismantled. You should remove both of these from the import statement.
  • On page 113, we create a single Tower model instead of having three separate FCC tables. When you move to the single Tower model, you have to make a small change in your application.js: on line 25, points[i].name should be changed to points[i].address. This is because the name attribute no longer exists in the JSON structure we create from the array of Towers.
  • Page 118, Listing 5-13: you may need to add require ‘rubygems’ as the first line of the file for the scAPI gem to be recognized

Chapter 6

  • Page 136, listing 6-11: the handleResize() call should come first in the init() function. The code is correct in the code download.
  • Page 138 (Listing 6-13): There should be a closing parentheses in the link_to_function. It has a visual impact only; the code works correctly.