HNHacker News
TopNewBestAskShowJobs

jks

564 karma · joined June 20, 2011

submissionscomments
jks··on How do I exit Vim?
> esc esc esc :qa!<cr> (8 strokes)

Yes, that seems quite complete against any preceding keystrokes I can think of, and agreed, it's better to use ^C instead of ESC.

However, your friend's environment variables caused vim to be invoked with the -y flag (vim is famously difficult so they want to always use it in "easy mode").

jks··on How do I exit Vim?
The ^V your friend had entered in insert mode will escape the ^Z so your friend just typed the line

    ^Zkillall vim
jks··on NetBSD 9.3
Probably Soekris. Those were nice machines but don't seem to be available any more.
jks··on NetBSD 9.3
I'm going to say that the rump kernel is an innovation: https://en.wikipedia.org/wiki/Rump_kernel

But admittedly it doesn't seem to have quite the following of those two other BSDs.

jks··on How do I exit Vim?
Here's a fun game. The backstory: your friend has started vim because of some unfortunate environment variable settings, has typed some keystrokes and now needs your help to exit vim.

Player A suggests a sequence of keystrokes that supposedly works.

Player B explains why that sequence doesn't work. For example, if A says "esc colon q ! enter", B can counter with "your friend was in insert mode and had pressed ^V".

I thought the shortest winning sequence had seven keystrokes but it turns out it wasn't enough.

jks··on Botspam apocalypse
Does Cloudflare's "Privacy Pass" browser plugin help at all? It's advertised as reducing the number of hCaptchas you need to solve by a factor of 30, but I rarely see hCaptchas anywhere on my connection so I can't really evaluate myself.
jks··on I Am a Spammer. AMA (2009)
From 2010
jks··on DALL·E 2 prompt book [pdf]
Future programmers will write prompts for a future version of Github Copilot: "database layer with all the usual CRUD operations, in readable modern C++, code compiles and passes tests, test cases carefully written by computer scientists with great attention to detail".
jks··on DALL·E 2 prompt book [pdf]
And I guess being extremely dumb carries a larger risk of death than being extremely smart, so if people start out symmetrically distributed along this scale, the distribution will skew right over time.
jks··on Simplicity of IRC
> candidness (canditity? candidosity?)

Candor?

jks··on Ask HN: Should the ADA Apply to Software?
For comparison, there's the European Web Accessibility Directive: https://en.wikipedia.org/wiki/Web_Accessibility_Directive

What it means in practice is that publicly funded websites have an accessibility report somewhere right next to the other legalese, where they list how well they meet the various requirements, which is often "not very".

jks··on Xz format considered inadequate for long-term archiving (2016)
pixz (https://github.com/vasi/pixz) is a nice parallel xz that additionally creates an index of tar files so you can decompress individual files. I wonder if dpkg could be extended to do something similar.
jks··on CotEditor – Lightweight Plain-Text Editor for macOS
Yes, and it shows when you compare it to a native app like CotEditor.
jks··on Pipenv: Promises a Lot, Delivers Little (2020)
The main problems with just "pip install -r requirements.txt" are that you might get a different result the next time you run it if a (transitive) dependency has released a new version, and that upgrading dependencies is an error-prone manual task. Both pipenv and poetry try to solve these problems.
jks··on CotEditor – Lightweight Plain-Text Editor for macOS
In terms of startup speed and editing feel, I think it's pretty much the same as TextEdit.app, and much better than any Electron-based editor.
jks··on OpenAI
The original doesn't say "10-15 meters" but ten to the power of negative fifteen meters, so his guess was off from the Bohr radius of 5.3E-11 in the other direction but by much fewer orders of magnitude than as rendered above.
jks··on OpenAI
In academia, a "sabbatical" means you take some time off from teaching courses, advising students and doing administrative work so you can concentrate on your research. So in order to stay on sabbatical, he'd need to get the AI to do that other stuff.
jks··on MIT Ends Elsevier Negotiations (2020)
Anecdotally, I know some scientists who prefer Sci-Hub even when their institution has a subscription to the journal. The login procedures (and possibly VPN setups when working from home) are too much work when Sci-Hub is immediate.

I'm sure that publishers will try and fight back, just like with music copying.

jks··on Ask HN: I miss Usenet. Are there any modern equivalents?
This is not technically Usenet, but you can access various mailing lists via NNTP at nntp://news.gmane.io. There used to be a browser interface, but apparently that attracted abuse and legal threats.
jks··on List of Tech company layoffs in Europe
At least here in Finland Klarna engages in borderline-shady tactics. They use all the dark patterns you can think of to get your personal identity number even if you choose a payment method that doesn't require it, presumably to combine data from various sources. They skip the difficult identity-verification steps to make the checkout go faster, which of course means they can be easily used for fraud, and it falls to the unfortunate bystander whose identity was stolen to report the fraud and return the goods.

I and a lot of friends avoid Klarna checkouts to the point of choosing a more expensive shop or ordering from outside the country.

jks··on List of Tech company layoffs in Europe
The Estonian delivery startup Starship uses tiny self-driving robots. I wonder if those can be made cost-efficient.
jks··on SQLite in Go, with and Without Cgo
Then there's crawshaw.io/sqlite (https://github.com/crawshaw/sqlite) which has some extra features.
jks··on Pronounce GIF · the Correct Way, Without Question
Why only those two options? I like the Swedish pronunciation: yif

Obligatory Dilbert link: https://dilbert.com/strip/1994-12-26

jks··on What's the problem with old but excellent Mac apps?
I was amazed when I saw that Finda is an Electron app. It's a single-author Mac-only utility that finds things much better than Spotlight: https://keminglabs.com/finda/

The author has a blog post about how he made it so fast: https://keminglabs.com/blog/building-a-fast-electron-app-wit...

jks··on Ask HN: Does anyone else miss TouchID?
I don't have related medical issues either, but sometimes my thumb is stiff from the cold and doing the double click through a phone case is difficult.
jks··on Ask HN: What Has Happened to Twitter?
Or don't follow anyone (or follow your friends if they think it's a nice social signal). Put all the interesting people in lists and view the lists in https://tweetdeck.twitter.com/ instead of the usual UI.
jks··on Tell HN: Stack Exchange (Stack Overflow) is now blocking Tor
Also, what would be the point? It's easier to download a data dump from https://archive.org/details/stackexchange
jks··on Spotify is removing Neil Young’s music after falling out over Joe Rogan
Spotify has been advertising their podcasts for a long time, and I have listened to a few of them on the service. I even tried an episode of Joe Rogan and decided I didn't like it, but after that it seemed that Spotify's recommendation algorithm really started pushing the show.

I switched to Tidal, which doesn't have quite as good a selection of artists. They do still have Neil Young.

jks··on Ask HN: How to make my macOS less distracting?
Here's one macOS-specific tip: I want to use Facebook to connect with some relatives and friends, but I don't want to be drawn to it all the time. I have set up another account on my Mac, but in greyscale mode (System Preferences, Accessibility, Display, Colour Filters, Greyscale). I have logged into Facebook in a browser in that account and not in my main account, and I don't keep my Facebook credentials in my usual password manager. I find that having to go through Fast User Switching and enter a password adds enough friction that I don't mindlessly open Facebook, and the greyscale mode makes it sufficiently less fun to browse the web that it is easy for me to stop after doing what I was going to do.
jks··on Free Postgres databases for small projects
I thought it was about the pandemic. It certainly feels like it's been ten years.
← PreviousPage 4 of 7Next →