Tech Stuff

1 to 10 of 134

Next.js 14 App Router Custom Server with Express

Submitted on Dec 31, 2023, 12:20 a.m.
Vercel / Next .js no longer publish an example custom webserver for Next.js 14 App router. There is a discussion here https://github.com/vercel/next.js/discussions/49326 - and a few 'hidden'...

Theme Switching for Storybook Dark Mode and Tailwind

Submitted on May 18, 2023, 8:59 a.m.
[Update 2023-06-15] Updated to show how this can all be done with the @storybook/addon-styling plugin, and withThemeByClassName as opposed to withThemeByDataAttribute . Here's a short PSA on how...

Reduce Size of Docker Data Volume in Docker Desktop for Windows

Submitted on Dec 30, 2021, 2:36 a.m.
Here's a helper script that will allow you to reduce the size of the Docker Desktop for Windows virtual hard drive. Docker uses this volume to store docker images and other docker data. If...

Keeping Your M.2 PCIe NVMe SSD Drive Cool

Submitted on Aug 06, 2021, 12:45 p.m.
Another short PSA on the topic of keeping your M.2 PCIe NVMe SSD drive cool - especially if you have a motherboard like mine, which was actually 'cooking' the drive. I have an ASUS Prime Deluxe...

Google Analytics 4 Custom Events and Parameters with gtag.js

Submitted on Mar 04, 2021, 6:54 p.m.
Here's another PSA for anyone getting started with, or migrating to Google Analytics 4, with custom events and parameter collection via gtag.js. For starters, below are the key resource links -...

Canonical URLs, HTTPS, and Drupal 8/9 Reverse Proxy Settings

Submitted on Feb 17, 2021, 11:05 p.m.
Here's a PSA for anyone trying to configure Drupal 8/9 behind a reverse proxy in order to create canonical URLs (in head, and header) that preserve the original remote request protocol - HTTPS. ...

WSL 2 Setup for Development

Submitted on May 30, 2020, 10:07 a.m.
Here are a few notes, snippets, and links to my current Windows Subsystem for Linux 2 (WSL 2) setup for development. Most of our current work is Drupal 8, Node.js, and React. I'd previously tried...

Material UI Theme Switcher for React

Submitted on May 27, 2020, 6:32 a.m.
Here's a short post on how to create a Material-UI theme switcher for React - using React.createContext. This is based on Praveen's excellent post here......

Installing MySQL 8.0 Under WSL 2 and Ubuntu

Submitted on May 02, 2020, 11:38 p.m.
Here's a PSA for those wanting to install MySQL Server 8.0 under the new Windows Subsystem for Linux - WSL 2, with an Ubuntu distribution. Systemd is not available as a default in WSL 2, and...

How to Create a Truly Portable Ubuntu Installation on an External USB HDD or SSD

Submitted on Feb 28, 2020, 12:07 p.m.
Update: 17-08-2020 - a few people have asked which NVMe external enclosure I'm using in the photo above. I was using a the 'Plugable Tool-Free NVMe' enclosure, but started to have difficulties with...