• 0 Posts
  • 64 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2025

help-circle
  • If you go in the factorio mods folder you’ll find the zip files of all mods you downloaded.

    • Decompress the mod you want to change,
    • Delete the original zip file.
    • Edit the files freely.
    • Factorio will load the mod as if it was coming from the mod portal. You have to restart factorio at every code change.

    Don’t post it on the changed mods on the mod portal though! And do check the mod license on what you are legally allowed to do with it, becauss some don’t allow derivative work or changes, including fixes (even though if you keep it for your own personal use this is a bit less important, since nobody can know what you did)

    If you feel the changes are small and purely for compatibility you can try to contribute it back, but do always ask the original author, and respect a “no” :) !



  • So, HTTPS prevents people on the network from hijacking the connection or spying on what you do with the website or your passwords. If you have a VPN and no evil devices inside your network you are likely fine, and many things don’t need HTTPS-level of safety.

    That said, browsers make using HTTP almost unusable nowadays, because over the internet you really want your connection to not be hyjacked, and almost nobody self-hosts (sadly).

    I would reccommend to set up a reverse proxy to do https for all services you host, even if you only use it via lan/vpn. Adding a new service then becomes just hosting it over HTTP, and have your reverse proxy converting the connection to HTTPS.

    If you have a domain, you can request a wildcard cert from let’s encrypt and use that also for internal domains (they don’t need to be reachable from the public internet, but you might need to expose the ACME challenge file).

    If you want to learn a lot about certificates you can go the self-signed route, but you’ll have to install the certificate on every device you use to access your services (guests will get huge warnings when trying to access your pages, if you give them access to them). Once set up it’s more flexible though, and if you configure your dns server you can have whatever domain you want, even nonexistent or unavailable ones.



  • You probably misunderstood the parent’s message.

    From what I can see online, there are 2 kinds of expert programmers:

    • some care only about the problem being solved, and not how. They’ll go out and about saying AI is amazing, because they can just prompt and get something mostly working out of it. If they’d have to solve a sudoku for work, they’d ask the sudoku-solving machine to solve it and be happy about it, because they solved the problem.
    • some care about how to solve the problem and not exactly the problem being solved. Architecture, code quality and process is the part that gives satisfaction. They see coding as solving a sudoku, and the joy is finding a smart solution, not having the sudoku solved at the end. If the code quality can’t be kept, then they’d ask to change the problem being solved. AI is a disaster for them.

    I’m definitely part of the second camp btw. AI enables the first kind of people to go wild and generate slop code, while at the same time removing the joy they find in programming. Work is becoming horrible for me, because AI destroyed any satisfaction I have when coding



  • Nice!

    For me, slow progression is important to actually make the concepts “stick” in the brain, so do make sure to take your time in the journey, and not do the whole course in few days.

    I would heavily reccommend to experiment with the code yourself, see it crash and error out and really get the “why” it works (not just how to do it in that case). For example, you can pass 3 parameters to a function?

    Another great tip is to have a small project you are passionate about yourself: a card playing game (on the terminal, without graphics), an interesting math simulation, or a small program usable via terminal.

    C++ is hard. If it’s too frustrating consider python for an easier introduction (there are no pointers there!), and you can still switch to c++ later. All mainstream programming languages work more or less the same, and the programming skills transfer very well between them!









  • IMHO the entire injection procedure is to keep it “clean” and socially accepted. Very few people would be happy to see somebody being shot in the head, but seeing somebody “falling asleep” is much more “ok”. It looks less violent even though the end result is the same. Surviving a lethal injection and waking up again in that nightmare must be horrible.

    The reality is that death penalty is cruel and more costly than keeping someone in prison for life, and this doesn’t even consider the human cost of executing an innocent. It just doesn’t make sense.





  • Supercrunchy@programming.devtoMicroblog Memes@lemmy.world•RatGPT
    link
    fedilink
    English
    arrow-up
    54
    arrow-down
    1
    ·
    2 months ago

    We live in a period of extreme stupidity, so I now fully expect AI to cause disasters in the same idiotic and tragically hilarious way.

    I expect AI to trigger a war because some idiot trusted it blindly without double checking (oh wait, it almost already happened!), and I’m sure there are plenty of people currently lobbying to have AI directly connected to weapons.

    Skynet is not going to have the objective to conquer the world, it’s going to have the objective of maximizing paperclip production.