Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
TheDong
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
391.
▲
by
TheDong
1y ago
Someone already is "being an evil hacker" i.e. running ghrc.io Is microsoft liable for people typoing a "docker login" command? Is there any chance of a lawsuit? The fact that there is already someone exploiting it, and
392.
▲
by
TheDong
1y ago
Assuming you're not distributing container images to a huge number of people, you can just run your own docker registry with a hard-to typo name. It costs hardly anything to do: https://github.com/cloudflare/server
393.
▲
by
TheDong
1y ago
Good luck with that. People over in this github-actions issue are struggling to get github's attention for a 1-line fix to stop hanging jobs forever https://github.com/actions/runner/issues/3792#issuecomm
394.
▲
by
TheDong
1y ago
The generics are a weak mimicry of what generics could be, almost as if to say "there we did it" without actually making the language that much more expressive. For example, you're not allowed to write the following: ty
395.
▲
by
TheDong
1y ago
I agree with your point, but you'll have to update your example of something go can't do > having to write a for loop to get the list of keys of a map We now have the stdlib "maps" package, you can do: keys := sl
396.
▲
by
TheDong
1y ago
`string` is not an alias for []byte. Consider: for i, chr := range string([]byte{226, 150, 136, 226, 150, 136}) { fmt.Printf("%d = %v\n", i, chr) // note, s[i] != chr } How many times does that l
397.
▲
by
TheDong
1y ago
The existing pattern suggested above, "match ...:", will not match 'match = ...'. Presumably the reason the parent comment suggested semgrep, not just a grep, is because they're aware that naive substring matching w
398.
▲
by
TheDong
1y ago
I want to believe that this would be used at amusement parks to scan "can I safely get on this ride" and at the entrance to stairs to tell you if you'll bump your head or not.
399.
▲
by
TheDong
1y ago
We almost all have IC Chip readers in our pocket (our cell phones), so if the government issues a card that has a private key embedded in it, akin to existing GnuPG SmartCards, you can use your phone to sign an attestation of your personho
400.
▲
by
TheDong
1y ago
Use rust or typescript or something where it's socially acceptable to make small packages. That'll also let you avoid writing the `if err != nil { return fmt.Errorf("context string something: %w", err) }` boilerplate aga
401.
▲
by
TheDong
1y ago
StateDirectory looks like it's also always the environment variable 'STATE_DIRECTORY', regardless whether it's a user or system unit, right? systemd-run -p StateDirectory=test -t sh -c 'echo $STATE_DIRECTORY&#
402.
▲
by
TheDong
1y ago
> you have different environment variables for user and system units Really? I thought the point of the environment variable was it was the same, and the directory it pointed to differed depending on the service type. I'd love a ref
403.
▲
by
TheDong
1y ago
You completely misunderstand. The library the person linked is to deal with systemd credentials in go. The two lines of code I wrote are the same, and in fact are effectively 100% of the code in the library.
404.
▲
by
TheDong
1y ago
I see we've decided to take the path of nodejs and npm, where 2-liners deserve their own package. dir, err := os.Getenv("CREDENTIALS_DIRECTORY") cred, err := os.ReadFile(filepath.Join(dir, "name")) That
405.
▲
by
TheDong
1y ago
Most of the things you cite, like phones, cars, airtags, can already be powered just off batteries and the electric grid, so the actual source of the energy is already abstracted away. A large-scale nuclear plant will be way more efficient
406.
▲
by
TheDong
1y ago
Most of the clients were pretty bland and bad, made by Apple fanboys who believed that form was more important than function. Tweetdeck came out as the leader over the rest (mainly due to having actual functionality), and about a year after
407.
▲
by
TheDong
1y ago
Since you used the phrase "highest levels", that made it sound to me like you were talking about native tests. I apologize for misunderstanding. Non-native japanese language tests do not ever go to a high level as far as I'm
408.
▲
by
TheDong
1y ago
They promised the performance of their processor more than Hyundai promised that the Ioniq 5 was "carjacking-proof, even if the attackers have specialized tools", and this thread is about hyundai replacing parts of cars for free b
409.
▲
by
TheDong
1y ago
I've been holding my breath ever since spectre/meltdown for a free cpu upgrade to make up for the slower performance that the mitigations cause. It's intel's bug, they promised a certain processor speed, shouldn't i
410.
▲
by
TheDong
1y ago
> I think it’s perfectly reasonable to have that under a warranty. The warranty is not that long, and I think the parent comment is talking about 6+ year old iphones that are definitely out of warranty. If those should get replaced, sure
411.
▲
by
TheDong
1y ago
I once had a headache and thought about taking an aspirin, but you know if I take an aspirin and feel 10% better, I'll want to feel even better so I'll then just have to take meth, there's no other possibility. I would hope i
412.
▲
by
TheDong
1y ago
> The (semi-official) Japanese language tests do not test language production in _any_ way, even on the highest levels. This is simply not true. The Kanji Kentei is probably the most popular Japanese language test Japanese people might t
413.
▲
by
TheDong
1y ago
> Mac Mini is i believe the most efficient consumer computer made ever My raspberry pi is sitting at 3 watts, and runs linux software just fine. A Mac Mini uses multiple times that, and can barely run any software I care about (i.e. linu
414.
▲
by
TheDong
1y ago
> It is my choice not to use it and I am fine with that. However I also have encountered people who seem to think it is not my choice not to use it I'm curious what the main opposing opinion you've hit there is? Is it accessibi
415.
▲
by
TheDong
1y ago
The reason copy+pasting is risky is it builds a habit where you're vulnerable to phishing sites. Use the browser extension for your password manager, it auto-fills based on URL, so if you're on "kagii.com", it won't
416.
▲
by
TheDong
1y ago
If you look at the github issue related to the PR, you'll see some examples: https://github.com/golang/go/issues/56025#issuecomment-20667... Looks like the original poster on that thread is making it bec
417.
▲
by
TheDong
1y ago
Have the AI produce a plan that spans multiple files (like "01 create frontend.md", "02 create backend.md", "03 test frontend and backend running together.md"), and then create a fresh context for each step if
418.
▲
by
TheDong
1y ago
It's been a real lifesaver, whenever a guest loses the guest key it just ends up back in my mailbox eventually. Also, like 80% of the hotels I've stayed at in the last year have the hotel name on the keycard, though admittedly the
419.
▲
by
TheDong
1y ago
> It's like coming across a key someone dropped on the road. You don't even know what it's for. There's a lot of keys that are self-identifying, even real keys. My key has "Apartment Name, Apartment Number"
420.
▲
by
TheDong
1y ago
Yeah, assuming the people working at the taco shop aren't very well off the taco should cost $100 for a software engineer, $80M for Jeffrey Bezos, and $4 for someone down on their luck. If we wanted, we could make this more efficient b
More ›