343 karma · joined Jul 5, 2017 (9y ago) · 92 submissions
comment 3y ago · link · parent
[0]: https://github.com/SPTHvx/ezines/tree/main/dc5/CODES/Perfori...
comment 3y ago · link · parent
comment 3y ago · link · parent
For my master's thesis, I evaluated these algorithms and tried to find ways to prevent detection and came to the conclusion that it is hard if you don't want to deploy about as much sensor nodes as the botnet has active peers. Those algorithms are working really well and are hard do work around.
comment 3y ago · link · parent
Also when building and deploying an image, some non-obvious and undocumented changes are made. My app generates version information based on the git repository state. The build process deletes (or ignores, I don't know, never got an answer to my issue) the fly.toml file in the docker build context, which resulted in uncommitted changes and a "dirty" repository when building the app. My dirty workaround is to `git checkout fly.toml` in my dockerfile. It works but it isn't pretty...
comment 4y ago · link · parent
comment 4y ago · link · parent
As for Windows support: It seems to be possible to use nix in WSL [0] but I've never tried that. I have used nix alongside apt and pacman on Ubuntu/Arch before I decided to go all the way and install the NixOS distribution. Using it alongside other package managers worked really well.
comment 4y ago · link · parent
For me, it has come so far that I don't have any interpreters or compilers in my main OS environment and even for one off REPL sessions, I'll use `nix shell nixpkgs#python3 -c python3`.
[0]: https://nixos.org/
comment 4y ago · link · parent
The switch was not to hard and in the beginning I kept using my QWERTZ keyboard. After about a year I decided to stick with it and bought a QWERTY keyboard.
Having to switch back to the QWERTZ layout of coworkers is a little awkward but it's not too bad.
comment 4y ago · link · parent
Also testing the compiler against the whole ecosystem on crates.io before releasing a new version helps building trust in the backwards compatibility of new compiler versions.
So they are doing something to establish a culture where updating your compiler regularly is encouraged. I don't have actual numbers and I don't know how enterprise Rust shops handle their compiler versions, but they are doing things to encourage (not force) users to keep their compilers up to date.
comment 4y ago · link · parent
Edit:
fn scatter(&self, ray: &Ray, hit_record: &HitRecord) -> Option<(Option<Ray>, Srgb)>
The function takes a `Ray` as input, so you cannot render light without a ray. The return value might be one of the cases listed above.The `None` case might be something like a black hole: a ray hits the object and nothing happens.
The `Some((None, Srgb))` case would be a non-reflective surface, it changes the color if hit by a ray but does not reflect the ray further.
The `Some((Some(Ray), Srgb))` case would be a reflective surface, that changes the color and reflects the ray.
Again not sure about the exact semantics and I didn't read the blog post yet, but that would be my guess.
comment 5y ago · link · parent
[0]: https://www.merriam-webster.com/help/faq-how-many-english-wo...
comment 5y ago · link · parent
> a meme is an idea, behavior, or style that spreads by means of imitation from person to person within a culture and often carries symbolic meaning representing a particular phenomenon or theme
From https://en.wikipedia.org/wiki/Meme
The concept of a meme is in no way limited to images.
comment 5y ago · link · parent
- merging/combining of requirements is a monoid operation with an "empty requirement" (e.g. one that accepts every password) as the neutral element. Finding this requirement, I could write properties for the monoid properties (a + b = b+ a, a + 0 = a, and so on) - when generating a password from a requirement, the same requirement must accept the generated password (`requirement.accept(requirement.generate()`)
In general: if you find mathematical rules to your code (commutativity, associativity,. ..), these make a great starting point for property tests.
comment 5y ago · link · parent
[0]: https://about.gitlab.com/pricing/gitlab-com/feature-comparis...
comment 5y ago · link · parent
[0]: https://media.blackhat.com/bh-us-11/Dinaburg/BH_US_11_Dinabu...