Recent comments in /f/programming

flabberghaster wrote

The one thing i find hard about rust is that most of the programs I write for my day to day use are things that basically just call linux system calls, or use popular C libraries, things that C++ is extremely good at. Or they're things that are trivial to do in python.

So as much as I like Rust, I don't actually know how to perform a sha256sum on a file and then set an xattr for it (without shelling out or downloading a random crate).

It's little things like that that keep it from being my go-to, but it's really good and I want to use it more.

6

emma wrote

i will put down the pitchfork, for now

to reiterate what i said on the worst chat app in existence, you gotta do the TRUSTED_PROXIES=172.16.0.0/12 thing. this will make postmill accept caddy's x-forwarded-proto: https header that i'm pretty sure it sends to the backend. there is no need to edit the templates, as someone else suggested.

4