Phoenix Children’s Hospital migrates to Drupal

Category: Drupal, , Published on April 29, 2013 by Kris Hadlock

Phoenix Children’s Hospital, one of the largest children’s hospital in the country chooses to move their enormous 10,000+ page website to Drupal. Once deciding on their new platform, Phoenix Children’s Hospital naturally chose their long time web development partner, Studio Sedition. We are in the midst of a complete redesign, development and deployment of their new enterprise-level website.

Phoenix Children’s Hospital provides pediatric specialty and sub-specialty inpatient, outpatient, trauma, emergency and urgent care to children and families in Arizona and throughout the Southwest. We are pleased to be their partner on such an extraordinary project.


Sending mail to an SMTP server with authentication using JavaMail

Category: Labs, , Published on July 29, 2011 by hansengel

Many SMTP servers use an authentication system as an extra layer of security in their mail transport. If you need to send email to such a server with JavaMail, the library provides a convenient abstraction of the process. (more…)


Getting started with Node.js: writing a simple “Hello World” application

Category: Labs, , Published on March 19, 2011 by jgauthier

Node.js is an exciting, multi-platform framework built around the JavaScript programming language which has been gaining support by developers over the past few months. In this article, I’ll give a summary of why this platform is so attractive to a growing number of programmers, and guide you through a brief example application.



How to access query string arguments with AS3

Category: ActionScript,Blog, , Published on March 6, 2010 by khadlock

Found a great blog post with an ActionScript 2 class that parses the current URL and creates accessible properties out of query string arguments:

I needed something to parse any URL, so I made a few adjustments and converted the class to AS3. Here’s the updated code:

Here’s an example of how to use the updated version:

It’s as simple as passing a URL with a query string and then just use the parameters object to access the specific query argument, in this case we’re accessing the page argument, which will give us a value of “articles”.


How to convert audio to mp3 with iTunes

Category: Audio,Blog, Tags: , , Published on February 11, 2010 by khadlock

I know mp3 conversion has been possible in iTunes forever, but I never needed it until today and I figured others may find it useful. If you need to convert an audio file to an mp3 you can use iTunes by following these steps:

  1. Open “Preferences“, click “Import Settings…” and choose “MP3 encoder” as the Import Format.
  2. Now you can right-click on any of the songs in your library and choose “Create MP3 Version“.




OVO Creative Group launched their new web site

Category: Blog,JavaScript,PHP, Tags: , , , , , Published on February 3, 2010 by khadlock

OVO is a branding consultancy specializing in naming, visual identity and integrated marketing for organizations seeking to launch, grow or reinvent themselves. We developed OVO’s web site based on their original designs. Using PHP and MySQL we created a content management system (CMS) for OVO to manage their client projects and organize their project slideshows. We also developed a custom JavaScript slideshow widget that randomizes and animates OVO’s projects based on a custom JSON feed. Read more…


The One Less Flight website has been released

Category: Blog,Graphic Design,PHP, Tags: , , , , , Published on February 2, 2010 by khadlock

Miskeeto, a world-class user experience strategy and evaluation consultancy led by Robert Hoekman, Jr. recently released the web site One Less Flight (OLF). We designed and developed OLF based on Robert’s concept of getting companies and individuals to commit to reducing carbon emissions by taking one less flight each year. The concept was to offer badges/banners for people to put on their web site to show their commitment to the cause. By adding the badge to a web site the domain of that web site would appear on the OLF web site to feature the commitment.

I looked into a few ways of making the domain addition work; trackbacks, pingbacks and refbacks. I ended up choosing refbacks because pingbacks and trackbacks are limited to working only with other trackback-enabled or pingback-enabled web sites, which essentially limited the site to working with other blogs. On the other hand, the refback method allows anyone to use a badge on their site and automatically appear on OLF regardless of how their site is set up.

The custom refback method works through the actual image request. The image request goes through php, which does the following:

  1. It verifies that the domain has not already been added to a list of linked domains.
  2. It adds it to the list if it does not already exist.
  3. It then returns the image based on the banner requested.
  4. When someone comes to OLF the list is read and the domains are displayed.

Here’s the result: One Less Flight

Special thanks to Stephanie Sullivan for her beautiful CSS coding of my original design!



Download any video from YouTube

Category: Blog,Video, Tags: , , , Published on January 22, 2010 by khadlock

Found this site that lets you download any video from YouTube by simply entering the URL to the video you want to download.



How to delay a header redirect with PHP

Category: Blog,Uncategorized, , Published on January 20, 2010 by khadlock

Sometimes you need to show some page content before redirecting a page, like a successful login message, etc. Here’s an easy way to delay a header redirect with PHP without using a Meta tag to refresh the page.


403 forbidden with WordPress

Category: Blog,WordPress, , Published on January 6, 2010 by khadlock

After hours of debugging a 403 forbidden error with a WordPress blog we finally found the issue. Some servers require the following line of code before the default mod_rewrite code provided by WordPress:

So your updated mod_rewrite will look similar to this:


Change directory index using .htaccess

Category: Blog,Uncategorized, Tags: , , Published on by khadlock

Here’s a quick way to change your directory index using htaccess:


NuSOAP – WSDL caching

Category: Blog,PHP, Tags: , , , Published on December 28, 2009 by khadlock

Here’s a great way to speed up your NuSOAP connections with WSDL caching:


Avery Templates for Adobe Illustrator

Category: Blog,Graphic Design, Tags: , , , , Published on by khadlock


Convert decimal places without rounding

Category: Blog,PHP, , Published on November 30, 2009 by khadlock

Here’s a quick way to set the number of decimal places to 2 in PHP without rounding a number.


Remove all select options with JavaScript

Category: Blog,JavaScript, Tags: , , Published on November 19, 2009 by khadlock

Here’s a quick function to remove all select options using JavaScript.


MySQL REGEXP: where first letter is numeric

Category: Blog,MySQL, Tags: , , , Published on November 17, 2009 by khadlock

Get MySQL results where the first letter is numeric:

Or get MySQL results where the first letter is alpha:


Using the IN statement to retrieve multiple results from a subquery

Category: Blog,MySQL, Tags: , , Published on November 15, 2009 by khadlock

Use the IN statement to retrieve multiple results from a subquery.


Get MySQL results by first letter

Category: Blog,MySQL, Tags: , , Published on November 14, 2009 by khadlock

The following SQL selects all the rows where columnname starts with the letter A, switch the letter or make it a variable and get the results you need.


Convert GET and POST to objects

Category: Blog,PHP, Tags: , , , Published on November 13, 2009 by khadlock

Here’s a quick way to convert GET and POST arrays to objects with PHP:

In this case the “sample” property would be an array key.


Submit an Inquiry for your project

Category: Blog,Studio Sedition, , Published on by khadlock

You can now submit an inquiry for your web project at


Setting the label “for” attribute with JavaScript

Category: Blog,HTML,JavaScript, Tags: , , , Published on by khadlock

Sometimes JavaScript offers unique names for element attributes, for example, CSS properties with words that are normally separated with dashes are camel case in JavaScript.

The label element’s “for” attribute is no exception, in fact it’s probably the most unique one I’ve stumbled across, which is why I thought it was important to share. When you set the label “for” attribute with JavaScript you have to set it as “htmlFor” and of course give it the same value as the input element’s id that you are tying it to.


The imagetoolbar meta tag

Category: Blog,HTML, Tags: , , , Published on November 6, 2009 by khadlock

Here’s an oldie, but a goodie. Remove the pop-up that appears over images in Internet Explorer 6:


Twitter’s API whitelist

Category: Blog,BlogToTweet,Twitter, Tags: , , , Published on November 5, 2009 by khadlock

One of our product’s has been approved for the Twitter API whitelist, meaning any rate limits no longer apply to authenticated requests made through BlogToTweet.

This was never an issue, but our user base is quickly growing, so we were proactive in achieving whitelist status to prevent any problems from creeping up for our users.

If you use the Twitter API and are wondering how to get approved for the Twitter API whitelist, visit

To learn more about BlogToTweet you can visit our product page at


decompress gz with php

Category: Blog,PHP, Tags: , , , , , Published on November 3, 2009 by khadlock

I had a lot of trouble getting zlib to work today with PHP on our Media Temple DV server, but after a lot of testing discovered an easy solution to decompressing/unzipping .gz files.

Once decompressed I can read the file contents using fopen, file_get_contents, etc.

More information on the gzip commands can be found at


Remove empty array values in PHP

Category: Blog,PHP, Tags: , , Published on November 2, 2009 by khadlock

Here’s a super easy way to remove empty values from an array in PHP:

In a recent project we were reading in a text file and creating an array based on each new line, so we used the same method to remove any new lines that were empty.


Custom CSS Signatures

Category: Blog,CSS, Tags: , , , , Published on by khadlock

I feel that any form of branding is important, especially when it comes to sending emails. Think about it, how many emails do you send a day? This post has been around for a while, but I often refer to it when designing a new email signature and thought it was worth sharing: It’s so easy to follow if you use Apple Mail.

Here’s the new one I’m using based on this article:


MDM Zinc v2.5 Intrinsic Classes

Category: ActionScript, Tags: , , , Published on October 26, 2009 by khadlock

I always misplace the URL to the Intrinsic classes for MDM Zinc, which are required by Flash when publishing AS2 classes that use the MDM library. So, I’m posting them here for myself and anyone else that is in need of them:


My first WordPress blog

Category: Blog,WordPress, Tags: , , Published on by khadlock

Believe it or not, this is my first WordPress blog, I’ve created themes and plugins, but never used it myself. I’ll post my findings along with my usual code and design examples.