![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I had a mediocre night tonight at the bowling alley - 161, 149, 155. And my team only won one out of three games. Not to mention, we discovered that thanks to some clause in the league Constitution, we lost one of the points we thought we had taken last week when the other team failed to show up, because we didn't break 1050 (we had 1041).
WTF? The other team doesn't show up, doesn't declare their scores or bowl off, and we still are deemed to have lost a game against them? That makes no sense at all.
The weird thing is that it was someone who's not even the league statistician who somehow found out and filed a complaint about us with the league executive. I have no idea how he saw the scoresheets... anyway, Mario is submitting an amendment to the Constitution at the annual general meeting in January. This is ridiculous.
On the bright side, I got those changes I was making to my C# assignment completed this afternoon. I'm sure that I had previously found a way of modifying a record in the middle of an existing file (I'm not crazy, am I,
carynb? Didn't I show you how I had done something along those lines in class last week?), but that code doesn't seem to be in any of the projects I have on my computer here at home. Using the Write file access mode, I can overwrite the file starting from the beginning. Using the ReadWrite mode, it appends everything to the end, even if I read up to the point where I want to change the file and then write my changed record. A Google search failed to turn up any way of overwriting records that are in the middle of the file. So as it stands now, I'm reading the file record-by-record and writing the record to a second file, unless the record I've just read is the one I'm updating - in which case, I'm writing the updated version. Then I'm closing the file, deleting the original and renaming the new file to the original name.
I was talking to Mario tonight about this, and he couldn't think of any other way of doing it without using something called Ajax Gadgets. He suggested that I put the following somewhere in my code as a comment: "No sane person would ever do this. Sane people would use a database."
Anyhoo, I had considered going out tonight, but a) I'm sore from bowling (another sign that I was bowling poorly - when I'm bowling well, my body doesn't bitch at me), and b) it's freezing out there (according to www.theweathernetwork.ca, it's only -4 with a wind chill of -12, but it felt like -20 when I got home an hour and a half ago). So fuck that noise.
WTF? The other team doesn't show up, doesn't declare their scores or bowl off, and we still are deemed to have lost a game against them? That makes no sense at all.
The weird thing is that it was someone who's not even the league statistician who somehow found out and filed a complaint about us with the league executive. I have no idea how he saw the scoresheets... anyway, Mario is submitting an amendment to the Constitution at the annual general meeting in January. This is ridiculous.
On the bright side, I got those changes I was making to my C# assignment completed this afternoon. I'm sure that I had previously found a way of modifying a record in the middle of an existing file (I'm not crazy, am I,
![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-userinfo.gif)
I was talking to Mario tonight about this, and he couldn't think of any other way of doing it without using something called Ajax Gadgets. He suggested that I put the following somewhere in my code as a comment: "No sane person would ever do this. Sane people would use a database."
Anyhoo, I had considered going out tonight, but a) I'm sore from bowling (another sign that I was bowling poorly - when I'm bowling well, my body doesn't bitch at me), and b) it's freezing out there (according to www.theweathernetwork.ca, it's only -4 with a wind chill of -12, but it felt like -20 when I got home an hour and a half ago). So fuck that noise.