Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

How Low Can I Go?

by cmv (Chaplain)
on Oct 16, 2007 at 20:10 UTC ( #645272=monkdiscuss: print w/replies, xml ) Need Help??


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 = "$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...


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 (Pope) 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.


Nodes 1 .. 1000
by jdporter (Canon) on Oct 17, 2007 at 21:23 UTC

    Update: Despite what you may hear to the contrary, there is no node 17.

    When I asked vroom about it, he said:

    #perlmonks [2007-10-18 11:49:50] <vroom> the real answer is paco's younger brother, who has since been erased from perlmonks history
    Of course, he was just joking. but the fact remains: if there ever was a node 17 on perlmonks, it is gone.

      Nit: Node 17 is the Not Found node. Everything is a node.

        Negative. There is no row in our node table with node_id=17. The Not found node is 3544.

        In addition, there is vestigial (archeological?) evidence that node 17 was a container-type node, just like the succeeding five nodes. Specifically, perlfaq edit page points to node 17 as its parent. And if you try to edit a perlfaq node, you get a blank page. That's a pretty low-level error! Try it.

        I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.
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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://645272]
Approved by Corion
Front-paged by Corion
and the universe expands...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2018-06-22 14:02 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (124 votes). Check out past polls.