• 0 Posts
  • 53 Comments
Joined 2 years ago
cake
Cake day: August 6th, 2023

help-circle

  • Yeah, I’ve got something like this. My WiFi router has aliased over my public domain name. So, it, having the authority in my network, tells people to go directly to the local address.

    If I leave, a refresh grabs the IP from a public/corporate DNS server, pointing to our external IP.

    It works nicely, even though home assistant now has a ‘private’ and ‘public’ domain name that I could be using instead. Still, one name. Easier on the brain.


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


  • Late stage capitalism.

    The issue is that capitalism fundamentally requires forward thinkers and enlightened (or at least rational) perspective to function sustainably.

    But capitalism rewards short term thinking, everywhere from corporate leadership, to the workforce, to the consumers caught by ads designed to catch and hold their ever-shortening attention spans.

    Fundamentally, it needs regulation to thrive. The true cost of a purchase, including environmental and decommissioning/disposal costs must be tied to the initial purchase value. Through this, we might get a functional capitalism.







  • This game is absolutely fucking solid.

    • Excellent, balanced gameplay
    • AI that doesn’t cheat (unless you count being incredibly fast at micromanaging)
    • choose your own music for menus, gameplay, action gameplay
    • scenarios for single player gameplay
    • lots of maps, for 2-16 players
    • active lobby
    • they host game servers for for for $0 (but seriously, please donate)
    • in-development features that can be enabled with a click and tested
    • ridiculous features, so you can do different game modes
    • still under active development and expansion
    • awesome community
    • physics-based gameplay - that means, shots are actively rendered. Beam weapons do damage while on. If something drives into it, it takes damage. If you hit your own guys, they die. If you put shields around one section of your base and not another, the plasma cannon rounds might just bounce off and hit your stuff anyways, if it comes from the right angle to do so.
    • radar has line-of-sight - i.e., hide behind a cliff face and advance, and place your own radars well.
    • rock-paper-scissors-lizard-spock. That is - air, sea, and ground units, each with unique advantages - but also, amphibious units, hovercraft, long range vs short range, fast vs slow - deep strategic complexity.

    Negatives:

    • some assholes exist, because humans
    • unintuitive menu system
    • unintuitive separation of main menu options and in-game options.