Prev: simple question power, resistance, current, etc
Next: OBSERVATIONS: Einstein's gravitational redshift measured with unprecedented precision
From: jmfbahciv on 22 Feb 2010 09:46 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 22 Feb 2010 09:35 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: jmfbahciv on 22 Feb 2010 09:50 Ruud Harmsen wrote: > Sun, 21 Feb 2010 17:01:46 -0000: jimp(a)specsol.spam.sux.com: in > sci.lang: > >> In sci.physics jmfbahciv <jmfbahciv(a)aol> wrote: >>> Andrew Usher wrote: >>>> Mike Barnes wrote: >>>>> Adam Funk <a24061(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. >>>> >>> Where do you get that idea? >>> >>> /BAH >>From crontab and array indexes. > > C. FORTRAN. ;-) If you make the stated assumption, you're going to have bugs. /BAH
From: J. Clarke on 22 Feb 2010 10:24 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.
From: Joachim Pense on 22 Feb 2010 11:02
jmfbahciv (in sci.lang): > 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. > Neither Pascal. Joachim -- My favourite # 88: <http://www.youtube.com/watch?v=54XRNQ2C2x0> My favourite # 24: <http://www.youtube.com/watch?v=bz3EkkdFwvU> |