If you’ve worked in web development or DevOps for any length of time, you’ve accumulated a collection of bookmarked online tools. JWT.io for decoding tokens. Various JSON formatters. Base64 decoders. YAML validators. URL parsers. The list goes on. I found myself constantly jumping between these tools, often not even remembering which bookmark was which, and […]
Creating a full maps stack without Google
After Google increased their map prices significantly (by about 100x in my case) I had to set about finding alternatives. It turned out the DIY approach was far easier than I expected and is saving thousands of dollars every month. The end result we came up with looks professional with most people not noticing any […]
Strip all but certain characters from a string in PHP (such as alphanumeric, numeric, etc…)
The #1 result in Google for stripping characters out of strings in PHP is awful and uses the deprecated ereg_replace function so lets make a new search result using preg_replace which is much better, faster and it is fully supported in PHP 5 and 7. Allow only alpha-numeric: Only numeric: Alpha-numeric with whitespace: The ^ […]