Thursday, April 26, 2012

day 626

ubuntu 12 is here!!!!!!!


.pc

day 625

what do: contagion, roseanne, dennis the menace, primal fear, grace under fire and prison break have in common?

all filmed in elgin.
(in some capacity)

.pc

Tuesday, April 17, 2012

day 617

26      for (i = 0; i <= 19; i++) {
27        j = (responses[i] - 65);
28        if(responses[i] == answers[i]) {
29          numcorrect++;
30          counter[i][j]++;
31        }
32        else
33          counter[i][j]++;
34      }
35  



should have been this:


     for (i = 0; i <= 19; i++) {
       j = (responses[i] - 65);

counter[i][j]++;
       if(responses[i] == answers[i])
         numcorrect++;
     }
 





---------------------------------------------------------------------------------------------------------------------------------


They do the same thing, if something is in both loops, it doesn't need to be in either (i.e. it should be outside the loop). I should have exercised DRY.


.pc

Monday, April 16, 2012

Thursday, April 12, 2012

day 612

bonding with professors is one of the greatest rewards of academia.


.pc

Tuesday, April 10, 2012

Wednesday, April 4, 2012