• 2 Posts
  • 16 Comments
Joined 3 years ago
cake
Cake day: May 19th, 2021

help-circle
  • I’ve started having issues recently, too. After a work injury, I finally saw my GP, who recommended Physical Therapy, which has basically just been a guided workout with some yoga moves worked in over the course of an hour.

    It hasn’t fixed my pain yet, but it’s made it better, and my pain was explained in a way that makes sense (my shoulders and core weren’t as strong as they should have been, placing undue burden on some of my backmuscles).

    If you don’t want to go to PT, I’d strongly recommend just slowly doing 10-15 minutes of simple stretching like what you might have done in Gym as a kid. Stretch to the point of mild discomfort, not pain, doing each stretch 3 tines for 10 seconds. It might be worth looking into some basic yoga poses that target your particular pains (or the ones that you want to target first).

    I’ll bet you’ll notice good results after a week. If not, definitely go see your GP again.

    Obligatory “I am not a doctor”




  • With the enshittification of streaming platforms, a Kodi or Jellyfin server would be a great starting point. In my case, I have both, and the Kodi machine gets the files from the Jellyfin machine through NFS.

    Or Home Assistant to help keep IOT devices that tend to be more IoS. Or a Nextcloud server to try to degoogle at least a little bit.

    Maybe a personal Friendica instance for your LAN so your family can get their Facebook addiction without giving their data to Meta?









  • Having the output of each thing you tried would help us get a feel for where your code was messing up without us having to run it ourselves to get the output.

    That said, for code snippet 1, you’re inserting the letter instead of replacing the underscore with the letter. Not only that, but your for-loop essentially does the following:

    • loop over the length of chosen_word
    • if guess is in the above loop
      • iterate over the display array and add guess that many times (effectively doubling the `display array)

    Your second code snippet does the same thing, but with actual formatting so that Python could run the code.

    I believe your third code snippet introduces char but then returns to letter. It might work if you replaced char with letter again. Also += letter will add the letter to the end of display, which is not what you want to do.

    I did my own version of Hangman in Python a couple years ago if you want to look at the code and see what I did. I’m just a hobbyist, so it’s not fantastic, but it might give you an idea of how someone else has approached the problem.