• 1 Post
  • 1.12K Comments
Joined 11 months ago
cake
Cake day: August 9th, 2023

help-circle
  • It’s a series where a dragon kidnaps a princess, and a plumber from New York must save her. To do so, he must gather mushrooms by hitting bricks while jumping with his fist, jump on turtles to make them hide in their shell, and dodge fire breathing plants.

    In the most recent 2d incarnation, the fire breathing plants will sing at you.

    The people who made this were on a lot of drugs.







  • I think your confusion is warranted, because it’s not clear how SCOTUS’ decision is different from what the Constitution comes right out and says. On the surface, it does seem to just reaffirm what we already know, and maybe the liberal justices are just whinging.

    The trick is that they did it in a way that causes a lot more work in the courts. In turn, that means Trump’s trials get delayed further.

    Nobody sane is going to argue that getting a hostile crowd to surround and storm the capitol while an important procedural vote is taking place is an official act of a President. But now it has to be ruled on, specifically, and that’s one more thing to add to the pile before the obvious verdict can be reached.

    Trump’s lawyers have already filed an argument in the hush money case that certain points of evidence should be removed because they were official acts. If so, that would potentially result in a mistrial, and so the only Trump criminal case that went forward would have to be redone.





  • As an example, Klipper (for running 3d printers) can update its configuration file directly when doing certain automatic calibration processes. The z-offset for between a BLtouch bed sensor and the head, for example. If you were to save it, you might end up with something like this:

    [bltouch]
    z_offset: 3.020
    ...
    #*# <---------------------- SAVE_CONFIG ---------------------->
    #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
    #*#
    [bltouch]
    z_offset: 2.950
    

    Thus overriding the value that had been set before, but now you have two entries for the same thing. (IIRC, Klipper does comment out the original value, as well.)

    What I’d want is an interface where you can modify in place without these silly save blocks. For example:

    let conf = get_config()
    conf.set( 'bltouch.z_offset', 2.950 )
    conf.add_comment_after( 'bltouch.z_offset', 'Automatically generated' )
    conf.save_config()
    

    Since we’re declaratively telling the library what to modify, it can maintain the AST of the original with whitespace and comments. Only the new value changes when it’s written out again, with a comment for that specific line.

    Binary config formats, like the Windows Registry, almost have to use an interface like this. It’s their one advantage over text file configs, but it doesn’t have to be. We’re just too lazy to bother.