linux

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

corsicanguppy, in Is anyone using awk?

I use awk on the daily. It has a wider and more consistent install base than perl.

SnokenKeekaGuard, in Is linux good for someone tech illererate.
@SnokenKeekaGuard@lemmy.dbzer0.com avatar

Thank you so much everyone. I’m very likely going to try the live usb method with linux mint probably. I really appreciate all the advice.

fschaupp,
@fschaupp@lemmy.ml avatar

Smart choice! The option to just try it in a safe way with the live USB is a good way to try it.

Also try out some of the themes in the settings 😉 The amazing wallpapers of Linux Mint are so fancy, so I decided to use it on my work Windows PC, which I am forced to deal with ☺️

meiti, in Is anyone using awk?

Anyone interested in awk make sure to check the just published awk book second revision by original authors. Kernigan’s writings are a joy to read.

walthervonstolzing, in Is anyone using awk?
@walthervonstolzing@lemmy.ml avatar

awk predates perl as well as python by a pretty large margin (1978); it’s useful, of course, for processing things in a pipeline, but as it became obsolete as a general-purpose scripting language, users have had less and less of a reason to learn its syntax in detail – so nowadays it shows up in one-liners where it could be replaced by a tiny bit of cut.

I had worked through a good bit of the O’Reilly ‘sed & awk’ book – the first programming book I got, after being enticed by shell scripting in general. Once I learned a bit of Python, & got better at vim scripting, though, I started using it less and less; today I barely remember its syntax.

HouseWolf, in Gentoo goes Binary (packages)

Outside of the whole compiling from source thing, What are selling points of Gentoo over Arch?

Seems most Gentoo users I’ve ran into are either diehards about compiling their own packages or they’ve simply used it for over a decade and are super familiar with it.

tsonfeir, in What are you most excited when it comes to linux in 2024?
@tsonfeir@lemm.ee avatar

What are women most excited for?

odium,

Why are you bringing gender into something that doesn’t need any gendering?

acastcandream, (edited )

I mean in their defense…the title is gendered lol

Jokes aside they’re clearly poking fun at the title. Go read it out loud you probably missed the mistake.

Stillhart, in Dual Booting: How in god's name?!

I’m no expert, but if you’re installing both from scratch, my understanding is it’s easier to install Windows first.

ook_the_librarian, in Is anyone using awk?
@ook_the_librarian@lemmy.world avatar

awk will always have a soft spot for me, but I can see why not many take the time to learn it. It tends to be needed right there at the border of problem complexity where you are probably better using a full-fledged scripting tool.

But learning awk is great for that “now you’re thinking in pipes” ah-hah moment.

OpticalMoose, (edited ) in Intel or AMD for ffmpeg?
@OpticalMoose@discuss.tchncs.de avatar

AMD APUs have Video Coding Engine / Unified Video Decoder, while Intel CPUs have QuickSync. FFMPEG’s hardware page says that AMD support is incomplete.

You may want to ask over in !datahoarder . This topic often came up back on Reddit, and the general vibe I got was that most people prefer QuickSync. Intel may not be great in a lot of areas, but they are a beast in video encoding/decoding. That being said, I use a Ryzen APU and it’s perfectly fine. There are way more important things to look at when choosing a CPU.

If your performance is slow, I would check your CPU is listed on the chart I linked above. Not all CPUs support all codecs.

Edit: If your CPU doesn’t support the codec, it will still work, it just won’t be accelerated.

drwankingstein,

quicksync really doesn’t have good quality:compression buying a used nvidia gpu and using that would be far better. but really, any moderatly up to date cpu should get good x265 or svtav1 perf

ctr1, in Is anyone using awk?
@ctr1@fl0w.cc avatar

Yes! Awk is great, I use it all the time for text processing problems that are beyond the scope of normal filters but aren’t worth writing a whole program for. It’s pretty versatile, and you can split expressions up and chain them together when they get too complicated. Try piping the output into sh sometime. It can be messy though and my awk programs tend to be write-only

drwankingstein, in Intel or AMD for ffmpeg?

none, you aren’t using gpu, just whatever cpu is the fastest. if you want gpu acceleration you have to specify it. and keep note gpu acceleration is less efficient then cpu so your files will be bigger. though at preset fast it might actually be pretty close

cmgvd3lw,

So what you are saying is its better to run on cpu alone?

drwankingstein,

when possible yes, sometime sits not possible, and it will be better to run on gpu alone

Disonantezko, (edited )
  • Hardware (GPU) encoders are worst than software encoders.
  • GPU Acceleration is good for faster encoding and free CPU to do other things. But you get bigger files at similar quality.
  • Maybe is useful for live streaming or if you really really need CPU do other things.
drwankingstein,

Yes this is indeed what I said. but well calling gpu encoders “worse” isnt really fair, it’s all trade offs, they for sure have worse efficiency as we both said, but their speed is significantly faster usually. I would say that doesn’t make the encoder “worse” just different.

murmelade, in (solved) I can't get my linux system to run properly

Well this thread sure scared me off tryin linux.

Leugi,

Maybe I wouldn’t have had any problems if I tried a more stable distro like Debian. I guess it all depends on what you want to use your PC for and if you like to tinker.

TheImpressiveX, in Linux Boomers
@TheImpressiveX@lemmy.ml avatar

This article is an example of the “appeal to novelty” fallacy. “It’s newer, therefore it MUST be better.”

OmnislashIsACloudApp, in Is anyone using awk?

I use awk all the time. a very common and probably simplest reason I use it is it’s ability to handle variable column locations for data.

if you know you always want the last field you can do something like

awk ‘{print $NF}’

but usually using it as for performing more advanced operations all in one go without having to pipe something three times.

sure you can do grep cut grep printf, but you can instead do the pattern matching, the field, the formatting, whatever you need to all in one place.

it’s also got a bunch of more advanced usage of course since it’s its own language. one of my favorite advanced one liners is one that will recognize if it is going to print a duplicate line anywhere in your output and prevent it. in cases where you don’t want to sort your output but you also want to remove duplicates it is extremely helpful and quick rather than running post-processing on the output in another way.

all that said main reason I use it is because I know it and it’s fast, there’s nothing you can do in awk that you can’t do in Python or whatever else you’re more comfortable with. The best tool for the job is the one that gets it done quickly and accurately. unless your environment is limited and it prevents the installation of tools you’re more familiar with then there’s no real reason to use this over Python.

UNWILLING_PARTICIPANT, in Is anyone using awk?

I use awk a good bit. Not as much as when I was doing data work, though. It’s better than cut at splitting on whitespace in many contexts. Lots of other nice uses like variable scope, regex, and summing

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