NWTFS September Rifle Match

Last month, Destiny and I attended the high power rifle match at Northwest Texas Field and Stream Association. This was the first match that Destiny and I had competed in at the club, and it was only the second time that we had ever competed. The first time that we competed being at the Rifle … Read more

Camp Perry Pistol Week– 2019

I spent last week, July 8th-14th, at Camp Perry in Port Clinton, Ohio for the National Precision Pistol Championship. The Trip The trip was about a 17 hour drive to get from Wichita Falls, Tx to Port Clinton, Ohio. And with 4 people and all of our gear, you can imagine that the van we … Read more

How to download a gif from Giphy

Recently, when I was trying to download a gif file from Giphy, I noticed that when I went directly to the file, https://media.giphy.com/media/14kdiJUblbWBXy/giphy.gif for example, that it was actually loading a web page instead of the gif file. Now, on this page, you could choose to alternative/right click on the image and then click “Save … Read more

Recursively cast to array in PHP

I recently ran into an issue where JSON encoding some objects in my code wasn’t working properly. After experimenting, I realized that casting everything to an array before JSON encoding magically fixed things.  Casting an object to an array is simple enough: But, what happens when an object or array contains references to other objects … Read more

How to remove files not tracked in SVN

Print object methods code

At Automattic, we use SVN and Phabricator for much of our source control needs. One issue that I often run into is a warning about untracked files when creating a Phabricator differential: This warning’s purpose is to make sure that the differential being created has ALL of the changes so that a file isn’t forgotten … Read more

Get unique values in file with shell command

Over the past year, there have been a couple of times where I've needed to sort some large list of values, more than 100 million lines in one case.  In each case, I was dealing with a data source where there was surely duplicate entries. For example, duplicate usernames, emails, or URLs. To address this, I … Read more