Recent Posts

Uncategorized

Managed Software Betas

Tim Barsness • November 12, 2009

Are you spending valuable development time working on managing your online beta?  Prefinery has made this process a lot easier with managed solutions including adding a website splash page, taking sign ups and rolling out users…

Read More

Uncategorized

Center an Unordered List

Tim Barsness • November 11, 2009

I’ve always thought centering LI elements was impossible. Here’s an basic example of how to do it: #footer-menu { text-align:center; list-style-type:none; margin: 0; padding: 0; } #footer-menu li { display:inline; padding: 0 10px; } <ul> <li><a…

Read More

Drupal

Drupal vs. WordPress

Andy Stramer • November 10, 2009

I’ve been working on a Drupal site this past week or two. I had done absolutely zero with Drupal before that and had to essentially power learn the CMS just for this project. As this was…

Read More

Uncategorized

PHP: Recursively chmod(), chown() and chgrp()

Tim Barsness • November 8, 2009

I recently needed a way to recursively modify file permissions.  I was able to accomplish this with a few basic recursive functions, chmodr(), chownr() and chgrpr(): chmodr() function chmodr($path, $filemode) { if (!is_dir($path)) return chmod($path, $filemode);…

Read More

Uncategorized

Amazon Releases Relational Database Service (Amazon RDS)

Tim Barsness • October 27, 2009

Amazon has released a new cloud service, the relational database service.  The service allows a sysadmin to launch an EC2 instance running MySQL without the trouble of patch management and backup.  The instance is fully MySQL…

Read More

Uncategorized

Replacing the Hard Disk on a Mac Mini

Tim Barsness • October 18, 2009

I was thinking about doing this until I saw how involved it was.  My Mac Mini has 160 GB of storage, which is not even close to enough.  I am confident I would succeed in the…

Read More

Uncategorized

I Love MySecureShell

Tim Barsness • October 17, 2009

MySecureShell is an application which modifies SFTP to allow chrooted connections and remove shell access.  I couldn’t be more impressed with how it works or how easy it is to set up. However… Lately, the debian…

Read More

Uncategorized

How To: Recursively Search Text Files on Linux

Tim Barsness • October 15, 2009

I have often used a handy script to recursively search text files on a linux machine (recursively grep). The script is written by Joe Grossberg and is currently on version 2.0.  The second version adds handy…

Read More

Uncategorized

Slicehost API Made Easy

Tim Barsness • October 14, 2009

I’ve been playing with the Slicehost API and ran accross PHP interface for the Slicehost API and am now sold on using PHP for the slicehost API.  Track multiple slices, multiple accounts if you like.  You…

Read More

Uncategorized

Upload a directory to Rackspace Cloudfiles

Tim Barsness • October 8, 2009

I put a little piece of sample code together that uploads a directory to Cloudfiles. I plan on running this on my web servers to upload the backup script to a safe place. This will replace…

Read More

Uncategorized

How to: Connect to Rackspace Cloudfiles from Slicehost

Tim Barsness • October 6, 2009

I’m trying to migrate to a Cloudfiles backup solution and since my slices are in the DFW1, I can get free bandwidth to and from Cloudfiles. So, I went to try and do some initial script…

Read More

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