• 39 Posts
  • 382 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle






  • When it comes to writing code, there is a huge difference between code that works and code that works *well." Lets say you’re tasked with writing a function that takes an array of RGB values and converts them to grayscale. ChatGPT is probably going to give you two nested loops that iterate over the X and Y values, applying a grayscale transformation to each pixel. This will get the job done, but it’s slow, inefficient, and generally not well-suited for production code. An experienced programmer is going to take into account possible edge cases (what if a color is out of the 0-255 bounds), apply SIMD functions and parallel algorithms, factor in memory management (do we need a new array or can we write back to the input array), etc.

    ChatGPT is great for experienced programmers to get new ideas; I use it as a modern version of “rubber ducky” debugging. The problem is that corporations think that LLMs can replace experienced programmers, and that’s just not true. Sure, ChatGPT can produce code that “works,” but it will fail at edge cases and will generally be inefficient and slow.


  • I can’t find a decent screen protector for my Galaxy S23, no matter how I try, and it’s all due to the damned in-display fingerprint reader. Any adhesive-style screen protector has an open area for the fingerprint reader, and it’s either a different material or a different thickness; they all look like shit. I’ve tried the screen protectors that use a UV-cured adhesive, and they’re messy, difficult to apply properly, and generally a pain in the ass.

    I’ve relegated myself to not using a screen protector at all, but considering my pocket lint scratches my screen, it sucks.


  • There are really two reasons ECC is a “must-have” for me.

    • I’ve had some variant of a “homelab” for probably 15 years, maybe more. For a long time, I was plagued with crashes, random errors, etc. Once I stopped using consumer-grade parts and switched over to actual server hardware, these problems went away completely. I can actually use my homelab as the core of my home network instead of just something fun to play with. Some of this improvement is probably due to better power supplies, storage, server CPUs, etc, but ECC memory could very well play a part. This is just anecdotal, though.
    • ECC memory has saved me before. One of the memory modules in my NAS went bad; ECC detected the error, corrected it, and TrueNAS sent me an alert. Since most of the RAM in my NAS is used for a ZFS cache, this likely would have caused data loss had I been using non-error-corrected memory. Because I had ECC, I was able to shut down the server, pull the bad module, and start it back up with maybe 10 minutes of downtime as the worst result of the failed module.

    I don’t care about ECC in my desktop PCs, but for anything “mission-critical,” which is basically everything in my server rack, I don’t feel safe without it. Pfsense is probably the most critical service, so whatever machine is running it had better have ECC.

    I switched from bare-metal to a VM for largely the same reason you did. I was running Pfsense on an old-ish Supermicro server, and it was pushing my UPS too close to its power limit. It’s crazy to me that yours only pulled 40 watts, though; I think I saved about 150-175W by switching it to a VM. My entire rack contains a NAS, a Proxmox server, a few switches, and a couple of other miscellaneous things. Total power draw is about 600-650W, and jumps over 700W under a heavy load (file transfers, video encoding, etc). I still don’t like the idea of having Pfsense on a VM, though; I’d really like to be able to make changes to my Proxmox server without dropping connectivity to the entire property. My UPS tops out at 800W, though, so if I do switch back to bare-metal, I only have realistically 50-75W to spare.


  • Social media companies, adult websites, whatever, can try to find ways to block children from accessing their content, but kids will always find a way around it.

    It’s the parents’ responsibility to control their children. I’ve said 1000 times, children don’t need access to smartphones and tablets. A desktop PC or laptop with strict parental controls is adequate enough for school work, learning about technology, and some basic entertainment.

    When a child is old enough to work and pay for a smartphone themselves, then they’re old enough to have a smartphone. A prepaid flip phone with basic voice and SMS is more than enough for a 15-year-old.


  • I have a few services running on Proxmox that I’d like to switch over to bare metal. Pfsense for one. No need for an entire 1U server, but running on a dedicated machine would be great.

    Every mini PC I find is always lacking in some regard. ECC memory is non-negotiable, as is an SFP+ port or the ability to add a low-profile PCIe NIC, and I’m done buying off-brand Chinese crop on Amazon.

    If someone with a good reputation makes a reasonably-priced mini PC with ECC memory and at least some way to accept a 10Gb DAC, I’ll probably buy two.



  • Kudos for posting an actually unpopular opinion.

    I’m not vegan in the sense that I do still use animal products; I realize that it’s wrong, but it’s difficult to get away from. I haven’t eaten meat in over a decade, so I guess that “vegetarian” is probably the best description.

    That being said, I have FAR more respect for those who go hunting and fishing than for those who eat meat from a restaurant or supermarket. Eating a hamburger or a steak is easy. You simply go to a store and buy it. Yet people stick their head in the sand and ignore the fact that factory farming is a brutal practice that causes an absolutely disgusting amount of pain and suffering for animals. The masses conveniently ignore that fact and continue on with their meat-based diets.

    Hunting an animal for food means that although you’re killing the animal, it’s still lived a natural life. It hasn’t suffered on a factory farm and been raised solely for human consumption. Hunters cause far less suffering than farmers.





  • I’m okay with the “human-readability,” but I’ve never been happy with the “machine-readibility” of XML. Usually I just want to pull a few values from an API return, yet every XML library assumes I want the entire file in a data structure that I can iterate through. It’s a waste of resources and a pain in the ass.

    Even though it’s not the “right” way, most of the time I just use regex to grab whatever exists between an opening and closing tag. If I’m saving/loading data from my own software, I just use a serialization library.


  • I’ve never understood this. Even if they are absolutely convinced that they’re right, you can go watch 1000 videos of judges and cops who are wholly unimpressed with their gibberish. They might be convinced they know a hidden truth, but what good is it when the established institutions don’t recognize it as truth?

    My theory is that they’re just lacking in reasoning skills. How else would you become a sovcit in the first place? If their arguments were effective, every lawyer in the country would be using them.


  • I truly believe that these license plates actually work but not for the reason these idiots think.

    As soon as a cop sees your plate, they instantly know you’re driving an unregistered vehicle, probably dont have a license, insane, looking for an argument, and impervious to reason. Good chance they’re going to say “Fuck it, I’m not dealing with this crap today.”