Two performance tips for WordPress migrations

Images are a total bottleneck when importing a site into WordPress.

Your script’s execution time can easily double if your migration script fetches images over HTTP or generates multiple thumbnail sizes. Because you’ll likely need to test your script multiple times, these inefficiencies can cause substantial delays in your project.

Fortunately, two simple tricks will save you a ton of time.

Continue reading “Two performance tips for WordPress migrations”

Install Imagick to a CircleCI container

If you need Imagick for your WordPress test suite, you might run into a cryptic Exited with code 141 error:

Fortunately, you can ignore this error! Simply append || true to your install statement. In total, your Imagick incantations will look like this:

sudo apt-get update
sudo apt-get install -y libmagickwand-dev --no-install-recommends
yes '' | sudo pecl install imagick || true
sudo docker-php-ext-enable imagick

Tada!

Testimony for Oregon House Bill 2001

Oregon’s House Bill 2001 would re-legalize “missing middle” housing across the state (previously). It’s in committee right now, and they’re accepting testimony on the bill. Here’s what others have said. And, after the break, here’s what I just submitted!

Continue reading “Testimony for Oregon House Bill 2001”

Idea: notes archive

I take a ton of notes in Notes.app (and previously Simplenote). My preferred workflow is to keep a note in Notes.app until I’m “done” with it. At the point of done, I save the note as PDF to a local folder.

This distinction between active notes and completed notes is key for how my mind works. Something about reducing mental clutter, or insert your diagnosis here. I want to keep the notes around for future reference but I want them stored on my shelf.

I’d love to instead have a dedicated app serve as my note archive. It could be web or cross-platform as long as it kept privacy at the forefront. Importantly, it would be read-only; it wouldn’t take on the concern of also providing an editing interface.

Back on the coffee today

Update 2/11: I’m off for 12 days now, woo hoo

On Sunday, I survived my first day without coffee. Then yesterday, I survived a second day without coffee.

Pros of coffee abstinence include:

  • Better sleep.
  • Generally feeling a ton healthier.

Cons of coffee abstinence include:

  • Low-grade headache and other withdrawal symptoms.
  • Leah questioning my sanity.

I am back on the coffee today.

Highlights from Dreamland

One of the most important books of the decade:

They couldn’t conceive of their children on heroin. For every symptom, the parents had an answer. Did they see burned aluminum foil around the house? We thought he was burning incense. Was he slurring his speech? He was getting over the flu. Were his grades falling? He was going through a phase.

[…]

Drug overdoses passed fatal vehicle accidents nationwide for the first time in 2008.

[…]

It was true about much of a country where the streets were barren on summer evenings and kids no longer played Kick the Can as parents watched from porches. That dreamland had been lost and replaced, all too often, finally, by empty streets of bigger, nicer houses hiding addiction that each family kept secret.

Sam Quinones — Dreamland: The True Tale of America’s Opiate Epidemic