• 1 Post
  • 397 Comments
Joined 1 year ago
cake
Cake day: August 2nd, 2023

help-circle





  • I just updated to the newest Ubuntu LTS, which puts pip into system managed mode so you can’t easily install packages outside of a virtual environment anymore.

    If you (or anyone who stumbles upon this comment in the future) run into this problem, the new recommended way to install yt-dlp through pip and keep it in your path and up to date is via pipx (sudo apt install pipx). The syntax is a bit gnarly for pre-releases, so I figured I’d post an update:

    To install the nightly: pipx install --pip-args '\--pre' yt-dlp

    To update the nightly: pipx upgrade --pip-args '\--pre' yt-dlp

    I alias the update command and run it before every download session.



  • The main problem with Java (or garbage collected languages in general) as a first language is needing to unlearn the bad habits it ingrains when you move to a systems programming language with manual memory management. Other than that it’s a pretty good first language, though I’d suggest learning a bit of C at the same time just to get a basic grip on things like pointers and stack vs heap.

    Edit: it occurs to me that C# would be the perfect learning language. It’s very similar to Java and an easy first language, but you’d also learn about stack allocation through structs, and can teach pointers using unsafe (though I think unsafe code is still GCed, so this wouldn’t help with the memory management side of things. Haven’t touched C# in fifteen years so I’m not sure how it works anymore).