• @yesman@lemmy.worldOP
    link
    fedilink
    419 months ago

    That’s a good point:

    Disable copilot via regedit

    [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsCopilot] “TurnOffWindowsCopilot”=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot] “TurnOffWindowsCopilot”=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge] “HubsSidebarEnabled”=dword:00000000

    [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] “DisableSearchBoxSuggestions”=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer] “DisableSearchBoxSuggestions”=dword:00000001

    Reenable copilot via regedit

    [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsCopilot] “TurnOffWindowsCopilot”=-

    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot] “TurnOffWindowsCopilot”=-

    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge] “HubsSidebarEnabled”=-

    [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] “DisableSearchBoxSuggestions”=-

    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer] “DisableSearchBoxSuggestions”=-

      • Bezier
        link
        fedilink
        18
        edit-2
        9 months ago

        Using more than one bit for true/false isn’t just a microsoft thing, and not really as ridiculous as it sounds. Memory isn’t addessable by bits, but by bytes. You can either:

        • Do it like the example here.
        • Use bitfields: Pack multiple values into the same address, but “waste” more memory and cpu time for keeping track and checking which bit your bool is in. This is mostly useful when the data itself has to be really small.

        Why is it 32bit / 4 bytes instead of one? I assume a byte alignment reason because of some optimization.

      • MacN'Cheezus
        link
        fedilink
        English
        79 months ago

        I bet the person who decided to store gender as a 32 bit value instead of a single bit is feeling utterly proud of his foresight right now.