Settings

Theme

Wikimedia telnet interface

meta.wikimedia.org

115 points by _joe 10 years ago · 72 comments

Reader

lucb1e 10 years ago

The revision history of this page indicates this is an April fool's thing. Besides images, I might actually totally love using Wikipedia from the command line. It would fit in well with my general command line usage. The Tor feature is particularly cool.

(Just to be clear, this post is not a joke. I actually use a terminal all day for various tasks so it might fit in well.)

  • wjoe 10 years ago

    It might have been set up as an April Fool's joke, but it is also a real thing that works.

  • CaptSpify 10 years ago

    There are so many sites that I would love to see implement cli interfaces for. HN is one. tldp.org, die.net, etc.

    I'm sure many of them have a lynx-useable page, but having a standardized cli interface to these would be super-useful to me as well.

    • kps 10 years ago

      No need to reinvent the wheel — topic/conversation sites like HN should just support RFC3977, while things like wikipedia can use RFC1436 (although a MIME typing extension is sorely needed).

  • ksherlock 10 years ago

    You could look into links/elinks for a command line browser. Or WikipediaFS (http://wikipediafs.sourceforge.net)

  • SilasX 10 years ago

    Why not for images too? There are lots of good image-to-ascii art converters.

    "We don't just support thin clients; we support anorexic ones!"

_toastie 10 years ago

Yeah, kind of sad that this is an April Fool's joke and not a serious interface. I would love to be able to quickly look stuff up from the terminal.

  • okasaki 10 years ago

        >>> import requests, bs4
        >>> def summary(name):
        ...     resp = requests.get("https://en.wikipedia.org/wiki/{0}".format(name))
        ...     return bs4.BeautifulSoup(resp.text).p.get_text()
        ... 
        >>> summary("Hacker news")
        'Hacker News is a social news website focusing on computer science and entrepreneurship. It is run by Paul Graham\'s investment fund and startup incubator, Y Combinator. In general, content that can be submitted is defined as "anything that gratifies one\'s intellectual curiosity".[1]'
  • organsnyder 10 years ago

    It may be a joke, but it actually works:

    $ telnet telnet.wmflabs.org Trying 208.80.155.160... Connected to telnet.wmflabs.org. Escape character is '^]'.

    (I had some more text pasted here, but it didn't format well on HN)

    I've tried a few queries, and it seems to work. Though I did just get an article in French for some reason...

  • mtdewcmu 10 years ago

    I was hoping that telnet was making a comeback. It feels like an old friend.

    • arca_vorago 10 years ago

      Its called ssh. Telnet is pretty much dead to me.

      • digi_owl 10 years ago

        Yes and no.

        Telnet is perhaps the internet's debugger.

        While the most common use was to access a CLI Somewhere, most of the "traditional" internet protocols can be operated via telnet.

        Note btw that there is no login needed to access this "joke". Just enter the address and presto.

        SSH is a single use tool in comparison.

  • tyingq 10 years ago

    html2text and a bash function seem to do okay.

      $ sudo apt-get install html2text
    
      $ function lookup() {curl -sL http://wikipedia.com/wiki/$1|html2text -ascii|less;}
    
      $ lookup node.js
    
    Edit: Replace spaces with underscores for multi word lookups, like George_Washington. Or fix the function.
zeveb 10 years ago

What's funny to me is how incredibly much faster the joke telnet interface is than using a web browser. Well, 'funny': it's actually pretty sad that we slow down our network usage so badly.

  • digi_owl 10 years ago

    It seems that as hardware improves, software degenerates.

    This in most part because software keeps being abstracted from the "hardware".

    Also, graphics. As bandwidth has gone up we have gone from newline encoded ASCII to video at 1080p or higher.

    I "love" it whenever i want to look up something and what i get pointed at is not a simple text document, but a 30+ minute video on Youtube of someone basically reading the same information.

    • cesarbs 10 years ago

      > It seems that as hardware improves, software degenerates.

      Spot on. I find myself frequently and increasingly frustrated with how slow most software is nowadays. Every app in my phone takes 2-3 seconds to load. Lots of websites/webapps take several seconds to load before they are readable/usable (Google Sheets is particularly offensive here).

      Years ago I had a lot less hardware than today, and the software I use had less features, but I remember response times being much faster. I hope we're able to reverse this situation soon.

    • dorfsmay 10 years ago

      Graphics are no longer the issue. The issue these days is that your browser has to download an entire is apps with all it's dependencies before it can start rendering the few KB of text.

      • digi_owl 10 years ago

        While i agree on the "app" thing, and something i tried to capture with the comment about abstraction, i have seen way too many sites default to massive images that they expect the client to scale as needed, taking up both bandwidth and client hardware resources.

    • dmd 10 years ago

      I know people (mostly under 25) who look at a text document like that and complain "why isn't this a YouTube? I don't want to read shit"

bhaak 10 years ago

Cool. I would use this quite often.

I hope https://github.com/cscott/wikipedia-telnet gets more contributor love now. Especially a pager would dearly be needed.

I vividly remember the telnet interface to the library system at my university. It was easy to use and fast. There were even some old terminals you could use (my only real exposure to real terminals).

Then they replaced it with a slow html page. :-(

halotrope 10 years ago

Joke or not, this is awesome! I could imagine using quite a few apps in the terminal like time tracking or chat. It feels so much quicker and quite frankly when browsing the web a lot of pages are visually heavy and chaotic that I fall back to the Safari reader mode very often anyway.

nickpsecurity 10 years ago

Great stuff! A bit like the old BBS days albeit not as great an interface. Someone with a sniffer should see what traffic size is during article load on Telnet vs web version w/ cache cleared. I'm curious if it's more or less efficient.

On a related note, I was digging up info on old systems. OpenVMS this time. One company that still supports terminal ("green screen") and web apps had interesting things to say.

http://www3.sympatico.ca/n.rieck/docs/openvms_notes_my_OpenV...

In paradigm changes section, they pointed out they had been doing textual apps because they were easy, worked, and ran really fast. They apparently supported tons of users on a few VMS boxes that way. Hardly any company was interested unless they had a web interface. Switching to Web made the services 2-5x slower, necessitating hardware and software upgrades. They also had security troubles. Business is booming, though.

Lots of lessons to be learned. Old way was fast but harder to use and inflexible. Web is easier interface but slow and insecure. I still think client-server w/ minimal GUI's (eg REBOL) w/ efficient protocol is best middle ground.

  • salgernon 10 years ago

    I keep reposting this comment, but whenever telnet is mentioned (fun simulation of 1980s):

    telnet telehack.com .... . usenet

    I with they had trn installed.

    • nickpsecurity 10 years ago

      Naturally I did some googling on "telehack" before typing it into the terminal. ;) So, I run it and see some familiar things. Talking to Eliza is a trap. I try StarWars expecting a banner or game. What I find... the movie rendered as text art... is awesome. The level of detail and compromises they made were great.

      Thanks for the link as I'm sure I'll find more interesting stuff on here. :)

    • d-crane 10 years ago

      Huge telehack fan here, glad to see it get mentioned -- this immediately reminded me of TH.

ComputerGuru 10 years ago

It's case sensitive :-(

That's worse than it sounds thanks to Wikipedia's archaic capitalization constraints, so it's neither going to be the "official" case-sensitive name of the page nor the Title case, you could very well need to do SomeTHING like_THIS to read an article.... and then it gave me the German version for some reason?

I wish it had search.

    >>> easybcd
    easybcd
    Sorry! Could not fetch "easybcd" for you.
    No worries. There are lots of other pages to read.
    Pick a different title.


    >>> Easybcd
    Easybcd
    Sorry! Could not fetch "Easybcd" for you.
    No worries. There are lots of other pages to read.
    Pick a different title.


    >>> EasyBCD
    EasyBCD
    EasyBCD

    EasyBCD ist ein Programm, das von NeoSmart Technologies entwickelt wurde.
    Es wird zum Konfigurieren und Anpassen des von Microsoft entwickelten
    Bootloaders Bootmgr verwendet, der Teil der Boot Configuration Data (BCD)
    der Windows-Versionen Windows Vista und jünger ist. EasyBCD kann benutzt
    werden, um eine Multi-Boot-Konfiguration zwischen diesen und vorhergehenden
    Versionen von Windows, sowie Linux, BSD und Mac OS X zu erstellen.
    ....
  • cgriswald 10 years ago

    Interestingly, the first character doesn't seem to matter. "easyBCD" and "EasyBCD" return the same results. And for some things all lower case appears to work:

    "USB", "uSB", "usb", "Usb" all work, "usB" does not. I agree that case sensitivity is pointless here.

    > and then it gave me the German version for some reason?

    It probably associated your location with Germany. It gave me the English version.

    Try:

    :use en.wikipedia.org

    > I wish it had search.

    My first lookup (which I've already forgotten) gave me "results" but it could have been a disambiguation page.

  • dingaling 10 years ago

    > It's case sensitive :-(

    Also IP-protocol sensitive :(

      $telnet -6 telnet.wmflabs.org
      telnet: could not resolve telnet.wmflabs.org/telnet: Name or service not known
    
    No AAAA RR.
  • cscottnet 10 years ago

    Fixed!

  • mercora 10 years ago

    somewhat surprisingly easyBCD works

colinbartlett 10 years ago

I connected and spent a few minutes poking around to try and understand the usefulness of this. Something for those in countries where web traffic is blocked? Is this a power tool just for Wikipedia editors?

Oh, wait, ugh... is this an April Fool's joke?

pavel_lishin 10 years ago

I'm actually incredibly disappointed that this isn't a thing. I had a screensaver that would curl a random wikipedia page and display it - but it always looked like hot garbage, due to a bunch of extraneous stuff that I didn't want to bother filtering out. This would have been pretty great. :/

vog 10 years ago

Wow! This even has auto-completion and other shell goodies.

However, there seems to be a bug in the auto-completion:

When pressing TAB immediately after the prompt appears, the whole telnet session hangs and does not respond anymore.

cmrdporcupine 10 years ago

April fools joke aside, I'd actually use this, but it doesn't seem to fully work. Most articles would not resolve for me and welcome page was joke content.

cscottnet 10 years ago

See https://meta.wikimedia.org/wiki/Telnet_gateway for technical details. The technology behind this is used for Wikipedia's Visual Editor, PDF export, and plain text export, so it is very likely to be supported if enough folks find it useful.

haddr 10 years ago

It's a joke, but it really works :)

jxy 10 years ago

I almost skipped it, but I tried anyway. Wonderful! I like the wiktionary:

    use en.wiktionary.org
Feels dictd on steroids.

Somehow I got disconnected frequently. Is it intentional? Or is it just my company's network hate telnet?

  • simcop2387 10 years ago

    It's quite possibly because they're getting a lot of traffic. As people are realizing that it's actually functional I'm sure they've got more telnet connections than all the MUDs in the world combined.

  • cjbprime 10 years ago

    Maybe an aggressive timeout when there hasn't been any new input recently?

nullc 10 years ago

Much faster than the web interface. Even over Tor! The fast disconnections are a bit lame, would be a bit better if it used curses so that it would start scrolled up.

yrro 10 years ago

Out of interest, is it possible to set up an anonymous service with SSH? Or would it rely on configuring an SSH server to accept any user-provided credentials?

  • schoen 10 years ago

    The public NetHack server at alt.org has an SSH interface alongside the telnet interface. Try

    ssh nethack@alt.org

    It works properly with no password. It would be cool if Wikimedia would set up a similar thing for this service.

rburhum 10 years ago

I thought it was a funny joke - I was curious how far they took it. Wholy crap, `telnet telnet.wmflabs.org` works and the searches do too. Nice job :)

joeyh 10 years ago

https://tmp.kitenet.net/oldskool-4-1-2016.png

justanother 10 years ago

This is really nice for those of us who run vintage computers (e.g. Apple II) with ethernet adapters. I hope they keep this around.

agumonkey 10 years ago

No money but lots of time and ideas I see.

  • cscottnet 10 years ago

    It's actually a 269-line test case for more serious projects at the foundation: the Offline Content Generator and Parsoid. We're allowed to have fun in the service of the greater goal. More technical details at https://meta.wikimedia.org/wiki/Telnet_gateway

    • agumonkey 10 years ago

      I was meanly poking at Wales mails and hyper disrupting popup for money (you guess how much I like all this).

      That said, I friggin love the telnet access point. I am a bit fed up with the ever more weighty web so simple text link + repl gets my vote.

x1798DE 10 years ago

I would really like it if HN could mark things that are jokes as such, or constrain them to one thread.

  • _joeOP 10 years ago

    This is not just a joke; the interface is working (apart from some bugs you might expect at this stage) and while the announcement is clearly a joke, the interface is IMHO pretty cool

digi_owl 10 years ago

hrmf, for some reason it disconnects me seconds after giving the prompt.

Edit: Never mind, was using an overly "clever" terminal emulator...

  • jandrese 10 years ago

    I was immediately kicked off when using real telnet, but it worked fine with netcat (nc). I think this service gets confused if you send it the telnet control stuff.

    • digi_owl 10 years ago

      Could be. but using a "dumber" terminal seems to allow the connection to last longer...

justinlardinois 10 years ago

The comments in this thread make the joke even better.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection