Selecting a Docker Registry - 2019-03-17 08:18:40

When I started playing with Kubernetes a few months ago, there was one question that didn’t seem to have a clear answer: Where do I store the images that will be running in Kubernetes? Most of the documentation and examples are for deploying ready-made services like nginx or MariaDB. The services tend to be open source with images publicly available on Docker Hub. But sooner or later you’re going to want to build a custom image and deploy it.

Welcome to Hugo! - 2019-03-09 06:58:10

Welcome to my redesigned blog! I started this site a few years ago using WordPress. It was the natural choice since I worked for a company built around that ecosystem. A few weeks ago I decided to move my site away from WordPress. This new site is built using Hugo, which is a big change from WordPress. Hugo vs WordPress Hugo is a static site generator (SSG). Similar to WordPress, you have a theme that defines the overall look of your site and content that gets embedded in that layout.

How to Write Clean Code - 2018-10-10 21:19:51

TL;DR Some simple practices to help you write reasonably clean code, even when you’re in a hurry: Split your code into small and simple functions Avoid too much indentation Use good variable and function names Don’t repeat yourself Do the easy optimizations Practice your trade Background Writing clean and elegant code is not easy, especially when you’re under pressure to deliver on a deadline. Sometimes you have to cut corners and whip something up that just works.

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. https://github.com/nabsul/phpodcast 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.

Migrating Data Between Azure Subscriptions - 2016-11-29 01:06:52

It’s been two years since I left Microsoft, and they finally decided to cancel my free employee Azure account. It was fun while it lasted, but now I have to move my data to a regular paid account. I looked through the FAQs and contacted support for the easiest way to do this, and unfortunately there is no officially recommended solution for moving storage accounts between different subscriptions. I found some Windows-only tools that may have done the job, but I wanted a solution that would run on any platform.

Playing With Hadoop (PART 1) - 2016-10-25 23:54:58

The Hadoop File System (HDFS) is a distributed and redundant file system that stores your data in chunks across multiple nodes. This allows for fault tolerant data storage (a node can die without the loss of data) as well as parallel data processing. If you want to store and analyze large amounts of data, Hadoop is a great option. I recently read a great book called Data Analytics with Hadoop, and this post is based on what I learned there.

WordPress Plugins: How to Develop in Git and Publish to Subversion - 2016-10-24 17:58:50

About a month ago, I got my Sift Science plugin added to the WordPress.org online store. To publish your plugin to the store, you’re required to use the SVN repository that they provide. Once you get that done correctly, users of WordPress can find and install your plugin through the built in store and they will also receive notifications whenever you publish a new version. In this post, I describe how I manage releases of my Sift Science plugin.