Software Engineering in WordPress, PHP, and Backend Development

Category: Notes (Page 20 of 50)

Notes on programming-related problems that I’ve encountered while working on various projects.

What Are You Doing Outside of WordPress?

The end of the year usually breeds one of two types of posts (or, in some cases, both!):

  1. A look back over the year summarizing everything that you accomplished (or discussing what you didn’t get accomplished),
  2. Your plans for what you hope to get done in the New Year

And I’m no exception.

Granted, I’m not one that’s big on resolutions – I tend to think that the best time to start something new is whenever you decide to start something new, but I know that bringing in a new year brings with it that feeling of starting over or a clean slate and with that comes ideas for what you hope to get done.

Continue reading

Merry Christmas!

As is the case with many, Christmas is my favorite time of year. I know that thing in the world don’t stop turning, and things in the world don’t stop happening, but for those who are fortunate to have family and friends close by, it’s a great experience to be able to spend the day with them.

Continue reading

Happy Thanksgiving!

Happy Thanksgiving

Happy Thanksgiving

We’re celebrating Thanksgiving today in the United States, so I’m taking a day off of the typical routine.

For those who are also celebrating the holiday, I hope you have a great day hanging out with friends and family and enjoying the food, the naps (well, if you can fit it in), and the general time off.

For those who aren’t celebrating Thanksgiving, I still hope your day is just as awesome (perhaps you can find the time to hang out with some friends or family or get some good food, as well :).

I’ll be resuming my usual posts tomorrow morning. Until then, enjoy the day!

A Quick Tip To Extract Data with RegEx

In a recent project, one of the features that I was working on required that the application make periodic calls to a third-party API in order to retrieve a piece of information to be used later throughout the application.

This piece of data changes over time (though the intervals are irregular) and the end point to which the application connects doesn’t return a standard XML, JSON, or the information in any other standard protocol. Instead, it returns a string of mixed HTML and JavaScript.

The piece of key information is prefixed stored in a JavaScript so it’s easy to get the proverbial bearings from the API’s response, but in terms of grabbing the unique data, it requires some work to extract the data with a regular expression.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑