Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 48

Thread: OT, sickening goof up..

  1. #11
    Join Date
    Jun 2008
    Location
    Yorkshire, Centre of the known Universe
    Posts
    1,807

    Default

    Used to work for a company that installed, serviced and repaired expensive Danish Hi-Fi and Tv's. With the increasing use of remote functions on the equipment it became a nightmare trying to instruct a customer (Invariably the female half of the partnership due to the time of the day for installation) in the amount of time available, how to drive it.

    One of the punch lines I always imparted before leaving was " Read the manual cos we'll be ringing in a couple of days and asking questions on it" After a suitable silence period, the ice was broken by a chuckle. This was then followed by the MOST important instruction, "IF you get tied up with all the command settings and it goes mammaries up, switch off and unplug the mains, count to ten, replug and start again, the equipment will have reset to manufacturers original settings. This would be the first thing I would do if called out on a service call and that would cost you £70"

    Surprising how many could achieve remote programming via a quick telephone call.

    Regards Ian.
    You might not like what I say,but that doesn't mean I'm wrong.

  2. #12
    Join Date
    Feb 2009
    Location
    West Virginia
    Posts
    969

    Default

    Don't ya just hate it when things like that happen? Our aluminum smelter starts all of the melt pots at '0'. There are 84 pots in each room, but it sounds like an odd number. Since everything electrically and instrumentation wise is balanced, some guys get confused as to where to go to do their particular work. Real PIA once in a while if it's a new guy or a tired hand, though I am on site and don't have to travel far to clear up the confusion. But still...

  3. #13
    Join Date
    May 2003
    Location
    52N 122W Western Kanuckistan
    Posts
    39,747

    Default

    It's a consequence of using computers and lazy programmers. In the world of computers zero is a valid number. When counting and assigning quantities in a computer it is normal practice to use "arrays" of numbers. These arrays start at zero by default. In fact, in computer programming wonderland it became necessary to differentiate between the value of zero and the value nothing. So a new designation was invented to describe a value holder that contains no value. It is NAN which stands for "Not A Number".
    L&S Industries sells grinding wheels Made In USA, all types and sizes. Also Superabrasive diamond and CBN wheels, no extra cost for custom wheels, Made in Canada. 10% discount for HSM members. Call Janet 250-392-3393 08:00-12:00, 13:00-15:00 M-F Pacific Paid Ad, updated Apr 01 2013
    update 2013/3/31 . Free software for calculating bolt circles and similar: Origin now settable to bottom left! All values positive. Click Here

  4. #14
    Join Date
    Mar 2010
    Location
    Chicago, IL
    Posts
    1,297

    Default

    Quote Originally Posted by The Artful Bodger
    46 hours of travel to do a job that took 30 seconds then the same to get home again, but I did get to see a lot of movies that week.
    How much does a small digital camera cost these days?? More than the alphabet can make it 'round the world on the internet!

  5. #15
    Join Date
    Mar 2008
    Location
    Vermont
    Posts
    588

    Default

    Quote Originally Posted by Arthur.Marks
    How much does a small digital camera cost these days?? More than the alphabet can make it 'round the world on the internet!
    That wouldn't help much if the picture was of the plug going into # 1 instead of #0, though.

  6. #16
    Join Date
    Mar 2007
    Location
    Huntsville, AL
    Posts
    1,003

    Default

    Hi Evan,

    Your explanation above is a mischaracterization. The definition of NaN comes from the standardization of floating point number formats and calculation errors in IEEE 754. NaN is returned when certain calculations overflow such as division by by zero. It was never associated with array indexing and not developed to differentiate between zero and no-data.

    Normally a sentinel value is designated in the context of the problem for describing a no-data condition. NaN, NIL , and NULL are all used occasionally as sentinels for non-existent data but of the three, it's an "off-label" use for NaN because it can conflict with the detection and handling of floating point error conditions.

    Additionally, arrays that are indexed from zero are only common in languages derived from C. Fortran and its ilk use 1 based array indexes.

    Both zero and one based indexes simplify certain problems and the language runtimes deal with the consequences of the choice made by the programming language's designers. It's usually wise not to show zero based indexes to end users even if the program uses them internally since zero based indexes tend to confuse users.

    While you've got the history and derivation wrong for NaN, I do agree with you that you can count on programmers to be lazy. . .

  7. #17
    Join Date
    Jan 2002
    Location
    Huntsville Ala
    Posts
    4,786

    Default

    Quote Originally Posted by Evan
    ....
    ... in computer programming wonderland it became necessary to differentiate between the value of zero and the value nothing. So a new designation was invented to describe a value holder that contains no value. It is NAN which stands for "Not A Number".
    Never heard that one before. I've only heard of "null".

    Or in the COBOL world, one can use either "low value" or "high value", depending on how you want things to sort out.

  8. #18
    Join Date
    Mar 2010
    Location
    New England
    Posts
    317

    Default

    Quote Originally Posted by Evan
    It's a consequence of using computers and lazy programmers. In the world of computers zero is a valid number. When counting and assigning quantities in a computer it is normal practice to use "arrays" of numbers. These arrays start at zero by default. In fact, in computer programming wonderland it became necessary to differentiate between the value of zero and the value nothing. So a new designation was invented to describe a value holder that contains no value. It is NAN which stands for "Not A Number".

    Termed, as you know, "zero-based counting" - and a frequent source of programming errors as the mind slips in and out of zero-based versus one-based counting.

    A colleague once opined, "All good programmers are off by one" - a wry comment on the phenomenon.
    Last edited by tlfamm; 12-09-2010 at 10:44 AM.

  9. #19
    Join Date
    Oct 2004
    Location
    Northeast Oh-hi-Owe
    Posts
    1,322

    Default

    Quote Originally Posted by bruto
    That wouldn't help much if the picture was of the plug going into # 1 instead of #0, though.
    Maybe maybe not and over all view sent may of shown 0 was the first socket and the corrective action could of been relaid. Also a few pictures of all the connections PRIOR to unhooking could of been used as comparators when re hooking all.
    Wow... where did the time go. I could of swore I was only out there for an hour.

  10. #20
    Join Date
    May 2003
    Location
    52N 122W Western Kanuckistan
    Posts
    39,747

    Default

    Your explanation above is a mischaracterization. The definition of NaN comes from the standardization of floating point number formats and calculation errors in IEEE 754. NaN is returned when certain calculations overflow such as division by by zero. It was never associated with array indexing and not developed to differentiate between zero and no-data.
    I didn't say it had anything to do with array indexing. However, it most certainly does have to do with distinguishing between zero, null and an undefined numeric value. NaN stands for the latter and is not associated with calculation errors. Note that Nan does not represent infinity, either positive or negative but is truly undefined. It also does not represent overflow or underflow since those may be assigned values of infinity or zero or may raise exceptions that are not related to Nan. NaN cannot be compared even to itself since it is a non value for a numeric value data type. It is use to indicate an undefined value.

    Normally a sentinel value is designated in the context of the problem for describing a no-data condition. NaN, NIL , and NULL are all used occasionally as sentinels for non-existent data but of the three, it's an "off-label" use for NaN because it can conflict with the detection and handling of floating point error conditions.
    NaN as a sentinel value differs from the NaN as an undefined value in how the value is represented in binary. The two have only the name in common. The default when assigning NaN is to set the fraction bit non zero which designates NaN as an undefined value, not a signaling value.

    Additionally, arrays that are indexed from zero are only common in languages derived from C. Fortran and its ilk use 1 based array indexes.
    C wasn't introduced until 1972. BASIC used zero based array indexes when it was first introduced in 1964 and LISP used them in around 1958. Perl, Ruby and Java also use zero based array indexing. In fact, the majority of computer languages use zero based indexing, not just for arrays but for indexing in general such as character positions in string handling.


    Both zero and one based indexes simplify certain problems and the language runtimes deal with the consequences of the choice made by the programming language's designers. It's usually wise not to show zero based indexes to end users even if the program uses them internally since zero based indexes tend to confuse users.
    Agreed.
    L&S Industries sells grinding wheels Made In USA, all types and sizes. Also Superabrasive diamond and CBN wheels, no extra cost for custom wheels, Made in Canada. 10% discount for HSM members. Call Janet 250-392-3393 08:00-12:00, 13:00-15:00 M-F Pacific Paid Ad, updated Apr 01 2013
    update 2013/3/31 . Free software for calculating bolt circles and similar: Origin now settable to bottom left! All values positive. Click Here

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •