• 5 Posts
  • 347 Comments
Joined 9 months ago
cake
Cake day: December 16th, 2024

help-circle


  • Well, bash should show up quickly enough. But yeah.

    I’m also no longer much of a bash guy. Back when I was my scripts were a lot simpler, and broke in weird ways a lot more. And every time I picked up a new defensive habit, my bash became a little bit uglier, and I thought to myself “maybe I should just do this in Python”.

    But this script would be a lot longer in Python.



  • esatoProgramming@programming.devRead the Following Manual
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    21 days ago

    For those who want to give it a go:

    #!/bin/bash
    set -euo pipefail
    
    while read -rd ":" path
    do
      for bin in "$path"/*
      do
        # don't error out if there's no manpage
        set +e
        man "$(basename "$bin")"
        set -e
      done
    done < <(printf '%s%s' "$PATH" ":")
    

    when you get sick of it, hit ^Z (ctrl-z) and go kill %1. Then you get to start all over from the start next time!

    Bonus points for starting a tracker so you can count how long it takes to go from “eugh, what’s with that overwrought and excessively defensive bash script” to “fuck, now I’m doing it too”


  • Humans also frequently need to try a wrong approach first to get the idea of a better approach, no matter if we’re rested or not. Which is why it’s important to be able to throw away prototypes rather than push an “it seemed like a good idea at the time” to prod.

    But having a good sleep, walk in a park, shower, etc lets us think better than if we’re just banging our heads in the same corner all day long. Breaks are important. General health, too.


  • Nah. If we take the US as an example they have rampant NIMBYism, a suburbanism ideology that isn’t sustainable financially (or ecologically or socially, for that matter), and rather strict zoning, with the worst stemming from the city of Euclid, and thus being named “euclidean zoning”.

    If you’re up for some videos, then StrongTowns, CityNerd and NotJustBikes all talk about this at length.


  • The US parties had a switch at some point, and if you search for it, it’s pretty well documented IIRC.

    Also, it’s useful to remember that both people and organisations and the world change over time. Just because something was a certain way in the past doesn’t mean it will always be that way. Look at how things are now and apply some principles and you’ll be reasoning about it yourself instead of just relying on old explanations. :)


  • esatoTechnology@lemmy.worldSHUT THE FUCK UP!
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    2
    ·
    2 months ago

    But what did you learn? What are we supposed to learn? Did you get any context, like how he actually went to anger management therapy later?

    Or is this just guffawing and gawping at an old angry email from a tech celebrity?



  • esatoComic Strips@lemmy.worldCrypt Dash delivery [OC]
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    2 months ago

    The fourth … appendage on the left hand is being used like a thumb, and doesn’t have any indication of knuckle even though it’d be the most bent finger if it was one. I’d say we can see four fingers on the right hand, while the left is in an indeterminate slop state where it’s only partially a comic/Disney three-finger hand, with one extra slop appendage that’s not clearly either thumb or finger.



  • Part of the answer here is also integrated design. To be able to be repaired a thing has to be designed for that, and to have identifiable parts that can be adjusted or replaced in isolation, and non-destructive disassembly.

    If you have to destroy one part to adjust another, it’s not really repairable. If several functions/components are all one thing then you can’t really replace just the one.

    To use a bike as an example, you can exchange wires, brake pads, seats and most other things in isolation, especially the things that are expected to wear out and need replacement. But you’re not going to replace part of your bar tape or frame, because they’re essentially one whole thing.

    (Ok, you could probably weld a steel frame if you really wanted to, but I think the intent is readable.)






  • esatoPolitical Memes@lemmy.worldYep
    link
    fedilink
    arrow-up
    11
    ·
    2 months ago

    Step one is making sure your union has the collective bargaining power it needs to get a good wage and benefits for everyone. Some striking may be involved, so the strike coffers should be robust as well.

    Beyond that, wealth taxes and exit taxes on those who want to flee to tax havens with no wealth taxes. Public ownership of some stuff like utilities.

    So more or less joining a union if you’re not already a member and voting no further right than social democrat.

    Mitigations like spending less might also be a good idea or even required, like wearing dust masks in polluted areas, but just like how the dust mask doesn’t make the pollution go away, spending less individually doesn’t really tackle the fundamental problem of distribution and wealth extraction.

    We need actual politics for that.