• 0 Posts
  • 18 Comments
Joined 1 year ago
cake
Cake day: July 4th, 2023

help-circle
  • I first got into Linux because I was a kid with an old hand-me-down laptop that was meant to run Windows 98 but I somehow stuffed Windows XP on there (it had a 4gb HDD and it was filled to the brim, I’m shocked in hindsight that it actually installed). Then I discovered Ubuntu (I think version 6.06?) and installed it, and it ran great! Once I got newer computers I ended up using Windows primarily but usually had a Linux PC kicking around. In college I started dual booting my main machine since Linux proved to be useful for my courses (Computer Science). Then I built a PC and just installed Windows 10 on it, but now that my 7th gen Intel CPU is “too old” to run Windows 11, I said screw it and installed Linux again. Plus I just really like having a bash shell natively, and a proper package manager is really nice.


  • I have a Surface Pro 4 (I think from 2015) and the battery life now is awful. I might be able to get an hour or two depending on the performance mode, I usually just plug it in while using it now. If I forget to plug it in between uses, it will definitely be dead the next time I go to use it.

    Plus it’s starting to feel pretty slow. I do still have Windows on it, perhaps installing Linux would help make it faster but it sounds like it takes some work to get everything working properly so I haven’t bothered.







  • This looks like a C macro. Basically what it does is replaces the word “true” in the code with (rand() > 10). The rand() function will return a random number from 0 to 32767. So (rand() > 10) will very likely return “true” but not always.

    So say you have some code like this: if (someVar == true) { // Do stuff } It would replace “true” with code that usually evaluates to “true” but not always. So every so often your code would just do the wrong thing but it would be hard to debug because it would be rare.

    Granted, in that example you probably would just write “if (someVar)” making this moot, but there are more realistic cases where you’d use the constant “true”









  • It doesn’t have to be that expensive if you keep it modest though. I have an old Dell Optiplex (I think from 2012?) that I run a fair amount of stuff on. Things like Jellyfin (with Sonarr/Radarr/etc), a finance tracking web app, Home Assistant, a wiki, and some other miscellaneous stuff. I don’t have a ton of storage though. Currently just the 512gb SSD that the OS is on. I have a couple 8TB HDDs that I want to get setup but they’re a little loud for being in my bedroom.

    The big thing I notice is that it can really struggle to encode media if it’s not in the right format. It doesn’t have much of a GPU though so that doesn’t help. And more modern hardware would be much better too, but this is fine for my needs at the moment.



  • I hear people say “program in assembler” but IMO that’s wrong. I’d say you write the code in “assembly language” (or better yet, the actual architecture you’re using like “x86 assembly”) but you “assemble” it with an “assembler”. Kind of like how you could write a program in the “C language” and “compile” it with a “compiler”