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

help-circle
rss
  • Someone was telling me the other day that the cheapest new car available in the UK was an electric Dacia. Obviously, you can get a used car for less than a new one, but electric cars are within reach of normal people, or at least normal enough people to not have Mr Moneybags budgets.



  • Also, the overwhelming majority of USB plugs have the logo on the side away from the plastic bit, and sockets have their plastic bits towards the top of the device. You want the plastic bits on opposite sides (as physical objects don’t like to overlap), so that means that if you can feel the logo with your thumb, that side goes up when you plug it in, and you don’t even have to look.



  • Arch is at least more likely to update to a fixed version sooner, and someone getting something with pacman is going to be used to the idea of it breaking because of using bleeding edge dependencies. The difference with the Flatpak is that most users believe that they’re getting something straight from the developers, so they’re not going to report problems to the right people if Fedora puts a different source of Flatpaks in the lists and overrides working packages with ones so broken as to be useless.



  • If you write cross-platform software, the easiest solution is usually to pretend everything’s Unix. You’ll hit some problems (e.g. assuming all filesystem APIs always use UTF-8 will bite you on Windows, which switched to UCS2 before UTF-8 or UTF-16 were invented, so now uses UTF-16 for Unicode-aware functions as that’s the one that’s ABI compatible with UCS2, and passing UTF-8 to the eight-bit-char functions requires you to opt into that mode explicitly), but mostly everything will just work. There’s no XDG_CONFIG telling you to put these files anywhere in particular, as Windows is Windows, so most things use ~ as a fallback, which Windows knows to treat as %USERPROFILE%.




  • You can jam the Windows UI by spawning loads of processes with equivalent or higher priority to explorer.exe, which runs the desktop as they’ll compete for CPU time. The same will happen if you do the equivalent under Linux. However if you have one process that does lots of small allocations, under Windows, once the memory and page file are exhausted, eventually an allocation will fail, and if the application’s not set up to handle that, it’ll die and you’ll have free memory again. Doing the same under every desktop Linux distro I’ve tried (which have mostly been Ubuntu-based, so others may handle it better) will just freeze the whole machine. I don’t know the details, but I’d guess it’s that the process gets suspended until its request can be fulfilled, so as long as there’s memory, it gets it eventually, but it never gets told to stop or murdered, so there’s no memory for things like the desktop environment to use.


  • Even by crypto standards, Bitcoin Cash is dodgy. Its origins were a temporary hiccup in the Bitcoin network which forked the blockchain into two branches. As blockchains are designed to tolerate this, the network quickly decided that one branch was worse than the other, so everything switched to the good branch and Bitcoin continued chugging away and consuming enough power for a small country. However, a few people were cross about this because they had more Bitcoin on the dead branch, so manually configured their wallets and mining hardware to use that branch, and tried encouraging other people to do the same. That didn’t work. They then decided to provide a preconfigured wallet and mining software that would prefer the dead branch but claimed it was its own new cryptocurrency and everyone who had Bitcoin already would get some of the new one for free, and that was enough to get some people to sign up.




  • Sometimes when a product is whitelabeled and can be bought directly from its real manufacturer for much less, there’s still a good reason to buy the expensive one. The main one is that sometimes the ones that pass QA are sold via the whitelabeler and the ones that fail QA are sold directly, so the cheaper ones are known to have something wrong with them and you’re gambling that it’s something without symptoms.