Recent Posts


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


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


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


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


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