Recent submissions

Comment · 11 days ago
You can add the intermediate CA to your block list, presumably the distros will do this
Comment · 1 month ago
libkrun exists so we can just run containers inside a virtualized environment without special tooling
Comment · 1 month ago
How exactly is cp not portable?

Whatever behaviour you’re describing is not how POSIX mandates cp to work. In fact you can do this with busybox too.

cp will open("/dev/sda", O_WRONLY | O_TRUNC) and simply start writing to that file descriptor.

Comment · 1 month ago

    cp file.iso /dev/sda
Comment · 1 month ago
len(pics) either already knows about the length or it needs to count so it’s O(n)
Comment · 2 months ago
you can use xmllint for xml via xmllint —-xpath

It’s great as it is included by default in RHEL/Fedora

Comment · 2 months ago
The document is clear that the expectation from the developer is that you need to be ready for your app to be snapshotted and frozen/killed at any moment when it is not on the foreground.
Comment · 2 months ago
Comment · 2 months ago
How does typing a url stop that?

type out: https://thisislegitparkingpaymentwebsite.com

Is this goatse or is it the real payment website for your parking? You won’t know unless you go there

Comment · 2 months ago
Linux can be configured to disable memory overcommit

sysctl -w vm.overcommit_memory=2 sysctl -w vm.overcommit_ratio=50

It is probably a bad idea to do that though as it will limit the amount of virtual address space an application can use

Comment · 2 months ago
Docker uses VMs in non-Linux OS to provide a Linux where containers can actually exist
Comment · 2 months ago
bubble wrap is just doing the same cgroups work
Comment · 2 months ago
podman run --annotation=run.oci.handler=krun -dp 8080:8080 -t --rm server-without-wasm
Comment · 2 months ago
Comment · 2 months ago
subprocess.run() uses Popen and defaults shell=False. There is no shell process involved. As the other user already pointed out.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton