Showing posts filed under: Dev

Tutorial: Using Gulp with htmlprocess and concatenate

Feature image

I’ve been teaching myself Gulp recently. I found the basics easy to pick up. Although I didn’t consider myself a Grunt expert, I’d taught myself Grunt previously and that helped with me with Gulp.Before we go further, check out the GitHub repository that contains the finished example project we’ll go over here: thing I have seen in both Grunt and Gulp workflows I’ve used from... + read on

Basic .gitignore for Craft CMS development

I wanted to share my basic .gitignore file for when I'm working on a Craft CMS project. Sometimes I use CodeKit, sometimes I don't but this .gitignore file will take care of CodeKit cache just in case.# Mac specific .DS_Store .DS_Store? .AppleDouble .LSOverride ehthumbs.db Thumbs.db# Icon must end with two \r Icon# Thumbnails ._*# Files that might appear on external disk .Spotlight-V100 .Trashes# Directories potentially created on... + read on

Bootstrap 3 quick fix for older Firefox versions

I recently worked on a site and used Bootstrap v3 as the framework for my grid system. As I got far into the project, the requirement for Firefox versions crept downward to version 27. My carefully constructed columns started to crumble in this version of Firefox. After a little research, it turned out that the CSS box-sizing rule for Bootstrap had dropped the ‘-moz’ prefixes. Here’s what Bootstrap had in it:* { box-sizing: border-box;... + read on

Automate daily database backups with crontab and SFTP and be the master your domain.

Feature image

I can do that, Dave.

I recently worked on a site which saved data in it’s local database which needed to be collected and sent each day to a remote server via SFTP for analysis. Needless to say, I didn’t want to manually do this process every day, but I had never fully explored cron jobs, so I had to teach myself about cron jobs while I figured out the problem at hand. Here’s how I ended up automating the job.Your friend, the command lineI built the Ubuntu... + read on

Google Analytics, Ghostery, and Event Tracking

At the time I write this post, Google Analytics has a new version in beta called “Universal Analytics”. It’s basically Google Analytics version 3. This means that code you may have relied on during the version 2 of Google analytics may no longer work.Google suggests that all new projects moved to version 3 now. It does offer “real time” analytics, so you can see who is on your site at that very moment. That’s pretty cool.If you want just the... + read on

Use a cookie to iterate between visits with PHP.

Here's a small code snippet that I use to increment a value between visits using a PHP cookie.I use it, for example, when I have 3 different images that could go on a page, and I want to serve up the next one in the sequence on subsequent visits to the page. I just use the "$num" where appropriate.You can edit the '2' in line 14 to change the wrap around value to suit your needs. Happy... + read on

Making MAMP Pro domain names resolve in VMWare Fusion

I use MAMP Pro quite often to develop locally on my Mac. Getting VMWare Fusion to recognize my host names require jumping through a few hoops, but getting it working is key to getting my work done.Here’s how I do it.Set up MAMP ProUnder Server, I set up my MAMP server to run on the default ports: Apache 80 and MySQL: 3306. Running Apache/MySQL as user can be set to either setting.Under Hosts, I make my Server Name be whatever I’m... + read on

MAMP and Navicat and Character Set Hell.

I’ve used Navicat for years. I’ve used MAMP Pro for years. Both tools are must haves as far as I’m concerned, but I had been having problems with special characters being corrupted for nearly 6 months. Every curly quote, m-dash or umlaut was torturous.Briefly, the problem was that those special characters (like curly quotes) would be changed to question marks in my database after I had migrated it to or from my local development environment.... + read on

Facebook’s unimpressive opening day bodes well for the Facebook Platform.

Feature image

Yesterday, Facebook’s IPO could be seen as a face plant for the kid full of hubris during his first time in the spotlight. As a developer, I see this as a potentially great set of circumstances for Facebook.My hope is that yesterday’s anticlimax of an IPO may lead to a more stable platform to build upon. I like the API and the more I work with it that admiration only grows. I just want evolution in the API, not revolution.Facebook is... + read on

Lessons learned in ExpressionEngine add-on development

Feature image

In January I released the first commercial add-on I’d developed for ExpressionEngine. It’s called Pic Puller and it helps an ExpressionEngine developer create and integrate an Instagram application into his or her site.This post isn’t meant to get you to go buy a copy of the Pic Puller add-on. (Granted, I won’t stop you either.) Rather, it’s a personal journal of my process of making it and what I’ve learned along the way. It may be a bit... + read on

Twitter Feed

John Morton talking on Twitter

Meanwhile on Instagram… //

My latest shot from Instagram.
Jazz history at the corner of 4th & Cooper Sq #nyc #jazz