Category: WordPress
-
Elasticsearch type gotcha
I recently was working on updating some elasticsearch tests we have for WordPress.com. We have so-called isolated tests, which use a real MySQL database and a real Elasticsearch test cluster. We create sample blogs, posts, and so forth, store them in the database, which triggers our hooks for indexing into Elasticsearch, and then we make…
-
Who is my audience?
Several years ago, I set myself a goal to blog at least once a week. At the time, it was relatively easy to do so. I have not only this blog, but also my family blog. Now that my kids have gotten older, they don’t like me blogging on the family blog so much, so…
-
Three questions from the Cafe
For my birthday this year a friend gifted me Cafe at the Edge of the World by John Strelecky (amazon link). She actually gave me the German translation, which was fine with me. It was good timing, as I had a long plane trip ahead of me on December 24th, so I read it while…
-
The importance of the denominator and a nutrition experiment
High-protein diets have been popular for a good ten years or more. In the last year or so, there has been an explosion of high-protein products at the grocery store, e.g. “high-protein pudding” or “high-protein yogurt”, which my daughter has been gobbling up. Several weeks ago my son told me he wanted to try a…
-
Closures in PHPUnit dataProviders
Today I was working on a PHPUnit test at work for testing Elasticsearch. In this case, I wanted to make sure that the data that I was indexing was findable. Basically I wanted to run a search for a given query and check that the results were as expected. I wanted to run this search…





