• 0 Posts
  • 202 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.


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








  • bastion@feddit.nltolinuxmemes@lemmy.worldSnap...
    link
    fedilink
    arrow-up
    4
    ·
    11 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!


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







  • Sovereignty is the deeper moral right. It is any sovereign individual or group’s right to accept or reject an authority they choose to, and they must deal with the consequences of that (often implicit) choice.

    A sovereign entity who is by choice or otherwise subject to a malign power will become a channel for that malign power, regardless of whether or not they intend to. And even when there is no malign intent, there can be fundamental disagreements between sovereign states.

    It is very possible the individuals don’t support Russia. But aside from aiding and supporting defection, there’s not much we can do until Russia demonstrates a will to relinquish a hold on Ukraine, who has clearly demonstrated their sovereignty.


  • There are points of power (like code run all over the world) that are desirable targets for malicious actors.

    So, those who are subject to a malicious foreign power, whether they are innocent or not, because they are subject to a power that is not innocent.

    We don’t need to attack those people, but we need to deny the Russian state the capacity to affect those points of power where we can. They claim Russian citizenry, and so they are impacted by Russia’s choices, and the international responses to Russia’s actions.