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

help-circle


  • YAML to JSON is probably doable, JSON back to YAML not so much.

    There are multiple ways to mark multiline strings in YAML. Then there are anchors, like bionicjoey mentioned. Also comments, YAML has them. You’d have to have some way to retain the extra information, if you want to make the full round trip.

    Here’s an example:

    def-db: &def-db
        # here be dragons
        login: admin
        passwd: nimda
        
    prod:
        db: *def-db
        desc: |
            I'm a teapot
            short and stout
    
    dev:
        db: 
            <<: *def-db
            passwd: pass
        desc: "I'm a teapot\nshort and stout\n"
    

    converted to JSON looks like this

    {
        "def-db": {
            "login": "admin",
            "passwd": "nimda"
        },
        "prod": {
            "db": {
                "login": "admin",
                "passwd": "nimda"
            },
            "desc": "I'm a teapot\nshort and stout\n"
        },
        "dev": {
            "db": {
                "login": "admin",
                "passwd": "pass"
            },
            "desc": "I'm a teapot\nshort and stout\n"
        }
    }
    


  • Performance and stability seems to be at the same level it was under windows 10/11. Can’t say nothing about standard compliance, nor do I really care in the end.

    I’m kinda sure I wasn’t missing functionality, either. Then again, my card is old GTX, so DLSS not working is not because of drivers.

    ETA: Hibernation requires swap space. Yes, swap file is viable alternative to partition, but I already had a swap partition, albeit too small. Even with partitioning aside, enabling hibernation is tedious compared to windows, where it’s literally ten clicks, five with keyboard and five with mouse. And on linux it requires a lot of “rooting around”.



  • For background, my first linux was debian in late 90’s. I went through gentoo to ubuntu, until I got mac for work about a decade ago. By then my home rig was single booting windows.

    So, given my history with debian, I started with ubuntu, only to realize I don’t like its current state. Next up was pop_os, because it’s heavily recommended for gaming. After some time I came to conclusion, that everything I know about linux on desktop is badly outdated, so I might as well go heavy and try arch. I chickened out, though, and went with manjaro. It’s actually quite nice, save for that hibernation.


  • Normal users are not going to root around in the registry and twiddle things to mske the OS treat them with respect.

    I absolutely agree with you, and this statement is absurd, given the context.

    Recently I decided to try out gaming with linux. What was planned to be a weekend project turned into multiweek project, and it included a lot of “rooting around” to get things working the way I wanted them to. Maybe it’s linux treating me with respect, when I have to start planning for hibernation when I’m partitioning the drive. Maybe it isn’t.

    (Aside, Valve has done great work with proton. It’s time to reconsider, if games are keeping you from switching over.)