<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">

    <channel>
        <title>Mike Babb - Software Engineering Manager</title>
        <link>https://mikebabb.com</link>
        <description>The personal website of Mike Babb, a software engineer turned engineering manager in Bristol, UK.</description>
        <lastBuildDate>Sun, 01 Nov 2026 09:09:58 +0000</lastBuildDate>
        
        <item>
            <title>No Sticky Bookmarklet</title>
            <link>
                https://mikebabb.com/blog/no-sticky-bookmarklet/
            </link>
            <description>
                &lt;p&gt;A few years ago I came across this bookmarklet that removes sticky elements from a webpage. If you’re bothered by sticky headers/footers/sidebars taking up screen space and following you down the page, you click the bookmarklet to remove them and restore some calm 🧘‍♂️&lt;/p&gt;

&lt;p&gt;If that sounds appealing, drag the link below to your bookmarks bar:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;javascript:(function()%7B(function()%20%7Bvar%20i%2C%20elements%20%3D%20document.querySelectorAll(&#39;body%20*&#39;)%3Bfor%20(i%20%3D%200%3B%20i%20%3C%20elements.length%3B%20i%2B%2B)%20%7Bvar%20pos%20%3D%20getComputedStyle(elements%5Bi%5D).position%3Bif%20(pos%20%3D%3D%3D%20&#39;fixed&#39;%20%7C%7C%20pos%20%3D%3D%3D%20&#39;sticky&#39;)%20%7Belements%5Bi%5D.parentNode.removeChild(elements%5Bi%5D)%3B%7D%7D%7D)()%7D)()&quot;&gt;No Sticky&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here’s the JavaScript it runs when you click it:&lt;/p&gt;

&lt;div class=&quot;language-javascript highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nx&quot;&gt;javascript&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:(&lt;/span&gt;&lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;B&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Bvar&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;C&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;elements&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;document&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;querySelectorAll&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;body%20*&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Bfor&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;B&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;C&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;elements&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;length&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;B&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;B&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;B&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Bvar&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;pos&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;getComputedStyle&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;elements&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Bi&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;position&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Bif&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;pos&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;fixed&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;C&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;C&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;pos&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;sticky&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Belements&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Bi&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;parentNode&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;removeChild&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;elements&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Bi&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;B&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)()&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If you sync your bookmarks across devices, you can use this bookmarklet on your phone too!&lt;/p&gt;

            </description>
            <pubDate>Fri, 14 Jun 2024 00:00:00 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/no-sticky-bookmarklet/
            </guid>
        </item>
        
        <item>
            <title>A Linux User's Notes on Macs</title>
            <link>
                https://mikebabb.com/blog/a-linux-users-notes-on-macs/
            </link>
            <description>
                &lt;p&gt;Linux and macOS are often described as being similar enough that migrating from one to the other is pretty straightforward. That’s been mostly true for me, and I’ve been scribbling notes to myself as a newcomer that might be helpful for anyone doing the same.&lt;/p&gt;

&lt;h2 id=&quot;window-management&quot;&gt;Window Management&lt;/h2&gt;

&lt;p&gt;I was surprised to find window management is pretty basic on macOS. On Linux (and even Windows 11), you can tile open application windows to fill the left and right (or top and bottom) halves of the screen with a couple of keypresses. Having to manually drag windows around and carefully resize them by hand feels like quite a backwards step coming from other operating systems.&lt;/p&gt;

&lt;p&gt;Thankfully - and to gleefully invoke an ancient Apple slogan - &lt;em&gt;there’s an app for that!&lt;/em&gt; &lt;a href=&quot;https://rectangleapp.com/&quot;&gt;Rectangle&lt;/a&gt; adds the window management functionality I was missing and will help Linux users feel at home shifting windows about.&lt;/p&gt;

&lt;h2 id=&quot;hidpi-output&quot;&gt;HiDPI Output&lt;/h2&gt;

&lt;p&gt;HiDPI support has been standard in Mac software since Apple coined the &lt;em&gt;retina&lt;/em&gt; term for its displays years ago. With Apple silicone though, HiDPI output from MacBooks to external displays is disabled unless the display has 4K resolution. That’s a problem for me and my 1440p Dell monitor; the monitor is capable of producing a nice, sharp image, but my MacBook won’t output HiDPI to it! I had super tiny, pixelated output that looked awful.&lt;/p&gt;

&lt;p&gt;It’s another problem solved by installing a third party app - &lt;a href=&quot;https://github.com/waydabber/BetterDisplay&quot;&gt;BetterDisplay&lt;/a&gt; overcomes the restriction on output to sub-4K monitors, allowing me to scale the display on my monitor and enable HiDPI for a beautiful, sharp picture.&lt;/p&gt;

&lt;h2 id=&quot;clipboard-management&quot;&gt;Clipboard Management&lt;/h2&gt;

&lt;p&gt;On Ubuntu I use a clipboard manager that integrates nicely with the top bar in GNOME, and in Windows 11 clipboard history is built into the same menu as the emoji shortcut. I couldn’t find a similar feature in macOS, but &lt;a href=&quot;https://maccy.app/&quot;&gt;Maccy&lt;/a&gt; has added the functionality I was missing.&lt;/p&gt;

&lt;p&gt;It’s good that it has an option to change the menu bar icon to something more recognisable too; I’m used to accessing history from a little clipboard icon:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/assets/img/media/maccy_settings.webp&quot;&gt;
  &lt;img class=&quot;aligncenter small-image&quot; src=&quot;/assets/img/media/maccy_settings_small.webp&quot; alt=&quot;Screenshot of the settings window for the Maccy clipboard manager app&quot; /&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;launching-apps-from-the-dock&quot;&gt;Launching Apps from the Dock&lt;/h2&gt;

&lt;p&gt;There’s no keyboard shortcut to quickly launch a specific app from the dock. On Linux I’d use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Super&lt;/code&gt; + &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1&lt;/code&gt; to launch my browser, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Super&lt;/code&gt; + &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;2&lt;/code&gt; for the terminal and so on, but on macOS you need a third party app for that. I’m using &lt;a href=&quot;https://apps.apple.com/gb/app/snap/id418073146&quot;&gt;Snap&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;mounting-external-filesystems&quot;&gt;Mounting External Filesystems&lt;/h2&gt;

&lt;p&gt;I make a regular backup of photos and videos from my phone to an external hard drive so I’m not relying purely on cloud storage. My external SSD was formatted as LUKS, which macOS can’t read. To access the media I’d already backed up over the years I used a nifty utility called &lt;a href=&quot;https://github.com/AlexSSD7/linsk&quot;&gt;Linsk&lt;/a&gt;, which creates a lightweight Linux VM that mounts the external drive and exposes it to macOS as a network share. Clever!&lt;/p&gt;

&lt;h2 id=&quot;odd-defaults&quot;&gt;Odd Defaults&lt;/h2&gt;

&lt;p&gt;A strange default setting is that macOS only properly “locks” 5 minutes after you shut the laptop lid, which doesn’t feel particularly secure. If you’ve shut the lid, there’s a good chance you’re also leaving the laptop unattended for a moment. Why should someone else be able to open it and access everything? The excellent fingerprint reader makes unlocking instant anyway, so it seems like a security risk for no real usability benefit.&lt;/p&gt;

&lt;h2 id=&quot;thingapp&quot;&gt;{Thing}.App&lt;/h2&gt;

&lt;p&gt;I didn’t understand the inner workings of Mac apps at first. They have the appearance of a single file, but are really more like little directory structures. You can see that structure by right-clicking an app and selecting &lt;em&gt;Show Package Contents&lt;/em&gt;.&lt;/p&gt;

&lt;h2 id=&quot;the-good-bits&quot;&gt;The Good Bits&lt;/h2&gt;

&lt;p&gt;You already know what Macs do well; beautiful hardware, highly polished software, and as a long time Linux user it &lt;em&gt;is&lt;/em&gt; nice to use an OS that everyone builds their app for first. The Mac monoculture still isn’t a good idea, but even tech companies tend to build for macOS and Windows first, and then maybe throw out a Linux port or beta if the demand is there (and it often isn’t. If there was a sad penguin emoji I’d use it here 🙁🐧).&lt;/p&gt;

&lt;p&gt;Generally though the user experience is excellent pretty much all the time. The hardware and software is a pleasure to use, and I’m enjoying the way some apps make use of the much-maligned (and now abandoned) Touch Bar on this model. I’ll continue to use a mix of Linux and macOS to &lt;a href=&quot;/uses/&quot;&gt;get things done&lt;/a&gt; 🚀&lt;/p&gt;

            </description>
            <pubDate>Wed, 27 Mar 2024 00:00:00 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/a-linux-users-notes-on-macs/
            </guid>
        </item>
        
        <item>
            <title>Goodbye Doomscrolling, Hello Again RSS</title>
            <link>
                https://mikebabb.com/blog/goodbye-doomscrolling-hello-again-rss/
            </link>
            <description>
                &lt;p&gt;Old tech is great tech. In this post I enthuse about ditching social media and going back to using RSS for content discovery like in the (g)olden days of the internet 🧓&lt;/p&gt;

&lt;h2 id=&quot;reddit-and-doomscrolling&quot;&gt;Reddit and Doomscrolling&lt;/h2&gt;

&lt;p&gt;The &lt;a href=&quot;https://www.theverge.com/2023/6/8/23754780/reddit-api-updates-changes-news-announcements&quot;&gt;Reddit API debacle&lt;/a&gt; has been a bit of a blessing for me. Gone now is a decade-long habit of reaching for my phone in idle moments, opening the Relay for Reddit app, and scrolling through lots of nonsense that deserves absolutely no space in my brain. I’ve spent years knowing far too much about topics I have no interest in at all, because discussions about them just happened to be on the self-styled &lt;em&gt;front page of the internet.&lt;/em&gt; The pending demise of my go-to Android app for browsing Reddit gave me the final push I needed to just delete it and free up a lot of headspace.&lt;/p&gt;

&lt;p&gt;So now I spend far less time ruminating on things I have no influence over and that have no real impact on my life anyway (hello, American politics!), and I have a lot more time to read things I am interested in. It did leave me in a quandary though - how do I find those things now that I’ve kicked the last of my old social media habits?&lt;/p&gt;

&lt;h2 id=&quot;rss-feedbin-and-newsletters&quot;&gt;RSS, Feedbin, and Newsletters&lt;/h2&gt;

&lt;p&gt;The answer has been to go back to basics, and I’ve been collecting &lt;strong&gt;RSS feeds&lt;/strong&gt; like in the olden days. On a colleague’s recommendation I subscribed to &lt;a href=&quot;https://feedbin.com/home&quot;&gt;Feedbin&lt;/a&gt;, which allows me to sync feeds across my devices and provides me with a &lt;strong&gt;unique email address for newsletters&lt;/strong&gt;. That second part has been really valuable for me - I’ve switched my various newsletter subscriptions to the address provided by Feedbin, and now they appear in my feed reader instead of cluttering up my inbox. That’s a great bonus; now everything I want to read is in Feedbin, and my email can go back to being about communication instead of content. I never kept on top of all those newsletters anyway!&lt;/p&gt;

&lt;p&gt;For paid newsletters the process needed an extra step. I wanted to keep account management emails in my inbox, so a filter that auto-forwards from paid newsletter sources to my Feedbin email address ensures everything works the way I want. I’ve also been using Feedbin’s bookmarklet to send pages and articles to my feed from my browser, keeping as much as possible in one place.&lt;/p&gt;

&lt;h2 id=&quot;reader-apps&quot;&gt;Reader Apps&lt;/h2&gt;

&lt;p&gt;On Android I used &lt;a href=&quot;https://play.google.com/store/apps/details?id=allen.town.focus.reader&amp;amp;pli=1&quot;&gt;FocusReader&lt;/a&gt; for a while, which syncs my feeds via my Feedbin account and has an enormous number of customisation options:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/assets/img/media/focusreader_screenshot_large.webp&quot;&gt;
    &lt;picture&gt;
        &lt;img class=&quot;aligncenter small-image&quot; src=&quot;/assets/img/media/focusreader_screenshot_small.webp&quot; alt=&quot;A screenshot of FocusReader showing my RSS feed&quot; /&gt;
    &lt;/picture&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On Linux I checked out &lt;a href=&quot;https://itsfoss.com/newsflash-feedreader/&quot;&gt;NewsFlash&lt;/a&gt;, also signed in to Feedbin to sync my feeds, but for the most part for desktop browsing I just visited feedbin.com in the browser. After a while I ditched FocusReader too in favour of Feedbin’s progressive web app, which does the job nicely.&lt;/p&gt;

&lt;p&gt;In a future &lt;em&gt;boring&lt;/em&gt; post I’ll go on about the other thing I’ve been using my newly-liberated doomscrolling time for - reading more books from my rapidly growing and carefully curated e-book library. How &lt;em&gt;exciting!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This post was updated a couple of times since the original publish date&lt;/em&gt;&lt;/p&gt;

            </description>
            <pubDate>Wed, 12 Jul 2023 00:00:00 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/goodbye-doomscrolling-hello-again-rss/
            </guid>
        </item>
        
        <item>
            <title>Windows Subsystem for Linux</title>
            <link>
                https://mikebabb.com/blog/windows-subsystem-for-linux/
            </link>
            <description>
                &lt;p&gt;I was recently issued a new work laptop running Windows 11, and while I was a little hesitant after more than a decade of Linux for both work and personal use, I’ve been impressed with &lt;a href=&quot;https://learn.microsoft.com/en-us/windows/wsl/about&quot;&gt;Windows Subsystem for Linux (WSL)&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;The Windows Subsystem for Linux lets developers run a GNU/Linux environment – including most command-line tools, utilities, and applications – directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This post outlines the steps I took to install Ubuntu in WSL on Windows 11, configure Git and Docker, and connect everything to VS Code for a seamless local development experience.&lt;/p&gt;

&lt;h2 id=&quot;install-wsl&quot;&gt;Install WSL&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;Install &lt;a href=&quot;https://apps.microsoft.com/store/detail/windows-subsystem-for-linux/9P9TQF7MRM4R&quot;&gt;WSL from the Microsoft store&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Set WSL2 as the default version, by running the command &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;wsl --set-default-version 2&lt;/code&gt; in Windows Terminal&lt;/li&gt;
  &lt;li&gt;Install &lt;a href=&quot;https://apps.microsoft.com/store/detail/ubuntu-22041-lts/9PN20MSR04DW&quot;&gt;Ubuntu 22.04 from the Microsoft Store&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Download and install the &lt;a href=&quot;https://learn.microsoft.com/en-gb/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package&quot;&gt;Linux kernel update package&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Open Windows Terminal and use the dropdown menu at the top to select Ubuntu 22.04&lt;/li&gt;
  &lt;li&gt;Enter a username and password when prompted - this will be the username and password for your user account in Ubuntu, and it doesn’t have to match your Windows login&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Ubuntu in WSL is now set up and ready to use! You can start it by clicking the Start Menu or pressing the Windows key and searching for Ubuntu, or from the dropdown menu in Windows Terminal:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/assets/img/media/wsl_1.webp&quot;&gt;
  &lt;img class=&quot;aligncenter&quot; src=&quot;/assets/img/media/wsl_1.webp&quot; alt=&quot;Screenshot of Windows Terminal showing an option for Ubuntu 22.04&quot; /&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I generally only use Windows Terminal to interact with Ubuntu, so I went a step further and set Ubuntu as the default profile so I’m dropped straight in whenever I hit my terminal keyboard shortcut:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/assets/img/media/wsl_5.webp&quot;&gt;
  &lt;img class=&quot;aligncenter&quot; src=&quot;/assets/img/media/wsl_5.webp&quot; alt=&quot;Screenshot of Windows Terminal settings, showing the default profile set to Ubuntu 22.04&quot; /&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;configure-git&quot;&gt;Configure Git&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;Generate a new SSH key by starting an Ubuntu terminal session and running &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ssh-keygen&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;Add the new key to your GitHub (or other git repo hosting provider) account&lt;/li&gt;
  &lt;li&gt;Configure Git with the following terminal commands in Ubuntu:&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git config &lt;span class=&quot;nt&quot;&gt;--global&lt;/span&gt; user.name &lt;span class=&quot;s2&quot;&gt;&quot;Your Name&quot;&lt;/span&gt;
git config &lt;span class=&quot;nt&quot;&gt;--global&lt;/span&gt; user.email &lt;span class=&quot;s2&quot;&gt;&quot;youremail@yourdomain.com&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;install-docker&quot;&gt;Install Docker&lt;/h2&gt;

&lt;p&gt;There are a couple of ways to handle Docker with WSL:&lt;/p&gt;

&lt;h3 id=&quot;method-1---docker-desktop-for-windows&quot;&gt;Method 1 - Docker Desktop for Windows&lt;/h3&gt;

&lt;p&gt;You can install Docker in Windows using &lt;a href=&quot;https://docs.docker.com/desktop/install/windows-install/&quot;&gt;Docker Desktop for Windows&lt;/a&gt;, and expose it to Ubuntu in WSL by navigating to &lt;strong&gt;Settings&lt;/strong&gt; ➡️ &lt;strong&gt;Resources&lt;/strong&gt; and activating the toggle for Ubuntu 22.04. Once toggled on, the output of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker help&lt;/code&gt; in an Ubuntu terminal session should be a list of available Docker commands. You’ll need to add your Windows user to the Docker group when using Docker Desktop for Windows.&lt;/p&gt;

&lt;p&gt;⚠️ &lt;strong&gt;Note:&lt;/strong&gt; You might also need a license to use Docker Desktop for Windows&lt;/p&gt;

&lt;h3 id=&quot;method-2---docker-in-ubuntu&quot;&gt;Method 2 - Docker in Ubuntu&lt;/h3&gt;

&lt;p&gt;If you don’t want to use Docker Desktop for Windows, you can install Docker in Ubuntu directly. This is what I chose to do, as it more closely matches the setup I had before.&lt;/p&gt;

&lt;h4 id=&quot;1-enable-systemd-in-ubuntu&quot;&gt;1. Enable systemd in Ubuntu&lt;/h4&gt;

&lt;p&gt;By default, Ubuntu in WSL boots with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;init&lt;/code&gt;. To support Docker it needs to boot with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;systemd&lt;/code&gt;. You can see which your Ubuntu instance has booted up with by running the following command in an Ubuntu session:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ps &lt;span class=&quot;nt&quot;&gt;-p&lt;/span&gt; 1 &lt;span class=&quot;nt&quot;&gt;-o&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;comm&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If the output of the command is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;init&lt;/code&gt;, create a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;wsl.conf&lt;/code&gt; file by running the following command:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;nano /etc/wsl.conf
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Add the following lines, and save and close the file:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;[boot]
systemd=true
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Restart WSL by running the following command in a Windows PowerShell session (&lt;strong&gt;not&lt;/strong&gt; Ubuntu):&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;wsl --shutdown
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The next time you start Ubuntu and run the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ps -p 1 -o comm=&lt;/code&gt; command, the output should be &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;systemd&lt;/code&gt;.&lt;/p&gt;

&lt;h4 id=&quot;2-install-docker-in-ubuntu&quot;&gt;2. Install Docker in Ubuntu&lt;/h4&gt;

&lt;ol&gt;
  &lt;li&gt;Follow the &lt;a href=&quot;https://docs.docker.com/engine/install/ubuntu/&quot;&gt;docker installation docs for Ubuntu&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Add your user to the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker&lt;/code&gt; group by running the following command in an Ubuntu terminal session, replacing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;user&lt;/code&gt; with your Ubuntu username:
    &lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  &lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;usermod &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-G&lt;/span&gt; docker user
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;Verify Docker is installed by running &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker help&lt;/code&gt; in Ubuntu. You should see a list of available Docker commands.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;connecting-vs-code-to-wsl&quot;&gt;Connecting VS Code to WSL&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://code.visualstudio.com/&quot;&gt;VS Code&lt;/a&gt; is my editor of choice, and I installed the &lt;a href=&quot;https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl&quot;&gt;WSL extension&lt;/a&gt; to allow the editor to connect directly to Ubuntu in WSL.&lt;/p&gt;

&lt;p&gt;The first time I opened a project in Ubuntu in WSL, I got the following prompt:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/assets/img/media/wsl_3.webp&quot;&gt;
  &lt;img class=&quot;aligncenter small-image&quot; src=&quot;/assets/img/media/wsl_3.webp&quot; alt=&quot;Screenshot of a VS Code notification suggesting reopening the project in WSL&quot; /&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Reopening the folder in WSL has VS Code connect to WSL directly, and you’ll see this indicated in the bottom left corner of the window:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/assets/img/media/wsl_4.webp&quot;&gt;
  &lt;img class=&quot;aligncenter small-image&quot; src=&quot;/assets/img/media/wsl_4.webp&quot; alt=&quot;Screenshot of VS Code showing a connection to WSL&quot; /&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;With Ubuntu, Git, and Docker installed in WSL and VS Code set up, I can use Windows and keep all the tooling and development workflows I’m used to from Linux. There’s even direct filesystem access between the two; Ubuntu appears in Windows Explorer like a mounted network drive, and I can access Windows’ filesystem from within WSL as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/mnt/c&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;WSL has made the switch to Windows for work relatively painless, but I will of course be continuing to run Linux on my personal machines! 🐧&lt;/p&gt;

            </description>
            <pubDate>Fri, 14 Apr 2023 00:00:00 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/windows-subsystem-for-linux/
            </guid>
        </item>
        
        <item>
            <title>PlayStation Remote Play on Linux</title>
            <link>
                https://mikebabb.com/blog/playstation-remote-play-on-linux/
            </link>
            <description>
                &lt;p&gt;One of my favourite PlayStation 5 features is the ability to stream games to other devices, so I can squeeze in some gaming without taking over the TV. There are official &lt;a href=&quot;https://www.playstation.com/en-gb/remote-play/&quot;&gt;Remote Play clients&lt;/a&gt; for Android, iOS, Windows, and Mac, but Linux isn’t supported. Instead, I’ve been using an open source client called &lt;a href=&quot;https://git.sr.ht/~thestr4ng3r/chiaki&quot;&gt;Chiaki&lt;/a&gt; that works well with a little configuration. Here’s what I did to get it set up and streaming smoothly on Ubuntu 22.04:&lt;/p&gt;

&lt;h2 id=&quot;1-download-chiaki&quot;&gt;1. Download Chiaki&lt;/h2&gt;

&lt;p&gt;Download the Chiaki AppImage file from &lt;a href=&quot;https://git.sr.ht/~thestr4ng3r/chiaki&quot;&gt;the project’s homepage&lt;/a&gt;, and make it executable by running &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;chmod +x &amp;lt;file&amp;gt;.AppImage&lt;/code&gt;. On running, it’ll spot your console on the network.&lt;/p&gt;

&lt;h2 id=&quot;2-get-your-psn-account-id&quot;&gt;2. Get Your PSN Account ID&lt;/h2&gt;

&lt;p&gt;You’ll need your PlayStation Network account ID to set up Chiaki for remote play. This is not the same thing as your PSN account name, and Chiaki’s maintainers provide &lt;a href=&quot;https://git.sr.ht/~thestr4ng3r/chiaki/tree/master/scripts/psn-account-id.py&quot;&gt;a python script&lt;/a&gt; you can run in a terminal to retrieve it.&lt;/p&gt;

&lt;h2 id=&quot;3-link-your-console-and-configure-chiaki&quot;&gt;3. Link Your Console and Configure Chiaki&lt;/h2&gt;

&lt;p&gt;Once you’ve got your account ID, you’ll need a registration PIN from your console. On PS5 you get this in &lt;strong&gt;Settings&lt;/strong&gt; ➡ &lt;strong&gt;System&lt;/strong&gt; ➡ &lt;strong&gt;Remote Play&lt;/strong&gt; ➡ &lt;strong&gt;Link Device&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Generate a registration PIN on this screen and enter it in Chiaki’s settings, along with the account ID you retrieved in the previous step.&lt;/p&gt;

&lt;h3 id=&quot;optional-tweak-chiakis-settings&quot;&gt;Optional: Tweak Chiaki’s Settings&lt;/h3&gt;

&lt;p&gt;Chiaki’s default settings caused occasional visual and audio hiccups for me. Local network conditions are likely a factor, but when troubleshooting the audio problems I happened across a Reddit thread that suggested increasing the size of the audio buffer.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/assets/img/media/chiaki_settings.webp&quot;&gt;
    &lt;picture&gt;
        &lt;source srcset=&quot;/assets/img/media/chiaki_settings.webp&quot; media=&quot;(min-width: 750px)&quot; /&gt;
        &lt;img class=&quot;aligncenter&quot; src=&quot;/assets/img/media/chiaki_settings.webp&quot; alt=&quot;A screenshot of the settings I&#39;ve configured for Chiaki&quot; /&gt;
    &lt;/picture&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I increased the &lt;strong&gt;audio buffer size&lt;/strong&gt; to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;19200&lt;/code&gt;, and the &lt;strong&gt;bitrate&lt;/strong&gt; to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;30000&lt;/code&gt;. These changes resolved the audio and visual issues I was having.&lt;/p&gt;

&lt;h2 id=&quot;4-play&quot;&gt;4. Play!&lt;/h2&gt;

&lt;p&gt;You’re all set! Here’s Crisis Core Final Fantasy VII Reunion running on my PS5, streaming across my home network to Chiaki on Ubuntu 22.04:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/assets/img/media/chiaki_crisis_core_large.webp&quot;&gt;
    &lt;picture&gt;
        &lt;img class=&quot;aligncenter&quot; src=&quot;/assets/img/media/chiaki_crisis_core_small.webp&quot; alt=&quot;A photograph of my desk showing my laptop running a game streamed from my PS5&quot; /&gt;
    &lt;/picture&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Games stream at a consistent 60 frames per second, with no audio or input lag. For the authentic experience I’ve paired a spare PS4 controller to my laptop. It’s well supported natively in Ubuntu - the touchpad and vibration functions work too!&lt;/p&gt;

            </description>
            <pubDate>Sun, 01 Jan 2023 00:00:00 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/playstation-remote-play-on-linux/
            </guid>
        </item>
        
        <item>
            <title>Engineering Daybooks</title>
            <link>
                https://mikebabb.com/blog/engineering-daybooks/
            </link>
            <description>
                &lt;p&gt;A few months ago I read the excellent 20th anniversary edition of &lt;a href=&quot;https://www.amazon.co.uk/Pragmatic-Programmer-journey-mastery-Anniversary/dp/0135957052/&quot;&gt;The Pragmatic Programmer&lt;/a&gt; by David Thomas and Andrew Hunt, and one of the tips I put in to practice right away was to start keeping an engineering daybook.&lt;/p&gt;

&lt;h2 id=&quot;my-daybook&quot;&gt;My Daybook&lt;/h2&gt;

&lt;p&gt;My daybook is a physical notebook that lives on my desk, and as I work I jot down any little details that seem relevant to my current task - things I need to do, notes on how a component or function works, reminders to go back and undo values I’ve temporarily hard-coded, that sort of thing. David and Andrew recommend using pen and paper for this, and I’ve found it helps separate my “stream of consiousness” note-taking from more organised and longer term &lt;a href=&quot;/blog/work-and-life-management-with-joplin/&quot;&gt;digital notes&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;An engineering daybook acts as a little store for details that’ll quickly get lost over time. When someone asks how you solved a problem you had several months ago, you might only vaguely recall the issue and how you solved it. Being able to flip back through your daybook and give a more accurate answer refreshes your memory of the lessons you learned solving the problem and allows you to be much more helpful.&lt;/p&gt;

&lt;p&gt;I started keeping my daybook in March, and today it really came in to its own.&lt;/p&gt;

&lt;h2 id=&quot;old-ticket-forgotten-problems&quot;&gt;Old Ticket, Forgotten Problems&lt;/h2&gt;

&lt;p&gt;My team is curently running an exercise in reassessing how we estimate tickets. We’re taking all the tickets we’ve completed over the last couple of months and shuffling them around in order of the amount of work they ended up taking, and comparing that to the original estimates we gave them to get an idea of how accurate our estimates are. Did the small tickets end up being small? Did the big tickets really take much longer to complete than the small ones?&lt;/p&gt;

&lt;p&gt;A ticket I worked on a few months ago is an outlier - we estimated it as needing an average amount of work but it ended up taking longer than expected. What happened? Why did it take so long? I remember it being troublesome and having a few unexpected complexities that only came to light after work had begun, but I couldn’t remember exactly what those complexities were or why they’d resulted in delays.&lt;/p&gt;

&lt;p&gt;I was able to check the dates on the ticket and flip back to that time in my daybook, and there it all was - a collection of unexpected problems, notes on my thought process as I debugged and puzzled my way through them, and the solutions I arrived at. With a refreshed memory of exactly what I’d done, I was able to make recommendations on how we might avoid similar problems in future by refining our tickets in a little more detail upfront.&lt;/p&gt;

&lt;p&gt;Perhaps some of the unexpected problems I encountered would have been surfaced with a bit more of a deep-dive in to parts of the codebase I’d be touching before we marked the ticket ready and pulled it in to sprint. Perhaps we could have broken the ticket down in to smaller tickets and shipped the work in multiple iterations instead of all at once. I could make these suggestions for improvements to my team’s process because now I remember those months-old details like I’d solved the problems yesterday.&lt;/p&gt;

&lt;h2 id=&quot;try-keeping-a-daybook&quot;&gt;Try Keeping a Daybook&lt;/h2&gt;

&lt;p&gt;This isn’t the first time keeping my engineering daybook has paid off, but I think it’s the most valuable so far. Try keeping one for a month (or longer!) and see if it’s useful to you. I’m convinced of the value of jotting down every little challenge and solution as I go, and I plan on filling notebooks for years to come.&lt;/p&gt;

            </description>
            <pubDate>Wed, 23 Jun 2021 00:00:00 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/engineering-daybooks/
            </guid>
        </item>
        
        <item>
            <title>What I've Learned as a New Tech Lead</title>
            <link>
                https://mikebabb.com/blog/what-ive-learned-as-a-new-tech-lead/
            </link>
            <description>
                &lt;p&gt;About a year ago I was promoted from Developer to Tech Lead, and now feels like a good time to take a moment to reflect on what I’ve learned so far. Here are the 3 main things I’ve taken away from my first year in the role:&lt;/p&gt;

&lt;h3 id=&quot;1-team-productivity--your-productivity&quot;&gt;1. Team productivity &amp;gt; your productivity&lt;/h3&gt;

&lt;p&gt;One of my biggest shifts in mindset has been the way I think about productivity. In my early days in the role I struggled a bit with the feeling that time spent working on things other than my assigned sprint task was &lt;em&gt;unproductive,&lt;/em&gt; but it was my perception of “productivity” that needed to change.&lt;/p&gt;

&lt;p&gt;As a Developer my main way of contributing to the team’s output was by writing code. As a Tech Lead I have additional ways to contribute, like removing obstacles and unblocking my teammates. Enabling other developers to remain focused and productive is just as important as making direct code contributions myself, and my personal output in terms of code written is less important than the team’s overall.&lt;/p&gt;

&lt;p&gt;It took a while for me to get away from the nagging feeling of “I didn’t write enough code today”, but once I started to focus less on that single metric and take in to account all the other little things I’d done to help others on my team keep delivering, I started to have a better understanding of what it means to be a productive lead.&lt;/p&gt;

&lt;h3 id=&quot;2-theres-a-lot-more-talking&quot;&gt;2. There’s a lot more talking&lt;/h3&gt;

&lt;p&gt;I’m in a lot more meetings than I used to be, and I enjoy them more than I expected to. I meet regularly with the team’s Product Manager, and we’ve developed an effective dynamic where he provides the overall vision and direction for the product, and I’m responsible for getting it built. I provide technical consultation to help inform product decisions, and I enjoy our discussions about strategy and the roadmap. Once we’ve gotten some of the big picture stuff mapped out for an upcoming feature, we bring the whole team in to begin working out details and plan the work. It’s an arrangement that’s worked well so far, and as a team we’ve delivered great results.&lt;/p&gt;

&lt;p&gt;Meetings don’t intuitively feel productive to many developers, but the regular discussions I have with our Product Manager allow the devs to remain focused on building the right thing at the right time, with a good understanding of why we’re doing it. Understanding &lt;em&gt;why&lt;/em&gt; you’re building something helps you make better decisions about &lt;em&gt;how&lt;/em&gt; you build it.&lt;/p&gt;

&lt;p&gt;I enjoy my regular one-to-one chats with the devs on my team. Through these sessions I’ve learned a lot about how each person likes to work, what they find challenging, and how I can support them day to day.&lt;/p&gt;

&lt;p&gt;Meeting with other Tech Leads and sharing experiences of how we run our agile ceremonies and refine product work is a good way to tweak our processes as we go. I get a lot of value from many of the regular meetings I now attend as a Tech Lead.&lt;/p&gt;

&lt;h3 id=&quot;3-being-organised-makes-it-all-easier&quot;&gt;3. Being organised makes it all easier&lt;/h3&gt;

&lt;p&gt;I found organising my work and structuring my time challenging at first. Context switching is a notorious time sink in software development, and the sudden increase in meetings in my calendar introduced many more context switches than I’d had to manage previously. I found myself in a slightly frustrating way of working that fell somewhere between the &lt;a href=&quot;http://www.paulgraham.com/makersschedule.html&quot;&gt;maker’s schedule and the manager’s schedule&lt;/a&gt;, without fully getting the benefit of either. 2 things helped me minimise the effects of context-switching:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Borderline-obsessive &lt;a href=&quot;/blog/work-and-life-management-with-joplin/&quot;&gt;note-taking&lt;/a&gt;. Recovering from context switches is much faster if you can quickly skim-read some notes and get back up to speed with what you were working on previously&lt;/li&gt;
  &lt;li&gt;Scheduling meetings in batches so that my calendar has as many stretches of uninterrupted coding time as possible&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;With daily and weekly “todo” lists and a carefully-managed calendar, I’ve been much more productive and a lot less stressed about switching between tasks.&lt;/p&gt;

&lt;h2 id=&quot;looking-forward&quot;&gt;Looking Forward&lt;/h2&gt;

&lt;p&gt;I’ve learned a lot in my first year of tech leadership, and I’ve had the good fortune to work with an incredible team on an exciting product. I’m looking forward to seeing what we’ll achieve together in the next year, and how my role as Tech Lead will continue to evolve.&lt;/p&gt;

            </description>
            <pubDate>Wed, 06 Jan 2021 00:00:00 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/what-ive-learned-as-a-new-tech-lead/
            </guid>
        </item>
        
        <item>
            <title>Automatic Dark Mode with CSS Variables</title>
            <link>
                https://mikebabb.com/blog/automatic-dark-mode-with-css-variables/
            </link>
            <description>
                &lt;p&gt;Many operating systems offer some form  of “dark mode” that allows the user to set their preference for a darker UI, and some can even switch between light and dark themes depending on the time of day. In this post I’ll show you how to use CSS variables to provide light and dark themes for your websites and apps that are applied automatically depending on the user’s preference.&lt;/p&gt;

&lt;h2 id=&quot;setting-colours-with-css-variables&quot;&gt;Setting colours with CSS variables&lt;/h2&gt;

&lt;p&gt;The first step is to make sure the colours you’d like to change between light and dark modes are set using CSS variables. The design for my site is quite simple, so my set of colour variables looks like this:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;&lt;span class=&quot;nd&quot;&gt;:root&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;--bg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#f7faff&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;--text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#1e1e1e&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;--codetext&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#cd0033&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;--accent&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#2175a8&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;py&quot;&gt;--textbg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#e3f4ff&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Then in my stylesheet I can use the values like this:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;&lt;span class=&quot;nt&quot;&gt;body&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;nl&quot;&gt;background&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;--bg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;nl&quot;&gt;border-top&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;8px&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;solid&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;--accent&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;/* ...other body styles */&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h2 id=&quot;alternative-variables-for-dark-mode&quot;&gt;Alternative variables for dark mode&lt;/h2&gt;

&lt;p&gt;With variables set for my default light theme, providing a dark theme is as simple as overriding them using the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;prefers-color-scheme&lt;/code&gt; media query, like this:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-css&quot; data-lang=&quot;css&quot;&gt;&lt;span class=&quot;k&quot;&gt;@media&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;prefers-color-scheme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dark&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;nd&quot;&gt;:root&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;py&quot;&gt;--bg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#1e1e1e&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;py&quot;&gt;--text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#fbfbfb&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;py&quot;&gt;--codetext&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#ffb5c7&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;py&quot;&gt;--accent&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#3daff3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;py&quot;&gt;--textbg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;#353e42&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;If a visitor to my site has set their preference for a dark theme either at the OS level or with a browser setting, the value of my &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--bg&lt;/code&gt; CSS variable will be &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;#1e1e1e&lt;/code&gt; instead of the default &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;#f7faff&lt;/code&gt; specified in the CSS before the media query. In my stylesheet, the CSS styling the background of my pages is still &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;background: var(--bg)&lt;/code&gt;, it’s just the value of the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--bg&lt;/code&gt; variable that is different depending on the visitor’s preference.&lt;/p&gt;

&lt;p&gt;Here’s how my site currently looks with light and dark themes:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/assets/img/media/light_dark_comparison_full.webp&quot;&gt;
    &lt;picture&gt;
        &lt;source srcset=&quot;/assets/img/media/light_dark_comparison_full.webp&quot; media=&quot;(min-width: 750px)&quot; /&gt;
        &lt;img class=&quot;aligncenter&quot; src=&quot;/assets/img/media/light_dark_comparison_small.webp&quot; alt=&quot;Two screenshots of this website in light and dark modes&quot; /&gt;
    &lt;/picture&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What’s more, the transition between the two is automatic with no page refresh needed when the user’s theme changes - perfect if it happens to switch with the time of day while reading!&lt;/p&gt;


            </description>
            <pubDate>Thu, 27 Aug 2020 00:00:00 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/automatic-dark-mode-with-css-variables/
            </guid>
        </item>
        
        <item>
            <title>Ubuntu 20.04</title>
            <link>
                https://mikebabb.com/blog/ubuntu-20.04/
            </link>
            <description>
                &lt;p&gt;Ubuntu 20.04 was released on 23 April, and it &lt;a href=&quot;https://www.omgubuntu.co.uk/2020/04/feature-spotting-in-focal-fossa&quot;&gt;looks really good&lt;/a&gt;. I decided to upgrade my home laptop, and this post is a little summary of how I’ve gotten on with the new OS.&lt;/p&gt;

&lt;h2 id=&quot;patience-or-lack-thereof&quot;&gt;Patience (or Lack Thereof)&lt;/h2&gt;

&lt;p&gt;I don’t spend as much time tinkering with Linux as I used to, so I stick to Ubuntu’s Long Term Support (LTS) releases for maximum stability with the least amount of hassle. I can wait for the bugs to be worked out with all the new toys, so I skip the inbetween releases and stay on the LTS track. When I’m ready to switch I usually reinstall the OS from scratch, but for 20.04 I decided I was going to save myself some time and effort getting things set up the way I like again by just using the built-in updater instead.&lt;/p&gt;

&lt;p&gt;Ubuntu’s updater doesn’t notify LTS users of a new version until the first point release several months later, but I’m still impatient enough to want the new LTS &lt;em&gt;now&lt;/em&gt;, so I went ahead and forced the upgrade by running &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;update-manager -c -d&lt;/code&gt;. This tells the updater to look for “in development” releases to upgrade to on this occasion, and as the new LTS just shipped and there isn’t a newer version of Ubuntu available yet, that’s the version it found and offered to upgrade to.&lt;/p&gt;

&lt;h2 id=&quot;upgrading-1804-to-2004&quot;&gt;Upgrading 18.04 to 20.04&lt;/h2&gt;

&lt;p&gt;The updater immediately picked up the existence of 20.04 and guided me through the upgrade. It hung for a couple of moments replacing Chromium with a new Snap version, but otherwise ran flawlessly and my ThinkPad rebooted in to 20.04 about 30 minutes later.&lt;/p&gt;

&lt;h2 id=&quot;impressions&quot;&gt;Impressions&lt;/h2&gt;

&lt;p&gt;Booting up is noticeably faster on 20.04, and Ubuntu has never looked better. From the redesigned login screen to a much-needed visual refresh by way of the new “Yaru” theme, 20.04 looks like the most polished version of the OS yet. An up to date version of the GNOME desktop environment delivers speed improvements in general usage, so this version of Ubuntu feels like a real upgrade.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/assets/img/media/20_04_full.webp&quot;&gt;
    &lt;picture&gt;
        &lt;source srcset=&quot;/assets/img/media/20_04_full.webp&quot; media=&quot;(min-width: 750px)&quot; /&gt;
        &lt;img class=&quot;aligncenter&quot; src=&quot;/assets/img/media/20_04_small.webp&quot; alt=&quot;A screenshot of my desktop&quot; /&gt;
    &lt;/picture&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Everything works out of the box for me with no fixes needed, which is as you might hope upgrading from LTS to LTS, but certainly not guaranteed when forcing the upgrade early like I did.&lt;/p&gt;

&lt;p&gt;I only needed to tweak a couple of default settings to get everything to my liking:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;My home folder and the recycle bin had icons on the desktop post-upgrade, and it took me a while to find out how to remove them. In 18.04 a “Desktop” section in the GNOME Tweaks application allowed the icons to be toggled on or off, and those toggles have moved in to a separate Extensions app in 20.04. Before removing them, I noticed the icons have a tendency to slip underneath the dock while the “auto-hide dock” setting is active, which is probably a bug that will be fixed at some point.&lt;/li&gt;
  &lt;li&gt;I was thrown by not being able to alt-tab through all open applications - only applications that are open in the currently-active workspace are visible in the alt-tab switcher. This is probably a user preference that I set years ago and forgot about, and was quickly fixed by running &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gsettings set org.gnome.shell.app-switcher current-workspace-only false&lt;/code&gt; in a terminal session.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;

&lt;p&gt;This was actually the first time I’ve used the updater to upgrade to a new OS version - back in 2009 when I first starting using Linux, the consensus seemed to be that upgrades were unnecessarily risky and that you were better off with a clean install to reduce the odds of something breaking. I got in the habit of always installing new versions from scratch, but after a problem-free experience upgrading Ubuntu from 18.04 to 20.04, I’ll likely do it this way from now on. 10 years is a long time in software, and it looks like the upgrade process is quite painless these days.&lt;/p&gt;

&lt;p&gt;Ubuntu 20.04 performs well and looks fantastic. It’s well worth upgrading to.&lt;/p&gt;

            </description>
            <pubDate>Mon, 27 Apr 2020 00:00:00 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/ubuntu-20.04/
            </guid>
        </item>
        
        <item>
            <title>Work and life management with Joplin</title>
            <link>
                https://mikebabb.com/blog/work-and-life-management-with-joplin/
            </link>
            <description>
                &lt;p&gt;Following a role change at work I have rather a lot more &lt;em&gt;stuff&lt;/em&gt; to keep track of now, and my new responsibilities quickly outgrew my previous note-taking setup of plain markdown files in a notes folder. I began looking for a free, open source software solution that could better fit my needs and within a few days of trying it out, &lt;a href=&quot;https://joplinapp.org/&quot;&gt;Joplin&lt;/a&gt; became indispensable to me.&lt;/p&gt;

&lt;p&gt;I like that I can write notes in markdown, attach files, write clickable checklists for todo list items, link between notes, and sync the lot across my devices using my &lt;a href=&quot;/blog/build-your-own-private-cloud-with-nextcloud/&quot;&gt;Nextcloud server&lt;/a&gt;. Joplin has a good cross-platform desktop app, and mobile apps are available for Android and iOS. They’re nicely-designed and have light and dark modes, which I often switch between depending on the time of day.&lt;/p&gt;

&lt;h2 id=&quot;privacy-and-security&quot;&gt;Privacy and security&lt;/h2&gt;

&lt;p&gt;Notes are kept private and secure by configuring end to end encryption in the apps to protect data in transit, and encrypted at rest on my server and devices. Encryption at rest isn’t something the Joplin apps currently do for you, so you’ll need to ensure your data is encrypted on your devices (and server if applicable) yourself. That’s a good practice to follow anyway, though.&lt;/p&gt;

&lt;h2 id=&quot;editing-and-organising&quot;&gt;Editing and organising&lt;/h2&gt;

&lt;p&gt;Simple markdown formats notes beautifully, and includes useful functionality like checklist items, links between notes, and even syntax highlighting for code snippets. Notes can be organised in to notebooks and sub-notebooks, tagged, and there’s a great global search function that you can invoke with a keyboard shortcut to search for text across all of your notebooks if you know exactly what you’re looking for but don’t want to drill down through the notebook/sub-notebook directory structure.&lt;/p&gt;

&lt;h2 id=&quot;try-it&quot;&gt;Try it&lt;/h2&gt;

&lt;p&gt;I encourage anyone looking for a free, private alternative to Evernote and OneNote to give Joplin a try. In the short time I’ve been using it it has really impressed me, and I’m getting so much use out of it that I’ve happily donated to the project to support the developer. I’m a lot more organised now thanks to their work!&lt;/p&gt;

            </description>
            <pubDate>Sat, 08 Feb 2020 00:00:00 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/work-and-life-management-with-joplin/
            </guid>
        </item>
        
        <item>
            <title>Build your own private cloud with Nextcloud</title>
            <link>
                https://mikebabb.com/blog/build-your-own-private-cloud-with-nextcloud/
            </link>
            <description>
                &lt;p&gt;Recently I’ve been trying to reduce my dependence on proprietary apps and services. At first I just wanted a self-hosted alternative to Dropbox, but I quickly found I could build an entire private cloud using &lt;a href=&quot;https://nextcloud.com/&quot;&gt;Nextcloud&lt;/a&gt;, and replace a lot of the services I used to rely on Google for.&lt;/p&gt;

&lt;p&gt;Nextcloud is free, open source software that you install on your own server, and the process isn’t much more complicated than installing a CMS like WordPress. Once you’ve installed it and created an account, you install client applications on your computers and mobile devices, and any files you drop in to the Nextcloud folder will be synced across all of them, just like Dropbox.&lt;/p&gt;

&lt;p&gt;File syncing is just the beginning of what you can do with Nextcloud. You can extend its functionality in all sorts of ways using plugins installed from the &lt;a href=&quot;https://apps.nextcloud.com/&quot;&gt;app store&lt;/a&gt;, and support for standards like CalDAV and CardDAV means you can have your Nextcloud instance sync contacts and calendars between your devices as well as files. With a few apps installed and configured, I’ve been using Nextcloud for:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;👥 Contacts backup and syncing&lt;/li&gt;
  &lt;li&gt;📆 Calendar syncing&lt;/li&gt;
  &lt;li&gt;📝 Note taking&lt;/li&gt;
  &lt;li&gt;📋 Task list management&lt;/li&gt;
  &lt;li&gt;📷 Automatic upload of photos and videos from my phone&lt;/li&gt;
  &lt;li&gt;🔄 File storage and syncing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to go further, you can have your Nextcloud instance handle &lt;a href=&quot;https://apps.nextcloud.com/apps/richdocuments&quot;&gt;browser-based document editing&lt;/a&gt; like Google Docs, &lt;a href=&quot;https://apps.nextcloud.com/apps/spreed&quot;&gt;video calling&lt;/a&gt;, &lt;a href=&quot;https://apps.nextcloud.com/apps/mail&quot;&gt;email&lt;/a&gt;, and even &lt;a href=&quot;https://apps.nextcloud.com/apps/music&quot;&gt;music streaming&lt;/a&gt;. You can set up your own alternative to pretty much any Google service with Nextcloud, with the added benefit of keeping full control of your personal data because all these cloud services are running on your own server rather than Google’s.&lt;/p&gt;

&lt;p&gt;If you don’t have your own server, or it’s not practical to maintain one, you can rent a VPS from a hosting provider and install Nextcloud there, encrypting Nextcloud’s storage to maintain privacy.&lt;/p&gt;

&lt;h2 id=&quot;what-i-still-use-google-for&quot;&gt;What I still use Google for&lt;/h2&gt;

&lt;p&gt;Maps and Photos are great services that I’m yet to come across better alternatives to, and I’m happy to keep using them at the moment. I have my own backup solution in place for photos and videos so I’m not solely reliant on Google Photos any more, but it’s still my go-to for easy media backup and sharing.&lt;/p&gt;

&lt;h2 id=&quot;mobile-apps&quot;&gt;Mobile apps&lt;/h2&gt;

&lt;p&gt;To make full use of some of the functionality I’ve added to Nextcloud, I’m using the following Android apps in addition to the &lt;a href=&quot;https://play.google.com/store/apps/details?id=com.nextcloud.client&quot;&gt;Nextcloud app&lt;/a&gt; itself:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.davx5.com/&quot;&gt;DAVx⁵&lt;/a&gt; - Utility app that enables CalDAV and CardDAV syncing with your Android device. Needed for contacts, calendar, and task list syncing&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://icsx5.bitfire.at/&quot;&gt;ICSx⁵&lt;/a&gt; - Another utility app, allowing syncing of external calendars, or downloaded .ics files&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://play.google.com/store/apps/details?id=com.simplemobiletools.calendar.pro&quot;&gt;Simple Calendar&lt;/a&gt; - A customisable, open source calendar app with a clean design that supports CalDAV calendar syncing&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://play.google.com/store/apps/details?id=it.niedermann.owncloud.notes&quot;&gt;Nextcloud Notes&lt;/a&gt; - A note-taking app with markdown editing&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://opentasks.app/&quot;&gt;OpenTasks&lt;/a&gt; - Task management app. Tasks can have checklists for sub-tasks, due dates and times for reminders, and can be “pinned” to the notification area for a persistent reminder&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;own-your-data&quot;&gt;Own your data&lt;/h2&gt;

&lt;p&gt;If you like the idea of having a little more control of your personal data without sacrificing the convenience of having it synced across all your devices, I recommend checking out &lt;a href=&quot;https://nextcloud.com/&quot;&gt;Nextcloud&lt;/a&gt;. Getting started doesn’t take long, and your private cloud is as flexible and powerful as you choose to make it with the enormous selection of plugins available.&lt;/p&gt;

            </description>
            <pubDate>Sat, 23 Mar 2019 00:00:00 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/build-your-own-private-cloud-with-nextcloud/
            </guid>
        </item>
        
        <item>
            <title>Migrating from WordPress to Jekyll</title>
            <link>
                https://mikebabb.com/blog/migrating-from-wordpress-to-jekyll/
            </link>
            <description>
                &lt;p&gt;I recently decided to migrate my website from &lt;a href=&quot;https://wordpress.org/&quot;&gt;WordPress &lt;/a&gt; to a set of completely static pages, and settled on &lt;a href=&quot;https://jekyllrb.com/&quot;&gt;Jekyll&lt;/a&gt; for managing my site content. The whole process took a good few hours, but some of that time was spent on a little &lt;a href=&quot;/notes/diversion/&quot;&gt;diversion&lt;/a&gt; where I took the opportunity to move from a front end workflow based on &lt;a href=&quot;https://gruntjs.com/&quot;&gt;Grunt&lt;/a&gt; to &lt;a href=&quot;https://gulpjs.com/&quot;&gt;Gulp&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;whats-wrong-with-wordpress&quot;&gt;What’s wrong with WordPress?&lt;/h2&gt;

&lt;p&gt;Nothing! WordPress is great, actually. It’s free, open source, and has a &lt;a href=&quot;https://venturebeat.com/2018/03/05/wordpress-now-powers-30-of-websites/&quot;&gt;60% market share&lt;/a&gt; of sites that are powered by a Content Management System (CMS), or an impressive 30% of the &lt;em&gt;entire web,&lt;/em&gt; including sites that don’t run a CMS at all. It has a huge community of users and developers, and can be extended in any number of ways with its plugin system. I’ve built and maintained sites on WordPress for years, it’s just that I don’t personally need everything WordPress brings with it for this site.&lt;/p&gt;

&lt;p&gt;The only thing keeping me using WordPress for my site was the nice user interface for writing posts and notes (a custom post type I set up for &lt;a href=&quot;/blog/noteworthy/&quot;&gt;microblogging on my own domain&lt;/a&gt;). The only plugins I installed were Gravity Forms for a contact form, and iThemes Security for changing some default settings and securing the admin interface a little better. For the convenience of that interface I was making all the tradeoffs a CMS entails - third party code I had no control over, performance penalties, database connections, and generally a lot of power I wasn’t using.&lt;/p&gt;

&lt;h2 id=&quot;why-jekyll&quot;&gt;Why Jekyll?&lt;/h2&gt;

&lt;p&gt;Jekyll was one of the first and remains one of the most popular static site generators, and the documentation is excellent so I set about converting my site’s current WordPress theme to static pages. Jekyll uses &lt;a href=&quot;https://en.wikipedia.org/wiki/Markdown&quot;&gt;markdown&lt;/a&gt; for content editing which is convenient for me as I use it a lot already for note-taking, and it converts those markdown files in to static HTML files for you to upload to your webserver.&lt;/p&gt;

&lt;h2 id=&quot;converting-my-wordpress-theme&quot;&gt;Converting my WordPress theme&lt;/h2&gt;

&lt;p&gt;Converting my WordPress page templates to static HTML files for Jekyll to insert content in to was pretty simple, and mostly consisted of replacing PHP code with Jekyll’s functions and loops. Pleasingly, I was able to replace a huge chunk of PHP dedicated to composing and outputting a list of post categories with a much smaller Jekyll snippet:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-html&quot; data-lang=&quot;html&quot;&gt;{ page.categories | array_to_sentence_string }&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;A lot of Jekyll’s syntax is like that - simple and easy to read.&lt;/p&gt;

&lt;h2 id=&quot;getting-my-posts-out-of-wordpress-and-in-to-jekyll&quot;&gt;Getting my posts out of WordPress and in to Jekyll&lt;/h2&gt;

&lt;p&gt;Jekyll’s documention has instructions for importing content from a number of other CMS, but I lost a good hour or so trying to use the &lt;a href=&quot;http://import.jekyllrb.com/docs/wordpress/&quot;&gt;WordPress importer script&lt;/a&gt; due to missing dependencies. I gradually found and installed them by running the script and responding to every failure by installing whatever dependency it complained about, but once they were all installed it still couldn’t connect to the MySQL database running on my local apache webserver. It was probably an issue with my apache setup, but I didn’t want to sink any more time in to troubleshooting.&lt;/p&gt;

&lt;p&gt;Instead, I used &lt;a href=&quot;https://import.jekyllrb.com/docs/wordpressdotcom/&quot;&gt;Jekyll’s wordpress.com importer&lt;/a&gt; - it imports content from an .xml file you generate using the export tool in WordPress’ admin panel. I did one export for posts, and another for my notes custom post type. Once my notes were imported, I defined them as a &lt;a href=&quot;https://jekyllrb.com/docs/collections/#using-collections&quot;&gt;collection&lt;/a&gt; in Jekyll’s config file.&lt;/p&gt;

&lt;h2 id=&quot;syntax-highlighting&quot;&gt;Syntax highlighting&lt;/h2&gt;

&lt;p&gt;Several of my posts contain code snippets, and syntax highlighting makes code a lot easier to read. On my WordPress site I used a &lt;a href=&quot;https://wordpress.org/plugins/mivhak/&quot;&gt;plugin&lt;/a&gt; to add highlighting to code snippets in my posts, but Jekyll has &lt;a href=&quot;https://jekyllrb.com/docs/templates/#code-snippet-highlighting&quot;&gt;highlighting built in&lt;/a&gt;. All I had to do to style my code snippets was choose from a &lt;a href=&quot;https://github.com/richleland/pygments-css/&quot;&gt;selection of themes&lt;/a&gt; and add the CSS to my build process.&lt;/p&gt;

&lt;h2 id=&quot;keeping-the-dev-process-fast&quot;&gt;Keeping the dev process fast&lt;/h2&gt;

&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;$ jekyll build&lt;/code&gt;, once I’d imported a few posts (and many notes), got a little slow as it rebuilds the entire &lt;strong&gt;_site/&lt;/strong&gt; directory from scratch every time a file is saved. To make development less frustrating, I spent a little while configuring Gulp to handle Sass processing so that I don’t have a long wait every time I save changes in a Sass file. With Gulp configured to watch Sass, JavaScript, and image files I have almost instant Browsersync refreshes, with the longer waits only when Jekyll rebuilds pages based on my changes to markdown files.&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;I’m really pleased with the migration from WordPress to Jekyll. I get to write my posts and pages in markdown and the output is a collection of simple HTML files I can &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;$ scp&lt;/code&gt; up to my webserver in seconds. There are no CMS or plugin updates to worry about, no database to keep synced between the live site and my local dev environment, and my site has never been faster:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/assets/img/media/speed_test_full.webp&quot;&gt;
    &lt;picture&gt;
        &lt;source srcset=&quot;/assets/img/media/speed_test_full.webp&quot; media=&quot;(min-width: 750px)&quot; /&gt;
        &lt;img class=&quot;aligncenter&quot; src=&quot;/assets/img/media/speed_test_small.webp&quot; alt=&quot;A screenshot of a speed test on mikebabb.com&quot; /&gt;
    &lt;/picture&gt;
&lt;/a&gt;&lt;/p&gt;

            </description>
            <pubDate>Mon, 25 Jun 2018 00:00:00 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/migrating-from-wordpress-to-jekyll/
            </guid>
        </item>
        
        <item>
            <title>Better user experiences with Progressive Web Apps</title>
            <link>
                https://mikebabb.com/blog/better-user-experiences-with-progressive-web-apps/
            </link>
            <description>
                &lt;p&gt;&lt;em&gt;This post was originally written for &lt;a href=&quot;https://www.craftedbygc.com/better-user-experiences-progressive-web-apps/&quot;&gt;Green Chameleon&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The term &quot;progressive web app&quot; (PWA) doesn&#39;t necessarily describe an &lt;em&gt;app&lt;/em&gt; at all - it&#39;s really a label that can be applied to any website that implements a particular set of technologies. Making your site a PWA has a lot of benefits, and can even be a better choice than building a dedicated mobile app for Android or iOS.&lt;/p&gt;
&lt;h2&gt;Why build a progressive web app?&lt;/h2&gt;
&lt;p&gt;PWA techniques enable websites and apps to offer many of the benefits of a mobile (or &quot;native&quot;) app, without the drawbacks. They can be installed on a user&#39;s device so that they have an icon on the home screen that a user can tap to launch them, they can load pages faster than non-PWA sites using a local cache, and they can even provide some of their functionality offline when a user doesn&#39;t have an internet connection at all.&lt;/p&gt;
&lt;p&gt;Drawbacks of native apps include a high &quot;barrier to entry&quot; (a user has to go to an app store and install it first to use it, and many people simply &lt;a href=&quot;https://techcrunch.com/2017/08/25/majority-of-u-s-consumers-still-download-zero-apps-per-month-says-comscore/&quot;&gt;don&#39;t do that very often&lt;/a&gt;), and the high cost of developing and maintaining apps for more than one platform (having an iOS version and an Android version, for example).&lt;/p&gt;
&lt;p&gt;PWAs, however, are built once using web technologies rather than platform-specific code, and they work anywhere - on an iPhone, an Android device, a desktop or laptop web browser, any device that can browse the internet and supports the technologies that define a progressive web app.&lt;/p&gt;
&lt;p&gt;Thanks to recent advances in browser technology, PWAs have access to powerful features that were previously only available to native apps - things like sending notifications, background syncing of data, and location awareness. All this while maintaining the core strengths of the web - websites work on any platform, and any page can have a unique, permanent URL that can be linked to.&lt;/p&gt;
&lt;h2&gt;What makes something a progressive web app?&lt;/h2&gt;
&lt;p&gt;For a site or app to be considered a PWA, it must:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Be served securely (e.g. over HTTPS)&lt;/li&gt;
&lt;li&gt;Include a manifest file&lt;/li&gt;
&lt;li&gt;Register a service worker&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;1. Be secure&lt;/h3&gt;
&lt;p&gt;Progressive web apps must be served over a secure connection to users - that is, your site or app must have a valid certificate and be served over HTTPS. HTTPS is required to get access to powerful browser functions like geolocation (working out where a user is by using their device&#39;s GPS or network connection). Another reason for the security requirement is that one of the other major components of PWAs, the service worker, is incredibly powerful and there are security and privacy implications if the connection between your site and the user&#39;s device isn&#39;t encrypted.&lt;/p&gt;
&lt;h3&gt;2. Include a manifest&lt;/h3&gt;
&lt;p&gt;A manifest file tells the browser several things about your site or app - its name, description, what colour you&#39;d like associated with it for things like loading screens, where to find an icon to use on the home screens of devices, and more.&lt;/p&gt;
&lt;p&gt;Once a correctly-formatted manifest file is available, any user visiting your site will be presented with the option to add it to their home screen. If the user agrees to the prompt your site or app will install itself on their device, without sending them to an app store and making them wait for a download and installation to complete. It&#39;s all done in a few seconds from a single prompt on arrival at any page of your site. This is the lowered &quot;barrier to entry&quot; referred to earlier - the whole process is much less disjointed than when a user taps one of those nagging &quot;install our app&quot; banners we&#39;ve all seen at the top of some websites.&lt;/p&gt;
&lt;h3&gt;3. Register a service worker&lt;/h3&gt;
&lt;p&gt;A PWA must also register what&#39;s called a service worker, and this is where the real power of PWAs comes in to play. A service worker is a script that can do any number of things once set up. Common uses include providing a custom fallback page for users who are offline (a much better user experience than the dreaded &quot;no connection&quot; error screen from the browser), significantly speeding up page load times by managing a cache of pages and assets, and storing data that is computationally expensive to calculate (like location data) for enhanced performance.&lt;/p&gt;
&lt;h2&gt;What can progressive web apps do?&lt;/h2&gt;
&lt;p&gt;We&#39;ve already touched on one of the main benefits of progressive web apps - being installed to the user&#39;s device with an icon on the home screen for increased convenience and accessibility.&lt;/p&gt;
&lt;p&gt;We&#39;re only beginning to explore the potential uses for service workers in PWAs as the technology is relatively new, but some of the more popular uses for them are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Enabling users to view content they&#39;ve accessed before when they no longer have a network connection. For example, consider a scenario where a user plans an itinerary for a trip on a site, and then that user temporarily loses signal while they&#39;re out and about. If the site was a PWA and it stored that itinerary in a cache on the user&#39;s device, they could look it up again while on the road by revisiting the site even without a network connection.&lt;/li&gt;
&lt;li&gt;Completing processes that the user wasn&#39;t able to while temporarily offline - filling out a contact form on a website perhaps, or even a checkout processes on an e-commerce site. If a user tries to complete a purchase or submit a form while offline, a PWA&#39;s service worker could store the contents of their basket, or the data they entered in to the form, and complete those processes once it detects the user is back online.&lt;/li&gt;
&lt;li&gt;Significantly speeding up page load times by caching pages and assets like images, styling, and scripts, so that they don&#39;t get fetched again every time a user navigates from one page to another. A variety of &quot;caching strategies&quot; can be used to set up scenarios like caching pages as they&#39;re accessed for faster retrieval next time, and offline usage.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Summary&lt;/h2&gt;
&lt;p&gt;Progressive web apps are an exciting new innovation, allowing websites and web apps to offer native app-like capabilities and user experiences while maintaining the core strengths of the web - independence from any one platform, interoperability, and page linking.&lt;/p&gt;
&lt;p&gt;All major mobile browsers now support the technology in some form, so why not begin exploring the ways you can use it to improve the experiences of your users?&lt;/p&gt;

            </description>
            <pubDate>Tue, 27 Mar 2018 12:40:22 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/better-user-experiences-with-progressive-web-apps/
            </guid>
        </item>
        
        <item>
            <title>Noteworthy</title>
            <link>
                https://mikebabb.com/blog/noteworthy/
            </link>
            <description>
                &lt;p&gt;I&#39;ve been actively reducing the time I spend on Twitter lately after noticing that more often than not it leaves me feeling sad, frustrated, or even angry. I joined years ago to keep up with tech news, network with other web developers, and share articles and tips. Twitter has undergone a lot of changes in the time I&#39;ve been using it, and I&#39;ve found &lt;a href=&quot;https://mastodon.technology/about/more&quot;&gt;a tech-centric Mastodon instance&lt;/a&gt; that&#39;s a much more pleasant venue for the kinds of discussions and link-sharing that I initially signed up to Twitter for, so I&#39;ve been using that instead.&lt;/p&gt;
&lt;p&gt;The shift to Mastodon got me thinking a bit more about how I can keep track of all the links and snippets of news that interest me enough to tweet/toot them, since even on that decentralised network I don&#39;t have any control over the content if anything should happen to my account or the instance. So I&#39;ve added &lt;a href=&quot;&quot;&gt;notes&lt;/a&gt; to my website - a place to collect links and thoughts that aren&#39;t long or detailed enough to be blog posts. Twitter and Mastodon are microblogging platforms after all, so why not microblog on my own domain too?&lt;/p&gt;

            </description>
            <pubDate>Wed, 07 Feb 2018 17:08:07 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/noteworthy/
            </guid>
        </item>
        
        <item>
            <title>Computing on a budget: buying a £200 laptop that doesn't suck</title>
            <link>
                https://mikebabb.com/blog/computing-on-a-budget-buying-a-200-laptop-that-doesnt-suck/
            </link>
            <description>
                &lt;p&gt;If you walk in to a high street store and tell them you&#39;re looking for a laptop that&#39;s fast, built to last, and your budget is around the £200 mark, you&#39;ll probably give the salespeople a good chuckle. Conventional wisdom is that when buying laptops, you either spend big on a Macbook or a similarly top of the line ultrabook, or you spend somewhere around £500 - £600 on something that feels a bit cheap and plasticky, but gets the job done. In the £200 range and below, you have either Chromebooks (which might be a bit restrictive depending on what you want to do with them), or utter junk. I recently discovered there&#39;s a better way though, and I&#39;m a total convert to the &lt;strong&gt;used ThinkPad&lt;/strong&gt; way from now on.&lt;/p&gt;
&lt;h2&gt;Why used ThinkPads?&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;They&#39;re cheap and plentiful&lt;/li&gt;
&lt;li&gt;They&#39;re &lt;em&gt;fast&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;They&#39;re sturdy and serviceable&lt;/li&gt;
&lt;li&gt;They&#39;re better for the environment?&lt;/li&gt;
&lt;li&gt;They&#39;re &lt;em&gt;cool&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cheap and plentiful&lt;/h2&gt;
&lt;p&gt;I mean &quot;cheap&quot; as in &quot;affordable&quot; here, not as in &quot;low quality&quot;. Businesses acquire enormously powerful ThinkPads in large batches for their staff to use, often on some sort of lease agreement that lasts three or four years. When the lease is up, they all get replaced with a new model, and the &quot;old&quot; ThinkPads are often decommissioned by the business and released on to the second hand market. You&#39;ll find a lot of them on eBay at significantly lower prices than brand new consumer laptops.&lt;/p&gt;
&lt;h2&gt;Fast&lt;/h2&gt;
&lt;p&gt;When businesses first acquire a batch of ThinkPads, they tend to go for newer models with powerful components, and then replace them a few years later with the latest and greatest. The top spec laptops of a few years ago still pack far more power than most consumers need today, and more often than not they match or surpass the performance of midrange or budget offerings bought new.&lt;/p&gt;
&lt;h2&gt;Sturdy and serviceable&lt;/h2&gt;
&lt;p&gt;ThinkPads are built to last. They need to endure years of being hauled around by professionals and are true workhorse machines. As they need to be kept in good working order by corporate IT teams, they&#39;re also very easy to open up and service, and replacement parts are readily available. This is the complete opposite to the way ultrabooks are designed - you need to take them to certified technicians (or an Apple store in the case of Macbooks) for even simple maintenance tasks like upgrading memory or replacing the battery.&lt;/p&gt;
&lt;h2&gt;Better for the environment?&lt;/h2&gt;
&lt;p&gt;I&#39;ve put a question mark here because it probably is better for the environment to buy a second hand laptop than a brand new one, up to a point. Many of the recent advancements in components have been in energy efficiency rather than raw power, and older chips tend to be less energy efficient than newer ones. That said, I&#39;ve no idea what the age cutoff might be before you start offsetting the benefits of buying used over new because of less efficient components.&lt;/p&gt;
&lt;h2&gt;Cool&lt;/h2&gt;
&lt;p&gt;I mean, just &lt;a href=&quot;https://duckduckgo.com/?q=t430s&amp;amp;t=h_&amp;amp;iar=images&amp;amp;iax=images&amp;amp;ia=images&quot;&gt;look&lt;/a&gt; &lt;a href=&quot;https://duckduckgo.com/?q=t420&amp;amp;t=h_&amp;amp;iar=images&amp;amp;iax=images&amp;amp;ia=images&quot;&gt;at&lt;/a&gt; &lt;a href=&quot;https://duckduckgo.com/?q=x220&amp;amp;t=h_&amp;amp;iar=images&amp;amp;iax=images&amp;amp;ia=images&quot;&gt;them&lt;/a&gt;. Slightly retro, utilitarian design, sharp edges, little blinking indicator LEDs everywhere. So much cooler than Macbook wannabes. The keyboards feel great, too.&lt;/p&gt;
&lt;h2&gt;What to look out for&lt;/h2&gt;
&lt;p&gt;You can pick up a bargain if you know what you&#39;re looking for, and don&#39;t buy more computer than you need. As an added bonus, you can save even more money by buying a used ThinkPad that is a little below the spec you&#39;d like, and upgrading it yourself. In general though, make sure:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You&#39;re buying from a reputable seller&lt;/li&gt;
&lt;li&gt;There&#39;s no supervisor password in the BIOS that&#39;ll stop you doing things - more details in &lt;a href=&quot;http://ktgee.net/post/49423737148/thinkpad-guide&quot;&gt;this buyer&#39;s guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Computrace anti-theft software is &lt;strong&gt;not active&lt;/strong&gt; - details on what it does and why this is important in &lt;a href=&quot;https://forum.thinkpads.com//viewtopic.php?t=114641&quot;&gt;this forum post&lt;/a&gt;. The last thing you need with your bargain new (old) laptop is the original owner being able to track and remotely deactivate your computer, or spy on you&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Your options for £200 or less&lt;/h2&gt;
&lt;p&gt;Judging by eBay listings at the time of writing, up to £200 will likely get you:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A ThinkPad T410, T420, T430, X220, or similar&lt;/li&gt;
&lt;li&gt;Intel Core i5 processor&lt;/li&gt;
&lt;li&gt;4 GB - 8GB of RAM&lt;/li&gt;
&lt;li&gt;A reasonable size standard hard drive, or a small (but much faster) solid state one&lt;/li&gt;
&lt;li&gt;HD screen resolution (1366 x 768) as a minimum, but quite likely HD+ (1600 x 900)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These are perfectly reasonable specs for anyone with modest requirements. Web browsing, emailing, document editing, social media, watching movies, even playing games that aren&#39;t too demanding are all possible with these specs. It&#39;s worth noting though that the difference between a laptop with 4 GB of RAM and a standard hard drive, and another with 8 GB and a solid state drive (SSD), is night and day. Startup times can go from minutes to twenty seconds or less with the addition of some RAM and an SSD.&lt;/p&gt;

            </description>
            <pubDate>Thu, 12 Oct 2017 13:05:59 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/computing-on-a-budget-buying-a-200-laptop-that-doesnt-suck/
            </guid>
        </item>
        
        <item>
            <title>Using Grunt to generate WebP image assets</title>
            <link>
                https://mikebabb.com/blog/using-grunt-to-generate-webp-image-assets/
            </link>
            <description>
                &lt;p&gt;I&#39;ve previously written about &lt;a href=&quot;/blog/responsive-images-smaller-page-sizes-with-the-picture-element-and-webp/&quot;&gt;using &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; and WebP to dramatically reduce the weight of your pages&lt;/a&gt;, but if all your assets are PNG or JPG you might need a way to generate WebP images from them. There&#39;s probably a plugin for your image editor of choice that can export your images as WebP, but this kind of repetitive manual job is exactly what task runners like &lt;a href=&quot;https://gruntjs.com&quot;&gt;Grunt&lt;/a&gt; and &lt;a href=&quot;http://gulpjs.com&quot;&gt;Gulp&lt;/a&gt; are really good at.&lt;/p&gt;
&lt;p&gt;If you&#39;ve not used one before, the gist of a task runner is that you equip it with a set of capabilities by installing modules, and then give it a list of tasks to perform. In your task runner&#39;s configuration you tell it where to find your project files, what tasks you&#39;d like to run against them, and where to place any resulting new files.&lt;/p&gt;
&lt;p&gt;In this brief overview, we&#39;ll use my favourite task runner, Grunt, to take all the JPG and PNG images in a project and output WebP versions of them in a separate folder.&lt;/p&gt;
&lt;h2&gt;Getting started: installing dependencies&lt;/h2&gt;
&lt;p&gt;Grunt requires &lt;a href=&quot;https://nodejs.org&quot;&gt;Node.js&lt;/a&gt; and &lt;a href=&quot;https://www.npmjs.com&quot;&gt;NPM&lt;/a&gt;. You can find detailed instructions on getting Grunt installed in &lt;a href=&quot;https://gruntjs.com/getting-started&quot;&gt;its documentation&lt;/a&gt;. Grunt uses two files in your project: &lt;code&gt;package.json&lt;/code&gt; for a list of modules to install, and &lt;code&gt;gruntfile.js&lt;/code&gt; for instructions on what tasks to perform. The task we&#39;re going to have it carry out is automated bulk conversion of image files to the WebP format, and we&#39;ll be using a module called &lt;a href=&quot;https://www.npmjs.com/package/grunt-cwebp&quot;&gt;grunt-cwebp&lt;/a&gt; to do that.&lt;/p&gt;
&lt;h2&gt;Configuring Grunt: package.json&lt;/h2&gt;
&lt;p&gt;We need a &lt;code&gt;package.json&lt;/code&gt; file that lists the grunt-cwebp module as a project dependency for NPM to install it for us. Here&#39;s a quick example file that will install grunt-cwebp when we run the command &lt;code&gt;npm install&lt;/code&gt; in the terminal from the root of our project:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-json&quot; data-lang=&quot;json&quot;&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;name&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;my-package-file&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;version&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;1.0.0&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;description&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;A quick demonstration of using Grunt to convert image files&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;author&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Mike Babb&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;repository&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;type&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;git&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;url&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;dependencies&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;grunt&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;~1.0.1&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;load-grunt-tasks&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;^3.5.0&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;devDependencies&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;grunt-cwebp&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;2.1.0&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;h2&gt;Configuring Grunt: gruntfile.js&lt;/h2&gt;
&lt;p&gt;With our node module installed, we now need a &lt;code&gt;gruntfile.js&lt;/code&gt; to define the WebP conversion task we&#39;d like Grunt to perform. In the sample file below, we configure a task named &lt;code&gt;cwebp&lt;/code&gt;, with parameters that specify the quality we would like to maintain during the conversion, where to find the files we&#39;d like converted, the file formats to convert, and finally a destination folder for the resulting WebP images.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-javascript&quot; data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;nx&quot;&gt;module&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;exports&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;grunt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; 
    &lt;span class=&quot;nx&quot;&gt;grunt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;initConfig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;({&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;pkg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;grunt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;file&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;readJSON&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;package.json&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; 
        &lt;span class=&quot;c1&quot;&gt;// WebP conversion task&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;cwebp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
            &lt;span class=&quot;na&quot;&gt;dynamic&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                &lt;span class=&quot;na&quot;&gt;options&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                    &lt;span class=&quot;c1&quot;&gt;// Quality of WebP images: &lt;/span&gt;
                    &lt;span class=&quot;na&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;75&lt;/span&gt; 
                &lt;span class=&quot;p&quot;&gt;},&lt;/span&gt; 
                &lt;span class=&quot;na&quot;&gt;files&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[{&lt;/span&gt;
                    &lt;span class=&quot;c1&quot;&gt;// Output a new WebP file for every source image:&lt;/span&gt;
                     &lt;span class=&quot;na&quot;&gt;expand&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;c1&quot;&gt;// Where to find the images we&#39;d like to be converted: &lt;/span&gt;
                     &lt;span class=&quot;na&quot;&gt;cwd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;images/img_original/&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;c1&quot;&gt;// The file formats to convert: &lt;/span&gt;
                     &lt;span class=&quot;na&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;**/*.{png,jpg,gif}&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; 
                     &lt;span class=&quot;c1&quot;&gt;// Where to place the resulting WebP files: &lt;/span&gt;
                     &lt;span class=&quot;na&quot;&gt;dest&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;images/img_webp/&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt; 
                &lt;span class=&quot;p&quot;&gt;}]&lt;/span&gt; 
            &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
        &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;});&lt;/span&gt; 
    &lt;span class=&quot;nx&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;load-grunt-tasks&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;grunt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;// Run the task when we type &quot;grunt dev&quot; in to the terminal&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;grunt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;registerTask&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;dev&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;cwebp:dynamic&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]);&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;};&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;We&#39;ll place our original JPG and PNG images in the folder specified under &lt;code&gt;cwd&lt;/code&gt; in the gruntfile: &lt;code&gt;images/img_original&lt;/code&gt;. To have Grunt do all the image conversion heavy lifting for us, we run the command &lt;code&gt;grunt cwebp:dynamic&lt;/code&gt; from the terminal, and watch as it takes our originals, crunches them to the quality specified, and drops shiny new WebP versions in the &lt;code&gt;images/img_webp&lt;/code&gt; folder. And we&#39;re done! We now have a new WebP file for every source file in the &lt;code&gt;images/img_original&lt;/code&gt; folder.&lt;/p&gt;
&lt;p&gt;You might have noticed that we defined a task named &lt;code&gt;dev&lt;/code&gt; at the bottom of our gruntfile, which runs &lt;code&gt;cwebp:dynamic&lt;/code&gt; for us when we run the command &lt;code&gt;grunt dev&lt;/code&gt; in the terminal. This might seem unnecessary for a single task, but on more complicated projects shortcut commands like &lt;code&gt;dev&lt;/code&gt; and &lt;code&gt;dist&lt;/code&gt; are used to run a whole series of commands one after the other, without typing them all in to the terminal. This is particularly handy when you have lots of Grunt tasks set up to do things like checking your JavaScript files for errors, concatenating and minifying JavaScript and CSS files, or transpiling things like &lt;a href=&quot;http://sass-lang.com/&quot;&gt;Sass&lt;/a&gt; to base CSS.&lt;/p&gt;
&lt;h2&gt;A note on image quality&lt;/h2&gt;
&lt;p&gt;In our gruntfile we set the desired quality of our new WebP images at 75. Depending on the original source image, I&#39;ve found this level to maintain a virtually indistinguishable visual quality with a smaller file size, but it&#39;s worth noting that not all images will be smaller in WebP format than they might be in JPG or PNG. Experiment with it, and if you find that the WebP version of a given image is the same size (or perhaps larger!) than the source JPG or PNG, you&#39;d be better off linking to the original source file in your markup instead. Where a smaller file size is realised though, WebP is an excellent way to reduce page weights, sometimes &lt;a href=&quot;/blog/responsive-images-smaller-page-sizes-with-the-picture-element-and-webp/&quot;&gt;quite significantly&lt;/a&gt;.&lt;/p&gt;

            </description>
            <pubDate>Fri, 17 Mar 2017 15:34:43 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/using-grunt-to-generate-webp-image-assets/
            </guid>
        </item>
        
        <item>
            <title>Enhancing security and privacy with Let's Encrypt</title>
            <link>
                https://mikebabb.com/blog/enhancing-security-and-privacy-with-lets-encrypt/
            </link>
            <description>
                &lt;p&gt;&lt;em&gt;This post was originally written for &lt;a href=&quot;https://www.craftedbygc.com/enhancing-security-privacy-lets-encrypt/&quot;&gt;Green Chameleon&lt;/a&gt;.&lt;br /&gt;
&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;It used to be that strong security was only considered a necessity for e-commerce sites, or sites handling sensitive personal information - but that perception is rapidly changing.&lt;/p&gt;
&lt;p&gt;Securing a site with an HTTPS connection was once seen as an unnecessary expense unless there was a specific business reason for doing it, or a legal requirement - operating a checkout system and taking payment details from users, for instance. Now that security and user privacy are increasingly hot topics, creating a safe and trusted site is vital. There are other benefits, too: securing your site with HTTPS gives it a minor SEO boost with Google&#39;s algorithm, and in Chrome sites that are using plain old HTTP now display a little &quot;info&quot; icon in the address bar that warns users that their &quot;connection to this site is not private&quot; when clicked.&lt;/p&gt;
&lt;h2&gt;How are websites encrypted?&lt;/h2&gt;
&lt;p&gt;One of the steps taken to secure a site is the use of an SSL/TLS certificate to verify the identity of the server where the site is hosted, and once this identity is confirmed, web browsers are able to establish a secure, encrypted connection to the server. Many sites sport a padlock icon next to their address in your browser’s address bar: this icon means that the site has presented your browser with an SSL/TLS certificate that has been verified, and that your connection is secure. You can usually click the icon to see more information about the validity of the certificate, and the type of encryption protecting your connection to the site.&lt;/p&gt;
&lt;p&gt;Virtually all web hosting providers sell SSL/TLS certificates, and while prices vary from provider to provider, many website owners simply leave their sites unencrypted since it’s an optional (and continual) expense because of the way SSL/TLS certificates are issued and renewed.&lt;/p&gt;
&lt;h2&gt;Free SSL/TLS Certificates with Let’s Encrypt&lt;/h2&gt;
&lt;p&gt;To rectify this situation, the Internet Security Research Group (ISRG) set about creating a free, open, and importantly automated Certificate Authority called &lt;a href=&quot;https://letsencrypt.org/&quot;&gt;Let’s Encrypt&lt;/a&gt;. By removing the financial barrier and automating the process of issuing and renewing SSL/TLS certificates, ISRG aims to encourage much wider adoption of encryption on the web, hopefully making it a safer place. It seems to be working: as of early November 2016, Let’s Encrypt is securing an incredible 15 million domains, and &lt;a href=&quot;https://letsencrypt.org/stats/&quot;&gt;the number is climbing&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;GC ♥ 🔒&lt;/h2&gt;
&lt;p&gt;Here at Green Chameleon we’ve configured our webservers to use Let’s Encrypt for SSL/TLS certificate management, and are pleased to offer free HTTPS to all clients on our managed VPS hosting service.&lt;/p&gt;

            </description>
            <pubDate>Wed, 16 Nov 2016 10:13:22 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/enhancing-security-and-privacy-with-lets-encrypt/
            </guid>
        </item>
        
        <item>
            <title>Responsive images: Smaller page sizes with the picture element and WebP</title>
            <link>
                https://mikebabb.com/blog/responsive-images-smaller-page-sizes-with-the-picture-element-and-webp/
            </link>
            <description>
                &lt;p&gt;At a recent &lt;a href=&quot;http://www.meetup.com/bristolwebperf/&quot;&gt;Bristol Web Performance&lt;/a&gt; meetup &lt;a href=&quot;http://www.brucelawson.co.uk/&quot;&gt;Bruce Lawson&lt;/a&gt; gave a talk on responsive image techniques using the &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; element he devised and had added to the HTML spec with help from &lt;a href=&quot;https://responsiveimages.org/&quot;&gt;some other clever people&lt;/a&gt;. I happened to be starting work on a project that&#39;s particularly image-heavy for a client, so it seemed like a great opportunity to try out Bruce&#39;s techniques and see what kind of bandwidth savings I could get.&lt;/p&gt;
&lt;p&gt;The purpose and syntax of the &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; element has been covered in a lot of detail &lt;a href=&quot;https://dev.opera.com/articles/responsive-images/&quot;&gt;elsewhere&lt;/a&gt;, so I&#39;ll focus on my actual results here. Bruce talked about two ways to use the &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; element to reduce page sizes and save bandwidth:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Serving smaller image assets to devices with small screens, like smartphones, and&lt;/li&gt;
&lt;li&gt;Replacing JPG and PNG images with Google&#39;s &lt;a href=&quot;https://developers.google.com/speed/webp/&quot;&gt;WebP&lt;/a&gt; format for browsers that support it&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It&#39;s worth noting the &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; element is a &lt;em&gt;progressive enhancement&lt;/em&gt;, so you can happily use it safe in the knowledge that &lt;a href=&quot;http://caniuse.com/#search=picture&quot;&gt;Internet Explorer users&lt;/a&gt; will still see regular old &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; elements. Browsers that don&#39;t understand the &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; element, or indeed the WebP image format when delivered via &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt;, will still render a functional page with no missing images.&lt;/p&gt;
&lt;p&gt;The other thing to note is that WebP images are, on average, around &lt;em&gt;30% smaller in filesize&lt;/em&gt; than JPG and PNG images of the same quality and physical dimensions. So what did I apply these techniques to?&lt;/p&gt;
&lt;h2&gt;The Project&lt;/h2&gt;
&lt;p&gt;To put the results in context, the page being built is a homepage of sorts featuring 9 or 10 separate graphics, all PNG with transparencies, animated with CSS3 keyframe animations. That&#39;s a pretty heavy page, and a perfect candidate for testing &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; and WebP!&lt;/p&gt;
&lt;h2&gt;Optimisations with &amp;lt;picture&amp;gt;&lt;/h2&gt;
&lt;p&gt;The original page weighs in at a hefty 779 KB. Here&#39;s how each image is served using a plain old&lt;code&gt; &amp;lt;img&amp;gt;&lt;/code&gt; element, with no consideration given to data usage:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-html&quot; data-lang=&quot;html&quot;&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;img&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;src=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;images/img_original/raspberry.png&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;alt=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;An illustration of some raspberries&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Serving a page stuffed with these to smartphones would be borderline criminal, so I used the&lt;code&gt; &amp;lt;picture&amp;gt;&lt;/code&gt; element as described in scenario 1 above to only serve full size PNG images to &quot;large&quot; devices with a minimum browser window width of 750px. 750px is an entirely arbitrary value chosen to try and broadly account for smartphones of varying sizes.&lt;/p&gt;
&lt;p&gt;Using &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; to serve smaller PNG images to smartphones, the page size went down to 380 KB. That&#39;s a saving of almost 51%, and easily achieved with just a small amendment to our &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; code:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-html&quot; data-lang=&quot;html&quot;&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;picture&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;source&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;srcset=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;images/img_original/raspberry.png&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;media=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;(min-width: 750px)&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;img&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;src=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;images/img_original/raspberry_small.png&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;alt=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;An illustration of some raspberries&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;We&#39;ve halved the page size for smartphones by doing no more than wrapping &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; elements in&lt;code&gt; &amp;lt;picture&amp;gt;&lt;/code&gt;, and providing smaller images for browser windows narrower than 750px to fall back to.&lt;/p&gt;
&lt;h2&gt;Further savings with WebP, and combining techniques&lt;/h2&gt;
&lt;p&gt;That 51% saving is huge, but we can squeeze a little more out of this page. In scenario 2, we offer browsers that support the WebP image format an alternative to PNG. Unfortunately WebP &lt;a href=&quot;http://caniuse.com/#search=webp&quot;&gt;isn&#39;t as well supported&lt;/a&gt; as the &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; element we&#39;ll use to serve it, but that&#39;s okay. Because &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; is a progressive enhancement, we can use it to fall back to PNG for any browser that can&#39;t take advantage of the smaller filesizes of WebP:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-html&quot; data-lang=&quot;html&quot;&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;picture&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;source&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;srcset=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;images/img_webp/raspberry.webp&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;type=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;image/webp&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;img&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;src=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;images/img_original/raspberry.png&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;alt=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;An illustration of some raspberries&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;With this approach, our 779 KB original page weight is reduced to 480 KB; a big saving achieved simply by offering WebP images instead of PNGs to browsers that can render them. But for maximum savings, we really ought to combine both scenarios and offer large and small WebP images to supporting browsers depending on screen size, while falling back to large and small PNG images for any that don&#39;t. Here is our final code block that gives us the best of both worlds:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-html&quot; data-lang=&quot;html&quot;&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;picture&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;source&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;srcset=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;images/img_webp/raspberry.webp&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;media=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;(min-width: 750px)&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;type=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;image/webp&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;source&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;srcset=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;images/img_original/raspberry.png&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;media=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;(min-width: 750px)&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;source&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;srcset=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;images/img_webp/raspberry_small.webp&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;type=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;image/webp&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;img&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;src=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;images/img_original/raspberry_small.png&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;alt=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;An illustration of some raspberries&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;By combining both techniques, our original page weight of 779 KB has been reduced to 480 KB for WebP-loving browsers, and for smartphones that can render the format the page weight has come down from 380 KB to just 234 KB. When compared to our original completely unoptimised page, a WebP-supporting smartphone is now downloading a whopping 70% less data to render the page.&lt;/p&gt;
&lt;h2&gt;Summary and thoughts&lt;/h2&gt;
&lt;p&gt;Those page size numbers again:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Serving PNG: 779 KB&lt;/li&gt;
&lt;li&gt;Serving small PNG to smartphones: 380 KB&lt;/li&gt;
&lt;li&gt;Serving WebP: 480 KB&lt;/li&gt;
&lt;li&gt;Serving small WebP to smartphones: 234 KB&lt;/li&gt;
&lt;li&gt;Total saving from unoptimised &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; to responsive WebP: 70%&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There are a couple of points to keep in mind at the end of our responsive image page optimisation adventure. Firstly, we&#39;re assuming a starting point of a &lt;em&gt;completely unoptimised&lt;/em&gt; page. That of course isn&#39;t necessarily the case with whatever you&#39;re working on at the moment. Perhaps you&#39;ve developed your own little hacks to deliver responsive images to smaller devices without just serving giant images and not worrying about download sizes, or you&#39;re using some sort of javascript solution to gather information about the browser and try to have it download more suitable assets on page load. Hopefully though, now that &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; has matured and gained decent browser support having been adopted in to the HTML spec, such hacks and workarounds will no longer be necessary.&lt;/p&gt;
&lt;p&gt;Secondly, this is clearly an extreme example of the kinds of page weight savings you can get using &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; and WebP. The design of the page in question has a huge effect on the savings you&#39;ll be able to make. This one uses multiple very large PNG images, and where more typical web pages might include fewer images, or images that are generally smaller, the savings to be achieved will scale down accordingly. That said, you&#39;ll still see savings worth having even with just one or two small JPGs on the page.&lt;/p&gt;
&lt;p&gt;Many thanks to Bruce Lawson for the talk that got me experimenting with &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; and WebP, and for the nudge to blog about my findings!&lt;/p&gt;

            </description>
            <pubDate>Tue, 05 Jul 2016 20:17:05 +0000</pubDate>
            <guid>
                https://mikebabb.com/blog/responsive-images-smaller-page-sizes-with-the-picture-element-and-webp/
            </guid>
        </item>
        
    </channel>
</rss>