Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Lvl999Noob
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
Lvl999Noob
9mo ago
The dock and monitors aren't mine actually. I got them from work. The work laptop runs windows 11 so the hardware is only tested for windows. I will buy my own stuff when I have to return these and then I will make sure it all works wi
32.
▲
by
Lvl999Noob
9mo ago
I recently switched to linux from windows. The only reason I was sticking with windows was because hoyoverse refuses to support linux. I finally decided I need some break from them anyways and took the plunge. First, I tried to install fedo
33.
▲
by
Lvl999Noob
10mo ago
Yeah. Certainly felt like that. On the other hand, the content does seem good. It definitely wasn't slop, even if I can't judge how useful it really was (in terms of giving a solution).
34.
▲
by
Lvl999Noob
10mo ago
You don't. Assertions are assumptions. You don't explicitly write recovery paths for individual assumptions being wrong. Even if you wanted to, you probably wouldn't have a sensible recovery in the general case (what will you
35.
▲
by
Lvl999Noob
10mo ago
My 2c. The risk of losing one (or both) earbud is a real one. My ears don't tend to keep snug grip on the earbuds so they tend to get loose after I walk a little. With earbuds, this might just be my own singular piece but, there is als
36.
▲
by
Lvl999Noob
10mo ago
Since the human eye is most sensitive to green, it will find errors in the green channel much easier than the others. This is why you need _more_ green data.
37.
▲
by
Lvl999Noob
10mo ago
You are building everything in CI from scratch so theoretically, it should be completely possible to not need to scan lockfiles and get all the data from their respective sources (OS, runtime, dynamic libs, static deps, codegen tools, build
38.
▲
by
Lvl999Noob
10mo ago
Couldn't the compiler optimise this still? Make two versions of the function, one with constant folding and one without. Then at runtime, check the value of the parameter and call the corresponding version.
39.
▲
by
Lvl999Noob
10mo ago
Personally, I would prefer that the package managers keep their own lockfiles with all their metadata. A CI process (using the package managers itself) can create the SBOM for every commit in a standardized environment. We get all the same
40.
▲
by
Lvl999Noob
10mo ago
This isn't really something the logging library can do. If the language provides a string interpolation mechanism then that mechanism is what the programmers will reach for first. And the library cannot know that interpolation happened
41.
▲
by
Lvl999Noob
10mo ago
I use firefox for three things. 1. The ad blocker. 2. The sense of superiority over the normies (because of the ad blocker) 3. Theming If adblockers are killed, that removed points 1 and 2. I am pretty sure I can do the same theming in Chro
42.
▲
by
Lvl999Noob
10mo ago
I am not the author haha. Just someone who found and really liked that library.
43.
▲
by
Lvl999Noob
10mo ago
And for the opposite, where you keep your main pipeline in shell but want to use python for some parts of it, there is pypyp. https://pypi.org/project/pypyp/ It takes cares of the input and output boilerplate so y
44.
▲
by
Lvl999Noob
10mo ago
The various projects that say something is deprecated but then don't give a removal timeline or keep delaying the removal (or even explicitly say it won't be removed, just remain deprecated) are the cause of this problem. IMO, any
45.
▲
by
Lvl999Noob
1y ago
Why not use apt?
46.
▲
by
Lvl999Noob
1y ago
Rust's design eliminates data races completely. It also makes it much easier to write thread safe code from the start. Race conditions are possible but generally less of a thing compared to C++ (at least that's what I think). Noth
47.
▲
by
Lvl999Noob
1y ago
Why not have a transient client generated ID for idempotency but a server generated ID for long term reference and storage?
48.
▲
by
Lvl999Noob
1y ago
Never use someone else's synthetic key as your primary key. If you want ordered keys, even if the API is giving out sequential integers, you should still use your own sequential IDs.
49.
▲
by
Lvl999Noob
1y ago
Off-topic, For this kind of pointer casting, shouldn't you be using a union? I believe this is undefined behaviour, as written.
50.
▲
by
Lvl999Noob
1y ago
Pure js without typescript also has "types". Typescript doesn't give you nominal types either. It's only structural. So when you say that you "know it's already been processed", you just have a mental type
51.
▲
by
Lvl999Noob
1y ago
Why does "true" parsing have to error out on the very first problem? It is more than possible (though maybe not easy) to keep parsing and collecting errors as they appear. Zod, as the given example in the post, does it.
52.
▲
by
Lvl999Noob
1y ago
The difference, in my opinion, is that you received the cli args in the form ``` some_cli <some args> --some-option --no-some-option ``` Before parsing, the argument array contains both the flags to enable and disable the option. Vali
53.
▲
by
Lvl999Noob
1y ago
Fwiw, the two feed into each other. I read this same thing somewhere else before and have since tried to not take my phone with me into the bathroom. I started doing that because I would take a lot of time in there. But once I have my phone
54.
▲
by
Lvl999Noob
1y ago
I want an option to give fake permissions. A lot of apps are pretty necessary (due to network effects). I don't want to give my contact or location data to them but they also refuse to work without it, even though they don't it fo
55.
▲
by
Lvl999Noob
1y ago
For the current category of LLM based AI, "AI optimised" means "old and popular". Even if you add a layer that has much more details but may be a lot more verbose or whatever, that layer would not be "AI optimised&q
56.
▲
by
Lvl999Noob
1y ago
Instead of reference counting, consider having two types. An "owner" type which actually contains the resource and the destructor to dequire the resource. And "lender" types which contain a reference (a pointer or just l
57.
▲
by
Lvl999Noob
1y ago
FWIW, team screen resolution is pretty much already there when the company provides the laptops (+ screens).
58.
▲
by
Lvl999Noob
1y ago
The script example in TFA is just a starting point. I believe you would still manually go through all the columns it finds and decide which ones are actually supposed to be nullable and which ones don't need to be. As the article said,
59.
▲
by
Lvl999Noob
1y ago
What they are saying is that the field is always present in the domain model but we don't have the information to backfill it. For example, say you have a customers table. Originally, it just stored their name and internal ID. But now
60.
▲
by
Lvl999Noob
1y ago
1. Frequent service (<5 minutes between buses, ideally) 2. Enough capacity to support rush hours (so each bus can straight up refuse to take extra passengers) 3. Education campaigns and police / fines / other external factor fo
More ›