Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: JCWren Programming Challenge - Win a Perlmonks T-Shirt!

by rlk (Pilgrim)
on Nov 30, 2000 at 00:15 UTC ( [id://43991]=note: print w/replies, xml ) Need Help??


in reply to JCWren Programming Challenge - Win a Perlmonks T-Shirt!

Which headlines should the page display? The ones in the retrieved file? All headlines gathered so far? Only those that aren't in the database prior to this run?

--
Ryan Koppenhaver, Aspiring Perl Hacker
"I ask for so little. Just fear me, love me, do as I say and I will be your slave."

  • Comment on Re: JCWren Programming Challenge - Win a Perlmonks T-Shirt!

Replies are listed 'Best First'.
(jcwren) Re: (2) JCWren Programming Challenge - Win a Perlmonks T-Shirt!
by jcwren (Prior) on Nov 30, 2000 at 00:48 UTC

    As new headlines come in, they are placed in the database. Headlines older than 24 hours (by default. This is command line controllable) should be aged out. All headlines currently in the file should be displayed.

    Think of it as a sliding window, with a window width controlled by the command line argument for aging.

    --Chris

    e-mail jcwren

      Thanks. I would have figured as much, but with that being the case, I can't figure any interpretation of...

      • ...a list of all states that headlines have been encountered for...
      • (states with no headlines should not have an active link)

      ...wherein the second requirement is meaningful. With only one set of headlines (as opposed to a "new from the web" and an "old in the file" set), the set of states for which there is a headline, and for which there is no headline is null, thus all states listed will have an active link.

      Or am I missing something?

      --
      Ryan Koppenhaver, Aspiring Perl Hacker
      "I ask for so little. Just fear me, love me, do as I say and I will be your slave."

        The links list at the top of the table should contain all 50 states. If nothing happened in Iowa this week (and Dog knows, there's little that ever happens in Iowa...), then the Iowa link at the top should not have a HREF tag.

        There is no guarantee that there will be headlines for all 50 states.

        --Chris

        e-mail jcwren

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2024-04-23 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found