290 karma · joined Nov 11, 2016 (10y ago) · 104 submissions
comment 2w ago · link · parent
https://reconwave.com/blog/post/storing-private-keys-in-txt-...
Discussion: https://news.ycombinator.com/item?id=41630461
comment 3mo ago · link · parent
Unfortunately, the EU is currently developing their age-verification-app, and it mandates hardware attestation[1], and it seems that their reference implement those requirements using Play Integrity[2].
[1]: https://news.ycombinator.com/item?id=49148128 [2]: https://github.com/eu-digital-identity-wallet/av-doc-technic...
comment 3mo ago · link · parent
* Getting a dev env with `nix-shell -E '(import <nixpkgs> {}).somePackage'` where I can edit the source and compile it with the various `runPhase` commands[1]. Yes, a bit cumbersome, but it works and it is the same for all packages.
* Integrating the resulting patch into the package manager using overrides[2]. Sure, applying the patch may break at some point, but I am more comfortable reviewing that by hand than rely on an agent that does it for me.
[1]: https://wiki.nixos.org/wiki/Nixpkgs/Create_and_debug_package... [2]: https://wiki.nixos.org/wiki/Overlays#Adding_patches
comment 4mo ago · link · parent
* Contributors without github accounts * Moving away from github (when needed) * No vendor lock-in for github stuff.
I personally think, this is a good idea - a lot of work, but may be worth it in the long run.
comment 4mo ago · link · parent
This makes it impossible to flatten - as the VM needs to know the total size when creating the memory layout for a class...
* (with a small exception: if the strings use different coders, one can be twice as long and the backing arrays would still have the same size)
comment 4mo ago · link · parent
[1]: https://www.freedesktop.org/software/systemd/man/latest/mach...
comment 5mo ago · link · parent
comment 5mo ago · link · parent
The logic behind this is: It was possible to do this before the introduction of those APIs anyway - but you could not read the response.
You could send a GET request by, for example, embedding an image. And you could send a POST request by submitting a form - even if the form did only consist of hidden elements.
Those are called "simple requests": https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/COR...
It is expected from web application that they can correctly handle those requests, even when they were sent from a different origin (for example, blocking them by using a CSRF token).
It was however not expected that existing web applications could handle non-simple requests - as the ability to do so was restricted either to command line tools or required other user interaction/configuration. This is where the preflight request comes in - send an OPTIONS to check if the other side is okay with that kind of request.
But what CORS do is: It can make the response available to the requesting script - the request did already happen if it didn't require a preflight.
comment 5mo ago · link · parent
Frege targets Java source code, which is then compiled by javac - the downside of that approach is you can not preserve the line numbers for debug information.
comment 5mo ago · link · parent
var foo = expr ? new Foo() : new Bar();
For such an expression, some superclass or superinterface for both Foo and Bar has to be chosen.What I am curios about is, if the java classfile API[1] provides a good model that could work in Haskell as well - I always had the impression that it was heavily influenced by functional programming, for example it uses "lifting transforms"[2].
PS: Good work on the label resolving part - this model is also used by the Java Classfile API and before it, ASM.
[1]: https://docs.oracle.com/en/java/javase/26/docs/api/java.base... [2]: https://docs.oracle.com/en/java/javase/26/docs/api/java.base...
comment 5mo ago · link · parent
comment 5mo ago · link · parent
https://www.troyhunt.com/here-are-all-the-reasons-i-dont-mak...
comment 6mo ago · link · parent
And then legislation required those consent boxes back, so everyone built their own, instead of demanding that the default should be changed back.
comment 6mo ago · link · parent
> To protect the wiki against automated account creation, we kindly ask you to answer the question that appears below (more info): What is the output of: LC_ALL=C pacman -V|sed -r "s#[0-9]+#$(date -u +%m)#g"|base32|head -1
Wait, they really do that...
comment 6mo ago · link · parent
It doesn't have all the bells and whistles - so no support for annotations or arrays, but for ~2h of work, it shows what is possible without resorting to bytecode generation.