• 0 Posts
  • 11 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle
  • LrdThndr@lemmy.world
    cake
    toSelfhosted@lemmy.worldFully Virtualized Gaming Server?
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    edit-2
    18 days ago

    I bought a cheap used Dell R710 on Facebook marketplace for like $100 or so, as well as an ups, rack, 10g switch, etc, from various other sellers. All told, I’ve got about $500 in my server setup.

    Installed proxmox on it. It’s “free” if you don’t buy a license. You just have to put up with a little nag screen when you open the control panel but it still works 100%, much like winrar.

    Works great.

    Edit: just realized this is in c/selfhosted AND I misunderstood the post. I’m gonna leave it here just on the off chance it’s useful to somebody, but I acknowledge it’s not what you’re looking for.







  • With RAID10, you’d have 8TB of storage that is both striped and mirrored. You’d get a 4x increase in read speed and a 2x increase in write speed. You’d be fault tolerant against AT LEAST one drive failure, possibly two depending on which drives fail.

    With RAID5, you’d have 12GB that is striped and parity checked. You’d get a 3x read speed increase and normal write speed. You’d be fault tolerant against a single drive failure.

    With RAID6, you’d have 8TB that is striped and parity checked. You’ll have a 2x increase in read speed and normal write speed. You’ll be fault tolerant against two concurrent drive failures.

    I recommend RAID10 if you want the all around speed boost and fault tolerance but don’t care so much about capacity;

    RAID6 if you care more about redundancy;

    RAID5 if you want a read speed boost and more capacity with a little fault tolerance mixed in.

    There’s also raid 0, which is gonna be hella fast all around but god help you if somebody farts too aggressively next to it; and raid 1 if you just want 4 redundant backups of the same drive.

    Personally, I’d go 10 unless you just really want the extra storage.



  • I’m paying $115/mo for 1G down 30M up, no data cap.

    I WAS paying $150 for the same until I called and bitched that new subscribers were getting the same for $89. So, still getting fucked, but at least they’re using lube now.

    There’s fiber literally on the next street over from me. Come the fuck on guys - fiber in my neighborhood. Let’s fucking gooooooooooo already. You’ve been teasing me for years. Quit pulling my hair and fuck me already damn.



  • LrdThndr@lemmy.world
    cake
    toSelfhosted@lemmy.worldPHP and security
    link
    fedilink
    English
    arrow-up
    47
    ·
    1 year ago

    I’m a full time senior PHP/JS developer.

    PHP has a bad rap because of a few factors.

    1, as you said, it’s accessible. It’s a very easy language to learn with a simple syntax and a simple tool chain. So often, it’s a dev’s first language. PHP holds your hand a little bit, but for the most part, security is on the developer, and when a dev doesn’t know any better, bad practices like interpolating values directly into your sql query seem like an easy way to get the job done, but at the hidden cost of opening up SQL injection vulnerabilities. But I’ve seen the same thing happen in Python code, so that’s not really a PHP problem so much as an education problem.

    2, earlier versions of PHP were, in a word, shit. They were rife with inconsistencies, poor structure, half-baked features, and it all ran like dogshit. Even today, there’s still some contention in the PHP world about whether to fix the inconsistencies or not, because so much legacy code would fall apart if they did. PHP <= 4 was a goddamned dumpster fire. 5 was MARGINALLY better and brought in proper OOP. 6 literally didn’t exist for various reasons. 7 was actually getting pretty good, now with optional static typing. 8 is BANGIN’. It’s fast, easy to work with, has a great feature set, and a huge community.

    3, it’s a big player. When you’re a huge player, you’re also a huge target. Wordpress is one of the most prolific web apps in existence, and it’s PHP based. Being huge, many more people are writing (shit) code for it, and many more (shit) people are trying to break it. Of course software that’s run on more servers is gonna be attacked more. It’s just numbers.

    TBH, today, working in both languages extensively, I’d gladly take a PHP based web app over a NodeJS based web app. Don’t get me wrong, I love node for what it is and the paycheck I get, but JS is a goddamned dumpster fire of a half-baked language.

    So tldr, don’t fear the PHP. As long as your software was written by somebody who knows their aaS from a hole in the ground, you’ll be fine.