Posts by Sarah Lewis
From Coding to Cooking: Practical Uses for ChatGPT
Six months ago, I started playing with ChatGPT, an AI developed by OpenAI. At first, it felt like being handed a high-tech gadget with a one-page manual—intriguing but a bit overwhelming. What was I supposed to do with it? Chat? Yet, as weeks morphed into months, I found that I was increasingly in conversation with…
Read MoreObsidian, the note-taker of my dreams
The backstory (Hate navel-gazing backstories? Just want the practical details? Feel free to skip to how I’m using Obsidian!) I’m one of those people who are always trying new systems, convinced that “all I need” to finally be on top of things is in the next system. Occasionally it’s even true, but usually takes a…
Read MoreWooCommerce Subscriptions unexpected value: INF
Short and sweet, because I got no Google results for my search: When calling WCS_Switch_Cart_Item::get_old_price_per_day(), I got back INF as a result. After tracking it down, it was because I had filtered wcs_switch_proration_days_in_old_cycle but had a bug that was resulting in no value being returned.
Read MoreAdding or updating a Gravity Forms license on WordPress Multisite
Recently when I went to update plugins on a WordPress Multisite install, I noticed Gravity Forms wouldn’t update and gave the following error message: This didn’t come as a surprise because I knew the license was expired. I had a new license number to activate, but it wasn’t immediately obvious where I could do that.…
Read MoreReact Query – Essentials course errata
I’m learning React Query, specifically by going through Tanner Linsley’s React Query – Essentials course on Teachable. I had heard that there are some version-related inconsistencies in the course, and sure enough, I’ve run into them. The associated repo is also out-of-date, so no help there. I’m documenting them here as I encounter them in…
Read MoreCooking rice packets in a Thermos
A few facts led to embarking on this experiment: My 12-year-old son and I are both lazy uninterested when it comes to preparing entrees for him to take to school. Mornings are not a great time to do something involved, both due to a night-owl tendency on his part and the short window to get…
Read MoreThree creative ways to use up leftover marshmallow fondant
I made a couple of cakes for a school cakewalk last week, and ended up with leftover marshmallow fondant in four colors. Thinking there must be some reasonable way to use it up, I googled. The results were… uninspiring. Essentially, the advice was either to save it, practice with it, or use it as fondant.…
Read MoreSorting posts by meta_value when they’re saved as an ACF serialized array
What I searched for “acf” sort by meta_value serialized Why I searched for it I’m using Advanced Custom Fields to let a site manager pick one or more US states to associate with each Chapter (a custom post type). I want to display the Chapters in a list sorted by the state in alphabetical order;…
Read MoreTransitioning your kid from single-player Minecraft to playing on a server
If you’re a parent of a kid who plays Minecraft but you don’t play yourself, you may have no idea how to handle requests to play with others or play on a server. It took me a while to figure it out, and honestly, I didn’t bother until I started to play myself, so I…
Read MoreALDI product comparisons
We like ALDI and most of the products we’ve bought there. If you’re not familiar, it’s a German-owned grocery chain and almost everything they sell is generic. This is a lot like Trader Joe’s, and in fact, they’re both owned by the same German family. I often wonder how similar the generic products are to…
Read More