Live data from Hacker News

Show HN: Six Degrees of Wikipedia

sixdegreesofwikipedia.com

271–280 of 354 posts

Re: Show HN: Six Degrees of Wikipedia

#275
post #262

Earlier quoted context omitted.

Hi jwngr, Thanks for the cool hack. Its nice. How about representing the destination page as a circle around the whole graph, instead of a node? so that all the paths can be drawn in different directions but still reaching the same page. I somehow feel that it might look more beautiful.

Ooh cool idea! That certainly would improve the information density issue. I honestly never considered that at all and have no idea how I'd do it in d3, but I may try to hack it out. Thanks!

Maybe link all the outside nodes and then tell them to repel each other. If there are only two, it will be weird, but with three or more should work out.?

Re: Show HN: Six Degrees of Wikipedia

#277

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…

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\":/&\
     /'

Re: Show HN: Six Degrees of Wikipedia

#278

This makes the "How many clicks to Hitler" game much faster. For those uninitiated, the game was to click the "Random Article" link in the sidebar and count how many links it took to get to Hitler. It is really interesting to see just how big of an event WWII was. Every country article has a section on their involvement or why they were not involved. After playing with it more, this is pretty fun. I vote that a "degr…

This reminds me of the wikipedia rule I learned a while back: If you click the first link in an article (besides the pronunciation guide), you will always end up on philosophy.

According to the wikipedia page about this rule/game, over 97% of pages have this property. Interestingly, "Mathematics" seems to be a rare exception. You get stuck in a loop:

Mathematics -> Quantity -> Multitude -> Counting -> Elements -> Mathematics

Re: Show HN: Six Degrees of Wikipedia

#279
post #92

Earlier quoted context omitted.

'Please' and 'thank you' go a long when requesting additional features for an OSS project.

There's a certain irony to the lack of tact in this post suggesting better manners. I suspect the point would be better received were it more politely made. I, of course, am merely propagating the cycle.

When I was a kid my mom told me "always say 'please' and 'thank you'."

So from then on, when I wanted something, I said "please and thank you."

I think this was my first social hack. I just wish it had worked better!

Re: Show HN: Six Degrees of Wikipedia

#280

Earlier quoted context omitted.

There's a certain irony to the lack of tact in this post suggesting better manners. I suspect the point would be better received were it more politely made. I, of course, am merely propagating the cycle.

When I was a kid my mom told me "always say 'please' and 'thank you'." So from then on, when I wanted something, I said "please and thank you." I think this was my first social hack. I just wish it had worked better!

[deleted]
Post reply on HN