• Aquaflesh (unregistered)

    Token first post

  • Bob (unregistered) in reply to Aquaflesh

    Token for first post has expired

  • Shoreline (nodebb) in reply to Bob

    Looks like the new code is working, then.

  • Bert (unregistered)

    What, no terrible consequences? It's like a weaker version of that other story where the caching was set to 10 years on a page with a terrible bug in.

  • Qazwsx (unregistered)

    Sacha received custody of a legacy Python API, and was tasked with implementing a fresh version of it. And then the murders began.

  • J. R. R. Token (unregistered)

    I was going to be frist, but my token expired.

  • kitikounel (unregistered)

    I will be still working the March 4th, 2064...

  • zonker (nodebb)

    So now common, or garden, bugs are worthy of daily WTF?

  • Mason Wheeler (unregistered)

    That timestamp corresponds to May 4, 2064, a date by which most of us will be dead or retired.


    "I plan to live forever, of course, but barring that I'd settle for a couple thousand years. Even five hundred would be pretty nice." -- CEO Nwabudike Morgan, Sid Meier's Alpha Centauri

  • FormalWare (unregistered)

    "... the current Unix timestamp—which is the number of seconds that have transpired since January 1, 1970."

    "Transpired?" Odd turn of phrase. "Elapsed," perhaps?

  • Herby (unregistered)

    Once again, this proves the axiom: Date and time calculations are never "easy".

    On Unix timestamps: While they purport to show the number of seconds since 1/1/70, they (according to standards) do not take into account leap seconds. While this may be trivial, if you are setting the clock, you need to "know".

  • TheCPUWizard (unregistered)

    happened, occurred, taken place, arisen, come about -- All seem fine, and happen to all by synonyms for transpired....

  • Ex-lurker (unregistered) in reply to Herby

    Sorry, but that's not it. Date and time are never easy indeed, but this is not what caused this failure. The programmer simply had more variables to take care of than their tiny brain could manage. They forgot what each variable contained, didn't bother to test when the first attempt seemingly worked, thus a WTF ensued transpired.

  • Zemm (nodebb) in reply to Herby

    The leap seconds are accounted for, just you can't tell the difference between 00:00:00 and 23:59:60 (the previous day) when one occurs. Or they spread that second out over the entire day.

  • AJ (unregistered) in reply to Ex-lurker

    Frankly, I wouldn't be surprised if it were an autocomplete error. You've got a bunch of long variable names to return in one statement, it's easy to type "exp", hit tab, and forget about it as you tab-complete everything else and see that it runs.

  • Ex-lurker (unregistered) in reply to AJ

    Ah yes, I think there's a good chance for an autocomplete mistake here. Still, it is just the means, not the "perpetrator of the crime". The programmer who uses autocomplete or Intellisense is responsible for making sure that the correct variable, class, function or whatever else is the one that will end up in the source. If that moron has to defer to the computer... well, let's say that they should work elsewhere. Elsewhere wildly different. Most likely within the Amish.

  • Ex-lurker (unregistered)

    On a side note, I can't tell if the spammers are getting better or worse. They're obviously having even less trouble getting past the captcha, but at least they used to attempt to weave a semblance of a reasonable comment on the story into their spammy text.

    The best written spam this site has seen in a while is in http://thedailywtf.com/articles/comments/it-s-no-big-deal . From there til now the spammer seems to have devolved. Maybe it was too much work to write pretend comments like that?

  • dkf (nodebb) in reply to Herby

    While this may be trivial, if you are setting the clock, you need to "know".

    No, most of the time you don't need to know since leap seconds appear to computers just like they had a clock glitch by a second. If you're on a system that only synchs its clock to NTP once a week, dealing with more drift than that is actually normal. You can just pretend and everything works well enough.

    Where it matters is when you're dealing with a very high accuracy time source like GPS, but that's really a small minority of developers.

  • Scarlet_Manuka (nodebb) in reply to Ex-lurker

    One of the spam bots has taken a comment from the last post and just added a spam link at the end. It might have worked better if this were a site where comments on consecutive posts are likely to have similar subjects.

  • urkerab (nodebb)

    You need good NTP if you're going to rely on these tokens. My boss wondered why my code to access a particular Mozilla API wasn't working for him. Turns out that their maximum expiration (60 seconds at the time) exceeded his clock drift, so his tokens were permanently expired.

  • Arnold (unregistered)

    Much thanks for this helpful article. I like it. embossitworld

  • Jack (unregistered)

    Somebody Sometimes with visits your online journal routinely and prescribed it as far as I can tell to peruse also. The method for composing is brilliant furthermore the substance is first rate. A debt of gratitude is in order for that knowledge you give the perusers! How To Kiss A Man Review

  • John Martin (unregistered)

    I'm getting excited about this kind of beneficial information of your stuff in the future Case Studies Solutions

  • John Martin (unregistered)

    I must say we should have an online discussion on this.Case Studies Solutions only professional writers can make this kind of material, cheers

  • Lewis Owen (unregistered)

    This is really a great stuff for sharing. Keep it up . Electrical Engineering Assignment Help Thanks for sharing.

  • Terry Bogard (unregistered)

    Great info! I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have Ivey case study analysis I appreciate this work amazing post for us I like it.

  • ehtisham (unregistered)

    I might want to thank you for the endeavors you have made in composing this article. I am trusting the same best work from you later on also. Much appreciated... Signs A Guy Likes You

  • Michael Jones (unregistered)

    Website is the premier method to introduce your business to the market. I find it good to see that you have done well in maintaining your site. Students not being able to write their academic coursework could opt for our Assignment Help online and can get comprehensive homework written from us.

Leave a comment on “The Tokens That Wouldn’t Die”

Log In or post as a guest

Replying to comment #:

« Return to Article