writer://

July 11, 2025

Objects That: Have State vs Do Work

I'm self taught at developing. Been at it for a long time, but I've missed some of the pivots the world of developers - PHP specifically - have done, and when classes were introduced back in PHP 4,...

Read

July 11, 2025

Make Copying to the Clipboard From the Terminal in Mac and Linux Smoother

I use both Mac and Linux. I'm used to copying things to my clipboard from a terminal using pbcopy, so this helper makes it easier because I don't have to remember the linux flavor of the command....

Read

July 11, 2025

How to Make a Typed PHP Array or Collection

So, one thing a lot of people want that PHP doesn't natively support is typed arrays. In other languages you can say "I want an array of integers" or "I want an array of strings" or "I want this to...

Read

July 10, 2025

PHP - How to Turn an Array into a PDO-Safe IN Query

In code using legacy PDO-style statements, if you need to do something like an "IN" query using user-supplied data, you're in for danger if you don't parameterize them. PDO can handle the security...

Read

July 1, 2025

MySQL - How to Show Data and Index Size in your Tables

How to show data and index size in your mysql tables.

Read

June 12, 2025

Why Change to AWS Amplify?

I had been running this blog on AWS S3. You can do some weird gyrations when you set up a bucket a specific way and it will let you serve a static website really easily. I used a WP static plugin for...

Read

April 28, 2025

How to Intercept Sockets Using Playwright

Intercept sockets using playwright with dev console trick.

Read

April 28, 2025

Kubernetes CoreDNS Notes

Some notes to help me remember some Kubernetes items: Core DNS handles all of the DNS internally. If it's not in CoreDNS then it checks the external network. ClusterIP means it's only accessible...

Read

April 28, 2025

Run Owasp Zap in a Docker container

Run as daemon mode: Desktop UI: Then go to http://localhost:8080/zap. Use https://host.docker.internal to hit https://local..com Baseline scan: Full scan: Find container's IP: Use...

Read

April 23, 2025

Writing to stdout/stderr in Docker / Kubernetes

Recently I was testing some log aggregation, and I needed to write data to stdout/stderr so that the logging agent could send them to the aggregator. Here's a snippet of code to run that for awhile...

Read