Recent Posts

MySQL

Looping through Mysql Columns

Andy Stramer • October 5, 2009

Recently I was looking into a way to echo out each column name of a mysql database. Of course I needed to do it dynamically as the database could change and the application is in PHP….

Read More

Uncategorized

List Contacts from Highrise

Tim Barsness •

Pull your contacts from highrise. Use this and the last post to do a one or two-way sync. More to come on this. $highrise_url = ‘http://yoururl.highrisehq.com’; // your highrise url, e.g. http://yourcompany.highrisehq.com $api_token = ”; //…

Read More

Uncategorized

Enumerate Gmail Contacts

Tim Barsness • October 2, 2009

Here’s some sample code I’ve piled together to list gmail contacts: require_once ‘Zend/Loader.php’; Zend_Loader::loadClass(’Zend_Gdata_ClientLogin’); Zend_Loader::loadClass(’Zend_Gdata_Gapps’); Zend_Loader::loadClass(’Zend_Gdata_Query’);   $user = ‘user@gmail.com’; $pass = ‘password’;   // Using Client Login $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, ‘cp’); $gdata = new…

Read More

Uncategorized

Authenticated Content over a Content Delivery Network

Tim Barsness • October 1, 2009

I’m interested in finding a way to leverage the features of a CDN such as Amazon’s cloudfront for delivering content that requires authentication.  I haven’t looked into it deeply but will need this ability in the…

Read More

Uncategorized

What is RAID 6

Tim Barsness • September 18, 2009

Raid 6 is an improvement on RAID 5 that allows for failure of any two drives with data remaining in tact as opposed to single drive failure in RAID 5. It does this by using two…

Read More

Uncategorized

Highrise API Wrapper

Tim Barsness • September 16, 2009

Since Soocial no longer syncs with highrise, I’ve been looking for another solution to sync with my google apps.  I’ve decided I’ll be writing my own, which I will release later. In the mean time, I’ve…

Read More

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