Just a guy doing stuff.

  • 0 Posts
  • 132 Comments
Joined 3 years ago
cake
Cake day: June 14th, 2023

help-circle




  • Hexarei@programming.devtoSelfhosted@lemmy.world•Why docker
    link
    fedilink
    English
    arrow-up
    19
    ·
    3 years ago

    Others have addressed the root and trust questions, so I thought I’d mention the “mess” question:

    Even the messiest bowl of ravioli is easier to untangle than a bowl of spaghetti.

    The mounts/networks/rules and such aren’t “mess”, they are isolation. They’re commoditization. They’re abstraction - Ways to tell whatever is running in the container what it wants to hear, so that you can treat the container as a “black box” that solves the problem you want solved.

    Think of Docker containers less like pets and more like cattle, and it very quickly justifies a lot of that stuff because it makes the container disposable, even if the data it’s handling isn’t.


  • That’s pretty much what I do as well. It was an absolute game-changer for me when I discovered tiling WMs some ~7 years ago, because it meant super consistent keyboard shortcuts for getting to exactly what I wanted to interact with. I know where individual apps/tasks go, so I put them there. And then when I need to switch to them, it’s as straightforward as Super+[workspace].

    Also helps a ton that i3wm’s workspaces only take up a single monitor at a time, which makes it excellent for jumping between monitors.

    None of this is set in stone, but I usually follow a relatively consistent pattern:

    Center Monitor

    • 1: Primary/“serious tasks” web browser
    • 4: Any remote or virtualized desktop I might have open at the time
    • 6: Image/video editors. Also sometimes just misc usage.
    • 8: Development web browser next to neovim
    • 9: Steam/games
    • 10: Misc. Often a DBMS or file manager
    • 11: Misc. Often where I put any secondary tasks or second projects I need to reference
    • 12: Misc. Often where I’ll stick any long-running tasks that I just need to check on every now and again.

    Left monitor

    • 2: Music/comms/task list

    Right monitor

    • 3: Always only a terminal.
    • 5: Text editor to use as a
    • 7: Secondary/“wasting time” web browser











  • It’s almost certainly a file permission error; Composer’s auto loader (the require statement) just scans the vendor library directories and populates the namespace, it doesn’t have a list to check answer l against and doesn’t load the classes up front. As such, if the file for a class isn’t accessible by the permissions, it will not be loaded into the namespace by the auto loader.

    PHP also doesn’t validate its usestatements, as they are basically just aliases that are resolved at the moment the import is used.

    Then, when it comes time to attempt to instantiate the class, PHP discovers there’s no class by that name and errors out.

    You just need to make sure the Zabbix user can access all the files in vendor, probably by deleting it and running the composer install as that user.




  • Well, it’s terrible at factual things and counting, and even when it comes to writing code it will often hallucinate APIs and libraries that don’t exist - But when given very limited-scope, specific-domain problems with enough detail and direction, I’ve found it to be fairly competent as a rubber ducky for programming.

    So far I’ve found ChatGPT to be most useful for:

    1. Writing SQL. Seriously, it’s fantastic at writing SQL if you tell it the relevant schema and what you’re trying to achieve.
    2. Brainstorming feature flow - Tell it the different parts of a feature, ask for thoughts on how the user should be guided through the process, and it does a decent job of suggesting ideas.
    3. Generating alternative names/labels for buttons and such. “In X feature, I have a button that does Y when the user has Z. Currently I have that button labelled ‘Start Y’, but it feels robotic and impersonal. List 10 suggestions for what such a button could say to be more personal and friendly.” and the like. My favorite was a button that was labelled “Map Incoming Data to Job Details”. Wound up renaming the whole process to just “Job Ingestion” because it sounded so good.
    4. Reformatting data. Give it a data structure and tell it you want that data in some other data structure, and it is really accurate at reformatting it. I don’t think I’d trust it with a huge amount of data that way, but for an unimportant one-off it was a nice time savings.