Switch Laravel Valet from .dev to .test in three easy steps

Chrome and Safari began forcing https for the .dev domain because someone apparently thought it was a good idea to register as a public TLD. Laravel Valet only produces self-signed SSL certificates though, so I want to keep my local installations served as http. Guess it's time to switch TLDs!

Oh, and don't try to use .local on a Mac because it conflicts with Bonjour local networking. I discovered this with 30 minutes of wasted effort. .test is the way to go.

First, run:

valet domain test

Switch Valet to using the .test domain, which will also update dnsmasq accordingly. Don't try to edit dnsmasq configuration on your own — there are too many ways to go wrong.

Second, run:

wp package install wp-cli/find-command

Install wp-cli/find-command to find all WordPress installs in your Laravel project directory. It's convenient for running one WP-CLI command against all WordPress installs.

Third, run:

wp find ~/projects --field=wp_path | xargs -I % wp --path=% search-replace '.dev' '.test' --all-tables

Run wp search-replace against all WordPress installs to replace instances of '.dev' with '.test'. ~/projects is my Valet project directory, and --all-tables ensures the procedure is run against all database tables.

Et voila! You've switched Laravel Valet from .dev to .test in three easy steps.

How Facebook Is Killing Comedy

Facebook is essentially running a payola scam where you have to pay them if you want your own fans to see your content. If you run a large publishing company and you make a big piece of content that you feel proud of, you put it up on Facebook. From there, their algorithm takes over, with no transparency. So, not only is the website not getting ad revenue they used to get, they have to pay Facebook to push it out to their own subscribers.

Matt Klinman — How Facebook Is Killing Comedy

Good first Gutenberg issues

Want to submit your first pull request to Gutenberg? Here are a few good first issues to get your feet wet:

Read through the contributing guide for details on how to get started. Feel free to ask questions on the specific issue, or join us in the #core-editor channel with any questions you might have.

RFC #17: Experiments and the Economics of Open Source

RFC #17: Experiments and the Economics of Open Source. I joined Nadia and Mikeal to discuss my work on WP-CLI, the economics, origins, staying productive as a maintainer, fund raising, and the state of WP-CLI "today" (aka last May when this was recorded).

Update: I forgot I said this: "[The GPL] is used often as a blunt instrument for enforcing certain economic dynamics around everyone's businesses." Pretty good!

Ava’s first day skiing

She did great! She started out skiing between my legs, then we took the lift (her first time), and she finished the day doing some "turns" on her own.

Analysis of distributed host testing failures

Since August, several WordPress hosts have been running the WordPress PHPUnit test suite on their infrastructure. Read this post for more background.

In total, six failures have been observed:

  1. r42421 – REST API: Return the proper status code for failed permission callbacks in WP_REST_Server->dispatch()
  2. r42037 – Customize: Support instantiation of partials with flat/unwrapped params for parity with controls, sections, and panels in [41726]
  3. r41764 – Widgets: Fix jshint error in media widget
  4. r41717 – Multisite: Replace calls to refresh_blog_details() with clean_blog_cache()
    • 1 of 1 hosts reported failures.
    • Travis CI reported a success. Root cause of host failure is unknown.
  5. r41614 – Users: There is not, in fact, 12345 users on every WordPress installation
  6. r41574 – I18N: Merge two similar “Cannot set parent term” error strings

Interesting! But also not very interesting because there's not much to see.