• 0 Posts
  • 28 Comments
Joined 1 year ago
cake
Cake day: June 9th, 2023

help-circle
  • Pentium D processors are pretty power hungry, so factor that into your thoughts. Also make sure you put a modern OS on it that is getting security updates. It probably has Win XP or Vista installed which isn’t safe to connect to any network.

    It should work fine as a router as long as you don’t enable any of the packet inspection features. For basic routing and firewalling for a home network it should be plenty powerful. I would personally put a small SATA SSD in it as the main drive and ditch the 90GB HDD.

    As an additional idea, if you put a larger SATA drive or two into it you could make it a NAS.


  • I have not personally experienced a dropout with a SMR drive. That is from the reporting I saw when WD was shipping out SMR drives in their Red (NAS) lineup and people were having all kinds of issues with them. According to the article (below), it sounds like ZFS has the worst time with them. WD also lost a class action suit over marketing these as NAS drives, while failing to disclose they were SMR drives (which don’t work well in a NAS).

    We want to be very clear: we agree with Seagate’s Greg Belloni, who stated on the company’s behalf that they “do not recommend SMR for NAS applications.” At absolute best, SMR disks underperform significantly in comparison to CMR disks; at their worst, they can fall flat on their face so badly that they may be mistakenly detected as failed hardware. Source




  • BombOmOm@lemmy.worldtoProgrammer Humor@programming.devLife Hack
    link
    fedilink
    English
    arrow-up
    86
    arrow-down
    1
    ·
    3 months ago

    Assuming the accounting system this thing links with both does not protect from SQL injection attacks (many don’t, despite it being easy to protect against) and also has a table named “Bills” with a field named “amount”; what this would do is go through every single Bills record and half the value in the amount field. This would completely fuck the system, particularly when it came to billing and tax filing as the numbers for accounts billing and receivable wouldn’t even come close to matching each other. The accounting department would have a hell of a time fixing the damage.


  • Since the health is a float, yeah, it can create issues. A health of 0.000000001 is greater than zero, but that would almost assuredly be displayed to the user as simply 0, causing player confusion. The easiest solution is to have health and damage always be integers. A less great solution is to use a non-floating point decimal format. If such doesn’t exist in your language, you can emulate one by having health and damage both always be integers, but move the decimal point over, say two points, when displaying to the user.


  • I’m still annoyed with how verbose Objective-C is. Just check out what one has to do to create and concatenate a string. Madness:

        NSString * test = [[NSString alloc] initWithString:@"This is a test string."];
        NSString * test2 = [test stringByAppendingString:@" This value is appended."];
    

    And god forbid you want to concatenate two things to a string:

        NSString * test3 = [test1 stringByAppendingString:[test2 stringByAppendingString:@" Adding a third value."]];
    

  • There are some decently priced drives available used on eBay and Mercari, but they tend to get snatched up pretty quickly. Official refurbs are probably your best bet if you don’t want new, I know B&H sells official refurbs.

    The main issue is people think ‘I spent $200 on this, it still works, I’ll sell it for $150 used’ and don’t bother checking what is actually selling. Both eBay and Mercari have a sold listings filter, which is a great way for both buyers and sellers to figure out what things are actually worth.





  • BombOmOm@lemmy.worldtoSelfhosted@lemmy.worldDAS recommandation
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    4 months ago

    I personally use an old self-built desktop running linux (TrueNAS and Windows also work). Getting a case with lots of drive bays is inexpensive. And it lets you do pretty much whatever you want with the NAS as it’s a full blown computer. I always found the prices for the purpose built NAS to be shockingly high.






  • BombOmOm@lemmy.worldtoSelfhosted@lemmy.worldAdvice for buulding a cheep NAS
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    edit-2
    6 months ago

    Your basic components will be an old desktop you have lying around and two hard drives. Put the two hard drives in RAID 1 (mirroring) set with either a network share and/or FTP access to add/remove stuff from the array. The drives optimally should be the same size, but if they aren’t that is OK, the amount of redundant space available will the the size of the smaller of the two drives.

    Depending on what you have lying around this might not cost you anything. However, if you are going to spend money anywhere it should be on the drives themselves. You probably don’t need anything fancy, just a pair of 5400RPM HDDs that are large enough to hold your data, plus some room to grow.

    You can use any OS of your choosing as basically everything supports the requirements. Linux, Windows, and TrueNAS come to mind as viable options. You may or may not want a third, tiny, drive just to boot the OS, particularly for Windows, as it can make things easier. I personally use Linux for my basic NAS with SFTP access.


  • BombOmOm@lemmy.worldtoSelfhosted@lemmy.worldCybwerPower PR1500RT2U / PR1500RTXL2U
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    6 months ago

    I suppose if you want to tinker with the device remotely the cloud feature might be useful. However, I know I have personally never felt the need to tinker with a UPS. They are a set-it-and-forget-it appliance.

    I just put a physical label on each one listing when the battery was last replaced, so I know when it is time to replace with a fresh one.

    Edit: Nor do I trust them to keep up to date with security patches for an IoT UPS. Remember, the S in IoT stands for security. Don’t add any IoT devices to your network you don’t need to.