Dark Arc

Hiker, software engineer (primarily C++, Java, and Python), Minecraft modder, hunter (of the Hunt Showdown variety), biker, adoptive Akronite, and general doer of assorted things.

  • 89 Posts
  • 2.04K Comments
Joined 1 year ago
cake
Cake day: August 10th, 2023

help-circle
  • So the local machine doesn’t really need the firewall; it definitely doesn’t hurt, but your router should be covering this via port forwarding (ipv4) or just straight up firewall rules (ipv6).

    You can basically go two routes to reasonable harden the system IMO. You can either just set up a user without administrative privileges and use something like a systemd system level service to start the server as that user and provide control over it from other users … OR … if you’re really paranoid, use a virtual machine and forward the port from the host machine into the VM.

    A lot of what you’re doing is … fine stuff to do, but it’s not really going to help much (e.g. building system packages with hardening flags is good, but it only helps if those packages are actually part of the attack surface or rather what’s exposed to the remote users in someway).

    Your biggest risk is going to be plugins that aren’t vetted doing bad things (and really only the VM or using the dedicated user account provides an insulation layer there – the VM really only adds protection against privilege escalation which is pretty hard to pull off on a patched system).

    My advice for most people:

    • Make a new user on the system to run each game you want to run
    • Run the game using systemd and that user
    • Use something like kopia + the root user’s crontab (easier than systemd timers, but systemd timers also work) to backup the files on disk

    For Minecraft in particular, to properly back things up on a busy server you need to disable auto save, manually force save, do the backup and then enable auto save again after your backup. Kopia can issue commands to talk to the server to do that, but you need a plugin that can react to those commands running on the server (or possibly to use the server console via stdin). Realistically though, that’s overkill and you’ll be just fine backing up the files exactly as they are periodically.

    Kopia in particular will do well here because of its deduplication of baked up data + chunking algorithm that breaks up files. That has saved me a crazy amount of storage vs other solutions I’ve tried. Kopia level compression isn’t needed because the Minecraft region files themselves are already highly compressed.



  • I didn’t feel particularly safer in Europe… About the same… Watch your wallet, don’t go down dark alleys alone, etc.

    Some things definitely felt more grandiose, but on average things felt like they could be in an American city if not for their vintage.

    Public transportation was definitely the biggest difference I observed, trains in Germany were an all but fantastic experience.

    I was surprised how heavy German food was and how much smoking folks in Germany, the Czech Republic, and Bulgaria do. It seemed elevated compared to the average US city.







  • I’ve been reading her book, the truancy thing is interesting. She had data that showed that kids that weren’t showing up at school, particularly young ones, didn’t learn how to read sufficiently well, and then fell behind in school and struggled to catch up, they then ended up struggling later in life, and often ending up either as victims or perpetrators of crime.

    So, she used the California DA’s office to enforce truancy laws across California, encouraged reaching out to fix the problems at home if at all possible, and also encouraged reaching out to folks that had been written off as “not caring” (she cites an example of a father that hadn’t been paying child support but upon learning that his daughter wasn’t going to school, started taking his daughter to school every morning, and volunteering in her classroom).

    Of course this is all by her account, but that sounds overall quite positive to me.


  • Sure, there’s a cost to breaking things up, all multiprocessing and multithreading comes at a cost. That said, in my evaluation, single for “unity builds” are garbage; sometimes a few files are used to get some multiprocessing back (… as the GitHub you mentioned references).

    They’re mostly a way to just minimize the amount of translation units so that you don’t have the “I changed a central header that all my files include and now I need to rebuild the world” (with a world that includes many many small translation units) problem (this is arguably worse on Windows because process spawning is more expensive).

    Unity builds as a whole are very very niche and you’re almost always better off doing a more targeted analysis of where your build (or often more importantly, incremental build) is expensive and making appropriate changes. Note that large C++ projects like llvm, chromium, etc do NOT use unity builds (almost certainly, because they are not more efficient in any sense).

    I’m not even sure how they got started, presumably they were mostly a way to get LTO without LTO. They’re absolutely awful for incremental builds.


  • Slow compared to what exactly…?

    The worst part about headers is needing to reprocess the whole header from scratch … but precompiled headers largely solve that (or just using smaller more targeted header files).

    Even in those cases there’s something to be said for the extreme parallelism in a C++ build. You give some of that up with modules for better code organization and in some cases it does help build times, but I’ve heard in others it hurts build times (a fair bit of that might just be inexperience with the feature/best practices and immature implementations, but alas).









  • Dark ArcAtoOld School Runescape@lemmy.worldNew Prices 2024
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 days ago

    At this point I’d say no. Most people are playing the game more or less single player and Jagex continues to get more money hungry. I wouldn’t be surprised if OSRS gets micro-transactions at some point.

    Personally, I’ve stopped playing and cancelled following these changes … in no small part because as a part time RS3 player, I feel like my relationship with Jagex has gotten to the point of being abusive (I say something, they never listen).


  • A co-op infamous game for PC I would drop full price on, no questions.

    Full disclosure: I never played the sequels (I play co-op almost exclusively now), but I absolutely loved the original game. It would be great to be able to go back to that dystopian world and rediscover my powers (or maybe other variants of them that appeared from disasters) in say … London, DC, or LA (instead of NYC) with a friend.