• 1 Post
  • 89 Comments
Joined 2 years ago
cake
Cake day: July 3rd, 2023

help-circle


  • I guess it’s in part because it’s hard to distinguish if the negative attitude toward Islam is racism or just against the religion. Christianity is viewed as white – at least that’s the impression I get – so that distinction doesn’t exist. It is interesting to see how the two are handled so differently






  • For loops with find are evil for a lot of reasons, one of which is spaces:

    $ tree
    .
    ├── arent good with find loops
    │   ├── a
    │   └── innerdira
    │       └── docker-compose.yml
    └── dirs with spaces
        ├── b
        └── innerdirb
            └── docker-compose.yml
    
    3 directories, 2 files
    $ for y in $(find .); do echo $y; done
    .
    ./are
    t good with fi
    d loops
    ./are
    t good with fi
    d loops/i
    
    erdira
    ./are
    t good with fi
    d loops/i
    
    erdira/docker-compose.yml
    ./are
    t good with fi
    d loops/a
    ./dirs with spaces
    ./dirs with spaces/i
    
    erdirb
    ./dirs with spaces/i
    
    erdirb/docker-compose.yml
    ./dirs with spaces/b
    

    You can kinda fix that with IFS (this breaks if newlines are in the filename which would probably only happen in a malicious context):

    $ OIFS=$IFS
    $ IFS=$'\n'
    $ for y in $(find .); do echo "$y"; done
    .
    ./arent good with find loops
    ./arent good with find loops/innerdira
    ./arent good with find loops/innerdira/docker-compose.yml
    ./arent good with find loops/a
    ./dirs with spaces
    ./dirs with spaces/innerdirb
    ./dirs with spaces/innerdirb/docker-compose.yml
    ./dirs with spaces/b
    $ IFS=$OIFS
    

    But you can also use something like:

    find . -name 'docker-compose.yml' -printf '%h\0' | while read -r -d $'\0' dir; do
          ....
    done
    

    or in your case this could all be done from find alone:

    find . -name 'docker-compose.yml' -execdir ...
    

    -execdir in this case is basically replacing your cd $(dirname $y), which is also brittle when it comes to spaces and should be quoted: cd "$(dirname "$y")".



  • I love nix and NixOS, but yes the documentation is incredibly insufficient. I’d recommend a normal distro + the nix package manager first for a personal laptop. You have be ok occasionally taking a detour to learn how to build some random program from source in a sandbox with no networking every once in a while so it’s kinda clunky as a daily use OS imo. It shines on servers though


  • NixOS is fun but requires tinkering for a desktop/laptop. You can use the nix package manager on any other distro though. At work I use Fedora and still use the nix package manager a ton when I want to, but I’m not locked into it when something needs to just work quickly. I have NixOS on my personal laptop and I kinda wish I didn’t. I have it on my home server and I’m very happy I did that.


  • Yellowstone is the most active geothermal area in the world, with over half of the entire world’s known geysers in a single park and you left that out for Mt Rushmore…? Yosemite the “one national park we have”? Are you trolling? This comment and seeing it getting upvoted makes me irrationally angry because our wilderness is the best thing we have going for us and is basically what is keeping me in the country. People need to know how great it is so we can remember we need to protect it!

    The vastness of the US west is something special. And in all that space if you just wander you’re bound to find something beautiful by accident. I’ve lived in the west for 15 years and I’m not even close to being bored and always find new places. Are there analogues elsewhere? Sure. That doesn’t make it not special.

    As for specific natural wonders… There’s the redwoods and sequoias. Joshua trees. Saguaro National Park is incredibly unique, although saguaros exist in Mexico too. Hell cacti only exist natively in the Americas, and many species only in the US deserts. Devil’s Tower is awesome. The entirely of Yosemite is amazing. The entire state of Utah might as well be a national park. Seriously. Those landscapes are amazing. The Great Interior Seaway going through the US made it amazing for fossils, tons of dinosaurs in particular. All the volcanic activity on the west coast and Hawaii is fascinating. I just recently learned about the Driftless Zone and how cool is that! I could go on and on.

    I’ve even had a great time with people from France in these places. Can you even believe it? Real non-geologist French people! Coming to the USA!

    The world is full of beautiful natural wonders, and the US is just another part of the world and it has them too!







  • qqq@lemmy.worldtoMicroblog Memes@lemmy.worldLanguage
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    I meant, what things do you do on your phone that wouldn’t be possible on a website if you were on another platform?

    This is still begging the question: your question contains the assertion that the current smart phone model must continue. If you only think about the things you currently do with it, then of course you can do a lot of the same things with a browser model: they’re both restrictive sandboxes in similar ways. Interestingly though, I can name a few things already that are currently easy on an Android phone but not in a browser, the most obvious being running any sort of network server. You can’t take advantage of Linux’s configfs and functionfs APIs on a device that is ironically the best device made to use them. I mean, browsers were never even designed to allow filesystem access so an API would need to be added for that even, something so trivial. There are an almost infinite number of things you can do with direct access to an OS compared to through browsers; browsers are required to treat every single thing they do on behalf of the server they’re talking to as malicious. That’s the whole threat model, and it’s completely correct, but I don’t want that threat model applied to my entire device.

    I think we’re just thinking of different things. You seem to be thinking about how to remake the current smart phone experience, and that’s pretty easy to do with a browser model. I think the current smart phone experience is pretty bad and incredibly limiting, so I see a move to the browser model pretty much… no different. I wouldn’t be particularly excited. I never understood the Boot2Gecko excitement anyway.

    I’d like to see a smart phone that is just a small computer that happens to also have phone functionality. Where you actually have an entire Linux system available to you, and you’re allowed unconfined root access. You simply can’t get that if you’re being sandboxed by anything. To be honest if Android just stopped all the insanity around full, meaningful root access and unmodifiable hardware roots of trust, I wouldn’t need anything else. I like the availability of the tightly controlled application sandboxes. I love the use of SELinux throughout.

    With respect to the development ecosystem… we can agree to disagree I guess. I’d rather leave the industry than deal with modern web development, but that’s just my personal opinion.

    Google does at least maintain fairly solid web standards

    I have to strongly disagree with this though. Google wants to bring it’s attestation APIs to browsers. What a nightmare. They also try to move browser addon development in user hostile ways, like trying to kill ad blocking. I don’t trust Google to have the user’s best interest in mind for a single second.

    Anyway, I asked where you’re coming from so thanks for sharing.


  • qqq@lemmy.worldtoMicroblog Memes@lemmy.worldLanguage
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    2 months ago

    Yes there is a general ignorance to this problem among law makers, in my country at least, as well as a bit of regulatory capture with respect to tech in general. The boogie man of “security” is also a very persuasive concept for a lot of people. This is not a problem that will be solved easily.