• 0 Posts
  • 108 Comments
Joined 1 year 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.


  • This is a circumstance born, in no small part, of the idea that manual labor and menial labor is meaningless and has no real value.

    Our economy has been sold from beneath us, and the overall cultural ideologies result in most people avoiding these things. But it is the only thing that is actual production - the rest of the economy is all efficiencies or expenditure.

    Slowly, the wealth has slipped away, and now it’s becoming apparent to people, and they don’t know who to blame.

    Find or make an enclave and survive together.





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