• The Observer Pattern


    Sunday, September 25, 2011

    The observer pattern is a simple, powerful design pattern that can be used in a variety of ways. This article looks at a simple implementation of it, and a few examples.

  • Translating text that contains HTML


    Thursday, September 22, 2011

    A recursive PHP function for iterating through the DOM elements of a chunk of HTML, and applying a user-defined translate function to the text elements.

  • Creating Self-Contained Field Labels (With or Without jQuery)


    Tuesday, September 20, 2011

    Save real estate in your website layout by moving your form field labels into the form field itself with this javascript solution.

  • Accepting Payments Online - Part 1: Getting Started

    Web Development

    Sunday, September 18, 2011

    Part 1 of a 8-part eCommerce series explaining how to accept payments online. This article covers security measures, server configurations, and things to keep in mind.

  • Object Collections in PHP


    Saturday, September 17, 2011

    A PHP Collection class for storing an array of objects, iterating over them, sorting, and retrieving/deleting by object properties. Improves upon PHP's built in array support and ArrayIterator class.

  • Minifying CSS and Javascript on the Fly


    Friday, September 16, 2011

    Speed up your website by combining all your CSS and Javascript includes into single, minimized files while retaining the source code for development purposes.

  • wtf()


    Thursday, September 15, 2011

    A PHP function for debugging large, deeply nested objects. Kinda like wrapping the output of print_r() in <pre> tags, but sooooo much kewler.