• 1 Post
  • 16 Comments
Joined 1 year ago
cake
Cake day: June 16th, 2023

help-circle

  • Sonotsugipaa@lemmy.dbzer0.comtoLinux@lemmy.mlHow bad is Microsoft?
    ·
    edit-2
    17 days ago

    I'm not sure, at least the unrepairable mess made by Microsoft is software rather than hardware - you can reinstall a janky OS but you can't unexplode a phone that disassembled itself when you sneezed in its general direction.

    There's no fine line between the two companies.

    Edit: they continuously fucked up Halo in unexcusable ways, fuck them, they're worse than Apple. Forgot about that.


  • Microsoft is definitely the corpoest of them all.

    Probably not the worst corpo, likely even, but out of the corpos, they are the most corpo corpo of any corpo.

    1. They own LinkedIn, and I could just stop this list here.
    2. They're the founding fathers of Embrace, Extend and Extinguish.
    3. They are the vanguard of videogame studio consolidation, after buying Activision and Bethesda.
    4. AI
    5. Everything they do is soggy bread: you can eat it, it's probably mostly healthy, I think, but if a product is not the minimum viable product then it will be; take the Halo franchise as a reference for blandness, Windows for end user tolerance - both are controversial yet functional and popular software that people complain (and do nothing) about. Halo took quite a hit in popularity, but still...
    6. Remember when a software company got in trouble for monopolistic practices? That was a thing that happened at some point, and it was Microsoft. Not that it will ever happen again, nowadays all the cool kids have some slice of the tech landscape on a chokehold.

  • I don't know how this would be useful to someone reading the cheat sheet, but here's something interesting I just indirectly found out while skimming it through:

    Ctrl+D does the same thing as ENTER, except the latter additionally sends the end-of-line character to the reader while the former sends nothing;
    as is the case for shells or interactive programs like the Python REPL, Ctrl+D causes them to terminate only because it sends a string that is 0 characters long, and 0-size reads are universally interpreted as files reaching the end.

    To test this: enter cat, type "hello" without pressing enter, then Ctrl+D: you should see "hellohello".
    An extremely rare case of this being useful would be using netcat to send a string somewhere, without sending the end-of-line byte at the end.






  • As far as I know, C's threads.h implementation (or std::thread for C++) is based on POSIX threads.

    If you're using CMake or a similar build system that can define macros when building from Windows, then one option you have is to simply create an interface of sorts.
    Something like:

    // angle brackes work for this codeblock? idk
    
    #ifdef PLATFORM_WIN32
       // The syntax MSVC wants (which I'm not familiar with)
       #include "fuckmissingbracketsidontrememberwhatiwrotehere"
       thread_t win32_create_thread( /* ... */ ) {
          /* ... */
       }
    #else
       // The syntax sensible compilers want (which I'm also unfamiliar with because I forgor U+1F480)
       #include "fuckmissingbracketsidontrememberwhatiwrotehere"
       int thrd_create( /* ... */ ) {
          /* ... */
       }
    #endif
    

    It may be a bit tedious, but I don't know if there is some widely known C equivalent to the Boost library, at least for threads.


  • You don't have to switch, you can dualboot if you have some disk space to spare.

    Unfortunately the only rolling-release distro I've ever used for more than 10 minutes is Arch Linux, which is not "easy to use"; it's not hard, but you have to tinker with it every now and then (especially in the beginning, since you have to set everything up) - if you run pacman updates without looking at the archlinux.org frontpage beforehand you might find yourself with a malfunctioning bootloader or something on that nature.

    AL updates are known for breaking things a few times, but in my opinion it offers a good compromise between DIY and ... y'know, Ubuntu.