• 0 Posts
  • 367 Comments
Joined 2 years ago
cake
Cake day: June 23rd, 2023

help-circle
  • Idk, I guess I should ask why python needs a default function? If I’m running it as a script with commandline invocation I just copy and paste the if main namespace thing from stack overflow and it works as I intended. It also works if I invoke via python my_script.py $args, so I don’t really see why I should philosophically care about how other languages that I’m not using do it.












  • What she’s saying is to use the word “kings” instead of “oligarchy”. Which I get. Sure - do that. Makes sense. Same argument, same vitriol, more punch.

    Still don’t agree with that. Oligarchy is a very specific thing that we are currently living in. We don’t have a king, not even by the most new-speak of definitions.

    Detailing her plan, Slotkin – a former analyst for the Central Intelligence Agency (CIA)

    Also hard pass. The CIA should be shuttered they will never be able to provide solution to the problems of capitalism, because their number one goal is to secure “US Interests Abroad” meaning, prop up the oligarchy.



  • PowerCrazy@lemmy.mltoProgrammer Humor@lemmy.mlA quick intro to pointers
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    1
    ·
    6 months ago

    I “understood” on a basic level what pointers were when i was first learning programing as a 12-13year old. But I never understood HOW to use them, or manipulate them, or what functions you use to interact with them, or how to examine them, or how to declare them, etc etc. And since I was young I never got the opportunity to take an actual programming class that taught any of that throughout high school. By the time I got to college I went with Electrical Engineering instead of computer science and so my journey with pointers ended.

    Now I do python and never have to think about pointers.






  • Turn off broadcast of the SSID

    Don’t do this. It provides zero security, and just reduces usability. Now you should call your SSID something non-identifiable. So instead of “$YourName Wifi” call it “pleasure chest” or something. Additionally do not set a ridiculous 64 character + special characters password, because again you are providing next to zero additional security, while hugely reducing usability.

    Use a simple password scheme of 3-5 unrelated common words like from here: https://www.correcthorsebatterystaple.net/index.html for your wifi password.


  • I guess having a thick provisioned VM image on your laptop means that you are hiding something. Again if the evil government you are trying to hide something from doesn’t need reasonableness as a reason to detain you, then who cares? No matter what you do you are rolling the dice every time you interact with them.

    Which is of course similar to the US today, so if I needed to hide something from them I’d make sure that once i’m legally compelled to give my password they at the very least wouldn’t have what they are looking for, since there is no way I could prove I didn’t have it anyway.