Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
CloselyChunky
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
CloselyChunky
5y ago
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 assume that almost all d
2.
▲
by
CloselyChunky
5y ago
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
3.
▲
by
CloselyChunky
5y ago
Well then you have to check the generated tests. That's just one more layer, isn't it?
4.
▲
by
CloselyChunky
5y ago
Could you share a link to your repo? This setup sounds interesting. Currently I have two separate repos for NixOS and home-manager.
5.
▲
by
CloselyChunky
5y ago
> 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
6.
▲
by
CloselyChunky
5y ago
Dito for German: "vom Laster gefallen"
7.
▲
by
CloselyChunky
5y ago
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 have a hobb
8.
▲
by
CloselyChunky
5y ago
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) -> acc.flatMapRight(ne
9.
▲
by
CloselyChunky
5y ago
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 boolean) and strin
10.
▲
by
CloselyChunky
5y ago
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
11.
▲
by
CloselyChunky
5y ago
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 the project directory,
12.
▲
by
CloselyChunky
5y ago
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 name in the indu
13.
▲
by
CloselyChunky
5y ago
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 in the list. If s
14.
▲
by
CloselyChunky
5y ago
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 with the same prefix. I
15.
▲
by
CloselyChunky
5y ago
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 network from anywhere
16.
▲
by
CloselyChunky
6y ago
> Bitcoin consumes more energy than all of China This is not true. Bitcoin energy consumption is somewhere between Chile and Argentina.
17.
▲
by
CloselyChunky
6y ago
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
18.
▲
by
CloselyChunky
6y ago
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_ exist, would _NOT_ prove