Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

++ To all concerned in the development and implementation, an excellent piece of work.

Credit where credit is due: the whole idea, and most of the implementation is all theorbtwo's work. Kudos to him: I do agree with your sentiment.

1. Even though I am logged in sometimes I do not appear in other users and therefore do not show up on the map, any ideas why this may be happening?.

I'm guessing that that is a consequence of the fact that Perlmonks runs on 2 webservers. If your activity here is limited, there is a chance that you're only registered on one webserver (at least for within the last several minutes), and AFAIK their data is not merged. So if Other Users is generated on the other webserver, you won't show up...

As an experiment, try reloading somebody's home node a few times. You'll probably notice his "last here" time jumping between 2 values... possibly far apart.

2. I put my location in the format <!-- location:latitude:-DD.MM.SS,longitude:DD.MM.SS --> in User's Bio: along with other details but for some reason I'm still showing as being on the Isle of Man and not near Newcastle, again any ideas?.

Well, actually, you didn't... The current value on your home node is <!-- location:latitude:-54:58:30N,longitude: 1:24:41W-->. There are at least a few things wrong here:

  • You're using both signed values and N/W. Those ought to be alternatives: using one or the other. BTW The convention is to use a negative value for latitude, for South, not North; and a negative value for West (but that's OK here as a positive value can be thought of as unsigned). Anyway, I don't think the regexes are currently set to capture a combination of the two; and if they were, they'd probably put you in the southern hemisphere...

  • The regexes currently don't accept ":" as a separator. Well, I can fix that.

    update: I think I fixed that. I am planning on making the matching regexes less fragile.

A value that currently ought to be accepted is <!-- location:latitude:54.58.30,longitude: -1.24.41-->.

update (Feb 04, 2010 at 13:40 UTC): I refactored/replaced the regexes, so that parsing should be both more rigid (fewer false matches) and more relaxed (more freedom in format), at the same time. So if you find your location suddenly unexpectedly moved, this is the probable cause. That is the case for jdporter, who moved to somewhere in the Atlantic Ocean, and for broomduster, who moved to the North Pole. They both have 2 HTML comments with coordinates on their home node, and it switched the one it uses. (What is "Xlocation" anyway?)

If you're sure it's something I did wrong, and not you, please let me know.

BTW It'll now show the latitude/longitude that it is using, for Monks on the map, in a tooltip ("title" tag, in HTML).


In reply to Re^2: PMplanet has a new home by bart
in thread PMplanet has a new home by bart

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-03-28 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found