http://qs321.pair.com?node_id=645272

Folks-

I'm having my Friday moment a little early this week...

Needing to learn about the LWP::Simple module, I wanted to cobble up a quick test program. What to do... what to do... then, I began to wonder... What is the lowest PM node_id I have access to?

use strict; $|++; use LWP::Simple qw($ua get); $ua->proxy('http', 'http://myproxy'); # Skip nodes 0 and 17... # for my $id (1..16, 17..50) { Ooops... for my $id (1..16, 18..50) { my $url = "http://www.perlmonks.org/?node_id=$id"; print "$url: "; my $content=get($url); if ( ($content) && ($content!~/You don.t have access to that node. +/) ) { print "Good\n"; last } else { print"\n" }; sleep 2; }
I put the sleep in there so I didn't overload the server too much.

node_id=0: Ok, this is the Monastery gates, that doesn't count. Hmmm, doesn't seem to work as a reference though - [id://]
node_id=17: is goofed up somehow, check it out [no such node, ID 17]
node_id=23: seems to be the winner Everything 2 Idea List

Now my paranoia kicks in. What do nodes 1..16,18..22 contain? What are the gods hiding? Are they talking about me...

-Craig

Replies are listed 'Best First'.
Re: How Low Can I Go?
by ambrus (Abbot) on Oct 16, 2007 at 20:35 UTC
Re: How Low Can I Go?
by Corion (Patriarch) on Oct 16, 2007 at 20:29 UTC

    The Everything Engine is built from nodes, all the way down . 1 is the nodetype node - the node that defines what types (other) nodes can be. It itself is of the type nodetype, obviously. 2 is the container nodetype. 3 is the document nodetype...

    There are some more nodetypes, but these all aren't for the gods alone to view - every pmdevil can look at these.

    Of course, there is no significance that 23 is the lowest positive number accessible to the general public.

Re: How Low Can I Go?
by theorbtwo (Prior) on Oct 17, 2007 at 08:37 UTC

    0 isn't a node_id (we prefer the underscore). IDs in our little universe start at 1, so we don't have to be bothered to worry about exists-but-false, so node_id=0 is equivalent to not giving a node ID at all, so you end up at the default node, which happens to be 131, not terribly low at all.

    17 is in fact the not found node, and isn't messed up at all; it's supposed to be like that.

    1 is the nodetype nodetype. That is, the type of a node is also a node, and 1 is the type that the types of nodes are. I hope that was as clear as mud; I want to maintain an air of mystery, because it's more fun that way.

    ...and along that lines, I'm not going to tell you what the rest are. Insert maniacal laughter here.

Re: How Low Can I Go?
by amarquis (Curate) on Oct 16, 2007 at 20:29 UTC

    There's a typo in your range, it doesn't skip 17 currently.

    Side note: not only am I too having my Friday moments early this week, but I actually thought it to be Friday today. Pretty disappointing for a day, so far.

    Edit: You fixed it, with blazing speed!

      amarquis++ Thanks for catching it.

      Also jettero++ who mentioned it in the CB before I saw your response (that why it seemed to get corrected so fast).

      Ahhhh, procrastination is fun...

      back to work.

      -Craig

Re: How Low Can I Go?
by amarquis (Curate) on Oct 17, 2007 at 18:32 UTC

    By the by, even if you can't get to 1, you can perhaps console yourself at One.