[–] 23 points 2 months ago (1 child)

As an avid weekend hiker that often brings a bag with me for picking garbage that people leave in nature I am very happy about the new regulation. Nowadays most bottles come with the cap attached which otherwise would be easily missed.

  • source
  • [–] 8 points 2 months ago (1 child)

    It might be excessive for your purposes but an alternative may be to use zoxide. It learns the directories you use regularly and you can then cd to those directories through the z command. E.g. z docs.

  • source
  • [–] 21 points 3 months ago (1 child)

    Per the article, there must be replacement batteries available for at least five years after the end of the product being available on the market. I don't think it would make much sense to keep tonnes of batteries in storage for so long. Presumably battery manufacturing would therefore have to continue over time. Maybe device manufacturers will try to share battery designs across device models so they don't need so many manufacturing lines?

    Would be great if it means that I could swap out my device's battery after a few years and the new battery takes advantage of the improvements over that time.

  • source
  • parent
  • context
  • [–] 47 points 4 months ago (13 children)

    Bummer, perhaps it can be repaired? By the way, be very careful about sharing photos of keys, it is often quite easy to produce a duplicate key from a photo.

  • source
  • [–] 2 points 5 months ago* (last edited 5 months ago)

    Visiting the Gaudi houses in Barcelona is just amazing. Not just the architecture but also details like the furniture, doors, and even cupboard handles are fascinating. Definitely recommended but try going outside the main tourist season!

  • source
  • [–] 6 points 6 months ago (1 child)

    I'm pretty sure that IFS does not apply to quoted strings since word splitting happens before the quote removal (see Shell Expansion).

    $ ( files=$(ls); IFS=$'\n' ; for x in $files; do echo $x; done )
    file a.txt
    file b.txt
    plainfile.txt
    
    $ ( files=$(ls); IFS=$'\n' ; for x in "$files"; do echo $x; done )
    file a.txt file b.txt plainfile.txt
    
  • source
  • parent
  • context
  • view more: next ›