RubyoffRails/Episode7 — pull request #2 by telemachus (2012-05-20 19:04:44+00:00)
Title: Hw ep7

I did the Eagle and Tiger homeworks. (You can run them as rake tasks with `bundle exec rake eagle` or `bundle exec rake tiger`.)

For the Eagle assignment, I switched the Geocoder API from Google (the default) to Yahoo to be able to try 200 cities. Unfortunately, 200 still often times out or barfs up (invalid JSON response?). I've had it work a few times, but it often fails. When it runs, here's what it looks like:

$ be rake eagle
251
user system total real
2: 0.030000 0.000000 0.030000 ( 0.253315)
10: 0.030000 0.020000 0.050000 ( 1.134748)
50: 0.240000 0.070000 0.310000 ( 6.338751)
200: 1.340000 0.280000 1.620000 ( 28.782747)

(I did take a look at the Dijkstra super-Tiger assignment, but I quickly got bogged down trying to create a simple Graph class. There's a branch for it, and I may come back to it later, if I can. That stuff is really fun, but way beyond me.)