The easier, less invasive but also less accurate option would be to publish an empty crate with a random name that does not exploit typos (just some random junk) and check how often that crate is downloaded. You can…
AFAIK antivirus systems do (did?) not scan RAM, only persistent memory. So decrypting/decoding the malware in-memory and jumping into the code should avoid detection. That's how "runtime crypters" work or used to work a…
Well then you have to check the generated tests. That's just one more layer, isn't it?
Could you share a link to your repo? This setup sounds interesting. Currently I have two separate repos for NixOS and home-manager.
> Most of the tests I write aren't for pure functions In response to this, I recommend the "Functional Core, Imperative Shell"[0] talk/pattern. The idea is to extract your business logic as pure functions independent of…
Dito for German: "vom Laster gefallen"
During the quarantine, I started photographing on film, developing the film at home and digitize the negatives using my DSLR. At least for B/W film, the process of developing film yourself is dead easy and I'm happy to…
Sure, if you have an either/result type, the whole thing becomes a fold, where each validator is a function from user to Either<Error, User> and then validators.reduce(Either.right(user), (acc, next) ->…
When validation gets complex (e.g. there are many criteria to check), I like to build a list/stream/array (what ever the language offers) of tuples of predicates (functions from the object that gets validated to…
In my opinion this pattern is better if you write it like this: _ = isDefined(user) || throw new Error("user must be defined") This reads way more natural for me. "A user is defined OR throw an error"... I've also seen…
You can install nix side by side to your distro package manager and only install some packages using nix. You could also use something like lorri and direnv and let nix only manage your code projects and when entering…
Yeah should have validated that claim first. Seems like the form on hibp.com always submits your input to the server... Still, if I had to chose between hibf.com and hibp.com, I'd lean to hibp.com since Troy is a known…
I think HIBP implements it like this: you hash your email/phone number and send only a prefix of the hash to the server. The server responds with a list of hashes matching the prefix. Now you can check if your hash is…
From what I can see, this site sends your whole number to the backend to search for a number in the dump[0], while haveibeenpwned.com will hash the input, send only a prefix to the server and receive a list of hashes…
IMO tinc is really awesome. I've been using it for years to connect my servers, laptops and desktops into a VPN. Including my RPI (running PiHole in my LAN) into the tinc VPN gave me an easy way to access my home…
> Bitcoin consumes more energy than all of China This is not true. Bitcoin energy consumption is somewhere between Chile and Argentina.
This is in reference to "Hashes cannot be undone". One-way functions are functions that are easily computed given any input but where it is hard/impossible to compute the/a input if you only know the output. This is the…
Small nitpick: The existence of one-way functions has not been proven, yet. Actually proving this would also prove `P != NP` so this would be a big deal (interestingly enough, proving that one-way functions do _NOT_…
The easier, less invasive but also less accurate option would be to publish an empty crate with a random name that does not exploit typos (just some random junk) and check how often that crate is downloaded. You can…
AFAIK antivirus systems do (did?) not scan RAM, only persistent memory. So decrypting/decoding the malware in-memory and jumping into the code should avoid detection. That's how "runtime crypters" work or used to work a…
Well then you have to check the generated tests. That's just one more layer, isn't it?
Could you share a link to your repo? This setup sounds interesting. Currently I have two separate repos for NixOS and home-manager.
> Most of the tests I write aren't for pure functions In response to this, I recommend the "Functional Core, Imperative Shell"[0] talk/pattern. The idea is to extract your business logic as pure functions independent of…
Dito for German: "vom Laster gefallen"
During the quarantine, I started photographing on film, developing the film at home and digitize the negatives using my DSLR. At least for B/W film, the process of developing film yourself is dead easy and I'm happy to…
Sure, if you have an either/result type, the whole thing becomes a fold, where each validator is a function from user to Either<Error, User> and then validators.reduce(Either.right(user), (acc, next) ->…
When validation gets complex (e.g. there are many criteria to check), I like to build a list/stream/array (what ever the language offers) of tuples of predicates (functions from the object that gets validated to…
In my opinion this pattern is better if you write it like this: _ = isDefined(user) || throw new Error("user must be defined") This reads way more natural for me. "A user is defined OR throw an error"... I've also seen…
You can install nix side by side to your distro package manager and only install some packages using nix. You could also use something like lorri and direnv and let nix only manage your code projects and when entering…
Yeah should have validated that claim first. Seems like the form on hibp.com always submits your input to the server... Still, if I had to chose between hibf.com and hibp.com, I'd lean to hibp.com since Troy is a known…
I think HIBP implements it like this: you hash your email/phone number and send only a prefix of the hash to the server. The server responds with a list of hashes matching the prefix. Now you can check if your hash is…
From what I can see, this site sends your whole number to the backend to search for a number in the dump[0], while haveibeenpwned.com will hash the input, send only a prefix to the server and receive a list of hashes…
IMO tinc is really awesome. I've been using it for years to connect my servers, laptops and desktops into a VPN. Including my RPI (running PiHole in my LAN) into the tinc VPN gave me an easy way to access my home…
> Bitcoin consumes more energy than all of China This is not true. Bitcoin energy consumption is somewhere between Chile and Argentina.
This is in reference to "Hashes cannot be undone". One-way functions are functions that are easily computed given any input but where it is hard/impossible to compute the/a input if you only know the output. This is the…
Small nitpick: The existence of one-way functions has not been proven, yet. Actually proving this would also prove `P != NP` so this would be a big deal (interestingly enough, proving that one-way functions do _NOT_…