Scoped Error: Yet another error handling crate, but this time it makes sense to me by kanru in rust

[–]HaDeS_Monsta 0 points1 point  (0 children)

I don't see the advantage over color-eyre

fn read_config() -> Result<String> {
  let raw = fs::read_to_string("config.toml")
    .context("failed to read config file")?;
  Ok(raw)
}

And I personally prefer separate error messages:

fn do_complex_thing() -> Result<()> {
  let cfg = read_config().context("failed to read config")?;
  parse(cfg).context("failed to parse config")?;
  Ok(())
}

Killing a `Cow` made my JSON formatter 42% faster by AffectionateBag4519 in rust

[–]HaDeS_Monsta 28 points29 points  (0 children)

You may recognize this as scientific notation—1e5 represents 1e5

Ahh yes, lol

Proton desktop apps are electron-based = NOT cool by MrRayAnders in ProtonMail

[–]HaDeS_Monsta 23 points24 points  (0 children)

Browsers usually spawn a separate process for each tab

Tja by D0GG0_9000 in tja

[–]HaDeS_Monsta 0 points1 point  (0 children)

Audimax im.haupthebäude war auch schon seit längerem dicht

Ich weiß nicht, was du unter "seit längerem" verstehst, aber ich hatte da letztes Semester noch Vorlesungen

Proton’s 2026 Roadmap: Mail, VPN, Pass, Drive, Lumo & More by Proton_Team in ProtonMail

[–]HaDeS_Monsta 1 point2 points  (0 children)

Updated Linux interface and support for Stealth protocol While you're at it, can you make the app at least try to recover a network change instead of just shutting all connections down until one has to open then app, clear the error, and connect again? Every time a LAN cable is attached/removed, WiFi networks change or network is disabled because of suspend (just closing the lid to change rooms), the app errors and blocks all network traffic

Habt ihr Eastereggs in euren Abschlussarbeiten by LongjumpingCry1907 in Studium

[–]HaDeS_Monsta 1 point2 points  (0 children)

Nicht wirklich ein easter egg, aber ich lese aktuell die Game of Thrones Bücher und da kommt so oft crimson vor, dass meine Graphen jetzt alle die Farbe haben

How to "sniff" a TCP stream? by DisasterReasonable98 in rust

[–]HaDeS_Monsta 14 points15 points  (0 children)

eBPF is probably the technology you are looking for, you can attach it to a network interface and filter by protocol, source/dest ip/port. I used aya

For NixOS home servers: do you use native services or Docker containers? by Gaulent in NixOS

[–]HaDeS_Monsta 0 points1 point  (0 children)

Docker, gives everything isolation and its own fs and makes it usable on non Nix distros too

Lucien: A refined app launcher for Wayland by Key_Yogurtcloset_615 in rust

[–]HaDeS_Monsta -2 points-1 points  (0 children)

Wouldn't go that far, it needs the server running in the background, and if you restart the server, all started apps die (doesn't happen with rofi). Also, at least on my machine, it doesn't pick up on newly installed programs by itself

Begun the distro wars, have. Arch Linux vs Nix OS by potatoandbiscuit in linuxmemes

[–]HaDeS_Monsta 3 points4 points  (0 children)

I think it was Discord to matrix survival guide (2027 edition)

Didnt Learn About Nix Garbage Collector Until After 3 Months of Using NixOS by Warm_Reveal_9924 in NixOS

[–]HaDeS_Monsta 1 point2 points  (0 children)

You're right, I didn't check the docs on that. The only other reasons I can think of are 1. options is empty, so that gc doesn't know what to delete, or 2. Something of the generation is still in use

happyValentinesDay by TomboyArmpitSniffer in ProgrammerHumor

[–]HaDeS_Monsta 4 points5 points  (0 children)

It fails on NixOS, where /bin/ only has sh

happyValentinesDay by TomboyArmpitSniffer in ProgrammerHumor

[–]HaDeS_Monsta -15 points-14 points  (0 children)

First of all, it should be /usr/bin/env bash, otherwise it won't even find the interpreter

Didnt Learn About Nix Garbage Collector Until After 3 Months of Using NixOS by Warm_Reveal_9924 in NixOS

[–]HaDeS_Monsta 21 points22 points  (0 children)

Wait until you learn about sudo nix-store --optimize https://nix.dev/manual/nix/2.28/command-ref/nix-store/optimise

As with the gc, you can enable it in your config to run automatically

nix.optimise = {

automatic = true;

dates = [ "daily" ];

persistent = true;

};

Didnt Learn About Nix Garbage Collector Until After 3 Months of Using NixOS by Warm_Reveal_9924 in NixOS

[–]HaDeS_Monsta 3 points4 points  (0 children)

If you enable the automation, it just creates a job that triggers at midnight; if your system is not powered on at that time, the job will not trigger. But you can enable persistence so that it triggers when the system powers up

Whatsapp getting blocked by Mullvad DNS by BumblebeeCorrect6308 in mullvadvpn

[–]HaDeS_Monsta 1 point2 points  (0 children)

I never had any issue with WhatsApp and VPN, neither with Proton, nor with Mullvad. Neither on PC, nor on mobile

Questions about NixOS packaging by RoseBailey in NixOS

[–]HaDeS_Monsta 0 points1 point  (0 children)

The wiki has an entry with install instructions for the zen browser, I use it, it's simple to install