Profile avatar
kaspars.damb.is
Full stack maker of things with passion for #WordPress, electronics, sustainable living, personal finance and teaching. Find me at https://kaspars.net and https://wpelevator.com
152 posts 88 followers 81 following
Regular Contributor
Active Commenter

Curious about AI embeddings 💘 and how they apply to WordPress? I’ve put together a guide that explains their role in powering regular search and retrieval-augmented generation (RAG) systems for even better search results or chat systems.

Experimenting with storing embedding vectors as packed 32-bit floats in a MySQL VARBINARY column and handling distance calculations in PHP. As expected, the real bottleneck is the math -- especially with larger vectors. Also array_map() and array_sum() are super slow and unusable for this.

Block editor has this helpful focal point selector. Wouldn't it be great if you could set a default focus point for all images and then use it during resizing the intermediate sizes? I'm thinking of adding this to the Image Pilot plugin.

Is anyone else getting these Facebook confirmation codes for fake accounts created with random @yourdomain.com email addresses?

My fix for adding the custom page order sorting option to Query Loop block has been merged and should land in the WP core with the next Gutenberg sync. 🚀

On my flight home, I watched a university professor spend over 30 minutes grading a basic undergraduate business paper -- still not finished by the time we landed. An LLM could have handled 90% of the initial work in seconds, freeing the professor to focus on personalized feedback.

How come Zed doesn't support HTML and PHP syntax out of the box? Both are the most installed extensions so people definitely want them.

Is there really no filter to adjust the output of WP_Styles::print_inline_style? https://github.com/WordPress/wordpress-develop/blob/8a52d746e9bb85604f6a309a87d22296ce1c4280/src/wp-includes/class-wp-styles.php#L178

How do you handle translations for your commercial WordPress plugins?

The recent frontend updates to @github are making it unusable — on-page search is broken (always jumping to incorrect places), layout shifts everywhere, slow to scroll. Are you also experiencing this?

Ever wanted to mock the Cloudflare Image API locally? Here is a sample WordPress plugin that enables cdn-cgi/image/... routes locally and supports only image resizing.

Code signing doesn't solve everything because there are so many places where malicious code can creep into downloadable software. Source attestation is like a bill of materials with signed receipts.

Using browser cache for cookie-less user tracking is really smart. Assigning an identifier as Last-Modified or Etag response header and then tracking those subsequent requests seems unstoppable. Is this why cross-domain requests have isolated caches even for things like fonts, JS libraries, etc?

Please don't use AI when applying for AI jobs 😂

GitHub Copilot is catching up with Cursor: - An "agent mode" that allows chat and edit to work across all project files. - The improved autocomplete now suggests the next edits you might want to make outside of the current line of code (defining additional class attributes, for example).

Today I learned that Twitter allows changing password without asking for the second factor. Anyone with access to a valid session can simply change the password and lock you out. Same with account email apparently.

Did you know that ChatGPT is adding utm_source to every link in the response sources and citations? Make sure you're tracking that in your analytics!

Created "Perf Bench" to generate all kinds of web performance tests. It is a single PHP file (inside Docker) that maps query args to feature flags. A helper script can generate all permutations of the supported feature flags which can then be used by any other benchmarking tool.

I don't talk about this much, but recently I've been doing a lot of consulting to help devs/agencies/product teams transition to the block editor. We can go over tooling, workflows, shortcode migrations, anything really. HMU if you're interested👇 www.briancoords.com/consulting/

Boost your block theme performance in by preloading the new custom fonts added in WordPress 6.5. Here is how: https://wpelevator.com/guides/block-theme-performance

Why is that WordPress doesn’t offer system font stacks out of the box?

Tested a bunch of Meshtastic antennas for 868MHz (EU) frequencies and only two of them are actually usable. That's very frustrating for users because they will never know the reality without testing.

Just release version 0.10.0 of Controls for Contact Form 7 which enables native WordPress shortcodes in the form content.

To catch the hardest bugs, your WordPress development environment should be: 1. a sub-directory multisite, 2. with WP core in a sub-directory, 3. with wp-contents at the root (outside of core) What am I missing?

Fonts create an immediate emotion. Some are classy and expensive while others are playful and fun. Good fonts are the ones you don't notice -- they just add clarity to the message and brand. I feel like Drupal could significantly improve their brand and value by updating the front stack.

How to add Live Preview (blueprint.json) to plugins on WP-org? And how to test it locally before deploying? After adding this to one of my plugins, I decided to record a video with general instructions and some tricks for local testing.

The Controls for Contact Form 7 plugin can now store the form submissions 📬 in TablePress!

With DKIM signing WordPress can reliably deliver email. What’s stopping it from receiving email too? Would love to build a support inbox directly within WP admin.

Does anyone know the history behind the choice of SHA384 hash and X-Content-Signature HTTP header for WP core update signatures? Why not SHA256?