Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
TheDong
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
65 ms
·
691.
▲
by
TheDong
2y ago
If you have a different machine with more ram and compute, you can use 'nixos-rebuild --target-host=<server> switch'. That does all the nix building on the local machine, and then just copies binaries and activates the built
692.
▲
by
TheDong
2y ago
notion doesn't have normal text files. You can click "export to markdown" on a notion page, you can click "import from markdown", but those two markdown dialects are totally incompatible. Most of the time notion can
693.
▲
by
TheDong
2y ago
Edited to wal-g, since that is what I'm using now; I forgot I had to switch over, but indeed I did. Did you jump straight to pgbackrest or compare it to wal-g? I didn't compare em at all, so I have no clue if I'm missing out
694.
▲
by
TheDong
2y ago
For me, it's case-by-case. I don't back up the VMs directly, just the data of the stateful applications running on the VMs (or bare metal servers, I do identical stuff for them). For postgres, I used to just have a systemd timer t
695.
▲
by
TheDong
2y ago
You don't have to use -p with docker's default settings. $ docker run --rm --name listen busybox sh -c 'echo hi | nc -l -p 8000' # in another terminal $ docker inspect listen -f '{{ .NetworkSettings.
696.
▲
by
TheDong
2y ago
> he provided helpful advice They use the 'they/them' pronouns. Do you run a large open source project or website that gets security contacts? The vast majority of security reports are poorly written and bogus, with the
697.
▲
by
TheDong
2y ago
I think one of the culprits of this bad default is docker containers. Since docker by default runs your code in a separate network namespace, in that context '127.0.0.1' really means "accessible inside the container, effectiv
698.
▲
by
TheDong
2y ago
Yes it's valid. I am not a lawyer, this is not legal advice. As programmers, our instinct is to try to interpret things literally, as if they can be represented by math or code. Copyright is a thing of the law, and laws are not like th
699.
▲
by
TheDong
2y ago
The public spaces are subsidized by advertising. Filtering out billboards on the highway is reducing their impressions, and thus reducing the money that ultimately goes into repairing the road you're driving on. The modified AR device
700.
▲
by
TheDong
2y ago
> on disk or in memory somehow? Due to the magic of the page cache, the answer to that can be "both". If the sqlite database is being read often and not being written, the page cache will be valid and reads will pretty much nev
701.
▲
by
TheDong
2y ago
Any "comparable" struct, which is to say any struct where '==' works. No, you can't override '=='. This will not work for the average struct, and if you do use it, you now no longer can include any, for ex
702.
▲
by
TheDong
2y ago
Code is only copyrightable if it has any element of creativity. This repo is _only_ really 7 sentences, like "Please correct spelling mistakes in the following text: " (these https://github.com/zlwaterfield/sc
703.
▲
by
TheDong
2y ago
On multiple types, there's another reason there's multiple types. Imagine a function that looks like: addr, err := netip.ParseAddrPort(input) if err != nil { return err } err = makeConnection(addr) if err != nil
704.
▲
by
TheDong
2y ago
> Error type reuse where different failure points produce the same type of error does not violate current idioms. I cannot immediately think of any reason for why their assumption is wrong, so unless you have other ideas? I have a progra
705.
▲
by
TheDong
2y ago
netip is one of the newer additions to the stdlib (added in ~2022), and follows the venerable stringly typed error idiom. I always interpreted the preference for stringly typed errors as a way to keep the Go language simpler. Good error han
706.
▲
by
TheDong
2y ago
This is nonsense if it's meant to be interpreted as anything but a joke, or as a way to maximize your own personal fun. If you send me $20k of bitcoin and a UUID, I will run 'crypto.randomUUID()', and if I get the same UUID a
707.
▲
by
TheDong
2y ago
Stringly typed errors are also idiomatic in go, if you follow the stdlib. Like, are you doing anything with TLS? String matching: https://github.com/golang/go/issues/35234 Using the stdlib ssh stuff? String m
708.
▲
by
TheDong
2y ago
Patents can be licensed, and automakers are already effectively at a patent stalemate, so any enforcement is unlikely. Just like Microsoft's various patents on Linux haven't stopped companies from making Android phones, just resul
709.
▲
by
TheDong
2y ago
Ah, yup, you're right. Ballmer's answer of "high or low" isn't in the offset number system, but the normal one, so my strategy doesn't work. That's what I get for not thinking it through properly, thank yo
710.
▲
by
TheDong
2y ago
Edit: Oops, nope, this comment is wrong, ty fgna for pointing that out! I feel like there's an even simpler proof that you can beat adversarial-ballmer, with exactly the same expected positive outcome as binary search vs random ballmer
711.
▲
by
TheDong
2y ago
nongnu.org is also run by the same people as gnu.org, but hosts software which isn't currently officially part of the gnu project. Basically, it's an area for software that is aligned with the GNU philosophy, might one day become
712.
▲
by
TheDong
2y ago
> your bits are illegal and your other identical bits are legal That happens all the time though. If I rip a copy of a movie for backup purposes, that rip is legal. If I upload a torrent of it, the exact same bits on my disk are now ille
713.
▲
by
TheDong
2y ago
You distinguish between them by whoever pays for the more expensive lawyer. That's how the law works in ambiguous cases.
714.
▲
by
TheDong
2y ago
It is relevant. To quote wikipedia: https://en.wikipedia.org/wiki/Threshold_of_originality#Mecha... > The U.S. Copyright Office has taken the position that "in order to be entitled to copyright registration, a
715.
▲
by
TheDong
2y ago
Yes. And since we're talking about a legal matter, the color of your bits matters quite a bit: https://ansuz.sooke.bc.ca/entry/23
716.
▲
by
TheDong
2y ago
Where do we draw the line between a computer converting a png to a jpg, resulting in the image looking different, and an artist making a fair-use protected transformative derivative piece of art inspired by it? The line we draw is "did
717.
▲
by
TheDong
2y ago
It's surprising the go tooling doesn't have a more native way to do something like this already. Upstream issue: https://github.com/golang/go/issues/50745 Like, go already has test caching (so "
718.
▲
by
TheDong
2y ago
The problem isn't so much "falling for the scam", as "stealing from the bank". Even if, for example, you find a loophole that allows you to make 100% guaranteed money, the deposits of the bank belong to the bank, th
719.
▲
by
TheDong
2y ago
The terms of art here are money laundering and "Money Mule" https://en.wikipedia.org/wiki/Money_mule Basically, the real scammers have a series of people who have bank accounts, but don't know the true i
720.
▲
by
TheDong
2y ago
In a lot of countries, trial-periods are less of an interview and more of a "Firing you in the future will be incredibly hard, so we have a 3 month trial period where if you show up on time every day, you'll get converted to full
More ›