- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
If we wish to be pedantic about "for completeness", the options should also include Fail.
Admin
The Facebook problem is clearly wrong, Der Dritte Raum (The third room, translated from German) requires all menu items to appear three times, not just two.
Admin
the date problem is simple they divide the difference by millis/year and
(Date.parse("2025-01-26") - Date.parse("2018-01-28")) / 31536000000
returns 7Admin
How hard is it to uze floating-point arithmetic for that?
Admin
More to the point, how hard is it to use a better estimate of millis per year, so that the division calculates based on 365.25 (or a more refined version if you prefer)? It's still wrong, but it won't exhibit this particular misbehaviour.
In the end, of course, what we want is yeardiff minus one, or yeardiff exactly if the date with an earlier year is earlier in that year than now is in the current year. In the case in the WTF, it would use just yeardiff-1, which is 6, which is less than 7.
Admin
yes, the number of seconds per year is 31557600, not 31536000
Admin
Once upon a midnight dreary, fingers cramped and vision bleary, system manuals piled high and wasted paper on the floor...
Admin
Sure they remembered the ingredients: Ingredient 1, Ingredient 2 and Ingredient 3.
Admin
James James Morrison Morrison Weatherby George Dupree Was a Coder at Meta Though he was only three
(with apologies to A. A. Milne)
Admin
Sprach der Rabe (im dritten Raum): Hol Bier jetzt!
Admin
To me the real WTF is the implication of the Acronis True Image error message text.
It amounts to: "If you moved or renamed your backup, put it back. It cannot ever be accessed again if moved or renamed."
Holy lost backups forever Batman!
I also double-taked at the file path starting with
B: ...
but nowadays that doesn't mean what it did in the DOS era. And is a user decision, not an Acronis issue.Admin
Still, I don't understand why they don't simply output "about #.# years old", avoiding those stupid errors near the "birthday" of an article, if they don't want to use precise math. (The latter may also be not so necessary, given the context...)