Welcome to the NavList Message Boards.

NavList:

A Community Devoted to the Preservation and Practice of Celestial Navigation and Other Methods of Traditional Wayfinding

Compose Your Message

Message:αβγ
Message:abc
Add Images & Files
    Name or NavList Code:
    Email:
       
    Reply
    Re: Henning Umland's long term almanac. Is it wrong?
    From: Frank Reed
    Date: 2016 Feb 23, 10:22 -0800

    Yes, something is wrong. Umland's code has been skunked by the evolution of javascript. It's an example of a "legacy code" problem --or less generously, it was built wrong in the first place. He defined a mathematical function in his code named "trunc" which has in recent years become the name of a standard javascript math function. This means that Umland's code is over-ruled by the built-in function which does something entirely different. This can easily be fixed by changing the name of Umland's function to something less obvious like "inRange360" which also more aptly describes the purpose of that function. I am attaching a copy of this code, modified in this way. You can run it right here on the NavList message boards, or you can download the file and place it on your computer desktop and run it anytime, even when you have no Internet connection. Another way to achieve the same thing, and to confirm the proper behavior, is to visit that original web page in Internet Explorer, or any browser which does not yet employ the most recent standards for javascript (Microsoft's IE tends to be much more conservative since they target business users who often have legacy code like this).

    You could also try my online Nautical Almanac data tool.

    Frank Reed



    File:



       
    Reply
    Browse Files

    Drop Files

    NavList

    What is NavList?

    Get a NavList ID Code

    Name:
    (please, no nicknames or handles)
    Email:
    Do you want to receive all group messages by email?
    Yes No

    A NavList ID Code guarantees your identity in NavList posts and allows faster posting of messages.

    Retrieve a NavList ID Code

    Enter the email address associated with your NavList messages. Your NavList code will be emailed to you immediately.
    Email:

    Email Settings

    NavList ID Code:

    Custom Index

    Subject:
    Author:
    Start date: (yyyymm dd)
    End date: (yyyymm dd)

    Visit this site
    Visit this site
    Visit this site
    Visit this site
    Visit this site
    Visit this site