Recent Posts

Find more about me on:

Here are my most recent posts

Uncategorized

IIS 8.5 Send Classic ASP Errors to Browser

Tim Barsness • January 16, 2014

I just started running a classic ASP site on IIS 8.5 and couldn’t get it working but wanted to know the error messages.   I was able to get error messages to be sent to the…

Read More

Uncategorized

How do I sync Filezilla site manager settings with Dropbox on Windows 7

Tim Barsness • June 14, 2013

I’ve been syncing all of my applications through dropbox lately and wanted to sync my Filezilla site manager sites. I’ve accomplished this through a three step process: Locate your sitemanager.xml file.  If you’ve done a default…

Read More

jQuery / Javascript

How do I update node.js on debian using dpkg

Tim Barsness • June 10, 2013

I want to make sure I’m keeping node.js up to date on my debian system since it can still be somewhat buggy. Here’s how I’ll do it: Check the current version node –version Remove the node…

Read More

Uncategorized

How do I install node.js on debian using dpkg

Tim Barsness • June 9, 2013

Installing node on Debian Lenny is pretty straight forward. You’ll install the software required to build it, download the source, ./configure and then checkinstall. sudo apt-get install python g++ make checkinstall mkdir ~/src && cd $_…

Read More

Uncategorized

How do I find index fragmentation in a SQL Server database?

Tim Barsness • April 21, 2013

I’m running into index issues on SQL Server and wanted to figure out index fragmentation to see if we could improve it. Here’s a way to find index fragmentation: SELECT OBJECT_NAME(dt.OBJECT_ID) Tablename,si.name IndexName,dt.avg_fragmentation_in_percent AS ExternalFragmentation,dt.avg_page_space_used_in_percent AS…

Read More

Uncategorized

How do I select month with leading zeroes in T-SQL

Tim Barsness • January 9, 2013

SQL Server doesn’t provide leading zeroes in a month selection, so you’ll have to add them yourself. The easiest way to do this is probably to create a two- or three-digit string and taking a RIGHT()…

Read More

Uncategorized

How do I know if my WordPress site has been hacked?

Tim Barsness • December 26, 2012

We’ve all heard that WordPress is ‘vulnerable’ to attack (that is–it’s vulnerable if you don’t take care of it). There are times when it might not be immediately obvious if your WordPress site has been hacked,…

Read More

Uncategorized

How do I fix asp.net error Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list

Tim Barsness • November 11, 2012

I ran into this error on a new project:  Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list. A web search showed this was due to asp.net not being fully installed on my 2008…

Read More

Uncategorized

How do I make WordPress menu pages have target=_blank

Tim Barsness • November 9, 2012

WordPress menus are pretty bland out of the box.  At first glance, links can go to: Categories Pages Custom links Also, at first glance, a menu link has three elements: URL Navigation label (The text displayed…

Read More

Wordpress

7 Reasons to Love Formidable Pro

Tim Barsness • July 30, 2012

Our team has been using Formidable Pro since we bought a license a month ago. Formidable has taken the load off us as far as user input goes on WordPress websites. We’re using it for anything…

Read More

Uncategorized

How do I use PHP preg_replace_callback?

Tim Barsness • April 4, 2012

I’m working on a project that sends transactional emails from templates using variables in the %%varname%% format, but defines variables in another table as a lookup value, or query. So, I needed to match strings of…

Read More

Uncategorized

How do I grant a user execute permissions to stored procedures in SQL Server?

Tim Barsness • March 2, 2012

One thing that comes up fairly frequently with SQL Server permissions is allowing execute permissions to all user created programmability on a database. This frequently needs to be done when migrating servers, allowing the user connecting…

Read More

Uncategorized

How do I use traits in PHP 5.4

Tim Barsness • January 31, 2012

The biggest change in PHP 5.4 is the addition of traits to the object-oriented programmability. Traits prevent code duplication by allowing multiple classes to include a collection of methods implemented as a trait. This means multiple…

Read More

Uncategorized

Project Euler Problem 17

Tim Barsness • December 27, 2011

I’ve been having some fun doing the first few problems of Project Euler and figured I’d share my solution to problem 17 here. The Problem If the numbers 1 to 5 are written out in words:…

Read More

Uncategorized

How do I perform integer division in PHP

Tim Barsness •

PHP’s division operator returns a floating point result from the division operator unless both operands are integers and they are evenly divisible (the result is an integer). I was recently working on Project Euler Problem 13…

Read More