<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.4">Jekyll</generator><link href="http://localhost:4000/rss.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2024-12-31T14:28:34+00:00</updated><id>http://localhost:4000/rss.xml</id><title type="html">dwlt.thinksOutLoud</title><subtitle>David Thomson&apos;s blog. There’s no particular topic for this blog, other than what’s on my mind. Copyright © 1976-2024.</subtitle><author><name>David Thomson</name><email>dwlt@dwlt.net</email></author><entry><title type="html">Automated Jekyll Deployment Using GitHub Actions</title><link href="http://localhost:4000/blog/2024/12/29/automated-jekyll-deployment-using-github-actions/" rel="alternate" type="text/html" title="Automated Jekyll Deployment Using GitHub Actions" /><published>2024-12-29T00:00:00+00:00</published><updated>2024-12-29T00:00:00+00:00</updated><id>http://localhost:4000/blog/2024/12/29/automated-jekyll-deployment-using-github-actions</id><content type="html" xml:base="http://localhost:4000/blog/2024/12/29/automated-jekyll-deployment-using-github-actions/"><![CDATA[<p>I’ve not written here much over the last decade or so (2 posts since 16 December 2014, in fact!), but I want to at least give myself a <em>chance</em> of writing more, so I started thinking about what make that happen. I switched this blog over to <a href="https://jekyllrb.com">Jekyll</a> in about 2011 I think, but all deployments were still very much manual.</p>

<p>In some ways, I miss the original way I built this blog, on <a href="https://movabletype.org">Movable Type</a> (one day I will bring over all that content) - I could edit easily on my phone (even in 2004), I could use desktop writing apps like <a href="https://red-sweater.com/marsedit">MarsEdit</a>, and the eventual output was static (good for performance reasons).</p>

<p>Anyway, I decided it would make sense to figure out how to deploy the Jekyll output directly to my server. After a bit of back and forth (mostly pinning versions), and using <a href="https://mikeconroy.com/2020/04/automating-jekyll-deployments-github-actions/">Automating Jekyll Deployments with GitHub Actions</a> as a starting point, I now have it working, woo. Below is my workflow file for reference, but the main changes to the article from 2020 were:</p>

<ul>
  <li>Switch to use <code class="language-plaintext highlighter-rouge">ruby/setup-ruby@v1</code> (instead of <code class="language-plaintext highlighter-rouge">actions/setup-ruby@v1</code>)</li>
  <li>Pin a more recent Ruby version for the latest version of Jekyll</li>
  <li>Use sftp to copy files over to the server (all variables are held in GitHub’s secrets)</li>
</ul>

<figure class="highlight"><pre><code class="language-yaml" data-lang="yaml"><span class="na">name</span><span class="pi">:</span> <span class="s">Build &amp; Deploy</span>

<span class="na">on</span><span class="pi">:</span>
  <span class="na">push</span><span class="pi">:</span>
    <span class="na">branches</span><span class="pi">:</span> <span class="pi">[</span> <span class="nv">main</span> <span class="pi">]</span>

<span class="na">jobs</span><span class="pi">:</span>
  <span class="na">build</span><span class="pi">:</span>
    <span class="na">runs-on</span><span class="pi">:</span> <span class="s">ubuntu-latest</span>

    <span class="na">steps</span><span class="pi">:</span>
    <span class="pi">-</span> <span class="na">uses</span><span class="pi">:</span> <span class="s">actions/checkout@v4</span>
    <span class="pi">-</span> <span class="na">uses</span><span class="pi">:</span> <span class="s">ruby/setup-ruby@v1</span>
      <span class="na">with</span><span class="pi">:</span>
        <span class="na">ruby-version</span><span class="pi">:</span> <span class="s1">'</span><span class="s">3.3'</span>
        <span class="na">bundler-cache</span><span class="pi">:</span> <span class="kc">true</span>

    <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Setup Environment.</span>
      <span class="na">run</span><span class="pi">:</span> <span class="pi">|</span>
        <span class="s">gem install jekyll bundler</span>
        <span class="s">bundle install</span>
        
    <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Build Site with Jekyll.</span>
      <span class="na">run</span><span class="pi">:</span> <span class="s">JEKYLL_ENV=production bundle exec jekyll build</span>
    
    <span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Upload site.</span>
      <span class="na">uses</span><span class="pi">:</span> <span class="s">wearesection/sftp-remote@1.0.1</span>
      <span class="na">with</span><span class="pi">:</span> 
        <span class="na">host</span><span class="pi">:</span> <span class="s">${{ secrets.sftp_host }}</span>
        <span class="na">passphrase</span><span class="pi">:</span> <span class="s">${{ secrets.sftp_password }}</span>
        <span class="na">privateKey</span><span class="pi">:</span> <span class="s">${{ secrets.sftp_key }}</span>
        <span class="na">localPath</span><span class="pi">:</span> <span class="s">_site</span>
        <span class="na">remotePath</span><span class="pi">:</span> <span class="s">${{ secrets.sftp_path }}</span> </code></pre></figure>

<p><code class="language-plaintext highlighter-rouge">_site</code> is of course just the default target directory used by the Jekyll build process, so you’d need to change that if you have it set up to output somewhere else.</p>

<p>Anyway, hopefully this post is useful for someone else in future - worst case, it will act as external memory for me when I want to repeat this process for another site.</p>]]></content><author><name>David Thomson</name><email>dwlt@dwlt.net</email></author><category term="Meta" /><category term="Tech" /><summary type="html"><![CDATA[I’ve not written here much over the last decade or so (2 posts since 16 December 2014, in fact!), but I want to at least give myself a chance of writing more, so I started thinking about what make that happen. I switched this blog over to Jekyll in about 2011 I think, but all deployments were still very much manual.]]></summary></entry><entry><title type="html">Why Is Search So Bad?</title><link href="http://localhost:4000/blog/2023/07/16/searching-is-broken/" rel="alternate" type="text/html" title="Why Is Search So Bad?" /><published>2023-07-16T00:00:00+01:00</published><updated>2023-07-16T00:00:00+01:00</updated><id>http://localhost:4000/blog/2023/07/16/searching-is-broken</id><content type="html" xml:base="http://localhost:4000/blog/2023/07/16/searching-is-broken/"><![CDATA[<p>Search experience is generally terrible. I’m not talking about Google or general web search (although that also, is terrible), I’m talking about site- or app-specific “context aware” searching. Some recent examples that tipped me over the edge:</p>

<ul>
  <li>JIRA: project quick select doesn’t show you anything if you type the actual JIRA key (e.g., <code class="language-plaintext highlighter-rouge">XYZS</code> with a project name of <code class="language-plaintext highlighter-rouge">XYZ Something</code>)</li>
  <li>Slack: trying to find channel <code class="language-plaintext highlighter-rouge">xyz</code>, it shows me everything that has <code class="language-plaintext highlighter-rouge">xyz</code> as a prefix but not the actual channel with that name, so it can’t be selected (not helpful for channel discovery)</li>
  <li>WTA Tennis: “No such player as Vondrousava” (I was trying to find Vondrousova, of course - surely a low score using <a href="https://en.wikipedia.org/wiki/Levenshtein_distance">Levenshtein distance</a>?)</li>
</ul>

<p>I also recall that when building <a href="https://birthdayfy.com">Birthdayfy</a> that there was an issue with Spotify returning the wrong track when searching for True Blue by Madonna - it kept returning Papa Don’t Preach, since that was the most played song on the True Blue album, even though I was specifying the song title. I mean, really?</p>

<p>I remember way back when (early 2000s) when I was building a mobile phone game store, I read an article about making search helpful, rather than literal. That article is lost to the mists of time, most likely (I certainly don’t remember where I read it) but it had ideas like just taking the user to the item if the search term had an exact match.</p>

<p>I appreciate it’s not cheap to invest in search, and that how you measure return on that investmemt is not always obvious, but if your site or app offers search capability (and the ‘s’ in Slack is supposed to stand for ‘search’ after all) then I’d say it’s worth giving some attention to.</p>]]></content><author><name>David Thomson</name><email>dwlt@dwlt.net</email></author><summary type="html"><![CDATA[Search experience is generally terrible. I’m not talking about Google or general web search (although that also, is terrible), I’m talking about site- or app-specific “context aware” searching. Some recent examples that tipped me over the edge:]]></summary></entry><entry><title type="html">Operating Requirements</title><link href="http://localhost:4000/blog/2023/06/17/operating-requirements/" rel="alternate" type="text/html" title="Operating Requirements" /><published>2023-06-17T00:00:00+01:00</published><updated>2023-06-17T00:00:00+01:00</updated><id>http://localhost:4000/blog/2023/06/17/operating-requirements</id><content type="html" xml:base="http://localhost:4000/blog/2023/06/17/operating-requirements/"><![CDATA[<p>One thing I’ve noticed over the last few years working in software development is that I really do not like the phrase “non-functional requirements”, which seem to often be called out separately from “functional” requirements.</p>

<p>To me, the phrase gives out the wrong vibes:</p>

<ul>
  <li>It’s pretty straightforward to make something non-functional</li>
  <li>Usually, the focus is only on page load times, which is certainly part of the process but there need to be other considerations</li>
  <li>There’s often an implication that they are somehow not core to the product or experience; that they are somehow nice to have, and liable to be the first thing cut from scope</li>
</ul>

<p>I generally much prefer the idea of “Operating Requirements” - these might be parameter-based, regulatory, or documentary, but they are clearly a key part of the requirements.</p>

<ul>
  <li>Performance with specific bounds and expectations - a single breach of a p90 target might not result in a critical incident, but consistent breaching of the p90 target would</li>
  <li>Accessibility - clearly this could be driven by legislation as well as just general usability</li>
  <li>Regulatory - any other legislation or regulatory conditions that must be met</li>
  <li>Support - any tools that might be used to support the feature or capability (e.g., manual cache invalidation)</li>
  <li>Documentation, especially for a new capability, whether that’s customer facing docs, internal customer support documentation, a playbook for how the new capability works, and so on</li>
</ul>

<p>In fact, I wonder if it’s just the fact these are treated separately at all, rather than as part of a cohesive and complete set of requirements, that I find frustrating.</p>]]></content><author><name>David Thomson</name><email>dwlt@dwlt.net</email></author><summary type="html"><![CDATA[One thing I’ve noticed over the last few years working in software development is that I really do not like the phrase “non-functional requirements”, which seem to often be called out separately from “functional” requirements.]]></summary></entry><entry><title type="html">On Time</title><link href="http://localhost:4000/blog/2014/12/16/on-time/" rel="alternate" type="text/html" title="On Time" /><published>2014-12-16T00:00:00+00:00</published><updated>2014-12-16T00:00:00+00:00</updated><id>http://localhost:4000/blog/2014/12/16/on-time</id><content type="html" xml:base="http://localhost:4000/blog/2014/12/16/on-time/"><![CDATA[<p><a href="http://contentsmagazine.com/articles/10-timeframes/">10 Timeframes</a></p>

<blockquote>
  <p>If we are going to ask people, in the form of our products, in the form of the things we make, to spend their heartbeats—if we are going to ask them to spend their heartbeats on us, on our ideas, how can we be sure, far more sure than we are now, that they spend those heartbeats wisely?</p>
</blockquote>

<p><a href="http://www.theguardian.com/media/2009/mar/28/david-simon-the-wire-interview">Arrogant? Moi?</a></p>

<blockquote>
  <p>What would feel arrogant to me would be asking you to spend 10 or 12 hours of your time a year watching my shit, and delivering something where we didn’t hold that time precious.</p>
</blockquote>]]></content><author><name>David Thomson</name><email>dwlt@dwlt.net</email></author><summary type="html"><![CDATA[10 Timeframes]]></summary></entry><entry><title type="html">Genre Lineage</title><link href="http://localhost:4000/blog/2014/12/11/genre-lineage/" rel="alternate" type="text/html" title="Genre Lineage" /><published>2014-12-11T00:00:00+00:00</published><updated>2014-12-11T00:00:00+00:00</updated><id>http://localhost:4000/blog/2014/12/11/genre-lineage</id><content type="html" xml:base="http://localhost:4000/blog/2014/12/11/genre-lineage/"><![CDATA[<p>Matsuo Bashō:</p>

<blockquote>
  <p>“Don’t follow in the footsteps of the ancient masters; seek what they sought.”</p>
</blockquote>

<p>In my <a href="/blog/2014/12/03/nostalgia-is-underrated/">previous post</a>, I made reference to films “quoting” other films, which made me think of some advice I’ve heard given to musicians several times: find out who your influences listened to; who influenced them? And then find out who influenced those influencers, tracing the lineage of your music.</p>

<p>The same should be true for game makers - what games influence you? Who made them? Who and what influenced those makers? What were they trying to achieve?</p>

<p>Doing so can be a vital way of understanding your genre, what you’re building on, what’s come before, and what you can make of it now: your own thing, with reference to what’s gone before.</p>]]></content><author><name>David Thomson</name><email>dwlt@dwlt.net</email></author><summary type="html"><![CDATA[Matsuo Bashō:]]></summary></entry><entry><title type="html">Nostalgia is Underrated</title><link href="http://localhost:4000/blog/2014/12/03/nostalgia-is-underrated/" rel="alternate" type="text/html" title="Nostalgia is Underrated" /><published>2014-12-03T00:00:00+00:00</published><updated>2014-12-03T00:00:00+00:00</updated><id>http://localhost:4000/blog/2014/12/03/nostalgia-is-underrated</id><content type="html" xml:base="http://localhost:4000/blog/2014/12/03/nostalgia-is-underrated/"><![CDATA[<p>A comment I’ve often seen or heard from “gamers of a certain vintage” is something along the lines of “<em>when I go back to the games of my youth, I’m always disappointed. Some things are best left with positive memories.</em>”</p>

<p>I certainly understand and have experienced that sentiment, but I also think it’s missing the point.</p>

<p>Watching the recent documentary on Jim Marshall and the invention of the iconic amp (<a href="http://www.bbc.co.uk/iplayer/episode/b04c3l7j/play-it-loud-the-story-of-the-marshall-amp"><em>Play It Loud</em></a>), Pete Townsend talks about John Lee Hooker putting a mic inside the guitar to achieve distortion on a track called <em>Devil’s Jump</em> in ~1949. The recording of it isn’t what you’d call high fidelity, and I can’t imagine how the audience of the time reacted. It’s influence is undoubted, though, and I <em>can</em> understand that.</p>

<p>Similarly, the effects in movies will almost never have the same impact on today’s viewers compared with the original audience. For example, <a href="http://www.imdb.com/title/tt0000012/"><em>The Arrival of a Train</em></a>, a 1 minute film of a train coming straight at the camera and the legend holding that the audience ran screaming for cover, or 1953’s <a href="http://www.imdb.com/title/tt0044121/"><em>The Thing from Another World</em></a> - terrifying for the time, by all accounts, yet laughably tame by modern-day standards.</p>

<p>In Mark Cousins’ amazing documentary series <a href="http://www.amazon.co.uk/The-Story-Film-Odyssey-DVD/dp/B007ZZKXG4/tag=dwlt-21"><em>The Story of Film</em></a>, he regularly refers to newer films “quoting” scenes and imagery from older films. Compare the design of C3PO with Maria, the robot from <a href="http://www.imdb.com/title/tt0017136/"><em>Metropolis</em></a>, or the entire end-scene of <a href="http://www.imdb.com/title/tt0105236/"><em>Reservoir Dogs</em></a> taken almost shot-for-shot and action-for-action from an 80s Hong Kong movie.</p>

<p>Going back to games made 30 years ago and being “disappointed” shouldn’t be surprising, because you’re measuring them by the standards of today. Revisiting older games should be about inspiration, reminding yourself of those positive memories, and for figuring out how you can make games that make you feel that way again (or why the games you play now don’t make you feel that way).</p>]]></content><author><name>David Thomson</name><email>dwlt@dwlt.net</email></author><summary type="html"><![CDATA[A comment I’ve often seen or heard from “gamers of a certain vintage” is something along the lines of “when I go back to the games of my youth, I’m always disappointed. Some things are best left with positive memories.”]]></summary></entry><entry><title type="html">Kindness</title><link href="http://localhost:4000/blog/2014/12/02/kindness/" rel="alternate" type="text/html" title="Kindness" /><published>2014-12-02T00:00:00+00:00</published><updated>2014-12-02T00:00:00+00:00</updated><id>http://localhost:4000/blog/2014/12/02/kindness</id><content type="html" xml:base="http://localhost:4000/blog/2014/12/02/kindness/"><![CDATA[<p>Paul Graham’s <a href="http://paulgraham.com/mean.html">Mean People Fail</a>:</p>

<blockquote>
  <p>It struck me recently how few of the most successful people I know are mean. There are exceptions, but remarkably few.</p>
</blockquote>

<p>The essay reminded me of George Saunders’ convocation speech I’ve been meaning to post for ages (expanded on in <a href="http://www.amazon.co.uk/gp/product/1408859343/tag=dwlt-21"><em>Congratulations, by the way</em></a>, I believe). Since it’s also his birthday today, I figured now was as good a time as any to do so:</p>

<blockquote>
  <p>So here’s something I know to be true, although it’s a little corny, and I don’t quite know what to do with it:</p>

  <p>What I regret most in my life are failures of kindness.</p>

  <p>Those moments when another human being was there, in front of me, suffering, and I responded . . . sensibly. Reservedly. Mildly.</p>
</blockquote>]]></content><author><name>David Thomson</name><email>dwlt@dwlt.net</email></author><summary type="html"><![CDATA[Paul Graham’s Mean People Fail:]]></summary></entry><entry><title type="html">Take It Out</title><link href="http://localhost:4000/blog/2014/10/20/take-it-out/" rel="alternate" type="text/html" title="Take It Out" /><published>2014-10-20T00:00:00+01:00</published><updated>2014-10-20T00:00:00+01:00</updated><id>http://localhost:4000/blog/2014/10/20/take-it-out</id><content type="html" xml:base="http://localhost:4000/blog/2014/10/20/take-it-out/"><![CDATA[<p><a href="http://www.eurogamer.net/articles/2014-10-19-alan-r-moon-railroad-tycoon">Alan R Moon, railroad tycoon</a></p>

<blockquote>
  <p>My rule for designing a game is that anything I can take out of the game, I take out, as long as it doesn’t undermine the base part</p>
</blockquote>]]></content><author><name>David Thomson</name><email>dwlt@dwlt.net</email></author><summary type="html"><![CDATA[Alan R Moon, railroad tycoon]]></summary></entry><entry><title type="html">Recent Reading</title><link href="http://localhost:4000/blog/2014/10/14/recent-reading/" rel="alternate" type="text/html" title="Recent Reading" /><published>2014-10-14T00:00:00+01:00</published><updated>2014-10-14T00:00:00+01:00</updated><id>http://localhost:4000/blog/2014/10/14/recent-reading</id><content type="html" xml:base="http://localhost:4000/blog/2014/10/14/recent-reading/"><![CDATA[<p><a href="http://www.newyorker.com/magazine/2014/09/01/troll-slayer">Troll Slayer</a>, Rebecca Mead’s profile of Mary Beard in The New Yorker earlier this year:</p>

<blockquote>
  <p>“It doesn’t much matter what line of argument you take as a woman. If you venture into traditional male territory, the abuse comes anyway. It’s not what you say that prompts it—it’s the fact that you are saying it.”</p>
</blockquote>

<p><a href="http://www.empireonline.com/westwing/">The Definitive History of The West Wing</a>:</p>

<blockquote>
  <p>When we were doing the show our goal was nothing grander than to entertain you for however long we’d asked for your attention.</p>
</blockquote>

<p>Steven Johnson (one of my favourite writers) interviewed Bill Gates about his foundation:</p>

<blockquote>
  <p>And so I think the idea that people are worried about problems, like climate change or terrorism or these challenges of the future, that’s okay. But boy, they really lose perspective of what’s happened over the last few hundred years. And how science and innovation have been a central factor of that.</p>

  <p>– <a href="http://www.theatlantic.com/technology/archive/2014/10/how-bill-gates-thinks/381287/">How Bill Gates Thinks</a></p>
</blockquote>

<p>This article is the best insight I’ve found into how VC for software companies works:</p>

<blockquote>
  <p>Unfortunately software startups have the opposite characteristics of what Tom Perkins taught the VC industry to look for. Software companies have relatively low technical risk and high market risk. You know the company could deliver its product. The question was would anyone want to buy it. As I said before, market risk is generally not worth taking, so the intelligent VCs had to change their business model.</p>

  <p>– <a href="Demystifying Venture Capital Economics, Part 2">https://blog.wealthfront.com/venture-capital-economics-part-2/</a></p>
</blockquote>]]></content><author><name>David Thomson</name><email>dwlt@dwlt.net</email></author><summary type="html"><![CDATA[Troll Slayer, Rebecca Mead’s profile of Mary Beard in The New Yorker earlier this year:]]></summary></entry><entry><title type="html">Hepworth’s Law of Improvement</title><link href="http://localhost:4000/blog/2014/10/07/hepworths-law-of-improvement/" rel="alternate" type="text/html" title="Hepworth’s Law of Improvement" /><published>2014-10-07T00:00:00+01:00</published><updated>2014-10-07T00:00:00+01:00</updated><id>http://localhost:4000/blog/2014/10/07/hepworths-law-of-improvement</id><content type="html" xml:base="http://localhost:4000/blog/2014/10/07/hepworths-law-of-improvement/"><![CDATA[<p>Saving this for future use, from <a href="http://whatsheonaboutnow.blogspot.co.uk/2014/10/how-to-get-over-distortion-of-sound.html" title="Stop whinging about the distortion of sound and make records we like.">David Hepworth</a> (emphasis his):</p>

<blockquote>
  <p>There’s improvement, then there’s the kind of improvement which is recognised by the user and finally there’s the kind of improvement which is both recognised and <strong>valued</strong> by the user.</p>
</blockquote>]]></content><author><name>David Thomson</name><email>dwlt@dwlt.net</email></author><category term="Making Change" /><summary type="html"><![CDATA[Saving this for future use, from David Hepworth (emphasis his):]]></summary></entry></feed>