MoreRSS

site iconThomas RigbyModify

A Gen-X/Millennial cusp (Xennial), currently a creative technologist at Havas Lynx Group.
Please copy the RSS to your reader, or quickly subscribe to:

Inoreader Feedly Follow Feedbin Local Reader

Rss preview of Blog of Thomas Rigby

Randomising a carousel in a progressively enhanced way

2026-01-03 17:20:42

On my homepage, I have a carousel of what I call "testimonials" — some nice things lovely people said about me over the years.

For the longest time, I'd pick one from the array to display at build time. As part of my work to reduce build time, I decided to display them all so the homepage wasn't considered "new" for every build.

However, this left the issue that it was always the same testimonials visible. Especially on mobile, where you can only see one, new additions wouldn't be immediately surfaced. Buuut I couldn't shuffle the array at build time or I'd incur the wrath of the Build Time Goblins (or something).

Enter ✨ Progressive Enhancement ✨

The default experience is acceptable. With a sprinkle of JavaScript, we can make it a little bit better for when JavaScript is available.

The Code

const carousel = document.querySelector('.carousel');
const slides = [...carousel.querySelectorAll('article')];
const shuffled = [...slides].sort(() => Math.random() - 0.5);
slides.forEach(slide => carousel.removeChild(slide));
shuffled.forEach(slide => carousel.appendChild(slide));

The Breakdown

  1. Get the carousel element and its slides.
const carousel = document.querySelector('.carousel');
const slides = [...carousel.querySelectorAll('article')];
  1. Shuffle the array using the nifty Math.random() method
const shuffled = [...slides].sort(() => Math.random() - 0.5);
  1. Remove each of the original slides and add each of the shuffled slides.
slides.forEach(slide => carousel.removeChild(slide));
shuffled.forEach(slide => carousel.appendChild(slide));

The Outcome

Testimonials

New and new-to-me music 2026-W01

2026-01-02 17:17:53

Understandably different from both Arch Enemy and The Agonist, the new single from Alicia White-Gluz, "The Room Where She Died" is more hard rock than heavy metal. Nice to hear her clean vocals though — a talent squandered by Arch Enemy! Opening with a moving string piece, I thought for a second she was going to go full Nightwish. I will warn you that a lot of the 8:39 run time is spent on a noodling guitar solo that, imho, could have been shorter.


"She Bangs Like A Fairy On Acid" by Elita is exactly the wtf I needed to start my Friday. Shades of that Gothic Lolita thing from the millennium; all breathy vocals and unsettling melodies.

Book Review — The Grey King by Susan Cooper

2026-01-02 14:23:51

Following on shortly after the events of "Greenwitch", the fourth book in Cooper's "Sequence" sees our mate, Will Stanton, ushered off to distant family in Wales to convalesce as was the style at the time. But –horror of horrors!– he has some kind of amnesia and is distressed because he knows he has a task to perform but doesn't actually remember what it is. Until he meets enigmatic albino Bran…

I feel like this is the book that would benefit most from some kind of "reading companion" notes; clearly Cooper has created a rich and interesting world but not all the thinking makes it to the page which can come across as "leap of faith" at times.

This isn't my favourite in the Sequence but it's an enjoyable read. It suffers from the curse of a longer series in that the arc of the book is secondary to the arc of the series.

That said, the story arc is succinct and I enjoyed the friendship between Bran and Will.

Goals 2025

2026-01-02 06:24:37

I have been tracking a few easy goals over the year to see how I fare. All in all, I think I've done well. Unsure if I'll do a 2026 version but this has been an interesting experiment.

1. Don't over-budget on books

I have a ton of books I have already bought that I haven't yet read. Even though I only really buy 99p books, it still adds up over the year. Maximum monthly spend of £5.

2. Don't buy new cameras

I have a small handful of film cameras and I don't need more. If I can manage to make it to Christmas without buying more, I might treat myself to a Canon AE-1P Minolta SRT101 Minolta SRT Super/303/202. This sales embargo includes lenses and accessories but not, obviously, film and development.

3. Do not over-budget on film and development

Film and development to not exceed £27 per month. This should roughly equate to two rolls of cheap film and two developments. Realistically, I should only be using one roll (£13.50) but it's so bloody addictive 🙃 Film costs are averaged over months because I buy 5 rolls at a time and store them in the fridge which means, for example, August is £20 on film but September to December is £0

Month 📚 📷 🖼️
January
February
March
April
May
June
July
August
September
October
November
December

Conclusions

Books

This was much easier than expected! A couple of things helped; my Kobo breaking forcing me to resurrect an old Kindle kept me from buying bargains directly from Ratuken, and making a reading goal list kept me from wandering aimlessly into buying new books because shiny shiny but also decision paralysis. I didn't always stick to the list — some titles were bumped because I didn't have them on me at the time or because I wasn't feeling it, some got dropped entirely. It was never the goal to slavishly adhere to the list but to be guided by it.

Cameras and accessories

I have never been an impulsive buyer so I was quite surprised at failing on this one! Looking at the reasons for failure though and I'm not too disappointed — having to buy my dream camera twice in one year is a sadness few will experience and one I hope to never repeat 😂

February fail - bought a Zenit E on a whim which was a total lack of self-control thing

May fail - bought a case for the Zenit E because I couldn't attach a strap to the body without one

August fail - bought my Minolta SR-T 303b which was basically my dream camera 😊

November fail - bought a Minolta SR-T303 to replace the 303b the dog broke 😭

Film and development

Another "easy win". Having found Photo Hippo, Burnley, my development costs are well within budget and I rarely make it through more than two rolls in one month.

Camera Dump: December 2025

2026-01-01 19:41:12

Happy New Year!

Here are a few photos from my phone from the last month with neither rhyme nor reason to the theme.

a dramatic cloudy dawn sky over dark silhouetted houses and trees with a golden glow of a lit-up tree highlighting the front of the house

smug looking Duplo train driver smirking as he thinks about stealing your girl

my torso from chest to knees showing a grey fair isle jumper and red-and-blue tartan trousers in a hideous patten clash that makes my eyes sad

a bird feeder hangs on a pole in a sunny garden but some of the seeds have sprouted and it is full to the brim with seedlings

gorgeous thick mustard yellow wool in a ball

My Year in Lists 2025

2025-12-31 03:30:55

It's time to put on every winter coat you've owned since '98 and tot up The Quantified Self™ — Buckle in!

This year's top ten artists

  1. The Cure (92 plays)
  2. Orla Gartland (71 plays)
  3. Chloe Slater (67 plays)
  4. Placebo (52 plays)
  5. Arch Enemy (51 plays)
  6. Baby Queen (49 plays)
  7. Chappell Roan (48 plays)
  8. Ulver (48 plays)
  9. Frozen Crown (46 plays)
  10. Björk (45 plays)

You can see each month's top artist, album, and song in my article My Year in Music.

The books I have read

Last year I set myself the goal of reading twelve books in twelve months which I actually doubled by the end of the year! This year, I set a target of 24 which I surpassed in October. A return to commuting has helped there; a good two hours a day of solo time to immerse in a book like a warm bath.

  1. "Hokey Pokey" by Kate Mascarenhas (I read 99% of this in December and finished it in the early hours of 1st January 2025)
  2. "The Toymakers" by Robert Dinsdale
  3. "Yellowface" by RF Kuang
  4. "The Snow Song" by Sally Gardner
  5. "Ascension" by Nicholas Binge
  6. "The Book of Night" by Holly Black
  7. "The City and its Uncertain Walls" by Haruki Murakami
  8. "Dark As Night" by Lilja Sigurdardóttir
  9. "Oathbreaker" by Aaron Hodges
  10. "Shield of Winter" by Aaron Hodges
  11. "Dawn of War" by Aaron Hodges
  12. "The Magicians" by Lev Grossman
  13. "The Magician King" by Lev Grossman
  14. "The Magician's Land" by Lev Grossman
  15. "Silverview" by John Le Carré
  16. "The Book of Doors" by Gareth Brown
  17. "The Silence Factory" by Bridget Collins
  18. "Kala: A Novel" by Colin Walsh
  19. "Snare" by Lilja Sigurdardóttir
  20. "Trap" by Lilja Sigurdardóttir
  21. "Cage" by Lilja Sigurdardóttir
  22. "The Garden of Delights" by Amal Singh
  23. "Twilight" by Stephenie Meyer
  24. "Let the right one in" by John Ajvide Lindqvist
  25. "Under Sea, Over Stone" by Susan Cooper
  26. "The Dark Is Rising" by Susan Cooper
  27. "Greenwitch" by Susan Cooper

July was my most prolific month, devouring four books, whereas I spent the whole of August nibbling demurely at Garden of Delights. I have read three trilogies and three-fifths of a series.

Top 10 Tags

  • Fantasy: 17
  • Magic: 14
  • UrbanFantasy: 12
  • Wizards: 9
  • Horror: 8
  • Crime: 5
  • Scandinoir: 4
  • Iceland: 4
  • War: 4
  • Thriller: 4

Christmas Movies endured

  • "Jingle Jangle: A Christmas Journey" (David E. Talbert, 2020)
  • "A Christmas Miracle for Daisy" (Mike Rohl, 2021)
  • "Christmas Inheritance" (Ernie Barbarash, 2017)
  • "Haul Out the Holly" (Maclain Nelson, 2022)
  • "Haul Out the Holly: Lit Up" (Maclain Nelson, 2023)
  • "Last Christmas" (Paul Feig, 2019)
  • "Champagne Problems" (Mark Steven Johnson, 2025)
  • "My Secret Santa" (Mike Rohl, 2025)
  • "Christmas on Mistletoe Farm" (Debbie Isitt, 2022)
  • "Christmas Under the Northern Lights" (Ernie Barbarash, 2024)

Televisual viewings

TV

Another year where my tastes haven't wildly changed. Total number of shows is low (32 over the year) but Reality TV, Drama, and Animation all rank highly. Looking at my velocity, I watch much more television in autumn than any other time of year.

Top 10 Genres

  • Drama: 12
  • Reality: 8
  • Animation: 7
  • Crime: 6
  • Mystery: 5
  • Adventure: 4
  • Comedy: 4
  • Family: 4
  • Documentary: 3
  • Action: 2

Films

Of the 42 films I watched this year, basically half of them were animated, spurred by a desire to rewatch a load of Ghibli films. Again, screen time ramps up in the colder months; peaking in December when the Christmas films get hammered.

Top 10 Genres

  • Animation: 19
  • Comedy: 17
  • Adventure: 15
  • Family: 11
  • Christmas: 10
  • Fantasy: 9
  • Drama: 8
  • Romance: 6
  • Action: 4
  • Documentary: 3

Blogging Challenges

  1. Blog questions challenge
  2. Music Questions Challenge
  3. Fabruary
  4. Answering quickfire questions from The Fence like Rizzle Kicks
  5. Ten pointless facts about me
  6. Junited
  7. July Reply
  8. #TILvember — I invented this one!
  9. #AdventJukebox — I invented this but didn't invite anyone else to join in after I failed at TILvember