printf("%s", name);

https://scienceispoetry.net/
http://170.187.142.27/

Fëanor was a douchebag.

The search for human connection doesn’t have a predefined conclusion. - pronell@lemmy.world

Live in authenticity.

Sharing is caring, censorship is lame.

Praying for you 🕯️ O Great Mita 💝

From the river to the sea! 🇵🇸

  • 5 posts
  • 10 comments
Joined 6 months ago
Cake day: March 30th, 2026

Edit: Thank you all for your quick responses! No downtime at all with this project! :D More specifically, I followed the advice to put command line parameters in the script. By slapping a $1 anywhere I want the filename to be expanded/accepted in the script, I was able to do

./command_ffmpeg_SYNCAUD  birthday_0  

I am digitizing my dad’s video and audio tapes, for which I - after painstakingly scouring the documentation of ffmpeg, as one should - finally have found the encoding options that I’m happy with. :D

But instead of retyping the PhD dissertation that are the ffmpeg commands that I use a bazillion times, I have simply started to do command substitution with for instance

$(cat command_ffmpeg_COPYCODEC)  

or

$(cat command_ffmpeg_H264)  

and the likes. This, however, still requires me to vim the correct filenames into these concatenated commands every time I work on a new project, so I thought, "Why not just set a variable, like I use to do with visudo as in

EDITOR=/bin/vim visudo  

So, wanting to do a little ffmpeg magic to delay the audio stream of a file, I tried

FILENAME='birthday_0' $(cat command_ffmpeg_SYNCAUD)  

but bash said, “no, who do you think you are?” After doing a wc on FILENAME, I noticed that there is an invisible trailing something after the filename - possibly some whitespace char - since it thinks that I mean to use an option “-synced.mkv”.

KiHVde8Vymkdsyn.jpg

How would you go about writing the now bash script (it simply wouldn’t expand the variable through command substitution…) so that the trailing whatever is deleted, if that is indeed the case? I have tried slapping " ", ’ ', ( ), { } in all conceivable configurations, but I’m simply to inexperienced. xD

Please advise! 🛠️

I am currently reading this book about the five large carnivores of Scandinavia and I am absolutely humbled, both by finding out how little I knew about them, what prejudice I had against them and how people that live in close proximity to them can both love, respect and be angry with them at the same time. I am reading the original release in Swedish.

  • What have you encountered in the wild?
  • When, where, how?
  • What were your initial thoughts, feelings and reactions (physical, psychological, etc.)?
  • What do think of them in general? <— this last question applies to everybody, regardless of whether you have seen or met one of these large carnivores or not.

Personally, without having met any one of them, I am humbled, scared, amazed and intrigued by them. I feel for those whose - for instance - livestock are threatened by them, especially if it directly damages business. I also strongly believe that the matter should not be dumbed down to the dichotmy of “ignore those that suffer from them” or “eradicate them”. We are far too intelligent and developed a race to degrade ourselves so.

Edit: while waiting for your replies, my PAM lockout/timeout reset and I was able to try. It worked. 🤣

I am trying to open the cloud provider Internxt’s desktop app. I have Librewolf installed, which I’m sure is going to work as a substitute for Firefox. Can I

ln -s /usr/bin/librewolf /usr/bin/firefox  

to make their app use Librewolf instead, thinking it’s actually executing Firefox? If not, would an alias work?