Recent Posts

Uncategorized

Creating a new person in Highrise API

Tim Barsness • April 7, 2010

Highrise API is run off of REST and is pretty powerful. Here would be an example of how to create a new person to account with the API. First you need your script to turn the…

Read More

Uncategorized

Userfly Analytics for WordPress

Tim Barsness •

If you haven’t heard about Userfly you should go check it out. It basically records what your visitors are doing on your site with javascript then it allows you to watch a replication of that session….

Read More

Uncategorized

Custom Single Page

Tim Barsness • April 6, 2010

In a recent comment, we were asked if there is a way to do the custom single page based on the custom author page. Depending on your WordPress version, this may or may not be implemented…

Read More

Uncategorized

Howto Find Files Larger Than 10MB

Tim Barsness •

Recently, I was trying to track down large files on a Linux server.  Here’s an easy way to find files larger than a given size in the current directory. find -size +10M It doesn’t get much…

Read More

Uncategorized

What is Passive FTP?

Tim Barsness • March 30, 2010

After years of using passive FTP I figured I should find out what it actually does compared to Active FTP. The difference is in Active, your client tells the server what port you will be doing…

Read More

Uncategorized

Deducting Business Startup Costs

Tim Barsness • March 29, 2010

For the most part, business start-up costs and organizational costs must be deducted over a 180-month (15 year) period. For example, if your start-up costs were $18,000, and you started your business on August 1, 2009,…

Read More

Uncategorized

Getting your Google Base Items to be listed in main comparisons

Tim Barsness • March 24, 2010

I have recently been listing items for sale onto Google Base through XML Feed created by a custom PHP script. There was an issue that I was having trouble fixing however. All my items were at…

Read More

Uncategorized

Curly Braces in Mysql Queries

Tim Barsness • March 23, 2010

I came across a few queries in our newest project and noticed a bunch of them injected their variable data inside curly braces. I come to find out you can use this in any string in…

Read More

Uncategorized

FPDF

Tim Barsness • March 15, 2010

I’m considering using FPDF as a solution to creating PDF’s on Debian since FDFlib isn’t installed. It isn’t as efficient as the native PDFlib, but apparently is sufficient for most things. I’m impressed so far. If…

Read More

Uncategorized

How To: Read a CSV in PHP

Tim Barsness • February 23, 2010

Reading a CSV in PHP is much easier than I anticipated with the advent of the fgetcsv() function for PHP 4. The function basically reads a file line by line and performs and explode on the…

Read More

Uncategorized

How to Send an Email using PHPmailer and Gmail for SMTP

Tim Barsness • January 14, 2010

I needed to offer a client the ability to send Email using PHPmailer and Gmail. The below is what I came up with, which worked flawlessly: require("PHPMailer_v5.1/class.phpmailer.php");   $mail = new PHPMailer();   $body = "Message…

Read More

Uncategorized

WordPress in_tree() function

Tim Barsness • January 11, 2010

Just created a wordpress funciton in_tree($a, $b) which checks to see if page ID $a is in the tree of page ID $b. That is, it checks to see if $a is a child of $b…

Read More

Uncategorized

Using sys_get_temp_dir() in PHP < 5.2.1

Tim Barsness • December 30, 2009

I wanted to use the PHPExcel package on my Debian system running 5.2.0, however PHPExcel 1.7.1 requires the sys_get_temp_dir() function which doesn’t exist prior to PHP 5.2.1.  Of course aside from updating PHP, we would need…

Read More

Uncategorized

How to Hide a WordPress Sidebar From Pages

Tim Barsness • December 22, 2009

In combination with my previous post on adding multiple sidebars to a WordPress theme, I had the need to display one of them only when looking at the blog part of wordpress. This is pretty straightforward,…

Read More

Uncategorized

How to Add a Sidebar to a WordPress Theme

Tim Barsness • December 21, 2009

I recently needed a little more control over the sidebar on a theme and had never added a sidebar to a theme before. I wanted certain widgets to show up only on posts and the rest…

Read More