As i am watching perlmonks site through out the day, it is very uncomfortable to click the refresh button every time when i come to perlmonks site...from my work

More over my request is to add an auto refresh page atleast every 10 minutes, so that the latest node be visible to me with out extra effort put into it.

Update:- Atleast to seekers of perl wisdom page would add little comfort to me
  • Comment on Add Auto Refresh facility atleast in seekers of perl wisdom

Replies are listed 'Best First'.
Re: Add Auto Refresh facility atleast in seekers of perl wisdom
by castaway (Parson) on Jul 11, 2005 at 13:06 UTC
    I suspect that idea may get classed as "putting unnecessary strain on the server", since when you hit the button, it means you're actually actively reading, but if the page is refreshed for you, most of the time it will probably be happening with no useful result whatsoever..

    You can do this yourself in several ways though, there is an XML ticker showing the newest nodes which you could write a script to grab at intervals.

    Some browsers already have this sort of utility built-in (refresh page at intervals of X minutes).

    You could watch/scrape im2s telnet stream which also reports when new nodes appear.


      Firefox has an extension for reloading pages, of course.

      I think I also saw one once to watch pages for content changes.

      Newest nodes may be a better place to reload...

                      - Ant
                      - Some of my best work - (1 2 3)

Re: Add Auto Refresh facility atleast in seekers of perl wisdom
by grinder (Bishop) on Jul 11, 2005 at 14:05 UTC

    If you want to have a sidebar with the last 24 hours' worth of Newest Nodes, you might want to consider installing my PMNN sidebar.

    It's small, is refreshed reasonably often (about every ten minutes or so), and the more people who use it instead of pounding on Newest Nodes, the less the load on Perlmonks servers. At the current time, the load this represents on my server is below the radar, so feel free to use it.

    - another intruder with the mooring in the heart of the Perl

Re: Add Auto Refresh facility atleast in seekers of perl wisdom
by ktross (Deacon) on Jul 11, 2005 at 13:19 UTC
    You could always add a refresh tag to your free nodelet such as: <meta http-equiv="refresh" content="600">, but it would be annoying if it reloaded while you were typing a reply...
Re: Add Auto Refresh facility atleast in seekers of perl wisdom
by gryphon (Abbot) on Jul 11, 2005 at 15:16 UTC

    Greetings kprasanna_79,

    How about instead of a built-in page refresh, find a good RSS aggregator and subscribe to the Newest Nodes feed. Then you can set in your aggregator exactly how often you want to ping for new nodes along with all the other typical aggregator functions. (If you do this, set your refresh on the node to something odd like 42 minutes or 71 minutes or something.)

    For additional PerlMonks RSS feeds, check out this page.

    You may also want to consider using these feeds as source data for a Perl script using LWP and XML::Simple. Then you'd have the power to do just about anything you can image with the data. Here at work, we have a Perl script that pings for newest nodes every so often and posts the title and URL in an IRC channel on an internal server to which most of our developers subscribe.

    gryphon Development Manager (DSMS)
    code('Perl') || die;

Re: Add Auto Refresh facility atleast in seekers of perl wisdom
by suaveant (Parson) on Jul 11, 2005 at 15:18 UTC
    Ideally if one were to add a feature to perlmonks like this you would have a page that was cached and only updated when there was new data. A minimal html page is pretty cheap load-wise.

    Of course... That is not a bad idea in general. I am not privy to the internal workings of the PM system but I assume every page is generated on the fly. If the server is loaded then maybe something could be implemented to write a cache page to the server only when something on that page has changed, then the script could just generate sidebar data and either read in the cache file or load it in an iframe.

    Conversely if the server load is fine and it is the bandwidth that is suffering, mod_gzip could help quite a bit, if it is not being used already.

                    - Ant
                    - Some of my best work - (1 2 3)