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
  • 28 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle
  • I haven’t seen anyone mention it yet, but a reason might be that providing an API is cheaper than web scraping.

    If people really want access to your data, they can just scrape your website, but that requires loading all the data through the website itself which requires loading millions or billions of video thumbnails, comments, descriptions, recommendations, etc. It’s much cheaper for them to send a JSON through an API, even though they might know that some people are trying to undermine them by using that data to circumvent their advertising.







  • My steps in engaging in polite conversation on the internet are:

    Explain my point as clearly and concisely as possible.

    Try to be respectful of differing opinions and keep an open mind.

    Realize that mistakes happen, apologize for my mistakes and admit when I’m wrong. Also, be forgiving of the mistakes of others, point out any mistakes but do so as gently as possible.

    Ignore people that are either intentionally misunderstanding you or aren’t making an effort to understand you.

    I think the first two points are obvious and most people follow them, it’s the last two that a lot of people struggle with, even myself at times, but I’m working on it. I think the worst thing you can do on the internet is trash someone’s entire idea just because they made one tiny mistake. And putting in effort with trolls will quickly exhaust you, so you need to learn to identify and ignore them.







  • I doubt that there’s any real benefit to walking barefoot. There seems to be very little science to support it that I can find, but I’d be interested to see if anyone can find some.

    I question the benefits mostly because it’s well known by historians that before the invention of modern shoes, most people walked very differently than we do now. Heel-to-toe walking basically didn’t exist until modern thick-soled shoes became commonplace, and instead toe-to-heel or rather ball-of-the-foot-to-heel was the norm.

    If you’re going to walk barefoot, make sure you learn how to walk barefoot safely. Here’s a pretty good video about how to do it correctly: https://pi.ggtyler.dev/watch?v=3iLJ0frWE9E



  • 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.




  • It’s not exactly a misconception that I’ve ever really held, but I absolutely hate the lazy writing trope in TV/film where hitting someone over the head and knocking them out is used so commonly and casually and there are never any repercussions.

    In reality, if you get hit on the head hard enough that you lose consciousness for any length of time, you’re almost certainly going to suffer very serious brain damage. If you wake up at all - yes, it’s quite possible you’d die from this - then you’re going to have a major concussion, a huge headache, and probably a fracture in your skull and your brain will be swelling up inside your skull. It’s a VERY serious injury, and yet it’s just played off as this casual thing on TV and I think it’s incredibly dangerous how casually it’s depicted.



  • 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.