Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
piaste
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
301.
▲
by
piaste
4y ago
The name of a friend, sure, I agree. What about the name of a dude you got introduced to at a party and they mentioned they played the guitar and you were thinking about starting a garage band the next year?
302.
▲
by
piaste
4y ago
> Short thesis : According to quantum mechanics, the universe doesn't make up its mind till you ask it to. Or, in CS lingo, the universe is lazily evaluated. Real World [runs on] Haskell.
303.
▲
by
piaste
4y ago
In Denmark I received English copies of various work / housing contracts, with a very clear disclaimer "in case of any disputes, the Danish text applies". I believe we did the same in Italy with foreign clients - Italian bind
304.
▲
by
piaste
4y ago
> 3. Truncate those hashes to 32 bits (Because there are a lot of them :( ) Is it worth all this trouble just to get a Nx space saving? Because if you just published the 256-bit hashes directly, you could skip the following steps entirel
305.
▲
by
piaste
4y ago
For many people, there is an option that side-steps the racket entirely, massively improves their QoL, and can even save money in the long term - laser eye surgery. (disclaimer: prices are likely to be different in other countries) Prices a
306.
▲
by
piaste
4y ago
If you want something old and battle-tested, Spring Boot works just fine in Kotlin. I found the extreme OO design kinda off-putting, but once I got over it I had a great time with it. KTor [0] is the 'native' web framework for Kot
307.
▲
by
piaste
4y ago
Are you against the "pro-life" agenda?
308.
▲
by
piaste
4y ago
UnreachableException has no special behaviour at all [0]. It's just a standardized 'tag' around regular Exception. The only advantage of using a standard tag is that it will be recognized by other programmers, and maybe some
309.
▲
by
piaste
4y ago
They could easily have declared TeamId as non-nullable in modern C# too. The issue they had is: (a) TeamId is legitimately nullable at creation, there are valid SlackEvents without a TeamId (b) They wanted to assert "TeamId won't
310.
▲
by
piaste
4y ago
> If you want to pass a struct-type around which has nullable fields, but you have already checked for non-null (like this one) you need to convert to a different struct-type, which doesn't have the nullability on its fields. Which
311.
▲
by
piaste
4y ago
Strange choice. There's no shortage of minimalist desktop-oriented distros out there. Even if you specifically want a musl-based distros, Void Linux has a minimal base image which is probably a better starting point. I don't see m
312.
▲
by
piaste
4y ago
Stopping on the side of the road should get you a DUI, for the reason you listed. I didn't suggest that - although I guess stopping too late is still better than staying on the road! I've slept in my car in night clubs' par
313.
▲
by
piaste
4y ago
Well, even so, getting a DUI while sleeping is strictly better than getting a DUI after a car crash. Plus, I don't know how American cops work, but hopefully they're less likely to stop and breathalyze a dude sleeping in a parking
314.
▲
by
piaste
4y ago
A more narrow lesson: this is why all SQL statements involving NULL are always false. > in any case, losing power means the transmitter stops transmitting. > and here's the fun part: your circuit which controls that inserter is s
315.
▲
by
piaste
4y ago
6. Sleep in your car I think it's important to add this one because it's free and doesn't even require previous planning, so it's very hard to argue that you couldn't do it instead of driving drunk. (Although keepin
316.
▲
by
piaste
4y ago
There's a lot more variance in pure functionality between weather apps than between flashlight apps. Flashlight is literally 1 bit of information (on/off) and after that you can only add more sophisticated triggers (gestures, time
317.
▲
by
piaste
4y ago
Doesn't seem to be open source though. NRK has a bunch of open-source projects on github [0], but the app isn't one of them, only some support libraries [1] [0]: https://github.com/orgs/nrkno/ [1]: http
318.
▲
by
piaste
4y ago
+1. Geometric Weather is one of the rare FOSS apps that also have slick, modern UX.
319.
▲
by
piaste
4y ago
> Postgres already has the `Insert foo on conflict do update` type syntax which I think is generally better. INSERT... ON CONFLICT is awesome, but it has some limitations. The one I ran into most commonly is that it can only handle exact
320.
▲
by
piaste
4y ago
I would say the difference is that you can put a shim interface between your code and a library, allowing you to switch it out safely if desired. A framework is a library that is so pervasive that you cannot reasonably do so - your shim wou
321.
▲
by
piaste
4y ago
Higher comp beats "nice to have" benefits, but it doesn't beat a non-shitty work day every day. I don't know how much you'd have to pay me to accept to be treated like a child or a slave for eight hours a day, but i
322.
▲
by
piaste
4y ago
> likely won’t retire here so won’t use those either I don't know which country you're living in, but surely the money you paid into a pension scheme - be it public or private - doesn't just disappear because you moved to
323.
▲
by
piaste
4y ago
As a person without kids, I'm painfully aware that I'm not (yet) contributing to building the future in which I hope to still be living in, several decades from now. There are countless things the State spends money on that I rese
324.
▲
by
piaste
4y ago
Italy is either two or three days, I can't remember which. The reason, I believe, is that there are random checks by the health service to ensure people on sick leave are actually sick. But if you only take a day off due to a headache,
325.
▲
by
piaste
4y ago
> less accountable Governments are always more accountable than private companies, because the only way an ordinary citizen can force a private entity to cease its abuse is... through the government. (No, "voting with your wallet&qu
326.
▲
by
piaste
4y ago
I think I would use a lightweight 'reference' table with the unique index, put the actual data in the partitioned table, and use a foreign key to enforce a 1:1 relationship. Something like this: create table orders(
327.
▲
by
piaste
4y ago
It's very good and healthy to have a life outside of work, but you're still going to spend anywhere between 25 to 60 hours a week working. Making sure that you actually enjoy those hours has a massive impact on your quality of lif
328.
▲
by
piaste
4y ago
VPN and ISP are similar in term of middlemen, but there is an important difference downstream of said middlemen. With your ISP, you appear on the internet as a residential IP that provides your approximate location and most likely doesn
329.
▲
by
piaste
4y ago
I'm very blissfully unengaged in Twitter as well, could you kindly spell out what it is you are referring to as the "elephant in the room"?
330.
▲
by
piaste
4y ago
Perhaps because that kind of person only uses a computer for work, and never for themselves. If their career won't see any benefits by improving their computer skills, they have no reason to care about inefficiency.
More ›