• 2 Posts
  • 1.64K Comments
Joined 3 years ago
cake
Cake day: June 18th, 2023

help-circle


  • mkwttoProgrammer Humor@programming.devClosing programs
    link
    fedilink
    arrow-up
    93
    arrow-down
    1
    ·
    1 day ago

    Windows does, in fact, have signals. They’re just not all the same as Unix signals, and the behavior is different. Here’s a write-up.

    You’re correct there is no “please terminate but you don’t have to” signal in Windows. Windowless processes sometimes make up their own nonstandard events to implement the functionality. As you mentioned, windowed processes have WM_CLOSE.

    Memory access violations (akin to SIGSEGV), and other system exceptions can be handled through Structured Exception Handling.



  • mkwttoFuck AIOn familiarity
    link
    fedilink
    arrow-up
    12
    ·
    4 days ago

    Counterpoint: time. Even playing simple lines, there’s a big difference between a groove that is completely locked in, and one that is not. And that difference is all about the precise timing of the hits between the players in the rhythm section. The bass sets the foundation of all of that.





  • Here’s some explanation of the Dual Sovereignty Doctrine.

    New York State is a sovereign state that derives original sovereign power from the citizens of New York. Meanwhile, the United States is also an original sovereign power that derives its power from the entire people of the United States. (Remember, the Constitution is established by “we, the People”. The U.S. is not just an agreement between individual states). Both governments have original power over the geographic territory of New York. The regular powers of government are split between the two according to the terms of the Constitution.

    Thus, New York State can exercise its General Police Power to prosecute Mr. Mangione for murder. This power is not granted by the Constitution, but it is recognized by the Constitution. The United States government can simultaneously exercise its power to Regulate Interstate Commerce, by prosecuting Mr. Mangione for the crime of “interstate stalking that caused the death of a person.”




  • A death penalty charge was laughed out of state court. This article is about federal court. Luigi is facing trial simultaneously at both levels.

    The previous hearing on the evidence suppression for 4th and 5th amendment violations was completed in state court. Mangione has to reargue all of those issues again in federal court. And the two court systems could come to different conclusions.

    Plus there are a couple of extra items that are federal only, that the article mentions.


  • If you confess a crime to anyone, that’s an admission against party interest. And it can usually come in under that hearsay exception. It’s pretty common for cops to testify to what the defendant said in custody, and also for jailhouse snitches to testify to what the defendant said in custody (i.e. this is not a special cop hearsay exception).

    And the kicker is that this doesn’t help you, the defendant. Anything you say will be used against you, but it can’t ever be used for you. Because as soon as you’re trying to introduce your own prior statements, it’s inadmissable hearsay and not an admission against interest any more.

    You’re right though that it’s going to be an argument on this every time.



  • mkwttoLemmy Shitpostgenius
    link
    fedilink
    arrow-up
    5
    ·
    9 days ago

    In some past aerospace work, I’ve seen requirements where, if you do use cast parts, you have to cast extra parts on each lot to use for destructive testing. Specifically to inspect the cross sections for flows or grains or whatever they want to look at.


  • flood the U.S. Gulf Coast and Midwest refineries with Venezuelan heavy crude.

    It is so important to understand the difference in grades of crude oil.

    The US’s refining capacity is currently oriented around lighter and sweeter crudes. They can’t just handle a big glut of Venezuelan oil today. They would need retooling and and reconfiguration. And Venezuela needs a bunch of new and reinvested infrastructure if it wants to ramp up its production.

    All of that is a large, large amount of capital expenditure, and the people who can put that money down will want solid assurances that the Venezuela arrangement will continue for years and decades.

    And Trump is certainly not giving them “long term thinking” vibes right now.




  • It was also common to have a single step mode, where the CPU advances one cycle per switch press. Very useful for debugging.

    And you could frequently read out the contents of registers directly on rows of lights. This led to the trope of the blinky light computer in Star Trek (original series) and elsewhere. Because the lights would flash in various patterns when the computer was running, as the register contents changed. But in the single step mode you could interpret the values.