Writing
Howto's, snippets, and articles I've written over the years.
Vue Not Updating When Changing Array
July 11th, 2021Today I had a problem with Vue.js not updating when I changed content in an array. Here's how I resolved it.
Feature Estimation: What is the real cost of adding a feature to a website?
January 2nd, 2021When a client requests a feature, how do you provide a reasonable estimate? What do you base your estimate on. How much contingency do you add?
How To Create a New User in MySQL 8
November 27th, 2020The command to create a new user on MySQL version 8 has changed. Heres how to do it.
Solved: Installing composer V1 with Ansible
November 12th, 2020Here's how I solved installing Composer V1 with Ansible
Magento 2: How to disable the Admin Two Factor Auth (2FA) Feature
September 17th, 2020Today I installed Magento 2 for the first time in about a year. Once installed I navigated to the admin area and was presented with a two factor auth warning. Heres how I disabled it.
Symfony: Open file in VSCode or PHPStorm from the browser
April 30th, 2020Did you know you can open files in your IDE direct from Symfony's exception pages?
How to Set a User Agent for PHP fopen() calls
January 21st, 2020How to set a user agent when using PHP's fopen() with an URL
How To Create A Multi-Page PDF From Images
January 14th, 2020Recently I needed to send someone a PDF of a bunch of scanned documents. Here's how I did it
Using Docker with Laravel
July 21st, 2019When developing on a Laravel project I've used Homebrew for my web server and database, or used a Vagrant box. Whilst these work well most of the time there's an alternative that is quickly becoming the de-facto standard: Docker. Fortunately, getting Laravel to work with Docker is quite straightforward.
How to disable a payment method on the frontend with Magento 1
May 24th, 2019Here's how to disable a payment method on the front-end of a Magento 1 site whilst making it available in the admin area.
Apache: Use .htaccess to redirect http to https
August 25th, 2018I'm forever having to lookup how to use Apache's .htaccess to redirect http to https so here it is.
Apache: Use .htaccess to redirect non-www to www
August 25th, 2018Here's how to redirect a non-www sub-domain request to the www subdomain using Apache's .htaccess file