Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hvdijk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
hvdijk
4y ago
Sorry to disappoint, but the compilers for nearly 100% of the server, desktop, and mobile computers in the real world do not allow arbitrary pointer arithmetic. They cannot issue an error message for it because that is provably impossible t
62.
▲
by
hvdijk
4y ago
> With the right hackish arithmetic, all pointers could be aliased with pointer arithmetic in C. This is not true. The behaviour is undefined in C if pointer arithmetic results in crossing the beginning or end of an object. If we have in
63.
▲
by
hvdijk
4y ago
A practical consequence (not necessarily the only consequence) would be for the people who starred it who use stars as a bookmark feature: they have now lost their bookmark.
64.
▲
by
hvdijk
5y ago
And since the article is using podman as an example: podman does have a manpage. The actual standard way of getting documentation on utilities, man podman, works just fine.
65.
▲
by
hvdijk
5y ago
I did not last even two paragraphs: I clicked through on "Ubuntu MATE cannot be trusted" and found something better summarised as "I tried getting away with calling people idiots on Ubuntu MATE forums in a bizarre social expe
66.
▲
by
hvdijk
5y ago
The temporary file should be created in such a way that other users cannot modify it. If that does not happen, if other users can modify it, I would regard that as a bug. Malicious processes running as the same user could potentially modify
67.
▲
by
hvdijk
5y ago
The documentation does call it out explicitly. The message you responded to pointed out where the documentation called it out. You're attacking the authors' intentions and competence when there is no reason for that.
68.
▲
by
hvdijk
5y ago
sudo $EDITOR launches the editor itself as root, sudo -e launches the editor as a regular user on a temporary copy of the original file, and copies the contents back over to the original file when you are done. The less done as root, the le
69.
▲
by
hvdijk
5y ago
> I don't think their intentions are entirely altruistic here. No part of what you wrote before this in any way suggests anything about the intentions.
70.
▲
by
hvdijk
5y ago
There are different ways people say "brrr" in English. Many of those ways have a vowel in, but not all.
71.
▲
by
hvdijk
5y ago
Public domain means it's not (any longer) under copyright and therefore no license is needed for any use.
72.
▲
by
hvdijk
5y ago
That would be the timing aspect of it. You have: a) a.out writes line 1 b) a.out writes line 2 c) head reads line 1 d) head closes the pipe We know that b and c both happen after a, and that d happens after c. However, we do not know whethe
73.
▲
by
hvdijk
5y ago
That's a POSIX thing. It doesn't apply to all C implementations but it does apply to many more than just Linux-based ones. You've not got a closed pipe so you wouldn't see it, you've just got a closed file descripto
74.
▲
by
hvdijk
5y ago
> This isn't just about the filesystem being full btw. If you imagine a command like ./foo.py | head -n 10, it only makes sense for the 'head' command to close the pipe when it's done, and foo.py should be able t
75.
▲
by
hvdijk
5y ago
Yeah, that's a good point. There is a chance it is simply not a possibility in the way their systems are currently set up, but if so, that's on Google and they should change their systems to make it possible.
76.
▲
by
hvdijk
5y ago
Are you overreacting? In my opinion, depending on how long the suspension lasts, you may be, though not necessarily. You sent unsolicited bulk e-mail. That is spam. It is possible that your mail helped some people, but anyone who had set
77.
▲
by
hvdijk
5y ago
Worth noting that this is on Lingua-Go's issues list for the 1.1.0 version: https://github.com/pemistahl/lingua-go/issues/9
78.
▲
by
hvdijk
5y ago
The comment I replied to started with "You should give hard mode a try." In hard mode, WARMS is not a valid followup guess.
79.
▲
by
hvdijk
5y ago
It's all fun until you get something like FIGHT where the last four letters are right and have to just guess from LIGHT, MIGHT, RIGHT, SIGHT, TIGHT, WIGHT, anything I might have missed, and there's no way to use any strategy and y
80.
▲
by
hvdijk
5y ago
That isn't the POSIX spec.
81.
▲
by
hvdijk
5y ago
I assume and hope that they do not, if there is no rule stating that they are invalid. There are valid reasons for JSON to massive keys. A simple one: depending on the programming language and libraries used, an unordered array ["a&quo
82.
▲
by
hvdijk
5y ago
If you mean limited by available memory, then sure but that does not apply just to key size. If you mean something else, could you elaborate?
83.
▲
by
hvdijk
5y ago
The post mentions from_chars specifically, and the quote about the range is about that function. That means we need to ask the question whether NaN is "in the range representable by the type of value" too. For most other functions
84.
▲
by
hvdijk
5y ago
That is not how Rust documents expect() should be used. Rust's own documentation ( https://doc.rust-lang.org/std/result/ ) contains: let mut file = File::create("valuable_data.txt").unwrap(); fi
85.
▲
by
hvdijk
5y ago
Probably these bits: > The user noDRM is actively promoting the activity of cracking both library loans and one-off purchases: > https://github.com/noDRM/DeDRM_tools/issues/2#issuecomment-9... > This
86.
▲
by
hvdijk
5y ago
The article is using dash. dash does not support arrays, as they are not part of what POSIX requires shells to support.
87.
▲
by
hvdijk
5y ago
A typo in a list of tests to skip means tests are run that are not intended to be run. This can lead to unexpected failures, so in my opinion is not the same as the errors in test suites where tests run with other test data than intended bu
88.
▲
by
hvdijk
5y ago
Beware that PATH being unset or empty is a special case and does not necessarily mean that no directories are searched. Different shells handle it differently, and other utilities spawned by the shells handle it themselves in a way that may
89.
▲
by
hvdijk
5y ago
That's what the extra :s in ":$PATH:" are for: they prepend and append an empty component to the list. Any component in the original "$PATH" will still be in ":$PATH:" too, but no longer be at the end or t
90.
▲
by
hvdijk
5y ago
You showed a screenshot earlier, I know what they look like for you. :) I don't override the font either. HN specifies a CSS font family "Verdana, Geneva, sans-serif", where Verdana is installed by default on Windows but is n
More ›