farcaller

joined 2 years ago
[–] farcaller@fstab.sh 0 points 5 months ago* (last edited 5 months ago)
[–] farcaller@fstab.sh 3 points 5 months ago

the issues related to that macro still exist, but the author seemed to call it out and link to an article about it (which doesn't seem disingenuous at all to me).

That's fair, I stand corrected and I overreacted a bit.

I stumbled on the unintended cancellation a few times, but I’m used to select! paradigm from the other languages (and not used to how differently it behaves). I suppose I just expect the examples of its usage to be explicit and actually show what it takes to make select! behave in a way that doesn’t abruptly drop your async function after only going though half of it.

[–] farcaller@fstab.sh 4 points 5 months ago (2 children)

What I find slightly dishonest is bits like

This way of using select in a loop could potentially cause issues regarding cancellation of futures (although in this case it’s fine)

The select example is pretty straightforward and comparable to such in other languages, even to Go's switching on channels. But rust hides an extra bit of complexity with the cancellation concerns that people don’t want to talk about unless absolutely necessary, and it is necessary in so many cases!

[–] farcaller@fstab.sh 13 points 6 months ago (2 children)

You don’t need -it because you don’t run an interactive session in docker. It might be failing because you ask for a pseudoterminal in an environment where it doesn’t make sense.

[–] farcaller@fstab.sh 2 points 6 months ago

Seq is expecting structured logs which yours aren’t. So you want to either convert your app's logs into a structured format (which is generally hard for a random third-party application) or use a log collector that's fine with non-structured logs (e.g. Loki+grafana don’t care about the shape is your logs and you can format the output while querying).

[–] farcaller@fstab.sh 1 points 6 months ago

How does it compare to archivebox in regards to specifically saving content that's a mix of websites and YT videos?

[–] farcaller@fstab.sh 4 points 6 months ago

I’ve been using FreshRSS and Reeder (now Reeder Classic) since google reader stopped being a thing. It's pretty great.

[–] farcaller@fstab.sh 4 points 6 months ago (1 children)

There were quite a few games using the same formula (and improving on it), to the point where I feel Desperados would be my favorite in that genre, not Commandos itself.

I still remember having to reparation my drive and reinstall windows, upgrading from fat16, because commandos wouldn’t fit on either partition.

[–] farcaller@fstab.sh 5 points 7 months ago

I have a dedicated vm for things that are crucial to the home network, either latency-critical or network related.

That'd be my dns resolver (I enforce it over VLANs by hijacking anyone trying to do DNS to other resolvers, like random IoT devices), homebridge for less important home automaton and my own matter controller for most important home automaton (controlling the lights).

My router of choice is RouterOS in another VM. I tried opnsense, pfsense, vyatta, and a bunch of others (even a containerized Cisco route), and I settled on ROS, because it was the only one who could do IPv6 properly (apart from Cisco, but that has other issues).

For the less important things I run them on k8s and really, there are only two bits worth mentioning as essential: ArgoCD and nixhelm. Together, they provide effortless and mostly automated software updates with very easy rollbacks. I don’t have to go and manually update every single bit of software and that saves huge amounts of time.

[–] farcaller@fstab.sh 6 points 8 months ago (2 children)

I wonder if NixOS is a vacuum coffee maker for how confusing nix looks when you see it for the first time or instant coffee for how reproducible it is...

[–] farcaller@fstab.sh 1 points 8 months ago

That's just Slackware.

[–] farcaller@fstab.sh 2 points 8 months ago (1 children)

That's a good point. Mind that in most production environments you'd be firewalled rather hard (especailly when it comes to logs processing which oftentimes ends up having PII). I wouldn’t trust any service that tries to use DoT or DoH in there that I couldn’t snoop on. Many deployments nowadays allow you to "punch" firewall holes based on the outgoing dns requests to an allowlisted domain, so chances are you actually want to use the glibc resolver and not try to be fancy.

That said, smaller images are always good in my book!

view more: ‹ prev next ›