• 1 Post
  • 10 Comments
Joined 3 years ago
cake
Cake day: May 19th, 2021

help-circle





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



  • I work in electronics manufacturing and I’m torn on this issue.

    On the one hand, fuck Apple for requiring to go through so many hoops.

    On the other hand, every device my company makes has an internal checksum and if one PCB is installed incorrectly, the main board throws a fit because the device checksum doesn’t match.

    It sounds like Apple may do something similar for their products and it sort of makes sense: determined people try something crazy like take an older iPhone and install a newer Wireless module or replace Lightning with USB-C. Neither of those things were intended by Apple, and there’s a huge potential that it wouldn’t work.

    With that said, it’s absolutely overkill for things like display or digitizer replacements, which are going to be the majority of repairs on iPhones.

    Tl;Dr - fuck Apple, this is dumb, the users have the right to repair


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