jQuery Array Functions
I recently wrote some functions in the global jQuery namespace that add array utilities. The list is small right now (only 3) but I hope to grow them as I have time, and can optimize as well. They are inspired [...]
Some Interesting PHP Projects in the Works (not mine)…
The PHP world has been somewhat boring for me lately. That’s why I found it necessary to post about two PHP projects that recently caught my attention. I’m hoping to find some excuse to use them. The first is [...]
Implementing the Observer Pattern with SplObserver and SplSubject
As PHP applications grow into complex object-oriented systems, developers look to create centralized components to execute repetitive tasks. These include logging, emailing, redirects, and more. The Observer pattern is a commonly used design pattern to hook such components into an [...]
Our Wheels Are Rounder
As web developers we are familiar with the DRY (Don’t Repeat Yourself) principle of programming. Cut & paste is the bane of object-oriented programmers, and we will frequently hear the phrase “Don’t reinvent the wheel”. However, I typically find myself [...]
Flexible Data Display with PDO and HTML_Table_Matrix
Have you ever wanted to set up an application that displays tabular data, and wanted to use the same view for each query? While PHP is excellent for writing small-footprint queries, its ability to be embedded in HTML leaves the [...]
Writing a Cross-Domain Proxy in PHP
Today I encountered a problem that many developers will likely face while building a web application with Ajax, so I wanted to share my experience with it. The Problem: You create a web site with the goal of consuming content [...]
New Page – Useful Scripts
I have created a new page for featuring little snippets of code that I think others may find useful. Its name, quite uncreative, is “Useful Scripts”. http://codemill.studio-connect.com/useful-scripts/ The first function posted is for getting the difference between two dates. This [...]