trevmex's tumblings

Father, husband, engineering manager, programming language theory fan, and a little bit of a geek. he/him/his
image
01. Where Does My Mind Go?Night FerryRoom for the Impossibleimage

ROOM FOR THE IMPOSSIBLE — out now

My ten Suno songs are now an album: a little under 38 minutes of new-wave energy, synth-pop hooks, green lights that lie, corporate heartbreak, and making room for an uncertain future.

Start with “Where Does My Mind Go?”, hit the floor with “Jump Into the Static” at track 2, then follow the record into the small hours. “The Impossible Moved In” leaves the door open at the end.

TRACK LIST

  1. Where Does My Mind Go?
  2. Jump Into the Static
  3. That Feeling Again
  4. The Green Dot Lies
  5. HEARTBREAK, INC.
  6. THE LAST GREEN LIGHT
  7. They Call It Dawn
  8. The Museum of Almost
  9. You Still Own What Breaks
  10. The Impossible Moved In

Listen to the full album on Suno:
https://suno.com/album/bd30dd87-dcdd-4813-8981-81ba4b7ebe49

Made with Suno. Best played in order. Headphones on; make a little room.

02. Jump Into the StaticNight FerryRoom for the Impossibleimage
03. That Feeling AgainNight FerryRoom for the Impossibleimage
04. The Green Dot LiesNight FerryRoom for the Impossibleimage
05. HEARTBREAK, INC.Night FerryRoom for the Impossibleimage
06. THE LAST GREEN LIGHTNight FerryRoom for the Impossibleimage
07. They Call It DawnNight FerryRoom for the Impossibleimage
08. The Museum of AlmostNight FerryRoom for the Impossibleimage
09. You Still Own What BreaksNight FerryRoom for the Impossibleimage
10. The Impossible Moved InNight FerryRoom for the Impossibleimage
 ()

I was inspired by this instagram reel to make a song

So I used ChatGPT to write the lyrics and Suno to make the song.

I think it turned out pretty good. It is called:


You Still Own What Breaks

The Vibe Coder’s Anthem


[Intro, spoken over a building drumbeat]

“Hey, AI, build me an app!”

“Done! Ready for production!”

…Are you sure about that?


[Verse 1: The Fundamentals]

Rate limiting, caching, balancing load,

Reverse proxies guard the road!

API gateways, CI/CD,

Docker, Kubernetes, service discovery!


Circuit breakers, timeout clocks,

Retries piling up in blocks!

Exponential backoff buys some time,

Idempotency keeps things in line!


[Verse 2: Distributed Systems]

Message queues and pub/sub streams,

Event-driven fever dreams!

Distributed transactions, saga dance,

Dead-letter queues get a second chance!


Cron jobs ticking, WebSockets glow,

Long polling waiting for data to show!

Server-sent events come pouring through,

What happens when the message comes through twice to you?


[Chorus]

Prompt it! Build it! Watch the green lights glow!

Who’s got the pager when the red lights show?

AI writes the code, but the judgment’s yours to make,

You can vibe it into being, but you still own what breaks!


[Verse 3: Databases]

Database indexes, query optimization,

N-plus-one, congratulations!

Connection pooling, read replicas,

Sharding data into pieces!


Partitioning, replication,

Leader election, CAP equations!

Eventual consistency, wait,

The users don’t care whose copy is late!


[Verse 4: Concurrency and Scale]

Optimistic locks, pessimistic locks,

Distributed locks and ticking clocks!

Race conditions, deadlocks spin,

Memory leaks come creeping in!


Garbage collection, thread safety,

Backpressure when things get crazy!

Autoscaling, horizontal plans,

Vertical scaling, more expensive RAM!


[Chorus]

Prompt it! Build it! Watch the green lights glow!

Who’s got the pager when the red lights show?

AI writes the code, but the judgment’s yours to make,

You can vibe it into being, but you still own what breaks!


[Verse 5: Deployments and Observability]

CDNs and edge cache fly,

Cache invalidation, why, oh why?!

Feature flags and blue-green switches,

Canary releases catching glitches!


Rolling deployments, rollbacks fast,

Health checks catching failures at last!

Liveness, readiness, monitoring logs,

Distributed tracing through the fog!


Metrics, alerts, SLI,

SLOs and budgets running dry!

Error budgets, observability,

You can’t fix what you cannot see!


[Verse 6: Security]

Secrets management, IAM,

OAuth, who are you again?

JWTs and token rotation,

TLS securing communication!


Encryption at rest, encryption in flight,

WAF and DDoS through the night!

CORS, CSRF, SQL injection,

XSS and SSRF detection!


Database migrations, schema versioning,

Skip the rollback, hear the screaming!


[Chorus]

Prompt it! Build it! Watch the green lights glow!

Who’s got the pager when the red lights show?

AI writes the code, but the judgment’s yours to make,

You can vibe it into being, but you still own what breaks!


[Verse 7: Reliability and Performance]

Disaster recovery, backups made,

Failover saves the working day!

Multi-region deployment, chaos engineering,

Cost optimization, bills appearing!


Cold starts, serverless limits bite,

Latency, throughput, sleepless night!

P99 and tail latency,

Network partitions test consistency!


Clock skew, DNS, TCP,

UDP, HTTP/2 and /3!

Everything works? Just wait and see,

The network doesn’t read your README!


[Verse 8: Infrastructure and Operations]

gRPC and webhooks call,

API versioning affects us all!

Semantic versioning, major, minor, patch,

Infrastructure as code keeps changes matched!


Terraform and Helm charts rise,

Build caching cuts the compile size!

Dependency hell beneath your feet,

Production incidents, no retreat!


On-call ringing, two A.M.,

Postmortems, learn and build again!


[Bridge: The Engineer’s Responsibility]

The model wrote the feature,

And it passed the happy path.

But nobody asked what happens

When the retries all stack.


It’s not about the typing,

It’s the questions that you ask.

What fails? Who gets hurt?

How do we roll it back?


Let the agents do the heavy lift,

Let the humans set the stakes.

Good engineers don’t write each line,

They understand what breaks!


[Final Chorus: Full Band]

PROMPT IT! BUILD IT! WATCH THE GREEN LIGHTS GLOW!

WHO’S GOT THE PAGER WHEN THE RED LIGHTS SHOW?

AI WRITES THE CODE, BUT THE JUDGMENT’S YOURS TO MAKE!

YOU CAN VIBE IT INTO BEING, BUT YOU STILL OWN WHAT BREAKS!


Prompt it, test it, know the why,

Know what happens when the servers die!

AI is power, engineering’s the brake,

Build a thousand things, but know what’s at stake!


[Outro: Rapid-fire, getting faster]

Rate limits! Cache hits!

Deadlocks! Race conditions!

Canaries! Rollbacks!

Distributed transactions!


Terraform! Kubernetes!

SLOs! Security!

Chaos tests! Recovery!

Observability!


[Spoken]

“Hey, AI? One more thing.”

“Can you explain how this works?”


Listen to it at https://suno.com/s/3Ll3i5BdXigoniNF

Originality in the Age of AI

I think about AI pollution like the before-and-after of the detonation of the first nuclear bomb. One way experts can tell an art forgery is to test for carbon-14 isotopes in the paint, because the environment fundamentally changed after the first nuke went off (same as the lo background steel link above).

There is no going back.

I think the interesting question is how will we be able to develop testing to see what is AI-made or not. AI Watermarking will help a great deal, but that is just being implemented now. The first 4 years of AI pollution will be much harder to detect.

And, much like the hive mind in Pluribus, we will be more and more eager to seek original works over time, as the world of AI-free art and writing gets smaller and smaller.

Clearing Bookmarks on Fandango Stream

One frustrating thing I have found when watching movies and tv shows on Fandango is that I can’t clear out my continue watching items. This is especially frustrating because when I autoplay from a series, sometimes the last bookmark signal to be sent doesn’t indicate that the video is done, so it shows up in my continue watching as half done.

Well, this little Gist fixes that for you. All you have to do is:

  1. Log into https://athome.fandango.com/
  2. Go to https://athome.fandango.com/content/browse/continuewatching
  3. Right click and select “Inspect” (if you are using Google Chrome).
  4. Click “Console” from the top of the Inspect window.
  5. Type “allow paste” into the prompt at the bottom of the Console (it starts with “> ”) and press Enter. This will let Google Chrome you are OK with pasting into the Console prompt.
  6. Copy the raw text of the Gist below.
  7. Paste it in the prompt and press Enter.
  8. You will see a notification asking if you really want to do this. If you do, click “OK.” (there is no turning back after this!)

And that is it! That will clear out ALL your continue watching items.

I hope this helps others, too!

The U.S. is more than just the US (according to the ISO)

This has happened to me more than once in my career in the video streaming business. The business folks sign a deal that lets people watch video, but only in the U.S. This is what we call geofencing. We use software like MaxMind and others to ensure people are where they say they are. Pretty straightforward. You tell the software the locations you want people to be able to watch from, and there you go.

Great. You launch your video streaming service in the U.S., and a few days later, you get a call from Puerto Rico. It turns out THEY are a part of the U.S., too. You, being a savvy and well-read person, of course, know this, so what is the problem?

The problem, it turns out, is that geofencing software determines location using a country code. More specifically, an International Organization for Standardization (ISO) 3166 country code. And it ALSO turns out that for some silly reason, Puerto Rico has its OWN country code: PR! That is because ISO3166 isn’t a list of country codes. It is:

“The International Standard for country codes and codes for their subdivisions“

Subdivisions! What is this an HOA? But no, indeed, the ISO 3166 list is a list of country codes… and parts of countries. And it turns out that Puerto Rico is a U.S. territory (nee part of a country, nee a subdivision).

OK, so your team, now privy to the new information, updates their country code list to include the territory of Puerto Rico:

  • US
  • PR

Oh, my friend, I can already hear you screaming: but the U.S. has more than one territory! And right you are, but the complaint only came from Puerto Rico, so the business folk consider this one done. But YOU are a nerd. So you want to fix it right. There are a few that you probably know off the top of your head:

  • U.S. Virgin Islands (VI) - a great vacation spot for those in the eastern half of the country.
  • Guam (GU) - you might remember this one from high school history about the Second World War.
  • American Samoa (AS) - come on, they even put American in the NAME. Dead giveaway!

That’s a pretty solid list, but there ARE two more that a lot of folks haven’t heard of:

  • The Northern Mariana Islands (MP) - a string of islands north of Guam with 47,000 people, all American!
  • The U.S. Minor Outlying Islands (UM) - What the hell is this?!?

Turns out the U.S. owns 9 islands and atolls (an atoll is like an island, but, you know, barely there. Think cartoon island with a palm tree on it)

One island in the Caribbean that is so hard to land on they put it in a class of its own, and 8 islands or atolls in the Pacific Ocean. Almost all of which are uninhabited nature preserves, with the exceptions of Wake Island and Midway Atoll, which have military bases on them (they were ALSO important in WWII - thank you to my high school history teacher and golf coach, Mr. Tyson. Go Wolves!).

One of the nature preserves, Palmyra Atoll, allows people (mostly scientists) to visit for research on wildlife conservation. Two at a time, four a year.

So.

Next time you are geofencing your application to the U.S only, remember that REALLY means the U.S. and its subdivisions. In ISO 3611 parlance, what your geofencing software will understand the whole U.S. is:

  • US
  • AS
  • GU
  • MP
  • PR
  • VI
  • UM

Because, hey, you don’t want those two scientists on Palmyra Atoll missing out on streaming free TV, movies, and live sports, right? Well, as of Friday, they won’t. :)

Making Firefox faster when running Agents

Fun fact: I was experiencing huge GitHub.com slowdowns on Firefox while running multiple agent sessions at once. Doing this dramatically improved performance for me:

Turn off hardware acceleration: Settings → General → Performance → uncheck “Use recommended performance settings,” then turn off “Use hardware acceleration when available,” and restart Firefox.

My Son Found a World Atlas in a Thrift Store, So I Had to Make It Work

My son found a copy of Compton’s 3D World Atlas Deluxe in a thrift store in Port Townsend, WA. I have no idea what he paid for it. Probably not enough to justify what happened next.

This is a Windows 95 era educational CD-ROM. You know the kind. It has a globe, a lot of blue and orange graphics, a giant list of countries, some games, some videos, and an Online button. The Online button is a very confident little button for software that was made when the Internet was still mostly telephone noises.

We put the disc in. I clicked things. It ran, sort of. Then it wanted to connect to an online service that has not existed for a very long time. The program was not broken exactly. It was just looking for 1998 and getting Windows 11 instead.

I thought, OK, I can probably make this work.

Famous last words.

THE FIRST PROBLEM WAS THE WHOLE CENTURY

The original Atlas expects a physical CD, old video codecs, old Windows behavior, and a website that went away before my son was born. Windows 11 is not interested in pretending that any of these things are still normal.

The old shortcut was also not helping. It launched the copy that still expected the retired online connection. This was like giving somebody a map to a restaurant and then being surprised when the restaurant was not there anymore.

So I made a new user-local compatibility layer. It does not replace the CD. It does not put the commercial Atlas program in the repository. It does not download a DLL from some random website and hope that it is not haunted.

It uses the original lawful 3DATLAS disc and makes the parts around it behave on Windows 11.

Then I made a list.

First, the movies needed help. They used Indeo, which is a codec from the time when installing a video codec was an adventure. We convert those movies to Microsoft Video 1 and keep the original PCM audio. The narration works. The music works. The old movies work. Woot!

Second, the Online button needed to do something useful. I built a local mirror from Internet Archive captures of the old Atlas and Compton’s sites. The pages stay local. Dead forms do not send anything anywhere. Historical sign-in pages are treated like museum exhibits, which is probably for the best.

Third, the program needed its old x86 WonderLink component. We built a small compatibility shim for that. This was more fun than downloading a mysterious file from the Internet and putting it next to ATLAS.EXE. Also safer. I like safer.

Finally, there are two shortcuts. One opens the regular window. The other uses Atlas’s own Superplay fullscreen mode. It keeps the original 4:3 artwork instead of stretching the globe until it looks like it has been through a taffy machine.

AT SOME POINT THE INSTALLER GOT IDEAS

The installer started out as a script. Then it became an installer. Then it became an installer with logs, archive downloads, video conversion, shortcuts, checksums, rollback behavior, and a very strong opinion about whether a disc is actually the right disc.

There was one particularly annoying bug. The new configuration could end up beside the original 1998 DLL. The program quite reasonably objected. It gave us an error about the verified Windows 11 Online Archive component being missing or changed.

That was not the kind of error message I wanted somebody else to see after clicking Install.

So now the installer stages the work first. It checks the replacement component by SHA-256. It only publishes a complete result. If something fails, it leaves the previous working installation alone. This is a lot of ceremony for a thrift-store CD, but it is good ceremony. Nobody wants a failed installer to turn into a second problem.

THE ACTUAL PROGRAM IS STILL GREAT

Once it is running, Compton’s 3D World Atlas is exactly the weird little time machine we hoped it would be. You can browse countries, look at the globe, read old statistics, click through the local archive, watch the converted videos, and play the flag quiz.

The data is old. Some of it is very old. The interface is extremely 1998. None of this makes it less fun.

FROM A PORT TOWNSEND THRIFT STORE TO GITHUB ACTIONS

The final part of this got a little ridiculous. I added Pester tests for the installer helpers. I added Node.js tests for the archive synchronizer. I added PowerShell parsing checks. Then GitHub Actions built the x86 shim, built the Windows installer, checked the hash, and published a release with a checksum.

So the path was:

thrift store, Windows 95 CD, dead online service, obsolete codecs, Internet Archive archaeology, x86 compatibility shim, rollback-safe installer, automated release.

That is not a normal amount of work for a piece of educational software my son found in a thrift store. I am aware of this.

But now the globe works. The old movies work. The games work. The Online button opens a local archive instead of yelling at the future. The original disc stays mounted, as it should.

My son found the CD. I got to build the time machine around it. Everybody wins.

Project: https://github.com/trevmex/Comptons-3D-World-Atlas-Windows11
Release: https://github.com/trevmex/Comptons-3D-World-Atlas-Windows11/releases/tag/v1.2.2

The compatibility toolkit does not contain the commercial Atlas program or CD data. Installation requires your own lawful original 3DATLAS disc, and the disc must remain mounted while the program runs.

image

This is the part where I said, “OK, this is pretty cool.”

image

Andorra is in there. Of course it is.

image

Statistics! This is where the 1990s really let their freak flag fly.

image

The computer asks which flag belongs to Andorra. I think the computer has the advantage.

image

A great day at Disney!

image
image
image
image
image
image

Mickey and Minnie visited the Seattle Disney Office for the first time in 18 years, and though Disney VoluntEARS and US Hunger we fed 40,000 people through Northwest Harvest!!!

Years ago, when I was just a manager, I was (and still am) passionate about tech meetups and sharing information. So, I organized a tech meetup at our offices (I was at a large media company at the time) for after hours. This is something I normally did. Many months of me doing this went by, and finally the office admin lashed out at me in frustration. They said, “don’t you know that when you do things off the cuff, like plan an after hours meeting, you are creating extra work for so many people?!? You should really think about how your actions affect others before leaping in.”

I still have a bad habit of leaping in, though I have reflected often on that experience and it has shaped my world view on the ripple effects my actions cause in the world.

Self-deprecation: Story Time

Let me tell you a story.

I was at a tech meetup once and raised my hand to ask a question. I said, “This is a dumb question, but …” and asked my question.

I didn’t think anything of it. After the meetup, a good and always straightforward friend of mine came up to me and said, “Don’t call your questions dumb.”

To which I said, “Oh, but it was just my ignorance…”

He stopped me. He said, “No, you don’t understand. In that room, people look up to you. I know some people didn’t even know to ask that question. And others that had the same or similar questions. When you deprecate yourself around others, you de facto deprecate those around you thinking the same thing. Don’t self-deprecate in front of others. It adds nothing and lowers the self-esteem of those around you.”

I was blown away. I never thought of self-depreciation as harming others, but he is right. Knowledge, skill, talent: it is a spectrum. And when I self deprecated in front of others, that negativity has impacts beyond just me.

Let’s say you self-deprecate about what you do. Are you the best in the world? Probably not. You know that. Are you better than a hell of a lot of people? Yes. Yes, you are. Who does that self-deprecation serve? Not me.