• 0 Posts
  • 19 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle




  • gornius@lemmy.worldtoLinux@lemmy.mlWhy do you use the terminal?
    link
    fedilink
    arrow-up
    2
    arrow-down
    3
    ·
    9 months ago

    If you know how to use git, you will know how to use docker (provided you know what you want to do). They are completely different programs, yet you can quickly grasp the other instinctively.

    Now, Photoshop and Blender - they are also different programs, but if you know Photoshop, you still need to relearn Blender’s interface completely.

    This is why I prefer terminal programs in general. Unless it’s more convenient to use GUi, i.e. Drag&Drop file manager, some git tools etc.


  • gornius@lemmy.worldtoSelfhosted@lemmy.worldShould I move to Docker?
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    1
    ·
    10 months ago

    Learn it first.

    I almost exclusively use it with my own Dockerfiles, which gives me the same flexibility I would have by just using VM, with all the benefits of being containerized and reproducible. The exceptions are images of utility stuff, like databases, reverse proxy (I use caddy btw) etc.

    Without docker, hosting everything was a mess. After a month I would forget about important things I did, and if I had to do that again, I would need to basically relearn what I found out then.

    If you write a Dockerfile, every configuration you did is either reflected by the bash command or adding files from the project directory to the image. You can just look at the Dockerfile and see all the configurations made to base Debian image.

    Additionally with docker-compose you can use multiple containers per project with proper networking and DNS resolution between containers by their service names. Quite useful if your project sets up a few different services that communicate with each other.

    Thanks to that it’s trivial to host multiple projects using for example different PHP versions for each of them.

    And I haven’t even mentioned yet the best thing about docker - if you’re a developer, you can be sure that the app will run exactly the same on your machine and on the server. You can have development versions of images that extend the production image by using Dockerfile stages. You can develop a dev version with full debug/tooling support and then use a clean prod image on the server.



  • English is not my first not language. When I write something down in my first language (polish), it feels more like I’m transcribing things I silently say to myself, while with english I’m actually thinking about every word I type.

    The funny thing is, the better I am getting at English, making those types of mistakes is getting easier for me.

    But idk, this is just my experience.



  • Why do you need Windows VM for developing GUI apps? Last time I used Visual Studio to make GUI app I almost gave up programming, because of how code-generation dependent it was.

    For C# you have AvaloniaUI. For cpp you have countless multi-platform GUI toolkits, same for rust, Java has its own toolkits (multi-platform), and finally you can make an Electron/Tauri app.


  • The way for your desktop to communicate with the hardware.

    It used to be X11 - A server-client architecture, which meant your desktop was effectively just a client that told the server what to do. The server was the one doing the drawing

    Wayland is just a protocol, defining how programs and desktop should communicate with each other - without a middleman that was X11 server. The desktop does the actual drawing here.







  • although I’m not a TWM user I like to just press super and type the first letters of the program I’m looking for to open it.

    It will never stop to amaze me how many people don’t know it’s a feature in every major DE and every Windows starting from Vista.

    Even on Windows 10/11, just tap windows key and start typing without clicking anywhere.

    My list of FOSS I use everywhere (these work in Win and Linux):

    • Open Tablet Driver - if you’ve got the drawing tablet it probably supports it. You can customize everything and has even built-in plugin manager.

    • Krita - GIMP alternative with non-destructive editing capabilities.

    • yt-dlp - download videos from almost any video sharing service, even TikTok, Instagram etc.

    • neovim - for quick file edits

    • vscode/vscodium with vim plugin - my IDE for everything

    • ffmpeg - forget handbrake - you can do even basic video editing here. Join two videos together? Done. Add audio to video? Done. Crop part of the video without reencoding it? Done. Loop a video to 10 hours without reencoding it? Done in matters of seconds.

    • kdenlive - an actual video editor that is 100% FOSS, doesn’t suck and works on Windows and Linux.

    • imagemagick - ffmpeg for images


  • Actually “natural” gets a pass from me. It doesn’t feel right just because we got used to the opposite.

    Imagine a paper scroll on rolls. If you slide the top of the roll upwards - the paper goes up, and you can see more bottom content. The exact opposite happens when you scroll the mouse wheel with default config.