Welcome to MainelyDesign.com

Photos of Rockland, Maine. Summer 2009.

A blog mostly about web design

This is the personal blog of Kevin Wentworth.  Topics covered here are web programming, design and internet marketing.

Rackspace Cloudfiles PHP API Cookbook

Posted on 03/19/2014 at 10:33 pmViewed 415 times

I'm working on the latest API of the Rackspace Cloudfiles API (php-opencloud).  I've had a bear of a time figuring everything out.  I think I was making it too complicated (plus I was starting on an older version of the PHP SDK... but that's another story).  Now that I'm figuring out the API, the Rackspace PHP developers have done a really good...

Getting Composer to Install on Windows 8 (Wamp / PHP)

Posted on 03/17/2014 at 08:43 pmViewed 175 times

Get the Windows Installer for Composer If you are on Windows and want to install Composer, no worries, there is a quick (and easy) Windows installer for Composer . Add PHP Folder to System Path This is supposedly done by the Composer installer, but I couldn't get the darn thing running the first few tries, so I did this manually.  I...

MySQL - Determine Duplicate Rows Based on Multiple Fields/Columns

Posted on 03/17/2014 at 11:02 amViewed 1,394 times

I've been looking for some magical mysql query code to allow me to detect duplicate records, based on multiple columns being the same MySQL Query to Detect Duplicate Rows (based on multiple fields) SELECT * FROM screwed_up_table GROUP BY field1, field2 HAVING count(*) > 1 That's it. Piece of cake. I usually use this code to get the...

CSS To Undo Font Family

Posted on 03/11/2014 at 10:55 pmViewed 399 times

This is a quick note about how to reset the font being applied to a particular CSS selector.  I always forget about this, so I wanted to post my answer so I'll remember it. Reset CSS Font-Family Declaration The code is very easy.  The only prerequisite is that you have defined the font-family you actually want to use at a higher level (or a...

Facebook Conversion Tracking On a Click

Posted on 02/10/2014 at 12:36 pmViewed 484 times

Be Cautious Using Conversion Tracking Scripts Supplied by Vendors We recently experienced a small challenge with the Facebook Conversion Tracking script.  We were using the standard boiler plate script as provided to developers by facebook.  What's touted as a simple method to integrate conversion tracking may not work if you actually want to...

Read More Posts.

Meet Site Avenger - Hosted Content Management System

Powered By: Site Avenger | Site Production: Saco Design