Archive for October, 2009

Detecting IE with PHP to enable display:table-cell CSS

October 30th, 2009

An ugly hack for an ugly web browser.

I love the display:table-cell.  It gives you the ability to vertically align stuff.  It’s great.  With display:table-cell, you don’t ever need table layouts again.

The problem?  I’m sure you already know or you wouldn’t be reading this.  Internet explorer, the bastard son of the web browsing world, doesn’t support it.  (IE8 does, but IE8 still sucks for other reason.)

My solution involves  (the normally bad idea of) changing output based on user agent strings.

» Read more: Detecting IE with PHP to enable display:table-cell CSS

The United States cares more about criminals than the me

October 29th, 2009

We spend $29,000 a year on the average prisoner but the maximum federal government grant a student can get for college is around $5,000.  Prisoners also get free healthcare.  I get nothing.

I’m going to rob a bank.  That way, either I’ll be able to afford both, or I’ll go to prison and get both.

Anyone know any good salespeople?

October 23rd, 2009

This position has been filled.  Thanks for looking!

» Read more: Anyone know any good salespeople?

Ephective Hosting website quoter thingy

October 20th, 2009

I work for Ephective and had to create a super easy way for people to price out websites.  These website packages are targeted towards small businesses with small budgets and because of this, there is no need to write up custom estimates for each individual project.

I came up with a multi-step Javascript form (degrades gracefully) that allows the customer to add and remove projects and services as they go and enter coupon codes that are XHR verified and automatically applied.  It’s modeled a bit after the way the big computer companies (HP, Dell, etc) allow you to add/remove components from computers.

This post will attempt to explain the logic behind that form.

» Read more: Ephective Hosting website quoter thingy

Facelift 2.0 beta 3 released

October 20th, 2009

Facelift 2.0 beta 3 has just been released and is available at http://facelift.mawhorter.net/download/

UPDATE: If you are experiencing problems with utf-8/anything-that-isn’t-iso-8859-1: Be sure your character set is being properly set.  That means the Content-type header and the content-type in the <head>.

» Read more: Facelift 2.0 beta 3 released

Procrastination is an amazing thing

October 20th, 2009

procrastination

Since I decided to go back to school (I’m still not sure why I did that…) I now have homework.  Homework is like real work, only twice as boring, ten times as pointless AND you don’t get paid for it but instead have to pay someone else.

Apparently… homework is how people used to learn before the internet was invented.  Who knew.

But all that is beside the point.  It is amazing what you can get done when you are doing things to avoid doing homework.  For instance, this blog has a new look.  Ever since I accidently deleted my old theme, I’ve been limping along with the ugliest website ever because I didn’t want to upload a backup.  But instead of finding that backup and uploading it, I found a new kick-ass theme called Green Park and restored my blog to better than its former glory.

Go me and go procrastination!

Now it’s time to write an essay about some subject I care nothing about watch the new episodes of Southpark that I’ve missed.