Hi, I’m Shauna! I’m a 37 year old transgender woman from Ontario, Canada. I’m also a Linux enthusiast, and a Web Developer by trade. Huge Star Trek fan, huge Soulsborne fan, and all-around huge nerd.

  • 0 Posts
  • 101 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle








  • It’s definitely an edge case by say you’re in ~/ and you run a script like ./code/script.sh then it thinks the current working direct is ~/ rather than what is probably intended which is ~/code/. If your bash script uses full paths like /home/$USER/code/ then it will still run correctly regardless of the current working directory that the scrip was run from.





  • ShaunaTheDead@kbin.socialtoMemes@lemmy.mlHonestly
    link
    fedilink
    arrow-up
    44
    arrow-down
    2
    ·
    edit-2
    6 months ago

    In most European countries you need a 4 year university degree in criminology to become a cop. They have the same standards for average police officers as we in North America have for Federal law enforcement. So while it’s certainly true that some European countries have shitty cops, the ones with stricter barriers to entry have slightly less shitty cops.

    Here’s an interactive map although it does seem to be missing a fair bit of data for Europe. The USA has the most abysmal Police training time at just 500 hours of training between being a civilian and being a Police officer.

    edit: lol whoops I never actually posted the link earlier. Here it is: https://worldpopulationreview.com/country-rankings/police-training-requirements-by-country


  • In case anyone wasn’t aware, nearly all space photos that you’ve ever seen have had their colours tweaked. It’s standard practice in space photography. Nebulae and galaxies and planets aren’t as colourful as they appear in photos. They do it either to make the features more obvious for study, or just to make them pop more to drum up interest in space exploration. Nothing wrong with it, just be aware that what you see isn’t reality but an interpretation.


  • You need to learn bash scripting. Also, there are a few default files that the .bashrc uses which can be helpful to compartmentalize the custom things you do to it so that it’s easier to undo if you screw something up. To do that, just add this to the bottom of your .bashrc

    if [ -f ~/.bash_custom ]; then
        . ~/.bash_custom
    fi
    
    

    What that will do is check if the .bash_custom file exists and then run the .bash_custom file in your home directory and apply anything in there. Also, you can call the file whatever you like, but bash does have some defaults that it will check for and run them without editing the .bashrc at all. It’s kind of hard to find a list of the the files that it automatically checks for, but I know that .bash_aliases is one of them, and I think it checks .bash_commands as well, but I’m not entirely sure. Either way, you can force it to check your custom one by using the code above.

    Then you can create the file and add any custom things in there that you like. For example, I like to frequently update through the terminal but running sudo apt update && sudo apt upgrade && sudo apt autoremove && flatpak upgrade was a bit tedious and I wanted a bit less feedback so I made a custom alias for my personal use.

    alias update='echo "Updating packages..."; sudo apt update -y &> /dev/null; echo "Packages updated."; echo "Upgrading packages..."; sudo apt upgrade -y &> /dev/null; echo "Packages upgraded."; echo "Cleaning up packges..."; sudo apt autoremove -y &> /dev/null; echo "Packages cleaned up."; echo "Updating flatpaks..."; flatpak update -y &> /dev/null; echo "Flatpaks updated."'

    Which hides most of the text from updating and just gives me feedback on what it’s currently doing if I don’t really care to know all of the details. So now I just run update in the terminal and plug in my password and it updates and upgrades everything in a human readable way.

    There’s a lot that can be done with bash scripting, like editing files, iterating over files and directories, setting environment variables. It’s basically a full programming language so the limits are mostly your imagination.




  • My biggest concern with Epic is their insistence on kernel level anti-cheat which is just ridiculous overkill and probably being used as spyware let’s be honest. They have many ties to China’s Tencent which has a 40% stake in the company and is known to basically just be an extension of the Chinese government.

    There’s also the very odd fact that just having the Epic Games Store open in the background will deplete your laptops battery life by up to 20%. Is it just horribly optimized and uses all that battery even when idling, or is it doing something nefarious in the background? We don’t know.

    As for exclusives, they have bought exclusives that were mostly crowd funded from the start which is quite the kick in the teeth to the early investors that helped get the project off the ground. And there were even some exclusives that were already listed for pre-order through Steam, forcing everyone to need to get a refund.

    Plus, any good will that they’ve purchased so far is just in service of making a good name for themselves. They’ve been losing around $400 million per year since 2019 just to bring in new users. They’re going to suddenly turn around and start being cut-throat as soon as they think they can.

    They are not consumer friendly, they want to dictate trends in gaming. Valve is already the king of that throne and they’re fairly benevolent and have pushed trends that are good for gaming and consumers overall. I have serious doubt that Epic would be anywhere near as good for gaming as Valve has been if they should actually become profitable, and an industry leader. Especially when it’s projected that they won’t be profitable until 2027, which means they’ll need to recoup their investment of nearly $3.2 billion since 2019.