HNHacker News
TopNewBestAskShowJobs

johncoltrane

1,582 karma · joined May 20, 2010

submissionscomments
johncoltrane··on Terminals should generate the 256-color palette
The good thing with the 256c palette is that colors in the 16-255 range are fixed, which gives us a very high level of confidence that 146 will be a muted violet and so on. This is very useful for colorscheme developers because it allows us to provide a pretty good and consistent experience across the widest range of terminal emulators.

If the 256c palette is generated from a -- potentially wild -- 16c palette then there is no guarantee anymore that 146 will indeed be the 146 I expect.

Turning 16-255 into the same kind of minefield as 0-15 seems very misguided to me.

johncoltrane··on Ireland rolls out basic income scheme for artists
Well, I don't depend on my art to sustain my livelihood. This allows me to do whatever I want without a care in the world for marketability.

Much better than all three choices combined if you ask me.

johncoltrane··on Most Indians don't read for pleasure – so why are there 100 literature fests?
For those who do. Not everything is for everyone.
johncoltrane··on cURL removes bug bounties
> slopper

First new word of 2026. Thank you.

johncoltrane··on Ask HN: Does Hacker News pull posts about Greenland from the front page?
It is certainly possible that the US tech sector will be affected by the latest US president's brain farts… but I couldn't care less. Not my country. Not my scene.

I'm here for ASCII characters rendering pipelines, scientific breakthroughs, experimental filesystems, random wikipedia links, monospaced fonts, etc., not for silly politics.

johncoltrane··on Ask HN: Does Hacker News pull posts about Greenland from the front page?
I like HN when it is leans toward "a place for everyone to talk about tech". Not so much when it derails into "a place for technologists to talk about anything".
johncoltrane··on Ask HN: Thoughts on maintaining anonymity against state-level actors?
> Despite his expertise, it's still a mystery how his anonymous persona was deanonymized.

The only explanation is that his OPSEC wasn't as rigorous as you think it was.

Reading the Wikipedia page, the most obvious gap would be the medical treatment he received in 2017. If he mentioned it publicly, then it was basically game over: finding him would have been routine police work at that point. The process that led to the interview by a German newspaper might have been leaky as well. There are so many opportunities.

As a rule of thumb, you can consider that while your OPSEC might _theoretically_ be the tightest in the world, you will eventually have to deal with other people and orgs at some time, who might not care as much as you do. In which case your OPSEC is really only as strong as _theirs_.

> Is it even possible to win a "battle" where you have to be perfect 100% of the time, while the adversary only needs to find one leak?

It is not. Simply because you can only control so much. A few years ago, there was a story about a mafia boss who successfully escaped justice for 20 years… until a Google Street View passed by while he was shopping groceries in a Spanish village. The guy certainly had the strongest OPSEC his money and relationships could buy, but it eventually amounted to nothing in the face of pure randomness.

All you can do is try to compartmentalize as best as you can for as long as you can, but something will eventually leak.

Also, it will be harder…

- the longer you keep it going,

- if it involves others,

- if you are married, have kids, etc.,

- if you have complicated needs (sex, drugs, health issues, etc.),

- if money is tight,

- if you are not geographically and socially mobile,

- if your public persona is too close to your real identity,

- etc.

johncoltrane··on Ask HN: Should HN be tech news and discussions only?
The shitty stuff rarely survives the race to the front page so you could probably start by avoiding "/newest". As of Sat, 03 Jan 2026 14:06:17 GMT, there is only one irrelevant item on the front page… and surprisingly little AI, which is quite refreshing.
johncoltrane··on Ask HN: What percentage of code do you still write by hand?
If you mean "without AI assistance", then 100%. But I use snippets and keyword-line-filename-etc. completion extensively, so… maybe 95%?
johncoltrane··on Microsoft please get your tab to autocomplete shit together
"If you have to press a key for it to happen, then it's not 'auto'."
johncoltrane··on Twelve Days of Shell
Hmm. It looks like I forgot a pointer to the actual tutorial. I wasn't talking about vimtutor, which only covers very basic topics, but about the much more extensive user manual: :help user-manual.
johncoltrane··on Twelve Days of Shell
Forget cheatsheets, tweets, videos, books, etc. Vim comes with a very well made built-in tutorial that will gently pull you toward maximum efficiency.
johncoltrane··on The Authoritarian Stack: How Tech Billionaires Are Building a Post-Democratic US
You can have the core things you mention in other political systems and you can have democracy without them. Those are characteristics of the particular form(s) of democracy currently in place in most of "the west", not of democracy itself.

> maybe

I know, it's more exciting to play the worst scenarios in one's head, but… _maybe not_?

johncoltrane··on The Authoritarian Stack: How Tech Billionaires Are Building a Post-Democratic US
Democracy can have many forms, some more authoritarian than others. And it being able to morph into a different form as the conditions change is very much a feature, not a bug.
johncoltrane··on Robust Technology: Protrek Watches
Very satisfied owner of a (smaller) PRW-30Y, here (with a matching after market "oyster" bracelet).

Always on time, always charged, always precise, highly readable, packed with useful features… that thing went through a lot without any issue whatsoever. It only leaves my wrist when I feel like cleaning it.

Highly recommended.

johncoltrane··on Classic Hotline tracker network revived
Hotline, Carracho, KDX… oh, the memories.
johncoltrane··on Ask HN: Preferred Next.js Alternatives?
(detailed use case) => detailed reasoning
johncoltrane··on Sony PlayStation 2 fixing frenzy
The ones you can find online are sold by people who know the market all too well so the prices are high. Plus it's online so there's no guarantee about anything.

Pawn shops, thrift stores, or their "modern" equivalents (EasyCash, CashConverters, etc. YMMV) would be a good start. I got mine out of a pile for 10€ at a countryside GiFi (French store) ten years ago.

johncoltrane··on Search and Replace in Vim
I would stay away from vimgolf if I were you because it focuses too heavily on a useless metric, number of keystrokes. The so-called "Vim language" is about expressiveness, intuitiveness, composability, etc., so performing a task in 20 keystrokes is meaningless if it took two minutes to figure out each of them. 40 or 50 keystrokes that flowed without thinking are always better.

Also I must say that my regex-fu improved dramatically after I picked Vim.

johncoltrane··on Search and Replace in Vim
Vim comes with everything you need.

The journey starts by running the following command:

    $ vimutor
in your shell to learn the absolute basics in about 20 minutes, which is largely enough to be able to perform quick edits on config files. If it didn't stick the first time, then try again. If it didn't stick the second time, then don't bother: Vim is not for you and that's 100% OK.

At the end of vimtutor there is a strong hint that there is a lot more to learn. If you are still interested at this point, then run the following command in a Vim session to access the user manual:

    :help user-manual
An _active_ reading of chapters 1-12 and 20-32 is pretty much required if you really want Vim to disappear. Skipping this step will make everything worse down the line. It may take something like a month or two if you only do that, and probably a couple more if you do that on the side.

Now, a few recommendations…

Yes, you _need_ to read a lot and experiment a lot if you ever hope to become proficient with Vim. Just like with any "pro" app. It takes time and practice to become a pro at anything. That's life. Luckily, no one is expecting you to be a "pro" vimmer, now or ever, so you can do the learning at your leisure and even drop out if you have to. It's just a weird text editor after all and you still have VSCode.

Each chapter of the user manual builds up on the previous ones so you actually get a very gentle and progression curve. The wording is also very approachable so you don't have to be a CS major to understand it.

Don't go in with the project of replacing your current editor. This would be an absolute waste of time as it would give you false expectations AND a strong incentive to cut corners. Just… look at it. Poke at it. See if you like it and, eventually, dive in. Maybe you will end up replacing VSCode with it. Maybe not. Who cares?

---

As a programer, I have been using Vim as main text editor since 2010. I love it and I'm pretty good at it, active in the community and all, but I also use other editors and IDEs when doing so makes more sense and I'm not here to evangelize the masses. Vim is old and weird and powerful but a) that power comes at a (rather low, IMO) price and b) it won't solve all your problems so don't invest too much, emotionally, into that learning.

johncoltrane··on Chatcontrol EU, what countries are enforcing similar laws?
_Evidence_ of negative effects on society would be useful as well.
johncoltrane··on Europe is Healthier than US (2024)
You can catch glimpses of that generic Europe in recent American movies filmed in Budapest, Vienna, Paris, or other capitals. In Netflix "local" productions, also, and local TV shows meant for international distribution, where a lot of effort is made to make the setting as universal as possible.

The real life of real people is still very different across the continent (the gradient from Oslo to Athens is striking), but how that reality is presented is important. And it is currently presented in a very polished, generic way.

johncoltrane··on Starship's eleventh flight test
Browsers can handle conversions just fine but they need some context. If that context is somehow tampered with, then the results might be weird.

In this case, SpaceX seems to be using UNIX timestamps(1) which is probably fed to a combination of Date and Intl to obtain a localized date string. Extrapolating the country where the user is located is not really rocket science either. But, if my context is somehow tampered with (VPN, internal clock, browser settings…), then I will get a potentially "wrong" date, for whatever definition of "wrong".

The problem is fundamentally the same on the server side because you can only rely on the information you get… which might be wrong.

So either you take the safest route, which is to display the local time of the organization or its UTC representation and let visitors figure out their local date on their own, or you take a somewhat riskier one, which is to try to display a localized date to your users and accept the potential flaws of the method.

[1] https://sxcontent9668.azureedge.us/cms-assets/future_mission...

johncoltrane··on Ask HN: Why does every website ask me to accept cookies?
This is done in an effort to comply with what is commonly called "cookie law" (GDPR + ePrivacy directive).

Those texts don't say anything about cookie banners, though, only that users should be informed and have the possibility to make a choice. How that information and ability to make a choice are presented to the user is left to the site owner to decide.

For site owners, cookie banners are an easy way to comply without having to DESIGN that compliance into their site, which can be interesting but time consuming and expensive.

In theory, it should be possible to prompt the user for consent before storing something on their device but that would only work for stuff site owners have control over.

In practice, "cookies" are rarely used voluntarily by the site owners themselves but they are used a lot by the crap they add to their sites for tracking and so on via tag managers. And for that there is no better solution than a blanket cookie banner.

johncoltrane··on Asian Success Isn't an Accident
We actually have the same pressure, but we have built ourselves a world where dealing with it has become somewhat optional. Why bust your ass when you know that you will be given a second/third/fourth/tenth/etc. chance anyway?

No wonder so many things are starting to fall apart around here.

johncoltrane··on You can now upgrade a retro Casio watch with Bluetooth, step tracking, and games
s/up/down
johncoltrane··on [dead]
Hmm… that's the U.S. Secret Service, not the CIA, and they found lots of interesting stuff except an actual plot to "attack" anything, in NY or elsewhere:

> Officials said they haven’t uncovered a direct plot to disrupt the U.N. General Assembly and note there are no known credible threats to New York City.

johncoltrane··on Why is Venus hell and Earth an Eden?
Because we are built for Earth. Next question.
johncoltrane··on Figma Rendering: Powered by WebGPU Blog
Speaking of WebGL, after a recent Chrome update I am not able to open Figma files anymore because webgl is supposedly not supported or enabled. I have gone through all the recommended tweaks with no effect.

Possibly related: janky playback of YouTube videos at large sizes (theater and full screen).

Both work just fine in Firefox and worked just fine last week in Chrome. I'm at a loss as to why this could be happening all of a sudden.

johncoltrane··on iPhone Air
You know what has been grind my gears for a while?

It's the protruding camera lenses being off-center. I don't mind the "protruding" part but, every time I interact with my phone lying onto a table or countertop or whatever, I have to bear with that silly tick-tack because the damn phone is not level.

← PreviousPage 3 of 34Next →