• 0 Posts
  • 99 Comments
Joined 1 year ago
cake
Cake day: August 12th, 2023

help-circle





  • Turun@feddit.detoLemmy Shitpost@lemmy.worldPick!
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    7 months ago

    As long as you tuck properly it’s really hard to land in a damaging way*

    Back flips are surprisingly possible with some exercise. I can do them on flat ground. If you have a gym nearby with those big blue mats you can try them with much risk.

    *Terms and conditions apply when you’re fat.




  • Turun@feddit.detoSelfhosted@lemmy.worldTarallo - selfhostable FOSS Trello alternative
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    1
    ·
    edit-2
    7 months ago

    A basic image is really easy. It’s basically just

    Dockerfile

    FROM debian  # start with a minimal Linux system. There are probably better options than debian. Some images are made especially for docker (i.e. very minimal and light weight). 
    RUN apt install dependencies  # do what ever you need to get your app running. 
    RUN echo "options and stuff" >> /etc/a/config/file  # you can also edit system files
    COPY . /app  # copy your project into the docker container.
    EXPOSE 8080  # doesn't actually do anything, but documents where the app will be listening
    CMD server-binary run /app/main.php  # I have actually no idea how php server stuff works
    

    (Docs https://docs.docker.com/reference/dockerfile/)

    Then people can run your project with docker.

    Edit: checking the readme some small changes would be required. Config.php should read in environment variables and the DB init SQL should be run automatically somehow.


  • The example is wrong, because they used 1.0.

    But in general x-x does not have to equal 0, that is true. I’m pretty sure Nan and infinity would yield not 0.0, but Nan instead.

    And if you reach x with two different calculations, e.g. x1 = a - b - c and x2 = a - c - b it is certainly not guaranteed that x1 - x2 == 0.0







  • I have the opposite problem, llavafiles (a large language model, packages as a single files) can run on both Linux and Windows. They are written to be compatible with both.

    But when I ./file to run it, eine is started automatically!

    (The llava file GitHub has a workaround, but still by default it chooses wine for some reason)