<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Posts on SCMB XYZ</title>
    <link>https://www.scmb.xyz/post/</link>
    <description>Recent content in Posts on SCMB XYZ</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <copyright>&amp;copy; Seamus Bradley 2021–6</copyright>
    <lastBuildDate>Wed, 14 Jan 2026 09:46:32 +0000</lastBuildDate>
    <atom:link href="https://www.scmb.xyz/post/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Year in Review 2025</title>
      <link>https://www.scmb.xyz/post/year-in-review-2025/</link>
      <pubDate>Wed, 14 Jan 2026 09:46:32 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/year-in-review-2025/</guid>
      <description>&lt;p&gt;As I expect will become &lt;a href=&#34;post/year-in-review-2024/&#34;&gt;customary&lt;/a&gt;, my year in review post is coming out several weeks into the new year.&#xA;This one is quite games-heavy because games is the media I consumed most of this year.&#xA;I didn&amp;rsquo;t read all that many books or watch all that much tv or movies.&lt;/p&gt;&#xA;&lt;h1 id=&#34;books&#34;&gt;Books&lt;/h1&gt;&#xA;&lt;p&gt;One of my favourite books of 2024 was Adrian Tchaikovsky&amp;rsquo;s City of Last Chances,&#xA;and my favourite book of 2025 was the sequel: House of Open Wounds.&#xA;It&amp;rsquo;s a very good book and I am looking forward to reading the third in the series this year.&#xA;Can any other book stop Days of Shattered Faith being my favourite book of 2026?&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Slowed Update</title>
      <link>https://www.scmb.xyz/post/advent-of-slowed-15-16-17/</link>
      <pubDate>Sat, 05 Jul 2025 21:33:27 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/advent-of-slowed-15-16-17/</guid>
      <description>&lt;p&gt;I finished Parts 1 and 2 of Day 15, and I&amp;rsquo;ve managed parts 1 of Days 16 and 17.&#xA;For each of the unfinished part 2s, I know roughly what I solution should involve,&#xA;but I&amp;rsquo;m struggling to get there.&#xA;The goal of this exercise has always been to learn more about rust and to get some practice using it.&#xA;I have definitely done that: &lt;a href=&#34;https://codeberg.org/scmbradley/AdventOfCode/src/branch/main/rust/src/aoc_2024/aoc_2024_15.rs&#34;&gt;day 15&lt;/a&gt;,&#xA;in particular, involved writing two &lt;code&gt;impl&lt;/code&gt;s of a trait I created,&#xA;one for each part.&#xA;Thinking about what should be in the &lt;code&gt;impl&lt;/code&gt;s for the structs, and what should be in the trait,&#xA;as well as what I can provide default implementations for, was a really interesting exercise.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Stopped Clocks</title>
      <link>https://www.scmb.xyz/post/stopped-clocks/</link>
      <pubDate>Thu, 05 Jun 2025 13:28:45 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/stopped-clocks/</guid>
      <description>&lt;p&gt;The proverb &amp;ldquo;Even a stopped clock is right twice a day&amp;rdquo;&#xA;is inaccurate in a number of ways.&#xA;First, a stopped digital clock is right only once a day if it is in 24h mode.&#xA;If the stopped clock is in a jurisdiction that observes daylight savings time,&#xA;it might be that when the clocks go back, the clock is right three times on that day;&#xA;and when the clocks go forwards, it might only be right once on that day.&#xA;(Or twice and zero times respectively if it&amp;rsquo;s a 24h clock).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Slowed Days 13 and 14</title>
      <link>https://www.scmb.xyz/post/advent-of-slowed-13-14/</link>
      <pubDate>Thu, 08 May 2025 23:04:18 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/advent-of-slowed-13-14/</guid>
      <description>&lt;p&gt;My deadline for finishing Day 14 of last year&amp;rsquo;s advent of code is the 20th,&#xA;but I have, in fact, already finished it.&#xA;I am not just scraping by now, I am smashing these deadlines.&#xA;This probably has more to do with nobody in my household being poorly this week&#xA;rather than any other factors.&#xA;In fact, between finishing Day 13 and starting Day 14, I even had some time to go back and&#xA;look at making some efficiency improvements to some slow tests.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Slowed Days 11, 12, and some refactoring</title>
      <link>https://www.scmb.xyz/post/advent-of-slowed-11-12/</link>
      <pubDate>Fri, 25 Apr 2025 13:37:47 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/advent-of-slowed-11-12/</guid>
      <description>&lt;p&gt;So we&amp;rsquo;re nearing the end of April and I&amp;rsquo;m still (more or less) on schedule given the&#xA;&lt;a href=&#34;https://www.scmb.xyz/post/advent-of-slowed-dates/&#34;&gt;targets I set myself&lt;/a&gt;&#xA;at the start of the year.&#xA;In fact, I finished Day 11 before the deadline and so I took a little time to revisit&#xA;Day 5 Part 2, and a few other bits of refactoring.&lt;/p&gt;&#xA;&lt;h1 id=&#34;day-11&#34;&gt;Day 11&lt;/h1&gt;&#xA;&lt;p&gt;This was a pretty easy puzzle, and one that took the classic AoC form of&#xA;&amp;ldquo;Part 1: do this for n; Part 2: OK now do it for a bigger n&amp;rdquo;.&#xA;The obvious solution for Part 1 takes way way way too long to run for Part 2.&#xA;Essentially each step involves doing something to each element of a list.&#xA;That something returns 0, 1 or 2 new items for the next iteration.&#xA;So the size of the list can double each iteration if you put back in 2 elements each time.&#xA;Doing this for 25 iterations is kind of manageable, you get a list of up 33 million-ish items for each starting item.&#xA;(It&amp;rsquo;s actually less because you don&amp;rsquo;t always put 2 elements in the next list, but as a worst case estimate, this is ok).&#xA;Part 2 is to do the same thing for 75 iterations which puts you up in the sextillions of items.&#xA;The trick for Part 2 was to realise that order doesn&amp;rsquo;t matter, and all we ultimately care about is the final total number of items.&#xA;So if there are duplicate numbers in your list, you can just do the calculation once and keep track of the number of duplicates.&#xA;That means, instead of keeping track of a big list of items, you keep track of a smaller list of (item, repeats) pairs.&#xA;My implementation meant re-sorting and re-grouping the list every iteration, but I&amp;rsquo;m sure there&amp;rsquo;s an even more efficient way of doing it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Slowed Days 8, 9 and 10</title>
      <link>https://www.scmb.xyz/post/advent-of-slowed-8-9-10/</link>
      <pubDate>Thu, 03 Apr 2025 22:02:03 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/advent-of-slowed-8-9-10/</guid>
      <description>&lt;p&gt;More advent of coding!&#xA;These last three days have been interesting,&#xA;and the main reason it&amp;rsquo;s taken so long to solve them&#xA;is finding time to do them.&lt;/p&gt;&#xA;&lt;h1 id=&#34;day-8&#34;&gt;Day 8&lt;/h1&gt;&#xA;&lt;p&gt;Another day, another input that is interpreted as a map.&#xA;I once again used the &lt;code&gt;coords&lt;/code&gt; module I wrote for an earlier day.&#xA;The story is that there are some antennas and you need to find&#xA;spots where the antennas resonate with each other.&#xA;What that amounts to is using a bit of vector arithmetic on the&#xA;coordinates of the antennas.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Slowed Days 5, 6 and 7</title>
      <link>https://www.scmb.xyz/post/advent-of-slowed-5-6-7/</link>
      <pubDate>Mon, 10 Mar 2025 15:27:38 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/advent-of-slowed-5-6-7/</guid>
      <description>&lt;p&gt;I am, once again, very behind schedule with my &lt;a href=&#34;https://www.scmb.xyz/post/advent-of-slowed-dates/&#34;&gt;Advent of Slowed&lt;/a&gt; adventure.&#xA;This is due to a combination of being busy at work, getting sick, my kids getting sick,&#xA;and Day 5, Part 2 being annoying (I think one of my commit messages was literally &amp;ldquo;Part 2 can go to hell&amp;rdquo;).&#xA;We are now somewhat back on track and I hope to catch up in the next week or two.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Year in Review 2024</title>
      <link>https://www.scmb.xyz/post/year-in-review-2024/</link>
      <pubDate>Mon, 17 Feb 2025 10:36:23 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/year-in-review-2024/</guid>
      <description>&lt;p&gt;Well, we&amp;rsquo;re something like 13% through 2025, so I think it&amp;rsquo;s about time I do a &amp;ldquo;year in review&amp;rdquo; post.&lt;/p&gt;&#xA;&lt;h1 id=&#34;personal&#34;&gt;Personal&lt;/h1&gt;&#xA;&lt;p&gt;My son was born.&#xA;He&amp;rsquo;s kind of a big deal.&#xA;His big brother is very interested in him, it&amp;rsquo;s quite sweet.&#xA;This obviously colours lots of other aspects of this round up, as we&amp;rsquo;ll see.&#xA;Not least because my sleep patterns the latter part of this year have been absolutely&#xA;all over the place.&#xA;It was not an uncomplicated pregnancy&#xA;so it&amp;rsquo;s just good to have the little guy out with mum and baby both healthy.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Slowed Days 3 and 4</title>
      <link>https://www.scmb.xyz/post/advent-of-slowed-3-4/</link>
      <pubDate>Mon, 20 Jan 2025 16:22:10 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/advent-of-slowed-3-4/</guid>
      <description>&lt;p&gt;And here we are, back on track.&#xA;After getting myself extremely behind schedule (already!) by trying to be too clever on Day 2,&#xA;I&amp;rsquo;ve breezed through Days 3 and 4.&#xA;These two days also demonstrate two Advent of Code classic solution types.&#xA;Day 3 is a &amp;ldquo;make the calculation trivial by doing all the work in the parser&amp;rdquo; solution,&#xA;and Day 4 is a &amp;ldquo;parse the input into some kind of grid, then query the grid&amp;rdquo;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Slowed Days 1 and 2</title>
      <link>https://www.scmb.xyz/post/advent-of-slowed-days-1-2/</link>
      <pubDate>Thu, 16 Jan 2025 09:26:24 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/advent-of-slowed-days-1-2/</guid>
      <description>&lt;p&gt;As I said in &lt;a href=&#34;https://www.scmb.xyz/post/advent-of-slowed-dates/&#34;&gt;my first Advent of Slowed post&lt;/a&gt;,&#xA;I started as I mean to carry on:&#xA;blowing through the deadlines I set myself.&#xA;According to the timeline I originally envisaged,&#xA;I should have finished Day 2 of last year&amp;rsquo;s Advent of Code on the 8th and&#xA;Day 3 on the 14th.&#xA;Well, late last night, on the 15th, I finally finished Day 2.&#xA;In my defense, most of the time I get to work on these problems is late in the evening with&#xA;a baby asleep on me.&#xA;I&amp;rsquo;m tired and distracted, and how much I get done depends on how deeply asleep he is.&#xA;I&amp;rsquo;m also doing these puzzles in Rust, a language I only started learning last year.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Advent of Slowed: Dates and Yak Shaving</title>
      <link>https://www.scmb.xyz/post/advent-of-slowed-dates/</link>
      <pubDate>Sat, 04 Jan 2025 22:13:27 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/advent-of-slowed-dates/</guid>
      <description>&lt;p&gt;As I mentioned in my &lt;a href=&#34;https://www.scmb.xyz/post/december-adventure-2024/&#34;&gt;December Adventure&lt;/a&gt; post,&#xA;I am planning to solve last year&amp;rsquo;s &lt;a href=&#34;https://adventofcode.com/&#34;&gt;Advent of Code&lt;/a&gt;,&#xA;but I&amp;rsquo;m going to take my time about it.&lt;/p&gt;&#xA;&lt;p&gt;I toyed with a couple of different ways of generating deadlines&#xA;for the puzzles.&#xA;I settled on the list of deadlines listed as &amp;ldquo;pow 1.5 (totals)&amp;rdquo; in the&#xA;&lt;a href=&#34;https://codeberg.org/scmbradley/AdventOfCode/src/branch/main/dates_calc.py&#34;&gt;code I used to experiment with dates&lt;/a&gt;.&#xA;As you might have noticed, I&amp;rsquo;ve already failed to meet the first deadline,&#xA;which, to be fair, is starting how I mean to go on.&#xA;I did actually finish day 1 this evening (only a day late)&#xA;but the write up will have to wait until tomorrow or Monday.&lt;/p&gt;</description>
    </item>
    <item>
      <title>More Learning Through Games</title>
      <link>https://www.scmb.xyz/post/more-learning-through-games/</link>
      <pubDate>Tue, 03 Dec 2024 15:29:15 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/more-learning-through-games/</guid>
      <description>&lt;p&gt;In a &lt;a href=&#34;https://www.scmb.xyz/post/learn-through-games/&#34;&gt;previous post&lt;/a&gt;,&#xA;I highlighted a few computer games that I thought could teach you something about programming.&#xA;There were a few games I didn&amp;rsquo;t get round to discussing, and a few additional suggestions I&amp;rsquo;ve come across since&#xA;so I thought I&amp;rsquo;d do a follow-up post.&#xA;I considered trying to follow the same classification I did previously, but it doesn&amp;rsquo;t make sense given the games&#xA;I want to discuss, so we&amp;rsquo;re going for a different way of breaking down the list.&#xA;I will, however, mention when a game fits into a category from the previous post.&lt;/p&gt;</description>
    </item>
    <item>
      <title>December Adventure 2024</title>
      <link>https://www.scmb.xyz/post/december-adventure-2024/</link>
      <pubDate>Sun, 01 Dec 2024 20:49:23 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/december-adventure-2024/</guid>
      <description>&lt;p&gt;While I have enjoyed doing (the first week or two of) Advent of Code the last few years,&#xA;I think I&amp;rsquo;m going to not do it this year.&#xA;I currently have my one-month old son asleep on me, and this is simply not an environment&#xA;that&amp;rsquo;s conducive to that kind of problem-solving.&#xA;I think, instead, I will participate in &lt;a href=&#34;https://eli.li/december-adventure&#34;&gt;December Adventure&lt;/a&gt;&#xA;which seems like a much gentler way of having some community and bit of a push to do a bit of coding&#xA;this month.&#xA;I have a few plans for what I will work on, but I am deliberately not specifying them up front in case&#xA;I don&amp;rsquo;t actually decide to work on them this month.&#xA;This post will record what I got up to on each day, so I&amp;rsquo;ll be editing it throughout the month.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Instead of Doomscrolling</title>
      <link>https://www.scmb.xyz/post/instead-of-doomscrolling/</link>
      <pubDate>Wed, 06 Nov 2024 08:58:41 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/instead-of-doomscrolling/</guid>
      <description>&lt;h1 id=&#34;what-to-do-instead-of-social-media&#34;&gt;What to do instead of social media&lt;/h1&gt;&#xA;&lt;p&gt;I get it, it&amp;rsquo;s just muscle memory.&#xA;You have a free moment, and you find your hands just picking up your phone&#xA;and opening up your social media.&#xA;You know you&amp;rsquo;re doing it too much, but it&amp;rsquo;s not even conscious at this point.&#xA;Well, instead of trying to stop yourself picking up your phone in those fallow moments,&#xA;let&amp;rsquo;s just try to make it tap a different icon and do something else.&#xA;Something, perhaps, a little better for your mental health.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Nope-As-A-Service</title>
      <link>https://www.scmb.xyz/post/nope-as-a-service/</link>
      <pubDate>Mon, 30 Sep 2024 20:10:47 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/nope-as-a-service/</guid>
      <description>&lt;p&gt;We are a well respected innovator in the nope delivery space, best known for our&#xA;web-based &lt;a href=&#34;https://www.scmb.xyz/nope.html&#34;&gt;nope product&lt;/a&gt;.&#xA;But as anyone in the field will tell you, the pace of innovation is breathtaking.&#xA;And today, we can exclusively reveal our exciting new product.&#xA;As a world leader in nope innovation,&#xA;we bring you the first of its kind, next generation nope delivery system:&#xA;the Nope-As-A-Service RESTful API.&#xA;This provides the ultimate in customisable nope delivery over the internet.&#xA;Nope can now be accessed quickly and efficiently via an API, using curl for example.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Moved Servers</title>
      <link>https://www.scmb.xyz/post/moved-servers/</link>
      <pubDate>Mon, 16 Sep 2024 13:57:09 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/moved-servers/</guid>
      <description>&lt;p&gt;If you&amp;rsquo;re seeing this post, it means I have sucessfully moved my website&#xA;over to hosting at &lt;a href=&#34;www.mythic-beasts.com&#34;&gt;Mythic Beasts&lt;/a&gt;.&#xA;For a long time (since about 2005, I guess) I have had my web presence, in various forms,&#xA;hosted at &lt;a href=&#34;www.nearlyfreespeech.net&#34;&gt;Nearly Free Speech&lt;/a&gt;.&#xA;I don&amp;rsquo;t really have anything bad to say about NFS,&#xA;but their service is (deliberately) pretty barebones.&#xA;I am now renting a little raspberry pi server at mythic beasts (for various experiments and future projects)&#xA;and so it made sense to consolidate my hosting providers.&#xA;So far, their customer service has been really good.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Who Did Best At The Olympics?</title>
      <link>https://www.scmb.xyz/post/olympic-medals-per-capita/</link>
      <pubDate>Mon, 12 Aug 2024 17:46:46 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/olympic-medals-per-capita/</guid>
      <description>&lt;p&gt;Every four years (give or take a pandemic postponement) debate breaks out about the best way to measure&#xA;who did best at the olympics.&#xA;I&amp;rsquo;m going to look at a couple here.&lt;/p&gt;&#xA;&lt;h1 id=&#34;medals&#34;&gt;Medals&lt;/h1&gt;&#xA;&lt;p&gt;What&amp;rsquo;s a better measure of success?&#xA;Gold medals?&#xA;Total medals?&#xA;If we look at medal totals, the top ten looks like this:&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th style=&#34;text-align: left&#34;&gt;&lt;/th&gt;&#xA;          &lt;th style=&#34;text-align: right&#34;&gt;Gold&lt;/th&gt;&#xA;          &lt;th style=&#34;text-align: right&#34;&gt;Silver&lt;/th&gt;&#xA;          &lt;th style=&#34;text-align: right&#34;&gt;Bronze&lt;/th&gt;&#xA;          &lt;th style=&#34;text-align: right&#34;&gt;Medal Totals&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;United States&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;40&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;44&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;42&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;126&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;China&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;40&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;27&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;24&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;91&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;Great Britain&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;14&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;22&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;29&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;65&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;France&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;16&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;26&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;22&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;64&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;Australia&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;18&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;19&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;16&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;53&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;Japan&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;20&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;12&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;13&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;45&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;Italy&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;12&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;13&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;15&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;40&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;Netherlands&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;15&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;7&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;12&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;34&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;Germany&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;12&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;13&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;8&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;33&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;South Korea&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;13&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;9&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;10&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: right&#34;&gt;32&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;Whereas if we focus on gold medals only&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt; a very slightly different picture emerges:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Learn Computing Through Games</title>
      <link>https://www.scmb.xyz/post/learn-through-games/</link>
      <pubDate>Fri, 26 Apr 2024 09:16:51 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/learn-through-games/</guid>
      <description>&lt;p&gt;How much could you learn about computing and programming through playing games?&#xA;How much, specifically, could you learn by playing games available through steam that will run on a 3-year old laptop running ubuntu?&#xA;This is the question I have set out to discover the answer to.&lt;/p&gt;&#xA;&lt;p&gt;I will note here at the top that I&amp;rsquo;ve not played all of these games in great depth,&#xA;so I might be missing aspects of the later stages of the games.&#xA;Also, I often play with the sound off,&#xA;so I won&amp;rsquo;t be commenting on the sound effects or music at all.&lt;/p&gt;</description>
    </item>
    <item>
      <title>One efficient solution to Circular Buffer (and two others): Week 8 of 48 in 24</title>
      <link>https://www.scmb.xyz/post/week-8-exercism/</link>
      <pubDate>Mon, 08 Apr 2024 16:08:16 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/week-8-exercism/</guid>
      <description>&lt;p&gt;It&amp;rsquo;s been a while, but we&amp;rsquo;re back for week 8.&#xA;This week&amp;rsquo;s challenge is to write a &lt;a href=&#34;https://exercism.org/exercises/circular-buffer&#34;&gt;Circular Buffer&lt;/a&gt;.&#xA;It&amp;rsquo;s basically a first in, first out data structure with the limitation that there&amp;rsquo;s only $n$ slots for data.&lt;/p&gt;&#xA;&lt;p&gt;It took me a while to get around to this because of having to do a bunch more elixir learning track exercises,&#xA;and also because I&amp;rsquo;ve been on holiday.&#xA;The selection of languages available for this exercise were kind of limited,&#xA;so I&amp;rsquo;ve had to branch out into using web assembly for this one.&#xA;I also did a few easier web assembly exercises to get the hang of it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Three Genuinely Different Solutions: Week 7 of 48 in 24</title>
      <link>https://www.scmb.xyz/post/week-7-exercism/</link>
      <pubDate>Mon, 11 Mar 2024 08:41:44 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/week-7-exercism/</guid>
      <description>&lt;p&gt;Week 7 sees us take on the challenge of &lt;a href=&#34;https://exercism.org/exercises/acronym&#34;&gt;turning a string into an acronym&lt;/a&gt;.&#xA;If we&amp;rsquo;re being picky, these are mostly initialisms rather than acronyms because they don&amp;rsquo;t spell a word.&#xA;And in a break with tradition, I actually took three fairly different approaches to solving this problem in the&#xA;three languages I tried.&lt;/p&gt;&#xA;&lt;p&gt;In fact, I also tried doing this exercise in PowerShell (because I had ambitions to go for the gold medal of doing Haskell, PowerShell and TCL).&#xA;I gave up because learning bash and elixir pretty much from scratch for this project is already a lot, so trying to wrap my head around PowerShell as well&#xA;very quickly became more effort than I was willing to put in.&#xA;I like the idea of PowerShell (what if a shell, but with objects) but in practice I find it kind of annoying.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Bashing my head against a wall: Week 6 of 48 in 24</title>
      <link>https://www.scmb.xyz/post/week-6-exercism/</link>
      <pubDate>Fri, 08 Mar 2024 08:31:14 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/week-6-exercism/</guid>
      <description>&lt;p&gt;This week&amp;rsquo;s&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt; challenge was &lt;a href=&#34;https://exercism.org/exercises/list-ops&#34;&gt;List Ops&lt;/a&gt;:&#xA;create methods for manipulating lists like &lt;code&gt;map&lt;/code&gt;, &lt;code&gt;filter&lt;/code&gt; and &lt;code&gt;reduce&lt;/code&gt; (well, &lt;code&gt;foldr&lt;/code&gt; and &lt;code&gt;foldl&lt;/code&gt;).&#xA;I found this exercise frustrating in different languages in different ways.&#xA;I used bash, elixir and haskell.&#xA;In elixir and haskell, the frustration was that the exercise required me to return the standard list objects.&#xA;I think it would have been more fun and more interesting to actually create a new list type and implement the methods there.&#xA;For example, do these list operations look significantly different if you have a dynamic array compared to if you have a linked list?&#xA;(For example, reversing a doubly linked list is just swapping the next and previous pointers, whereas reversing an array is going to be quite different).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Haskellbrain Harder: Week 5 of 48 in 24</title>
      <link>https://www.scmb.xyz/post/week-5-exercism/</link>
      <pubDate>Fri, 23 Feb 2024 13:58:05 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/week-5-exercism/</guid>
      <description>&lt;p&gt;Week 5 of 48 in 24!&#xA;This time around we&amp;rsquo;re doing &lt;a href=&#34;https://exercism.org/exercises/protein-translation&#34;&gt;Protein Translation&lt;/a&gt;.&#xA;Basically, take a sequence of amino acids and translate that into a list of proteins.&#xA;Each triple of amino acids &amp;ndash; a codon &amp;ndash; gets mapped to a protein.&#xA;Or rather, some codons are valid proteins, some represent a &amp;ldquo;stop&amp;rdquo; signal,&#xA;and others are garbage and should throw an error.&lt;/p&gt;&#xA;&lt;h1 id=&#34;bash&#34;&gt;Bash&lt;/h1&gt;&#xA;&lt;p&gt;The first language I thought I&amp;rsquo;d try this week is bash.&#xA;I use bash shell most days, but I very rarely do anything beyond simple commands.&#xA;(Maybe a little &lt;code&gt;grep&lt;/code&gt;, some modest piping&amp;hellip;)&#xA;It would, however, be kind of useful to know a little more about how to write simple scripts.&#xA;Often if I need to do something like that, I&amp;rsquo;d reach for python which I know better than I do bash,&#xA;but sometimes that seems like overkill.&#xA;And I did run into a situation at work recently where a little bash script was useful.&#xA;The container I was troubleshooting didn&amp;rsquo;t have python installed, indeed,&#xA;it didn&amp;rsquo;t have &lt;code&gt;lsof&lt;/code&gt; installed, but I needed a way to get an overview of what was eating all the file descriptors.&#xA;I cobbled together something where I looped over &lt;code&gt;ls /proc/[0-9]*&lt;/code&gt; and pulled out all the &lt;code&gt;cmdline&lt;/code&gt;s.&#xA;It sort of worked but it was painful and it made me realise a better handle on bash (and unix tools more generally)&#xA;would be a good investment.&#xA;So here is my prosaic, straightforward solution to the exercise in bash.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Javascript crimes: Week 4 of 48 in 24</title>
      <link>https://www.scmb.xyz/post/week-4-exercism/</link>
      <pubDate>Thu, 15 Feb 2024 09:53:54 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/week-4-exercism/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m now well over a week behind with these challenges, so it&amp;rsquo;s Thursday of week 5,&#xA;but we&amp;rsquo;re just finishing up week 4.&#xA;Part of the issue is I&amp;rsquo;m quite bust, but part of the issue is that I am trying to use&#xA;this as an opportunity to learn elixir, and I&amp;rsquo;m doing the elixir learning track.&#xA;This means that the exercises are locked until I do the relevant learning exercises&#xA;that teach the concepts.&#xA;Elixir has quite an extensive learning track, and this exercise is quite far down&#xA;the tree,&#xA;so I actually had to do quite a few learning exercises to unlock it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Haskellbrain: Week 3 of 48 in 24</title>
      <link>https://www.scmb.xyz/post/week-3-exercism/</link>
      <pubDate>Fri, 02 Feb 2024 16:34:03 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/week-3-exercism/</guid>
      <description>&lt;p&gt;Well, I&amp;rsquo;m quite late with this week&amp;rsquo;s challenges.&#xA;Again, I was only going for the silver medal of doing any three languages,&#xA;but I didn&amp;rsquo;t have a lot of time to spare for the challenges last week,&#xA;and I also spent more time than I should have tweaking my haskell solution in particular.&lt;/p&gt;&#xA;&lt;p&gt;This week&amp;rsquo;s &lt;a href=&#34;https://exercism.org/exercises/raindrops&#34;&gt;exercise&lt;/a&gt; is fizzbuzz, but slightly different.&lt;/p&gt;&#xA;&lt;h1 id=&#34;javascript&#34;&gt;JavaScript&lt;/h1&gt;&#xA;&lt;p&gt;First up, here&amp;rsquo;s my javascript solution.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-javascript&#34; data-lang=&#34;javascript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;export&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;convert&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;num&lt;/span&gt;) =&amp;gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  [[&lt;span style=&#34;color:#ae81ff&#34;&gt;3&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Pling&amp;#34;&lt;/span&gt;], [&lt;span style=&#34;color:#ae81ff&#34;&gt;5&lt;/span&gt;,&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Plang&amp;#34;&lt;/span&gt;], [&lt;span style=&#34;color:#ae81ff&#34;&gt;7&lt;/span&gt;,&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Plong&amp;#34;&lt;/span&gt;]]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      .&lt;span style=&#34;color:#a6e22e&#34;&gt;map&lt;/span&gt;(([&lt;span style=&#34;color:#a6e22e&#34;&gt;x&lt;/span&gt;,&lt;span style=&#34;color:#a6e22e&#34;&gt;y&lt;/span&gt;]) =&amp;gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;num&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;%&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;?&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;y&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      .&lt;span style=&#34;color:#a6e22e&#34;&gt;join&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;?&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;num&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;toString&lt;/span&gt;() &lt;span style=&#34;color:#f92672&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The basic idea is to take a list of pairs (a divisor and a string)&#xA;and map that pair to the string if $n$ is divisible by the divisor,&#xA;or map to the empty string otherwise.&#xA;We then join those strings together.&#xA;The final wrinkle is to check if the string we have left over is is still empty,&#xA;and if it is, return the number as a string, rather than the resultant string.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Indiana Jonesing: Week 2 of 48 in 24</title>
      <link>https://www.scmb.xyz/post/week-2-exercism/</link>
      <pubDate>Sat, 27 Jan 2024 13:48:11 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/week-2-exercism/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://exercism.org/exercises/reverse-string&#34;&gt;This week&amp;rsquo;s challenge&lt;/a&gt;&#xA;was to reverse a string.&#xA;And I took the &amp;ldquo;Indiana Jones when that guy waves the sword around and Indy just shoots him&amp;rdquo;&#xA;approach this week and got the silver medal using three languages that make this exercise a one-liner.&lt;/p&gt;&#xA;&lt;h1 id=&#34;clojure&#34;&gt;Clojure&lt;/h1&gt;&#xA;&lt;p&gt;First up, Clojure:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-clojure&#34; data-lang=&#34;clojure&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;(&lt;span style=&#34;color:#66d9ef&#34;&gt;ns &lt;/span&gt;reverse-string)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;(&lt;span style=&#34;color:#66d9ef&#34;&gt;defn &lt;/span&gt;reverse-string [s] &lt;span style=&#34;color:#75715e&#34;&gt;;; &amp;lt;- arglist goes here&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;clojure.string/reverse&lt;/span&gt; s)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h1 id=&#34;haskell&#34;&gt;Haskell&lt;/h1&gt;&#xA;&lt;p&gt;Next Haskell:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-haskell&#34; data-lang=&#34;haskell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;module&lt;/span&gt; ReverseString (&lt;span style=&#34;color:#a6e22e&#34;&gt;reverseString&lt;/span&gt;) &lt;span style=&#34;color:#66d9ef&#34;&gt;where&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;reverseString&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;::&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;String&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;String&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;reverseString&lt;/span&gt; str &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; reverse str&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h1 id=&#34;javascript&#34;&gt;JavaScript&lt;/h1&gt;&#xA;&lt;p&gt;And finally, Javascript.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Starting off easy: Week 1 of 48 in 24</title>
      <link>https://www.scmb.xyz/post/week-1-exercism/</link>
      <pubDate>Tue, 23 Jan 2024 21:19:25 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/week-1-exercism/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://www.exercism.org&#34;&gt;Exercism&lt;/a&gt; &amp;ndash; one of my favourite &amp;ldquo;learn to code&amp;rdquo; websites &amp;ndash;&#xA;is doing a thing where each week (ish?) there is a new challenge to solve a coding exercise in several languages.&#xA;It&amp;rsquo;s called &amp;ldquo;&lt;a href=&#34;https://exercism.org/challenges/48in24&#34;&gt;48 in 24&lt;/a&gt;&amp;rdquo;.&#xA;It looks like you get a bronze medal if you solve the coding exercise in some language,&#xA;a silver medal if you solve it in three specific languages,&#xA;and a gold medal if you solve it in any three languages in 2024.&#xA;We&amp;rsquo;ll see how long this lasts, but I&amp;rsquo;m going to try to blog about my attempts to solve the exercise.&#xA;To be clear, these are my attempts to solve the exercise, likely often in languages I&amp;rsquo;m not that familiar&#xA;with, so the solutions might not be optimal or idiomatic.&#xA;I&amp;rsquo;m also not going to explain every key word and language construct I use,&#xA;I&amp;rsquo;ll only explain those things that I think you might not be able to guess by looking at the code.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How Errors Compound</title>
      <link>https://www.scmb.xyz/post/how-errors-compound/</link>
      <pubDate>Tue, 26 Sep 2023 16:54:23 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/how-errors-compound/</guid>
      <description>&lt;p&gt;I was messing around with a project recently,&#xA;and I thought everything was going swimmingly.&#xA;My unit tests were passing,&#xA;the output to stdin looked like I&amp;rsquo;d expect.&#xA;And then I made one small change,&#xA;and instead of the binary number I was expecting,&#xA;I saw:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;1010101001001020&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&amp;ldquo;Ones and zeroes everywhere. And I think I saw a two!&amp;rdquo;;&#xA;&amp;ldquo;It was just a dream, Bender.&#xA;There&amp;rsquo;s no such thing as a two.&amp;rdquo;&#xA;I added a bunch more unit tests but they didn&amp;rsquo;t seem to be finding the two.&#xA;It took me quite a while to figure out what the problem&#xA;was because there were in fact two problems:&#xA;one with the function code,&#xA;and one with the tests.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Quit Lit</title>
      <link>https://www.scmb.xyz/post/quit-lit/</link>
      <pubDate>Thu, 21 Sep 2023 21:34:34 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/quit-lit/</guid>
      <description>&lt;p&gt;As twitter&amp;hellip; I don&amp;rsquo;t even know what metaphor to reach for to describe what is happening to twitter,&#xA;but all I know is that we will be calling it &amp;ldquo;doing a twitter&amp;rdquo; from now on.&#xA;Anyway, as twitter does a twitter,&#xA;I&amp;rsquo;ve seen people talk about several tools for archiving your social media output.&#xA;This has always sort of puzzled me.&#xA;I kind of don&amp;rsquo;t mind if social media is ephemeral, impermanent.&#xA;I know this has a lot to do with how I use it,&#xA;but for me, I don&amp;rsquo;t think I&amp;rsquo;d mind if all the nonsense I wrote on twitter just stopped being accessible.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Why Paw Patrol is just the worst</title>
      <link>https://www.scmb.xyz/post/paw-patrol-worst/</link>
      <pubDate>Mon, 10 Jul 2023 09:21:21 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/paw-patrol-worst/</guid>
      <description>&lt;p&gt;I am a dad, and as a dad I watch a lot of kids TV.&#xA;Some shows I think are actually pretty great (Hey Duggee, Bluey),&#xA;and some shows are fine, not my thing, but inoffensive (Fireman Sam, Chuggington, Octonauts).&#xA;There is, however, one show that I just really hate.&#xA;Paw Patrol.&#xA;It&amp;rsquo;s bad.&lt;/p&gt;&#xA;&lt;h1 id=&#34;caveats&#34;&gt;Caveats&lt;/h1&gt;&#xA;&lt;p&gt;Before we dive into all the reasons Paw Patrol is the worst,&#xA;I want to lay out a few caveats.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Do Submarines Swim?</title>
      <link>https://www.scmb.xyz/post/do-submarines-swim/</link>
      <pubDate>Mon, 27 Mar 2023 16:11:12 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/do-submarines-swim/</guid>
      <description>&lt;p&gt;By now I&amp;rsquo;m sure everyone has seen enthusiastic AI boosters being completely wowed by ChatGPT and other&#xA;Large Language Models (LLM) and also AI detractors pointing out the flaws of these models.&#xA;For example, here&amp;rsquo;s a &lt;a href=&#34;https://github.com/giuven95/chatgpt-failures&#34;&gt;big compilation of such LLM failures&lt;/a&gt;.&#xA;I think I&amp;rsquo;m probably more on the critical side, but I think a lot of the criticisms fall flat.&#xA;Or better, the examples are failures, but the conclusions people draw on the basis of those failures&#xA;are flawed.&#xA;(I&amp;rsquo;m going to us &amp;ldquo;AIs&amp;rdquo; and &amp;ldquo;LLMs&amp;rdquo;  interchangeably,&#xA;because pretty much all the examples I have in mind are LLMs).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Python&#39;s Counter</title>
      <link>https://www.scmb.xyz/post/pythons-counter/</link>
      <pubDate>Fri, 27 Jan 2023 01:11:54 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/pythons-counter/</guid>
      <description>&lt;h1 id=&#34;the-problem&#34;&gt;The problem&lt;/h1&gt;&#xA;&lt;p&gt;Python has a &lt;code&gt;Counter&lt;/code&gt; object &amp;ndash; it&amp;rsquo;s found in&#xA;&lt;a href=&#34;https://docs.python.org/3/library/collections.html&#34;&gt;the &lt;code&gt;collections&lt;/code&gt; module&lt;/a&gt; &amp;ndash;&#xA;and I&amp;rsquo;ve become convinced that it&amp;rsquo;s&amp;hellip; a bit weird?&#xA;The basic idea is fine:&#xA;it&amp;rsquo;s a dictionary but the keys are things you want to count, and the values are the amount of&#xA;the thing you have counted.&#xA;The neat thing is if you initialise a counter with an iterable like a string or a list,&#xA;it&amp;rsquo;ll give you the counts for the number of times each element appears.&#xA;And it gives you convenience methods for finding the most common elements and that sort of thing.&#xA;It&amp;rsquo;s pretty neat and I&amp;rsquo;ve used it a few times.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Subclass Like a Boss</title>
      <link>https://www.scmb.xyz/post/subclass-like-a-boss/</link>
      <pubDate>Fri, 13 Jan 2023 13:49:26 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/subclass-like-a-boss/</guid>
      <description>&lt;p&gt;I had this idea for a project I could do,&#xA;but I thought &amp;ldquo;maybe I should do this other thing first to get to grips with&#xA;the API&amp;rdquo;.&#xA;I was doing something for that project, and got distracted doing a simpler project&#xA;to learn about the technologies and tools involved.&#xA;I got distracted from &lt;em&gt;that&lt;/em&gt; project by some weird behaviour of a class&#xA;in the python standard library (I&amp;rsquo;ll post about that later).&#xA;And I got distracted from &lt;em&gt;that&lt;/em&gt; distraction by trying to find&#xA;convenient ways to explore the code of python objects so as to&#xA;make subclassing them easier.&#xA;And this post is about this distraction to a distraction to a distraction.&#xA;With any luck, I will eventually post about all of these things, but I&amp;rsquo;m not naming&#xA;them in case I never get around to doing them.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Miscellaneous Python Bits</title>
      <link>https://www.scmb.xyz/post/miscellaneous-python-bits/</link>
      <pubDate>Sat, 07 Jan 2023 11:53:25 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/miscellaneous-python-bits/</guid>
      <description>&lt;p&gt;In a &lt;a href=&#34;https://www.scmb.xyz/post/rock-paper-scissors-with-matrices/&#34;&gt;previous post&lt;/a&gt; I said I would come back&#xA;to explain a few somewhat opaque lines in my&#xA;&lt;a href=&#34;https://codeberg.org/scmbradley/AdventOfCode/src/branch/main/2022/aoc-2022-02-matrix.py&#34;&gt;matrix-based solution to Advent of Code 2022, day 2&lt;/a&gt;.&#xA;This is what I&amp;rsquo;m going to do here.&lt;/p&gt;&#xA;&lt;p&gt;There&amp;rsquo;s three smallish things I thought it was worth pointing out.&#xA;None is going to surprise veteran python coders, but they might be of interest to some.&lt;/p&gt;&#xA;&lt;h1 id=&#34;building-matrices&#34;&gt;Building matrices&lt;/h1&gt;&#xA;&lt;p&gt;So the first line I want to look at is:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Rock Paper Scissors With Matrices</title>
      <link>https://www.scmb.xyz/post/rock-paper-scissors-with-matrices/</link>
      <pubDate>Thu, 29 Dec 2022 15:06:59 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/rock-paper-scissors-with-matrices/</guid>
      <description>&lt;p&gt;I had a go at the first couple of weeks of problems from &lt;a href=&#34;https://adventofcode.com/2022&#34;&gt;Advent of Code&lt;/a&gt; this year.&#xA;I&amp;rsquo;ve posted my answers &lt;a href=&#34;https://codeberg.org/scmbradley/AdventOfCode&#34;&gt;over here&lt;/a&gt;.&#xA;I stopped after day 13 because the problems were getting harder but the time I had to devote to them could not increase.&#xA;I hope to come back to them at some point.&lt;/p&gt;&#xA;&lt;p&gt;But today I wanted to point out something interesting about&#xA;the day 2 puzzle.&#xA;Spoilers ahoy for day 2 of Advent of Code 2022.&#xA;This post is mainly an excuse to test MathJaX on the blog.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Randomness Factory</title>
      <link>https://www.scmb.xyz/post/randomness-factory/</link>
      <pubDate>Thu, 15 Dec 2022 08:51:20 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/randomness-factory/</guid>
      <description>&lt;p&gt;As part of a job application process I was asked to write a short&#xA;explainer article on something technical, and I decided to write&#xA;a little bit about how testing for randomness works.&#xA;The brief was to write something playful and friendly,&#xA;hence the weird framing of this piece.&#xA;I didn&amp;rsquo;t get the job, but I did learn a bit about randomness&#xA;Since I&amp;rsquo;ve written the damn thing, I thought I&amp;rsquo;d share it,&#xA;and &lt;a href=&#34;https://rngday.com/&#34;&gt;International RNG Day&lt;/a&gt;&#xA;seems like the perfect opportunity to do so!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Learn to Code</title>
      <link>https://www.scmb.xyz/post/learn-to-code/</link>
      <pubDate>Wed, 02 Nov 2022 20:28:01 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/learn-to-code/</guid>
      <description>&lt;p&gt;Over the past couple of years I&amp;rsquo;ve taught myself programming and data science.&#xA;I&amp;rsquo;d been at a big computer nerd and at least programming-nerd-adjacent for a long time&#xA;(linux user since 2005, emacs users since 2011)&#xA;but in 2020 I made a conscious decision to pursue learning to code&#xA;as part of a plan to find an alternative career.&#xA;Over the past couple of years I&amp;rsquo;ve tried out quite a few different resources for learning programming&#xA;and data science.&#xA;Here are some highlights.&#xA;Note, these are resources I&amp;rsquo;ve used, and not a suggested curriculum:&#xA;play around and find the tools that work for you.&#xA;Pretty much all the resources listed here are free.&#xA;Most of them have been explored by yours truly,&#xA;some have been recommended by people I trust.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Riffle Shuffle Efficiency</title>
      <link>https://www.scmb.xyz/post/riffle-shuffle-efficiency/</link>
      <pubDate>Sun, 18 Sep 2022 10:19:58 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/riffle-shuffle-efficiency/</guid>
      <description>&lt;p&gt;Let&amp;rsquo;s say you have a list, and you want to &amp;ldquo;interleave&amp;rdquo; or &amp;ldquo;riffle shuffle&amp;rdquo; the items in it.&#xA;That is, you want to split the list in two, and then make a new list, alternating items from the first and second halves.&#xA;In Python, there are a &lt;a href=&#34;https://stackoverflow.com/q/19898138/219352&#34;&gt;number of ways of doing this&lt;/a&gt;.&#xA;Now we are left with the problem of which of these ways should we actually implement?&#xA;One key factor in making this decision is performance:&#xA;how well do the various methods actually perform.&#xA;I decided to run a little experiment.&lt;/p&gt;</description>
    </item>
    <item>
      <title>DIY Password Manager</title>
      <link>https://www.scmb.xyz/post/diy-password-manager/</link>
      <pubDate>Sun, 14 Aug 2022 00:00:00 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/diy-password-manager/</guid>
      <description>&lt;p&gt;The problem of coming up with a good password is finding something memorable enough&#xA;that you will remember it, but not so obvious that it&amp;rsquo;s guessable.&#xA;A password manager essentially makes sure that your passwords are not guessable,&#xA;but it also makes them impossible for you to remember them,&#xA;so you have to outsource remembering your passwords to&#xA;a database on your computer or in the cloud (i.e. on someone else&amp;rsquo;s computer).&#xA;That&amp;rsquo;s not a great solution for a number of reasons,&#xA;primarily, you can&amp;rsquo;t leave your password manager unsecured,&#xA;so you still need one memorable but hard-to-guess password,&#xA;and that password manager is now a single point of failure.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How Predictable Is Football?</title>
      <link>https://www.scmb.xyz/post/how-predictable-is-football/</link>
      <pubDate>Mon, 18 Apr 2022 10:47:59 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/how-predictable-is-football/</guid>
      <description>&lt;p&gt;A question that has been rattling around my brain for a while now is this:&#xA;how useful is &amp;ldquo;form&amp;rdquo; in predicting the outcome of football matches?&#xA;That is, how useful is it to know that a team&amp;rsquo;s record in their last 5 matches is WWLDD, for example?&#xA;So I thought I&amp;rsquo;d explore this as a way to learn a bit more about Python&amp;rsquo;s statistics and data science libraries.&#xA;The code used to do this analysis and generate these graphs is available&#xA;&lt;a href=&#34;https://github.com/scmbradley/football-stats/releases/tag/v1&#34;&gt;on github&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Wordle Solvers</title>
      <link>https://www.scmb.xyz/post/wordle-solvers/</link>
      <pubDate>Mon, 31 Jan 2022 15:55:53 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/wordle-solvers/</guid>
      <description>&lt;p&gt;Following on from a &lt;a href=&#34;../wordle-counts/&#34;&gt;previous post&lt;/a&gt;,&#xA;I wanted to explore what effect various kinds of strategies for solving&#xA;Wordle have on how quickly you solve it.&lt;/p&gt;&#xA;&lt;p&gt;So I implemented Wordle in python,&#xA;and then spent a while trying to find a good word list&#xA;to use as a basis.&#xA;Now, I know that you can inspect the Wordle page itself and find the list of&#xA;words it uses for validating real words and the list of wordle answers,&#xA;but I don&amp;rsquo;t want to use that list, so I made my own.&#xA;I&amp;rsquo;ve put the code up at &lt;a href=&#34;https://github.com/scmbradley/wordle-cli&#34;&gt;github&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Wordle Letter Counts</title>
      <link>https://www.scmb.xyz/post/wordle-counts/</link>
      <pubDate>Wed, 05 Jan 2022 14:32:17 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/wordle-counts/</guid>
      <description>&lt;p&gt;In response to some discussion&#xA;&lt;a href=&#34;https://twitter.com/EtheHerring/status/1478702040008339458&#34;&gt;on twitter&lt;/a&gt;,&#xA;I dug into how common different letters are at different positions in a word.&#xA;Since the discussion was prompted by the popular word game&#xA;&lt;a href=&#34;https://www.powerlanguage.co.uk/wordle/&#34;&gt;Wordle&lt;/a&gt;&#xA;the focus was on five letter words.&lt;/p&gt;&#xA;&lt;p&gt;My approach was to download a word list from the first google hit for&#xA;&lt;code&gt;word list download&lt;/code&gt;, and then throw python&amp;rsquo;s &lt;code&gt;Counter&lt;/code&gt; module at it.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;from&lt;/span&gt; collections &lt;span style=&#34;color:#f92672&#34;&gt;import&lt;/span&gt; Counter&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Download a wordlist such as the one available here:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# https://github.com/dwyl/english-words&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;with&lt;/span&gt; open(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;../resources/words/words_alpha.txt&amp;#34;&lt;/span&gt;) &lt;span style=&#34;color:#66d9ef&#34;&gt;as&lt;/span&gt; d:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    wl &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [x&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;strip() &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; x &lt;span style=&#34;color:#f92672&#34;&gt;in&lt;/span&gt; d&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;readlines()]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;firsts &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [x[&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;] &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; x &lt;span style=&#34;color:#f92672&#34;&gt;in&lt;/span&gt; wl]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;fives &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [x &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; x &lt;span style=&#34;color:#f92672&#34;&gt;in&lt;/span&gt; wl &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; len(x) &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;5&lt;/span&gt;]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;def&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;top_letters&lt;/span&gt;(ctr, n&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;10&lt;/span&gt;):&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;,&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;join([x[&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;upper() &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; x &lt;span style=&#34;color:#f92672&#34;&gt;in&lt;/span&gt; ctr&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;most_common(n)])&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;For all words in the list&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Most common first letters&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(top_letters(Counter(firsts)))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Most common all positions&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(top_letters(Counter(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;join(wl))))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;\n&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;For five letter words:&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Top letters any position&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(top_letters(Counter(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;join(fives))))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; i &lt;span style=&#34;color:#f92672&#34;&gt;in&lt;/span&gt; range(&lt;span style=&#34;color:#ae81ff&#34;&gt;5&lt;/span&gt;):&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    print(&lt;span style=&#34;color:#e6db74&#34;&gt;f&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Top letters in position &lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;{&lt;/span&gt;i&lt;span style=&#34;color:#e6db74&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    letters &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [x[i] &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; x &lt;span style=&#34;color:#f92672&#34;&gt;in&lt;/span&gt; fives]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    print(top_letters(Counter(letters)))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And here&amp;rsquo;s the result:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Introducing: Totally Exchangeable Tokens</title>
      <link>https://www.scmb.xyz/post/totally-exchangeable-token/</link>
      <pubDate>Sun, 07 Nov 2021 12:46:47 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/totally-exchangeable-token/</guid>
      <description>&lt;p&gt;NFTs are all the rage these days, but I&amp;rsquo;m here to tell you about the next big thing.&#xA;But first, let&amp;rsquo;s talk about what&amp;rsquo;s wrong with NFTs.&lt;/p&gt;&#xA;&lt;p&gt;NFTs &amp;ndash; Non-Fungible Tokens &amp;ndash; give you a way to secure ownership over a hyperlink to an image.&#xA;That ownership is secured by its being stored in a ledger,&#xA;and that ledger is decentralised and cryptographically secure.&#xA;Now, that&amp;rsquo;s a really exciting prospect, but there are problems.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Emacs smart-mode-Line and whitelisting wc-mode</title>
      <link>https://www.scmb.xyz/post/smart-mode-line-wc-mode/</link>
      <pubDate>Sat, 08 May 2021 20:41:20 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/smart-mode-line-wc-mode/</guid>
      <description>&lt;p&gt;There&amp;rsquo;s a lot of stuff in the default emacs modeline,&#xA;particularly once you start adding a bunch of useful minor modes like&#xA;&lt;code&gt;show-paren-mode&lt;/code&gt;, &lt;code&gt;smartparens-mode&lt;/code&gt;, &lt;code&gt;aggressive-indent-mode&lt;/code&gt;, &lt;code&gt;which-key&lt;/code&gt;, &lt;code&gt;helm&lt;/code&gt;, &lt;code&gt;company-mode&lt;/code&gt; etc etc&amp;hellip;&#xA;I honestly don&amp;rsquo;t find it useful to have access to all that information in the modeline,&#xA;(if I need to know what&amp;rsquo;s active, I can just run &lt;code&gt;C-h m&lt;/code&gt;).&#xA;There&amp;rsquo;s a couple of packages specifically designed to shrink or remove minor mode indicators&#xA;from your mode line (&lt;code&gt;diminish&lt;/code&gt;, &lt;code&gt;delight&lt;/code&gt;&amp;hellip;) but I don&amp;rsquo;t really want to have to&#xA;explicitly set an option for each minor mode.&#xA;I don&amp;rsquo;t want any of them to show up!&#xA;Or almost any of them, at least.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Taskwarrior i3blocks</title>
      <link>https://www.scmb.xyz/post/taskw-i3blocks/</link>
      <pubDate>Sun, 25 Apr 2021 00:00:00 +0000</pubDate>
      <guid>https://www.scmb.xyz/post/taskw-i3blocks/</guid>
      <description>&lt;p&gt;Here&amp;rsquo;s a niche little script I wrote.&#xA;Are you in the intersection of the Venn diagram of people&#xA;who use &lt;a href=&#34;https://i3wm.org/&#34;&gt;&lt;code&gt;i3&lt;/code&gt; window manager&lt;/a&gt; (or something similar such as&#xA;&lt;a href=&#34;https://regolith-linux.org/&#34;&gt;&lt;code&gt;regolith&lt;/code&gt;&lt;/a&gt;)&#xA;and people who use the &lt;a href=&#34;https://taskwarrior.org/&#34;&gt;TaskWarrior&lt;/a&gt; to do list app?&#xA;If so, you might be interested in &lt;a href=&#34;https://github.com/scmbradley/taskw-i3blocks&#34;&gt;this script&lt;/a&gt; that puts&#xA;the description of currently active tasks in your i3bar.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve submitted a pull request to &lt;a href=&#34;https://github.com/vivien/i3blocks-contrib&#34;&gt;i3blocks-contrib&lt;/a&gt;,&#xA;but there are a lot of PRs pending, so I don&amp;rsquo;t know how active the repo is.&#xA;For now, anyway, the script is available on its own repository.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A linker script for keeping configuration files synced</title>
      <link>https://www.scmb.xyz/post/linkerpy/</link>
      <pubDate>Sat, 03 Apr 2021 22:02:15 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/linkerpy/</guid>
      <description>&lt;p&gt;This post is mainly to test hugo&amp;rsquo;s code formatting capacities.&#xA;I have two machines &amp;ndash; a desktop PC and a laptop &amp;ndash;&#xA;that I like to keep in sync.&#xA;I do this by keeping a &lt;code&gt;git&lt;/code&gt; repo of my various configuration files&#xA;called &lt;code&gt;dotfiles&lt;/code&gt;&#xA;which is backed up to a web server.&#xA;Then, I just make symbolic links from all the places&#xA;my programs are looking for their configs to the config files in the repo.&#xA;So I push to that when I make changes, and fetch changes from the server&#xA;when I need to propagate them to the other machine.&lt;/p&gt;</description>
    </item>
    <item>
      <title>We bought a domain name</title>
      <link>https://www.scmb.xyz/post/first/</link>
      <pubDate>Sat, 03 Apr 2021 22:00:52 +0100</pubDate>
      <guid>https://www.scmb.xyz/post/first/</guid>
      <description>&lt;p&gt;OK, I bought &lt;a href=&#34;http://www.scmb.xyz&#34;&gt;scmb.xyz&lt;/a&gt;. Now what?&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
