Articles



GitHub code spaces

Oct 5, 2024

๐Ÿ•‘2 min read
Today I found myself away from my computer, but I needed to update something on my site. I had my iPad, so I decided to give code spaces a try. Considering Iโ€™m using a tablet without a keyboard, or a mouse, the experience was generally pleasant. Itโ€™s not...

Chester Half Marathon 2024 - race report

May 20, 2024

๐Ÿ•‘8 min read
๐ŸƒRun
Despite it being a scorching day, I managed to keep my head cool and beat my target time, with a new PB to boot. There were a number of lessons I learnt from the London Marathon a month ago, which I put into action pre and during the race which really paye...

London Marathon 2024 - Race Report

Apr 21, 2024

๐Ÿ•‘16 min read
This is THE race I have been trying to run for years, and when it finally came, it didnโ€™t disappoint despite a sub-par performance on the day. I accomplished most of what I set out to achieve, and had an amazing day. Goals 3:20:00 - Fail 3:30:00 - Fail ...

Running the London Marathon for WWF

Mar 1, 2024

๐Ÿ•‘2 min read
๐ŸƒRun
As many of you my know, I'm passionate about my running and the environment, and this year I've been fortunate enough to secure a spot in the London Marathon, and I'm running not just for personal achievement, but to support a cause close to my heart: WWF,...

Garmin Epix daily workout suggestions

Jan 29, 2024

๐Ÿ•‘1 min read
๐ŸƒRun
If you manage to disable the suggested workouts feature on your Garmin Watch, then there is a quick way to re-enable it. Go to your "Race calendar" > Select your event > Click start/stop button and an option for "Daily suggestions" will appear. You can c...

A guide to GROQ

Aug 5, 2023

๐Ÿ•‘14 min read
GROQ (Graph Relational Object Queries) is a query language that was created by Sanity to query CMS data. Itโ€™s a flexible query language and the use of projections makes it a powerful tool to construct complex and efficient data queries. GROQ vs. GraphQL ...

GROQ vs GraphQL

Aug 4, 2023

๐Ÿ•‘2 min read
While GROQ is nominally similar to GraphQL, there are subtle differences. Here's a quick run down of the similarities and differences, so that you can understand the reasons for GROQs existence, and some of itโ€™s use-cases, before using it yourself Both us...

Simplify GROQ query with optional fields

May 21, 2023

๐Ÿ•‘1 min read
๐Ÿง Tip
In working with Sanity and GROQ, there might be instances where you need to filter data using an optional field, and want a default value to kick in when null values are returned. For instance, consider an __i18n field added after a significant amount of c...

Filtering data within a GROQ query

May 20, 2023

๐Ÿ•‘1 min read
๐Ÿง Tip
When dealing with multiple sets of similar data, it's not uncommon to encounter overlapping filters. Let's say you need to pull up all your articles, then categorize them into two subsets: English and French. You might think you need three separate queries...

GROQ webhooks in Sanity

May 6, 2023

๐Ÿ•‘1 min read
๐Ÿง Tip
The webhooks within Sanity CMS offer an amazingly powerful way to send data to 3rd parties when changes to content occur. However, the webhooks often require extra data retrieval to ensure the consuming service has all the necessary information for appropr...

Tuple to Object - TypeScript Challenge Explained

Mar 13, 2023

๐Ÿ•‘1 min read
My solution to the Tuple to Object TypeScript Challenge as part of my journey to Understanding the TypeScript Challenges. Given an array, transform it into an object type and the key/value must be in the provided array. Solution Loop over the values in ...