Better HN
topnewbestaskshowjobs
Log inSign up

mrcarrot

215 karma · joined Jan 10, 2014 (12y ago) · 88 submissions

Submissions

comment 1w ago · link · parent

> It takes two clicks for selecting an audio device from the desktop/task tray at least in Windows 7/10

I think the parent's point was more that you can't set a Sonos device to be an output device on Windows (or at least it won't automatically detect them and set them up for you as such), whereas on modern Linux this will Just Work.

comment 2mo ago · link · parent

Yeah, you definitely don't want to hang things off the wrong seams, or you'll end up with quite the blast radius

comment 8mo ago · link · parent

I've started using Linux recently after not touching a desktop distro for 20-odd years, and I was surprised how good both Gnome and KDE look these days.

It certainly doesn't feel like there's a trillion-dollar-company difference between those two and Tahoe.

comment 9mo ago · link · parent

It's available on Prime Video (at least on amazon.de). For a long while they would only sell access to season 1, but I've just checked now and all 4 seasons are available at the moment.

comment 1y ago · link · parent

In a similar space, I'm pretty sure the recent remake & remaster of the two System Shock games were really well received, so that's hardly a given.

comment 1y ago · link · parent

Yeah, I've been trying it recently and I'm not entirely convinced I want to keep using it.

My biggest annoyance at the moment (and this may be me missing something), is that I have two directories: "thing" and "thing-api". I'm doing work in "thing" much more often than in the "thing-api", but whenever I run "z thing", it takes me to "thing-api" first, and I have to "z thing" again to get to where I wanted to go. It ends up being more effort than if I'd just tab-completed or history searched a plain cd command.

comment 1y ago · link · parent

yes

comment 1y ago · link · parent

Thanks - this does make sense in isolation.

I think my actual issue is that the "most package managers do something like this" example code snippet at the start of [1] doesn't seem to quite make sense - or doesn't match what I guess would actually happen in the decompress-in-a-loop scenario?

As in, it appears to illustrate building up a buffer holding the compressed data that's being received (since the "// ... decompress from buffer ..." comment at the end suggests what we're receiving in `chunk` is compressed), but I guess the problem with the decompress-as-the-data-arrives approach in reality is having to re-allocate the buffer for the decompressed data?

[1] https://bun.com/blog/behind-the-scenes-of-bun-install#optimi...

comment 1y ago · link · parent

The "Optimized Tarball Extraction" confuses me a bit. It begins by illustrating how other package managers have to repeatedly copy the received, compressed data into larger and larger buffers (not mentioning anything about the buffer where the decompressed data goes), and then says that:

> Bun takes a different approach by buffering the entire tarball before decompressing.

But seems to sidestep _how_ it does this any differently than the "bad" snippet the section opened with (presumably it checks the Content-Length header when it's fetching the tarball or something, and can assume the size it gets from there is correct). All it says about this is:

> Once Bun has the complete tarball in memory it can read the last 4 bytes of the gzip format.

Then it explains how it can pre-allocate a buffer for the decompressed data, but we never saw how this buffer allocation happens in the "bad" example!

> These bytes are special since store the uncompressed size of the file! Instead of having to guess how large the uncompressed file will be, Bun can pre-allocate memory to eliminate buffer resizing entirely

Presumably the saving is in the slow package managers having to expand _both_ of the buffers involved, while bun preallocates at least one of them?

comment 1y ago · link · parent

Also not available in Austria

comment 1y ago · link · parent

Or alternatively (assuming that's true) he fired the people who thought about what they commit and kept those whose commit logs look like: "push feature WiP", "fix", "more fixes", "push", "maybe this works?"...

comment 1y ago · link · parent

> The POST in the README is going to send the params in the request body "url form encoded" like a form in a web page.

Is there a different POST request in the readme or are you saying that this example is going to send the "user" and "password" params in the request body?

> POST https://example.org/login?user=toto&password=1234

That seems really surprising to me - how would you then send a POST request that includes query string parameters? The documentation on form parameters [1] suggests there's an explicit syntax for sending form-encoded request parameters

[1]: https://hurl.dev/docs/request.html#form-parameters

comment 2y ago · link · parent

I really enjoyed watching Jon Gjengset work through this here: https://www.youtube.com/watch?v=u0VotuGzD_w

comment 2y ago · link · parent

I think the parent was agreeing with you. If the “local” SSDs _weren’t_ actually local, then presumably they wouldn’t need to be ephemeral since they could be connected over the network to whichever host your instance was launched on.

comment 3y ago · link · parent

“And management’s priority for Q4 is feature Y, so we’re just going to leave feature X like it is for now”

comment 3y ago · link · parent

None of those places are especially sunny in the winter though!

17.

Towers’ remains may rewrite history of English civil war(theguardian.com ↗)

6 points · by mrcarrot · 3y ago · 1 comment

comment 4y ago · link · parent

> And what if I don't want to have my constructor parameters as properties, maybe because I process them somehow in the constructor, and set some other properties instead?

Then you don't use property promotion. It's optional: it only happens if you add a visibility modifier before the parameter name.

comment 4y ago · link · parent

Only if you're using a US keyboard layout.

comment 5y ago · link · parent

Not since PHP 7.3![1] If you indent the closing identifier, then the corresponding indentation will be removed from the content of the heredoc string.

[1]: https://www.php.net/manual/en/language.types.string.php#lang...

comment 5y ago · link · parent

https://www.adl.org/education/references/hate-symbols/88

comment 6y ago · link · parent

Also not on iPad, but they do load, on a stand-alone page, if you click on them.

comment 6y ago · link · parent

You could just sign up for a month of Game Pass and get the game for 1 £/€/$.

comment 6y ago · link · parent

Also the default controller profiles don’t include any dead zone, so at least on my setup, the control inputs were way too sensitive. Once I added some dead zone, and reduced the sensitivity curve in the options, it became much less twitchy.

comment 6y ago · link · parent

Valve have said they will (somehow) not count the time taken to download the game content against the 2 hour refund clock [1].

[1]: https://www.gamesindustry.biz/articles/2020-08-20-valve-assu...

comment 6y ago · link · parent

I have "Search Engine Suggestions" and "Safari Suggestions" both enabled, Google as "Search Engine" and I see the same behaviour as you (typing "sketch" RETURN in safari address bar takes me to the Google search results).

comment 6y ago · link · parent

Yeah, 400000 deaths over 4 months would be in the ballpark of the casualties from an Omaha Beach landing every day.
123