HNHacker News
TopNewBestAskShowJobs

kmstout

875 karma · joined May 1, 2019

https://www.reindeereffect.com

https://reindeereffect.github.io

submissionscomments
kmstout··on In Defense of Text Labels

  $ aspell dump master | egrep -i '^i.{18}n$'
  institutionalization
  internationalization
kmstout··on When AI promises speed but delivers debugging hell
4b 65 6e 74 20 50 69 74 6d 61 6e 20 72 65 6c 61 74 65 64 20 5b 30 5d 20 74 68 65 20 63 6f 6d 6d 65 6e 74 20 6f 66 20 61 20 70 72 6f 67 72 61 6d 6d 65 72 20 69 6e 20 50 61 6e 61 6d 61 2c 20 77 68 6f 20 6c 69 6b 65 6e 65 64 20 45 6e 67 6c 69 73 68 20 6b 65 79 77 6f 72 64 73 20 74 6f 20 6d 75 73 69 63 61 6c 20 6e 6f 74 61 74 69 6f 6e 73 20 62 6f 72 72 6f 77 65 64 20 66 72 6f 6d 20 49 74 61 6c 69 61 6e 2e 0a 0a 5b 30 5d 20 68 74 74 70 73 3a 2f 2f 64 65 76 65 6c 6f 70 65 72 73 2e 73 6c 61 73 68 64 6f 74 2e 6f 72 67 2f 73 74 6f 72 79 2f 30 31 2f 31 31 2f 30 33 2f 31 37 32 36 32 35 31 2f 6b 65 6e 74 2d 6d 2d 70 69 74 6d 61 6e 2d 61 6e 73 77 65 72 73 2d 6f 6e 2d 6c 69 73 70 2d 61 6e 64 2d 6d 75 63 68 2d 6d 6f 72 65
kmstout··on I got a heat pump and my energy bill went up
> Def not making an account on whatever random website heatpumped.org is.

Yet another example of a paywall that can be defeated by disabling JS or using a text mode browser. Those are my second favorite. The most entertaining are the ones that pack the article text into some JSON, and then use JS to generate the readable version. At least then I get a minor puzzle to solve.

kmstout··on I ditched the algorithm for RSS
RSS is great for this. The vast majority of my 200+ feed subscriptions are for rarely updated blogs or YouTube channels.
kmstout··on IRC Driven – modern IRC indexing site and search engine
For BBSes, MUDs, etc.:

- https://www.telnetbbsguide.com/

- https://www.ipingthereforeiam.com/

Plenty of boards run Multi-Relay Chat (MRC), which is IRC-ish.

kmstout··on Today I learned that bash has hashmaps (2024)
A couple things:

- Between using Bash's functions and breaking large scripts into multiple, separate scripts, one can keep things reasonably tidy. Also, functions and scripts can be combined in all the ways (e.g., piping and process substition) that other programs can.

- If I run into a case where Bash is a poor fit for a job, I ask myself, "Self, what program would make this easy to do in a shell script?" If I can respond with a good answer, I write that, then continue with the shell scripting. If not, I write in something else (what the kids would call a "proper" language).

kmstout··on Why is the American diet so deadly?
I lost track of how many articles I had to open to hit their paywall in Firefox, but disabling JavaScript will nicely bypass it.
kmstout··on Bob Newhart has died
"The next time they bug you about Grant's drinking [...] tell them you're gonna find out what brand he drinks and send a case of it to all your other generals."

--Bob Newhart, as Lincoln's PR consultant

https://www.youtube.com/watch?v=tF1ew8wxiEw

kmstout··on Did we lose our way in making efficient software?
It's fine in a text-mode browser.
kmstout··on The Basics of Legibility: A Short Guide for Non-Typographers
> [...] screen real-estate is also important [...]

This is why I've been spending a lot of time (ab)using Emacs's browser, eww, in conjunction with follow mode: The two together allow me to view most things in an efficient columnar display, letting me take better advantage of the width of my screen. (It's hard to rotate a laptop's monitor.)

kmstout··on YouTube: Google has found a way to break Invidious
Not quite. Late last year I began running a Searx instance locally, less for privacy than for having a hackable meta-search engine. Since it supports several "bangs," like !ddg and !yt and the like, I generally use this for quickly searching Youtube without changing context. When I enable images [0], I can see the thumbnails just fine. Regardless, there are plenty of places on the web (like here) where people will post interesting YT links, and having them pop open in mpv is a good default [1].

I've also evolved a CLI YT client, based on mpv/yt-dlp and fzf; it does not show thumbnails. Even so, it's perfectly fine for gathering lots of search results, like

  $ yt 500 medical uses for hollandaise
which will gather the first 500 results about medical hollandaise [1], filter out the shorts, and present the remaining results in an fzf-based UI. I haven't really missed the thumbnails.

---

[0] One of the first things I did with eww was to bind "I" to a function that toggles images on or off and re-displays the current page.

[1] In my setup, I can override all special handling of a URL by holding Ctrl while hitting Enter to follow a link.

[2] Earlier today, I had a fascinating conversation with TinyLLama about the medical uses of hollandaise and options for regulating it. Did you know that it can be taken intravenously to help fight cancer?

kmstout··on YouTube: Google has found a way to break Invidious
It turns out that it's easy to rig eww (Emacs's built-in browser) to automatically pass URLs to whatever special handlers you desire, via the "browse-url-handlers" variable. I did that earlier this weekend for Github and Youtube. For Youtube, I have a wrapper function just starts mpv with the supplied url. For Github, a different wrapper just breaks out the user/repo pair from the url and invokes github-explorer, available in MELPA. (When I need more from a repo, I can just clone it and explore it locally. Either way, there's little need to deal with Github's web UI.)
kmstout··on Balancing Optimization While Coding
The other post [0] tagged as "ai" doesn't either, and they're both [1] dated yesterday.

---

[0] https://breadchris.com/thinkies/a-very-b-movie-plot/

[1] https://breadchris.com/tags/ai/

kmstout··on Selfish reasons to want more humans
As long as there's coffee.
kmstout··on The dating app paradox
Got carbon?
kmstout··on A practical guide to quitting your smartphone
It also provides easy access to the "poke" functionality.
kmstout··on I built my own 16-Bit CPU in Excel [video]
"Is it even possible? It's the best kind of possible: theoretically possible."
kmstout··on Six Degrees of Wikipedia
We had a game for awhile at work of finding paths from random articles to Rome. We never failed, so we stopped playing.
kmstout··on Playstation removing previously purchased Discovery content
> Their wording.

Saved [0], for whatever it's worth.

[0] https://archive.is/3qOGV

kmstout··on Bjarne Stroustrup Quotes
My favorite:

  UNIX:

    % ls
    foot.c foot.h foot.o toe.c toe.o
    % rm * .o
    rm: .o: No such file or directory
    % ls
    %
kmstout··on FastGPT
I've played with this a few times over the past couple months. Those times, at least, it's been very snappy.
kmstout··on Strong static typing, a hill I'm willing to die on
I want different things at different times. When I'm first exploring a problem space or figuring out an approach or fooling around in a REPL, dynamic typing is great. In those circumstances, the ability to quickly test (and reject!) ideas is critical, and I don't usually find static typing worth the friction. On the flip side, when I'm working on something longer lived or mission critical, it's important to set the maintenance brigade up for success. That means, among other things, useful doc strings; detailed and informative design notes; and type declarations with the right level of specificity.

Of course, the coin has a thin edge where the situation is a bit of heads and a bit of tails. Count me a fan of gradual typing.

kmstout··on ChatGPT-4 significantly increased performance of business consultants
Off topic, but I had to follow up. It seems that "Write drunk, edit sober" is mis-attributed to Hemingway, who advised writing sober [1].

[1] https://www.writersdigest.com/be-inspired/did-hemingway-say-...

kmstout··on Text editing on mobile: the invisible problem
Earlier this year I spent some time with a Unihertz Titan Pocket, which sports a physical keyboard. It gave a vastly better typing experience than any other smartphone I've interacted with.
kmstout··on Fossil versus Git
But then I could

  plan $CURLOC "alice's restaurant"                \
  | dress-with pit-stops -every $(( RANGE - 100 )) \
  | drive
and then crank up the death polka.
kmstout··on Is Fortran easier to optimize than C for heavy calculations?
> But can you show me a (single threaded) programming language where "a = 1" does not mean that on the next line, a will be 1?

MIPS I.

https://en.wikipedia.org/wiki/Delay_slot#Load_delay_slot

kmstout··on EndBASIC

  do : if int(rnd(1)) * 2) = 0 then print "\\"; else print "/"; : loop
kmstout··on Writing Small CLI Programs in Common Lisp (2021)
As someone else noted, SBCL's `SB-EXT:SAVE-LISP-AND-DIE` ends up producing hilariously large executables. The solution I've settled on for bags of small, sharp tools is to simply have an omnibus program that includes a variety of functionality as subcommands, and that can dispatch to the appropriate function based on the name it was run as (i.e., the value of argv[0]). One of those commands will pepper a directory of your choice with soft links to the omnibus program, each named for a subcommand.
kmstout··on Show HN: I automated half of my typing
Th vc n my hd snds lk sm dd wth hs jw wrd sht.
kmstout··on COBOL gets new life in the cloud thanks to Watsonx and AI
ADD ONE TO COBOL GIVING COBOL
← PreviousPage 2 of 7Next →