HNHacker News
TopNewBestAskShowJobs

iudqnolq

5,740 karma · joined June 10, 2017

submissionscomments
iudqnolq··on Hetzner now throttling shared CPUs if you use >20%
Have you been using 20% sustained for those 30 days?

The surprising thing to me was that you seemed to be saying there was a hard cap of 20% you couldn't ever exceed. I'm not surprised you aren't allowed to use all the shared resources all the time.

iudqnolq··on Hetzner now throttling shared CPUs if you use >20%
Where does it say that? Here is exactly the page I see: https://web.archive.org/web/20240912104240/https://docs.hetz...

> Plans (CCX) with dedicated vCPUs have their CPU resources exclusively. Here one vCPU equals one thread of a physical CPU core. Instances with dedicated vCPUs offer continuous and predictable high CPU performance. We recommend them for systems with high production loads and CPU intensive applications. They run on high-performance hardware and come with a generous allocation of I/O and network power.

Of course that implies there is some throttling. But I see nothing about a hard 20% cap.

iudqnolq··on Don't defer Close() on writable files (2017)
I can't decide because in this pattern you ignore once and check once and I like the lint for the check. Ideally the linter could recognize this pattern. Even better would be if the linter could catch when you never close, I've made that mistake a few times.
iudqnolq··on Don't defer Close() on writable files (2017)
Yup, I wrote it that way because I have a linter for unused error returns with a handful of exceptions (like closing http request bodies).
iudqnolq··on Don't defer Close() on writable files (2017)
The end of the article has my favorite solution.

This is also how I'd solve it in Rust, except the defer would be implicit.

    func doSomething() error {
        f, err := os.Create("foo")
        if err != nil { return err }
        defer func(){ _ = f.Close() }()

        if _, err := f.Write([]byte("bar"); err != nil { return err }

        return f.Close()
    }
iudqnolq··on LSP: The good, the bad, and the ugly
I pulled up a random section and saw a method the editor sends right before a save so that the lsp can do format on save. I think format on save is pretty handy. Would you cut it?

(There's two methods, one with a timeout. In an ideal world maybe that would be one but I totally understand how initially they maybe assumed format on save would always be reasonably quick and then had to backtrack)

iudqnolq··on Web scraping with GPT-4o: powerful but expensive
This doesn't directly address your issue but since this caused me some pain I'll share that if you want to parse structured information from Wikipedia infoboxes the npm module wtf_wikipedia works.
iudqnolq··on Greppability is an underrated code metric
I like using l for logger and db for database client/pool/handle even if there's a wider scope. And if the bulk of a file is interacting with a single client I might call that c.
iudqnolq··on I'm blocking connections from AWS to my on-prem services
How could that work with their architecture? They configure your device to use a DNS server running locally in their app. That resolves their device names to their internal device IP addresses. Their device names default to hostnames, just like mDNS does.

So to give an example if I enter http://geder in my browser I want that to resolve to 100.100.5.10 regardless of if I am on my home network (where geder is) or if I am on a train.

From my perspective half the reason to use tailscale is that it replaces why I'd want mDNS with less bugs.

iudqnolq··on UK rail minister got engineer sacked for raising safety concerns
He's just published a book that looks quite interesting: https://www.amazon.co.uk/How-Railways-Will-Future-Rediscover...
iudqnolq··on Why is the Oral-B iOS app almost 300 MB? And why is Colgate's app even bigger..?
Every other one is dead. I'm guessing wildly here but maybe there's a reason they need to limit visitors.
iudqnolq··on Apple's requirements are about to hit creators and fans on Patreon
I downloaded the Patreon app to listen to podcasts. Regardless of who is to blame from my perspective their imperfect app provides a better user experience than Firefox or Chrome on my Android phone.
iudqnolq··on What I Saw in the Darién Gap
On support for Israel, yes. Plenty of mainstream Americans think it's weird to volunteer to be an IDF prison guard as an American though.
iudqnolq··on What I Saw in the Darién Gap
Huh, I see it quite frequently. In particular I see references to the anti-Palestinian bias with suggestions that the fact the editor in chief volunteered to join the IDF and served as a guard in a prison camp might be relevant.
iudqnolq··on 10% of Cubans left Cuba between 2022 and 2023
> Generally English speaking countries tend to have and advantage at attracting highly educated/productive immigrants

That's my point

iudqnolq··on 10% of Cubans left Cuba between 2022 and 2023
Yes the UK is. Check out these charts for example: https://www.ft.com/content/c6bb7307-484c-4076-a0f3-fc2aeb0b6...

I agree there's near infinite confounding factors. But I think the correlation is striking enough that it's relevant to this conversation especially considering that the post I'm replying to cites only non-Anglosphere countries.

iudqnolq··on 10% of Cubans left Cuba between 2022 and 2023
The UK has significantly better integration than the continent in line with the other Anglosphere countries.

I agree it's not enough evidence for anything conclusive. But I think it's enough evidence to say arguing about what will happen to the US based only on Sweden data is unsound.

iudqnolq··on 10% of Cubans left Cuba between 2022 and 2023
When looking at how wealthy democracies integrate immigrants the English speaking countries are dramatically more successful across all the standard objective metrics like crime rates or income compared to the native population. So Sweden isn't relevant.
iudqnolq··on 10% of Cubans left Cuba between 2022 and 2023
Interestingly various European nations turn out to be a poor comparison group for the United States. No one has conclusively determined why yet, but we know there's a strong correlation between a country having English as the primary language and immigrants integrating well.

This is especially true for second-generation immigrants. First generation immigrants are general less likely to commit crimes, but in countries like Germany and France the rate rises significantly with the second generation. That doesn't happen in the US or Canada, for example.

The children of immigrants in English speaking countries tend to do better financially than their parents whereas in many non-english speaking European countries the children of immigrants slide into poverty.

Edit: Here's a related article with some charts illustrating the correlation https://www.ft.com/content/c6bb7307-484c-4076-a0f3-fc2aeb0b6...

iudqnolq··on Perceiving oneself as a major character in one's life story predicts well-being
I ended up skimming this as it's very verbose. I was surprised in the discussion of confounding variables to see no discussion of whether the participants are just accurately describing reality.

If you asked Elon Musk to tell you his life story he'd tell you about what he's done. If you ask a warehouse worker their life story they might tell you about things people told them to do. But that's a lagging and pretty boring indicator.

iudqnolq··on The European Union must keep funding free software
They seem to have prioritized making the process simple for developers by removing overhead. Apparently you are don't have to write lots of reports about your results for them, they just check that the code you said you'd write is in fact written and runs.
iudqnolq··on SSH has become our universal (Unix) external access protocol
It's a proprietary network but not proprietary agents (except the bits specific to proprietary platforms).

One handy feature this enabled is that you can include their open source go library in your program and avoid needing to install anything besides your own binary.

iudqnolq··on Terminal Workspace with Batteries Included
That's something else. Zellij is a reimplementation in Rust. Tmux is perfectly fine as well but for me personally Zellij is more approachable if I want fix a bug or add a feature.
iudqnolq··on Terminal Workspace with Batteries Included
The other week I wanted to process a few hundred gigabytes of elevation data. My home internet is poor, so I rented a cheap cloud server and installed zellij on it. Zellij let me have two panes so I could monitor wget requests and also watch the overall progress. Zellij also kept the commands running even if I closed my laptop screen and my ssh connection dropped.

I also use zellij locally so I don't have to learn more than one set of keyboard shortcuts and so on. There are plently of alternatives but zellij is just convenient.

iudqnolq··on Evolve Bank and Trust confirms LockBit stole 7.6M people's data
3. Smaller banks might be worse at preventing you from breaking the law.

(This data dump exposes lots of customers that should have triggered KYC issues, like an American dog-walking startup remotely operated from Pakistan )

iudqnolq··on Linksys Velop routers send Wi-Fi passwords in plaintext to US servers
That API was introduced in Android 10. That's currently supported by only around 60% of Android devices globally and that number would have been lower when they decided how to implement this project.

My phone did have that API, and I subjectively still found the experience janky. But that's just my opinion.

iudqnolq··on Linksys Velop routers send Wi-Fi passwords in plaintext to US servers
This appears to be a cloud password first stetup feature. As in you type your new password into the app, the app sends your password to a cloud API, and then the cloud API instructs the router to change to the new password over a management API.

So the password is sent for a specific feature that legitimately wants it.

You could have the app connect to a special WiFi network and then communicate directly with an API exposed by the router. That's what my router does. But the experience of using a special-purpose WiFi network is janky on many common devices so I understand not taking that choice.

iudqnolq··on Twilio confirms data breach after hackers leak 33M Authy user phone numbers
Not quite. For example politicians benefit from being able to solicit donations over mass text.
iudqnolq··on Ask HN: Who has had a successful PWA product?
The user doesn't care about the delivery tech. They care about the installation and usage experience. They want to go search the app store, click the button, and get an icon on their homescreen.
iudqnolq··on Waymo Driver 3.5x better at avoiding injuries over 14.8M miles in SF and Phoenix
I wonder if the absence of a driver to get hurt skews the crash statistic.
← PreviousPage 2 of 34Next →