An odd mixture of developer notes, project writings, and general observations.

Pick your Poison Part 1: HTC One Versus Samsung Galaxy S4

Which new smart phone do I get? iPhone 5, HTC One, or the Samsung Galaxy S4. Since I was knee keep in the smart phone decision madness a while ago, I thought I would chime and share my thought process in phone shopping and my conclusions.

Read More

MediaQuery Javascript - innerHeight, min-device-width, and min-width

Today I had Javascript loaded, mobile-only ads that needed to be implemented on a responsive site.  Uh oh.

Easy solution?  Hide the div when it isn't mobile.  Unfortunately, that means the ad still gets loaded.  When it's loaded, but not displayed either an advertiser gets falsely charged or your click-rate is negatively skewed.  Big no-no's for a high ad revenue site.

Read More

How to Improve PHP Performance with APC

APC stands for Alternative PHP Cache.  APC can provide some great performance benefits for Drupal sites by optimizing how your server processes the PHP code that makes your website work.  Essentially, there are 3 steps that your server does every time a page is requested:

  1. Parse the PHP code
  2. Compile the PHP code
  3. Run the PHP code
Read More

How to Drastically Improve Drupal Performance in 10 Seconds

Probably everyone who has worked with Drupal to any extent already knows about the benefits of turning on Drupal's built in Page cache.  That said, most people have probably never really thought twice about the negative impact of not doing so on the performance of your website.  While doing some performance benchmarking before overhauling our servers, I decided to take a couple minutes just to test the performance impact of not enabling Drupal's Page cache.

Read More

How to Benchmark Apache Server Performance

There are numerous different ways to benchmark page request times for your website, but the simplest tool comes with Apache out of the box.  It is called Apache Benchmarx Tool, and it is extremely easy to use.  You just run the command ab on the command line, and it will give you all of the information you need about how to use it.  Just to give you a quick overview of how it works, there are basically 3 flags that you will use quite often when doing benchmarking:

Read More

Drupal Services, REST Server and 3-legged OAuth

Step-by-Step Guide

In this tutorial I am going to show you how to create and retrieve nodes, upload files and access Views with Drupal Services module, REST server and 3-legged OAuth authentication.

1. To begin, you will need to download the following modules: 

Read More

Tailored Template Part 1: Choosing pictures

When we began working with House of Faith, I soon found out they were located in Texas. I had heard of their home town San Angelo, but I was not exactly sure where it was. So exercising good old Google Maps, I found that Angelo is about four and a half hours south west of McKinney, Texas, and on about the same latitude as Waco.

Read More