Recent Posts

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

Wordpress

List Subpages Plugin for WordPress

Andy Stramer • June 3, 2009

Today I had to figure out a way to list subpages of a certain page in its wordpress content. After mulling around my options I decided I might as well make a plugin. This plugin is…

Read More

Uncategorized

Gmail Labs Escape Hatch

Tim Barsness •

If (when) a Labs feature breaks, and you’re having trouble loading your inbox, there’s an escape hatch. Use http://mail.google.com/mail/?labs=0. The same for google apps Use http://mail.google.com/a/[domain name]/?labs=0. Replace [domain name] with your google apps domain.

Read More

SQL

Escaping Single Quotes in MS SQL Server (T-SQL)

Tim Barsness • June 2, 2009

Escaping single quotes (‘) in Transact-SQL is done by replacing the single quote with two single quotes. So: SELECT ‘I went to Kinko”s’ Returns “I went to Kinko’s” The only case where two consecutive single quotes…

Read More

Facebook

Getting Facebook User Info With PHP and Facebook Connect

Andy Stramer • May 21, 2009

Recently for a site I’ve been working on we wanted to have the ability to track a great deal of user activity without them having to go through a “Register User” process. Facebook Connect was a…

Read More

PHP

Generate Random Strings in PHP

Tim Barsness • May 11, 2009

I needed to generate some random strings today for password resets.  Here’s what I used: function genRandomString($length = 10) { $characters = ‘0123456789abcdefghijklmnopqrstuvwxyz’; $string = ”;   for ($p = 0; $p < $length; $p++) {…

Read More

Linux

Upgrading WordPress MU from 2.6 to 2.7

Tim Barsness • May 1, 2009

I know I’m late to the game but I tried upgrading wordpress from version 2.6 to 2.7 today.  I ran into the seemingly all-too-common redirect loop which seems to have to do with the wp-config.php keys…

Read More

Wordpress

Listing WordPress Categories Inside the Loop

Tim Barsness • March 10, 2009

The Request— Be able to list all of the blogs categories inside the loop on a page or post. The Solution— After some playing around in the template I decided a plugin is the best route….

Read More