• 0 Posts
  • 34 Comments
Joined 1 year ago
cake
Cake day: December 26th, 2023

help-circle

  • I’ve used it a fair amount for memory mapped IO where the hardware defined bitfields. It is also useful when you have a data format with bitfields. I’d say it is also useful when your data does not respect byte boundaries, but the only time I’ve run into that involved the bit order being “backwards”, which means that I still had to bittwidle things back together.

    From a performance perspective, a cache line is only 64 bytes. Space in registers, low level memory caches, and memory throughout are all limited as well.



  • Congress does not have the constitutional authority to declare a prior Congresses laws invalid. For a bunch of internal stuff like the fillubuster rules, or remote voting, the current Congress can do whatever it wants without presidential review. However once a law is passed through the constitutional process, the constitution does not have a separate process for repealing it. This means that Congress would need to go through the same constitutional process to repeal it, which includes the possibility of a presidential veto.

    Having said that, the Supreme Court does have the constitutional authority to declare a law invalid[0], and the President has no veto authority over that. Further, the current Supreme Court has invented out of nothingness two bedrock pillars of constitutional analysis:

    1. The Major Questions Doctrine, which states that questions of major political or economic significance may not be delegated by Congress to the executive branch.

    2. The Non-Delegation Doctrine, which states that Congress may not delegate it’s lawmaking authority to other entities.

    Since the Supreme Court is an unbiased arbiter of the law, I’m confident that they will apply these principles consistently and determine that Congress’s initial delegation if tarrif authority was unconditional. /s

    [0] This is not actually explicit in the Constitution. But has been how it is interpreted since Marbury v Madison in 1803.





  • The actual difference between a working new mouse and a failing double click mouse is in the button itself (mechanical parts are almost always the problem).

    However, it is not some exotic failure mode. All mechanical switches have a “bounce”, where the contact makes and breaks a few times before settling into the connected position. Switches are typically designed to make the actual contact spring loaded (which is the origin of the click sound you here). As they age, this mechanism degrades, making the bouncing problem worse.

    However, this is a well understood problem that any electrical engineer should be familiar with. One solution is to install a filter capacitor. Now it takes longer to switch between the on and off state, so the inherent bounce in the switch is smoothed out to the point where you cannot detect it.

    They probably did testing with a new switch, and decided that they didn’t need to include any explicit debounce component, ignoring the fact that the switch would degrade over its lifetime.




  • Delegates have been determined prior to the convention for as long as I can remember. That is the entire point of the primary.

    In this case, the person who won the primary has withdrawn. The presumptive nominee is now the person who voters expected to be his VP pick; so they should have understood that their vote for Biden was a vote for Harris if something happens to Biden.

    Additionally, Biden has endorsed Harris. Most of the delegates are pledge to support Biden. While they are technically free to vote their conscious, the argument of “I should support the person endorsed by the one I was sent here to support” is pretty persuasive. As is the argument of “no one is running against her”

    The issue with Clinton was the presence of super delegates, who were not required to follow any primary election results. An open convention turns all delegates into super delegates.


  • I think what happened here is that something went wrong and messed up the permissions of some of the users files. MS help suggested that he login as an administrator and reatore the intended permissions.

    I don’t work with Windows boxes, but see a similar situation come up often enough on Linux boxes. Typically, the cause is that the user elevated to root (e.g. the administrator account) and did something that probably should have been done from their normal account. Now, root owns some user files and things are a big mess until you go back to root and restore the permissions.

    It use to be that this type of thing was not an issue on single user machines, because the one user had full privileges. The industry has since settled on a model of a single user nachine where the user typically has limited privileges, but can elevate when needed. This protects against a lot of ways a user can accidentally destroy their system.

    Having said that, my understanding of Windows is that in a typical single user setup, you can elevate a single program to admin privileges by right clicking and selecting “run as administrator”, so the advice to login as an administrator may not have been nessasary.



  • In addition to the raw compute power, the HP laptop comrmes with a:

    • monitor
    • keyboard/trackpad
    • charger
    • windows 11
    • active cooling system
    • enclosure

    I’ve been looking for a lapdock [0], and the absolute low-end of the market goes for over $200, which is already more expensive than the hp laptop despite spending no money on any actual compute components.

    Granted, this is because lapdocks are a fairly niche product that are almost always either a luxury purchase (individual users) or a rounding error (datacenter users)

    [0] Keyboard/monitor combo in a laptop form factor, but without a built in computer. It is intended to be used as an interface to an external computer (typically a smartphone or rackmounted server).



  • At a $188 price point. An addition 4GB of memory would probably add ~$10 to the cost, which is over a 5% increase. However, that is not the only component they cheaped out on. The linked unit also only has 64GB of storage, which they should probably increase to have a usable system …

    And soon you find that you just reinvented a mid-market device instead of the low-market device you were trying to sell.

    4GB of ram is still plenty to have a functioning computer. It will not be as capable of a more powerful computer, but that comes with the territory of buying the low cost version of a product.


  • Because the thing people refer to when they say “linux” is not actually an operating system. It is a family of operating systems built by different groups that are built mostly the same way from mostly the same components (which, themselves are built by separate groups).


  • Sudo is a setuid binary, which means it executes with root permissions as a child of of the calling process. This technically works, but gives the untrusted process a lot of ways to mess with sudo and potentially exploit it for unauthorized access.

    Run0 works by having a system service always running in the background as root. Running a command just sends a message to the already running seevice. This leaves a lot less room for exploits.