When you export JSON form PHPwhich contains data from an “unclean” data source you must enforce UTF-8 upon the data that will be added into your JSON structure.  Below I’ll show an example of exporting JSON and enforcing UTF-8 upon each record data entity.

 … Read More


Sometimes you need to export a collection of data for use to another system.  One of the easiest ways is to export it to XML as it is widely accepted as a data exchange format and standard.  PHP makes creating and exporting to XML very easy.  Below I’ll show you an example where I am exporting… Read More


The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them. Command Syntax

Note… Read More


I had to process a lot of Word .docx files into readable content for use in a searchable database.  Docx files are basically xml files in a zipfile container (as described by wikipedia).  Here is my solution, it’s pretty straight forward.  Just pass in the server file path to the read_docx() function and it will… Read More


Validating Email Addresses is one of the more elusive patterns to define, but this pattern will match 99.99% of all email addresses in actual use today.

A further change you could make is to allow any two-letter country code top level domain and only specific generic top level domains. This regex filters dummy email addresses… Read More


I develop a lot of data parsers and continuously run into composite mailing addresses that require to be split into their meta collections. The following Regex pattern will reformat these two style addresses into XML tag elements. SAMPLE ADDRESS DATA: 1200 Ocean Rd., Narragansett, RI 02882 1200 Ocean Rd., Narragansett, RI 02882-1234 FIND PATTERN USING… Read More


If you’ve ever used Amazon’s AWS console then you probably know that though sometimes it can be clunky, it has a ton of functionality for interacting with the various AWS services. So when I needed to give one of my coworkers access to one of our S3 buckets, I immediately investigated the laziest option: figuring… Read More


Google Design are open-sourcing 750 glyphs as part of the Material Design system icons pack. The system icons contain icons commonly used across different apps, such as icons used for media playback, communication, content editing, connectivity, and so on. They’re equally useful when building for the web, Android or iOS. Check them out: https://github.com/google/material-design-icons/releases/tag/1.0.0… Read More


Responsive videos seem to be an after-thought for many websites. While text and images are easy to resize to mobile and tablet screens, videos have always required extra work. Even popular video sharing sites like Youtube.com still don’t have an easy “responsive” option and require specifying a video dimension for embedding. Luckily, the 3.2+ version… Read More


As 2015 comes to a close, it seems appropriate to round out a list of the best AngularJS templates that I’ve seen this year. Whether you’re looking to build a dashboard application, a portfolio application, or you are merely looking for a responsive AngularJS template to build your application on, there is sure to be a… Read More