Development Notes

Solutions to problems encountered on projects, or useful dev-related notes
24
Jan

Cleaning git after .gitignore changes

git rm -r --cached . git add . git commit -m "Drop files from .gitignore"
02
Apr

Parsing numbers from strings in SQL

SELECT Id, PetCount, ISNULL(SUBSTRING(PetCount, PATINDEX('%[0-9]%', PetCount), (CASE WHEN PATINDEX('%[^0-9]%', STUFF(
13
Mar

Refresh Rider solution analysis after Git branch change

Sometimes non-existent errors are shown after changing branches while a solution is open in Rider. Run this action: Ctrl+
15
Oct

Disable watch in Vue 2 when mutating data

This is a mixin for Vue 2 export default { methods: { $withoutWatchers(cb) { const watcher = { cb: this._watcher.cb, sync: this.
1 min read
05
Jan

Broken WordPress editing due to WPS Hide Login plugin

Page editing was broken in a WP site that I was asked to update. Unsurprisingly there were a lot of
1 min read
03
Jan

Running Ghost in a WSL2 Docker container on Windows Server 2022

This will set up Ubuntu on Windows server 2022 with Docker running in WSL2, configured to host Linux apps with
4 min read