Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #11183 > unrolled thread
| Started by | dennism3@dennism3.invalid (Dennis M) |
|---|---|
| First post | 2012-02-03 20:54 -0600 |
| Last post | 2012-02-07 05:18 -0800 |
| Articles | 20 on this page of 24 — 11 participants |
Back to article view | Back to comp.lang.javascript
Looking for a Monday-Friday J/S dennism3@dennism3.invalid (Dennis M) - 2012-02-03 20:54 -0600
Re: Looking for a Monday-Friday J/S Jeff North <jnorthau@yahoo.com.au> - 2012-02-04 14:58 +1100
Re: Looking for a Monday-Friday J/S dennism3@dennism3.invalid (Dennis M) - 2012-02-03 22:33 -0600
Re: Looking for a Monday-Friday J/S Swifty <steve.j.swift@gmail.com> - 2012-02-04 08:56 +0000
Re: Looking for a Monday-Friday J/S "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-04 09:11 +0000
Re: Looking for a Monday-Friday J/S Dr J R Stockton <reply1205@merlyn.demon.co.uk> - 2012-02-05 17:50 +0000
Re: Looking for a Monday-Friday J/S "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-06 11:22 +0000
Re: Looking for a Monday-Friday J/S Dr J R Stockton <reply1206@merlyn.demon.co.uk> - 2012-02-07 22:17 +0000
Re: Looking for a Monday-Friday J/S "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-08 08:56 +0000
Re: Looking for a Monday-Friday J/S Gene Wirchenko <genew@ocis.net> - 2012-02-08 09:22 -0800
Re: Looking for a Monday-Friday J/S "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-09 16:49 +0000
Re: Looking for a Monday-Friday J/S Dr J R Stockton <reply1206@merlyn.demon.co.uk> - 2012-02-09 18:53 +0000
Re: Looking for a Monday-Friday J/S "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-10 08:13 +0000
Re: Looking for a Monday-Friday J/S Dr J R Stockton <reply1206@merlyn.demon.co.uk> - 2012-02-11 23:12 +0000
Re: Looking for a Monday-Friday J/S John G Harris <john@nospam.demon.co.uk> - 2012-02-10 16:02 +0000
Re: Looking for a Monday-Friday J/S Dr J R Stockton <reply1206@merlyn.demon.co.uk> - 2012-02-11 23:24 +0000
Re: Looking for a Monday-Friday J/S Andrew Poulos <ap_prog@hotmail.com> - 2012-02-04 20:13 +1100
Re: Looking for a Monday-Friday J/S Swifty <steve.j.swift@gmail.com> - 2012-02-05 10:01 +0000
Re: Looking for a Monday-Friday J/S Andrew Poulos <ap_prog@hotmail.com> - 2012-02-06 08:00 +1100
Re: Looking for a Monday-Friday J/S Swifty <steve.j.swift@gmail.com> - 2012-02-06 12:20 +0000
Re: Looking for a Monday-Friday J/S dennism3@dennism3.invalid (Dennis M) - 2012-02-07 01:05 -0600
Re: Looking for a Monday-Friday J/S Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-04 14:02 +0100
Re: Looking for a Monday-Friday J/S Dr J R Stockton <reply1205@merlyn.demon.co.uk> - 2012-02-05 17:41 +0000
Re: Looking for a Monday-Friday J/S Captain Paralytic <paul_lautman@yahoo.com> - 2012-02-07 05:18 -0800
Page 1 of 2 [1] 2 Next page →
| From | dennism3@dennism3.invalid (Dennis M) |
|---|---|
| Date | 2012-02-03 20:54 -0600 |
| Subject | Looking for a Monday-Friday J/S |
| Message-ID | <dennism3-ya02408000R0302122054100001@news.datemas.de> |
One of my sites is a free link directory that's becoming increasingly popular and so it doesn't drive me crazy approving new submissions I was wanting to install a javascript on the link submission page that would load that page on Monday through Friday, then on the weekends load a page where I could say I "only accept new submissions M-F." Anybody? Looked around on a well known javascript site but couldn't find what I want to do.
[toc] | [next] | [standalone]
| From | Jeff North <jnorthau@yahoo.com.au> |
|---|---|
| Date | 2012-02-04 14:58 +1100 |
| Message-ID | <orapi7tcpscq199g7f1njul5l479re9vck@4ax.com> |
| In reply to | #11183 |
On Fri, 03 Feb 2012 20:54:10 -0600, in comp.lang.javascript dennism3@dennism3.invalid (Dennis M) <dennism3-ya02408000R0302122054100001@news.datemas.de> wrote: >| One of my sites is a free link directory that's becoming increasingly >| popular and so it doesn't drive me crazy approving new submissions I was >| wanting to install a javascript on the link submission page that would load >| that page on Monday through Friday, then on the weekends load a page where >| I could say I "only accept new submissions M-F." Anybody? Looked around on >| a well known javascript site but couldn't find what I want to do. Bad idea. If the visitor has javascript turned off then your script will not work. Is the Mon-Fri your time, the ISP time? I'm in Australia so on *my* Monday I still wouldn't be able make a submission. You are better off doing this server-side an not display the submission block. But if you insist. Have a look at the Date object and getDay(). https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getDay
[toc] | [prev] | [next] | [standalone]
| From | dennism3@dennism3.invalid (Dennis M) |
|---|---|
| Date | 2012-02-03 22:33 -0600 |
| Message-ID | <dennism3-ya02408000R0302122233020001@news.datemas.de> |
| In reply to | #11184 |
In article <orapi7tcpscq199g7f1njul5l479re9vck@4ax.com>, jnorthau@yahoo.com.au wrote: >On Fri, 03 Feb 2012 20:54:10 -0600, in comp.lang.javascript >dennism3@dennism3.invalid (Dennis M) ><dennism3-ya02408000R0302122054100001@news.datemas.de> wrote: > >>| One of my sites is a free link directory that's becoming increasingly >>| popular and so it doesn't drive me crazy approving new submissions I was >>| wanting to install a javascript on the link submission page that would load >>| that page on Monday through Friday, then on the weekends load a page where >>| I could say I "only accept new submissions M-F." Anybody? Looked around on >>| a well known javascript site but couldn't find what I want to do. > >Bad idea. If the visitor has javascript turned off then your script >will not work. Yeah I'm fully aware of that. I was counting on people not wanting to make the effort to turn off JS if they can come back in a day or two and submit. >Is the Mon-Fri your time, the ISP time? I'm in Australia so on *my* >Monday I still wouldn't be able make a submission. I also thought of that and it doesn't have to be precise to my time zone, the goal is to slow down the submissions some. (Over the Christmas holidays I took a break the entire last week in Dec., I just replaced the submission page with another page. That worked fine but I was looking for something automatic.) >You are better off doing this server-side an not display the >submission block. I thought I would probably get a suggestion like that but I have no idea how to do that either. >But if you insist. Have a look at the Date object and getDay(). >https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/g etDay That's really too raw for a novice like me to do anything with but I appreciate the response anyway.
[toc] | [prev] | [next] | [standalone]
| From | Swifty <steve.j.swift@gmail.com> |
|---|---|
| Date | 2012-02-04 08:56 +0000 |
| Message-ID | <gdspi7d1fnt81q2ohupeumu6vjjj6erefg@4ax.com> |
| In reply to | #11185 |
On Fri, 03 Feb 2012 22:33:02 -0600, dennism3@dennism3.invalid (Dennis M) wrote: >Yeah I'm fully aware of that. I was counting on people not wanting to make >the effort to turn off JS if they can come back in a day or two and submit. Depending on your audience, you could suppress the submission by default and enable it with JavaScript Mon-Fri. This would eliminate cheating, at the risk of alienating people who run with JavaScript off. The people who routinely turn JavaScript off is one of the worlds smallest minorities, so it will probably be a few years before disenfranchising them becomes a crime. -- Steve Swift http://www.swiftys.org.uk/swifty.html http://www.ringers.org.uk
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
|---|---|
| Date | 2012-02-04 09:11 +0000 |
| Message-ID | <Xns9FEF67A993785eejj99@194.109.133.133> |
| In reply to | #11186 |
Swifty wrote on 04 feb 2012 in comp.lang.javascript:
> On Fri, 03 Feb 2012 22:33:02 -0600, dennism3@dennism3.invalid (Dennis
> M) wrote:
>
>>Yeah I'm fully aware of that. I was counting on people not wanting to
>>make the effort to turn off JS if they can come back in a day or two
>>and submit.
>
> Depending on your audience, you could suppress the submission by
> default and enable it with JavaScript Mon-Fri.
>
> This would eliminate cheating, at the risk of alienating people who
> run with JavaScript off.
>
> The people who routinely turn JavaScript off is one of the worlds
> smallest minorities, so it will probably be a few years before
> disenfranchising them becomes a crime.
One could turn a blind eye to that,
or is that considered discrimination in some jurisdictions?
=============
However, such things should DEFINITELY be done serverside!!!
Serverside Javascript is a good possibility:
<%
d = new Date();
if (d.getDay()==6) { //Saturday in server timezone
%>
<b>Buy our Saturday Socks!</b>
<%
};
%>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <reply1205@merlyn.demon.co.uk> |
|---|---|
| Date | 2012-02-05 17:50 +0000 |
| Message-ID | <bsJpiULwFsLPFw$e@invalid.uk.co.demon.merlyn.invalid> |
| In reply to | #11187 |
In comp.lang.javascript message <Xns9FEF67A993785eejj99@194.109.133.133>
, Sat, 4 Feb 2012 09:11:25, Evertjan. <exjxw.hannivoort@interxnl.net>
posted:
>if (d.getDay()==6) { //Saturday in server timezone
Misuse of the term "time zone".
The expression d.getDay()%6 detects the Western working week.
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Website <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm
Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
|---|---|
| Date | 2012-02-06 11:22 +0000 |
| Message-ID | <Xns9FF17DCF3F84Deejj99@194.109.133.133> |
| In reply to | #11202 |
Dr J R Stockton wrote on 05 feb 2012 in comp.lang.javascript:
> In comp.lang.javascript message <Xns9FEF67A993785eejj99@194.109.133.133>
> , Sat, 4 Feb 2012 09:11:25, Evertjan. <exjxw.hannivoort@interxnl.net>
> posted:
>
>>if (d.getDay()==6) { //Saturday in server timezone
>
> Misuse of the term "time zone".
Happy misuse to show the difference between:
server-time zone and server time-zone.
> The expression d.getDay()%6 detects the Western working week.
Yes!
for (var i=0; i<7; i++)
document.write(i + " " + (0===i%6) + "<br>");
while this does not work as intended:
for (i=0;i<7;i++)
document.write(i + " " + 0===i%6 + "<br>");
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <reply1206@merlyn.demon.co.uk> |
|---|---|
| Date | 2012-02-07 22:17 +0000 |
| Message-ID | <hasH$FI4LaMPFwi2@invalid.uk.co.demon.merlyn.invalid> |
| In reply to | #11205 |
In comp.lang.javascript message <Xns9FF17DCF3F84Deejj99@194.109.133.133>
, Mon, 6 Feb 2012 11:22:03, Evertjan. <exjxw.hannivoort@interxnl.net>
posted:
>Dr J R Stockton wrote on 05 feb 2012 in comp.lang.javascript:
>
>> In comp.lang.javascript message <Xns9FEF67A993785eejj99@194.109.133.133>
>> , Sat, 4 Feb 2012 09:11:25, Evertjan. <exjxw.hannivoort@interxnl.net>
>> posted:
>>
>>>if (d.getDay()==6) { //Saturday in server timezone
>>
>> Misuse of the term "time zone".
>
>Happy misuse to show the difference between:
>
>server-time zone and server time-zone.
NO, that is another matter entirely.
The true meaning of "time zone" is "the set of places, wet or dry, which
all have the same difference from GMT except perhaps in their local
Summer" = "time zone" refers to "Standard Time".
The JavaScript Date Object's getTimezoneOffset is wrongly named; should
be getTimeOffset.
Those who remember the beginning of "'—And He Built a Crooked House—'"
will not be surprised.
>> The expression d.getDay()%6 detects the Western working week.
>
>Yes!
>
>for (var i=0; i<7; i++)
> document.write(i + " " + (0===i%6) + "<br>");
>
>while this does not work as intended:
>
>for (i=0;i<7;i++)
> document.write(i + " " + 0===i%6 + "<br>");
True. But it will rarely be necessary to list the classification of
days 0 to 6. Both of the following work well (but note that to detect
the working week requires the opposite answer).
X = !!(i%6)
i + " " + X + "<br>"
i + " " + !!(i%6) + "<br>"
--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk DOS 3.3 6.20 ; WinXP.
Web <http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
|---|---|
| Date | 2012-02-08 08:56 +0000 |
| Message-ID | <Xns9FF3652BE2669eejj99@194.109.133.133> |
| In reply to | #11480 |
Dr J R Stockton wrote on 07 feb 2012 in comp.lang.javascript:
> In comp.lang.javascript message
> <Xns9FF17DCF3F84Deejj99@194.109.133.133> , Mon, 6 Feb 2012 11:22:03,
> Evertjan. <exjxw.hannivoort@interxnl.net> posted:
>
>>Dr J R Stockton wrote on 05 feb 2012 in comp.lang.javascript:
>>
>>> In comp.lang.javascript message
>>> <Xns9FEF67A993785eejj99@194.109.133.133> , Sat, 4 Feb 2012 09:11:25,
>>> Evertjan. <exjxw.hannivoort@interxnl.net> posted:
>>>
>>>>if (d.getDay()==6) { //Saturday in server timezone
>>>
>>> Misuse of the term "time zone".
>>
>>Happy misuse to show the difference between:
>>
>>server-time zone and server time-zone.
>
> NO, that is another matter entirely.
>
> The true meaning of "time zone" is "the set of places, wet or dry,
> which all have the same difference from GMT except perhaps in their
> local Summer" = "time zone" refers to "Standard Time".
That may be so in the/your definition, John.
However,
Calling it "server-time setting" would be nice, whatever time correcty or
incorrecty it is set, but one also needs the summer-time definition of that
setting. If the server in Honolulu is set to Stockholm time does not matter
to the programmer as long as she/he knows the setting.
> The JavaScript Date Object's getTimezoneOffset is wrongly named;
> should be getTimeOffset.
That is the nice thing about serverside programming, you do not talk to
strangers, just to your own machine, and such errors are just a minor
nucance only to a purist like you and me.
Strange is, that in asp-vbs you cannot get this value,
so often I end a vbs-coded page with this js-derived variable,
to get to GMT,
[while keeping the fallacious naming]:
<% ' VBS
nowGMT = DateAdd("h", TimezoneOffset, Now)
%>
<script language='javascript' runat='server'>
var TimezoneOffset = new Date().getTimezoneOffset()/60;
</script>
[not for John, but for some of the others:]
Remember the runat-codes run before the main code.
===
We, John, discussed somethig like this on 05 sep 2007, among other times
in this NG, when you still thought:
"It's a good idea to read the newsgroup c.l.j and its FAQ. See below."
<http://bytes.com/topic/javascript/answers/703445-getting-gmt-particular-
format>
===
> Those who remember the beginning of "'ā€"And He Built a Crooked
> Houseā€"'" will not be surprised.
I don't, both.
> [..]
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Date | 2012-02-08 09:22 -0800 |
| Message-ID | <6ob5j7p41nh2g1ear54jbkflh2r5q7umqf@4ax.com> |
| In reply to | #11492 |
On 08 Feb 2012 08:56:44 GMT, "Evertjan."
<exjxw.hannivoort@interxnl.net> wrote:
>Dr J R Stockton wrote on 07 feb 2012 in comp.lang.javascript:
[snip]
>> Those who remember the beginning of "'â€"And He Built a Crooked
>> Houseâ€"'" will not be surprised.
>
>I don't, both.
It is a classic short story by Heinlein. It is very good, and
the opening is very excellent.
Sincerely,
Gene Wirchenko
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
|---|---|
| Date | 2012-02-09 16:49 +0000 |
| Message-ID | <Xns9FF4B564DB903eejj99@194.109.133.133> |
| In reply to | #11507 |
Gene Wirchenko wrote on 08 feb 2012 in comp.lang.javascript: >>> Those who remember the beginning of "'ƒ "And He Built a Crooked >>> Houseƒ "'" will not be surprised. >> >>I don't, both. > > It is a classic short story by Heinlein. It is very good, and > the opening is very excellent. I am not so easily surprized. I rerad all that could be read of his stories in the 50s, but do not remember all the titles. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <reply1206@merlyn.demon.co.uk> |
|---|---|
| Date | 2012-02-09 18:53 +0000 |
| Message-ID | <xBrzJIIgYBNPFw5F@invalid.uk.co.demon.merlyn.invalid> |
| In reply to | #11492 |
In comp.lang.javascript message <Xns9FF3652BE2669eejj99@194.109.133.133>
, Wed, 8 Feb 2012 08:56:44, Evertjan. <exjxw.hannivoort@interxnl.net>
posted:
>Dr J R Stockton wrote on 07 feb 2012 in comp.lang.javascript:
>
>> In comp.lang.javascript message
>> <Xns9FF17DCF3F84Deejj99@194.109.133.133> , Mon, 6 Feb 2012 11:22:03,
>> Evertjan. <exjxw.hannivoort@interxnl.net> posted:
>>
>>>Dr J R Stockton wrote on 05 feb 2012 in comp.lang.javascript:
>>>
>>>> In comp.lang.javascript message
>>>> <Xns9FEF67A993785eejj99@194.109.133.133> , Sat, 4 Feb 2012 09:11:25,
>>>> Evertjan. <exjxw.hannivoort@interxnl.net> posted:
>>>>
>>>>>if (d.getDay()==6) { //Saturday in server timezone
>>>>
>>>> Misuse of the term "time zone".
>>>
>>>Happy misuse to show the difference between:
>>>
>>>server-time zone and server time-zone.
>>
>> NO, that is another matter entirely.
>>
>> The true meaning of "time zone" is "the set of places, wet or dry,
>> which all have the same difference from GMT except perhaps in their
>> local Summer" = "time zone" refers to "Standard Time".
>
>That may be so in the/your definition, John.
Wikipedia says : "Een tijdzone is een gebied op aarde met gelijke
(standaard)tijd." - and I leave it to you to add the missing space.
Search the page for "zomer" - the first occurrence is wrong and the last
four are off-topic.
It also says "Als er in een land zomertijd gebruikt wordt, kan
standaardtijd verwijzen naar de wintertijd."
Even the Americans sometimes get it right - *Mountain Standard Time* is
used in Winter and Mountain Daylight Time in Summer. But what they use
during summer nights is not lexically obvious.
>> Those who remember the beginning of "'â€"And He Built a Crooked
>> Houseâ€"'" will not be surprised.
>
>I don't, both.
Well. you can read about it at
<http://fr.wikipedia.org/wiki/La_Maison_biscornue_(nouvelle)> or in the
obvious alternative. Apparently nl.wikipedia ignores it. Hut you need
Heinlein's original to see my point. Recommended - a short classic.
Servers on the world-wide Internet ought to be set to GMT, or UTC if
they can handle it. But I recall using the news server of a Californian
company with the NewNews protocol, and it became obvious that it was
"keeping" Local Civil Time (LCT) - or at least using GMT during part of
the year and being altered by an hour in Spring and Autumn.
FYI, I still want to locate the definitely definitive definition of the
chosen Lunar Correction expression in Clavius's Opera Mathematica V.
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Website <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm
Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
|---|---|
| Date | 2012-02-10 08:13 +0000 |
| Message-ID | <Xns9FF55DCD845FEeejj99@194.109.133.133> |
| In reply to | #11527 |
Dr J R Stockton wrote on 09 feb 2012 in comp.lang.javascript: > FYI, I still want to locate the definitely definitive definition of the > chosen Lunar Correction expression in Clavius's Opera Mathematica V. I do not quite understand the ultrafinal implications of a "definitely definitive definition". Would that require indefinite validity? However, next to your own demonic publications and a nice scan at: <http://mathematics.library.nd.edu/clavius/> this might be of help in your lunar if not lunatic quest: Lessons from reading Clavius by Anders O. F. Hendrickson <http://www.cord.edu/faculty/ahendric/presentations/PittsburghClavius.pdf> -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <reply1206@merlyn.demon.co.uk> |
|---|---|
| Date | 2012-02-11 23:12 +0000 |
| Message-ID | <rvLVCcJgXvNPFw5j@invalid.uk.co.demon.merlyn.invalid> |
| In reply to | #11538 |
In comp.lang.javascript message <Xns9FF55DCD845FEeejj99@194.109.133.133> , Fri, 10 Feb 2012 08:13:17, Evertjan. <exjxw.hannivoort@interxnl.net> posted: >Dr J R Stockton wrote on 09 feb 2012 in comp.lang.javascript: > >> FYI, I still want to locate the definitely definitive definition of the >> chosen Lunar Correction expression in Clavius's Opera Mathematica V. > >I do not quite understand the ultrafinal implications >of a "definitely definitive definition". >Would that require indefinite validity? The Papal Bull defines the Gregorian Calendar /in perpetuo/, and Clavius was authorised to do likewise. If the Civil Calendar is changed, it will no longer be Gregorian. If calendar change is in the air, the Roman Catholic Church should be careful about the naming of Popes. >However, next to your own demonic publications >and a nice scan at: ><http://mathematics.library.nd.edu/clavius/> I know of that. But I have a better copy, which someone let me have by FTP. As it is 383,527,728 bytes, I can only AFAIK send it to someone with an open FTP server and that amount of spare space. >this might be of help in your lunar if not lunatic quest: > >Lessons from reading Clavius >by Anders O. F. Hendrickson ><http://www.cord.edu/faculty/ahendric/presentations/PittsburghClavius.pdf> Interesting, but of no direct use. I have all of that, implemented literally using JavaScript, from the Six Canons, on my site. Its "Table of the equation of the perpetual cycle of Epacts", on page 22/51, does not even cover one the full range of letters (which takes, as can readily be seen from a different but functionally equivalent copy in the Book of Common Prayer of the Church of England, about 6500 years, and I think needs several cycles to repeat exactly (300,000 years?)). I need the authority for the known algorithm for generating that table. The Table takes one step along the cycle of about 30 letters for every Leap Year omitted in the Gregorian Calendar (3 per 400 years), and one step back - the Lunar Correction - 8 times per 2500 years. That can be verified by inspection to be correct for 1583 to 4999 (1582 seems an error - on Clavius' part : it is so in p.22 of the Calendarium - 1582 should precede -10 days). There is no current doubt that the 8/2500 is perpetual, but that lack of doubt may be wrong. Clavius considered better alternatives in Opera Mathematica V, and that is why the fully definitive statement (if any) is needed. You might also like <http://www.merlyn.demon.co.uk/euler327.htm>. -- (c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05. Website <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
[toc] | [prev] | [next] | [standalone]
| From | John G Harris <john@nospam.demon.co.uk> |
|---|---|
| Date | 2012-02-10 16:02 +0000 |
| Message-ID | <mGOVL1Hs+TNPFwak@J.A830F0FF37FB96852AD08924D9443D28E23ED5CD> |
| In reply to | #11527 |
On Thu, 9 Feb 2012 at 18:53:20, in comp.lang.javascript, Dr J R Stockton wrote: <snip> >Servers on the world-wide Internet ought to be set to GMT, or UTC if >they can handle it. <snip> Do you really mean GMT ? The last I heard it takes several months to determine the GMT time for a given atomic/UTC time. Also, if time servers are tied to national standards they will not be serving GMT and are unlikely to be serving a current guess at it. John -- John Harris
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <reply1206@merlyn.demon.co.uk> |
|---|---|
| Date | 2012-02-11 23:24 +0000 |
| Message-ID | <nPOWa5K2ivNPFwat@invalid.uk.co.demon.merlyn.invalid> |
| In reply to | #11567 |
In comp.lang.javascript message <mGOVL1Hs+TNPFwak@J.A830F0FF37FB96852AD0 8924D9443D28E23ED5CD>, Fri, 10 Feb 2012 16:02:52, John G Harris <john@nospam.demon.co.uk> posted: >On Thu, 9 Feb 2012 at 18:53:20, in comp.lang.javascript, Dr J R Stockton >wrote: > > <snip> >>Servers on the world-wide Internet ought to be set to GMT, or UTC if >>they can handle it. > <snip> > >Do you really mean GMT ? The last I heard it takes several months to >determine the GMT time for a given atomic/UTC time. Also, if time >servers are tied to national standards they will not be serving GMT and >are unlikely to be serving a current guess at it. I do. They should be set in close agreement, and they should use days of 24 hours of 60 minutes and 60 seconds only, as most computers ignore leap seconds. GMT is not a national standard, but a world-wide one. It's not necessary for the GMT used to be very close to what, a few months later, may be decided upon as what it ought to have been. An alternative, however, would be for then to ignore years ... hours, and all to use a common scale of SI seconds. As well as being at fault in the naming getTimezoneOffset, it also errs in using UTC within the names of Date methods, since it ignores Leap Seconds. (in any case, there should be only one Method for each of the existing pairs like getHours & getUTChours - see js-dobj2.htm & DATE2. -- (c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05. Website <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
[toc] | [prev] | [next] | [standalone]
| From | Andrew Poulos <ap_prog@hotmail.com> |
|---|---|
| Date | 2012-02-04 20:13 +1100 |
| Message-ID | <pcmdnSEXZ8Ala7HSnZ2dnUVZ_qydnZ2d@westnet.com.au> |
| In reply to | #11186 |
On 4/02/2012 7:56 PM, Swifty wrote: > On Fri, 03 Feb 2012 22:33:02 -0600, dennism3@dennism3.invalid (Dennis > M) wrote: > >> Yeah I'm fully aware of that. I was counting on people not wanting to make >> the effort to turn off JS if they can come back in a day or two and submit. > > Depending on your audience, you could suppress the submission by > default and enable it with JavaScript Mon-Fri. > > This would eliminate cheating, at the risk of alienating people who > run with JavaScript off. > > The people who routinely turn JavaScript off is one of the worlds > smallest minorities, so it will probably be a few years before > disenfranchising them becomes a crime. Ha, that's what you think. What about the hordes of people that run NoScript and other similar add-ons? Andrew Poulos
[toc] | [prev] | [next] | [standalone]
| From | Swifty <steve.j.swift@gmail.com> |
|---|---|
| Date | 2012-02-05 10:01 +0000 |
| Message-ID | <5hksi7pkf35pcmrbm8i6nuavfj2anaa5d3@4ax.com> |
| In reply to | #11188 |
On Sat, 04 Feb 2012 20:13:20 +1100, Andrew Poulos <ap_prog@hotmail.com> wrote: >What about the hordes of people that run >NoScript and other similar add-ons? Would you care to guess that as a percentage of the people who use the web? Lest this degenerate into repartee, or worse... Is there anything that is measuring the proportion of visitors who have JavaScript disabled? I cannot do this as my visitors are strongly selected by the organisation that I work for, and our users are unsupported if they disable JavaScript. I chose my words carefully; we have the choice of disabling it, but then you're on your own if webpages don't work. -- Steve Swift http://www.swiftys.org.uk/swifty.html http://www.ringers.org.uk
[toc] | [prev] | [next] | [standalone]
| From | Andrew Poulos <ap_prog@hotmail.com> |
|---|---|
| Date | 2012-02-06 08:00 +1100 |
| Message-ID | <U-2dnaYNoblBcLPSnZ2dnUVZ_vadnZ2d@westnet.com.au> |
| In reply to | #11197 |
On 5/02/2012 9:01 PM, Swifty wrote: > On Sat, 04 Feb 2012 20:13:20 +1100, Andrew Poulos > <ap_prog@hotmail.com> wrote: > >> What about the hordes of people that run >> NoScript and other similar add-ons? > > Would you care to guess that as a percentage of the people who use the > web? In my household, its 100%. > Lest this degenerate into repartee, or worse... Is there anything that > is measuring the proportion of visitors who have JavaScript disabled? Don't know. > I cannot do this as my visitors are strongly selected by the > organisation that I work for, and our users are unsupported if they > disable JavaScript. I chose my words carefully; we have the choice of > disabling it, but then you're on your own if webpages don't work. Can't do what? Andrew Poulos
[toc] | [prev] | [next] | [standalone]
| From | Swifty <steve.j.swift@gmail.com> |
|---|---|
| Date | 2012-02-06 12:20 +0000 |
| Message-ID | <u2hvi7l1qvkt6bbub6n90po6m94te0e18v@4ax.com> |
| In reply to | #11198 |
On Mon, 06 Feb 2012 08:00:01 +1100, Andrew Poulos <ap_prog@hotmail.com> wrote: >Can't do what? Amongst other things, I cannot accurately gauge the proportion of web users who are running with javascript off, as my webpages are predominately visited by work colleagues, and our corporate default is "Javascript ON", so my samples would be heavily biased. The vast bulk of my pages are generated by CGI scripts, so I presume it would be a trivial exercise to measure the proportion that have JavaScript enabled. I'd just need to find some way of leaving a "JavaScript is on mark" in the environment that my CGI scripts could interrogate. -- Steve Swift http://www.swiftys.org.uk/swifty.html http://www.ringers.org.uk
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.javascript
csiph-web