Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
I too have wished to see what kind of global monkular distribution there is, but never bothered, since I know how often the location field in the homenode is meaningless.

But, as an alternative, I'll offer this. I'll create a database of Monk names, latitude and longitudes, and serve that from the stats pages. We can generate that info, from those who are interested in particpating, in the following manner:

In the HTML text of your home page, create a HTML comment:

<!-- Location:latitude=034.00.00,longitude=-084.10.06-->

Update: Note that the first 3 digit group are the minutes. Valid values for this are -179 to 179. The second 2 digits are the minutes, and have valid values of 00 to 59. The third 2 digits are the seconds, and have valid values from 00 to 59. Do not use decimal expressed lat/longs! The parsing code checks for legal values, and will toss out any location tags that are invalid.

North latitudes use positive numbers, South latitudes use negative numbers. East longitudes are positive, West longitudes are negative. The example above is approximately where I live, which is 30 some-odd miles north-east of Atlanta. If you want to be a little less specific where you live, put 0's in the low order digits. The format MUST be [sign]DDD.MM.SS, where DDD=degrees (000-179), MM=minutes (00-59, SS=seconds (00-59). The HTML comment can be anywhere you like in the text, EXCEPT embedded in another HTML comment. Personally, I'd put it at the bottom where you're not likely to tromp over it. Check the significant update checkbox on your homenode. The 'bot will only scan homenodes that appear in that list. This will minimize the server load, and will be checked once a day. If you remove the comment and set the checkbox, I will delete your entry from the database, so you can literally vanish from the face of the earth.

If you're not sure of your latitude and longitude, use MapBlast to locate yourself. It's a pretty decent interface, and you can get near yourself by starting with your ZipCode, or select your country if your non-U.S. Be sure to click the lat/long display in the upper left corner of the map to display the correct format lat/long. The correct format will have a small degree symbol to the right of the first number in both the latitude and longitude.

As soon as I've finished the homenode scanner and created the database (around Thursday, I should expect), I'll post a followup how to get the data. Someone else can write the map overlay stuff. If you do it in Perl or PHP, I'll host on my site, if you like.

--Chris

e-mail jcwren

In reply to (jcwren) RE: Monks' Maps! by jcwren
in thread Monks' Maps! by AgentM

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others musing on the Monastery: (5)
    As of 2014-09-19 02:18 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      How do you remember the number of days in each month?











      Results (129 votes), past polls