Recent Posts

Uncategorized

PHP self Keyword

Tim Barsness • September 4, 2009

The self keyword is one I hadn’t learned. It’s equivalent to using $this in a static context, so: self::callStaticMethod();. I had classes where I was using Classname::getConn(); and having to change Classname every time I change…

Read More

Uncategorized

Using your own image for ShareThis Widget

Andy Stramer • August 28, 2009

The ShareThis widget is pretty handy for getting your site viral but it sometimes doesn’t always fit into your design. ShareThis has the option to use your own image to open the widget window. To save…

Read More

Uncategorized

PHPMailer Attachment Error

Andy Stramer • August 19, 2009

Recently I was getting an error on one of our sites. It was a simple form that has an upload field that uploads a file and emails it. I was getting this error however: Could Not…

Read More

Uncategorized

How Do I Recover a Lost Joomla Administrator Password

Tim Barsness • August 13, 2009

Lost passwords are the bane of my existence. Luckily, lots of places offer password recovery options. A Joomla 1.0.0 site for a long time client of mine wasn’t one of those sites. Given that the password…

Read More

Uncategorized

Writing data to a google spreadsheet

Andy Stramer • August 11, 2009

Today a client wanted all form data to be saved to a spreadsheet. I knew it’s possible to do it to excel but I came across an easier solution. Google spreadsheets, I realized, is very easy…

Read More

Linux

How To Duplicate a PGSQL database

Tim Barsness • August 10, 2009

Recently I needed to create a duplicate of PGSQL database.  Being a MySQL guy, I didn’t know off hand how to do it, but here is an easy way: pg_dump original_db > original_db.sql createdb new_db psql…

Read More

Uncategorized

Dreamhost $97 Promo Code DPC97

Tim Barsness • August 8, 2009

I just signed a client up for a dreamhost account for email. They have a large number of mailboxes and we are thinking this will be a good solution. I decided to check for promo codes…

Read More

Uncategorized

$_GET Getter Plugin for WordPress

Andy Stramer • August 4, 2009

Here is a new plugin for getting a query string variable into a wordpress post or page. Where ever you want your “get” variable to appear just type . So if your url is http://www.yoursite.com/apageorpost?thevariable=success, get…

Read More

Uncategorized

PHP Date Issue strtotime() vs. date()

Tim Barsness • July 31, 2009

I ran into the following date issue in PHP: adding one month to July 31, 2009 yields August 31, 2009; but, adding 2 months to July 31, 2009 yields October 1, 2009. Tell me how that…

Read More

PHP

Growl from PHP

Tim Barsness • July 29, 2009

I just found this nifty PHP class for sending growl notifications from sitecrafting.com.  Very nifty.  Here’s some sample code to get it going: // Setup $growl = new Growl(); $growl->setAddress(’127.0.0.1’); $growl->addNotification("Test"); $growl->register();   // Send Notification…

Read More

SQL

SQL Server Error 3154

Tim Barsness • July 16, 2009

I ran accross the SQL Server error 3154. In SQL Server 2008, it says “Restore Failed for Server ‘ServerName\InstanceName’” Additional Information: “System.Data.SQLClient.SqlError: The backup set holds a backup of a database other than the existing ‘dbname’…

Read More

Uncategorized

Soocial Highrise Sync

Tim Barsness • July 14, 2009

There were two main reasons I went with Highrise for CRM.  First, because of its simplicity, and second because of its ability to sync with Soocial.  This functionality is advertised on their website yet when you…

Read More

Uncategorized

Time Machine Backup to a Network Drive

Tim Barsness • July 5, 2009

I just set up Time Machine to backup to a network drive.  It was surprisingly easy to do.  As simple as creating a disk image in disk utility and telling time machine where to find it. …

Read More

Wordpress

Getting $_POST variables in a WordPress Plugin on save

Andy Stramer • June 24, 2009

I’ve been making more and more wordpress plugins lately and it seems to me that a vital part is getting certain variables back once a post is saved. I had a bit of trouble on this…

Read More

Hardware

The Difference Between SATA and SAS

Tim Barsness • June 4, 2009

I was shopping for hard drives and realized that I never understood the difference between SATA and SAS. I knew enough to know that Serial Attached SCSI (SAS) is an extension of Serial ATA (SATA) intended…

Read More