XFCE Application in workspace steals browser from another

This problem has been bugging me for some time. I am currently running the XFCE spinoff of Fedora 42, and I have multiple workspaces set up. If I click a link on my workspace that has my e-mail client, it steals the browser my Browser-workspace, and moves it to my e-mail workspace. The fix? Pretty simple.

How to transfer images from iPhone to Fedora 42

I have an old iPhone that contains around 3-4000 images. For ages I have been wanting to transfer the images to my PC, and I did attempt it several times on Windows, with iTunes, and some other software. No such luck, as it either crashed or did not transfer all of the images. Needless to say the issue contributed to more of my hairs going grey. However! In Linux, it took me minutes!

Getting the HP USB-C/A Universal Dock G2 working with Fedora 41

I have a HP Elitebook 840 G7 that I use along with a HP USB-C/A Universal Dock G2. Now, this has been working fine in Windows, but when I changed to Fedora, not so much. I had to plug in my HDMI cable directly to the laptop, and not the docking station. It just wasn't working. This is what I did to fix the issue.

while read

More than once I find myself opening a file with vim, pasting the contents, saving the file, and then going back to bash to do some magic with it. With this line, you simply run the command, paste in the contents that you want, and end with EOF to end the loop. In this case, I paste in a list of URLs, but only want to grab those that contain the string 'https':

Retain X amount of files

I encountered an issue today where someone requested that we keep the 10 newest backup files, while the rest of them (the oldest) were deleted. So I made this little script:

#!/bin/bash

FILE_DIR="/home/jorge/backup/"
NUMBER_OF_FILES="$(ls -t $FILE_DIR | wc -l)"
RETAIN=10

if [ "$NUMBER_OF_FILES" -ge "$RETAIN" ]; then
    cd $FILE_DIR
    ls -t | sed -e "1,$RETAIN d" | xargs rm -f
fi

This can be modified to match with any type of file or filename.

Introduction to tmux

I have been working with Linux for years, and I've always used screen when working in the terminal. I even wrote a small introduction to screen over 10 years ago.

So you can imagine my surprise when I at a very late point found out about tmux. It has completely changed the way I work, and boy do I love it.