mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Lounge

Reply
Thread Tools
Old 2018-11-08, 08:56   #3378
axn
 
axn's Avatar
 
Jun 2003

117328 Posts
Default

Quote:
Originally Posted by Nick View Post
Yes, folks, you read it first on org.mersenneforum.www!
This doesn't sort the expected way. Neither does "www.mersenneforum.org", for that matter.

And namespaces in certain programming languages are implemented this way!
axn is offline   Reply With Quote
Old 2018-11-08, 12:38   #3379
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

185016 Posts
Default

Quote:
Originally Posted by axn View Post
This doesn't sort the expected way. Neither does "www.mersenneforum.org", for that matter.
What way are you expecting?
retina is online now   Reply With Quote
Old 2018-11-08, 12:43   #3380
xilman
Bamboozled!
 
xilman's Avatar
 
"𒉺𒌌𒇷𒆷𒀭"
May 2003
Down not across

250348 Posts
Default

Quote:
Originally Posted by Nick View Post
Yes, folks, you read it first on org.mersenneforum.www!
There was a time when my email address was pcl@uk.ac.ox.robots
xilman is offline   Reply With Quote
Old 2018-11-08, 13:32   #3381
axn
 
axn's Avatar
 
Jun 2003

2·3·7·112 Posts
Default

Quote:
Originally Posted by retina View Post
What way are you expecting?
Something like...
Code:
ftp.mersenneforum.com
www.mersenneforum.com
ftp.mersenneforum.org
www.mersenneforum.org
ftp.yahoo.com
www.yahoo.com
ftp.yahoo.org
www.yahoo.org
axn is offline   Reply With Quote
Old 2018-11-08, 13:59   #3382
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

622410 Posts
Default

Quote:
Originally Posted by axn View Post
Something like...
Code:
ftp.mersenneforum.com
www.mersenneforum.com
ftp.mersenneforum.org
www.mersenneforum.org
ftp.yahoo.com
www.yahoo.com
ftp.yahoo.org
www.yahoo.org
I had never thought of website domain names to be an ordered list. But anyhow, it is not guaranteed that the same domain name with a different TLD belongs to the same entity.
retina is online now   Reply With Quote
Old 2018-11-08, 14:13   #3383
Dr Sardonicus
 
Dr Sardonicus's Avatar
 
Feb 2017
Nowhere

13×359 Posts
Default

Quote:
Originally Posted by kladner View Post
I have to say that the logic of 'y-m-d' date order is indisputable. They sort in the expected "correct" order, on computers, for starters.

Don't expect the US to give up on that date order, any more than on the English system of weights and measures..
In giving dates in dd-mm-yy(yy) format, the units proceed from smaller to larger. But this is merely convention -- preference or custom -- not "logic." Giving the date as yy(yy)-mm-dd would be just as "logical." One could also give a date according to the lexicographic ordering of the phrases for the day of the week, the month, and the year. That too would be "logical," but not very practical.

And there are several different calendars in current use. The Gregorian calendar is perhaps the most widely used, certainly so in commerce. The names of the months in the Gregorian calendar reflect a change from the old Roman calendar, when the new year was deemed to begin with Spring, and winter wasn't on the calendar. That's why the numerical prefixes for the months September to December indicate two less than the number of the month in succeeding calendars, up until the Gregorian.

With the notable exception of the Islamic calendar, adjustments have been devised for modern calendars to keep them synchronized with the seasons. This too is convention, not "logic."

Here in the good old U-S-of-A, it is customary to give dates in month-day-year format. This is reflected in, for example, President Roosevelt's address to Congress the day after the attack on Pearl Harbor: "Yesterday, December seventh, nineteen forty-one,..." It may seem unsatisfactory in that the units don't proceed according to size, but at least it is consistent. But there is a conspicuous exception to this custom in a commonly-used name for the national holiday commemorating the signing of the Declaration of Independence -- the Fourth of July.

As to weights and measures, it may be noteworthy that after France mandated use the metric system, it caused a lot of confusion, because people in every locality also kept using their customary systems. France finally had to mandate the exclusive use of the metric system. Enacting that sort of measure would be difficult here in the USA.

There is also a practical difficulty now which did not exist -- or at least, not to nearly as large a degree -- in the mid-Nineteenth Century: just think of the amount of machinery, infrastructure, and construction in place, which was designed and built under the English system -- diameters of pipes, screws, nuts and bolts. Threads per inch. And on and on. You can't just wave a wand and change all of that stuff. If you want to have the metric system used exclusively here, you need to deal with that "inertia" problem.
Dr Sardonicus is offline   Reply With Quote
Old 2018-11-08, 14:27   #3384
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

24×389 Posts
Default

The default *nix "date" command defies all logic.
Code:
~ date
Tue 15 Nov 12:34:56 +00 2016
Try to sort that in some logical way!

At least it doesn't use the AM/PM thing. That would've made it even worse.
retina is online now   Reply With Quote
Old 2018-11-08, 23:42   #3385
Dr Sardonicus
 
Dr Sardonicus's Avatar
 
Feb 2017
Nowhere

110738 Posts
Default

Quote:
Originally Posted by retina View Post
The default *nix "date" command defies all logic.
Code:
~ date
Tue 15 Nov 12:34:56 +00 2016
Try to sort that in some logical way!

At least it doesn't use the AM/PM thing. That would've made it even worse.
Convert to the Julian day, and thence Julian date (Julian day number plus fraction of day).

I note that the date you give is almost two years ago. Perhaps your machine decided it did not want to go on, a week after the 2016 election?

Last fiddled with by Dr Sardonicus on 2018-11-08 at 23:43
Dr Sardonicus is offline   Reply With Quote
Old 2018-11-09, 06:43   #3386
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

24·389 Posts
Default

Quote:
Originally Posted by Dr Sardonicus View Post
Convert to the Julian day, and thence Julian date (Julian day number plus fraction of day).
There are lots of alternative formats. And picking any of them would probably have been preferred to the one that date outputs. What were they thinking?
Quote:
Originally Posted by Dr Sardonicus View Post
I note that the date you give is almost two years ago. Perhaps your machine decided it did not want to go on, a week after the 2016 election?
Other countries exist. It's a long story to explain the ~2yr delay, but it has nothing to do with the election process in a country that uses those crazy date formats.
retina is online now   Reply With Quote
Old 2018-11-09, 14:05   #3387
Dr Sardonicus
 
Dr Sardonicus's Avatar
 
Feb 2017
Nowhere

13×359 Posts
Default

Quote:
Originally Posted by retina View Post
There are lots of alternative formats. And picking any of them would probably have been preferred to the one that date outputs. What were they thinking?
That's a question best addressed to the people who first wrote the code.

(Looks at manual) Hmm. For purposes of sorting dates since January 1, 1970 00:00 UTC, it appears that

date -j -f "%a %b %d %T %Z %Y" "`date`" "+%s"

fills the bill. It converts the date to the number of seconds since that time.

Quote:
Other countries exist. It's a long story to explain the ~2yr delay, but it has nothing to do with the election process in a country that uses those crazy date formats.
Hmm. It's a curious thing, that date being off by almost two years. (I am discounting the possibility that might prompt the reply, "Pull the other one. It's got bells on it.")

The two obvious possibilities for how it could have got that way are, (1) it's deliberately set that way (why it would be, I have no idea), or (2) for some reason, "time stopped" on that computer for almost two years -- perhaps it was powered down for that long and the date stayed where it was when the plug got pulled; and after power was restored, time resumed at that point, and the date was never reset. Why it would not have been reset is something I can't fathom. Perhaps resetting it would simply upset too many apple carts...
Dr Sardonicus is offline   Reply With Quote
Old 2018-11-09, 14:18   #3388
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

141208 Posts
Default

Quote:
Originally Posted by Dr Sardonicus View Post
(Looks at manual) Hmm. For purposes of sorting dates since January 1, 1970 00:00 UTC, it appears that

date -j -f "%a %b %d %T %Z %Y" "`date`" "+%s"

fills the bill. It converts the date to the number of seconds since that time.
Yes indeed. That is so much easier than having a default do that for us.
Quote:
Originally Posted by Dr Sardonicus View Post
Hmm. It's a curious thing, that date being off by almost two years. (I am discounting the possibility that might prompt the reply, "Pull the other one. It's got bells on it.")

The two obvious possibilities for how it could have got that way are, (1) it's deliberately set that way (why it would be, I have no idea), or (2) for some reason, "time stopped" on that computer for almost two years -- perhaps it was powered down for that long and the date stayed where it was when the plug got pulled; and after power was restored, time resumed at that point, and the date was never reset. Why it would not have been reset is something I can't fathom. Perhaps resetting it would simply upset too many apple carts...
Hehe, well then perhaps I'll just let you speculate. There is a good reason actually.
retina is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Some things Une Personne Information & Answers 8 2012-06-12 18:10
All things Firefox JuanTutors Lounge 31 2005-12-15 03:35
A couple things PHinker Software 3 2004-12-18 17:08
Two Amazing Things clowns789 Hardware 1 2003-12-27 16:57
How things are set up... Xyzzy Lounge 22 2003-08-10 14:36

All times are UTC. The time now is 00:29.


Mon Aug 2 00:29:01 UTC 2021 up 9 days, 18:58, 0 users, load averages: 1.36, 1.28, 1.26

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.