Counting values in an array

While interviewing for a job a couple weeks ago, I was asked to write code in my language of choice (PHP for me, of course) code that would count the number of values in an array, and then display the counts in a list. The first way I did it was a bit over complicated, […]

Read More →
Share

Getting SSL to work with cURL

If you’ve ever had issues with working with SSL and cURL in PHP, perhaps this will help you out. It certainly helped me out, as I had no clue it wasn’t going to work as is. The more you know, I suppose.

Read More →
Share

User Agent Switcher for FireFox

When adding mobile detection scripts to a website I have found that its much quicker to add all of the different user agent headers we test against to a nice little FireFox plugin called Agent Switcher. I’ve added this to my FireFox toolbar and can quickly test redirection scripts against iPhone, iPad, Andoid and anything […]

Read More →
Share

Microsoft posts first quarterly loss…ever.

So, I guess July 19, 2012 was a historic, if ignominious, day for Microsoft. It’s kind of amazing that they went 26 years without a loss in even one quarter. I guess it’s not surprising, considering the domination of Windows and Office. It looks like the rest of their business is still pretty healthy, it […]

Read More →
Share

Remembering my One ZendCon Trip

In my decade plus as a programmer, I’ve only ever been to one conference, ZendCon 2009. It wasn’t because I didn’t have a desire to go to any, it was a matter of availability and finances. Every company I’ve had the pleasure to work with has found it unnecessary to send its employees to conferences, […]

Read More →
Share

Building a Hackintosh

Building a Hackintosh is something that is remarkably rewarding and fun (if you have a twisted sense of fun). It is also very educational. This marks my third Hackintosh, but my goal this time was to use most of my existing hardware and end up with a machine I might actually want to use on […]

Read More →
Share

MySQL Order By Field Values

I found myself needing to update an old MySQL query to handle sorting by a status field. Unfortunately, the status field (integer) was not in the order I needed to sort by. My requirements were as follows: 1. Everything needs to sort first by status (new, then price reduced, then listings with no status, then […]

Read More →
Share

PHP and MySQL on the Web Platform Installer

While I generally develop PHP solutions on a Mac, I recently found myself needing to run PHP on a Windows machine for a one-time quick project. Sure, I could run WAMP, which is a great option for development, or go with the Zend solution, but I just needed it for a one-time project on my […]

Read More →
Share

iPhoto on iOS, iCloud, and the sync nightmare

I have spent a lot of time trying to come up with a way to manage multiple photos among multiple devices. While trying to stay in the Apple eco-system, because we own a lot of Apple products, I have discovered there is currently a lot to be desired with iCloud and PhotoStream. I take photos […]

Read More →
Share

PHP 5.4 is out

A quick check at php.net revealed that PHP 5.4 is out now. Nothing all that earthshattering. I’m pretty certain I’ve wanted something like traits a few times in the past, and the built in webserver could be useful for development. I’m not sure how much I’ll use that simplified array format. It would make simple […]

Read More →
Share