<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en_GB">
  <title>Ben Hoskins Posts</title>
  <subtitle>A site by Ben Hoskins, a consultant software engineer &amp; technical director for digital businesses in and around London, UK.</subtitle>
  <link href="https://benhoskins.uk/feed/index.xml" rel="self" />
  <link href="https://benhoskins.uk/" />
  <updated>2026-06-25T00:00:00Z</updated>
  <id>https://benhoskins.uk/</id>
  <author>
    <name>Ben Hoskins</name>
  </author><entry>
    <title>Domain Name Change benhoskins.dev</title>
    <link href="https://benhoskins.uk/domain-name-change-uk/" />
    <updated>2026-06-25T00:00:00Z</updated>
    <id>https://benhoskins.uk/domain-name-change-uk/</id>
    <content type="html">&lt;p&gt;I&#39;ve moved this site away from &quot;benhoskins.dev&quot; to &quot;benhoskins.uk&quot;. The old domain redirects here to the new UK domain.&lt;p&gt;This takes the site domain away from Google (owners of .dev) and the HSTS preload list - which made HTTP almost impossible.&lt;p&gt;The old domain will still be used for emails until I migrate emails over also.</content>
  </entry><entry>
    <title>HTTP Decentralised Internet for Resilience</title>
    <link href="https://benhoskins.uk/http/" />
    <updated>2026-06-21T00:00:00Z</updated>
    <id>https://benhoskins.uk/http/</id>
    <content type="html">&lt;p&gt;The internet I grew up with certainly shaped who I am today in a fundamental way.&lt;p&gt;Free and easy access to &lt;em&gt;almost&lt;/em&gt; the entire sum of all human knowledge, and the various communities outside of my own, was an unparalleled experience. And sometimes, in our modern world I feel this freedom slipping away. As the internet becomes an essential part of modern life, it also becomes the primarily a tool for manipulation of the masses, controlled by the few.&lt;p&gt;I&#39;ve noticed a tend among some people like myself to go offline. Offline is the new premium after all, or, so I&#39;m told.&lt;p&gt;But, we can choose the tools and services we want to support, and even push for a more free and decentralised place to learn and build once again.&lt;p&gt;The core issue with websites specifically, is commerical and governmental centeralisation, along with the lack of resiliency this brings. Although I&#39;m sure it&#39;s often not though mallace but through a lack of competence in our leadership, (and sometimes malicious profit hoarding), recent political moves tend to weaken our freedomes and build non-resilient technical systems IMO.&lt;p&gt;Apart from the everyday services we can choose to use or not. The core concerns for resilient and free communication is actually the backbone infrastructure of the internet:&lt;ul&gt;&lt;li&gt;DNS&lt;li&gt;Commerically Centralised Networks&lt;li&gt;Protocol and the Impending HTTPS Collapse&lt;li&gt;Unsavoury Network Peering Agreements - but I wont go this far in this post.&lt;/ul&gt;&lt;h2 id=dns&gt;DNS&lt;/h2&gt;&lt;p&gt;It&#39;s the address book of the internet. This is probally the easiest and most straightforward thing you can do to encourage the change you want to see.&lt;p&gt;Change your DNS providor away from your ISP or ecosystem to someone else, or even host your own recursive DNS resolver. This has the added benefits of allowing you to; block ads, unwanted traffic and protect your privacy on a network-wide scale too.&lt;p&gt;However, even if you change your DNS providor, you&#39;ll still at the largely-centralised mercy of mostly USA, other government or military and quasi-government organisations that run a majority of the top-level root domain servers.&lt;p&gt;There&#39;s not much you can do about that, but you could dabble in the DIY TLD worlds of &lt;a href=https://opennic.org&gt;OpenNIC&lt;/a&gt;, where free and open domains like &quot;.geek&quot; and &quot;.libre&quot; that are available at the cost of reliability, or try out the non-traditional &quot;darker networks&quot; like Tor or I2P that &lt;em&gt;almost&lt;/em&gt; don&#39;t rely on centralised solutions (they still bootstrap on centralised systems).&lt;h2 id=commerically-centralised-networks&gt;Commerically Centralised Networks&lt;/h2&gt;&lt;p&gt;Cloudflare run an unbelievably large chunk of all internet traffic through their own private and almost separate chunk of internet.&lt;p&gt;Their services are powerful security and traffic management tools but, again, having &lt;em&gt;ALL&lt;/em&gt; our eggs in one USA-government-controlled-super-company basket is probally not a good idea for humanity as a whole.&lt;p&gt;Try to use non-cloudflare services like the... Read the full content online.</content>
  </entry><entry>
    <title>Miniflux Capacitor Theme</title>
    <link href="https://benhoskins.uk/miniflux-capacitor-theme/" />
    <updated>2026-03-05T00:00:00Z</updated>
    <id>https://benhoskins.uk/miniflux-capacitor-theme/</id>
    <content type="html">&lt;p&gt;RSS helps me to keep up to date with software and sites I enjoy without being subjected to an algorithm or some commercially designed feed. I used to use FeedBin (the service) then I started self-hosting FreshRSS behind a Gluetun VPN container, but I&#39;ve not been in-love with it these last few years.&lt;p&gt;It&#39;s time to give &lt;a href=https://miniflux.app/ &gt;Miniflux&lt;/a&gt; a go - however it&#39;s opinioned design is a little to clunky for me. And, so I&#39;m extremely grateful that there&#39;s a Custom CSS box option in the settings.&lt;p&gt;Key features of my mostly default Miniflux looking theme:&lt;ul&gt;&lt;li&gt;&lt;p&gt;Clarified feed errors.&lt;li&gt;&lt;p&gt;Light vs Dark theme based on browser preference (untested)&lt;li&gt;&lt;p&gt;Up to 15 category colors.&lt;li&gt;&lt;p&gt;Better small screen experience.&lt;li&gt;&lt;p&gt;Truncated some buttons text where their intent is clear.&lt;li&gt;&lt;p&gt;Nice fonts from a standard stack.&lt;li&gt;&lt;p&gt;Rounded a little.&lt;li&gt;&lt;p&gt;Modern settings look.&lt;li&gt;&lt;p&gt;Safer confirmation action.&lt;li&gt;&lt;p&gt;Easier thumb clicking with longer links on boxes.&lt;li&gt;&lt;p&gt;Clarified action intent.&lt;p&gt;&lt;em&gt;Some buttons and numbers were unclear where they refer/went to. I&#39;ve tried to use simple colors to group similar actions across the UI, to help guide where you&#39;re going to go at a glance.&lt;/em&gt;&lt;li&gt;&lt;p&gt;Simplified actions.&lt;p&gt;&lt;em&gt;Some information and actions where duplicated in the UI, but called different things, like the &quot;Entries&quot; link on the each category on the category page does the same as clicking the category title.&lt;/em&gt;&lt;/ul&gt;&lt;p&gt;If you&#39;d like to contribute or fix parts please do submit a Pull Request on Codeberg.&lt;p&gt;See screenshots over on &lt;a href=https://codeberg.org/teatowel/benhoskins.dev-snippets/src/branch/main/miniflux-capacitor-theme&gt;the Codeberg repo here&lt;/a&gt;.&lt;figure&gt;&lt;pre class=language-css&gt;&lt;code class=language-css&gt;&lt;span class=&quot;token comment&quot;&gt;/* Miniflux Capacitor Custom CSS Theme

Instructions &amp; info:
https://benhoskins.dev/miniflux-capacitor-theme/

Inspired by:
- https://github.com/andymason/miniflux-css-theme/tree/main
- https://github.com/ronilaukkarinen/miniflux-theme-midnight/tree/master

*/&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;/* light and dark theme vars */&lt;/span&gt;
&lt;span class=&quot;token selector&quot;&gt;:root&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;--body-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; #1d1d1f&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;--body-background&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; #fff&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;--hr-border-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; #d2d2d7&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;--title-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; #1d1d1f&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;--link-color&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; #007aff&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token property&quot;&gt;--link-focus-color&lt;/span&gt;&lt;span class=&quot;token... Read the full content online.</content>
  </entry><entry>
    <title>Creating a better Qwen 2B AI Text-to-speach</title>
    <link href="https://benhoskins.uk/better-qwent-ai-tts/" />
    <updated>2026-03-05T00:00:00Z</updated>
    <id>https://benhoskins.uk/better-qwent-ai-tts/</id>
    <content type="html">&lt;p&gt;As a themed follow-up to my post some time ago about TTS on Linux.&lt;p&gt;A good friend of mine Thomas Hourlier has published an almost-blog-post about tweaking Qwen AI to produce a better TTS experience for his new Gran Turismo 7 Game Coaching app.&lt;p&gt;It&#39;s such a good write-up of the project! It&#39;s a deeper dive into engineering with AI, rather then AI instead of engineering.&lt;p&gt;Hopefully Thomas will setup a full blog with RSS soon (take the hint!). If he does I&#39;ll update with a link here too.&lt;p&gt;The OSS repo link is &lt;a href=https://github.com/hourliert/VoiceInk-Qwen3.5-2B-FT/ &gt;here&lt;/a&gt; and the blog-ish post is here on Github:&lt;p&gt;&lt;a href=https://github.com/hourliert/VoiceInk-Qwen3.5-2B-FT/blob/master/docs/BLOG_POST.md&gt;https://github.com/hourliert/VoiceInk-Qwen3.5-2B-FT/blob/master/docs/BLOG_POST.md&lt;/a&gt;&lt;p&gt;The app this was built for is &quot;&lt;a href=https://gtcoach.app/ &gt;GT Coach&lt;/a&gt;&quot;, its an absolute game changer and a solid feat of engineering.&lt;p&gt;I highly recommend it if you&#39;re into racing games. The discord has a great community too!&lt;p&gt;https://gtcoach.app/</content>
  </entry><entry>
    <title>Sensible Caddy Defaults</title>
    <link href="https://benhoskins.uk/sensible-caddy-default-configs/" />
    <updated>2026-02-24T00:00:00Z</updated>
    <id>https://benhoskins.uk/sensible-caddy-default-configs/</id>
    <content type="html">&lt;p&gt;I often find myself looking for the same Caddy web-server configurations for a sane and sensible setup for most projects.&lt;p&gt;Here are some of the bits I&#39;ve collected and use &lt;em&gt;(Please excuse the missing syntax highlighting. The Codeberg link does a better job.)&lt;/em&gt;:&lt;figure&gt;&lt;pre class=language-Caddyfile&gt;&lt;code class=language-Caddyfile&gt;(caddy-sensible-defaults) {
	import caddy-sensible-defaults-v1.2
}

(caddy-sensible-defaults-v1.2) {

	# Redirect www.
	@www header_regexp www Host ^www&#92;.(.*)$
	redir @www https://{re.www.1} permanent

	# Compress if wanted.
	encode

	# Hidden Files, but not well-known API.
	@forbidden_dotfiles {
		not path /.well-known/*
		path */.*
	}
	error @forbidden_dotfiles 404

	# Error Pages
	# https://caddyserver.com/docs/caddyfile/directives/handle_errors#examples
	# `handle_errors` is special does not respect root path, from the route it&#39;s included in. https://caddy.community/t/error-when-using-handle-errors-inside-route/13143/2
	handle_errors {
		# does this exist?
		root /srv/http-errors/
		@custom_err file {err.status_code}.html
		handle @custom_err {
			rewrite * {file_match.relative}
			file_server
		}
		# if not, text error page.
		respond &quot;{err.status_code} {err.status_text}&quot;
	}

	# Outgoing Security Headers &amp; CORs
	header {
		# Remove Server info
		-Server
		# Remove Via (similar to Server header)
		-Via
		# Proxy Authentication Key
		-Via-Key
		# Remove X-Powered-By (Framework name)
		-X-Powered-By

		# HTTP Security Headers #
		#########################
		# i.e. Reducing attack surface and enforcing browser security behaviors.
		# `?` means, set, if not already set.
		# CSP with a weak but largely compatible config. Should be tightened by backends where possible.
		?Content-Security-Policy &quot;default-src &#39;self&#39; &#39;unsafe-inline&#39; https:; frame-ancestors &#39;self&#39;; form-action https:; base-uri &#39;self&#39;; upgrade-insecure-requests; block-all-mixed-content;&quot;
		# Always use HTTPS? Enable if wanted by removing `#`.
		#?Strict-Transport-Security &quot;max-age=31536000; includeSubDomains&quot;
		# MIME types advertised in the Content-Type headers should be respected and not changed.
		?X-Content-Type-Options &quot;nosniff&quot;
		# Content-Security-Policy header supersedes X-Frame-Options, but kept for backwards compatibility.
		?X-Frame-Options &quot;SAMEORIGIN&quot;
		# Controls how much referrer information in the Referrer header. Full URL for same-origin, only origin for cross-origin at the same security level, omits on a protocol downgrade.
		?Referrer-Policy &quot;strict-origin-when-cross-origin&quot;
		# Disable these permissons.
		?Permissions-Policy &quot;camera=(), microphone=(), geolocation=(), usb=(), interest-cohort=()&quot;


		# CORS (Cross-Origin Resource Sharing) #
		########################################
		# Anyone can consume your resources.
		?Access-Control-Allow-Origin &quot;*&quot;
		# CORP (i.e. who can load this resource?)
		?Cross-Origin-Resource-Policy &quot;cross-origin&quot;
		# COOP (i.e. how your page relates to other tabs or windows.)
		# Only same origin can... Read the full content online.</content>
  </entry><entry>
    <title>Traditional PHP Docker setup for TinyAuth with Caddy</title>
    <link href="https://benhoskins.uk/tinyauth-caddy-without-labels/" />
    <updated>2026-02-21T00:00:00Z</updated>
    <id>https://benhoskins.uk/tinyauth-caddy-without-labels/</id>
    <content type="html">&lt;p&gt;TinyAuth is a small authentication container designed to overlay a login page on top of other containerised services. Sometimes called &quot;Forwarded Authentication&quot;.&lt;p&gt;It&#39;s by far the simplest of the few authentication container options out there, but it does have a slightly undesirable default configuration setup IMO. Docker Labels.&lt;p&gt;TinyAuth&#39;s documentation assumes you&#39;re using a Docker label based container stack - where everything from TinyAuth to the containerised app you&#39;re protecting, to the reverse proxy - are all configured by applying Docker labels to the containers.&lt;p&gt;This is not how I like to do things. It often requires many containers to have access to the Docker Socket (which, unknown to most, cannot be mounted read-only by nature of being a socket) and so exposes us to extra risk. I also prefer that each service has their own configuration files which helps to keep the stacks portable.&lt;p&gt;There&#39;s limited TinyAuth documentation for this at the moment (maybe more coming in v5) but it is possible to have a basic setup with the simpler or more traditional configuration.&lt;p&gt;The info was spread across a few tickets, discussions and PRs on GitHub, so I&#39;ll summarise here.&lt;h2 id=tinyauth-middleware-architecture&gt;TinyAuth Middleware Architecture&lt;/h2&gt;&lt;p&gt;Authentication middleware works with reverse proxies (e.g. Caddy) to force a connection through the authentication middleware before the connection is allowed into the containerised app you&#39;re protecting.&lt;p&gt;The middleware authenticator then provides extra headers to the app to indicate which user has successfully authenticated. These can then be used for authorization.&lt;p&gt;&lt;em&gt;Note: Authenticate is who you are. Authorise is what you&#39;re allowed to do. Unfortunately the old and standard HTTP header specification get this definition wrong. Also, keep en eye out for the American vs British spellings in header i.e. &quot;z&quot; vs &quot;s&quot;.&lt;/em&gt;&lt;p&gt;The authentication flow looks a little like this:&lt;pre&gt;&lt;code&gt;Browser --&gt; Reverse Proxy --&gt; Authentication Middleware (Login) 
											|
	^							 [+Authentication Headers]
	|										v
	|								  Reverse Proxy 
											|
Reverse Proxy  &amp;lt;--	App	 &amp;lt;--   [+copied Authentication Headers]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Due to the way TinyAuth sets cookies, it must be on a subdomain of a parent domain, and so must your app.&lt;p&gt;e.g. &quot;myapp.example.org&quot; and &quot;auth.example.org&quot;&lt;p&gt;TinyAuth does indeed set a cookie on the parent domain, but your app does not interact with, or need to read this cookie for authentication or authorisation. It just helps TinyAuth to remember that you&#39;re already logged in and to let you through to the app on subsequent requests.&lt;p&gt;The app itself can check that you&#39;re logged in, or whom you are, by reading the clear-text &quot;Remote-User&quot;, &quot;Remote-Email&quot;, &quot;Remote-Name&quot; headers that are sent back by TinyAuth by default.&lt;p&gt;&lt;strong&gt;But how is that secure?&lt;/strong&gt; Well, it&#39;s only secure under certain circumstances.&lt;p&gt;The &quot;Remote-...&quot; headers are only send back to the... Read the full content online.</content>
  </entry><entry>
    <title>IPv6 Simply Explained</title>
    <link href="https://benhoskins.uk/ipv6-simply-explained/" />
    <updated>2026-01-29T00:00:00Z</updated>
    <id>https://benhoskins.uk/ipv6-simply-explained/</id>
    <content type="html">&lt;p&gt;IPv6 is the &lt;strong&gt;current version&lt;/strong&gt; of the internet. We simply ran out of space on the old IPv4 system.&lt;p&gt;The technology is actually really good, but even after all these years, adoption has still not completed across the internet.&lt;p&gt;I&#39;m not entirely sure why this is, &lt;strong&gt;but&lt;/strong&gt;, there is a surprising learning curve to use IPv6 and not-so-great support on consumer/retail grade routers.&lt;p&gt;It&#39;s rather similar to IPv4 but still seems shrouded in mystery and incantations.&lt;h1 id=todos&gt;TODOs&lt;/h1&gt;&lt;p&gt;As it seems with the IPv6 implementation in general, there&#39;s a lot of &quot;todo&quot; floating around. This doc has them too, I&#39;ll update this as a living document as I can.&lt;p&gt;Update 2026-06-10: I recently came across an article from &lt;a href=https://blog.hofstede.it/ipv6-foundations-the-internet-protocol-you-should-already-be-using/ &gt;Christian at Larvitz Blog&lt;/a&gt; that beautifully covers the IPv6 basics. I&#39;ve updated this article to reflect some of the parts I&#39;ve learnt from there.&lt;h1 id=ipv6-in-the-uk&gt;IPv6 in the UK&lt;/h1&gt;&lt;p&gt;In the UK, it seems like IPv6 is not yet the common standard. No mobile ISPs officially support it, but they will sometimes silently provide IPv6 only addresses to phones sporadically.&lt;p&gt;TODO: Update this, Christain says some do now?&lt;p&gt;Github does not support IPv6 (last time I checked) and Docker does not support it by default internally for container networking as of the &lt;code&gt;docker.io&lt;/code&gt; package on Debian 12.&lt;p&gt;The rest of the world seems to have adopted IPv6 a little more, especially in developing countries and areas with rapid growth for online devices.&lt;h1 id=ipv4-to-ipv6-crash-course&gt;IPv4 to IPv6 Crash Course&lt;/h1&gt;&lt;h2 id=coming-from-ipv4-basics&gt;Coming from IPv4 Basics&lt;/h2&gt;&lt;p&gt;Here&#39;s an IPv4 practical recap:&lt;p&gt;&lt;code&gt;127.0.0.1&lt;/code&gt; is this computer, or loopback address often named &quot;localhost&quot;.&lt;p&gt;&lt;code&gt;192.168.1.1&lt;/code&gt; is likely your home router address. It controls access to the internet for all your devices on Wifi and Ethernet.&lt;p&gt;&lt;code&gt;192.168.1.42&lt;/code&gt; (or what ever other number than &quot;42&quot;) could be your devices internal network IP address, or another device on the internal network.&lt;p&gt;Your router likely manages local network device IP&#39;s using DHCP and advertises itself as the DNS resolver, which it resolves from an upstream DNS resolver provided by your ISP (Internet Service Provider).&lt;p&gt;It also handles port forwarding through NAT, routing traffic across your network and the firewall which prevents unauthorized traffic following in or out of the network.&lt;h2 id=ipv4-port-forwarding&gt;IPv4 Port Forwarding&lt;/h2&gt;&lt;p&gt;A web service running on your local computer could be served at &lt;code&gt;:8080&lt;/code&gt;, accessible only from that local computer.&lt;p&gt;However, you could then forwarded the port on your router&#39;s public IPv4 address at &lt;code&gt;:80&lt;/code&gt;, to allow traffic from the internet onto this computer&#39;s local IPv4 address e.g. &lt;code&gt;192.168.1.43:8080&lt;/code&gt;.&lt;p&gt;&lt;em&gt;Note: assuming your service is bound to all assigned IP&#39;s e.g.... Read the full content online.</content>
  </entry><entry>
    <title>Replace Google Fonts, Cloudflare and CDN&#39;s in Firefox</title>
    <link href="https://benhoskins.uk/avoiding-internet-centralisation-and-tracking-cdns/" />
    <updated>2026-01-29T00:00:00Z</updated>
    <id>https://benhoskins.uk/avoiding-internet-centralisation-and-tracking-cdns/</id>
    <content type="html">&lt;p&gt;Even before Cloudflare started &quot;dropping the ball&quot; with outages and getting caught AI vibe coding projects - their firm grip on the modern &quot;Eye Ball&quot; web is immense and concerning.&lt;p&gt;Although their reach across the net gives them an almost unique advantage for building powerful security features and technical services for website developers, it also further centralises the Internet - which is a great concern for stability (technically and politically), and privacy.&lt;p&gt;Cloudflare is the most prominent, but there are many other CDN networks that centralise and track your activity on an immense scale.&lt;p&gt;Site-note: On the software development side of the internet &quot;the big guys&quot; used to be GitHub and DockerHub. They power most of the resources that many software projects need to run, but this is thankfully falling apart since Microsoft&#39;s acquisition of GitHub and subsequent enshitification, and Docker&#39;s public rate-limiting.&lt;h1 id=how-can-you-avoid-clouflares-and-others-reach&gt;How can you avoid Clouflare&#39;s and others reach?&lt;/h1&gt;&lt;p&gt;As a webmaster (that shows my age... should be &quot;web developer&quot;?) you can choose to use other CDN and WAF services for your site such as &lt;a href=https://bunny.net&gt;Bunny&lt;/a&gt; CDN, or hosting your own.&lt;p&gt;But, what can individual internet user do?&lt;p&gt;You can force the websites that you visit to use a more private, and likely more trustworthy CDN for common assets. This helps to decentralise away from &quot;the big guys&quot; and limits the data you share with these companies.&lt;p&gt;Note: Bunny CDN (now just called Bunny.net) is a step in the right direction, although it&#39;s not a perfect solution, such as a fully decentralised internet where you host your websites own assets.&lt;p&gt;Both these browser plugins will invisibly modify most of the websites you&#39;ll look at for the good of your data privacy.&lt;h3 id=bunny-fonts-and-bunny-hopjs-cdn&gt;Bunny Fonts &amp; Bunny HopJS CDN&lt;/h3&gt;&lt;p&gt;Assuming you&#39;re using a Firefox derivative for your web browsing such as &lt;a href=https://librewolf.net/ &gt;LibreWolf&lt;/a&gt; - you can use a plugin called &lt;a href=https://addons.mozilla.org/en-GB/firefox/addon/redirector/ &gt;Redirector&lt;/a&gt; on Desktop and Firefox Mobile.&lt;p&gt;This add-on is great for redirecting links to your own self-hosted services such as Redlib too, but it can also swap out downloadable internet resources to an alternative source like Bunny Fonts or Bunny HopJS CDN.&lt;p&gt;&lt;strong&gt;Crucially&lt;/strong&gt;, Bunny Fonts is a drop-in replacement for Google Fonts, and Bunny HopJS CDN is a drop-in replacement for Cloudflare&#39;s CDNjs and jsDelivr (GitHub, NPM, WordPress etc).&lt;p&gt;You just need to change the domain name of the resource and the Bunny hosted services accept the existing resource URL&#39;s transparently.&lt;p&gt;Here&#39;s the configuration for REDIRECTOR Firefox plugin for Bunny CDN and Bunny Fonts:&lt;pre class=language-json&gt;&lt;code class=language-json&gt;&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token property&quot;&gt;&quot;createdBy&quot;&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span... Read the full content online.</content>
  </entry><entry>
    <title>Docker DNS Error &quot;getaddrinfo EAI_AGAIN&quot; Solution</title>
    <link href="https://benhoskins.uk/getaddrinfo-eai_again-dns-error-docker/" />
    <updated>2026-01-29T00:00:00Z</updated>
    <id>https://benhoskins.uk/getaddrinfo-eai_again-dns-error-docker/</id>
    <content type="html">&lt;p&gt;When self-hosting services like &lt;a href=https://github.com/louislam/uptime-kuma&gt;Uptime Kuma&lt;/a&gt; and other containers based on NodeJS - I sometimes came across a persistent connection error along the lines of &quot;getaddrinfo EAI_AGAIN&quot;.&lt;p&gt;At least in my case this seems to be caused by Docker, NodeJS and self-hosted a DNS resolver (like Pihole, Adguard or Blocky) not playing well together.&lt;p&gt;Although I would get this error on other containers from time to time, I would see it far more often with Uptime Kuma - I think this is do to the nature of this monitoring app. It would more often lookup domains on the DNS system than other containers.&lt;p&gt;NodeJS does not do any sort of DNS caching at all by default so all queries are passed upstream regardless of TTL.&lt;h2 id=self-hosted-dns-problem&gt;Self-hosted DNS Problem&lt;/h2&gt;&lt;p&gt;While speaking with the maintainers of Uptime Kuma in &lt;a href=https://github.com/louislam/uptime-kuma/issues/6824&gt;issue #6824&lt;/a&gt; it seems that some self-hosted DNS systems like Pihole will rate-limit clients and cause this error.&lt;p&gt;You can help to resolve this by enabling the Uptime Kuma DNS caching setting, or modifying the rate-limit settings in Pihole.&lt;p&gt;However, my DNS resolver Blocky does not have any rate-limiting turned on.&lt;p&gt;In my research it seems that Docker will sometimes (I&#39;m not sure when) decide not to use the Docker hosts DNS server (specified by DHCP or by a configuration file) and will silently fall back to a hardcoded Google DNS server &lt;code&gt;8.8.8.8&lt;/code&gt;.&lt;p&gt;This means you may have had this DNS issue for a while longer that you thought, without noticing the effects since Docker would bypass your own DNS config and use Google.&lt;p&gt;&lt;em&gt;Not exactly ideal behaviour from Docker, but it does seem to be the &quot;Docker way&quot; to override standard procedures. Just like with their port exposing iptables manipulation regardless of your firewall rules. If this bothers you as much as me, you can use Podman to resolve some of these overreaching behaviours.&lt;/em&gt;&lt;p&gt;Sometime&#39;s this internal Google DNS server was not used, and the container was not correctly sending DNS queries upstream to my self-hosted resolver either - resulting in connection errors and the opaque &quot;getaddrinfo EAI_AGAIN&quot; errors.&lt;h1 id=specifically-bind-ip-for-docker-dns-resolvers&gt;Specifically Bind IP for Docker DNS Resolvers&lt;/h1&gt;&lt;p&gt;It turns out that the simple solution is to make sure you bind the ports of your exposed DNS server (e.g. port 53) specifically to an IP address rather than all IP addresses.&lt;p&gt;Found the info &lt;a href=https://stackoverflow.com/a/69994721/614616&gt;here on Stack Overflow&lt;/a&gt; by &lt;a href=https://stackoverflow.com/users/9301731/citizentwelve&gt;citizentwelve&lt;/a&gt;.&lt;p&gt;Otherwise, Docker&#39;s network setup can get confused when sending the DNS query traffic and prevent DNS resolutions.&lt;p&gt;e.g. on your Blocky or Adguard or Pihole Docker Compose file you may have had this:&lt;pre class=language-yaml&gt;&lt;code class=language-yaml&gt;&lt;span class=&quot;token atrule... Read the full content online.</content>
  </entry><entry>
    <title>Fixing PHP-FPM Docker Container Logs</title>
    <link href="https://benhoskins.uk/php-fpm-docker-logs/" />
    <updated>2025-11-27T00:00:00Z</updated>
    <id>https://benhoskins.uk/php-fpm-docker-logs/</id>
    <content type="html">&lt;p&gt;Coming from a more standard LAMP setup, a containerised Dockerised Caddy reverse-proxy with PHP FastCGI (PHP-FPM) is not as straightforward as you may expect!&lt;p&gt;&lt;em&gt;Note: I&#39;ll reference &quot;Docker&quot; here but this should all work for the arguably better (more linuxy) &quot;Podman&quot; too.&lt;/em&gt;&lt;p&gt;The official PHP-FPM container does not log errors to the &lt;code&gt;stdout&lt;/code&gt; (i.e. the terminal logs when running via docker-compose). This is not the standard for containers or ideal for containerised development or deployment.&lt;p&gt;The docs and blogs around the internet on this subject are almost all outdated, and so there&#39;s not a super clear solution. There are many parts to the php-fpm container config and most have been resolved in recent container image&#39;s apart from &lt;a href=https://github.com/docker-library/php/issues/383#issuecomment-623659459&gt;this last bit&lt;/a&gt;.&lt;p&gt;So, in 2025-11, there&#39;s three parts to get PHP error logs displaying in stdout; the config files which are mounted in via docker compose, the PHP ini config and then the fpm www config.&lt;p&gt;&lt;strong&gt;Project File Structure:&lt;/strong&gt;&lt;ul&gt;&lt;li&gt;&lt;code&gt;./my-php-app/container-stack/compose.yml&lt;/code&gt;&lt;li&gt;&lt;code&gt;./my-php-app/container-stack/conf/Caddyfile&lt;/code&gt;&lt;li&gt;&lt;code&gt;./my-php-app/container-stack/php-dev.ini&lt;/code&gt;&lt;li&gt;&lt;code&gt;./my-php-app/container-stack/fpm-www.conf&lt;/code&gt;&lt;/ul&gt;&lt;p&gt;I use some relative paths below, and they expect this config to be in a sub-directory of your PHP projects root.&lt;h2 id=docker-compose&gt;Docker Compose:&lt;/h2&gt;&lt;pre class=language-yml&gt;&lt;code class=language-yml&gt;&lt;span class=&quot;token key atrule&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; php&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;dev&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;server

&lt;span class=&quot;token key atrule&quot;&gt;services&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;

  &lt;span class=&quot;token key atrule&quot;&gt;caddy&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;token key atrule&quot;&gt;container_name&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; caddy
    &lt;span class=&quot;token key atrule&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; docker.io/caddy&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;latest
    &lt;span class=&quot;token key atrule&quot;&gt;volumes&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; ../&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;/srv
        &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; ./conf&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;/etc/caddy
    &lt;span class=&quot;token key atrule&quot;&gt;ports&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; 8080&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;8080&lt;/span&gt;

  &lt;span class=&quot;token key atrule&quot;&gt;php&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;token key atrule&quot;&gt;container_name&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; php
    &lt;span class=&quot;token key atrule&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; php&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;8.5&lt;span class=&quot;token... Read the full content online.</content>
  </entry><entry>
    <title>Fix Pixelated Fonts on Debian 12 Flatpak</title>
    <link href="https://benhoskins.uk/blurry-fonts-debian-12-flatpak/" />
    <updated>2025-06-02T17:19:16Z</updated>
    <id>https://benhoskins.uk/blurry-fonts-debian-12-flatpak/</id>
    <content type="html">&lt;p&gt;Although Debian is supposed to be the among the most stable Distros out there, there are a few glaring issues.&lt;p&gt;Helvetica and other fonts looking blurry or pixelated on some applications running as Flatpaks.&lt;p&gt;The simplest solution is to, remove the offending default font:&lt;pre class=language-bash&gt;&lt;code class=language-bash&gt;&lt;span class=&quot;function token&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;function token&quot;&gt;apt&lt;/span&gt; remove xfonts-base xfonts-100dpi xfonts-75dpi&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Thanks to &lt;a href=https://github.com/flatpak/flatpak/issues/4571#issuecomment-1606258732&gt;this issue&lt;/a&gt; on the Flatpak GitHub repo from &lt;a href=https://github.com/jasongodev&gt;jasongodev&lt;/a&gt; (&lt;a href=https://www.jasongo.net/ &gt;webiste&lt;/a&gt;).</content>
  </entry><entry>
    <title>Fixing fail2ban for sshd on Debian 12</title>
    <link href="https://benhoskins.uk/fix-fail2ban-sshd-debian-12/" />
    <updated>2025-02-19T00:00:00Z</updated>
    <id>https://benhoskins.uk/fix-fail2ban-sshd-debian-12/</id>
    <content type="html">&lt;p&gt;It would seem that due to some sort of &lt;a href=https://github.com/fail2ban/fail2ban/issues/3292&gt;packaging or maintainer config dispute&lt;/a&gt; the default configuration for fail2ban&#39;s SSHd authentication monitoring (and thus blocking) does not work on Debian 12, and it&#39;s derivatives such as Ubuntu.&lt;p&gt;The solution is to configure fail2ban to read (and eventually ban) SSHd authentication failures from &quot;systemd&quot; rather than a log file as previously expected.&lt;p&gt;This can be done with the following one-liner (it write the quoted text into the fail2ban jail config file):&lt;pre class=language-bash&gt;&lt;code class=language-bash&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-e&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;[sshd]&lt;span class=&quot;token entity&quot; title=&#92;n&gt;&#92;n&lt;/span&gt;backend=systemd&lt;span class=&quot;token entity&quot; title=&#92;n&gt;&#92;n&lt;/span&gt;enabled=true&quot;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;tee&lt;/span&gt; /etc/fail2ban/jail.local&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Next you&#39;ll need to restart the &lt;code&gt;fail2ban&lt;/code&gt; service, and inspecting the output for any issues:&lt;pre class=language-bash&gt;&lt;code class=language-bash&gt;systemctl restart fail2ban &lt;span class=&quot;token operator&quot;&gt;&amp;&amp;&lt;/span&gt; systemctl status fail2ban&lt;/code&gt;&lt;/pre&gt;</content>
  </entry><entry>
    <title>Migrating Jekyll to Eleventy</title>
    <link href="https://benhoskins.uk/migrate-jekyll-to-eleventy/" />
    <updated>2025-01-29T00:00:00Z</updated>
    <id>https://benhoskins.uk/migrate-jekyll-to-eleventy/</id>
    <content type="html">&lt;p&gt;As alluded to in my recent post about &lt;a href=https://benhoskins.uk/run-jekyll-in-docker-2025-update/ &gt;Jekyll&lt;/a&gt;. The time has finally come to leave Jekyll for something more capable.&lt;p&gt;Although Jekyll has been a great introduction into the JAMstack or Static Site Generation for many years. I never actively chose it, but rather adopted it because of it&#39;s prolific use on GitHub Pages.&lt;p&gt;Jekyll has been a little tricky to use, with it&#39;s dependency on Ruby, and it&#39;s community support slowly being abandoned.&lt;p&gt;Maintaining a Jekyll site has started getting in the way of updating the site.&lt;p&gt;It&#39;s time to move on, and after much consideration of the optioned. I looked deeply at Hugo and &lt;abbr title=&quot;Eleventy JS&quot;&gt;11ty&lt;/abbr&gt;.&lt;p&gt;I settled on Eleventy as it&#39;s closer in spirit to Jekyll, more modular, flexible (due to JS) and incredibly fast.&lt;h1 id=jekyll-to-11ty-migration-plan&gt;Jekyll to 11ty Migration Plan&lt;/h1&gt;&lt;ul&gt;&lt;li&gt;Assess 11ty docs and blog posts from others.&lt;li&gt;Setup a POC.&lt;li&gt;Build a Jekyll compatible setup, so that I don&#39;t need to change absolutely everything.&lt;li&gt;Build a new theme using &lt;a href=https://picocss.com/ &gt;Pico CSS&lt;/a&gt; that&#39;s largely similar to my modded &lt;a href=https://github.com/piharpi/jekyll-klise&gt;klise Jekyll theme&lt;/a&gt; but with way fewer dependencies.&lt;li&gt;Deploy on Cloudflare Pages.&lt;/ul&gt;&lt;p&gt;It all took a solid 3 or 4 days work, but I learnt a lot for my other static projects and pretty happy with the result.&lt;h1 id=11ty-lessons-learned&gt;11ty Lessons Learned&lt;/h1&gt;&lt;p&gt;You&#39;ll need a basic understanding of JavaScript or better, specifically an understanding of Node JS. If not, you&#39;ll certainly be learning it along this migration.&lt;p&gt;Although Jekyll is also largely modular and portable. e.g. markdown, liquid templates etc. It actually has a bunch of quirks and modification on top of these systems that are not supported by the underlying standards or other tools. 11ty needs to have some features setup to allow compatibility with a Jekyll content dataset.&lt;p&gt;All the information you need is within the &lt;a href=https://www.11ty.dev/docs/ &gt;11ty docs&lt;/a&gt; - but IMO it&#39;s an not well presented and poorly categorised. It&#39;s not easy to onboard, or find what you&#39;re looking for as an 11ty noob.&lt;p&gt;&lt;em&gt;Hopefully &lt;a href=https://opencollective.com/11ty&gt;some more funding&lt;/a&gt; can help improve the documentation for newcomers.&lt;/em&gt;&lt;p&gt;11ty itself, and their docs seem to be loosely inspired by Jekyll&#39;s systems but with some unclear deviations. Some systems are the same while others are quietly missing or just entirely different.&lt;p&gt;Although 11ty is a Node JS package, it doesn&#39;t have it&#39;s own Docker container published.&lt;p&gt;Thankfully it&#39;s easy to make one for those who prefer containerised development processes.&lt;div class=&quot;markdown-alert markdown-alert-warning&quot;&gt;&lt;p class=markdown-alert-title&gt;&lt;svg aria-hidden=true class=&quot;mr-2 octicon octicon-alert&quot; height=16 version=1.1 viewBox=&quot;0 0 16 16&quot; width=16&gt;&lt;path d=&quot;M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75... Read the full content online.</content>
  </entry><entry>
    <title>Pico CSS Simple Theme Toggle</title>
    <link href="https://benhoskins.uk/pico-css-theme-toggle/" />
    <updated>2025-01-28T00:00:00Z</updated>
    <id>https://benhoskins.uk/pico-css-theme-toggle/</id>
    <content type="html">&lt;p&gt;&lt;a href=https://picocss.com/ &gt;Pico CSS&lt;/a&gt; is a classless (or almost classless and very minimal) CSS framework for building simple content driven sites.&lt;p&gt;&lt;em&gt;i.e. Bootstrap if it was made my Linux&#39;s &lt;a href=https://suckless.org/ &gt;suckless&lt;/a&gt;.&lt;/em&gt;&lt;p&gt;Pico CSS does have a built-in dark mode theme or scheme, and it uses the settings from your web browser by default.&lt;div class=&quot;markdown-alert markdown-alert-note&quot;&gt;&lt;p class=markdown-alert-title&gt;&lt;svg aria-hidden=true class=&quot;mr-2 octicon octicon-info&quot; height=16 version=1.1 viewBox=&quot;0 0 16 16&quot; width=16&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Firefox Themes&lt;p&gt;Those on Firefox may expect their OS dark mode to inform the browser dark mode setting... This is not always the case. Your browser theme may also need to be set.&lt;/div&gt;&lt;p&gt;Although &lt;a href=https://picocss.com/docs/color-schemes&gt;Pico&#39;s documentation does explain the dark mode scheme&lt;/a&gt;, it&#39;s not super forth-coming with how to allow the user to dynamically change it using JavaScript.&lt;p&gt;After digging though &lt;a href=https://picocss.com/examples&gt;their examples&lt;/a&gt; and &lt;a href=https://github.com/picocss/pico/discussions/381&gt;discussion #381&lt;/a&gt; on their Github. It looks like there&#39;s a small JavaScript file provided with a dropdown element (which also respects the browsers default choice), and even a&lt;a href=https://github.com/picocss/pico/discussions/381#discussioncomment-11341046&gt; JS one-liner&lt;/a&gt; (that does not respect the default scheme).&lt;p&gt;The Pico CSS website itself uses this somewhat hidden &lt;code&gt;theme-switcher.js&lt;/code&gt; code plus a dependency on &quot;theme-toggles&quot; from &lt;a href=https://toggles.dev/ &gt;toggles.dev&lt;/a&gt;.&lt;p&gt;But, I wanted something with a &lt;strong&gt;bit more functionality&lt;/strong&gt; but with &lt;strong&gt;fewer dependencies&lt;/strong&gt;...&lt;h1 id=pico-css-emoji-theme-toggle&gt;Pico CSS Emoji Theme Toggle&lt;/h1&gt;&lt;p&gt;I modified their &lt;code&gt;theme-switcher.js&lt;/code&gt; to include a toggle function, and used the CSS colour variable &lt;code&gt;--pico-contrast&lt;/code&gt; to style a bank-and-white (uncoloured?) emoji known as &quot;Black Sun with Rays&quot; or &lt;code&gt;U+2600&lt;/code&gt;.&lt;p&gt;No need to toggle the SVG/image sprites when you can use CSS vars to colour an emoji.&lt;p&gt;In your sites&#39; navigation, or where ever you&#39;d like the dark mode setting, use the following in your HTML:&lt;figure&gt;&lt;pre class=language-html&gt;&lt;code class=language-html&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;a&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;href&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;#&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;data-theme-switcher&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation... Read the full content online.</content>
  </entry><entry>
    <title>Jekyll in Docker 2025 Update</title>
    <link href="https://benhoskins.uk/run-jekyll-in-docker-2025-update/" />
    <updated>2025-01-22T22:19:00Z</updated>
    <id>https://benhoskins.uk/run-jekyll-in-docker-2025-update/</id>
    <content type="html">&lt;p&gt;A few years ago, I wrote a post about &lt;a href=https://benhoskins.uk/run-jekyll-in-docker-with-docker-compose/ &gt;setting up Jekyll on Docker&lt;/a&gt;.&lt;p&gt;&lt;em&gt;Since then, there have been some changes.&lt;/em&gt;&lt;p&gt;Jekyll seems largely forgotten, becoming less supported by the community, and although it still adopted by many still due to Github using it for their static hosting of Github Pages.&lt;p&gt;Plus, Ruby is not the most common of web-dev languages nowadays, and so running ruby and Jekyll on your host doesn&#39;t make much sense - in come containers.&lt;p&gt;However, even the &quot;official&quot; docker image at &lt;code&gt;jekyll/jekyll&lt;/code&gt; (which was actually provided by the Github repo &lt;a href=https://benhoskins.uk/run-jekyll-in-docker-2025-update/envygeeks/jekyll-docker&gt;https://github.com/envygeeks/jekyll-docker/&lt;/a&gt;) has been abandoned for some years.&lt;p&gt;As a result of all of this, using Jekyll, we&#39;ll often see breaking changes that require some level of effort to solve. This last thing you need when publishing.&lt;p&gt;&lt;em&gt;Maybe it&#39;s finally a good time to migrate to &lt;a href=https://11ty.dev/ &gt;Eleventy&lt;/a&gt;?&lt;/em&gt;&lt;p&gt;In the meantime, here&#39;s a &lt;em&gt;more&lt;/em&gt; updated repo by &quot;&lt;a href=https://github.com/bretfisher/jekyll-serve/ &gt;bretfisher/jekyll-serve&lt;/a&gt;&quot;.&lt;p&gt;&lt;em&gt;And a slight security improvement over the original compose file, notably the specification of localhost.&lt;/em&gt;&lt;pre class=language-yml&gt;&lt;code class=language-yml&gt;&lt;span class=&quot;token atrule key&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;3&quot;&lt;/span&gt;
&lt;span class=&quot;token atrule key&quot;&gt;services&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;token atrule key&quot;&gt;jekyll&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;token atrule key&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; bretfisher/jekyll&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;serve
    &lt;span class=&quot;token atrule key&quot;&gt;volumes&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; .&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;/site
    &lt;span class=&quot;token atrule key&quot;&gt;command&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; jekyll serve &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;force_polling &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;drafts &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;unpublished
    &lt;span class=&quot;token comment&quot;&gt;# command: bundle update&lt;/span&gt;
    &lt;span class=&quot;token atrule key&quot;&gt;ports&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; 127.0.0.1&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;4000&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;4000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;</content>
  </entry><entry>
    <title>Selfhost Ente Photo&#39;s CLI Backup</title>
    <link href="https://benhoskins.uk/ente-photos-export-docker/" />
    <updated>2025-01-16T14:02:00Z</updated>
    <id>https://benhoskins.uk/ente-photos-export-docker/</id>
    <content type="html">&lt;div class=&quot;markdown-alert markdown-alert-note&quot;&gt;&lt;p class=markdown-alert-title&gt;&lt;svg aria-hidden=true class=&quot;mr-2 octicon octicon-info&quot; height=16 version=1.1 viewBox=&quot;0 0 16 16&quot; width=16&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;p&gt;This post is not about self-hosting an Ente Photo&#39;s storage server (museum). This post is about self-hosting automated backups of your Ente Photo&#39;s using cron and the &lt;a href=https://github.com/ente-io/ente/tree/main/cli&gt;Ente Photo&#39;s CLI Docker&lt;/a&gt; container.**&lt;/div&gt;&lt;p&gt;&lt;a href=https://ente.io/ &gt;Ente Photos&lt;/a&gt; is an open-source &lt;a href=https://ente.io/architecture/ &gt;end-to-end encrypted photo application&lt;/a&gt; that includes some important features like, phone camera sync and facial, place, and object recognition via a private local ML (i.e. AI).&lt;p&gt;It&#39;s essentially a better, safer, and more private alternative to Dropbox Camera Uploads or Google Photos.&lt;p&gt;Although it&#39;s a FOSS project, the primary reason people pay for an Ente Photos subscription is their storage service. Your photos are encrypted and stored in several data centres for backup - you don&#39;t need to run your own server.&lt;h1 id=exporting-ente-photos-for-backups&gt;Exporting Ente Photos for Backups&lt;/h1&gt;&lt;p&gt;Ente Photos takes great care with your data, and they are quite open about &lt;a href=https://ente.io/reliability/ &gt;how secure the files are with their redundant locations&lt;/a&gt;.&lt;p&gt;However, I like to keep a copy of my own data. Especially significant things like photos.&lt;p&gt;You can use the Electron-based desktop application on most OSs (including Linux) to automatically export your photos incrementally onto your local hard-drive unencrypted (while the app is running), I still prefer to run this on my homeserver/NAS which has a lot more storage space, RAID and snapshot backups already.&lt;h1 id=ente-photos-cli-docker-backup-via-cron&gt;Ente Photos CLI Docker Backup via Cron&lt;/h1&gt;&lt;p&gt;Although the &lt;a href=https://github.com/ente-io/ente&gt;Ente software is open-source&lt;/a&gt; and can be reviewed on GitHub. At the time of writing they do not publish Docker containers to public registries as one might hope (&lt;a href=https://github.com/ente-io/ente/discussions/711&gt;see discussion #711&lt;/a&gt;).&lt;p&gt;And so... we need to build our own Ente CLI container using their instructions to then run it on our NAS or homeserver.&lt;p&gt;&lt;em&gt;Unfortunately, Ente also uses a monorepo (all their software projects are under one huge git repository). It&#39;s not simple to clone specific parts of a repo, so we&#39;ll need to close the whole thing at (500MiB+).&lt;/em&gt;&lt;div class=&quot;markdown-alert markdown-alert-note&quot;&gt;&lt;p class=markdown-alert-title&gt;&lt;svg aria-hidden=true class=&quot;mr-2 octicon octicon-info&quot; height=16 version=1.1 viewBox=&quot;0 0 16 16&quot; width=16&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1... Read the full content online.</content>
  </entry><entry>
    <title>Classless CSS Frameworks</title>
    <link href="https://benhoskins.uk/classless-css/" />
    <updated>2024-09-09T19:40:00Z</updated>
    <id>https://benhoskins.uk/classless-css/</id>
    <content type="html">&lt;h1 id=what-are-classless-css-frameworks&gt;What are Classless CSS Frameworks?&lt;/h1&gt;&lt;p&gt;Classless CSS or Semantic HTML website frameworks are becoming quite useful for quickly building websites. They&#39;re simpler to work with than the traditional alternatives like &lt;a href=https://getbootstrap.com/ &gt;Bootstrap&lt;/a&gt; and &lt;a href=https://tailwindcss.com/ &gt;Tailwind&lt;/a&gt;.&lt;p&gt;So-much-so that complicated website templates based on utility type CSS frameworks may become a thing of the past.&lt;p&gt;These sorts of frameworks are focused at website &lt;em&gt;developers&lt;/em&gt; or &lt;em&gt;engineers&lt;/em&gt; rather than website &lt;em&gt;designers&lt;/em&gt;.&lt;p&gt;Semantic design engineering, rather than designing as a craft itself.&lt;p&gt;Dedicated Web Designers may have a more specific sense of what they want, and what works well for their use-case, where as devs tend to appreciate modern design based on good standards without fussing too much other the specifics.&lt;p&gt;i.e. Instead of using a complicated utility driven CSS/HTML frameworks. You can use a CSS framework that works with raw HTML tags, at the expense of a little design flexibility.&lt;blockquote&gt;&lt;p&gt;[!INFO] Website Template Sidenote Although you might now be able to achieve similarly beautiful results with modern Classless CSS frameworks...&lt;p&gt;Here&#39;s a couple of my favorite traditional utility based templates catalogues &lt;a href=https://html5up.net/ &gt;HTML5 Up&lt;/a&gt;, &lt;a href=https://pixelarity.com/ &gt;Pixelarity&lt;/a&gt; and maybe even &lt;a href=https://www.creative-tim.com/ &gt;Creative Tim&lt;/a&gt;.&lt;/blockquote&gt;&lt;p&gt;A &quot;Classless&quot; CSS or semantic HTML framework is simpler than traditional utility based frameworks like Bootstrap or Tailwind which leverage descriptive classes on HTML elements.&lt;p&gt;These traditional frameworks are helpful for creating sites easier than coding without any at all. They standardise common design styles, and provide a utilitarian shorthand for them, but they also complicate the DOM&#39;s HTML markup with many utility type classes like &lt;code&gt;&amp;lt;div class=&quot;row col-12 align-left hero text-bold font-black&quot;&gt;content&lt;/code&gt; etc. Simpler markup but just as nice visually with the same ease of use. e.g. &lt;code&gt;&amp;lt;article&gt;&amp;lt;h1&gt;content&lt;/code&gt;.&lt;p&gt;This significantly adds up across a project and affects the time needed for the initial build and subsequent maintenance also.&lt;p&gt;Developing with Classless CSS feels more like the early days of the web, but with modern design sensibilities.&lt;p&gt;Perhaps we have circled back around to a simpler markup due to the use of pre-processors and development workflows that fragment and fracture markup across the code-base for development and deployment convenience.&lt;p&gt;Writing a complex tower of classes (unique a particular framework) for each element in the DOM is a small thing for a singular flat-file, but it&#39;s something else entirely when that stack of styles is spread across a project, to be compiled later down the line.&lt;p&gt;&lt;em&gt;Some &quot;Classless&quot; CSS frameworks actually do offer a few helper classes for specific common use cases where... Read the full content online.</content>
  </entry><entry>
    <title>At the Pizza Party</title>
    <link href="https://benhoskins.uk/pizza-party/" />
    <updated>2024-06-07T16:16:00Z</updated>
    <id>https://benhoskins.uk/pizza-party/</id>
    <content type="html">&lt;p&gt;This started life as a completely unrelated excise in abstractly defining common tech-related professions like you would for communicating tech-infra, but it ended up being this silly mess of unhealthy tech-company stereotypes.&lt;p&gt;&lt;em&gt;Please email in your additions, corrections and protests at the bottom of the post.&lt;/em&gt;&lt;p&gt;You&#39;re meeting up with friends for your usual pizza party on Wednesday evenings, but only unhealthy tech stereotypes and other related professions show up.&lt;h2 id=people-at-the-pizza-party&gt;People at the Pizza Party&lt;/h2&gt;&lt;p&gt;Lawyer&#39;s at the Pizza Party, precisely write around the subject of a pizza night happening next week. What the pizza is, specifying that pizza is not pie, how it will be eaten, what happens if it&#39;s not, and specifically how to incrementally accumulate more slices in a conflict that may not occur. The pizza party was delayed.&lt;p&gt;Accountant&#39;s at the Pizza Party, obscurely choose precisely how much of the pizza, and how it&#39;s specific toppings are comparatively enjoyed, by whom, and how much could arguably be considered as officially part of the crust. The host&#39;s old dog always gets the crusts.&lt;p&gt;Police at the Pizza Party. They help people socially navigate the pizza party when poor decision making leads to a margarita pizza for everyone regardless of their order, or when the pizza is actually cracker with cheese but charged at XL pizza prices by one of the attendees.&lt;p&gt;Marketing at the Pizza Party. They tell everyone that Donna Kebab Pizza is good for your health. (&lt;em&gt;Small Print: assuming drunken-tastiness is considered part of your health. Based on studies of Kebab shop owners preferences.&lt;/em&gt;). And that, Blockchain Hawaiian pizza is brand new idea, and the tastiest pizza graze ever. (&lt;em&gt;Tastiest that was made by us. Tested by our pineapple reserves department. May not contain Blockchain.&lt;/em&gt;).&lt;p&gt;Venture Capital at the Pizza Party. The regular pizza party host doesn&#39;t actually own the house anymore and won&#39;t be at the party, but they assure us that new owner says the pizza parties are going to be even better, with more pizza. You&#39;re told you now need make a AI pizza designer app. It hallucinates disgusting pizzas, that never actually arrive. But the new hosts mate, Dave, has heard that people like AI, so he paid for all the pizzas, drinks and everyone&#39;s taxi home. No one got any pizza though, and before next pizza party they sold all the chairs, and we&#39;re now told that pizza parties will now be absorbed into Taco Tuesdays, only half of you are invited.&lt;p&gt;Domain Knowledge Hoarding Engineer at the Pizza Party. We&#39;ve only done cheese parties before, and we all know Sandra makes her own cheese in the kitchen. She takes everyone&#39;s pizza order, but she&#39;s not sure what salami is, and the pizza shop can&#39;t use her cheese anyway. She orders bread for everyone instead. We have her cheese on bread, and reluctantly accept calling it pizza.&lt;p&gt;Paddling Pool Engineer at the Pizza Party. The host&#39;s flatmate Jeremy has been... Read the full content online.</content>
  </entry><entry>
    <title>Take your stuff back, Part 2 of 2</title>
    <link href="https://benhoskins.uk/selfhosting-data-and-backups/" />
    <updated>2024-02-24T13:00:00Z</updated>
    <id>https://benhoskins.uk/selfhosting-data-and-backups/</id>
    <content type="html">&lt;h2 id=taking-your-stuff-back&gt;Taking Your Stuff Back&lt;/h2&gt;&lt;p&gt;In Part 1 of this miniseries on personal data privacy and security, I highlighted some data security threats the average person may now face online from those you should trust rather than just from &quot;hackers&quot; or obvious bad actors.&lt;p&gt;In this second part, I&#39;ll focus on some actionable points you can consider and start making progress towards should you want to.&lt;p&gt;Taking back control of your data doesn&#39;t need to be some massive and complicated undertaking.&lt;p&gt;You can always take a slow and progressive change towards controlling your own data:&lt;h2 id=1-plug-the-leaks&gt;&lt;strong&gt;1. Plug The Leaks&lt;/strong&gt;&lt;/h2&gt;&lt;p&gt;One of the first things we can do to combat your current lack of data control (and to guide the future of commercial data privacy), is to simply only use and pay for those services with practices that you agree with.&lt;p&gt;To do this, it helps to seek out and educate yourself about your privacy security and practices online.&lt;p&gt;TODO edu links incoming!&lt;p&gt;e.g. If you don&#39;t like how Facebook, Reddit, TikTok or Google handle privacy practices or security of your data? Don&#39;t pay them or just don&#39;t use their services where possible.&lt;p&gt;And, keep in mind that if you&#39;re not paying for the service directly, and you&#39;re not contributing to it somehow like an open-source passion project...&lt;p&gt;Your involvement and data is sold to someone else as the payment.&lt;p&gt;By simply choosing alternatives to those services, such as giant social media companies or file storage systems, you can hit them where it hurts - their access to your information.&lt;p&gt;At the very least, you can plug the leaks by frequently reviewing the settings of the online services that you do need to keep and block the stuff you don&#39;t need.&lt;h3 id=separation-of-services&gt;Separation of Services&lt;/h3&gt;&lt;p&gt;Another key thing to consider with online services is the &quot;not keeping all your eggs on one basket&quot; approach.&lt;p&gt;Instead of relying on one company or account to provide all your services like the Apple, Google, or Microsoft ecosystems.&lt;p&gt;Diversify!&lt;p&gt;Pick reliable services that don&#39;t feed data into each-other unnecessarily or try to do everything in one (who would have ever thought the &lt;a href=https://en.wikipedia.org/wiki/Unix_philosophy&gt;unix philosophy &lt;/a&gt;would come in so handy).&lt;p&gt;Some suggestions that come to mind:&lt;ul&gt;&lt;li&gt;&lt;a href=https://1password.com/ &gt;1Password&lt;/a&gt; rather than your browser/OS&#39;s password solution (most likely controlled by Google via Chrome).&lt;li&gt;&lt;a href=https://syncthing.net/ &gt;Syncthing&lt;/a&gt; rather than Dropbox or Google Drive (or &lt;a href=https://www.resilio.com/individuals/ &gt;Resilio&lt;/a&gt;)&lt;li&gt;&lt;a href=https://proton.me/mail&gt;Proton Mail&lt;/a&gt; rather than Gmail or Hotmail&lt;li&gt;&lt;a href=https://duckduckgo.com/spread&gt;DuckDuckGo&lt;/a&gt; rather than Google Search (although &lt;a href=https://www.startpage.com/ &gt;Startpage &lt;/a&gt;may be best for most transitioning users)&lt;li&gt;&lt;a href=https://mastodon.social/ &gt;Mastodon&lt;/a&gt; (or any other federated social... Read the full content online.</content>
  </entry><entry>
    <title>Take your stuff back, Part 1 of 2</title>
    <link href="https://benhoskins.uk/basic-online-data-security-and-privacy/" />
    <updated>2024-02-23T16:00:00Z</updated>
    <id>https://benhoskins.uk/basic-online-data-security-and-privacy/</id>
    <content type="html">&lt;p&gt;The term &quot;decentralised&quot; is thrown around a lot nowadays, and it&#39;s almost lost its meaning for the general public.&lt;p&gt;However, getting back to basics with lasting and reliable technology is so important for your privacy, security, and data longevity.&lt;p&gt;&lt;em&gt;Especially when long-term and seemingly ever-stable commercial services crumble or corrupt with such regularity as they do now in the last few years.&lt;/em&gt;&lt;p&gt;Think of all the data breaches in recent years, the extremely low fines for consistent lawbreaking companies, and long-standing services being purchased and/or taken offline at the whims of uninterested venture capitalists.&lt;p&gt;We naively used to rely on these free online services as the backbone of the consumed internet. But now, anti-consumer practices and excessive commercial gain (gain beyond that which is required for services to operate profitably) are leading their users and the internet back in to the dark ages.&lt;h2 id=data-dark-ages&gt;Data Dark Ages&lt;/h2&gt;&lt;p&gt;I once read online, although I can&#39;t remember where (a sentence that never ends well… &lt;em&gt;-citation is always needed!-&lt;/em&gt;) that we&#39;re living through a new sort of &quot;dark age&quot; as far as the historians are concerned.&lt;p&gt;And, although the first part of this post may lead you to believe, I don&#39;t actually mean &quot;dark ages&quot; in terms of horror and despair, but rather dankness of actual information loss on a grandiose scale.&lt;p&gt;e.g. When is the last time you came across niche but important content from a long time ago? &lt;em&gt;(a long-time ago, being only 6+ years)&lt;/em&gt;&lt;p&gt;If you&#39;re old enough, think back to the early days of the internet. It was open and more similar to the wild west than a public service. An internet rife with emotionally scarring content, isolated forums and uploading and downloading plain-text at its core.&lt;p&gt;&lt;em&gt;A haven for the few, but ultimately not what the masses wanted.&lt;/em&gt;&lt;p&gt;An unbelievable amount of specialist information or inspiration has been lost on forgotten hard drives. Lost at the deaths of their operators. Vanished when a company or website was taken over and axed, or simply lost to fluctuating interest, time and budget.&lt;p&gt;Today &lt;em&gt;we&lt;/em&gt; can look back to real paper, books, physical art, or even stone tablets to understand our history. But can you imagine how humans (&lt;em&gt;or whomever&lt;/em&gt;) in a few thousand years time could possibly understand our lives and culture today if our communication and data sources are so frequently lost on such a large scale as the internet?&lt;p&gt;Would they be doomed to repeat our mistakes again?&lt;p&gt;&lt;em&gt;This is the darkness of the modern web.&lt;/em&gt;&lt;p&gt;Data loss is happening on such a grand and fast-paced scale that it&#39;s not only effecting future historians, but also ourselves, in the now.&lt;p&gt;Think about those early digital photos you took 10 years ago, or important but digital documents and credentials stored only in your email account. In an email account some company conveniently provides for you at their digression, often for free, or... Read the full content online.</content>
  </entry><entry>
    <title>Blog, Site and RSS Updates</title>
    <link href="https://benhoskins.uk/site-updates-rss-and-shop/" />
    <updated>2024-02-01T18:42:00Z</updated>
    <id>https://benhoskins.uk/site-updates-rss-and-shop/</id>
    <content type="html">&lt;p&gt;There&#39;s been some changes around here...&lt;p&gt;There&#39;s been some minor UI updates via the CSS, and some Liquid template improvements, along with a fix for the local site search feature.&lt;p&gt;Behind the scenes I&#39;ve changed my writing setup to a combine the blog into my ever present markdown notes, which run on Obsidian and Syncthing.&lt;p&gt;&lt;em&gt;Let me know what you think about the changes below in the comments...&lt;/em&gt;&lt;p&gt;Saying that, there&#39;s been some changes to the &lt;a href=https://benhoskins.uk/reply-by-email/ &gt;comment system&lt;/a&gt; too.&lt;p&gt;TLDR; the comments section now works by email (with optional PGP) rather than Twitter or Mastodon.&lt;p&gt;You&#39;ll find my new public email address and its &lt;a href=https://benhoskins.uk/about/#reply-by-email&gt;PGP key&lt;/a&gt; dotted around the site for &lt;a href=https://benhoskins.uk/reply-by-email/ &gt;getting in touch&lt;/a&gt;. Although it does have some spam protection, please do not publish it elsewhere.&lt;p&gt;I would eventually like to streamline and rebuild the site completely, rather than basing it on a heavily modified &lt;a href=https://github.com/piharpi/jekyll-klise&gt;klisé&lt;/a&gt; for &lt;a href=https://jekyllrb.com&gt;jekyll&lt;/a&gt; theme.&lt;p&gt;&lt;em&gt;As soon as I have the time, I&#39;m sure to get on that.&lt;/em&gt;&lt;p&gt;I&#39;ll also overhaul the RSS feed generation, currently I&#39;m using the generic &lt;code&gt;jekyll-feed&lt;/code&gt; plugin, and it&#39;s not great.&lt;p&gt;Those of you reading this via the feeds will have poor post formatting, no reply link and no RSS Club! (🤯) - unless of course your RSS reader scrapes the site for the full article. I&#39;d like to improve on this at some point soon.&lt;p&gt;There&#39;s also been a feed bug in some RSS readers where the post ID&#39;s were not respected for read status. If you&#39;re an RSS reader, you may have missed out on some backdated posts, so do checkout the &lt;a href=https://benhoskins.uk/posts/ &gt;posts archive&lt;/a&gt; if you&#39;d like to double-check.&lt;p&gt;I&#39;ve also set up an &lt;a href=https://benhoskins.uk/rss/ &gt;&quot;RSS explained&quot; page&lt;/a&gt; for those new to the wonder-drug of feeds, and those looking for my feeds.&lt;p&gt;I did write about the &lt;a href=https://benhoskins.uk/an-rss-renaissance/ &gt;importance of RSS lately here&lt;/a&gt;, and I&#39;ve started to publish a list of blogs, sites and feeds I enjoy as a sort of &lt;a href=https://benhoskins.uk/links/ &gt;blogroll here&lt;/a&gt;, it even has &lt;a href=https://benhoskins.uk/feed/links.xml&gt;it&#39;s own feed&lt;/a&gt;.&lt;p&gt;&lt;em&gt;The Big News! (well at least for me)&lt;/em&gt;&lt;p&gt;I&#39;m starting to collate all my projects and software into once place.&lt;p&gt;This will be a showcase for some of the projects I&#39;ve blogged about over the years.&lt;p&gt;Some of it is free and open-source software along with some of my paid templates and applications too &lt;em&gt;(eventually...)&lt;/em&gt;.&lt;p&gt;I&#39;m affectionately calling this &lt;a href=https://benhoskins.uk/shop/ &gt;project page&lt;/a&gt; &quot;The Backend Shop&quot;.&lt;p&gt;Although yes, I&#39;ll likely be selling some bits here too, it&#39;s more of a &quot;shop&quot; in terms of workshop than ecommerce.&lt;p&gt;&lt;em&gt;Honestly, I just like the idea of collating my wares in the style of an 18th century... Read the full content online.</content>
  </entry><entry>
    <title>Computer Startup Turns on Office Lights</title>
    <link href="https://benhoskins.uk/home-assistant-webhooks/" />
    <updated>2024-02-01T17:51:00Z</updated>
    <id>https://benhoskins.uk/home-assistant-webhooks/</id>
    <content type="html">&lt;p&gt;&lt;a href=https://www.home-assistant.io&gt;Home Assistant&lt;/a&gt; has some useful features built in, even if they&#39;re not particularly well presented.&lt;p&gt;For example, you can actually trigger any automation from a basic HTTP GET request via a Webhook.&lt;p&gt;All from the GUI, without messing with endless YAML.&lt;h2 id=toggle-my-office-lights-with-my-computer&gt;Toggle my Office Lights with my Computer&lt;/h2&gt;&lt;p&gt;My plan is to have my office lights turn on and off along with my computer.&lt;p&gt;i.e. When the computer starts up; I want the desk lamp, floor lamp and wall lights to come on. When the computer is shutdown; I want them to turn off again too.&lt;h3 id=1-create-a-home-assistant-helper-device&gt;&lt;strong&gt;1. Create a Home Assistant &quot;Helper&quot; Device&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;In Home Assistant under &lt;code&gt;Settings -&gt; Devices &amp; Services -&gt; Helper Tab&lt;/code&gt; create a new Helper with the type of &quot;Group&quot;.&lt;p&gt;You can set it as a &quot;light&quot; or a &quot;switch&quot;, then add all the lamps or lights you want grouped together under this one helper device.&lt;h3 id=2-create-a-home-assistant-automation&gt;&lt;strong&gt;2. Create a Home Assistant &quot;Automation&quot;&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;In Home Assistant under &lt;code&gt;Settings -&gt; Automations &amp; Scenes -&gt; Automations Tab&lt;/code&gt; create a new automation.&lt;p&gt;&lt;strong&gt;Add a &quot;Webhook Trigger&quot;&lt;/strong&gt; in this new automation. Clicking on the Gog icon allows you to select which HTTP methods you want. Choose &quot;GET&quot; and &quot;only accessible from the local network&quot;.&lt;p&gt;Then click the copy icon next to the Webhook ID. This will actually &lt;strong&gt;copy the full webhook URL&lt;/strong&gt; rather than just the ID. &lt;em&gt;It will likely be your Home Assistant IP followed by an auto generated webhook API path.&lt;/em&gt;&lt;p&gt;For the awkwardly named &lt;strong&gt;&quot;Then do&quot; section, select &quot;Switch&quot; or &quot;Light&quot;&lt;/strong&gt; depending on how you created your helper in Step 1. Then select; &lt;strong&gt;&quot;Toggle&quot;, &quot;Turn Off&quot; or &quot;Turn On&quot;&lt;/strong&gt; as you like.&lt;p&gt;Save it, then pick &quot;run&quot; via the 3-dot menu to test it.&lt;h3 id=3-call-the-webhook-url-to-trigger-the-automation&gt;&lt;strong&gt;3. Call the Webhook URL to Trigger the Automation.&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;Exactly how to call the webhook URL from your computer starting up and shutting down will depend on your setup. e.g. macOS or Linux with which Desktop Environment etc.&lt;p&gt;e.g. on Linux Mint running Cinnamon, there&#39;s a handy &quot;Startup Applications&quot; app where you can add custom commands.&lt;p&gt;e.g. on a recent Gnome (in 2025) to setup a script at startup you&#39;ll need the &lt;a href=https://flathub.org/apps/io.github.flattool.Ignition&gt;Flatpak app Ignition&lt;/a&gt;.&lt;p&gt;Once you work out how to run a command at startup and/or on shutdown. You can use a command as simple as this &lt;code&gt;curl&lt;/code&gt;:&lt;pre class=language-bash&gt;&lt;code class=language-bash&gt;&lt;span class=&quot;token function&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-s&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-o&lt;/span&gt; /dev/null &lt;span class=&quot;token string&quot;&gt;&quot;http://192.168.1.2:8123/api/webhook/-XXXXXXXXXX-YYYYY&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This will call the webhook with a simple... Read the full content online.</content>
  </entry><entry>
    <title>Reply by Email</title>
    <link href="https://benhoskins.uk/reply-by-email/" />
    <updated>2023-12-24T15:12:00Z</updated>
    <id>https://benhoskins.uk/reply-by-email/</id>
    <content type="html">&lt;p&gt;Long term readers may remember that I was a fan of the social network previously know as Twitter.&lt;p&gt;Once upon a time, it was a seemingly rock-solid and an everlasting social platform. It was often a good experience, and an unmatched communication channel for when customers were ignored by uncontactable corporate types.&lt;p&gt;It was also great for gathering, storing and displaying feedback from a large pool of people but that has unfortunately changed in recent years partially due to the misguided whims of one particular arguably-overpowered billionaire.&lt;p&gt;The feedback focused functionality has now gone, and it&#39;s far from the open and reliable platform it used to be.&lt;p&gt;And so, the blog needs a new comment system again!&lt;p&gt;&lt;em&gt;Going forward, I won&#39;t so easily overlook the obvious red flag of a non-profitable and proprietary centralised service giants. 🚩&lt;/em&gt;&lt;p&gt;Although there are some up-and-coming social platforms alternatives like Mastodon. I don&#39;t think they&#39;re ready just yet, and I&#39;d rather not have a dedicated database with backend either.&lt;p&gt;There are few good third-party blog post comment systems out there for static sites, and even some DIY options too, but after browsing the solutions used by some of &lt;a href=https://benhoskins.uk/links/ &gt;my favourite blogs&lt;/a&gt;, I&#39;ve decided to stick with a good old fashioned solution. Email.&lt;h2 id=the-email-reply-button&gt;The Email Reply Button&lt;/h2&gt;&lt;p&gt;A few notes on mitigating some of the more obvious issues with email only comments or replies to blog posts:&lt;h3 id=1-open-email-conversations&gt;1. Open Email Conversations&lt;/h3&gt;&lt;p&gt;If comments from readers only came in via private emails, the valuable public discussion would be lost.&lt;p&gt;This is something that we&#39;re facing more often on the modern internet, with open social platforms becoming unreliable or community discussions being diverted away from public forums into isolated and ephemeral centralised IM chat clients like Discord.&lt;p&gt;That&#39;s why I still plan to publish useful or striking comments underneath blog posts.&lt;p&gt;Comments added to posts will be hand-picked and at the email writers discretion, but this will hopefully keep the conversation alive for those who don&#39;t want to write in themselves.&lt;p&gt;It&#39;ll also attempt to migrate over any existing comments from the Twitter comments era at some point.&lt;h3 id=2-email-security-and-privacy&gt;2. Email Security and Privacy&lt;/h3&gt;&lt;p&gt;Although there&#39;s nothing much on this site that would require excessive privacy or security for a reply. Email is fundamentally not designed as a private method of communication.&lt;p&gt;Although I won&#39;t publish email addresses at all on the site, should you want to send pseudonymous feedback, I&#39;d encourage readers to use Proton&#39;s Email Aliases (called Simple Login), Mozilla Firefox&#39;s Relay or some other service to obscure your email identity should you want to.&lt;p&gt;If you&#39;d rather your email content was not featured publicly on the site, or you&#39;d like your name redacted etc, just say so in the email and... Read the full content online.</content>
  </entry><entry>
    <title>We Need Feeds</title>
    <link href="https://benhoskins.uk/an-rss-renaissance/" />
    <updated>2023-11-27T21:11:00Z</updated>
    <id>https://benhoskins.uk/an-rss-renaissance/</id>
    <content type="html">&lt;p&gt;Let&#39;s travel back in time to the internet&#39;s teenage years, to when it was common to follow a personal blog, or join an open forum focused around a particular topic or community, without using any sort of mass-social media platform.&lt;p&gt;You&#39;d simply keep up to date with your small corner of the internet using an RSS feed or email digest.&lt;p&gt;Nowadays, the default online behaviour is to consume an endless feed of low quality content, fed to you for free by a company who&#39;s desperate to make money indirectly from your behaviour. All while, basing their success on some inhuman metric rather than your assessment or happiness with the service.&lt;p&gt;Does it keep you emotionally engaged while selling your data? Probably. Does it have the content you &lt;strong&gt;want&lt;/strong&gt; to consume in the &lt;strong&gt;way&lt;/strong&gt; you want? Probably not...&lt;p&gt;The unfortunate truth is that unfulfilling emotional engagement seems to earn more indirect income for social media giants rather than positive metrics. And so, that&#39;s what they will focus on.&lt;p&gt;The good news is that there&#39;s already a solution to this problem. A solution that I&#39;ve just about fallen in love with all over again.&lt;p&gt;It&#39;s not some new and untested fad. It&#39;s open, reliable and everywhere online already. And, if you didn&#39;t guess by the title, it&#39;s &lt;strong&gt;RSS&lt;/strong&gt;.&lt;p&gt;If you&#39;re concerned about online privacy and security, or if you&#39;re becoming tired of the often haphazard commercial or AI curated feeds with their ulterior motives... then getting back into RSS feeds might be for you.&lt;p&gt;&lt;em&gt;You may begin thinking that a smaller internet would result in a socially negative affect, such as extremely concentrated ideas, or even more news bubbling, but recent information and human behavioural history seems to suggest otherwise. See &lt;a href=&quot;https://youtu.be/fuFlMtZmvY0?si=omD7xuorRNcCnPyX&quot;&gt;Kurzgesagt recent video on social media&lt;/a&gt; for example.&lt;/em&gt;&lt;p&gt;It was just the right solution for me, and for thousands of others too.&lt;p&gt;The &lt;strong&gt;RSS Renaissance&lt;/strong&gt; seems to be taking shape.&lt;h2 id=whats-rss&gt;What&#39;s RSS?&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;For those technical people&lt;/strong&gt;, an RSS feed is a closer-to-human chronological content API endpoint.&lt;p&gt;For those &lt;strong&gt;non-technical muggles out there&lt;/strong&gt;, an RSS feed is like subscribing to a feed of a Youtube Channel or social media profile of someone you like, just without the middle man.&lt;p&gt;RSS is decentralised by nature. You get content straight to the source, and have data portability built in! You control the content you consume, and in chronological order.&lt;p&gt;It&#39;s similar to a notification system like an email newsletter than a modern, mystically curated social media feed.&lt;p&gt;*FYI: RSS has also been adopted by the podcast industry too, all your podcasts are actually running on RSS feeds under the hood too. *&lt;p&gt;&lt;em&gt;You may also see the term &quot;Atom&quot; feed thrown around, just think of this as another name for RSS version 3.0.&lt;/em&gt;&lt;h2 id=how-can-you-use-rss-feeds&gt;How can you use RSS... Read the full content online.</content>
  </entry><entry>
    <title>Simple Self-hosted Log Navigation</title>
    <link href="https://benhoskins.uk/simple-linux-logging/" />
    <updated>2023-11-27T15:24:00Z</updated>
    <id>https://benhoskins.uk/simple-linux-logging/</id>
    <content type="html">&lt;p&gt;There are a bunch of ways to deal with the plethora of logs when self-hosting or running a homelab.&lt;p&gt;And, some are more sensible than others.&lt;p&gt;As with everything Linux setup, there are simple ways, complicated ways, overly complicated ways, the enterprise ways and the complicated enterprise ways.&lt;p&gt;If you&#39;ve got a low power requirement or low headache requirement, you may prefer the simplest, most native approach when dealing with non-critical systems like a homelab and self-hosted services.&lt;p&gt;i.e. I&#39;d rather not host an application for logging when there are some great native alternatives.&lt;p&gt;Here&#39;s some groundwork information and a few great tools that will get you get started with logging. I&#39;m going to cover:&lt;ul&gt;&lt;li&gt;logging basics on Linux&lt;li&gt;&lt;code&gt;lnav&lt;/code&gt;&lt;/ul&gt;&lt;h2 id=linux-logging-basics&gt;Linux Logging Basics&lt;/h2&gt;&lt;p&gt;We&#39;re talking about Linux systems here and although I&#39;ll wish you the best of luck if you&#39;re self-hosting on anything else, this article probably only applies to GNU/Linux like systems.&lt;p&gt;There are a bunch of logfiles and log formats built into most distros like Debian, Fedora and Ubuntu etc.&lt;p&gt;The most common logfiles you&#39;ll come across are stored under &lt;code&gt;/var/log/&lt;/code&gt;:&lt;ul&gt;&lt;li&gt;syslog&lt;li&gt;apache/nginx access log&lt;li&gt;apache/nginx/php error log&lt;li&gt;&lt;em&gt;JSON array dumps&lt;/em&gt;&lt;/ul&gt;&lt;p&gt;Logs on Linux are typically &quot;rotated&quot; to prevent the files becoming too large and unwieldy. This is often handled with the &quot;logrotate&quot; programme.&lt;ul&gt;&lt;li&gt;&lt;code&gt;auth.log&lt;/code&gt; would be the most recent logfile&lt;li&gt;&lt;code&gt;auth.log.1&lt;/code&gt; would be the next most recent logfile&lt;li&gt;etc&lt;/ul&gt;&lt;p&gt;Incrementing the number until archiving kicks in, which is specified in the logrotate configuration. This will typically compress the file, resulting in a filename similar to this; &lt;code&gt;auth.log.4.gz&lt;/code&gt;.&lt;p&gt;&lt;em&gt;Due to the repetitive and text-based nature of logfiles, they lend themselves well to effective compression. You can end up keeping a lot of them before running into trouble.&lt;/em&gt;&lt;p&gt;After a specified period of time, the old and likely compressed log files are usually deleted to prevent them from accumulating and eventually using every last bit of space on the system.&lt;h3 id=syslog-logfiles&gt;Syslog Logfiles&lt;/h3&gt;&lt;p&gt;&lt;em&gt;...and by extension, systemd&#39;s journald.&lt;/em&gt;&lt;p&gt;To view syslog files, you&#39;ll likely need to be logged in as root or using &lt;code&gt;sudo&lt;/code&gt;. System level logs regularly contain somewhat sensitive information and so, even the read access permissions are limited.&lt;p&gt;Syslogs are likely to be your first stop for everything happening on your system. Check out the follow default log files; kern, auth, cron etc to get started with the basics.&lt;h3 id=access-and-error-web-server-logs&gt;Access and Error Web-server Logs&lt;/h3&gt;&lt;p&gt;Most of the common web/https servers that serve content from &lt;code&gt;/var/www&lt;/code&gt; or &lt;code&gt;/srv&lt;/code&gt; output hit logs in one of a few standard &quot;access log&quot; formats.&lt;p&gt;In these logs you&#39;ll find the information about who&#39;s connecting... Read the full content online.</content>
  </entry><entry>
    <title>Run a Cron Bash Backup Script Safely</title>
    <link href="https://benhoskins.uk/run-bash-once/" />
    <updated>2023-06-01T12:03:00Z</updated>
    <id>https://benhoskins.uk/run-bash-once/</id>
    <content type="html">&lt;p&gt;You might already be using the cron scheduler to run a daily bash script, perhaps you&#39;re backing up files using rclone or rsync?&lt;p&gt;What happens if that script runs for more than 24 hours (or whatever time interval you&#39;re using)? Bad things, as multiple instances of backup scripts can interfere with each other and corrupt data.&lt;p&gt;This bash one-liner stops a script running again if it&#39;s already running elsewhere.&lt;h2 id=prevent-multiple-instances-of-a-bash-script-running&gt;Prevent multiple instances of a bash script running&lt;/h2&gt;&lt;p&gt;There are plenty of ways to solve this sort of race condition, but the simplest one I&#39;ve found that works on most Linux based systems out-of-the-box is the PID file approach.&lt;p&gt;It&#39;s a nice one-liner that you can prepend to the top of any bash script – whether it&#39;s being called by cron or not – and it&#39;ll make sure this named script is not already running before the rest of the file is executed.&lt;figure&gt;&lt;pre class=language-sh&gt;&lt;code class=language-sh&gt;&lt;span class=&quot;token important shebang&quot;&gt;#!/bin/bash&lt;/span&gt;

 &lt;span class=&quot;token comment&quot;&gt;# Is this script already running? (https://benhoskins.dev/run-bash-once/)&lt;/span&gt;
pidof &lt;span class=&quot;token variable parameter&quot;&gt;-o&lt;/span&gt; %&lt;span class=&quot;token constant environment&quot;&gt;PPID&lt;/span&gt; &lt;span class=&quot;token variable parameter&quot;&gt;-x&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$0&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&gt;&lt;/span&gt;/dev/null &lt;span class=&quot;token operator&quot;&gt;&amp;&amp;&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;ERROR: Script &lt;span class=&quot;token variable&quot;&gt;$0&lt;/span&gt; already running&quot;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;&amp;&lt;/span&gt; &lt;span class=&quot;token builtin class-name&quot;&gt;exit&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;# do your script here...&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;figcaption&gt;Contribute to this snippet on &lt;a href=https://codeberg.org/teatowel/benhoskins.dev-snippets/src/branch/main/run-bash-once/example.sh target=_blank&gt;Codeberg: run-bash-once/example.sh.&lt;/a&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;&lt;em&gt;Sources: I initially found a solution for preventing multiple instances of a rclone script running on the &lt;a href=https://forum.rclone.org/t/14180/5&gt;rclone forums discussing running rclone as a single instance&lt;/a&gt; , and after playing around with &lt;code&gt;lockfile&lt;/code&gt; and &lt;code&gt;flock&lt;/code&gt; I settled on using a simpler answer from the &lt;a href=https://unix.stackexchange.com/a/398710&gt;Unix Stack Overflow about making sure only once instance is running&lt;/a&gt;, I found a slightly nicer formatting via &lt;a href=https://www.benjaminrancourt.ca/how-to-ensure-only-one-instance-of-a-bash-script-is-running/ &gt;Benjamin Rancourt&#39;s blog&lt;/a&gt; about the same subject.&lt;/em&gt;</content>
  </entry><entry>
    <title>Syncthing Photos, a Dropbox or Google Photos Replacement</title>
    <link href="https://benhoskins.uk/syncthing-dropbox-and-google-photos-replacement/" />
    <updated>2023-02-07T15:28:00Z</updated>
    <id>https://benhoskins.uk/syncthing-dropbox-and-google-photos-replacement/</id>
    <content type="html">&lt;p&gt;If you&#39;ve not come across &lt;a href=https://syncthing.net/ &gt;Syncthing&lt;/a&gt; before, it&#39;s an open source file synchronisation replacement for commercial big-tech services like Dropbox and Google Drive.&lt;p&gt;You configure it, run it and control your data. There&#39;s no central server that stores your data, no company with other interests. It uses a clever P2P (peer-to-peer) file synchronisation technology called &lt;a href=https://docs.syncthing.net/specs/bep-v1.html#bep-v1&gt;BEP&lt;/a&gt; (Block Exchange Protocol) to sync your files back-and-forth between devices directly without a storage server in the cloud.&lt;p&gt;It&#39;ll sync all your files and photos from your phone like Dropbox Camera Uploads or Google Photos automatic backup, replacing all but the public sharing features of Dropbox or Google Drive.&lt;p&gt;You can skip the Syncthing background reading and &lt;a href=https://benhoskins.uk/syncthing-dropbox-and-google-photos-replacement/#replace-dropbox-camera-uploads-or-google-photos-with-syncthing&gt;jump straight to the easy Dropbox Photo&#39;s or Google Photo&#39;s setup&lt;/a&gt; below.&lt;h2 id=how-much-storage-space-and-how-fast&gt;How much storage space and how fast?&lt;/h2&gt;&lt;p&gt;Syncthing has as much storage space as you have. It syncs between your devices directly so there&#39;s no limit other than your device itself.&lt;p&gt;e.g. If you have 1000GB on your laptop and other computer, you can sync up to 1000GB.&lt;p&gt;It can also sync very fast, depending on how it&#39;s configured. i.e. If you setup your devices in a linear bunny-hop style network all on their own closed networks then it&#39;ll naturally be slower than a mesh network of all devices talking to each other with all their network ports open.&lt;h2 id=synchronisation-is-different-from-backup&gt;Synchronisation is Different from Backup.&lt;/h2&gt;&lt;p&gt;The word backup is thrown around loosely, and although some people may consider having their data saved in the Dropbox or Google Drive cloud as a backup, technically speaking it is not a true backup.&lt;p&gt;&lt;strong&gt;File timeline states.&lt;/strong&gt; Syncing does not store all states of the files in cohesion. e.g. if you edit a file offline 3 times and then go back online to sync, only the most recent/current version is sent off to the cloud or other devices - if you need constant file state backups, you could use something like git or drive snapshots, but this is for another post.&lt;p&gt;&lt;strong&gt;Deletion.&lt;/strong&gt; Deletion is involved in file synchronisation by definition. If you&#39;re syncing a folder from one place to another, this means syncing deletions too. If you delete a file on your laptop it&#39;ll be deleted in the cloud or other devices too. Not great for a backup.&lt;p&gt;Cloud sync providers and Syncthing have an additional feature to save you from accidental deletions. They usually call this something like &quot;file recovery&quot; or &quot;file versioning&quot;. If any file is deleted or overwritten it&#39;ll save a copy of it somewhere else for a specified time frame so you can get it back by restoring the accidentally lost file. This is a helpful feature... Read the full content online.</content>
  </entry><entry>
    <title>Jekyll in Docker with Docker Compose</title>
    <link href="https://benhoskins.uk/run-jekyll-in-docker-with-docker-compose/" />
    <updated>2022-12-30T22:19:00Z</updated>
    <id>https://benhoskins.uk/run-jekyll-in-docker-with-docker-compose/</id>
    <content type="html">&lt;div class=&quot;markdown-alert markdown-alert-important&quot;&gt;&lt;p class=markdown-alert-title&gt;&lt;svg aria-hidden=true class=&quot;mr-2 octicon octicon-report&quot; height=16 version=1.1 viewBox=&quot;0 0 16 16&quot; width=16&gt;&lt;path d=&quot;M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Update 2025&lt;p&gt;I&#39;ve written a newer post for running Jekyll under Docker. See &lt;a href=https://benhoskins.uk/run-jekyll-in-docker-with-docker-compose/ &gt;Jekyll in Docker 2025 Update&lt;/a&gt; for more up-to-date information.&lt;/div&gt;&lt;p&gt;Containerised local development is often the way forward for small software development teams. It allows everyone to replicate the same working environment without spending ages configuring their individual systems.&lt;p&gt;This goes especially for the nowadays more uncommon languages such as Ruby - and if you&#39;re not ready to make the leap to Hugo - running the ruby based Jekyll in Docker is a great solution for local Jekyll web-development.&lt;h2 id=setup-jekyll-in-docker-and-docker-compose&gt;Setup Jekyll in Docker and Docker Compose&lt;/h2&gt;&lt;p&gt;First, make sure you have docker running in the background, whether via the docker engine or Docker Desktop etc.&lt;p&gt;Then, create a &lt;code&gt;docker-compose.yml&lt;/code&gt; file in the root of your Jekyll project with the below YAML content.&lt;p&gt;Run this docker compose file to launch a container with the official Jekyll docker image, and your Jekyll sites files.&lt;p&gt;Once the container has fully loaded, you can access it via &lt;code&gt;http://0.0.0.0:4000&lt;/code&gt; and since we&#39;re only running this locally the lack of SSL/HTTPS should be fine in most cases.&lt;pre class=language-yml&gt;&lt;code class=language-yml&gt;&lt;span class=&quot;token atrule key&quot;&gt;services&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;token atrule key&quot;&gt;jekyll&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;token atrule key&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; jekyll/jekyll
    &lt;span class=&quot;token atrule key&quot;&gt;volumes&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; .&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;/srv/jekyll
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; ./vendor/bundle/&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;/usr/local/bundle
    &lt;span class=&quot;token atrule key&quot;&gt;ports&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;4000:4000&quot;&lt;/span&gt;
    &lt;span class=&quot;token atrule key&quot;&gt;command&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; jekyll serve &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;force_polling &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt;&lt;span... Read the full content online.</content>
  </entry><entry>
    <title>Remember tar flags the easy way.</title>
    <link href="https://benhoskins.uk/linux-compression-tar-zip/" />
    <updated>2022-08-08T09:08:00Z</updated>
    <id>https://benhoskins.uk/linux-compression-tar-zip/</id>
    <content type="html">&lt;p&gt;&lt;code&gt;tar&lt;/code&gt; is one of those commands that used all the time in the terminal on bash, but it&#39;s not easy to remember the flags or parameters for compression and extraction of &lt;code&gt;.tar.gz&lt;/code&gt; files.&lt;p&gt;Here&#39;s my dumb and easy to remember method for remembering the tar command options. &lt;em&gt;(I don&#39;t remember where I first came across this).&lt;/em&gt;&lt;h2 id=tar-compression&gt;tar compression&lt;/h2&gt;&lt;p&gt;When &lt;em&gt;compressing&lt;/em&gt; a folder onto a &lt;code&gt;.tar.gz&lt;/code&gt; archive, it&#39;s as easy as telling it what you want (with an accent…).&lt;p&gt;&quot;&lt;strong&gt;tar&lt;/strong&gt; &lt;strong&gt;c&lt;/strong&gt;reate &lt;strong&gt;z&lt;/strong&gt;e &lt;strong&gt;f&lt;/strong&gt;ile&quot;&lt;pre class=language-bash&gt;&lt;code class=language-bash&gt;&lt;span class=&quot;token function&quot;&gt;tar&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-czf&lt;/span&gt; archive.tar.gz ./my-directory&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;code&gt;man tar&lt;/code&gt; will tell you that the flags &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;z&lt;/code&gt; and &lt;code&gt;f&lt;/code&gt; highlighted in bold ask tar to &lt;code&gt;create&lt;/code&gt;, &lt;code&gt;compress it with gzip&lt;/code&gt; and finally &lt;code&gt;file&lt;/code&gt;.&lt;h2 id=tar-extraction&gt;tar extraction&lt;/h2&gt;&lt;p&gt;When &lt;em&gt;extracting&lt;/em&gt; or uncompressing a &lt;code&gt;.tar.gz&lt;/code&gt; archive onto a directory/file it&#39;s as easy as telling it what you want again (with an accent...).&lt;p&gt;&quot;&lt;strong&gt;tar&lt;/strong&gt; &lt;strong&gt;x&lt;/strong&gt;-tract &lt;strong&gt;f&lt;/strong&gt;ile&quot;&lt;pre class=language-bash&gt;&lt;code class=language-bash&gt;&lt;span class=&quot;token function&quot;&gt;tar&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-xf&lt;/span&gt; archive.tar.gz&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;code&gt;man tar&lt;/code&gt; will tell you that the flags &lt;code&gt;x&lt;/code&gt; flag here simply means &lt;code&gt;extract&lt;/code&gt;.&lt;h2 id=verbosity&gt;Verbosity&lt;/h2&gt;&lt;p&gt;If you want more output to know what&#39;s happening, especially helpful with large archives, just prepend a &lt;code&gt;v&lt;/code&gt; to the flags.</content>
  </entry><entry>
    <title>Deploy with Rsync on Github Actions</title>
    <link href="https://benhoskins.uk/github-actions-deploy-with-rsync/" />
    <updated>2021-10-02T09:11:00Z</updated>
    <id>https://benhoskins.uk/github-actions-deploy-with-rsync/</id>
    <content type="html">&lt;div class=&quot;markdown-alert markdown-alert-note&quot;&gt;&lt;p class=markdown-alert-title&gt;&lt;svg aria-hidden=true class=&quot;mr-2 octicon octicon-info&quot; height=16 version=1.1 viewBox=&quot;0 0 16 16&quot; width=16&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Migrated&lt;p&gt;This post was migrated to &lt;a href=https://benhoskins.uk/shop/github-actions-deploy-with-rsync/ &gt;the Backend Workshop projects&lt;/a&gt;.&lt;/div&gt;&lt;p&gt;There&#39;s a lot of great ways to deploy code into production nowadays.&lt;p&gt;Some cloud providers even handle deployment themselves, you setup a repository in Bitbucket or Github, connect the Cloud provider and they&#39;ll build and deploy the code based on your specifications. There&#39;s also a bunch of third-party providers that can do this for you, acting as the &quot;deployment middle man&quot;.&lt;p&gt;This is great for teams or complex systems with complex build requirements, but what if you have a simple or legacy app that doesn&#39;t support these methods and you don&#39;t want to continue relying on manually uploading code via SFTP (or FTPS... &lt;em&gt;shudder&lt;/em&gt;)?&lt;p&gt;Well it&#39;s not an ideal solution but you can use &lt;strong&gt;Rsync&lt;/strong&gt; on &lt;a href=https://docs.github.com/en/actions&gt;Github Actions&lt;/a&gt; for this. Github also has a generous free plan so it usually doesn&#39;t cost a penny - depending on how often you deploy.&lt;p&gt;If you&#39;re not familiar Github Actions is a container-like automation service built into Github, you can write some YAML code to run a specific container and some code/actions during a Pull Request, merge or during a commit to the main branch etc.&lt;div class=&quot;markdown-alert markdown-alert-note&quot;&gt;&lt;p class=markdown-alert-title&gt;&lt;svg aria-hidden=true class=&quot;mr-2 octicon octicon-info&quot; height=16 version=1.1 viewBox=&quot;0 0 16 16&quot; width=16&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;p&gt;Although Bitbucket has a similar system called Pipelines, which also uses YAML for the configuration, they work fundamentally differently to Github Actions and are less flexible for these sort of project. So we&#39;ll focus on Github Actions here.&lt;/div&gt;&lt;h2 id=setup-rsync-to-deploy-on-github-actions&gt;Setup Rsync to Deploy on Github Actions&lt;/h2&gt;&lt;p&gt;Most Linux based servers that support SFTP/FTPS also support other basic Linux tools like &lt;strong&gt;SSH&lt;/strong&gt; and &lt;strong&gt;Rsync&lt;/strong&gt;, both of which are needed for this type of deployment to work.&lt;p&gt;Warning: This sort of rsync deployment works great for legacy or simple projects, like old-school PHP projects, but it&#39;s not fool-proof. Updates are technically handled file-by-file (although usually quickly) so if you&#39;ve got a... Read the full content online.</content>
  </entry><entry>
    <title>Text-to-Speech for Linux</title>
    <link href="https://benhoskins.uk/advanced-tts-text-to-speech-on-linux/" />
    <updated>2021-05-10T12:13:00Z</updated>
    <id>https://benhoskins.uk/advanced-tts-text-to-speech-on-linux/</id>
    <content type="html">&lt;p&gt;Those of us with dyslexia know that writing great emails (or any other written communication for that matter!) can be tricky at the best of times.&lt;p&gt;Being able to check your writing with a text-to-speech app is a great help, and you may already be aware of the &lt;code&gt;say&lt;/code&gt; programme for &lt;abbr title=&quot;Text To Speech&quot;&gt;TTS&lt;/abbr&gt; on macOS. It can be setup with a keyboard shortcut to speak aloud any selected text.&lt;p&gt;You can even get real human-sounding voices, rather than programmatic-robotic voices from back-in-the-day, they use real inflections and pick up on grammar too. This sort of tool is called &quot;Advanced TTS&quot; or Advanced Text-to-Speech, and it&#39;s great for checking the flow of your emails.&lt;p&gt;However, a great TTS is harder to get on a Linux desktop. There are a few easy-to-install TTS applications on the various Linux repositories, but they&#39;re old-school at best (think 1990s Sci-Fi robot tones). These sorts of TTS apps are not the most helpful for checking human inflections and grammar in a chunk of text.&lt;p&gt;There are some great Firefox web-browser add-ons for using advanced AI-based TTS for selected text on webpages. However, these add-ons won&#39;t help outside the web-browser, and you may be sacrificing your privacy to the operators of the add-on as they sit between you and the advanced TTS providers like Google Cloud.&lt;p&gt;Thankfully, all the big-players in the cloud now offer their own TTS or Text-to-speech APIs. This means that we can use them pretty easily on Linux, with just hacky script, some dependencies, and Google Cloud&#39;s free tier.&lt;h2 id=setup-advanced-tts-text-to-speech-on-linux&gt;Setup Advanced TTS (Text-to-Speech) on Linux&lt;/h2&gt;&lt;p&gt;Warning: This is a quick and somewhat-dirty hack, in PHP, built for Linux to speak aloud any text you&#39;ve copied on command. It&#39;ll send any copied text to Google&#39;s TTS API service, download a temporary audio file and play it back to you.&lt;p&gt;&lt;strong&gt;Step 1.&lt;/strong&gt; Set up a Google Cloud account on the free tier if you don&#39;t already have one, and generate an API token for their TTS API service.&lt;p&gt;&lt;strong&gt;Step 2.&lt;/strong&gt; Install dependencies on your Linux. i.e. &lt;code&gt;php&lt;/code&gt;, &lt;code&gt;xclip&lt;/code&gt;, &lt;code&gt;play&lt;/code&gt;.&lt;p&gt;e.g. on Debian, Ubuntu etc &lt;code&gt;sudo apt install php-cli php-curl xclip sox libsox-fmt-mp3&lt;/code&gt;&lt;p&gt;&lt;strong&gt;Step 3.&lt;/strong&gt; Copy this script into your home directory and call it &lt;code&gt;gctts.php&lt;/code&gt;, editing the code to include your API key.&lt;div class=&quot;markdown-alert markdown-alert-note&quot;&gt;&lt;p class=markdown-alert-title&gt;&lt;svg aria-hidden=true class=&quot;mr-2 octicon octicon-info&quot; height=16 version=1.1 viewBox=&quot;0 0 16 16&quot; width=16&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;p&gt;It&#39;s not good practice to store secrets like API keys in code, usually it&#39;s better to store them in... Read the full content online.</content>
  </entry><entry>
    <title>Twitter as Comments, for Blogs &amp; SME Brand Social Engagement</title>
    <link href="https://benhoskins.uk/twitter-as-comments-for-blogs-sme-brand-social-engagement/" />
    <updated>2020-02-26T17:36:51Z</updated>
    <id>https://benhoskins.uk/twitter-as-comments-for-blogs-sme-brand-social-engagement/</id>
    <content type="html">&lt;p&gt;So you&#39;re looking for a super simple, light-weight, &lt;em&gt;slightly hacky&lt;/em&gt;, solution for &lt;em&gt;encouraging&lt;/em&gt; social engagement, promoting excellent customer feedback and managing comments on articles and posts?&lt;p&gt;&lt;em&gt;All with little effort and no extra services.&lt;/em&gt;&lt;p&gt;&lt;strong&gt;A few lines of CSS, and the right call-to-action button will do.&lt;/strong&gt;&lt;p&gt;&lt;a href=https://benhoskins.uk/twitter-as-comments-for-blogs-sme-brand-social-engagement/#code&gt;Here it is&lt;/a&gt; - the no-plugin, no-service, no-faff Twitter comment system for blogs and other media engagement.&lt;div class=&quot;markdown-alert markdown-alert-note&quot;&gt;&lt;p class=markdown-alert-title&gt;&lt;svg aria-hidden=true class=&quot;mr-2 octicon octicon-info&quot; height=16 version=1.1 viewBox=&quot;0 0 16 16&quot; width=16&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note**2023 Outdated!**&lt;p&gt;The social media platform Twitter has changed. Now nammed &quot;X&quot; and is no longer useful for collecting public feedback. Read more about this on my &lt;a href=https://benhoskins.uk/reply-by-email/ &gt;Reply by Email&lt;/a&gt; post.&lt;/div&gt;&lt;h3 id=digital-social-engagement-is-hard&gt;Digital Social Engagement is Hard&lt;/h3&gt;&lt;p&gt;When you&#39;re building a brand or small business - it isn&#39;t always practical to outsource social media to &lt;em&gt;&quot;experts&quot;&lt;/em&gt; &lt;em&gt;and&lt;/em&gt; the budget agencies don&#39;t usually preform as you may hope.&lt;p&gt;So we&#39;re usually left with other staff or brand owners heading up their public engagement, it takes a lot of time to get right and ends up being neglected more often than not.&lt;p&gt;The public will comment across all self-published media for small brands and SMEs - &lt;em&gt;like your YouTube videos, Facebook, Twitter etc... -&lt;/em&gt; but also on websites and blogs, like WordPress, unfortunately these comments trend towards an absolute dumpster-fire of spam ending up as a brand-damaging waste of time.&lt;p&gt;It&#39;s usually &lt;em&gt;link-back spam&lt;/em&gt; and even just dumb or off topic rants from obscure keyboard-warriors basking in the limelight, for a few moments.&lt;p&gt;&lt;em&gt;None of which is good for business.&lt;/em&gt;&lt;p&gt;We rely on platform providers, or third-party services to regulate the trolls and vanish the spam comments - missing-out on the audience encouragement and brand growth benefits of proactive engagement.&lt;h3 id=an-sme-social-media-fallacy&gt;An SME, Social-media Fallacy&lt;/h3&gt;&lt;p&gt;I was &lt;em&gt;knee-deep&lt;/em&gt; in what feels like my hundredth-thousandth spammy comment, attempting to pick-out and focus on the great feedback from the &lt;em&gt;real&lt;/em&gt; brand-ambassadors - &lt;em&gt;when that dreadful decision crossed my mind again...&lt;/em&gt;&lt;p&gt;&lt;strong&gt;Ignore the comments, wouldn&#39;t it just be easier?&lt;/strong&gt;&lt;p&gt;&lt;em&gt;But wait!&lt;/em&gt;&lt;p&gt;Sure... it&#39;ll save some time and a fair amount of mental strain - but you&#39;d be missing out on that &lt;strong&gt;huge&lt;/strong&gt;, &lt;strong&gt;easy&lt;/strong&gt; and... Read the full content online.</content>
  </entry><entry>
    <title>DSE Workstation Safety for Serious Computer Users</title>
    <link href="https://benhoskins.uk/serious-computer-users-dse/" />
    <updated>2020-01-16T16:28:00Z</updated>
    <id>https://benhoskins.uk/serious-computer-users-dse/</id>
    <content type="html">&lt;p&gt;I&#39;ve been&lt;p&gt;Learning the hard way that; &lt;strong&gt;Pain&lt;/strong&gt;, &lt;strong&gt;Demotivation&lt;/strong&gt; and &lt;strong&gt;Low-productivity&lt;/strong&gt; can &lt;em&gt;creep-up&lt;/em&gt; when you&#39;re knee-deep in a startup or long project. You already take the time to ensure your tech and business model is setup and working well for you - so why not your teams physical health too?&lt;p&gt;&lt;p&gt;Once you fix your workstation - you&#39;d be surprised at the subtle low-levels of physical pain relief, as well as the acute pain relief too. You become more motivated, more productive and much more engaged in the same-old-tasks - &lt;em&gt;seemingly like magic&lt;/em&gt;.&lt;blockquote class=wp-block-quote&gt;&lt;p&gt;Nurture yourself and those around you, &lt;span style=&quot;text-decoration: underline;&quot;&gt;before&lt;/span&gt; you fall apart and seize up like an old machine trying to reach the dividends.&lt;/blockquote&gt;&lt;p&gt;A London based company I&#39;ve had the pleasure of working with teaches such &lt;em&gt;Magic&lt;/em&gt; to mere-mortals like ourselves, via eLearning...&lt;h2 id=suffer-and-learn&gt;Suffer &amp; Learn.&lt;/h2&gt;&lt;p&gt;Obsessed with tech since my first laptop, I&#39;ve was blessed with bad wrists and unfavourable severe back pain.&lt;p&gt;&lt;em&gt;Being slowed down at your workstation is a real professional risk.&lt;/em&gt;&lt;p&gt;When managing an SME or a startup - morale is a key player. If your devs and sales people are in lowkey energy-slumps or irritated with each other, &lt;em&gt;or an irritable boss&lt;/em&gt;, everything can stagnate and fall apart before your growth stage even kicks in.&lt;p&gt;Part of the solution is nurturing a great working environment, with healthy personal life style habits among staff, but almost more importantly &lt;em&gt;yourself&lt;/em&gt; too.&lt;p&gt;Removing negative pressures through effective management and physical ergonomics &lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;should be as much a priority&lt;/span&gt;&lt;/em&gt; as avoiding the office burning&lt;strong&gt; down in flames&lt;/strong&gt; with appropriate fire safety... Most digital businesses forget this in the early days of success.&lt;p&gt;While working with a company called IBIS Training in London - &lt;em&gt;programming and organising their business management&lt;/em&gt; - I was exposed to a new &lt;a href=https://ibis.training/ &gt;health &amp; safety focused mindset&lt;/a&gt; to personal development.&lt;h2 id=fixing-dse-with-training&gt;Fixing DSE with Training.&lt;/h2&gt;&lt;p&gt;&lt;a href=https://ibis.training/elearning/dse-computer-workstation/ &gt;DSE&lt;/a&gt; or &quot;Display Screen Equipment&quot;, usually sparks the &lt;span style=&quot;text-decoration: underline;&quot;&gt;eye-glazing&lt;/span&gt; thoughts of dull offices, anoraks and ugly plastic desk accessories.&lt;p&gt;But, in the modern environment this extends to your iPhone, working on a tablet in the airport, using a &lt;strong&gt;standing desk&lt;/strong&gt; at a &lt;strong&gt;custom gaming computer&lt;/strong&gt;, a laptop in the lounge or even chilling on the &lt;strong&gt;Tesla&lt;/strong&gt;&#39;s display while you &lt;em&gt;Supercharge&lt;/em&gt;.&lt;p&gt;If you&#39;re one to fuss with custom mechanical keyboards&lt;em&gt; (...Cherry MX and WASD Keebs FTW!)&lt;/em&gt;, &lt;em&gt;alluded by standing desks&lt;/em&gt; or just using the latest... Read the full content online.</content>
  </entry><entry>
    <title>Connect Starling Bank to Zapier &amp; IFTTT</title>
    <link href="https://benhoskins.uk/connect-starling-bank-to-zapier-ifttt/" />
    <updated>2020-01-14T18:52:07Z</updated>
    <id>https://benhoskins.uk/connect-starling-bank-to-zapier-ifttt/</id>
    <content type="html">&lt;p&gt;You can now connect &lt;strong&gt;&lt;a href=https://www.starlingbank.com/ &gt;Starling Bank&lt;/a&gt; to &lt;a href=https://zapier.com/ &gt;Zapier&lt;/a&gt;&lt;/strong&gt; with &lt;em&gt;full functionality&lt;/em&gt; (a great &lt;strong&gt;IFTTT&lt;/strong&gt; alternative) and connect &lt;strong&gt;Starling to &lt;a href=https://ifttt.com/ &gt;IFTTT&lt;/a&gt;&lt;/strong&gt; with &lt;em&gt;basic functionality&lt;/em&gt;.&lt;p&gt;This makes it super-easy to integrate your bank with &lt;em&gt;thousands&lt;/em&gt; of other online services, even if you&#39;re not a programmer.&lt;p&gt;&lt;em&gt;Even if it is a little unofficial.&lt;/em&gt;&lt;div class=&quot;markdown-alert markdown-alert-note&quot;&gt;&lt;p class=markdown-alert-title&gt;&lt;svg aria-hidden=true class=&quot;mr-2 octicon octicon-info&quot; height=16 version=1.1 viewBox=&quot;0 0 16 16&quot; width=16&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;**2023: Outdated!**&lt;p&gt;Starling webhooks now require a new subdirectory on the endpoint. I&#39;ll add a link here where when I get around to writing about it.&lt;/div&gt;&lt;h3 id=are-these-challenger-banks-any-good&gt;Are these &quot;Challenger Banks&quot; any good?&lt;/h3&gt;&lt;p&gt;You may have heard the term &#39;challenger bank&#39; in recent years, it means new small banks that compete directly with the longer-established banks.&lt;p&gt;And, there&#39;s a good reason for it. &#39;Traditional banks&#39; have become stagnant and disconnected from what their patrons need.&lt;p&gt;This leads to losing customers, and eventually losing their profits too.&lt;blockquote class=wp-block-quote&gt;&lt;p&gt;&lt;em&gt;But why would I care about the banks profits? I hear you ask.&lt;/em&gt;&lt;/blockquote&gt;&lt;p&gt;If the banks are making a healthy, &lt;em&gt;but not super excessive&lt;/em&gt;, profit from their services to you (like leveraging capital, loans and credit etc), they&#39;ll stay focused on &lt;em&gt;your experience&lt;/em&gt;, and provide &lt;em&gt;competitive interest rates&lt;/em&gt; to keep you from going elsewhere.&lt;p&gt;When there&#39;s healthy competition from many banks - &lt;em&gt;not just a few banks at the top&lt;/em&gt; - profits can help keep the banks focused on providing a good banking service.&lt;p&gt;Partly thanks to Mastercard, and a changing financial environment, there&#39;s now a few more modern-banking alternatives to the big high street banks.&lt;p&gt;These alternatives, from a customer point of view, are &quot;just an app&quot; and a debit card.&lt;p&gt;Challenger Bank Key Points:&lt;ul&gt;&lt;li&gt;They&#39;re &lt;strong&gt;well-made&lt;/strong&gt;, &lt;strong&gt;fast&lt;/strong&gt; with &lt;strong&gt;live&lt;/strong&gt; transaction info and have modern &lt;strong&gt;money management&lt;/strong&gt; and saving features built in.&lt;p&gt;&lt;li&gt;There&#39;s no stores to trek to, tedious call-centres, bureaucracy or old-fashioned delays, charges or international currency restrictions.&lt;/ul&gt;&lt;p&gt;You may have heard of &lt;strong&gt;&lt;a href=https://monzo.com/ &gt;Monzo Bank&lt;/a&gt;&lt;/strong&gt; arguably the &lt;em&gt;biggest&lt;/em&gt; small challenger-bank - &lt;em&gt;but in my opinion&lt;/em&gt; - there&#39;s a much better alternative.&lt;p&gt;For the cost of sacrificing a few fancy features, you... Read the full content online.</content>
  </entry><entry>
    <title>tmux-hints.sh v0.3 Update! The Terminal Cheat-sheet app for Devs</title>
    <link href="https://benhoskins.uk/tmux-hints-sh-v0-3-update/" />
    <updated>2019-12-23T08:13:00Z</updated>
    <id>https://benhoskins.uk/tmux-hints-sh-v0-3-update/</id>
    <content type="html">&lt;p&gt;&#39;&lt;a href=https://benhoskins.uk/tmux-hints-sh-auto-cheatsheet-for-vim-zsh-tmux/ &gt;tmux-hints&lt;/a&gt;&#39; is a small shell script I wrote to display a live cheat-sheet - or key-mapping notes - in a terminal running tmux.&lt;p&gt;As you switch from one program to another, your notes update automatically with that programs notes instead. Great for new key-combos and noobs alike.&lt;p&gt;After gaining some popularity, mainly from Reddit, I had some great feedback ready to put into action.&lt;p&gt;&lt;strong&gt;Version 0.3, improves on existing concepts and implementation mainly thanks to &lt;a href=https://reddit.com/u/vogelke&gt;/u/vogelke&lt;/a&gt; and others commenting their experiences.&lt;/strong&gt;&lt;p&gt;Main v0.3 developments include:&lt;ul&gt;&lt;li&gt;Better help docs formatting.&lt;li&gt;Better initialization and sanity checking.&lt;li&gt;Sensible terminal clearing&lt;li&gt;Better startup hint file initialisation.&lt;/ul&gt;&lt;p&gt;Check out the &lt;a href=https://benhoskins.uk/tmux-hints-sh-auto-cheatsheet-for-vim-zsh-tmux/ &gt;initial release post here&lt;/a&gt; on Ben Hoskins Dev Blog and checkout the &lt;a href=https://github.com/hozza/tmux-hints&gt;GitHub&lt;/a&gt; for the latest version and instructions.&lt;div class=&quot;is-style-fill wp-block-button&quot;&gt;&lt;a href=https://github.com/hozza/tmux-hints class=wp-block-button__link&gt;View Tmux-Hints on Github&lt;/a&gt;&lt;/div&gt;</content>
  </entry><entry>
    <title>Technical Business Management Developer in London</title>
    <link href="https://benhoskins.uk/technical-business-management-developer-in-london/" />
    <updated>2019-12-16T16:14:29Z</updated>
    <id>https://benhoskins.uk/technical-business-management-developer-in-london/</id>
    <content type="html">&lt;blockquote class=wp-block-quote&gt;&lt;p&gt;&lt;strong&gt;TLDR;&lt;/strong&gt; Thanks for everything &amp; I&#39;m now available for hire.&lt;/blockquote&gt;&lt;p&gt;&lt;em&gt;A quick update - thanks for the recent support on my article &lt;a href=https://benhoskins.uk/the-digital-will/ &gt;&quot;Digital Will&quot; a backup-plan for business&lt;/a&gt;, the support for my recent side-projects like the &lt;a href=https://benhoskins.uk/best-personal-finance-net-worth-tracking-spreadsheet-2019/ &gt;personal finance/net worth tracker&lt;/a&gt; &amp; the feedback from readers too! ?&lt;/em&gt;&lt;p&gt;Starting in mid-December 2019 - &lt;strong&gt;you&#39;ll spot the &lt;span style=color:#a63e3e;&gt;&lt;em&gt;&quot;dusty-red button&quot;&lt;/em&gt;&lt;/span&gt; on the side of this blog&lt;/strong&gt; when I&#39;m available for freelance or contract consultancy work.&lt;p&gt;I focus on technical business management for software and non-software businesses. Passionate about finance, sales, strategy and automation - &lt;em&gt;I&#39;m also a battle-proven fullstack developer i.e. LAMP, serverless, front &amp; backend.&lt;/em&gt;&lt;p&gt;You&#39;ll spot me around Canary Wharf, Wapping &amp; Bank throughout the London weekdays - I&#39;m happy to travel for great opportunities and well-versed with remote working too.&lt;figure class=wp-block-pullquote&gt;&lt;blockquote&gt;&lt;p&gt;Start our &lt;a href=https://benhoskins.uk/portfolio/ &gt;conversation today&lt;/a&gt;, it&#39;s your first step towards business growth.&lt;/blockquote&gt;&lt;/figure&gt;</content>
  </entry><entry>
    <title>&quot;Digital Will&quot; - a Last Will &amp; Testament, for Your Online-life</title>
    <link href="https://benhoskins.uk/the-digital-will/" />
    <updated>2019-12-10T14:51:00Z</updated>
    <id>https://benhoskins.uk/the-digital-will/</id>
    <content type="html">&lt;blockquote class=&quot;wp-block-quote is-style-default&quot;&gt;&lt;p&gt;&lt;strong&gt;TLDR;&lt;/strong&gt; Use a Password Manager like 1Password, it makes your day-to-day life easier, more secure and can protect yourself &amp; those around you in an emergency too.&lt;/blockquote&gt;&lt;p&gt;If you&#39;re an individual, or even a key-player in a SME business, you&#39;ve probably already come across the nightmare situation where something vital becomes that-bit-trickier when the person holding the &lt;em&gt;digital-keys&lt;/em&gt; is missing.&lt;p&gt;&lt;strong&gt;What would you do when your colleague is sick and you need access to their account?&lt;/strong&gt;&lt;p&gt;All the careful planning will only get you so far, sometimes services disconnect and &lt;em&gt;you need access to an account right-now&lt;/em&gt;.&lt;p&gt;The situation only gets worse &lt;strong&gt;when you die&lt;/strong&gt;, how will your loved ones access your accounts quickly when they need too? &lt;em&gt;Here&#39;s the simple solution.&lt;/em&gt;&lt;h2 id=just-give-everyone-access-to-everything-important&gt;Just give &lt;em&gt;Everyone&lt;/em&gt; access to &lt;em&gt;Everything&lt;/em&gt; important?&lt;/h2&gt;&lt;p&gt;Having group accounts with shared passwords is a great way to &lt;em&gt;cause a problem&lt;/em&gt; later down-the-line.&lt;p&gt;Especially when you&#39;ve shared the password with everyone who may need access to that simple &lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;but vital&lt;/span&gt;&lt;/em&gt; accounts login.&lt;p&gt;Group passwords for vital accounts always get shared informally and are rarely updated due to the hassle of keeping everyone else updated too.&lt;p&gt;This leaves you wide open to accidents and disgruntled ex-staff and ex-partners alike.&lt;h2 id=the-solution&gt;The Solution.&lt;/h2&gt;&lt;p&gt;Use a &lt;strong&gt;Password Manager&lt;/strong&gt;, &lt;em&gt;with Emergency Access vaults&lt;/em&gt;!&lt;p&gt;&lt;em&gt;&lt;a href=https://benhoskins.uk/the-digital-will/#emergency-vault&gt;Jump to the setup below for the gruesome details.&lt;/a&gt;&lt;/em&gt;&lt;p&gt;Most people and certainly businesses would benefit from a password manager in general, they&#39;re simple... and they use a long, randomly generated separate password for every-single account.&lt;p&gt;You never have to remember an accounts password again, and never have to enter a password when logging in - there&#39;s no special setup or configuration either. &lt;em&gt;Just an app or browser plug-in.&lt;/em&gt;&lt;p&gt;Never having to enter in your delivery address, your work address or one-of-the-sixteen credit card details you have again - avoiding wasted time and all those buggy forms.&lt;p&gt;Sounds great? &lt;em&gt;That&#39;s because it really is - and all for a tiny bit of up-front effort.&lt;/em&gt;&lt;p&gt;A password manager makes it exponentially harder to hack your accounts - and makes it exceptionally easier to share them safely too.&lt;figure class=wp-block-pullquote&gt;&lt;blockquote&gt;&lt;p&gt;Wouldn&#39;t I just be trusting a private company with all my secrets rather than the people I know?&lt;p&gt;&lt;cite&gt;Nope.&lt;/cite&gt;&lt;/blockquote&gt;&lt;/figure&gt;&lt;p&gt;When it comes to banking, personal secrets and business accounts etc, it&#39;s in a reputable software company&#39;s best interest to stay as far away from that data as possible.&lt;p&gt;That&#39;s why they go to extreme lengths to... Read the full content online.</content>
  </entry><entry>
    <title>How to track button clicks in Google Analytics simply with jQuery/JavaScript?</title>
    <link href="https://benhoskins.uk/how-to-track-button-clicks-in-google-analytics-simply-with-jquery-javascript/" />
    <updated>2019-10-25T15:40:14Z</updated>
    <id>https://benhoskins.uk/how-to-track-button-clicks-in-google-analytics-simply-with-jquery-javascript/</id>
    <content type="html">&lt;p&gt;&lt;strong&gt;TLDR;&lt;/strong&gt; &lt;em&gt;Track &amp; analyse button clicks (events) on website pages with Google Analytics by pasting these few lines of jQuery/JavaScript code onto your site under the Google Analytics code.&lt;/em&gt;&lt;p&gt;&lt;em&gt;It&#39;ll find most common button types and send clicks to Google Analytics for analysis.&lt;/em&gt;&lt;p&gt;The jQuery/JavaScript code for tracking GA button click events is here hosted on GitHub Gists:&lt;p&gt;&lt;a aria-label=&quot; (opens in a new tab)&quot; href=https://gist.github.com/hozza/9da4d2bc39aa2610df5cf3dcc0656da7 rel=&quot;noreferrer noopener&quot; target=_blank class=button&gt;View the Code Gist on GitHub&lt;/a&gt;&lt;h2 id=on-page-vs-cross-page-analytics-whats-the-difference&gt;On-page vs Cross-page Analytics - What&#39;s the Difference?&lt;/h2&gt;&lt;p&gt;When it comes to analysing user behaviour &amp; acquisition, Google Analytics is a pretty powerful tool - most personal and commercial websites use it for tracking visitors and optimising their sites.&lt;p&gt;Most people use the easiest Google Analytics setup, just copy/pasting the JavaScript tracking code directly from Google Analytics into their websites template or CMS without any consideration, letting Google organise and make sense of it.&lt;figure class=wp-block-pullquote&gt;&lt;blockquote&gt;&lt;p&gt;What if you want to understand how visitors use the elements &lt;span style=&quot;text-decoration: underline;&quot;&gt;within a single page&lt;/span&gt; specifically, rather than how they interact with the site as a whole?&lt;/blockquote&gt;&lt;/figure&gt;&lt;p&gt;You might want to analyse &quot;on page&quot; interactions like; activating product image slide-shows, &#39;show more information&#39; style buttons, &lt;abbr title=&quot;Call to Action&quot;&gt;CTA&lt;/abbr&gt;s and embedded videos or animation triggers etc.&lt;p&gt;Dynamic web-pages that change content to encourage engagement and SPA (single-page applications) can benefit greatly from in-page behaviour analytics - whether that&#39;s for fine-grained targeting or UI/UX optimisation.&lt;p&gt;&lt;strong&gt;&lt;em&gt;Note:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Once you start tracking on-page events, expect your bounce rates to change... as you may have quite a high &#39;false positive&#39; bounce rate as Google Analytics doesn&#39;t know the user has engaged with the on-page elements before leaving the pages in some circumstances.&lt;/em&gt;&lt;p&gt;User engagement can usually be measured more effectively &lt;span style=&quot;text-decoration: underline;&quot;&gt;in the page&lt;/span&gt; on modern sites - rather than how visitors move across the site, e.g. from page-to-page - but Google Analytics doesn&#39;t do a great job of tracking on page activity by default.&lt;h2 id=how-to-easily-analyse-on-page-user-experiences&gt;How to Easily Analyse On-page User Experiences?&lt;/h2&gt;&lt;p&gt;Google Analytics &lt;em&gt;can&lt;/em&gt; track users actions within a page, called &quot;Events&quot; - but you would usually have to manually edit your Google Analytics API integration to enable it for each button/event/action you&#39;d like to track etc...&lt;p&gt;Since Google Analytics has not quite caught up with this trend, by making its on-page powers more obvious or easily accessible... many other services have sprung up to fill that... Read the full content online.</content>
  </entry><entry>
    <title>SFTP for Vim</title>
    <link href="https://benhoskins.uk/sftp-for-vim/" />
    <updated>2019-09-16T19:27:25Z</updated>
    <id>https://benhoskins.uk/sftp-for-vim/</id>
    <content type="html">&lt;p&gt;A great replacement to Sublime Text 3&#39;s SFTP plugin with a similar setup and workflow, but with the power of Vim.&lt;p&gt;Whether you&#39;re a hardened vim veteran or new to vim for &lt;em&gt;web&lt;/em&gt; development using SFTP is now the secure FTP standard over SSH - it&#39;s become a common feature built into most graphical IDEs.&lt;h3 id=doesnt-vim-have-built-in-ftp&gt;Doesn&#39;t Vim have built-in FTP?&lt;/h3&gt;&lt;p&gt;Vim does have a built in FTP function that allows editing of remote files - but it&#39;s not quite up-to-scratch with the likes of other editors like &quot;Sublime Text 3&quot; and it&#39;s SFTP plugin which allows you to work locally and quickly to upload files or folder with a key-combo, great for testing a mini-deployments without extra dependencies.&lt;h3 id=vims-missing-plugin&gt;Vim&#39;s Missing Plugin...&lt;/h3&gt;&lt;p&gt;Surprisingly &lt;em&gt;(...at least to me!)&lt;/em&gt; there didn&#39;t seem to be an SFTP plugin with overwhelming usage or consensus... at least based on the holy-grail of vim plugin popularity - &lt;a href=https://vimawesome.com&gt;vimawesome.com&lt;/a&gt;.&lt;p&gt;&lt;em&gt;This is probably due to the widespread adoption of more formal approaches to deploying code - via testing &amp; deployment workflows/services or even just a more robust git push to production and post-push git functions on the remote server to deploy the latest &quot;production&quot; branch...&lt;/em&gt;&lt;p&gt;In general, production work should really be deployed using VCS like git or another full-fledged deployment workflow - manually uploading/downloading individual files and folders can get super-tricky super-quickly when multiple devs and multiple end-points are involved.&lt;p&gt;&lt;strong&gt;However...&lt;/strong&gt; there are &lt;em&gt;always&lt;/em&gt; quick jobs, or a small application being developed in your &lt;a href=https://benhoskins.uk/tmux-hints-sh-auto-cheatsheet-for-vim-zsh-tmux/ &gt;terminal with Tmux&lt;/a&gt;, that just needs to be edited and uploaded now... and for that case, you need a good, simple SFTP plugin for vim...&lt;h2 id=the-best-sftp-plugin-for-vim&gt;The Best SFTP Plugin for Vim&lt;/h2&gt;&lt;p&gt;The GitHub project `hesselbom/vim-hsftp` fits perfectly - it&#39;s by far the most used and simplest Vim SFTP plugin on &lt;a href=https://vimawesome.com&gt;Vim Awesome&lt;/a&gt; and as similar to the easy SFTP plugins for other editors too!&lt;p&gt;It lacked a few features, and some security considerations, like key-based passwordless entry to SFTP/SSH, and had a few pull-requests waiting to be tested and merged... but since the original maintainer hesselbom has moved on...&lt;p&gt;I&#39;ve &lt;a href=https://github.com/hesselbom/vim-hsftp/issues/17&gt;stepped in&lt;/a&gt; to help develop and maintain the project, make sure to jump on the &lt;a href=https://benhoskins.uk/mailing-list/ &gt;mailing list&lt;/a&gt; to keep in the loop with updates and developments.&lt;p&gt;We&#39;ve now got some issue &amp; pull-request organisation, versioning and a development branch ready for testing those new features and updates.&lt;p&gt;It&#39;s a great small plugin to use, and will be a little more full-fledged in the near-future - check it out at &lt;a... Read the full content online.</content>
  </entry><entry>
    <title>Atilium Phone Pre-launch</title>
    <link href="https://benhoskins.uk/atilium-phone-pre-launch/" />
    <updated>2019-08-19T14:27:18Z</updated>
    <id>https://benhoskins.uk/atilium-phone-pre-launch/</id>
    <content type="html">&lt;p&gt;Although I&#39;m sure most of my readers are already aware, I&#39;ve been working with some excellent companies to provide simple &lt;em&gt;micro-service-style&lt;/em&gt; tools for modern small-businesses and freelancers and today marks the day that our first digital business tool is released - &lt;em&gt;although it&#39;s still very early days&lt;/em&gt;, you can&lt;a href=https://phone.atilium.io/ &gt; sign-up and start using it&lt;/a&gt; now.&lt;h2 id=atilium-io-small-business-tools&gt;Atilium.io - Small business tools.&lt;/h2&gt;&lt;blockquote class=wp-block-quote&gt;&lt;p&gt;We are all connected, to everything, at all times, without thinking about it via the internet - shouldn&#39;t our work be too?&lt;/blockquote&gt;&lt;p&gt;&quot;&lt;strong&gt;Atilium&lt;/strong&gt;&quot; &lt;em&gt;(pronounced at-illy-um)&lt;/em&gt; will bring our in-house tools to the public, helping small teams and individuals connect with their customer audiences easier and efficiently in a &lt;em&gt;digital-first&lt;/em&gt; world where traditional services struggle to keep up and modern services are out-of-reach for the everyday person.&lt;h2 id=atilium-phone-professional-phone-numbers-for-small-teams-and-freelancers&gt;Atilium Phone - Professional phone numbers for small teams and freelancers.&lt;/h2&gt;&lt;figure class=wp-block-pullquote&gt;&lt;blockquote&gt;&lt;p&gt;Atilium Phone makes your team more productive, gives you flexibility, all while saving you time.&lt;/blockquote&gt;&lt;/figure&gt;&lt;p&gt;When we get down to it, most of the real work in modern businesses starts with communication - management, clients or organising suppliers all gets done from that &lt;em&gt;hunk-of-metal-and-glass&lt;/em&gt; in your pocket while you&#39;re on the move - so why should we still be held back by those expensive and contractually cumbersome land-lines and business phones...&lt;p&gt;&lt;em&gt;Are your calls simply &lt;strong&gt;connected&lt;/strong&gt; like everything else, or do they exist in a bubble outside of emails, CRMs and apps?&lt;/em&gt;&lt;p&gt;Small teams and freelancers need a professional presence that actually &lt;em&gt;works for them&lt;/em&gt;, and their customers need to reach them wherever they are.&lt;p&gt;&lt;strong&gt;Atilium Phone&lt;/strong&gt; solves the traditional limitation. You can have any number, like a London landline or any other UK regional number as your primary business contact phone to promote on your social media, websites etc - this number is then connected directly to your mobile phone, &lt;em&gt;or your entire team&#39;s mobiles&lt;/em&gt;.&lt;p&gt;Changing office, changing providers, new sales team member? No problem, just type in your new contact number and everything keeps working smoothly - no technicians or renewing year-long contracts.&lt;p&gt;Your primary business contact number is now &lt;em&gt;virtualised&lt;/em&gt;, never worry about changing circumstances or providers again and - let it actually work for you online.&lt;p&gt;&lt;em&gt;Your new phone line is in the cloud - this means it can do some pretty useful but invisible things.&lt;/em&gt;&lt;p&gt;Little things like getting emails with call summaries and recordings after each call to any team-member, and being seamlessly integrated into all your other digital-products, like your CRM, sales... Read the full content online.</content>
  </entry><entry>
    <title>Hide - the Jekyll &amp; Hyde Theme, WordPress Edition</title>
    <link href="https://benhoskins.uk/hide-the-jekyll-hyde-theme-wordpress-edition/" />
    <updated>2019-08-13T13:09:14Z</updated>
    <id>https://benhoskins.uk/hide-the-jekyll-hyde-theme-wordpress-edition/</id>
    <content type="html">&lt;blockquote class=wp-block-quote&gt;&lt;p&gt;The evil art of appending CSS code.&lt;/blockquote&gt;&lt;p&gt;Unfortunately CSS has a tendency to be endlessly appended, especially in large codebases and lazy or underfunded devs - this usually spells bad news for future development and a full refactoring is soon in order!&lt;p&gt;However, appended CSS has it&#39;s time and place and &lt;em&gt;this is one of them&lt;/em&gt;...&lt;p&gt;A WordPress.org &quot;&lt;a href=https://en-gb.wordpress.org/themes/twentyfifteen/ &gt;Twenty Fifteen&lt;/a&gt;&quot; theme modification to look just like &quot;&lt;a href=https://github.com/poole/hyde&gt;Hyde&lt;/a&gt;,&quot; a fantastic theme for &lt;a href=https://jekyllrb.com/ &gt;Jekyll&lt;/a&gt; &lt;em&gt;(another website/blog software somewhat like WordPress)&lt;/em&gt;.&lt;h2 id=problems&gt;Problems&lt;/h2&gt;&lt;p&gt;A love for simplicity and minimalism can be a rare commodity in development nowadays, yet it&#39;s especially important in programming - it&#39;s always the answer for long-term gains - and WordPress really doesn&#39;t fit that bill, in an ideal world I&#39;d be &lt;em&gt;statically-generating&lt;/em&gt; my blog &lt;em&gt;propagating&lt;/em&gt; it onto some robust &lt;em&gt;CDN edge node&lt;/em&gt;s right from &lt;em&gt;git&lt;/em&gt; in the &lt;em&gt;command line&lt;/em&gt; - &lt;em&gt;serverless style&lt;/em&gt;.&lt;p&gt;&lt;a href=https://jekyllrb.com/ &gt;Jekyll&lt;/a&gt; is a great software to do just that, statically generate beautiful sites and blogs - and it has an even greater theme called &quot;&lt;a href=https://github.com/poole/hyde&gt;Hyde&lt;/a&gt;&quot; by &lt;a href=https://twitter.com/mdo&gt;@mdo&lt;/a&gt; which has been famous in various development communities.&lt;p&gt;But, the world is rarely ideal, and full of buzz-words - so I&#39;ve settled with encouraging productivity with WordPress, &lt;em&gt;for now...&lt;/em&gt;&lt;p&gt;WordPress themes can be a nightmare for dependency issues, customisation and excessive loads of bloat - and after shopping around I couldn&#39;t really find any free and open themes that were simple enough but also scratched the itch just like Hyde does. Although, the &lt;a href=https://wordpress.org/ &gt;WordPress.org&lt;/a&gt; &quot;&lt;a href=https://en-gb.wordpress.org/themes/twentyfifteen/ &gt;Twenty Fifteen&lt;/a&gt;&quot; comes close in a &lt;em&gt;somewhat ugly&lt;/em&gt; second place...&lt;h2 id=solution&gt;Solution&lt;/h2&gt;&lt;p&gt;A few moments and &lt;em&gt;~100 lines&lt;/em&gt; of CSS code later, and we have it.&lt;p&gt;The beautiful design and typography of Hyde with the simpleness and bloat free upstream stability of &quot;Twenty Fifteen&quot;.&lt;p&gt;Slap these ~100 lines into the &#39;Additional CSS&#39; section of the Customise Theme UI in WordPress and you&#39;ve got yourself a Hyde WordPress theme, simple and updatable without too much additional bloat or breaking changes down-the-line.&lt;blockquote class=wp-block-quote&gt;&lt;p&gt;&lt;a href=https://github.com/hozza/Hide-Jekyll-Hyde-Wordpress-Theme&gt;https://github.com/hozza/Hide-Jekyll-Hyde-Wordpress-Theme&lt;/a&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;em&gt;At the time of writing this blog &lt;/em&gt;&lt;a href=https://benhoskins.uk/ &gt;&lt;em&gt;benhoskins.dev&lt;/em&gt;&lt;/a&gt;&lt;em&gt; is using my new &quot;Hide&quot; theme (...more of a mod than a theme really)&lt;/em&gt;.&lt;p&gt;Check out &quot;&lt;a href=https://github.com/hozza/Hide-Jekyll-Hyde-Wordpress-Theme&gt;Hide, the Hyde theme... Read the full content online.</content>
  </entry><entry>
    <title>tmux-hints.sh: The auto cheatsheet for vim, zsh, tmux etc.</title>
    <link href="https://benhoskins.uk/tmux-hints-sh-auto-cheatsheet-for-vim-zsh-tmux/" />
    <updated>2019-07-17T23:53:32Z</updated>
    <id>https://benhoskins.uk/tmux-hints-sh-auto-cheatsheet-for-vim-zsh-tmux/</id>
    <content type="html">&lt;p&gt;Being comfortable using terminal means nothing when getting used to new shortcuts, key-combos and custom mappings can be a memory-game.&lt;p&gt;I&#39;ve ended up with a bunch of note files containing hints for all the things I should have remembered by now. &lt;em&gt;There&#39;s a better way.&lt;/em&gt;..&lt;div class=&quot;markdown-alert markdown-alert-note&quot;&gt;&lt;p class=markdown-alert-title&gt;&lt;svg aria-hidden=true class=&quot;mr-2 octicon octicon-info&quot; height=16 version=1.1 viewBox=&quot;0 0 16 16&quot; width=16&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;**2019-12-23 Update!**&lt;p&gt;There&#39;s been an update for this tool. See &lt;a href=https://benhoskins.uk/tmux-hints-sh-v0-3-update/ &gt;tmux-hints v0.3&lt;/a&gt;.&lt;/div&gt;&lt;p&gt;&lt;em&gt;The background and why this started...&lt;/em&gt; I&#39;m in the process of switching to full-time cloud-terminal based development from years of developing using a visual IDE and hopping in-and-out of a bash shell for &lt;em&gt;nearly&lt;/em&gt; everything else.&lt;p&gt;Jumping in-and-out of note files with &lt;code&gt;vim notes.md&lt;/code&gt;, &lt;code&gt;vim notes-vim.md&lt;/code&gt;, &lt;code&gt;vim-tmux.md&lt;/code&gt; and then &lt;em&gt;double-checking&lt;/em&gt; with the latest config etc can end-up being time consuming and distracting.&lt;blockquote class=&quot;is-style-large wp-block-quote&quot;&gt;&lt;p&gt;&lt;em&gt;So, I&#39;ve knocked together a bash script to automatically load note files for the programme currently focused in tmux.&lt;/em&gt;&lt;p&gt;&lt;cite&gt;&lt;a href=https://github.com/hozza/tmux-hints aria-label=&quot;https://github.com/hozza/tmux-hints (opens in a new tab)&quot; rel=&quot;noreferrer noopener&quot; target=_blank&gt;https://github.com/hozza/tmux-hints&lt;/a&gt;&lt;/cite&gt;&lt;/blockquote&gt;&lt;p&gt;In a tmux pane on the side, I run:&lt;p&gt;&lt;code&gt;$ ./tmux-hints.sh&lt;/code&gt;&lt;p&gt;Now when you focus on getting some &lt;code&gt;vim&lt;/code&gt; &lt;s&gt;work&lt;/s&gt; &lt;em&gt;fun&lt;/em&gt; done in another tmux pane, your vim &lt;strong&gt;notes are displayed automatically&lt;/strong&gt; - when you switch back to another pane running something else, that programmes notes are automagically shown instead.&lt;p&gt;You can create a &#39;hint file&#39; for any command, and &lt;code&gt;tmux-hints.sh&lt;/code&gt; will load it automatically while you&#39;re focusing on the work-at-hand, showing your notes without any input from yourself, leaving you to get on with whatever it is you were doing.&lt;h2 id=usage&gt;Usage&lt;/h2&gt;&lt;p&gt;Grab the bash file from GitHub, make sure the file is marked as executable and run the script in a pane. &lt;em&gt;Detailed terminal commands can be found on the GitHub repo.&lt;/em&gt;&lt;p&gt;&lt;code&gt;tmux-hints.sh&lt;/code&gt; looks for a file with the name of the currently focused command, in a folder called &#39;hints&#39; in your home directory.&lt;p&gt;e.g. &lt;code&gt;~/hints/COMMAND_NAME.txt&lt;/code&gt;&lt;p&gt;Once &lt;code&gt;tmux-hints.sh&lt;/code&gt; is running in a tmux pain, you can focus on another pane running something else, like vim for example and &lt;code&gt;tmux-hints.sh&lt;/code&gt; will show the vim hint file you&#39;ve saved in... Read the full content online.</content>
  </entry><entry>
    <title>Personal Finance, Net Worth Tracking Spreadsheet</title>
    <link href="https://benhoskins.uk/best-personal-finance-net-worth-tracking-spreadsheet-2019/" />
    <updated>2019-03-31T20:49:01Z</updated>
    <id>https://benhoskins.uk/best-personal-finance-net-worth-tracking-spreadsheet-2019/</id>
    <content type="html">&lt;p&gt;One of the easiest things you can do to improve any situation is getting a good lay-of-the-land.&lt;p&gt;From business to personal life collecting info, mapping out the data and simply being informed can do wonders for progressing towards your goals - and the same goes for personal finance.&lt;/p&gt;&lt;br&gt;&lt;p class=has-large-font-size style=text-align:center&gt;&quot;Knowing is half the battle.&quot;&lt;br&gt;- &lt;em&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=vFthiZ_Jftc&quot;&gt;GI Joe&lt;/a&gt;&lt;/em&gt;&lt;h2 id=why-make-an-open-source-personal-finance-spreadsheet-on-github&gt;Why make an open-source personal finance spreadsheet on GitHub?&lt;/h2&gt;&lt;p&gt;After looking around online for something suitable to track personal finance, and seeing the people of Reddit using their own various spreadsheets.&lt;ul&gt;&lt;li&gt;&lt;a href=https://www.reddit.com/r/FinancialIndependence&gt;r/FinancialIndependence&lt;/a&gt;&lt;li&gt;&lt;a href=https://www.reddit.com/r/FireUK&gt;r/FireUK&lt;/a&gt;&lt;li&gt;&lt;a href=https://www.reddit.com/r/PersonalFinance&gt;r/PersonalFinance&lt;/a&gt;&lt;li&gt;&lt;a href=https://www.reddit.com/r/UKPersonalFinance/ &gt;r/UKPersonalFinance&lt;/a&gt;&lt;/ul&gt;&lt;p&gt;I decided to put this spreadsheet together... I&#39;m a programmer, not a financial advisor and wanted a better way to manage personal finances, but don&#39;t have the time to put together a full web-app &lt;em&gt;just yet&lt;/em&gt;.&lt;p&gt;It&#39;s a simple to use advanced spreadsheet (Google Sheets/Excel) for personal finance management, net worth tracking, general money management, financial goals and FIRE (Financial Independence Retire Early). &lt;em&gt;Grown from the knowledge and interests of various Reddit money-basedsub-reddits.&lt;/em&gt;&lt;blockquote&gt;&lt;p&gt;&lt;a href=http://eepurl.com/gk5GzX&gt;Subscribe to my infrequent mailing list for spreadsheet updates.&lt;/a&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;em&gt;Designed for British Pounds in the UK (GBP£) - but I&#39;m sure it could work for other currencies/countries too. Make sure to check for new versions as they may include bug fixes, improvements and new features!&lt;/em&gt;&lt;/p&gt;&lt;picture&gt;&lt;source srcset=&quot;https://benhoskins.uk/img/ujztJgUQD7-1024.webp 1024w&quot; type=image/webp&gt;&lt;img alt=&quot;&quot; class=wp-image-125 height=731 src=https://benhoskins.uk/img/ujztJgUQD7-1024.jpeg width=1024&gt;&lt;/picture&gt;&lt;p class=has-large-font-size&gt;&lt;a href=https://github.com/hozza/Personal-Finance-Net-Worth-Tracker&gt;Spreadsheet on GitHub.&lt;/a&gt;&lt;h2 id=free-yes&gt;Free? Yes.&lt;/h2&gt;&lt;p&gt;This spreadsheet is free to use for personal use &lt;em&gt;(at your own peril!)&lt;/em&gt;, the more people use it and provide feedback the better we can make it.&lt;p&gt;&lt;em&gt;Please do not sell or redistribute this spreadsheet/work or claim as your own etc. Refer people to the &lt;a href=https://github.com/hozza/Personal-Finance-Net-Worth-Tracker&gt;GitHub page&lt;/a&gt; so they can join in and help improve it too!&lt;/em&gt;&lt;p&gt;I&#39;ll publish updates as I find the time - contributions &lt;em&gt;features - &lt;a href=https://github.com/hozza/Personal-Finance-Net-Worth-Tracker&gt;join the GitHub&lt;/a&gt;, feedback - &lt;a href=https://twitter.com/benhoskins64&gt;tweet me&lt;/a&gt;, monetary - &lt;a href=https://www.paypal.me/bhoskins745/8&gt;click the PayPal link&lt;/a&gt;)&lt;/em&gt; are... Read the full content online.</content>
  </entry><entry>
    <title>Music for Programmers, Developers and Concentration</title>
    <link href="https://benhoskins.uk/music-for-programmers-developers-and-concentration/" />
    <updated>2019-03-19T22:19:04Z</updated>
    <id>https://benhoskins.uk/music-for-programmers-developers-and-concentration/</id>
    <content type="html">&lt;p&gt;Wiring in - getting down to some standard bug-squishing or building that mental-map is almost always easier with the right motivation in any profession.&lt;p&gt;If you&#39;re a somewhat working-nomad you&#39;ll be familiar with the &lt;em&gt;benefits&lt;/em&gt; of distraction... whether that&#39;s the barista extorting you for one more £3.80 chalice-of-caffeine (instead of the sub-let rent you should clearly owe by this point) or the &lt;em&gt;loud &lt;a href=&quot;https://duckduckgo.com/?q=Harvey+Specter&quot;&gt;Harvey Specter&lt;/a&gt; suit&lt;/em&gt; who just sat down across the room - light and periodic distraction can do wonders for your eyes, and the momentary reboot of concentration.&lt;p&gt;&lt;strong&gt;But clearly...&lt;/strong&gt; the same cannot be said for those ongoing and disturbing distractions - and it&#39;s time to drown them out!&lt;p&gt;From coffee shops and deafeningly-silent rooms through-to noisy co-workers I&#39;ve managed to fight them all off with a few great playlists and sound generators - here they are:&lt;h3 id=chilled-cows-lofi-radio-0&gt;Chilled Cow&#39;s LoFi Radio #0&lt;/h3&gt;&lt;iframe allow=&quot;accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen frameborder=0 height=315 src=https://www.youtube-nocookie.com/embed/hHW1oY26kxQ width=560&gt;&lt;/iframe&gt;&lt;p&gt;[At the time of writing] this mad-cow gets around 15k concurrent-viewers on their ever-changing free YouTube stream - lofi hip-hop is great for getting down to chilled concentration - with none of them catchy-choruses or &lt;a href=https://twitter.com/trigb0y&gt;hi-hat cymbals crashing&lt;/a&gt; you out of &lt;em&gt;the zone&lt;/em&gt;.&lt;p&gt;They also have a Spotify playlist for taking your lofi hip-hop offline: &lt;a href=https://open.spotify.com/playlist/6eHO8aX6lHu3e6bem8r2rq&gt;https://open.spotify.com/playlist/6eHO8aX6lHu3e6bem8r2rq&lt;/a&gt;&lt;p&gt;&lt;em&gt;Chilled Cow even has you covered for winding down later-on with lofi too... &lt;a href=https://youtu.be/axOhJh1x2n8&gt;https://youtu.be/axOhJh1x2n8&lt;/a&gt;&lt;/em&gt;&lt;h3 id=musicforprogramming-1&gt;musicForProgramming() #1&lt;/h3&gt;&lt;figure class=wp-block-image&gt;&lt;picture&gt;&lt;source srcset=&quot;https://benhoskins.uk/img/CMZoUeVlpR-913.webp 913w&quot; type=image/webp&gt;&lt;img alt=&quot;&quot; height=801 src=https://benhoskins.uk/img/CMZoUeVlpR-913.jpeg width=913 class=wp-image-93&gt;&lt;/picture&gt;&lt;/figure&gt;&lt;p&gt;And although it certainly &lt;em&gt;works for any job,&lt;/em&gt; my usual go-to site for streaming while refactoring an old code-library is the goal standard in blurring the line between noise &amp; music...&lt;p&gt;&lt;a href=http://musicforprogramming.net/ &gt;http://musicforprogramming.net/&lt;/a&gt;&lt;p&gt;Expect; Drones, Noise, Fuzz, Field recordings, Vagueness (Hypnagogia), Textures without rhythm, Minor complex chords, Early music (Baroque, lute, harpsichord) and walls of reverb to name a few, coupled with a UI only a &lt;a href=https://alienanthology.fandom.com/wiki/MU-TH-UR_6000&gt;MOTHER could love&lt;/a&gt; - &lt;a href=https://twitter.com/datassette&gt;@datassette&lt;/a&gt;&#39;s musical mashup has collated 53 tracks for &lt;a href=http://musicforprogramming.net/ &gt;streaming&lt;/a&gt;, &lt;a... Read the full content online.</content>
  </entry><entry>
    <title>Ctrl + Y</title>
    <link href="https://benhoskins.uk/ctrl-y/" />
    <updated>2019-03-18T00:26:36Z</updated>
    <id>https://benhoskins.uk/ctrl-y/</id>
    <content type="html">&lt;p&gt;Here we are again! The re-re-birth, and collation, of my various old blogs and their posts...&lt;p&gt;I&#39;ve been writing about &quot;tech&quot;, SME business and the code I find interesting - or at least the things I&#39;ll probably need to refer back to - for around the last 8 years or so.&lt;p&gt;All my posts had varying degrees of readership, engagement and blog-abandonment - but some of them helped other devs and businesses fix their problems to create something better.&lt;p&gt;So here we are again, under a new blog domain, and hopefully with some renewed writing dedication! - I&#39;ll also be re-posting my old posts &amp; comments from the previous now-defunct blogs.&lt;p&gt;Let&#39;s see if we can&#39;t get this rolling again...</content>
  </entry>
</feed>
