maker://Hans.Anderson
I am a maker.
I make websites as a full-stack senior web application developer; I make podcasts/audio short stories; I make photographic scenes of miniatures; I make disc golf stats.
I am the creator of the tech-fantasy and fiction-crime podcasts series Dist1nc7ive Stories, and produce other audio short stories.
I'm a freelance full stack web geek, and I blog about it, including my favorite toys of late: automation with Playwright/Puppeteer, PHP Goutte, and I leave myself notes-to-self to remember.
I am a co-founder of StatMando, a disc golf side-project that helped revolutionize stats in disc golf.
I used to run goofiness.com, and currently have Mockumentary.com, HuckfaceDG and a few other, um, interesting side projects.
<Full>Stack</Dev>
StatMando
Distinctive Stories Podcast
I'm the creator of the tech-fantasy and fiction-crime podcasts series Distinctive Stories.
Rufus & Anna are villains in "Computronium"
Blog Posts
May 25, 2024
xargs tips
XARGS things to remember
xargs -p
will show the command
find . -name "foo" -print0 | xargs -0
(<<< print0 null, xarg uses null instead of space, in case file...
May 24, 2024
Code Coverage VSCode With PHPUnit
Need: Get some code coverage up for unit tests in vscode. PHPUnit can handle outputting the necessary coverage information. Coverage Gutters can read the outputting coverage file (in xml). I'm...
ReadMay 22, 2024
VSCode settings.json file
My settings.json file as of 2024-05-22, mostly for backup purposes:
ReadMay 20, 2024
Hacky php file to do some auto-checks for pull requests
I wrote this hacky PHP file to assist me in doing pull request reviews as well as to check my own, to make the best use of my team's time. These are just things I wanted to examine every time without...
ReadMay 18, 2024
Big O Notation
Used to analyze worst-case (usually) complexity to check resource requirements for runtime as inputs increase. Not about the hardware, etc. High level view. How long: time complexity. Memory...
ReadMay 18, 2024
SOLID Progamming Principles
The Principles: Single Responsibility - the class should do one thing and thus would only have one stakeholder with a reason to change it. Open-Closed - add functionality without changing the...
ReadMay 18, 2024
Redis client commands I want to remember
In laravel local, while devving vendor/bin/sail redis redis-cli
(command, container, client)
In forge/prod:
Delete keys based on a part:
May 13, 2024
Mocking in Unit Tests
In testing a specific class, you mock it's dependencies to make sure that class calls the dependency correctly.
Mock the dependency.
shouldReceive
- declare what should be called...
February 4, 2024
How to do an SQL Delete based on a Join
I'm mostly used to simple deletes using where clauses, but I know a DBA who prefers to use joins. To get more familiar, I've been doing simple stuff like that. The syntax between MS-SQL and MySQL is...
ReadFebruary 1, 2024
A Simple PHP Benchmarking function
I recently needed to find where some performance issues were and didn't have the time to download and figure out any real-life tools, but this basic system helped. I could just sprinkle...
ReadJanuary 31, 2024
MySQL - Find What Tables Have a Column Name
How to find out what tables in a MySQL database have a specific column, by name.
Read