home.social

#glob — Public Fediverse posts

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

fetched live
  1. First: I don't know what #glob and #fnmatch add to the #Debian #AlmquistShell. Nothing stands out as different with those features turned on.

    The #NetBSD and #FreeBSD flavours of the Almquist shell don't use glob() and fnmatch() at all, and the BusyBox flavour is different, so this does appear (without checking the source history) to be a Debianism of some kind. It's unclear what it achieves, though, although it might that the reasoning does not apply nowadays.

    #UnixShells

  2. Understanding the Impacts of the Strongest El Niño on Global Weather and Economy

    📰 Original title: What Is El Niño, and What Does It Mean for Weather, Water, and the Global Economy?

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

    View full AI summary en.killbait.com/understanding-

    #science #elniño #climatechange #glob...

  3. 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...

  4. 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 ?

  5. Python Glob Modülü (Kütüphanesi)

    `glob`, Python’da belirli bir dizin (klasör) içindeki dosyaları listelememizi sağlayan standart (gömülü) python kütüphanelerinden / modüllerinden biridir. Modülün kullanımına dair detayları asagidaki bağlantıdan okuyabilirsiniz.

    mhalil.github.io/glob-modulu.h

  6. #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?

  7. @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.