I came here tonight to post that VERY thing. I love the builders and the Admins and everyone involved with its existence (and I'm not even drunk).
Buffistas Building a Better Board
Do you have problems, concerns or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.
Hey is it still Hil's birthday? Here's something mathy anyway.
I found this calculation lying around in an old Perl script:
$season_number = int(($episode_number + 9)/22) +1;
where "int" means "convert to integer". It's the calculation to tell you what season of Buffy an episode is from.
I've forgotten how I arrived at it but it appears to work... it might be of use when we're working on the DB?
You can also figure out what episode number it was within the season by adding 10 and then taking it mod 22. (This won't work for season 1).
I'm confused -- how are the episodes numbered?
The table currently stores both season and episode, so we won't actually need it.
This won't work for season 1
I'm confused -- how are the episodes numbered?
Well there were only 12 in the first season and 22 in all subsequent seasons, so that's why it's fiddly.
The table currently stores both season and episode, so we won't actually need it.
Mine just had numbers, but I used the formula to go back and populate the fields automatically based on the number. One of those things where figuring out a formula took longer than just typing the info in, but, cooler.
Shall we make some kind of more public announcement about the database idea, like the call for adoptions thing? Should we wait for some date when things quiet down in Christmas-celebrating countries? Should it have its own thread? Are we short of coders?
Well there were only 12 in the first season and 22 in all subsequent seasons, so that's why it's fiddly.
No, I mean, aren't they numbered 1.1, 1.2, 1.3, etc? Why would there need to be a formula at all?
Well if you've got a list of them all in some database, then they're going to be listed from one to whatever.
aren't they numbered 1.1, 1.2, 1.3, etc?
I'd assume that officially, they have some kind of boring number like ME:1:6598213 or whatever.
What you need for a fan database is something more interesting anyway, you need "Episode X over all, which is Episode Y of Season Z", and you also need to note Final Episodes too, in case someone can't remember that The Gift, ep 100 (ep 22 of season 5), is also the Final Ep of that season.
[Edit: this is one of the new features I added to Mister Pointy]
There should be more math. This could be mathier.
How do you express, in math, the idea of "if"?
I mean, the formula is more easily expressed in programming as "if x less than thirteen, season = 1; if x more than 12, season equals whatever" the thing Hil said earlier about modulus. But can you do that in maths? I'm incredibly ignorant.