[-] Ephera@lemmy.ml 10 points 13 hours ago

I mean, as someone who hasn't encountered these same issues as you, I found btrfs really useful for home use. The snapshotting functionality is what gives me a safe feeling that I'll be able to boot my system. On ext4, any OS update could break your system and you'd have to resort to backups or a reinstall to fix it.

But yeah, it's quite possible that my hard drives were never old/bad enough that I ran into major issues...

[-] Ephera@lemmy.ml 5 points 20 hours ago* (last edited 20 hours ago)

My standard position is that GNOME is good, if you want to just use an existing workflow, whereas KDE is good, if you're looking to create your own workflow or you're fine with a mediocre, familiar (Windows-like) workflow.

But unfortunately, GNOME is really disappointing in some ways. Every so often, we have someone at work accidentally using it, because it's the default, and they always run into the same nonsense, like not being able to type a file path into the file manager, or not being able to give a name to the file they're trying to save. These are pretty bad problems that normal users are quick to encounter. It's a mystery to me, why these can't be fixed, but ultimately I just tell people to install KDE and they've all been happy about it.

[-] Ephera@lemmy.ml 10 points 2 days ago

Big insects are fun, too. Their method of breathing through the body surface doesn't scale, due to volume growing cubically and surface area only squarely. So, scaling them up would mean they're constantly out of breath, well, or suffocated.

[-] Ephera@lemmy.ml 18 points 2 days ago

The person who announced this change noted in a reply that "Negative filtering is coming soon."...

https://itch.io/post/11414056

[-] Ephera@lemmy.ml 15 points 2 days ago

Nope. The actual disclosure dialog is a bit more precise in its wording: https://itch.io/t/4309690/generative-ai-disclosure-tagging

[-] Ephera@lemmy.ml 1 points 2 days ago

I would not know that you can do this on Android, not without downloading another potentially malicious app anyways...

[-] Ephera@lemmy.ml 49 points 2 days ago
[-] Ephera@lemmy.ml 8 points 2 days ago

Apparently, less also has a feature built-in to filter out lines based on keywords:

https://raymii.org/s/snippets/Exclude_lines_in_less_or_journalctl.html#%3A%7E%3Atext=Once+your%2Cterm (skip the first paragraph, past those three links)

[-] Ephera@lemmy.ml 4 points 3 days ago* (last edited 3 days ago)

Well, just a monitoring stack, like for example Grafana, would probably be more suitable for this specific task (if we're doing central hosting/collection).

Kind of my main recommendation is to use something with OpenTelemetry. It's pretty much the standard protocol for transferring logs, traces and metrics, so if you set everything up with that, then you can swap out the visualization software with less pain.
Here's a guide for Grafana + OpenTelemetry Collector: https://grafana.com/docs/loki/latest/send-data/otel/

[-] Ephera@lemmy.ml 2 points 3 days ago

In Rust, as far as I understand anyway, traits define shared behavior.

They're certainly the concept closest to e.g. C#/Java interfaces. But you can also define shared behaviour with enums, as Rust's enums are on steroids.

Basically, let's say you've got two existing types TypeA and TypeB for which you want to define shared behaviour.

Then you can define an enum like so:

enum SharedBehaviour {
    A(TypeA),
    B(TypeB),
}

And then you can define the shared behavior with an impl block on the enum:

impl SharedBehaviour {
    pub fn greet(&self) {
        match self {
            SharedBehaviour::A(type_a) => println!("Hi there, {}!", type_a.name),
            SharedBehaviour::B(type_b) => println!("Hello, {}!", type_b.metadata.forename),
        }
    }
}

On the flipside, Rust doesn't have superclasses/inheritance for defining shared behaviour.

[-] Ephera@lemmy.ml 3 points 3 days ago

I feel like this has somewhat shifted in recent years. Due to type-aware IDEs/editors being pretty much universal now, having types speeds you up in that initial phase, too. And type inference eliminates much of the inertia, too.

[-] Ephera@lemmy.ml 11 points 6 days ago

I feel like the Enlightenment desktop environment isn't to everyone's taste. It's definitely got some idiosyncratic design choices...

240
submitted 2 weeks ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml
87
submitted 1 month ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml

So, this uses a macro, but if you're thinking anything is possible with a macro, it's actually not in Rust. The input does still need to parse as valid Rust tokens.

Which means the authors asked themselves at some point: Is the Rust syntax a superset of the Python syntax?
And well, it's not. In particular, some Python keywords will just be tokenized as an identifier (like a variable name).

But it is close enough that the authors decided against requiring a massive string to be passed in, which does amuse me. 🙃

45
submitted 5 months ago by Ephera@lemmy.ml to c/askscience@lemmy.world

We often talk about the climate impact based on greenhouse gases, but extracting fuel from the ground and using it in exothermal processes of course also releases energy as heat.

This is mostly¹ in contrast with renewables, which make use of energy that's not long-term contained to begin with, so would end up as heat in our atmosphere anyways.

So, my question is: Does the amount of energy released by non-renewables have any notable impact on our global temperature? Or would it easily radiate into space, if we solved the greenhouse gas problem?


¹) In the case of solar, putting up black surfaces does mean that less sunlight gets reflected, so more heat ultimately gets trapped in our atmosphere. There's probably other such cases, too.

327
submitted 7 months ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml
27
submitted 7 months ago by Ephera@lemmy.ml to c/webdev@programming.dev
136
submitted 8 months ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml

Real screenshot from (crappy) personal project...

366
submitted 9 months ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml
165
submitted 9 months ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml
490
submitted 9 months ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml
219
submitted 10 months ago by Ephera@lemmy.ml to c/memes@lemmy.ml
23
submitted 11 months ago by Ephera@lemmy.ml to c/android@lemmy.world

Hi, the default Roboto font is boring me out of my mind and I'd like to change it.

In the past, I've done so by just replacing the font file in the OS, which worked well, but meant that it would reset after every OS update.
I'm considering scripting that with ADB to make it less of a pain, but figured I should ask, if there's a better way.

I'm on LineageOS which has a font styling system, but it only applies to the OS, not the user-installed apps...

198
submitted 11 months ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml
view more: next ›

Ephera

joined 4 years ago