Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
planede
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
331.
▲
by
planede
3y ago
There is a similar story about retaining/stripping copyright notices in the Linux kernel (btrfs). https://lwn.net/Articles/912355/ I think stripping copyright notices is only appropriate if one entity unambig
332.
▲
by
planede
3y ago
Good. So why require the user to add up the values? Some alternatives: * Click all the dice with value 5. * Click all the pictures with a roll of 4 and 5. (each picture shows a pair of dice). If you test for pattern recognizing the number o
333.
▲
by
planede
3y ago
I don't see this as a real fork, the same way CentOS isn't (or wasn't) a real fork for RedHat, or Iceweasel wasn't a real fork of Firefox. This seems only meant to be work around the trademark. If all this does is to est
334.
▲
by
planede
3y ago
Some genius who designed the dice captcha: "You know what's easy for humans but computers suck at? Addition!"
335.
▲
by
planede
3y ago
> You cannot load or write (may only have been one of those operations, strangely) a file containing non-ASCII characters with the C/C++ libraries if you target Win. This is definitely not true, at least for C++, but I agree that it
336.
▲
by
planede
3y ago
I don't get this behavior for your second command, it just seems to return an empty string. edit: There are three cases to cover: 1. The value at the path exists and not null. 2. The value at the path exists and is null. 3. The value a
337.
▲
by
planede
3y ago
Three finger tap works on my machine.
338.
▲
by
planede
3y ago
From the pictures of error diffusion dithering it looks like they are consistently applied from row-by-row in the same direction (probably left to right). There is a variation of these where every odd row is processed in one direction (left
339.
▲
by
planede
3y ago
Hungarian here. Yes, it needs a lot of sour cream. Having said that now living in the UK I rather use crème fraîche, which I find closer to what you can buy in Hungary.
340.
▲
by
planede
3y ago
My take on this is that code should always match up malloc and free, but your application may use an allocator where free is noop, if that's appropriate for the application you write. This way your code is more generic and can be reuse
341.
▲
by
planede
3y ago
Maybe, then it serves that purpose (if it's indeed their domain). But why redirect then or even point them to an HTTP server? Anyway, I would never choose to fight this battle, feels rather futile. It doesn't help that they have a
342.
▲
by
planede
3y ago
That might be the real answer, but not very satisfactory, as it suggests that this domain just shouldn't exist. At least 7-zip.org could have a list of domains that they own and control if they wish people to use these alternate domain
343.
▲
by
planede
3y ago
These redirects are cute, but how can we be sure that the domain is owned by the same people as 7-zip.org? I can imagine an attack scenario where someone with malicious intent registers seven.zip, initially sets it up to redirect 7-zip.org.
344.
▲
by
planede
3y ago
I guess the main purpose of the submission has been lost, as HN resolved the redirect ahead of time. https://seven.zip redirects to 7-zip.org .
345.
▲
by
planede
3y ago
How do human programmers develop code? They also don't keep all the code in their head and then dump thousands of lines of code linearly in one go. Instead of feeding whole files, or even whole functions as context we could give the AI
346.
▲
by
planede
3y ago
Moreover, is "every lock requires a syscall" accurate? Probably depends on target platform and standard library, but my impression was that at low contention it doesn't really require syscalls, at least on Linux and glibc
347.
▲
by
planede
3y ago
The proof seems to concentrate on the marginal distribution as n goes to infinity. But the simulation hints at something more interesting: each sample of the random process seems to converge to a value, where the value itself is U(0,1). Is
348.
▲
by
planede
3y ago
At least you can build on docker runners instead of fragile shell runners on MacOS. But any benefits are probably not worth the cost of complexity of cross compilation.
349.
▲
by
planede
3y ago
Technically it's possible, but possibly not legal: https://github.com/tpoechtrager/osxcross > Please ensure you have read and understood the Xcode license terms before continuing. According to the EULA you may
350.
▲
by
planede
3y ago
I don't follow how this parameter works then in Record: const taskCounts = { work: 10, home: 5, personal: 3 }; const what : Record<string, number> = taskCounts; // OK, covariance? const the : Record<"wo
351.
▲
by
planede
3y ago
Huh, nice! Looking at the documentation[1], I assume this is the difference between "exact object types" and "inexact object types". I though about bringing this up for Python TypedDict, so I'm glad there is an actu
352.
▲
by
planede
3y ago
It seems to be stem from `Record` being contravariant in its Key type, right? const taskCounts = { work: 10, home: 5, personal: 3 }; This probably has the deduced type of `Record<"work" | "home" | "persona
353.
▲
by
planede
3y ago
Yeah, you are right that 6.3 lists all conversions, implicit and explicit. https://cigix.me/c17#6.3.p1 > Several operators convert operand values from one type to another automatically. This subclause specifies the resul
354.
▲
by
planede
3y ago
Uh, so for how long can I keep accessing my inbox through IMAP?
355.
▲
by
planede
3y ago
Well, that's just ill formed in ISO C. edit: hmm, maybe not: https://cigix.me/c17#6.3.2.3.p5 Looks like gcc rejects the implicit conversion with -std=c17 -pedantic-errors as it's such a bad idea to allow this, but
356.
▲
by
planede
3y ago
I would probably just avoid all GNUism in C. Some GNU C extensions are just plain crazy: // this compiles in GNU C int * foo(int x) { return x; } Just stick to -std=c<year> -pedantic-errors if you have to writ
357.
▲
Let's Encrypt OCSP Problems
(forum.directadmin.com)
2 points
by
planede
3y ago
|
1 comments
358.
▲
by
planede
3y ago
It looks like Let's encrypt has problems with their OCSP repsonders. We had problems with connecting to https://apt.kitware.com through apt to install/upgrade cmake in various in-house docker images and we tracked down
359.
▲
by
planede
3y ago
You could probably do this in userspace now with userfaultfd.
360.
▲
by
planede
3y ago
AFAIK, it's only an issue if it's actually logged. Also, pretty much all services need to know the IP address during a session. It's fine if it's only used for the purpose of providing the service and not logged.
More ›