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

Re: PMplanet has a new home

by Gavin (Archbishop)
on Feb 03, 2010 at 11:49 UTC ( [id://821131]=note: print w/replies, xml ) Need Help??


in reply to PMplanet has a new home

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

It would be nice to see all Monks displayed as and when they are online and I hope others take the opportunity to add their details so that they can be included. Perhaps a link could be added to Leftovers.

Perhaps someone can help with two problems that I have regarding the map display.

  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?.
  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?.

Replies are listed 'Best First'.
Re^2: PMplanet has a new home
by bart (Canon) on Feb 03, 2010 at 12:38 UTC

    ++ 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).

Re^2: PMplanet has a new home
by ambrus (Abbot) on Feb 03, 2010 at 13:08 UTC

    As for why you don't appear in the Other Users, the FAQ About the Other Users Nodelet explains that the contents of Other Users is cached, and regenerated only every few minites, so you might not appear immediately. The nodelet also shows the time that cached copy was generated below the list. The two webservers don't have much to do with this. (In addittion, the map itself is regenerated only every few minutes which adds an addittional delay.)

      ambrus Don't think it can be a "cache" issue regarding delay from login to appearing in Other Users as I have been logged in for a couple of hours and appear to come and go from Other Users during that time, eg at the time of writing I do not appear in Other Users.

        "Other users" defines you being online by activity, not by having hit "log in" but not "log out". I never hit log out, but I haven't been here continiously for the last 10 years, either.

        (Wow, it's really been 10 years?)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://821131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-16 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found