From: Adam Funk on
On 2010-02-21, António Marques wrote:

> On Feb 21, 1:09 am, Andrew Usher <k_over_hb...(a)yahoo.com> wrote:

>> But 0 is the start of computer indexing - at least in real programs. 0
>> = Sunday.
>
> Ahem. In low level, pointer oriented languages such as C and its
> family. And those who chose to imitate it.

From Verity Stob's "Thirteen Ways to Loathe VB":

4. Another thing about arrays. The index of the first element is 0,
unless it is set to 1 by a directive.

5. But there are also collections, modern object-oriented versions
of arrays. And the first element of these is usually 1, unless
it happens to be 0. Sometimes it is 0 and sometimes it is 1,
depending on where you found it. Do you feel lucky, punk? Well,
do ya?


--
I don't know what they have to say
It makes no difference anyway;
Whatever it is, I'm against it! [Prof. Wagstaff]
From: J. Clarke on
On 2/22/2010 3:34 AM, R H Draney wrote:
> Transfer Principle filted:
>>
>> The notion of calendar reform has appeared on sci.math from time
>> to time. Some people may argue that the debate between those who
>> defend the standard Gregorian calendar and those who wish to
>> reform it is analogous to the debate between the standard set
>> theorists and the so-called "cranks." I'd argue that calendar
>> reform would fit Underwood Dudley's "eccentric" category more
>> than the "crank" category.
>
> If you want a crank, find the person who came up with Daylight Saving Time....
>
> Then find his successor who decided that DST should apply for more of the year
> than "Standard" time....r

And if they are still alive, feed them to the pigs, slowly.


From: jmfbahciv on
Mike Barnes wrote:
> Ant�nio Marques <entonio(a)gmail.com>:
>> On Feb 21, 1:09 am, Andrew Usher <k_over_hb...(a)yahoo.com> wrote:
>>> Mike Barnes wrote:
>>>> Adam Funk <a24...(a)ducksburg.com>:
>>>> >From man 5 crontab:
>>>>> When specifying day of week, both day 0 and day 7 will be
>>>>> considered Sunday. BSD and AT&T seem to disagree about this.
>>>> But they presumably agree that day one is Monday.
>>> But 0 is the start of computer indexing - at least in real programs. 0
>>> = Sunday.
>> Ahem. In low level, pointer oriented languages such as C and its
>> family. And those who chose to imitate it.
>
> But not in the first language I used when working for a living (COBOL).
>
Nor FORTRAN DO statements. Most people start at 1. You can also
write an off-by-1 bug in loops depending on whether you start the loop
with 0 or 1.

/BAH
From: Peter T. Daniels on
On Feb 22, 8:05 am, James Hogg <Jas.H...(a)gOUTmail.com> wrote:
> Peter T. Daniels wrote:
> > On Feb 22, 7:14 am, Cheryl <cperk...(a)mun.ca> wrote:
> >> Peter T. Daniels wrote:
> >>> On Feb 21, 4:17 pm, Cheryl <cperk...(a)mun.ca> wrote:
> >>>> Peter T. Daniels wrote:
> >>>>> On Feb 21, 10:59 am, Mike Barnes <mikebar...(a)bluebottle.com> wrote:
> >>>>>> Yusuf B Gursey <y...(a)theworld.com>:
> >>>>>>> On Feb 19, 11:25 am, Mike Barnes <mikebar...(a)bluebottle.com> wrote:

> >>>>>>>> But I thought that for most people the whole point of Easter is that
> >>>>>>>> they get time off work.
> >>>>>>> not in the US, at least not in my state.
> >>>>>> So I now understand. Here in England, Friday and Monday are holidays,
> >>>>>> and school terms fit around them. That's the problem with Easter. I
> >>>>>> think it's fair to say that many people here would be happy if they
> >>>>>> fixed the dates of the public holidays (e.g. second weekend in April)
> >>>>>> and allowed the holy day to shift as it will. I don't if or why
> >>>>>> disconnecting them would matter to anyone.
> >>>>> That's because you're stuck with a state religion.
> >>>>> In NYC, parking regulations are suspended for just about anyone's
> >>>>> religious holidays.
> >>>> Hey, we get to take some religious holidays (Christmas Day and Good
> >>>> Friday) off work even without a state religion! I'm ecumenical; I'd take
> >>>> ANY religious holidays. I suspect that there's some rule that you have
> >>>> to be a member of the religion in question in order to not work that
> >>>> aren't also legal or secular holidays, but that could be fixed by making
> >>>> them ALL legal holidays. My home province ended up cancelling some of
> >>>> the religious (ie Christian) holidays from the list of legal days off in
> >>>> the interests of increased productivity, but some workers still have the
> >>>> old list embodied in their contracts. Now, of course, some of them get
> >>>> "Mid-March" and "Mid-July" off rather than religious holidays.
> >>> What "religious holiday" does "Mid-July" accommodate?
> >> I was thinking St. George's Day, but when I checked, it was Orangemen's
> >> Day.
>
> > I grew up in a Scotch-Irish Presbyterian church in NYC, and I recall
> > Orangemen's Day as being August 5. I didn't learn what it commemorated
> > until I'd left for college, and was not happy.
>
> 5 August must have been the celebration of the Battle of Otterburn.

Was that some sort of triumph of the Protestants over the locals?

It might have been the only Scotch-Irish congregation in the city,
since one fellow came all the way from Staten Island every Sunday.
From: J. Clarke on
On 2/22/2010 9:46 AM, jmfbahciv wrote:
> Mike Barnes wrote:
>> Ant�nio Marques <entonio(a)gmail.com>:
>>> On Feb 21, 1:09 am, Andrew Usher <k_over_hb...(a)yahoo.com> wrote:
>>>> Mike Barnes wrote:
>>>>> Adam Funk <a24...(a)ducksburg.com>:
>>>>> >From man 5 crontab:
>>>>>> When specifying day of week, both day 0 and day 7 will be
>>>>>> considered Sunday. BSD and AT&T seem to disagree about this.
>>>>> But they presumably agree that day one is Monday.
>>>> But 0 is the start of computer indexing - at least in real programs. 0
>>>> = Sunday.
>>> Ahem. In low level, pointer oriented languages such as C and its
>>> family. And those who chose to imitate it.
>>
>> But not in the first language I used when working for a living (COBOL).
>>
> Nor FORTRAN DO statements. Most people start at 1. You can also
> write an off-by-1 bug in loops depending on whether you start the loop
> with 0 or 1.

And in C and most C-derived languages those off-by-1 bugs abound. I've
never done a formal count but I suspect that half the patches Microsoft
has issued for Windows fix off-by-1 bugs.