Recent submissions

Comment · 4 months ago
Max representable frequency is half the sampling rate (nyquist-shannon theorem), which is still a bit above normal but IIRC the extra headroom has something to do with eliminating aliasing
Comment · 7 months ago
> Nvidia’s Auto Shader Compiler is distinct from Microsoft’s Advanced Shader Delivery system, which lets developers generate databases of precompiled shaders that can be downloaded ahead of time to align with a player’s specific system. Nvidia said earlier this month that it is “working closely with Microsoft” to add Advanced Shader Delivery support to its GeForce RTX line “later this year.”
Comment · 1 year ago
There are variants of CRDTs where each change is only a state delta, or each change is described in terms of operations performed, which don't require sending the entire state for each change.
Comment · 1 year ago
Agreed, this is quite annoying, but there is a workaround. You can tell blame to ignore commits like this, through a config option blame.ignoreRevsFile or similar CLI option. Not the most convenient perhaps, but it’s something. I believe GitHub also supports this, though you may have to request it to be enabled in your repository.

Given this, I tend to prefer a single, formatting-only commit when introducing formatting standards to an existing codebase. Otherwise, it’s difficult to take advantage of QOL features like auto formatting in your editor, or other formatting tools which tend to operate on entire files. Then PRs end up being mixed with formatting changes, which adds friction to the review process.

Comment · 2 years ago
It's more of a mouthfeel thing than a thickener. Gelatin, in the amounts found in a good stock, will still be quite liquid when the stock is at serving temperature, but will sort of coat your mouth with flavor even when the broth hasn't been thickened with a roux or cornstarch.
Comment · 3 years ago
Comment · 3 years ago
Comment · 3 years ago
Django also prepends the app name, giving you e.g. `auth_user` instead of `user`, side-stepping the likely collisions with reserved SQL keywords.
Comment · 3 years ago
> Never deploy a site into production with DEBUG turned on.

- https://docs.djangoproject.com/en/4.1/ref/settings/#debug

Setting DEBUG = False doesn't cause in Internal Server Issue. The issue is caused by something else, having DEBUG = True just means Django will return a detailed error page, instead of a generic 500 error page.

IIRC, DEBUG = True also used to leak memory, which doesn't matter so much for local development, where it's intended to be used.

Comment · 3 years ago
New (v5) isort doesn't move imports to the top of the file anymore, at least not by default. There is a flag to retain the old behavior, but even then I don't think it will move imports from, say, inside a function body to the top of the module.
Comment · 3 years ago
Comment · 4 years ago
I upgraded from a 970 to a 2080 a while back and have been very happy with it. Still plays modern games at good frame rates, though not with max settings.

Obviously your choice depends greatly on budget + availability of hardware, as well as your desired resolution, but I'd suggest the 2070 or 2080 (maybe 2080ti?) as a good starting point.

Comment · 4 years ago
I just tried this for the first time a few weeks ago. In Colombia they call it chicha de piña. The stuff I had wasn't bottled, just left on the counter in a large covered crock to ferment for a few days. Sweetened with panela and some spices like cinnamon and maybe anise.
Comment · 4 years ago
Most of the places I've lived have vented stove air outdoors. I've had the kind you're referring to as well, but outdoor venting hasn't been uncommon in my experience. Maybe it's a regional thing; I'm on the east coast FWIW.
Comment · 4 years ago
"Practical Django Projects" by James Bennett was very good, but was released back for Django 1.1 and I don't know how much it's been updated since. Walks the reader through creating the prototypical Django application: a blog. Still maybe worth a read, as the core concepts haven't changed all that much.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton