621 karma · joined Jan 11, 2018 (8y ago) · 450 submissions
comment 6y ago · link · parent
Presumably by now scp is sufficiently tested not to have this bug. But this is precisely a defense against an evil server sending bad bytes.
comment 6y ago · link · parent
I often need to transfer very large binary files. When stuck with standard Linux tools, the fastest process is first transfer via scp. If the scp gets interrupted, resume it using rsync with the —-append-verify option.
comment 6y ago · link · parent
If that were the case, there would be nothing unethical about a 30% tax nor a 90% tax.
Therefore, it’s not the size that’s the problem, but the fact that the tax isn’t communicated to the consumer, and also that Apple wants you to charge the same price in-app as elsewhere (though I’m not sure if that part is enforced)
comment 6y ago · link · parent
In PostgreSQL's case, if they somehow made repeatable read to prevent G2-item without sacrificing the phantom reads, would that mean repeatable read is then "serializable" according to the ANSI definition?
comment 6y ago · link · parent
Any insights into why we should want repeatable read to block that? It feels like blocking that is specifically the purpose of serializable isolation.
comment 6y ago · link · parent
But for shared linux servers, sudo is very useful. It allows controlling which users are allowed to administer the system. (Generally, people who aren't sudoers can only view log files or do other readonly things). It's much better than letting people login as root directly since it keeps an audit trail of who is actually administering the device (they will show up using the `users` command, for example).
I rarely use sudo to do any fine-grained access control - it's almost always an all-or-nothing configuration - specific users are granted full access (with passwords), and everybody else gets none. I suppose this means that I use only 5% of it's functionality, but this 5% is quite useful.
comment 6y ago · link · parent
That’s why for function calls passing multiple arguments where each argument may be non trivial, it’s a good idea to put each argument on its own line.
comment 6y ago · link · parent
comment 6y ago · link · parent
I very rarely apologize for a bug at work. I don’t expect others to apologize to me either. Apologies should be reserved for personal/relationship things, like forgetting to invite somebody to a meeting.
comment 6y ago · link · parent
Recently, in the middle of an important team discussion where we had a brief lull waiting for senior people to respond, one coworker decided to ask me some off-topic questions. It would have made 10x more sense to send them as DM, or at least start a single thread. But converting messages to a thread or moving to another channel is hard so there was nothing I could do (aside from asking them to delete all the messages)
comment 6y ago · link · parent
comment 6y ago · link · parent
So it would be:
select a, last_value(b) over(partition by a), last_value(c) over(partition by a) from table
Note the lack of a "GROUP BY" so this will result in duplicates unless you add a DISTINCT.