Saturday, 10 January 2026

HTML tools

I came across Useful patterns for building HTML tools by Simon Willison and found it very interesting so decided to give it a try at some point, ie today.

A colleague will be running the London marathon and looking into the training plan, I thought it would have been nice for the organizers to allow you to download an ics file rather than a pdf file (or both). Something you can add to your calendar with no effort. 

https://www.londonmarathonevents.co.uk/sites/default/files/2025-10/2026_TCSLM_Beginner_Training_Plan.pdf




So, enter html tools using Gemini. Needless to say, it took several iterations, so I really need to work on my prompts.

First prompt

Build an artifact that lets me open a pdf file. The file has a training plan to run a marathon and only pages 3 and 4 are relevant as they contain a table with the training plan. Pages 1 and 2 can be dismissed.

There needs to be a field in which the user can select the date of the marathon. The artifact will then generate calendar entries (ics file) for each day in the plan back from the date of the marathon. Each day is either a "Rest day" or a day in which you have to run or walk (or both). Rest days can be dismissed.

For each day in which there is a walk or run planned there is small text with a description.

It will be possible for the user to download those ics file. No React.

As an example, if the selected date is April 26 2026, then the plan will start 16 weeks before.

Second prompt

Dismiss the parsing logic and simply include the text in each cell of the table for running days

At this point I remembered that Excel can parse pdf into columns so I gave it a try (not perfect) and changed the prompt so that it would accept a slightly edited excel table (maybe I should have tried uploading the excel file instead)



Third prompt

ok, the parsing of the pdf file is not working. Instead of loading a pdf file, the user can paste an excel table. First column has week number, columns 2 to 8 have plans for each day of the week

Fourth prompt

That did not quite work. Each cell has text delimited with inverted commas ("). All text needs to be part of the training activity. Do not dismiss Rest days, however do not include them in the ics file

Fifth prompt

all text within " characters needs to be displayed, not only the first row

Sixth prompt

This looks good, please express distance in km, not miles

Seventh prompt

MIN stands for minutes, not miles

Eight prompt

This looks good. It should be possible to edit rach row in the schedule

After these prompts, which did not really take long, I got this (note it works even with typos in the last prompt, yes, read it again). Nice and sweet.





Saturday, 3 January 2026

2025: A year in review

 


Now that the holidays are almost over, it is a good time to write about 2025 before the normal routine starts. All in all, 2025 was a pretty good year. Holidays again played a big role, and similar to 2024 this was mainly because of sharing them with family. We spent a few days in Easter and in October to enjoy the sun in Spain, enjoyed a busy Summer road trip to Belgium and Netherlands with one of my nieces and, again, but not quite the same, I took on the challenge of the Camino de Santiago, this time with my brother. Difficult to say what was the highlight of the year with so many good breaks. Following on what hopefully by now is a tradition, I wrote a couple of booklets with my travel notes, both or the Camino and the business trip to India.

If I thought I did well in 2024 regarding keeping physically active, 2025 was in a league of its own. I lost more than 10 kilos in six months through a combination of running, exercise and better nutrition, focusing on creating habits rather than quick returns. I started again the C25K programe and ended up running 10 km several times through the year, not to forget the multiple times I have been to Teufelsberg on 20+ km treks training for the Camino. No surprise then that the 165 km in early September including a 50 km final day was more fun than pain.

Work wise, another very busy and successful year thanks to the great team, which keeps changing and evolving and never stops to amaze me with their skill and dedication. 2026 will be again a busy year in which I am making my best to see challenges as opportunities while still trying to have fun and enjoy what we are building.

Sunday, 14 December 2025

Civil ET&S Award 2025

Posted in LinkedIn earlier this week

What a great way to finish the year, really honoured to be part of the team which has received the Civil ET&S Award in the Engineering Excellence category.

Nice example of how collaboration across Services, Digital & Engineering working as one team towards a common objective really makes a difference.

Kimon Abu-Taa, Theodora Tzortzoglou, Christian Otterbach, Oguzhan Bozkurt, Theresa Robinson, Łukasz Więckowski, Alberto Bava, José Manuel Sarrión Navarro, Luca Fontana, Pasquale D'Urso