Instrumenting PHP: A Minimalist Approach - 2017-08-11 00:19:25

I needed a quick way to measure performance and log errors in my Sift Science for WooCommerce plugin. I didn’t want to go back through all my code and embed logging and timing measurement statements, so I considered a more generic and lazy approach. I decided to create a class that wraps the class I want to measure/monitor. Its constructor takes a class instance, it saves that instance. Then, for every function call to the wrapper class, the function in the underlying class is called and information is logged as needed.

Host Your Own Podcast with PhPodcast - 2017-08-08 20:14:56

I’ve been using a little PHP script for the past few months to host my own private podcast. So I decided to clean it up a little and share it on GitHub. A little background: I had some audio files that I wanted to listen through with the ability to increase the speed and pause at any time to continue later. This is everything that most podcast apps do. So I decided to host my own private podcast channel containing the audio files.

I Have a Fantastic Startup Idea! - 2017-08-02 01:15:47

“I have a fantastic startup idea.” You’d be surprised how often I hear this. When I do, it’s often followed by “All I need is a developer. Let’s partner up!”. Now don’t get me wrong, I think entrepreneurship is a great thing, and I often hear ideas that are genuinely interesting. However, a great idea isn’t enough to justify taking on such an endeavor. Over the years, through trial and many, many errors, I’ve developed a few rules to help filter these pitches.

Analyzing WordPress Hook Usage with Azure Data Lake - 2017-06-14 01:02:28

WordPress provides a large number of hooks that allow plugins to extend and modify its behavior. A few months ago, I was curious about which of these hooks are popular, and which of them are hardly ever used. I was also looking for an excuse to give Microsoft’s Data Lake Analytics a spin. U-SQL looked especially attractive as it brought back fond memories of petabyte-scale data crunching at Bing.