Lurker News

Comments (324) 106 threads

Earlier comments
flashdance#
I think that's because nothing on wikipedia links to that page.

I managed to go from spud gun -> great depression -> dissolution of the soviet union -> soviet union -> sputnik, but I couldn't get the last step!

mfoy_#
Spud gun links to "Sputnik 1", so if anything it's just weird that "Sputnik-1 EMC/EMI lab model" doesn't appear to link to "Sputnik 1"

Well, rather, it DOES. Maybe the unencoded '/' in the URL (https://en.wikipedia.org/wiki/Sputnik-1_EMC/EMI_lab_model) breaks the 6 Degress of Wikipedia?

mmanfrin#
One of your pages has nothing at all linking to it, so finding a route to that link is impossible.

https://en.wikipedia.org/wiki/Special:WhatLinksHere/Sputnik-...
However, you can go the other way:

  Sputnik-1_EMC/EMI_lab_model

  Sputnik 1

  Soviet space program

  United Nations Committee on the Peaceful Uses of Outer Space

  United Nations

  Model United Nations

  Dwight Schrute

  Spud gun

Also I'm realizing after finding that that I could have used the site in this post...
Wile_E_Quixote1 reply#
I think it would be interesting to have a "swap" button between the start and end points, perhaps just under where it says "to". (similar to the swap buttons in translator apps and GPS apps to quickly swap the start and end points) As some other comments have mentioned, the paths are not necessarily the same route or length, and it is fun to see how they might be different.
jwngr#
Good suggestion! I intended to have that exact button, but couldn't find a way to put it in the UI without making things more confusing. I expect I'll add it in the future. Thanks for the suggestion!
aplorbust2 replies#
In case you receive the following message

"Sorry internet hipster, this little side project requires JavaScript."
here is a quick example of how to get the pages the "traditional way"[FN1]:

     #/bin/sh
     test $# -eq 2||exec echo usage: $0 source target;

     exec curl -H"Content-type: application/json" \
     -d '{"source":"'$1'","target":"'$2'"}' \
     https://api.sixdegreesofwikipedia.com/paths \
     |exec sed '
     s/\",/\"\
     /g;s/,\"/\
     \"/g;s/:{/:\
     {/g;s/}/&\
     /g;s/\"pages\":/&\
     /'
It appears the author is using the Wikipedia API. I did not add any HTML tags, etc. to the output, although this is very easy to do.

FN1. The original "web browsers" needed no GUI, no Javascript.

aplorbust#
Example:

    sdow true false
Output:

     {"isSourceRedirected":false
     "isTargetRedirected":false
     "pages":

     {"161711":
     {"description":"Value indicating the relation of a proposition to truth"
     "title":"Truth value"
     "url":"https://en.wikipedia.org/wiki/Truth_value"}

     "228748":
     {"description":"Wikimedia disambiguation page"
     "title":"True"
     "url":"https://en.wikipedia.org/wiki/True"}

     "40805040":
     {"description":"Wikimedia disambiguation page"
     "title":"False"
     "url":"https://en.wikipedia.org/wiki/False"}
     }

     "paths":[[228748,161711,40805040]]
     "sourcePageTitle":"True"
     "targetPageTitle":"False"}
Edit sed commands to make first line indented:

     |exec sed '
     s/{/\
     &/;
     s/\",/\"\
     /g;s/,\"/\
     \"/g;s/:{/:\
     {/g;s/}/&\
     /g;s/\"pages\":/&\
     /'
dmytrish#
Now it makes more sense.

I'd prefer to have a brief technical explanation why Javascript is needed instead of this condescending labeling.
Edit: NoScript is not a luxury for technically minded geeks anymore, it's a necessary protection against tracking, CPU-consuming advertisement and attacks like Spectre/Meltdown and who knows what else Intel has for us.

incompatible#
I found one with 813 paths with 4 degrees, but yours has 1,645 paths with 5 degrees. I suppose there are end points with many thousands of links. It's a bit of trivia, not really a measure of anything.
incompatible#
It's a bit surprising, since you'd think that with 1,645 paths with 5 degrees, there'd be at least one path with 4 degrees, but it doesn't work that way.

Load more comments