Live data from Hacker News

You can read my blog posts using curl

mahdi.blog

71–73 of 73 posts

Re: You can read my blog posts using curl

#72
Wow, this is a nice feature! I'd much rather implement it by having a .txt or .raw file just in the same folder as the HTML page though, rather than having to go in the middle of the URL. I feel like it is more convenient to do so.

Example, rather than https://mahdi.blog/raw/raw-permalinks-for-accessibility/, it would be https://mahdi.blog/raw-permalinks-for-accessibility.raw

It's a minor nitpick really, but I quite like this idea! I think I'll try to implement this for my website too.

As for the other people here wondering why User Agents weren't used for this:

- Using static website hosting goes out the window, which is quite a shame because it makes everything so much easier

- User agents are pretty terrible for determining capabilities and intent (what if someone was using curl to get an actual webpage?)

- It will never cover all types of HTTP clients (a whitelist is pretty terrible as we have seen from various online services restricting Firefox users or Linux users from certain features for no other reason than their user agents weren't in the list the developers used to check for the presence of certain features).

Re: You can read my blog posts using curl

#73
post #64
post #56

Earlier quoted context omitted.

No, I'm pretty sure that’s your terminal emulator capturing the scroll wheel events and translating them to cursor key events.

LESS(1) [...] --mouse Enables mouse input: scrolling the mouse wheel down moves forward in the file, scrolling the mouse wheel up moves backwards in the file, and clicking the mouse sets the "#" mark to the line where the mouse is clicked. The number of lines to scroll when the wheel is moved can be set by the --wheel-lines option. Mouse input works only on terminals which support X11 mouse reporting, and on the Wind…

OK, but those are not enabled by default. BTW, Emacs also has it as an available feature: M-x xterm-mouse-mode
Post reply on HN