(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.)
Edit: Looks like it wasn't intended as a joke, but was initially received that way because of the timing: https://en.wikipedia.org/wiki/History_of_Gmail#Public_releas...
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.
"We don't just support thin clients; we support anorexic ones!"
>>> 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]'$ 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...
$ 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.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.
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.
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. :-(
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.
telnet telehack.com .... . usenet
I with they had trn installed.
Thanks for the link as I'm sure I'll find more interesting stuff on here. :)
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.
...."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.
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.Oh, wait, ugh... is this an April Fool's joke?
Here's a bit more: https://en.wikipedia.org/wiki/Wikipedia:Wikipedia_Signpost/2...
EDIT: With the exception of the connection being closed on the Wikipedia end relatively often.
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.
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?
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.
Edit: Never mind, was using an overly "clever" terminal emulator...