linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

OpenStars, in Is anyone using awk?
@OpenStars@discuss.online avatar

awk is awesome! I love it, and I do not regret learning how to use it.

That said, my workflow invariably always shifts from starting with awk to do something simply with a tiny one-liner, to then doing that with perl or python, and sometimes even creating a file to make the by-now multi-line scripts more easily readable.

I do not recommend starting with awk, if you do not know other languages already such as Python.

In short, let your intuition guide you.

Scraft161, in "Combokeys" instead of hotkeys. [Feature/new command suggestion]
@Scraft161@iusearchlinux.fyi avatar

sxhkd/swhkd, both support creating these natively and the second one works not just on Wayland, but also X11 and the TTY.

olafurp, (edited ) in Is anyone using awk?

I think it’s pretty niche but is a great tool for parsing / converting data into a format that is more easily digested by another program.

Think for example a report from an 80’s system that spits out many tab separated values in a different format based on some code. Then these tables are all separated by two blank lines and order of them is randomised. To top that off you need to then pipe it all to a different program that only accepts a specific format.

You could do it in Python by doing a parse, process, stringify code but if you know awk you can do all those steps at the same time with less code.

Sure, in the age of REST the Python approach is better but awk is a very powerful tool for the “I have a specific output but need a specific input” problem.

nekusoul, (edited ) in how do i efficiently attach audio to an image
@nekusoul@lemmy.nekusoul.de avatar

Since the end goal is to post a video to YouTube, you will have to create a video file. Personally I would probably just be lazy and upload the large file, since YouTube is going to reconvert the video anyway.

That said, to optimize the file you need to know how videos work, specifically key frames. Speaking generally, when a video gets encoded, it doesn’t add the whole image for each frame. Instead, it only does that when the current frame is a key frame, and then only stores the difference to the previous frame for every regular frame. There’s a lot of different strategies when placing keyframes, like every X seconds, when the scene changes, or both. This is usually you can change somewhere in the encoding settings of the application you’re using. You will need to use a codec/format that supports interframe compression though, so avoid AVI and MJPEG.

So the TL;DR is: Try to decrease the amount of key frames as much as possible, maybe even down to only one if possible.

SGHFan, in Could 2024 be the year of the diagonal linux desktop?
@SGHFan@lemdro.id avatar

Perfect, just what I need if I set my laptop on my laptop stand the wrong way!

cbarrick, in Integrity and config errors Ubuntu

X.509 certs are commonly used in TLS/HTTPS.

Why is one needed in your boot process?

Is your drive encrypted?

Another_username,

I have no idea why it’s needed. I’m a noob so maybe I fucked it up somehow haha

My device isn’t encrypted.

Another_username,

I was trying to install a docker container at one point. Could this be it?

cbarrick, (edited )

Did you try to set up that container to serve HTTPS?

It sounds like you have some service configured to serve HTTPS, and it’s having trouble starting because the cert is broken.

Only that particular service will be broken. The rest of the system is fine.

Check systemctl status --failed for more info.

Edit: I’m only talking about the X.509 error. The AMD error is probably related to your hardware.

Another_username,

I was setting up the containers to fix a problem when using wine, but found a different solution. I checked the system status. 0 units failed and x.509 isn’t mentioned

lemann,

X.509 certs are commonly used in TLS/HTTPS.

Why is one needed in your boot process?

Don’t know why but I found this funny

merthyr1831,

Secure boot uses them

MrAlternateTape, in Integrity and config errors Ubuntu

As far as I know, other distributions just don’t show these errors, but Ubuntu choose to show them.

Most of them are just due too a BIOS implementation that is not entirely up to standards, from what I understand. It seems some manufacturers have chosen to make their system easier to use with Windows instead of strictly enforcing standards.

I just ignore the errors. As long as everything works properly, I feel fine with that.

merthyr1831,

yup. and it’s usually on laptops that run less standard bios setups that aren’t easily flashed anyway

Nachorella, in Terminal Utility Mega list!

I like the starship prompt. Not sure it’s really a utility, though?

bloopernova, in Terminal Utility Mega list!
@bloopernova@programming.dev avatar

Possibly offtopic, I wrote a guide to setting up zsh on macOS: gist.github.com/…/0ffcb98aa262c585c49d4b3f3ae2401…

crunchpaste, in Terminal Utility Mega list!
@crunchpaste@lemmy.dbzer0.com avatar

Recently found out about ouch. Found it really useful for decompressing files in the terminal as I can’t seem to remember all the flags for tar, gzip, zip, rar and all the rest one may encounter which all seem to use different syntax.

mvirts, in Make a Linux App

Is this site insane? On Linux I have access to so many more applications than other platforms. Sorry apple, ios apps repeating the same thing infinitely doesn’t count.

GyozaPower, (edited )

You are comparing Apples to oranges. While it may be true that Linux may have more software available, in my experience macOS has a shit ton of productivity software as well, and many times, due to being for-profit, of higher quality. That’s exactly why I’ve been thinking about giving my own try to making a launcher like Raycast for Linux.

smileyhead,

Can completely agree. On Apple systems I can find a ton of productivity and editing software, but no luck doing things like file operations or automating. On Linux I can find absolutely anything related to processing data, customization, science or protocol clients, but no luck finding good note taking tool.

novakeith,

Yeah I recently went back to Linux as a daily driver and was blown away how easy stuff like flatpaks made it to do everything I need quickly. That wasn’t the case last time I used Linux for something more than a quick and dirty VM host.

mactan, in Dual Boot Best Practices?

windows can and will destroy your bootloader at least once, show it no mercy

embed_me,
@embed_me@programming.dev avatar

Not if you destroy its bootloader first😈

jonno, in Terminal Utility Mega list!

Ctop for container monitoring

const_void, in What are you most excited when it comes to linux in 2024?

What Plasma 6 feature are you waiting for?

d3Xt3r,

For me:

  • Ability for a panel to stay visible but dodge windows, for a dock-like behavior.
  • Better/customisable touchpad gestures (rumored)
  • HDR support on Wayland
  • Simultaneous password and fingerprint authentication
  • Decoupling of icons from the Plasma theme (so ALL icons are changed when you apply a systemwide icon theme)
recarsion, (edited ) in My Experience Of Linux Gaming (Switching from Windows)

Assetto Corsa works? I haven’t managed to get it running at all yet (unlike ACC which works beautifully), did you do any tweak?

Ultimatenab,

I only launched the vanilla version but I haven’t installed connect manager and the near 200gb of as ones yet.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #