Blog

Fast Patches with Git

In my work, I deal with a lot of very similar codebases - and often if I fix something in one project I'll want to fix it in many others. For a long time this has meant popping open Beyond Compare, which works, but isn't the simplest solution. I use git on my projects - but they're not similar enough just to be branches. Recently I came up with a way to patch one or more commits from a project to another easily. Here is a simple shell script I wrote to handle the task. Simply put, you can use it either by fast-patch.sh /z/my_project to patch a project with the latest commit from the projec…
Read More / Comment

A Balanced Look at GZIP and the User Experience

With Google recently starting to involve load time in search rankings, there has been a lot of talk about GZIP.  Google Webmaster Tools exclaims "Compressing the following resources with gzip could reduce their transfer size by XKB:". Many people listen to this, and go out looking for a quick fix without realizing that poor GZIP implementation has a strongly negative effect on the overall user experience. There are two main ways in PHP to go about implementing GZIP. The first is ob_gzhandler.  Basically all that is really involved in setting this up is adding ob_start("ob_gzhandl…
Read More / Comment

There Isn't an App for… - Part 1: PhpED

“There Isn't an App For That” - Windows Apps I haven't been able to replace in Mac OS X For a very long time I was a Windows guy, I was once a DOS guy. I switched nearly exclusively to Mac for my home use about 4 years ago. I’ve been very happy with it. Its stable, well engineered, and - my favorite part of all - consistent. Yet, in this time there remain a few applications I cannot seem to replace. Nusphere PhpED I am a PHP Developer by trade, and PhpED for my money is by far the best development environment for the serious PHP developer. When I do develop on the Mac platfo…
Read More / Comment

Donat Studios Officially Launches

After much ado, Donat Studios is finally live! There are a few things left to complete. Eventually setting up the documentation and public git repository for CorpusPHP will certainly take up a fair amount of time. I'm still not quite sure what to put in my portfolio, I was thinking of for the time being just throwing a bunch of my sketches in there. My reasoning and goals behind this site are slightly different than my other sites. More than anything I wanted a place where I could rant about everything web related. I have strong opinions on many topics, and where Oasisband.net is good for mo…
Read More / Comment

The Sad Truth About and Reasoning Behind JSONP

I don’t want anyone take this the wrong way.  I am having a torrid affair with JSON. It is so much simpler to parse than XML, and is an all around exceptional way to represent data. I have one caveat though, and that is “JSON with Padding” or “JSONP” as it goes by. While building this site I was trying to bring in images from my Flickr account, as you may have noticed. Building the module in PHP, I basically ran file_get_contents on the feeds url and passed that directly into json_decode. On print_r’ing the results, it was null. It had failed.  As…
Read More / Comment