home.social

#glob — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #glob, aggregated by home.social.

  1. A New Global Conflict: The 'New World War' and the Shifting Landscape of Modern Warfare

    📰 Original title: La “Nueva Guerra Mundial”

    🤖 IA: It's not clickbait ✅
    👥 Usuarios: It's not clickbait ✅

    View full AI summary: killbait.com/en/a-new-global-c

    #geopolitics #glob...

  2. Des experts de #PHP, de la fonction #glob et de la #LangueArabe dans le coin ?
    J'ai un script qui scanne ma librairie iTunes. Donc le répertoire contient des répertoires pour chaque artiste, qui eux-mêmes contiennent des répertoires pour chaque disque.
    Je fais donc un glob($folder.'/*', GLOB_ONLYDIR) sur le répertoire principal, ça me remonte bien tous les répertoires des artistes.
    Je vais ensuite un glob($folder.'/*', GLOB_ONLYDIR) dans chaque répertoire artiste, et ça me remonte bien les répertoire disques.
    Sauf... pour un répertoire artiste qui se nomme "أحمد [Ahmed]". glob le voit bien mais ne liste pas le contenu.
    Une idée pour contourner le problème ?

  3. #Python question...

    I recently ran into a surprise using #pathlib.Path - seems to be a sharp edge and I'm curious if others have run into it and what you thought.

    I wanted to find all #files/#dirs below the current #directory, and thought a #recursive #glob would do it - `Path.cwd().glob("**")`. I was surprised that this returns all directories but not files. "**/*" is needed to find the files as well.

    I'm not a big user of recursive globs, so maybe this is expected #behaviour?

  4. @ta180m for a less toot:
    Here’s a and web with like functionality.

    datamuse.com/api/

    For the humans among us: they have a webpage too.