• 0 Posts
  • 269 Comments
Joined 1 year ago
cake
Cake day: August 6th, 2023

help-circle
  • Yeah. ‘lib’ isn’t a standard Python library, it’s the name of the abomination that this person created. Since python has quite a bit of useful introspection, they can do something like:

    • get the stack
    • find the exact call to abomination.add()
    • reparse the text of that line, turn the text of the comment into actual numbers, and add them

    Now, I don’t know if python keeps the comments around, so it may involve getting the filename and line number, reading the file, and manually extracting the comment text from that line.



  • Sure, but let’s just clarify that this is someone going out of their way to create this problem, using Python’s ability to read it’s own code.

    Basically, you can load any text file, including a source code file, and do whatever you want with it.

    So, a function can be written that finds out whatever’s calling it, reads that file, parses the comments, and uses them as values. This can also be done with introspection, using the same mechanism that displays tracebacks.





  • Cursed ring of acrobatics.

    Gives the player great acrobatic skill, but sticks to their finger when they wear it. And they can’t stop getting around acrobatically. Any action attempted fails, unless it is done acrobatically. Player has normal or only slightly improved stamina.

    Player: i’ll get my rope and grappleing hook and scale the wall.

    DM: lifts eyebrow you think so, do you?

    Player: sigh I throw my pack into the air and leap after it. At the peak of its arc, I flip over it, grabbing my grappling hook and flinging it over the wall as I do.

    DM: ok, sounds like difficulty of 15…







  • Yes. It’s a scalable hobby, and can run from virtually no cost to why-are-you-burning-money. But you can do a lot in gaming with little monetary investment.

    There are lots of budget indie games that are lots of fun, and if you find out you like gaming and want to try more fancy titles, you can always upgrade hardware.

    Minimal entry: your current pc. Install steam, and buy/try what you like, returning it if it’s too slow/doesn’t work.

    Light entry: get familiar with your pc’s ram size, hd/ssd size, cpu speed/type, and graphics card. Use that to ensure your pc can handle the game by looking at the game’s minimum requirements.

    Medium-heavy entry: Upgrade things.

    • ssd if you don’t have one. The difference between that and spinning disks is night and day. If you wished things loaded faster, get this.
    • 8 gb graphics card in the $150 range, amd or nvidia-based. Get this if you want a smoother experience / if you can notice individual frames happening. You don’t need the most expensive tech to play most games that are out there.
    • Genuine XBox or PS4/5 controller. These standard controllers are generally pretty solid and durable. $60ish
    • new cpu ($$$, and may not even be an option): most games won’t be processor-bound. But some are cpu-heavy. Get this if you really want to upgrade overall, or have a particular title in mind that needs it. Or…
    • Low-mid range gaming computer ($900 ($600-$1500)): wait until you want to do a pc upgrade, and get a low-end gaming computer. I recommend Lenovo LOQ or Legion. Lenovo in general has provided laptops that don’t fall apart on me, and that’s not something I can say about most computer manufacturers. That said, keep them long enough and you’ll have to replace the keyboard - but that’s every laptop out there that I’ve run across.
    • or: go crazy and buy everything all the time at the moment it his the market because it is a game or has “game” written on, near, or associated with it (not recommended)


  • bastion@feddit.nltolinuxmemes@lemmy.worldSnap...
    link
    fedilink
    arrow-up
    4
    ·
    21 days ago

    Auto-updates are a hell-no for me.

    There was a perfectly good user interface for updates. Then Ubuntu decides “wait… What if we made updates compulsory and effectively random and skipped the UI. The user can do system updates whenever they want, because those don’t matter for security or something, but these apps must be updated whenever snap determines they must.”

    Oh, snap!






  • bastion@feddit.nltoMemes@sopuli.xyzI don't get this post!
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    21 days ago
    Traceback (most recent post last):
      The_Picard_Maneuver in memes
        I don't get this post <image>
      Hjalmanger
        I don't get this post
      Ifera
        Dumb fuck! (I also don't get it)
      CaptainBlagbird
        Dumb fuck! (Dumb fuck!) ((I also don't get it))
      Viking_Hippie
        Error! Recursion loop! Danger, Will Fuckheadson! <image>
    DumbFuckError while processing 'Error! Recursion loop!' <image>:
      DumbFuckError("Got 'Error! Recursion loop!'(Dumb fuck! (Dumb fuck!) ((I also don't get it))), but i don't get it.")