Posts, page 4 of 8

Sunday, 25th August 2024

Wednesday to Friday

Working. I was asked to help with a pitch for some central government work which was a good prompt to get back in touch with a few ex-colleagues.

The start-up I'm working for now has a marketing website. A few of us went for after-work drinks. £7.85 for a Neck Oil! wtf.

Saturday

The boy and I went to Brighton on the train to meet up with my sisters and my nephews. Annoyingly I bought single fare train tickets. Returns are marginally more expensive whereas two single trips is double the price. Doesn't seem like single-leg fares have been realised yet. The train journey was time to play more Front Armies.

Sunday

Early morning walk, quickly followed by addressing the aphid infestation on one my plants in the front of house flowerbed with the help of Claude, packed away the last bits from last week's camping trip, weeded the back garden and lugged the tent from garage to car to dry it in K's garden.

📺 Watched the first episode of Celebrity Race Against the World.

🏃‍♂️‍➡️ I went for a 5k run. I've changed the running screen on my Coros watch to remove pace as I'm only focussed on zone 2 running at the mo, which means keeping my heart rate between 125 and 145 BPM.

I bought compost and mulch and two varieties of spinach seeds. This autumn I'm going to see if I can turn the raised beds into food producing beds. I need to do a second, more intricate weeding session this week, and I'll pop the seeds in after the forecast heat wave.

📺 Alone, series 11 is on the History Channel. We watched three episodes!

🎧 Geeky listens

Great discussion about DuckDB on Software Engineering Daily. Kind of like SQLite but optimised for analytical use-cases.

Learnt a lot about lambdas and containers from two AWS developers who work on the serverless team.

I love Andrea Goulet's work. I first came across her on the Legacy Code Rocks podcast. Her main focus these days is empathy in tech. This conversation features systems thinking, a great cog metaphor for influence and a great description of systems engineering.

Douglas Crockford was the guy who came up with JSON data format, amongst other things. He received a death threat from someone in the XML community in the early days of JSON! He's writing a book on mathematics for kids without all the historical mistakes that's still used when teaching maths today. Might get that for E.


Sunday, 18th August 2024

Holiday, again 😁

Monday = work and evening of packing and playing tetris loading the car and its roof-box.

🕹️ On the ferry over to France, the boy and I played Front Armies, connecting two phones via hotspot to play the LAN version. It's the first time I've played a computer game for ages. It certainly made the crossing go faster.

🐚 We had three beach days. Utah beach was good for sandcastles and a game of Mölkky. It's not so great for swimming. At low tide you can walk out a few hundred metres and you're still up to your knees only. On Plage d'AnneVille-sur-mer it was 1km walk to the sea from the dunes where we set up camp. A sign warned us not to swim because of strong currents. Later in the day, kite surfers appeared as the tide came in. Omaha beach was third time lucky with swimming.

🛶 We paddled three Canadian canoes downstream for an hour and picnicked. Beautiful, picturesque countryside, bales of hay, cows and horses watching us as we meandered. Coming back was physically hard. It was upstream and windy in the wrong direction. It took two hours of constant rowing. If I stopped, we went backwards. Occasionally we got spun round and headed in the wrong direction because of a strong gust. Massive sense of achievement at the end!

🐠 Our only rainy day was spent at La Cité de la Mer. The Ocean of the Future exhibition was excellent and the boy really enjoyed it, which isn't always a given. Aquariums and interactive displays in the dark. A quick caffeine break resulted in a coffee with whipped cream; order a cappuccino at your peril in France. We queued 1.5 hours to go aboard the Le Redoutable which was well worth the wait. Being up close gives you an appreciation of the engineering required to manoeuvre a submarine, sustain human life for months, run a mini nuclear power station to fuel and keep the sub quiet, let alone house atomic missiles.

After each day out we came back to the campsite, swam, drank local beer, made food, played games, kids went feral with other camp kids and slept soundly. Go there.


Sunday, 11th August 2024

Thursday to Wednesday

I was in Pembrokeshire up until Wednesday, staying with K's parents. It's E's second summer trip. We:

🚴‍♂️ cycled 9 miles round Llys-y-Frân Lake

🏃‍♂️‍➡️ ran Teifi Marshes Nature Reserve parkrun

🌊 got wet, bashed around and felt fear jumping from heights (or not actually having the nerve to jump in my case) taking part in coasteering led by Martin (book direct @ https://www.coastal-adventures.co.uk/)

🐚 dug a whole and buried E in sand at Cwm-yr-Eglwys, got involved in a few of the regatta activities (didn't win the egg and spoon) and swam in the sea 🌊

🍺 fed and watered ourselves at The Sloop and The Royal Oak which also had a bunch of people in the corner playing folk music

🏠 tuned into the Olympics, introduced E to Shithead the card game back at the ranch and I yak-shaved this blog every so often

📺 watched Rams, the aussie version

Thursday and Friday

Would usually go into the office on a Thursday but E was home. Friday went in for a leadership meeting focussing on company strategy and how we adapt it to make it relevant to my local business unit (called club in AND Digital vernacular) level. Also met with other practice leads to sync on competency frameworks.

Saturday and Sunday

🏋️‍♂️ Whilst exercising at the gym I listened to tunes instead of podcasts. Brain needed a rest.

🎧 I mostly use Qobuz to listen and discover music. They have a magazine of sorts. The article I clicked on was "Merge Records in 10 Albums". The article was peppered with bands. I tried listening to Mountain Goats but they were not for me. The next band, described as "offbeat '80s dreap-pop" was Destroyer. They've been going since 1995. The top tracks suggested to me have me hooked so will be coming back for more.

Slowly getting ready for holiday two in Normandy. Camping for the 3rd time this year! Back to the same French campsite as last year.

⚽️ Walked over to Selhurst Park to watch Crystal Palace vs Nantes, a pre-season friendly. We were joined by with neighbours and met a couple of friends along the way. Great day for the 5 kids! They played a footie afterwards, thankfully in the shade.

Surfing


Saturday, 10th August 2024

Complexity is the gotcha of event-driven architecture. David Boyne talks about the inevitable complexity of EDAs at part of GOTO's most recent EDA Day.

What was new to me was the The project paradox which is summed up by the question "Why do we take the biggest decisions at a time when we have the least knowledge?".

EDAs ease this because they are evolutionary by nature but can get complex quickly if not managed, which you do by documenting your events and architecture.


Thursday, 8th August 2024

programming for kids. Borislav has been teaching his 10 year old daughter how to code. He views programming as something to be literate in, not something to have a career in necessarily. I agree. I wonder how E will respond if I try to teach him a bit every day. Borislav has kept a record of each day's lesson. He has managed to teach on 403 days so far! Wow, what a gift to his daughter.


Tuesday, 14th May 2024

I noticed the senior engineers at work didn't have a space to come together. Senior engineers are distributed over many client projects and, from experience, they too need a support group. I, as a tech principal, need their help elevating the the technical capabilities across the organisation.

Here's the process I took:

  • validate what my senses were telling me
    • On an individual basis, I told each senior engineer what I was thinking and asked whether they felt a need for a space for senior engineers to connect.
    • Each engineer responded positively with their own personal take
  • invited senior engineers to discuss further
    • shared the positive responses anonymously in an email invitation
  • prepared a one pager to guide our discussion, including steps for:
    • context setting
    • purpose - potential topics, initiatives, opportunities,
    • membership - who was in this group and who was not
    • structure - how often, the formats (round table, lean coffee, knowledge sharing, etc)
    • needs - what might the needs be of the group
    • roles & responsibilities - rotation of various roles, e.g. facilitator, note-taker, knowledge curators, etc...
  • have the discussion for 45 minutes

The pace of the session went well, we covered all the steps, I made sure all voices were heard, and it felt like everyone was on the same page.

We agreed to meet fortnightly, have a mixture of formats, limit membership to level 5 engineers and above to keep group small and manageable. There were a lot of ideas covered when we spoke about purpose of the group and needs of the members, including:

  • cohesive set of standards for common tech we use
  • port of call for feedback on strategic objectives
  • working out what messages to amplify to wider engineering discipline
  • peer support
  • fostering sense of belonging and collaboration outside of client work
  • coordination of talent development, training needs and cultural change

All in all, a very worthwhile session that I should have made happen sooner.


Monday, 13th May 2024

At work, I've enrolled for a programme called Inclusion Mentoring. After an hour of an explainer, I was paired with a colleague who was different enough from me so we could both learn new perspectives. Different backgrounds, different teams and different identities.

Session one was about finding out about each others background and agreeing a charter that makes sense to both of us. We agreed that there's no hierarchy, we will swap from mentee to mentor numerous times in a conversation and we everything that's said will remain confidential. I spoke about coming from a broken home, my teenage years, summarised my 20s and 30s, and where I'm at right now in my mid 40s. I also highlighted my privileges: race: white; gender: cis male; physical ability: able-bodied; class: wealthy (relatively but grew up working class); nationality: western; orientation: hetero. Plus two other bits of my identity: religion: nothing organised, maybe spiritual; mental ability: neurodiverse (self diagnosis).

We got into some excellent topics and I learnt a bunch of new perspectives. I shan't go into them here otherwise I'll betray confidence if someone reads from work.

If you get the chance to do this, go for it. You'll learn a lot from a deep, focused conversation.


Monday, 6th May 2024

Over the past few weeks I've been using a 5k speed improvement program suggested by my Corus watch. It's:

  • Warm up: 3.2km at threshold pace of 69% to 81%, which is my aerobic endurance pace
  • 8 sets of
    • 200m at threshold pace of > 114%, which gets me into anaerobic power
    • 3 minutes recovery pace, basically walking
  • 1.6km threshold pace of between 92% and 102%
  • Cool down: 2.4km threshold pace of 69% to 81%

I've been doing this a few weeks now. Yesterday, I switched to place in my local park which had a flat strip that was near enough 200m, so I could visually see the finishing line approaching, making me keep the pace as fast as I could. On the 4th time, a muscle fibre in my left hamstrung went twang. I tried gently running after a few minutes but it felt uncomfortable. Very annoying.

After reading a few blogs, I think I have a grade 1 strain where there is "There is little structural disruption, and the muscle heals quickly".

There are a bunch of exercises I should do on https://www.sportsinjuryclinic.net/sport-injuries/thigh-pain/back-thigh/pulled-hamstring-exercises. When I can run again, I should not sprint as fast as I can. I should gradually increase the speed over many weeks, whilst at the same time strengthening my hamstrings so they can handle the extra load sprints put on to the muscle.


Tuesday, 30th April 2024

I wanted to use Simon Willison's shot-scraper tool. This made me understand how to set up a Python dev environment.

First, I upgrade Python:

~ % which python3
/opt/homebrew/bin/python3
~ % python3 --version
Python 3.12.2
~ % brew upgrade python3
~ % python3 --version
Python 3.12.3

Then I attempt to install shot-scraper:

screenshots % pip install shot-scraper
zsh: command not found: pip

I try pip3 install shot-scraper. This works, but doesn't install the package:

screenshots % pip3 install shot-scraper
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
    xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a Python library that isn't in Homebrew,
    use a virtual environment:
    
    python3 -m venv path/to/venv
    source path/to/venv/bin/activate
    python3 -m pip install xyz
    
    If you wish to install a Python application that isn't in Homebrew,
    it may be easiest to use 'pipx install xyz', which will manage a
    virtual environment for you. You can install pipx with
    
    brew install pipx
    
    You may restore the old behavior of pip by passing
    the '--break-system-packages' flag to pip, or by adding
    'break-system-packages = true' to your pip.conf file. The latter
    will permanently disable this error.
    
    If you disable this error, we STRONGLY recommend that you additionally
    pass the '--user' flag to pip, or set 'user = true' in your pip.conf
    file. Failure to do this can result in a broken Homebrew installation.
    
    Read more about this behavior here: <https://peps.python.org/pep-0668/>

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Claude gives me some options:

The error message you're getting is because of the way Homebrew manages and isolates Python packages to prevent conflicts with the system's Python installation.

Here are a few options to address this issue:

  1. Use Homebrew to install Python packages

You can use Homebrew to install Python packages by running:

brew install <package_name>

Replace <package_name> with the package you want to install. This will install the package in a separate Homebrew-managed location, avoiding conflicts with the system's Python.

  1. Create and use a virtual environment

Virtual environments are isolated Python environments that allow you to install packages without affecting your system's Python installation or other virtual environments. To create and use a virtual environment, follow these steps:

python3 -m venv /path/to/your/venv
source /path/to/your/venv/bin/activate
pip install <package_name>

Replace /path/to/your/venv with the desired location for your virtual environment, and <package_name> with the package you want to install. After activating the virtual environment, you can use pip to install packages within that isolated environment.

  1. Use pipx (recommended)

pipx is a tool that automatically creates virtual environments and installs packages in an isolated location. It's a convenient way to manage Python packages without interfering with your system's Python installation. Install pipx first:

brew install pipx
pipx ensurepath

Then, you can install packages with pipx:

pipx install <package_name>

This will create a virtual environment for the package and add the package's executable to your PATH, making it easy to run.

By following one of these approaches, you can install Python packages on your macOS system without running into conflicts with Homebrew's managed Python installation.

I've going to try pipx, although I'm not entirely sure what it is:

pipx install shot-scraper

Whilst it's installing, I look for more info about pipx. Its README says:

pipx is a tool to help you install and run end-user applications written in Python. It's roughly similar to macOS's brew, JavaScript's npx, and Linux's apt.

I know what npx is so I now have a good mental model. Jacob adds to my understanding:

Why? pipx lets me install Python-based CLI stuff (youtube-dl, awscli, doc2dash, etc.) without those projects’ dependencies messing up my global Python.

shot-scraper has installed successfully:

  installed package shot-scraper 1.4, installed using Python 3.12.3
  These apps are now globally available
    - shot-scraper
done! ✨ 🌟 ✨

Saturday, 3rd February 2024

I use YouTube Premium, which is ad-free, plus other features.

Problem

On my work Macbook, when I click on a YouTube.com link it opens in Chrome, my default browser, which is logged into my work Google Workspace account. Work obviously doesn't pay for YouTube Premium so I have to watch ads or copy the link to a different browser where I'm logged into YouTube Premium via my personal Google Account.

I don't want to copy links between browsers.

Solution

https://github.com/johnste/finicky