WooCommerce and its Storefront theme display so-called category archive pages to list products in the category. If the category includes a description, it shows at the top of the page along with the category’s name. This php snippet adds an Edit link to those pages allowing a privileged user logged in to the Dashboard to … Read more
I just stumbled across this article debunking the idea that skinny road bicycle tires are faster than wider ones. I’ve been riding on 700c x 25 Continental clincher tires pumped to 100 psi (~7 bar) for a long time now. But when I read Jan Heine’s piece I resolved to try some 700c x 32 … Read more
Here’s the WordPress dashboard screen for the plugin. Here’s what I propose to collect for data…. server version, all variables, some stats on the key-value tables. A mess of JSON. Comments? Anything else needed?
Writing a WordPress plugin I had to dig around to figure out maintenance mode. That’s when visitors get this message. Briefly unavailable for scheduled maintenance. Check back in a minute. It’s easy to do from plugin or theme code. To enter maintenance mode Write a file named .maintenance into your document root with something like … Read more
Rick James and I are cooking up a plugin to help optimize the way WordPress uses its MySQL database. The basic idea It’s an ordinary WordPress plugin, downloadable from the plugin repository. As of early June 2021 it’s a work in progress. It’s here on github. Upon activation, it examines … the WordPress version and … Read more
The New York Times ran an article last Friday about the struggles people have had using all those vaccination-appointment web sites. The biggest complaint? The sites “crash” because they have too much traffic. I’ve worked at a company that runs scaled-up web technology. We have a customer with a vast seasonal rush, with millions of … Read more
You’re developing a web app on localhost. It uses one of the many Web APIs that require your page to come from an https origin (or from localhost). getUserMedia(), WebRTC, and the Web Authentication API are examples. The hard way Now you want to show it to a friend. Now what? Do you have to … Read more
The Firefox browser’s WebRTC and MediaRecorder functionality can handle H.264 (Advanced Video Codec) coding and decoding, but only with H.264’s constrained baseline profile. Other, higher, profiles just don’t work. And in Firefox’s WebRTC implementation (v87) attempts to use higher profiles fail more-or-less silently. Firefox works around all the patent issues with H.264 by using an … Read more
The WebRTC (browser-to-browser realtime conferencing) standard landed as a W3C recommendation version 1.0 on 26-January-2021. Thanks everybody who worked on it! Maybe there’s a future without adapter.js !