federalreverse

joined 1 year ago
[–] [email protected] 2 points 10 months ago* (last edited 10 months ago)

That's a bit dangerous for a few reasons:

  1. cat is the wrong command, because it outputs the file's content, not the file's name.
  2. my.awesome.file.txt would become an empty string, leading to errors. (The regex is not anchored to the end of the string ($), the . is not escaped, so it becomes a wild card, ...)
  3. My awesome file.txt would trip up the loop and lead to unwanted results.

I'd suggest this:

for file in * ; do mv “$file” $(echo “$file” | sed -r 's/(\.tar)?\.[^.]*$//') ; done

[–] [email protected] -3 points 10 months ago* (last edited 10 months ago) (2 children)

*deducing, not deducting. Also, you seem to be talking about the joke from the comments. And the joke from the comments makes fun of the man misapplying logic rather than making fun of the logician.

[–] [email protected] 1 points 10 months ago

Drafts is a feature request can get behind.

Anyway, still somewhat hoping for a Lemmy version of Slide.

[–] [email protected] 7 points 10 months ago

Do you even want to know at this point?

[–] [email protected] 15 points 10 months ago

Your answer is correct but I am going to needlessly nitpick: Actually, OGG is just the name of the container format. The audio stream inside a .ogg file is usually using a format called Vorbis. However, .flac files also use an OGG container afaik, they just have different file format convention. Same goes for the newer Opus audio format which usually uses .opus despite also being packaged in an OGG container. In any case, it wouldn't be entirely wrong to name a FLAC or Opus file .ogg.

Side note: Opus is the future but sadly not yet widely compatible outside browsers. FLAC is great and more widely established but also has its support deficits. MP3 and WAV are still the most widely compatible formats sadly.

[–] [email protected] 2 points 10 months ago (1 children)

Thanks for not shouting at me for the hijack comment.

[–] [email protected] 2 points 10 months ago

Removing snap from Ubuntu, at least, seems to be more impossible with every update as far as I’ve heard. Apparently it just reinstalls itself if you try to use apt in order to install eg. Firefox and then uses snap for that package. So I’d guess actually disabling snap would mean somehow configuring or editing apt itself or some addon to it.

Basically you need to have a list of packages to avoid in your head. :) And with every passing release there are more. Great!!

Since I've gone back to using Ubuntu I've managed to avoid these traps somehow.

Wann Klage gegen Canonical wegen Monopolstellung?

While their practices suck, they don't exactly have a monopoly. If they're eventually bought out by MS, something could happen. (So far, MS seems happy (and capable) to do its own thing though.)

In Englisch nem Deutschen zu antworten fühlt sich affig an lül

Yeah, but this is a public thread in an English-language community.

[–] [email protected] 3 points 10 months ago* (last edited 10 months ago) (3 children)

On a tangent, ...

tldr: Hot water tends to majorly influence home/office energy use.

tl: Since living with rooftop solar here, I have noticed just how much energy is often drawn because of warm water. As in, in this house, you can see very noticeable usage spikes in the solar app whenever someone showers or washes dishes. I've completely given up on washing my hands with warm water and have reduced the amount of water I shower with. We've also started using the electric kettle for heating water because it means you usually only heat up about as much water as you actually need and the kettle has a pretty uniform 2kW power draw (which helps make it work on solar).

Obviously, there are different systems for heating water but one way or another, they tend to use a lot of energy and heat more water than necessary to higher temperatures than necessary. Unsurprisingly, other major energy wasters that most of us come into contact on a daily basis are also all about changing temperatures, namely home heating, AC and gas-powered motors (aka drivable heatings).

[–] [email protected] 8 points 10 months ago (1 children)

During that tour, we learned that pretty much every stereotype Americans have for Germans (lederhosen, yodeling, beer and brats, etc.) are actually Bavarian culture, not German.

So for lederhosen, it's mostly true, although they're traditional in Austria too. Yodeling is Alpine culture and not specifically Bavarian, meaning it exists in Bavaria, in Austria and Switzerland. For beer, only weissbier is truly Bavarian; e.g. pilsener originated from Czechia, lager originated from Austria [til!]. And although there are Bavarian bratwurst variants, bratwursts are not specifically Bavarian. However, veal sausage (weisswurst) is exclusively Bavarian.

And Germans are actually quite offended at the confusion we have between their culture and Bavarian culture.

That is true. I think to some degree this confusion comes from the fact that so many Americans were stationed in Bavaria after WWII, so they only got to experience this part of German culture.

[...] when the war was over, they not only had to rebuild from scratch, but also had to contribute to rebuilding the rest of Germany, as well as paying for war damages for Europe and all Allied nations, etc. Their wealth was pretty much depleted and their hope of being an independent nation was gone.

I am not particularly versed in Bavarian history, but note that some Bavarians have developed a bit of a fetish portraying themselves as victims of injust decisions from on high. I would take that info with a grain of salt.

[–] [email protected] 5 points 10 months ago* (last edited 10 months ago) (2 children)

Snap as a format is not proprietary but Canonical's Snap Store is. And Canonical's Snap Store is basically the only one in existence and (semi?) hard-coded into all the tools.

In any case, on a fresh install I usually throw out all the Snap stuff and go for Flatpak, because for some apps, these two formats tend to be the only options anymore.

[–] [email protected] 11 points 10 months ago* (last edited 10 months ago)

Op is talking about Fedora not Ubuntu/Debian. This does not apply.

[–] [email protected] 12 points 10 months ago

Eh, no. It only downloads the packages, then asks you to reboot and installs the new packages during the boot process. This means you get a clean system afterward in which no pre-update binaries are being run anymore. It just comes at the price that you need a full reboot for something that usually needs a session relogin at worst.

view more: ‹ prev next ›