• 0 Posts
  • 42 Comments
Joined 2 years ago
cake
Cake day: June 30th, 2023

help-circle

  • Until the next update reenables it.

    Really the only OS that where hibernation and suspension works smooth enough for me has been MacOS so far. Windows wakes up the whole PC to do things. On Linux you get GPU related power state issues that cause weird things. On MacOS it has always “just worked” for me. Still not buying one though. Rather shut down my machine.



  • Javascript has a tendency to “just work” even when it might be a better idea not to. That is achieved by making assumptions and defaulting to certain pre-defined behaviors where most other languages would just stop. Unless something truly catastrophic happens, JS always tries to find a way to keep the code running. Good or bad, that’s by design just how it works.

    That is an example of this tendency. Normally the " ‘a’ + + ‘a’ " bit should be an error case, because that does not make sense. Where most programming languages would throw and error and stop execution, javascript just soldiers on. It assumes the center bit is an addition of numbers. Except since there’s no number there, it automatically injects the value that represents invalid numbers, which is “nan” for “not a number”. Then, since that “number” is surrounded by letters, it parses that number into a text value, which is the string “nan” itself. And then finally it adds all the letters together to form a banana.

    There are plenty of weird ways to get JS to give you stupid results back. Shit like these are not bugs with the language, it’s just JS working as intended. Except the way language works as intended can lead to actual bugs very easily, is the problem.


  • Twice, because usually it’s two sticks.

    In any case, RAM failure is rare enough that quadrupling its chances is not gonna make any meaningful difference. Even if it does, RAM is the easiest thing to replace in a PC. Don’t even need to go offline while waiting for a new stick. Someone who’s got the cash to build that thing in the first place won’t be too upset by the cost of another 32gb stick either, I don’t think.




  • It’s a translator. Takes commands that are meant for windows to understand, and translates them into something Linux can work with. If the program requires the services of the kernel, for instance, it makes its system call as usual but the call gets converted to a command for the Linux kernel. At the end of the day it’s the Linux kernel doing the work that was aimed at the windows kernel, and there is no windows kernel anywhere at all. That’s unlike an emulator where you’d be running the windows kernel inside your Linux environment.

    Wine also creates a windows-looking file structure so that programs can find the stuff they’re looking for where they expect them to be. Like, it creates a “program files” directory somewhere in your filesystem and tells the windows applications to look there if they need to. There’s more to it, but you get the gist I hope.

    In a way, wine extends your Linux environment to support windows stuff. Whereas an emulator would create a new windows environment entirely. The goal is not to trick software into thinking it’s on a windows machine, it’s to make it work on Linux. The difference there is that by making it work on Linux you can make it work together and share resources with the rest of the system instead of remaining isolated in its own emulated environment.









  • I use Linux myself, but my work laptop they gave me is windows. I can honestly say that I believe in near future the average Linux experience is going to be smoother than windows. Because I cannot believe how insanely annoying windows 11 is. It’s really not good. And modern Linux has more than good enough software and hardware compatibility.

    But of course it’s gonna take a long while before Linux overtakes windows because social inertia. And that’s not gonna change easily because there is no humongous international corporation that spends billions every year to get their Linux based OS pre-installed on almost every new computer.


  • They’re probably talking about Samsung TVs, not their android phones/tablets. Installing jellyfin on those things can be a chore. My experience with LG was similar. The official build was out of date and riddled with issues that didn’t exist on other versions. It refused to play videos that worked well enough on other devices, transcode or no.