Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Computers are so fucking weird.

Uncategorized
9 3 2
  • Computers are so fucking weird. Every day there's some new thing. Chromium on Linux (Fedora 43) is in some kind of sandbox, so I can't open local files, but only some of them? All of the directories that were created by the desktop (Documents, Downloads, Music, Videos, Pictures, etc.) are accessible, as well as a few hidden directories (.local, .nv, .pki, .var), but nothing else is. I can't even type it in explicitly and fully, it's a 404.

    Firefox _can_ reach all files my user has access to.

  • Computers are so fucking weird. Every day there's some new thing. Chromium on Linux (Fedora 43) is in some kind of sandbox, so I can't open local files, but only some of them? All of the directories that were created by the desktop (Documents, Downloads, Music, Videos, Pictures, etc.) are accessible, as well as a few hidden directories (.local, .nv, .pki, .var), but nothing else is. I can't even type it in explicitly and fully, it's a 404.

    Firefox _can_ reach all files my user has access to.

    Also, I keep killing my editors (Zed and VS Code) trying to open a 32MB file with exactly one really long line of JSON. This doesn't seem like it ought to be "big" to any modern editor on a modern computer with 64GB of RAM, but here we are. jq can pretty print it without any trouble, so I could make a copy that's pre-parsed into individual lines, but it doesn't seem like I ought to have to massage text to even be able to load it.

    Back to old reliable Neovim, with `:%!jq .` to format it.

  • Computers are so fucking weird. Every day there's some new thing. Chromium on Linux (Fedora 43) is in some kind of sandbox, so I can't open local files, but only some of them? All of the directories that were created by the desktop (Documents, Downloads, Music, Videos, Pictures, etc.) are accessible, as well as a few hidden directories (.local, .nv, .pki, .var), but nothing else is. I can't even type it in explicitly and fully, it's a 404.

    Firefox _can_ reach all files my user has access to.

    @swelljoe That file access problem sounds like the classic sandboxed package issue. Can't recall if it's Snap or AppImage that does it, though.*

    Whichever one it is, there's an arcane command - or a GUI/TUI - that can change the access settings for individual packages.

    *Sorry, it's been so long since I've used either package type that my memory is rusty. Both make me nope out. 😅

  • @swelljoe That file access problem sounds like the classic sandboxed package issue. Can't recall if it's Snap or AppImage that does it, though.*

    Whichever one it is, there's an arcane command - or a GUI/TUI - that can change the access settings for individual packages.

    *Sorry, it's been so long since I've used either package type that my memory is rusty. Both make me nope out. 😅

    @jumile yeah, I avoid Snaps and Flatpaks for this reason, among others (though Snap is worse than Flatpak, in my experience...maybe because the packagers are sloppier or maybe because Flatpak has better tools for making sure things are sane).

    And, because I avoid Snaps and Flatpaks (and AppImages), Chromium is installed from an RPM. So, that is a very good guess, but not the case here.

  • Also, I keep killing my editors (Zed and VS Code) trying to open a 32MB file with exactly one really long line of JSON. This doesn't seem like it ought to be "big" to any modern editor on a modern computer with 64GB of RAM, but here we are. jq can pretty print it without any trouble, so I could make a copy that's pre-parsed into individual lines, but it doesn't seem like I ought to have to massage text to even be able to load it.

    Back to old reliable Neovim, with `:%!jq .` to format it.

    @swelljoe I keep a copy of BBedit on my Mac for the purpose of loading “large”text files.

    Even vim will choke on a large file sometimes.

  • @swelljoe I keep a copy of BBedit on my Mac for the purpose of loading “large”text files.

    Even vim will choke on a large file sometimes.

    @tedchoward in this case, it's not really that it's a big file (though it is big), it's that it's a (really) big single line.

    Every editor is able to load it without too much trouble when it's been pretty printed and spread across a half million lines. Though only Neovim (of those I tested) can parse it and do syntax highlighting and such. VS Code disables parsing and pops a warning, but to its credit search and editing does work.

    But, when on a single line loading it crashes VS Code.

  • @tedchoward in this case, it's not really that it's a big file (though it is big), it's that it's a (really) big single line.

    Every editor is able to load it without too much trouble when it's been pretty printed and spread across a half million lines. Though only Neovim (of those I tested) can parse it and do syntax highlighting and such. VS Code disables parsing and pops a warning, but to its credit search and editing does work.

    But, when on a single line loading it crashes VS Code.

    @tedchoward I historically very rarely ever need to look at giant files, but I guess I'm committing to doing this periodically, so I'll need to come up with a workflow that makes it easy...probably will have it fully automated at some point and not need to look at the actual data anymore, but for now, I need to check the shape of the data every now and then.

    (If it's of any interest the files are from the Recreation.gov data set of all facilities in their database. https://ridb.recreation.gov/download )

  • @jumile yeah, I avoid Snaps and Flatpaks for this reason, among others (though Snap is worse than Flatpak, in my experience...maybe because the packagers are sloppier or maybe because Flatpak has better tools for making sure things are sane).

    And, because I avoid Snaps and Flatpaks (and AppImages), Chromium is installed from an RPM. So, that is a very good guess, but not the case here.

    @swelljoe Flatpak was what I was thinking of, thanks. (I'm less antagonistic towards AppImage as I think of it as a niche use case).

    I wondered if some shenanigans might be going on. Like on Ubuntu where the Firefox apt info looks like a normal package, bit it's really a wrapper for the Snap version. 😬

    The only other thing I can think of is apparmor, or RedHat's equivalent?

    Anyway, good luck. 🤷‍♂️/😊

  • @swelljoe Flatpak was what I was thinking of, thanks. (I'm less antagonistic towards AppImage as I think of it as a niche use case).

    I wondered if some shenanigans might be going on. Like on Ubuntu where the Firefox apt info looks like a normal package, bit it's really a wrapper for the Snap version. 😬

    The only other thing I can think of is apparmor, or RedHat's equivalent?

    Anyway, good luck. 🤷‍♂️/😊

    @jumile as far as I know Fedora doesn't fuck around like that (I hate that practice on Ubuntu, it's far more user hostile than snaps themselves...at least if you intentionally install a snap you know what to cuss about). But, I confirmed this is actually a regular RPM. There's a file named "chromium-sandbox" in the package and I just left it at that, assuming it's intentional and I found other ways to do it.


Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • Mia mamma: Questa luce in bagno acceca

    Uncategorized
    1
    0 Votes
    1 Posts
    0 Views
    Mia mamma: Questa luce in bagno acceca!detto da lei che tiene la luminosità del telefono al massimo con quelle bellissime schermate bianche. Vi farei vedere come illumina a giorno la macchina quelle rare volte che capita di uscire quand'è buio con lei 😂
  • 0 Votes
    1 Posts
    0 Views
    La Knesset approva una legge per togliere acqua e elettricità agli uffici dell'Onu di Gerusalemmehttps://www.globalist.it/world/2025/12/30/la-knesset-approva-una-legge-per-togliere-acqua-e-elettricita-agli-uffici-dellonu-di-gerusalemme/> La radio dell’esercito israeliano ha riferito che la Knesset ha approvato il disegno di legge in seconda e terza lettura con 59 voti favorevoli e 7 contrari.
  • 0 Votes
    1 Posts
    0 Views
    A me è piaciuto e in alcuni momenti addirittura emozionato. Non so se dipenda anche dal fatto che molti di quei luoghi/teatri li conosco. Ma quello che credo metterà tutti d'accordo è la "riappacificazione" con Marina Massironi. Trailer ufficiale "Attitudini Nessuna" | Aldo Giovanni e Giacomo - Invidious https://yewtu.be/watch?v=ZcymdlqjCsQ @spettacoli #cinema
  • 0 Votes
    21 Posts
    2 Views
    @mariosiniscalchi le scienze della pace studiano anche i processi di comunicazione e di costruzione di fiducia, perché è questa che serve per il rispetto dei trattati, non l’imposizione con la forza del rispetto dei trattati (rivendicando solo per noi “buoni” il diritto di imporre con la forza regole che violiamo) se vuoi approfondire quella che è stata una escalation tra due imperialismi, per una prospettiva diversa dalla narrazione bellicista euroatlantica, qui hai un bel libro: