Category Archives: Code

Grunt – for automating builds in Front End land

Grunt is a front end build tool I’ve used on the last several projects. It handles CSS / JavaScript minification, concatenation, and linting really well.  Some of my legacy projects use a combination of bash and Yahoo UI Compressor, which … Continue reading

Posted in Application Development, Code | Tagged , , , , | Comments Off on Grunt – for automating builds in Front End land

ReCaptcha getting hard to read, found streamlined substitute in FatFree

Recently implemented a Captcha field on a signup page.  So, to start with I looked around for a good plugin to handle this. ReCaptcha was the first one that popped up. ReCaptcha does support themeing, which is nice since the … Continue reading

Posted in Code | Tagged , , | Comments Off on ReCaptcha getting hard to read, found streamlined substitute in FatFree

MySQL query for obtaining unique list of domain names with count from email field

The following MySQL query is useful for getting a count of all the domain names used by email addresses in your database.  It isolates the domain name (after the @ sign) in the email field. SELECT substring_index(email, ‘@’, -1), COUNT(*) … Continue reading

Posted in Code, Data | Comments Off on MySQL query for obtaining unique list of domain names with count from email field

How to set the Expires and Cache-Control headers for all objects in an AWS S3 bucket with a PHP script

As of the current AWS API, setting the Expires and Cache Control headers for all objects in an AWS S3 bucket requires a script. It is possible to do it one file at a time through the AWS control panel, … Continue reading

Posted in Code, Sys Admin | Tagged , , | Comments Off on How to set the Expires and Cache-Control headers for all objects in an AWS S3 bucket with a PHP script