• 0 Posts
  • 44 Comments
Joined 1 year ago
cake
Cake day: July 11th, 2023

help-circle

  • my solution to this is to only deal with the UPS in proxmox. it shuts down everything if the battery goes below a certain level.

    I think you can configure nut to run a few scripts when something changes around the UPS. you could have a script that sends an alert through ntfy, and/or the web services that you want to use for this, but I’m not familiar with the notification system of nextcloud and truenas








  • WhyJiffie@sh.itjust.workstolinuxmemes@lemmy.worldTerminating a process
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    1
    ·
    edit-2
    6 days ago

    on windows a process can get in a state so that it is impossible to make it go away, even with process explorer or process hacker. mostly this also involves the bugged software becoming unusable.

    I encounter such a situation from time to time. one way it could happen is if the USB controller has got in an invalid state, which one of my pendrives can semi-reliably reproduce. when that happens, any process attempting to deal with that device or its FS, even the built-in program to remove the drive letter, will stop working and hang as an unkillable process.












  • i still don’t understand. is it easier in python or JS to make getters and setters? with python my experience has been the opposite, with the decorator based solution in mind.
    or if the problem is that they exist, as an option to be used, why is that a problem? they can be implemented in any other language, and it can be useful.

    then yeah, you should check for nulls. just like for None’s in python, or if you have the correct type at all, because if it’s entirely different but ends up having a function or variable with the same name then who knows what happens.
    then in javascript besides null, you also have undefined and NaN!