web development Archives - Jeff Everhart

Fixing PHP Warning: mysqli_real_connect(): (HY000/2002): with WP CLI and MAMP

This will be a short post, but I felt it necessary to do since I had to deal with this is a non-standard way given my situation. I decided to play around with WP CLI to scaffold out the theme for a project that we are starting, but ran into a few configuration issues. It […]

Read More

Setup AWS CloudFront for WordPress | Scaling this Blog

Over the past few years, this site has gone through some pretty substantial changes. After getting hacked on BlueHost sometime in 2016, I reworked the entire site architecture using hand-rolled resources on AWS. While this taught me a lot, it has been increasingly expensive and time-consuming. To keep my costs down, I’m really relying on […]

Read More

Using the Right Tools: Indexing in MySQL

As I’m sure this is with most people, my deepest learning moments come from random walks down different avenues. In preparation for a GIS focused project I might get to work on, I spent a few minutes reviewing the geospatial features available in MySQL, which lead me down some side research into database indexes. You […]

Read More

Load Testing WordPress Multisite

Over the last few weeks, we’ve been dealing with some heavy fallout from a recent server migration on our large WordPress MU installation. While moving everything from Linode to Digital Ocean should give us a more powerful toolset, save on costs, and give us more infrastructure flexibility, I wish the cut over was uneventful. On […]

Read More

Recursive Recursion with Vue

We’ve been working on a project with some of the folks from the medical campus since I’ve been at VCU. They are developing a large OER site for Histology, which is the study of cells, but we’re approaching a point where this single site has over 1000 pages in a nested menu structure. Since the […]

Read More

Simple is Always Better

One of the hardest things to do as a developer is to resist the urge to add additional complexity where it does not add value to the overall solution. As technologists, we tend to think this stuff is cool, and so sometimes we fall victim to this trap. Let me illustrate with a recent example. […]

Read More

Digging into the Gutenberg Editor

After a decent amount of foot shuffling, I finally decided to step up and dig into the Gutenberg editor that will ship with WordPress 5.0, whenever that is ready. There has been a lot of chatter in the WP ecosystem over the last year or so about when this update will be ready, how it […]

Read More

WordPress JavaScript Snippets

This post is really just a placeholder for some new JavaScript tricks I’ve learned for WordPress over some of my latest projects. I’m sure these won’t be groundbreaking, but it’s worth it to document them here, at least for myself.   Working with REST API on Multisite The first snippet deals with using the REST […]

Read More

Extending WP REST API Index Route Response

This should be a fairly quick blog post, but it should help some folks out if they are looking to extend the WP Rest API index route to include some additional fields. First, let’s clear up what I mean by index route.  For the purpose of this post, we are considering the index route to […]

Read More

Using AmCharts with Vue and Webpack

I finally swallowed the Webpack pill, mostly because I wanted to get the most out of single file Vue components for some new projects I’m working on, and Webpack is along for the ride. Overall, it’s been a semi-frustrating but also instructive experience. Before this I never used ESLint or any other type of linting, […]

Read More