The one Kmax put up is correct. I am not surprised the other one is off. The roster is about 1/2 correct right now as well.HelenaCat95 wrote:kmax,
the msu athletics site has a countdown clock up from now until the first home game (Stephen F Austin) on Sept 10 - the clock says there is 104 days left - which is different than the clock here.
It doesn't take much, but I'm confused![]()
Which one is right?
http://www.msubobcats.com/
I must say, that I am glad to see both clocks.
Keep up the great work on the site.
Countdown to upcoming seasons
Moderators: rtb, kmax, SonomaCat
-
- Member # Retired
- Posts: 2828
- Joined: Sat Sep 18, 2004 5:19 pm
- Location: Wyoming
- Contact:
- kmax
- Site Admin
- Posts: 9780
- Joined: Sat Mar 06, 2004 6:23 pm
- Location: Belgrade, MT
- Contact:
Let's see here:HelenaCat95 wrote:kmax,
the msu athletics site has a countdown clock up from now until the first home game (Stephen F Austin) on Sept 10 - the clock says there is 104 days left - which is different than the clock here.
It doesn't take much, but I'm confused![]()
Which one is right?
http://www.msubobcats.com/
I must say, that I am glad to see both clocks.
Keep up the great work on the site.
13 -- days left in May
+ 30 -- days in June
+ 31 -- days in July
+ 31 -- days in August
+ 3 -- days in September(or 10 if going to first home game)
--------------------------------------------------------------------------------------------
108 -- days till first game(or 115 if going to first home game)
Note that as of this writing it is actually 107 days and 20+ hours since we are already past my assumed start time of 1:00 pm. In other words, their timer should actually show 114 days and some change, so you guessed it, their logic is screwed up for how it determines the tens digit of the days. Translation, the CS student that coded their timer gets an F for not testing it first.

Okay, just cause I'm a computer geek, here's what's wrong with their countdown and how the Athletic dept. can fix their script. For anyone not interested in programming you can quit reading now.
Below is a section of the code that displays the day numbers for their countdown:
Code: Select all
function displayNumber(number)
{
if (number == 0) return c0.src;
else if (number == 1) return c1.src;
else if (number == 2) return c2.src;
else if (number == 3) return c3.src;
else if (number == 4) return c4.src;
else if (number == 5) return c5.src;
else if (number == 6) return c6.src;
else if (number == 7) return c7.src;
else if (number == 8) return c8.src;
else if (number == 9) return c9.src;
return c0.src;
}
document.images.days100.src = displayNumber(Math.floor(daysRemain/100));
document.images.days10.src = displayNumber(Math.floor(daysRemain/10));
document.images.days1.src = displayNumber(daysRemain%10);
Code: Select all
document.images.days10.src = displayNumber(Math.floor(daysRemain/10));
So the Athletic department can just leave their countdown incorrect for 5 more days and then it will magically fix itself and bump back to the correct 109 days left(it'll be kinda like the end of daylight savings time

Code: Select all
document.images.days10.src = displayNumber(Math.floor((daysRemain-(Math.floor(daysRemain/100) * 100))/10));
Okay, end of geek lesson.

**Disclaimer: I by no means intend this to imply that there is nothing wrong with the stuff I code, just that nobody has found it yet.
“Arguing with anonymous strangers on the Internet is a sucker's game because they almost always turn out to be—or to be indistinguishable from—self-righteous sixteen-year-olds possessing infinite amounts of free time.” -- Neal Stephenson, Cryptonomicon
- HelenaCat95
- Golden Bobcat
- Posts: 6968
- Joined: Mon Mar 29, 2004 1:13 pm
- Location: Helena, Montana
- kmax
- Site Admin
- Posts: 9780
- Joined: Sat Mar 06, 2004 6:23 pm
- Location: Belgrade, MT
- Contact:
Yeah, I'm waiting for mslacat to amend his "which are bigger nerds" poll to include computer geeks.HelenaCat95 wrote:kmax,
you had me at hello.

“Arguing with anonymous strangers on the Internet is a sucker's game because they almost always turn out to be—or to be indistinguishable from—self-righteous sixteen-year-olds possessing infinite amounts of free time.” -- Neal Stephenson, Cryptonomicon
- HelenaCat95
- Golden Bobcat
- Posts: 6968
- Joined: Mon Mar 29, 2004 1:13 pm
- Location: Helena, Montana
- kmax
- Site Admin
- Posts: 9780
- Joined: Sat Mar 06, 2004 6:23 pm
- Location: Belgrade, MT
- Contact:
Yeah, I noticed that, though in fairness I will say that their solution was much more succinct and efficient than mine was.HelenaCat95 wrote:The msubobcats.com countdown clock has been corrected.
“Arguing with anonymous strangers on the Internet is a sucker's game because they almost always turn out to be—or to be indistinguishable from—self-righteous sixteen-year-olds possessing infinite amounts of free time.” -- Neal Stephenson, Cryptonomicon
- mquast53000
- 2nd Team All-BobcatNation
- Posts: 1233
- Joined: Wed Feb 16, 2005 4:45 pm
- Location: Billings
- kmax
- Site Admin
- Posts: 9780
- Joined: Sat Mar 06, 2004 6:23 pm
- Location: Belgrade, MT
- Contact:
Ahh, the offseason. You know I hear the WNBA is starting up in a couple weeks, things oughta pick up around here then.mquast53000 wrote:Robcat wrote:Wow, I cannot belive I read this whole post. Makes me glad I am still on a County Road. Ouch, my head hurts.
I can’t believe I have been following it, and waiting in great anticipation of the next post (yours was kind of weak).
“Arguing with anonymous strangers on the Internet is a sucker's game because they almost always turn out to be—or to be indistinguishable from—self-righteous sixteen-year-olds possessing infinite amounts of free time.” -- Neal Stephenson, Cryptonomicon
- HelenaCat95
- Golden Bobcat
- Posts: 6968
- Joined: Mon Mar 29, 2004 1:13 pm
- Location: Helena, Montana
-
- Golden Bobcat
- Posts: 7463
- Joined: Mon Dec 13, 2004 11:05 am
Hummmm...some of us need some kind of football fix FAST!!!! I think I'm going to spend part of my summer vacation away from the beaches in Florida and work a summer football camp or two
We lost a great kid and coach from northeast Montana to Gwinnett County in Georgia so his last day here on June 3d means he'll be at camps and combines in less than a month and issuing equipment the third week of July
Can't stand all this down time and it's getting pretty bad when I go to a thread and look at everybody else starved for football and all I gotta do is go back where they live the game 365 days a year...





- mquast53000
- 2nd Team All-BobcatNation
- Posts: 1233
- Joined: Wed Feb 16, 2005 4:45 pm
- Location: Billings
- mquast53000
- 2nd Team All-BobcatNation
- Posts: 1233
- Joined: Wed Feb 16, 2005 4:45 pm
- Location: Billings
- kmax
- Site Admin
- Posts: 9780
- Joined: Sat Mar 06, 2004 6:23 pm
- Location: Belgrade, MT
- Contact:
Yeah, must be broken. Check back tomorrow a little after noon, should be fixed then.mquast53000 wrote:How the hell are we still over a 100 days away from the 2005 season! Is there something wrong with this count down clock?
“Arguing with anonymous strangers on the Internet is a sucker's game because they almost always turn out to be—or to be indistinguishable from—self-righteous sixteen-year-olds possessing infinite amounts of free time.” -- Neal Stephenson, Cryptonomicon
- kmax
- Site Admin
- Posts: 9780
- Joined: Sat Mar 06, 2004 6:23 pm
- Location: Belgrade, MT
- Contact:
Yep, sarcasm.GOKATS wrote: Maybe I'm missing something.

“Arguing with anonymous strangers on the Internet is a sucker's game because they almost always turn out to be—or to be indistinguishable from—self-righteous sixteen-year-olds possessing infinite amounts of free time.” -- Neal Stephenson, Cryptonomicon
- kmax
- Site Admin
- Posts: 9780
- Joined: Sat Mar 06, 2004 6:23 pm
- Location: Belgrade, MT
- Contact:
See, told ya. It's fixed now.mquast53000 wrote:How the hell are we still over a 100 days away from the 2005 season! Is there something wrong with this count down clock?

“Arguing with anonymous strangers on the Internet is a sucker's game because they almost always turn out to be—or to be indistinguishable from—self-righteous sixteen-year-olds possessing infinite amounts of free time.” -- Neal Stephenson, Cryptonomicon
- mquast53000
- 2nd Team All-BobcatNation
- Posts: 1233
- Joined: Wed Feb 16, 2005 4:45 pm
- Location: Billings