- 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
Admin
Yeah, suck it up yankee pigs!
Admin
It's sad because most likely it's true.
Admin
This is supposed to make your head ache if you think about it too much.
Admin
Military time?
The US military when implementing the GPS system insisted on having a software switch to be able to turn off the relativity correcting algorithms inside the satellites because they just couldn't believe this one guy (who apparently always put something into a wall socket prior to having his photo taken) who said that time would move slower inside those satellites once they had been launched. So don't talk to me about military time application, please...
Admin
cf. Verrazano-Narrows Bridge. (Granted, it wasn't gravity that made it fail ...)
Admin
Haskell does, to indicate context inheritance from class.
Admin
Admin
Then what did make it fall?
Is there some new gravity-like force we should be made aware of?
Admin
What's that all about? Please explain.
Or is it a reference to the frizziness of the hair of Einstein who first worked out most of this stuff?
Admin
Admin
wow do you actually think, or are you upper management and have a secretary for that? :)
Admin
This star-trek fixation is now cureable. Please visit doctor for mental analysis immediately.
Admin
The Tacoma Narrows bridge may be a better example....
Admin
It is retarded military time when you call 14:00 "fourteenhundred", as if an hour has 100 minutes now!
Admin
Admin
I call it "two P M" and I type "14:00".
Because if you're speaking, there are probably mush-brained humans involved, but if you're dealing with a computer, there is only One True Date/Time Format.
Admin
Please show some sensitivity. I had Zunesis once, and let me assure you it's no laughing matter.
Admin
Admin
No, it's relativitly simple.
It's the distance between your position in spacetime and the 0,0,0,0 coordinate which is obviously the exact place and time where the big bang started.
Since we all know that d=sqrt(x^2+y^2+z^2-t^2), all we have to do is convert it into planck lengths.
To find where the big bang started, we simply locate the position in the universe where all spacetime is expanding away from, and that's the center. Just because I observe it to be the exact location I'm in merely reflects how important I am in the universe. Say, is anyone going to eat that fairy cake?
--Joe
Admin
No, in a perfect universe, time is reckoned as "Wyoming" or "not Wyoming".
Admin
A perfect universe wouldn't have Wyoming....
Admin
In fact it can mean almost anything, including:
Function Literal
Function Literal that is a Closure
Type declaration of a function
Declaration of a By-Name-Parameter A normal function parameter is an expression that is evaluated before the function is called. A By-Name-Parameter is evaluated lazely, it is first evaluated when the parameter actually is used inside the function.
blows ArithmeticException
However same function:
will not blow, as the expression containing the divie-by-zero never is evaluated.
Renamed imports
Excluded imports
This imports all members of Fruits except Pear.
Pattern matching As already shown in the previous post.
However there is more to it, you can use it with Extractors:
and on XML:
Admin
Let's play Global Thermonuclear War...
Admin
Let's see, Indians invented the number 0 around the 9th century, and Americans still act as if it wasn't known. But keep on making your Nagesh jokes if that helps you feel superior ...
Admin
Y-Knot - http://srs.linvatec.com/SRS_instability_Yknot.php
Admin
Nah...but the Mets are pretty riled up...
Admin
Yeah - and that's going to happen...when? Hmmm...let me see...I was in grade school when the first moon landing occurred...I was in high school when the last moon landing occurred...gonna retire in about 10 years or so...I'd say...just a guess here...it'll happen...hmmm...from my point of view...uh...NEVER!!!!!!!!!
Admin
Well, its obvious that it's missing something... "FNF" => "File Not Found"
Admin
(So how do you invent a zero, anyway? "Hey look everyone, I made a zero!" "What, where, I can't see it?" "That's because it's nothing." "But you invented it?" "Yeah!" "Uhhh...")
Admin
But even I have been to Europe, and even I know that AM/PM is still prevalent there. Especially in the UK. Yes, there are a lot of places that use 24-hr time, far more than in the US, but a lot don't.
So don't go acting high and mighty that you're using the One True System, because even "you" aren't consistent about it.
Admin
You forgot "Wyoming not found".
Admin
An hour should have 100 minutes, each having 100 seconds. The military is just ahead of everyone else.
Admin
Welcome to the every other daily WTF
Admin
No, I genuinely want to know why someone would want to put something in a wall socket prior to having his photo taken. In short, I don't get the fucking joke, you shitfucker.
Admin
Looks like in WY day starts at noon and lasts only 6 and half and hour. Poor people.
Admin
[quote user="PedanticCurmudgeon"][/quote]Well, for starters, the one true date/time format includes a time zone offset, for example 18:30:00-04:00.[/quote]
Surely a sane person would just write "18:26:00" instead.
Admin
everyone knows 24 hour time is the better system, there is no need for the AM/PM indicator, 0 is midnight 12 is midday and hence no confusion
when i can i prefer my clocks 24 hour, i just wish New Zealand TV stations would switch to 24 hour for there programming, they say the time but dont say if its AM or PM, 24 hour would remove the confusion in that respect
Admin
I've been living for years in continental Europe (Western Europe that is) and I never see AM/PM used. Same thing when I travel in the Middle East and S.E. Asia. Sometimes people will casually talk about 5 o'clock when meaning 17H00 for instance but never adding PM and often rephrasing the time as 17H. It's a bit like the metric system. The only holdouts clinging to imperial are the USA, Liberia and Myanmar (Burma)whilst the rest of the world has moved on to metric.
Admin
Oh, yes, it is hard to do those conversions. But that would be true no matter what kind of time scale we used, because any time scale you can develop is only good in one frame of reference.
So we could change the definition to (borrowing Wikipedia), "the duration of 10,000,000,000 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium 133 atom."
That wouldn't correspond with Earth's rotation ... or anything else, either. And it would probably result in a different interval on the Sun or Jupiter (due to the higher gravity changing the speed of light) and on spacecraft due to their speed of motion.
That's why it is silly that they were just discussing doing away with leap seconds. If we go to a strict second count, then pretty soon (cosmic scale) everyone will be complaining because noon really isn't noon anymore, since the Sun will be rising along about 12:00:00. Or else you'll have to look at some stupid table computed by someone to find out that "high noon" is actually at 18:22:31 local time.
So someone might suggest we use two time scales based on second count and a second time based on Earth's rotation, and...we'll be back to tracking leap seconds again. Or maybe we'll go to leap hours or leap days...and guess how that will screw up the program conversions (given that no one will test the programs for something that won't happen until ... "the end of the century").
(Some programmers can't get leap year right, even after we just went through Y2K; and leap year happens every 4 years. And this was at Microsoft!)
Time is truly relative--Einstein showed that--and will always be a pain, no matter the basis or intervals used.
Admin
Then it's not Absolute then, is it?
Why? The notion of Absolute Space was discarded centuries ago and people coped pretty well with the results. Why should discarding Absolute Time be a problem?Admin
I suspect this is a case of a certain person completely misunderstanding the Special Theory of Relativity.
Nearly as bad as someone I recently saw declaiming that because of time dilation, developing a star drive based on the concept of travelling at speeds just-sub-light is a pointless waste of time because "you would age thousands of years on the spaceship for every minute in the outside universe."
With such misunderstanding of basic physics as this in the general population, it's more profitable to argue against creationism.
Admin
You amateurs ....
The best format is and always will be MhsshM . and it's a palindrome !
310680 : WTF it's six thirty PM and I'm still at work posting on tdwtf?
Admin
Man, the day I read so much confusion and controversy about the normal standard 24 hour time ... l m f a o
And yet, people seem to think AM/PM is not retarded... Two girls one stick of butter really ;)
Admin
Errr.. Scala trwtf ?
Admin
No ? UK+ USA = 5% of the world - i .e. nobody.
And please don't count the UK as a part of Europe, they're merely geographically close to us that's all.
Admin
Admin
Not to invalidate the whole WTF, but as an ex PHP-programmer I can actually see myself writing code like this.
Let's put on our thinking cap and see what we can deduce about the usage of the oh-so-terrible SLOC:
this looks like the input array to the php-function strtr() which will take a source string an a hash translation table and then find and replace every occurence of the key string to one of the value string in the hash.
it's not a matter of time conversion. These are singular points in daytime hours which are mapped to a more American-friendly format. First isolating those timestrings, parsing and then reformating them to am/pm format would be overkill.
since this replacement is probably done on a regular basis to textual data from an (assumed) external source it would an obvious place to add additional corrections to prefered ways to spell frequently occurring words ("WY" to "Wyoming")
don't ask me what the "" => "" is about, but since it will not change the result of the string-translation, it's not a bug but just left in there to facilitate adding more on-the-fly corrections
I hazard a guess that the script is pulling some kind of external time schedule from an RSS for example and then applies the string translation to make the timetable look more like some PHB expects it to look.
been there, done that, doesn't weight on my programmers conscience.
Admin
Admin
No, thier seconds and minutes are just shorter. Kinda like the equivilant New York minute, or are those longer, I can never remember.