Day 7: The fix is in
Got back from Sumeet’s at 11:15 PM, determined to resolve the last issue barring me from displaying proper basecamp data. Discovered that “breakpointer” is un-officially broken in Ruby 1.8.5 — The official answer is that Ruby 1.8.5 fixes a bug that allowed breakpointer to work.
Using script/console I was able to produce the following, which could explain my problem:
>> date_hash = {}
=> {}
>> (0..30).step(1) do |day_offset|
?> date_hash[(Date.today-day_offset).to_s] = 0
>> end
=> 0..30
>> date_hash
=> {"2007-05-22"=>0, "2007-06-01"=>0, "2007-06-12"=>0, "2007-05-23"=>0, "2007-06-02"=>0, "2007-06-13"=>0, "2007-05-24"=>0, "2007-06-03"=>0, "2007-06-14"=>0, "2007-05-25"=>0, "2007-06-04"=>0, "2007-06-15"=>0, "2007-05-26"=>0, "2007-06-05"=>0, "2007-06-16"=>0, "2007-05-27"=>0, "2007-06-06"=>0, "2007-06-17"=>0, "2007-05-28"=>0, "2007-06-07"=>0, "2007-06-18"=>0, "2007-05-29"=>0, "2007-05-30"=>0, "2007-06-08"=>0, "2007-06-19"=>0, "2007-06-20"=>0, "2007-05-31"=>0, "2007-06-09"=>0, "2007-06-10"=>0, "2007-06-21"=>0, "2007-06-11"=>0}
>>
The date strings are not stored in the order that they are set (or sorted), but that is fixed easily enough with the Hash sort method.
This is the total time logged by a gentleman who works 8 hours a day and took a few days off — the different color lines are different projects he logged time to.
The next graph shows the time logged to a single project by everyone who logged time against it:



Leave a Reply