Alex Poole

Pragmatic PHP, MySQL, Marketing & Technology

Alex Poole header image 5

Entries from June 26th, 2008

Resize image to any dimensions keeping aspect ratio, with PHP and GD

June 26th, 2008 3 Comments

This is a handy little tool built on top of my image resizing script. Often you may wish to resize an image keeping the aspect ratio correct (so it doesn’t end up looking sh*t) but you have specific output requirements which don’t conform to that aspect ratio. This little class allows you to resize the [...]

Tags:

Comparing Undefined Variables Slows PHP to a Crawl

June 13th, 2008 2 Comments

Well, thanks to Daniel Bartlett at Rackspace for working this one out. (Dan, if you read this, I owe you a beer - stick a comment here with your personal email address and I’ll send you one )
We had a page that was regularly taking 30 seconds to load. We narrowed the problem down to some comparisons [...]

Tags:

LinkedIn Pet Peeve

June 12th, 2008 No Comments

…People who block their contacts from seeing their other contacts.
What is the point of sharing one’s contact list with people if they don’t reciprocate? I know some CxO’s who’ve done this in the past, presumably in a misguided moment of self-importance. Equally I know some far higher-up-the-tree better connected CxO’s who’ve never done [...]

Tags:

Google PageRank is Worthless

June 12th, 2008 1 Comment

Good Lord have I really not posted for over a month? Naughty.
Well its official. This blog currently has a Google PageRank of 5. Previously it was zero. Guess what… I’m no richer, and my webstats remain humble - and unchanged. PageRank alone is worthless. Paired with quality content targetted to relevant keywords it adds weight [...]

Tags: