Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
d0mine
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
841.
▲
by
d0mine
4y ago
Usually a derived exception is a special case of the base exception e.g., OSError -> FileNotFoundError. Sometimes you want to handle specific error differently and sometimes you don't care. btw, it may be the reason to create a new
842.
▲
by
d0mine
4y ago
It is false. Click the link to the FAQ. The paragraph for the quote begins with "To protect the data that is not covered by end-to-end encryption"
843.
▲
by
d0mine
4y ago
I would prefer peace but the empire makes it impossible. Only because one can do evil things with impunity doesn't make it right. People are people and the murder is murder.
844.
▲
by
d0mine
4y ago
It is false that chats are "unencrypted" (I know, it is repeated on every submission about Telegram here but it does not make it true whatever Goebbels said). Here's a quote from the FAQ: "The relevant decryption keys a
845.
▲
by
d0mine
4y ago
How many Indians were there before Columbus? How many remains? Compare it with the numbers for the examples you provided.
846.
▲
by
d0mine
4y ago
iPhone 13 Mini has an annoying power (side) button placement: it is almost opposite volume buttons—screenshot is triggered often by accident.
847.
▲
by
d0mine
4y ago
All these murder drones won't program themselves. Pandemic is a good time to hire some unscrupulous devs.
848.
▲
by
d0mine
4y ago
Chats are encrypted. The question who can decrypt them by default. It is a trade-off between security and usability. By default, you get usability (e.g., you can chat across devices easily). But you think it is worth the cost, you can mak
849.
▲
by
d0mine
4y ago
Another name for the API provided by "buffet" could have been "console" (combination of monitor+keyboard: read/write API).
850.
▲
by
d0mine
4y ago
SharedMemory is a part of the multiprocessing module
851.
▲
by
d0mine
4y ago
Talking with peoples who believe they live in a democracy reminds me of talking with religious people: they think if you don't believe in their god, than it means you are evil immoral person. Rational arguments (facts, evidence) do not
852.
▲
by
d0mine
4y ago
There are many naive people. Try to look at relative military spending around the world and think about trust, about where all these weapons will be applied eventually.
853.
▲
by
d0mine
4y ago
The economy is global. If you like independence look at Cuba--it is "independent" for decades now. Thanks to sanctions, Russia is becoming independent (less/no ties to outside economies)--do not recommend.
854.
▲
by
d0mine
4y ago
I debugged Python code in Emacs just fine. It is much less useful than logs for the work I do but it has its moments.
855.
▲
by
d0mine
4y ago
So, what I'm hearing that unlike all the other sufficiently popular apps to matter, Telegram doesn't provide unlimited access to their user data.
856.
▲
by
d0mine
4y ago
There are many concepts useful that are decades old e.g., you could learn shell pipelines in 7x and use them to this day. Once learned, you can reuse indefinitely the notions "tight cohesion", "loose coupling" (just an e
857.
▲
by
d0mine
4y ago
that's the official propaganda. There is no truth in war.
858.
▲
by
d0mine
4y ago
"That said, the 23% that are owned by the public sector service 92% of the population.”
859.
▲
by
d0mine
4y ago
Even If we ignore the actual achievements of different societies claiming they implement "ism" of one kind or another, any "ism" from XIX century regarding human behavior at scale is naive. If the theory of phlogiston we
860.
▲
by
d0mine
4y ago
My rule of thumb is: document informally (loosely following ADR) those decisions that had to be discussed more than once (encourage alignment) and that lead to a nonobvious change in process (to look up the choice(reference)/its contex
861.
▲
by
d0mine
4y ago
It looks like a distinction without a difference. We can consider `None and f()` pattern as explicit syntax that unwraps objects as necessary without infecting other code. Background: an object that either None or true in a boolean context
862.
▲
by
d0mine
4y ago
All these lambdas seem excessive. "Maybe"-like pattern in Python can look like (None is falsy and custom objects are true): # note: `None and f()` returns None without calling f balance = user and user.get_balance() credit
863.
▲
by
d0mine
4y ago
It is unlikely (unless there is a benchmark that says otherwise). Before the walrus operator, the single item loop could have been used: nonblank = [value for line in file for value in [line.strip()] if value]
864.
▲
by
d0mine
4y ago
Yes. Scopes are complicated e.g., class Foo: a = [1,2,3] b = [4,5,6] c = [x * y for x in a for y in b] that leads to NameError: name 'b' is not defined https://bugs.pyt
865.
▲
by
d0mine
4y ago
You don't need multiple threads to perform IO asynchronously. And in reverse, using threads won't prevent lock-ups: the opposite is likely. [Pre-emptive] threads compared to external processes require much more careful coordinatio
866.
▲
by
d0mine
4y ago
If truth is on your side, you should not be afraid if someone is pointing out potentially illuminating facts. You just put them in proper context. Or your point that the statements are actually false?
867.
▲
by
d0mine
4y ago
> CCP apologist Could you link to the corresponding comments? (two link would be enough)
868.
▲
by
d0mine
4y ago
If nothing else, consider that the burn-out is a real thing. If you can't rest, schedule it. Don't allow any work at the scheduled time.
869.
▲
by
d0mine
4y ago
Fabric can be a replacement for adhoc shell scripts for chore/CI tasks in a project e.g., it can be `make docs` replacement. It is the best of both worlds: shell one-liners glued together using Python. It doesn't replace ansible-
870.
▲
by
d0mine
4y ago
The paradox is that if you are enjoying your lessons then you are not learning effectively "The research seems to suggest it’s the struggle that enables us to learn." https://learningspy.co.uk/learning/learnin
More ›