• 13 Posts
  • 168 Comments
Joined 1 year ago
cake
Cake day: August 10th, 2023

help-circle





  • Firstly, you may also be interested in: https://containerssh.io/v0.5/

    This is a similar software, but maintained. However, it doesn’t look like you limit networking with the Docker backend, beyond a simple on/off.

    An even simpler solution, is to have the the ssh entry command not be the usual shell command (/bin/bash), but rather a command that starts a shell within a container. So something like:

    podman run -it --rm -v "-v /HOST-DIR:/CONTAINER-DIR" docker.io/library/debian:bookworm bash would create a shell inside a short lived debian container (that is deleted upon disconnect) where a host directory is mounted inside the container.

    As for mysecureshell, I would assume that since it is in the Ubuntu repos, it is still being maintained. But it’s possible, since it is unmaintained that there are unknown security vulnerabilities or other issues, but:

    It’ll just be for half a dozen friends for when I want to give them larger files, or if I want them to send me full-resolution photos.

    If it’s just for your friends, it may be okay to use a less secure solution if you trust them.

    As an alternate solution: since you are looking for some sort of file searching, perhaps you could host an app explicitly designed for that, like Seafile or Nextcloud.


  • Yaml is a data storage format

    I have literally never seen yaml used as a data storage format, only as a configuration language. Ansible, Kubernetes, Home manager, netplan, and many, many other examples of yaml as a configuration language, but I cannot think of an example of yaml as a data storage format off the top of my head.

    Given the:

    package {
      name my-pkg
      version "1.2.3"
    
      dependencies {
        // Nodes can have standalone values as well as
        // key/value pairs.
        lodash "^3.2.1" optional=#true alias=underscore
      }
    

    On the README of the KDL Github, it looks like KDL has a similar goal to be a configuration langauge, rather than a data storage format.


  • I don’t see anything about turing completeness or programmatic capabilities in their github. Any language that doesn’t have the programmatic abilities will inevitably get them hacked on when someone needs them, like what happened to yaml a bunch of times for a bunch of different software. This is one of people’s many frustrations with yaml, the fact that doing a loop, an if statement, or templating, is different for every single software that uses yaml. Even within Kubernetes, there exists different ways to do templates.

    I would much rather see the language consider those things first, then see it repeat one of the biggest mistakes of yaml. This is why I am more eager for things like nickel, or even Nix as a configuration language, and am skeptical of any new standard that doesn’t have those features.


  • See also: noyaml.com

    I personally like yaml though. Although I won’t deny it can be hellish to write without a linter, it’s just like any other language with tab autocomplete and warning for sus things if you have the right software set up.

    I used the ansible and kubernetes VSCode extensions, and I really like them both. With the kubernetes one, you can just start typing the name of the resources you want to create, and then press tab, and boom, a template is created.

    I would much rather see something like Nix be the norm, but I find Nix very frustrating to edit because the language servers for it are nowhere near as developed.


  • The whole point of open source was that you can see the code and the commits. We don’t need to trust anybody. I feel like banning contributors is just contradicting one of the key benefits of open source.

    You are misunderstanding why the sanctions happened. It has nothing to do with whether or not the individuals working at those entities are trustworthy or not.

    The Linux Foundation is an institute of the United States. The United States has demanded that entities within their jurisdiction, like the Linux Foundation, follow sanctions, and cut contact and interaction with sanctioned entities.

    Because the Linux Foundation doesn’t want to be punished or pay fines, they follow those sanctions. Nothing to do with trusting the individual contributors or corporations.

    What would you do about people who… lie online about where they work?

    This is probably what happened. The contributors went home, to their personal emails, and the world kept spinning and no one looked twice.








  • Could I have a game rendered by a discrete GPU running in a window being handled by an Xorg session rendered by an integrated GPU?

    I used to do this, but I use wayland now. Similar setup though.

    Would it matter if the video output was physically connected to the discrete GPU or the motherboard, or is that configurable?

    Yes it matters. On many laptops the hdmi out is ONLY on the discrete gpu, meaning the discrete gpu must be on (and sucking power) in order to display to external monitors, even if the internal gpu is doing the rendering.






  • also as a bonus question, why does every IDE seem to require you to configure every single option before it can run code

    What IDE’s have you tried?

    Kate (and vscode) aren’t really IDE’s, they’re more like extremely extensible text editors. You can make them IDE’s, but they dob’t come like that out of the box.

    On the other hands, actual IDE’s often have the inbuilt capability to install and manage the programming language related software.