• 1 Post
  • 22 Comments
Joined 1 year ago
cake
Cake day: January 16th, 2024

help-circle











  • I’d been meaning to try out atomic distros. I’m not an expert on Linux by any means but I’ve been using it on-and-off for about 25 years, and exclusively (at home, at least) for about 7. So I’m a bit more than a noob.

    I do worry if I’d feel restricted inside of an atomic distro. Might throw kininite on a laptop I’ve been meaning to give to my kid, tho.




  • This is bad practice.

    More accurately it should look something like this:

    # Load sys library for exiting with status code
    import sys
    
    def sayHelloWorld(outPhrase: str="Hello World"):
        # Main function, print a phrase and return NoneType
        print(outPhrase)
        return None
    
    if __name__=="__main__":
        # Provide output and exit cleanly when run from shell
        sayHelloWorld()
        sys.exit(0)
    else:
        # Exit with rc!=0 when not run from shell
        sys.exit(1)
    



  • As a network guy…open up your favorite web-managed application and open the developer console. Inspect the transactions you see and compare it to the applications REST API reference, and you’ll likely find a lot of commonality (and maybe some undocumented endpoints!).

    Backend made the API and everything that is performed by it. Front end is doing the GUI based off the response and promoting for input.