Login
You're viewing the mastodonapp.uk public feed.
  • Oct 28, 2026, 7:58 AM

    While rebuilding my photo portfolio in Astro, I fell into a rabbit hole: how do you give photos short, clean web links without any two ever clashing? 📸

    Turns out, a 10-character ID seems safe until probability kicks in – at 100k photos, the chance of a duplicate is 1 in 188.

    By hashing the filename and timestamp into 16 lowercase letters, the odds of a duplicate drop to 1 in 16 trillion (40,000× rarer than winning the lottery).

    Completely over-engineered, but bulletproof forever. ✨

    💬 1🔄 0⭐ 0

Replies

  • Nov 3, 2026, 7:32 AM

    Update on the photo portfolio rebuild: rewrote the entire ingestion pipeline – a local script now selects, downscales photos, geocodes and aggregates all photo metadata. Everything syncs to a GCS bucket and will feed directly into static page generation.

    On the Astro side, I’ve mostly been tinkering with basic markup to get an intuitive feel for how it handles things. Nothing complex yet – taking it step by step. 🚀

    #WebDev #Astro #IndieWeb #Photography

    💬 1🔄 0⭐ 0
  • Nov 3, 2026, 7:57 AM

    Another architectural decision for the portfolio: going all-in on AVIF.

    Now that all major browsers have full support, there is little reason to look back. It delivers identical visual quality at a fraction of the file size compared to legacy formats. JPEG definitely had an iconic run – and might still pop up in edge cases – but for modern web delivery, its era has finally passed. 📸⚡

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0