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

help-circle

  • I think this is just a picky optimization.

    The first one runs the constructor to instantiate a new string, then gets its class (which is presumably a static property anyway). The second doesn’t have to run any constructor and just grabs the static class name from the type.

    Maybe there’s more implementation nuance here but it seems like an opinionated rule that has zero effect on performance unless that code is being called thousands of times every second. And even then the compiler probably optimizes them to the same code anyway.



  • This happened to me once and I completely overthought it.

    In my case, I removed the PCB from the drive and took a close look and saw a single scorched IC that I figured was the problem. I think it was a voltage regulator or something like that.

    So I bought a scrap drive and tried to transplant the PCB onto my dead drive, but of course that wouldn’t be able to read my old data.

    So took it into a local electronics repair shop and asked if he’d be able to make it work.

    He took one look at the damaged PCB, pushed the scrap one back at me and said “yeah I’ll just replace this part.”

    40 bucks later I had a working drive again and was able to rescue the data.







  • You should be able to play a video that’s at 100% even if the torrent isn’t complete.

    It could be a codec issue? If you’re using windows there’s a tool called MediaInfo you can install that’ll analyze a video file and tell you if it’s corrupt and what codecs it uses. You might just need to install a codec pack like K-Lite if your system doesn’t already have the codec you need. Or, like an other commenter said, try opening it in VLC which has killer codec support built in.






  • A full stack developer is either a back end developer that has no business writing front end code but does it anyway, or they’re a front end developer that has no business writing back end code but does it anyway.

    Or they’re perfectly capable of doing both because they’re at a startup that’s years away from running at scale or having to worry about performance and security.





  • I looked into this a while back and gave up.

    I didn’t find any (good) models I wouldn’t have to pay for, but some of the paid STL sites had sets available for really reasonable prices, so that wasn’t really a blocker.

    But FDM is basically incapable of printing any interesting models. Even if you’re printing good layers, most interesting models aren’t geometrically compatible with how an FDM model prints. You can print with supports, but removing supports from such thin, fragile bits of a model is nigh impossible without doing damage.

    I went as far as shopping around for a resin printer, but I didn’t like all the ventilation cautions I read. Adding a printer is one thing, but having a well ventilated area that overlaps with where I’d want a printer was an unsolveable problem in my home.

    If you just want to give it a try, grab a model off Thingiverse and see how your printer does. If you can get a piece you’d be happy to proceed with painting, that might be worth a few more iterations to see if it’s workable for your setup.