• 2 Posts
  • 43 Comments
Joined 2 years ago
cake
Cake day: June 15th, 2023

help-circle


  • Only sorta related, but now I have an excuse to tell my anecdote…

    One job ago I had a manager who decided that he would convert some of our helper scripts from bash to Python for reasons. I was new there and so didn’t realize what he was doing, or that he had started the process just as I was going through orientation. However, I ended up being the reviewer for the PR.

    This was the worst Python I had ever seen but in such odd ways and it mostly worked. It almost felt like it was written by someone who knew bash really well but had never learned any other languages, or thought that bash was just so damn good that he wanted to turn every other language into it. For example, instead of using argparse he was manually looping through argv and parsing them one at a time. And instead of using a standard for each in foo loop, there were index variables and while loops. And certainly there were no comprehensions or any understanding of the basic built in data structures other than using lists as arrays.

    So I did a review, assuming that this person was just really new to python and tried to gently coach him towards basic Pythonisms. His response was: “Oh yeah, I just ran them through ChatGPT and assumed it was all ok.”

    I quit about two months later.




  • I’ve had small Debian servers such as a RaspPi or a NUC that I’ve never updated after the initial setup and they were still working perfectly when I finally turned them off to move. If you don’t want to update a Linux system, don’t. Maybe setup auto security updates if it’s going to be exposed to the raw internet and running some open servers.




  • As a point of reference, I built a 32TB Synology last year. I took me an afternoon to get it done, plus set up Plex media server, all the arrs and friends, a backup server and a couple other things. Since then maintenance has consisted of remembering to hit the “update containers” button once a month or so. I should probably automate that part but just haven’t bothered yet.




  • The bluetooth connection definitly works:

    $ bluetoothctl info F4:6A:D7:9A:42:3A
    Device F4:6A:D7:9A:42:3A (public)
    	Name: Xbox Wireless Controller
    	Alias: Xbox Wireless Controller
    	Appearance: 0x03c4 (964)
    	Icon: input-gaming
    	Paired: yes
    	Bonded: yes
    	Trusted: yes
    	Blocked: no
    	Connected: yes
    	LegacyPairing: no
    	UUID: Vendor specific           (00000001-5f60-4c4f-9c83-a7953298d40d)
    	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
    	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
    	UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
    	UUID: Battery Service           (0000180f-0000-1000-8000-00805f9b34fb)
    	UUID: Human Interface Device    (00001812-0000-1000-8000-00805f9b34fb)
    	Modalias: usb:v045Ep0B13d0501
    	Battery Percentage: 0x64 (100)
    

    I don’t have another device to plug the USB port into, but it can at least get power from it.






  • I’d absolutely allow something like that at my table. Something like this isn’t going to have explicit rules, so even in a serious RAW (Rules As Written) game, the GM is going to have to come up with something. It’s just that we all have dice and may not have the right setup for tokens, etc.

    Really, the simple way to do it is have arrows #1-5 be the cursed ones. The player then rolls a D10 to see which ones are pulled, rerolling on repeat “arrows”.



  • It’s alway weird to me that even though Ubuntu has the largest Linux desktop market share, no one admits to using it.

    Anyway, I use Ubuntu because I was doing a lot of ROS development when I last built a machine, and getting ROS running properly on other distros can be a pain.