Home

Clearing a Firefox Session Manually

Every once in a while I run in to a small issue with Firefox not loading correctly when i save my session.  It seems to happen when I have multiple tabs open that have lots of JavaScript running in them.  In my case I couldn't access the GUI like in the method shown here or here.  I had to manually delete the session file in my Firefox profile. Here's how to do it.

Before you move to Voice over IP have these bases covered

EdgeCore just moved office buildings and I was put in charge of setting up the network and phone systems. A couple of the guys recommended VoIP. It sounded like a good idea at the time. So I went along with the recommendation. I got a quote from 8x8.com and everything looked good. My next step was to call up the local utility company and get an internet connection that would support VoIP. The local utility company recommended the 8mb down and 1.5mb up for voice over IP for $80 a month.

timeout, a setTimeout wrapper for jQuery

Tags:

Timeout is a simple jQuery plugin that allows you to delay the execution of code for a certain number of milliseconds. It works like the jQuery delay plugin http://www.evanbot.com/article/jquery-delay-plugin/4 which i didn't know existed at the time I wrote this plugin.

plugin code

Caching Dynamic PHP Pages Easliy

Tags:

Over the past month or so I have been toying with the idea of developing a way to cache dynamic PHP pages with out a lot of overhead.  I stumbled across this blog entry: http://papermashup.com/caching-dynamic-php-pages-easily  the idea was so simple it was almost too easy.  So I took it upon my self to turn the original code and some of the user comments code into a class.  I have made some minor changes(cleaned up if statements, fixed a bug dealing with the cached version of the page not getting serve

which statement is faster, elseif() or switch() ?

Tags:

A couple of days ago I was out on a run and I starting wondering which statement was faster, a elseif() or a switch().  I am a big fan of switch statements.  I like how clean they look and its really easy to add a new condition to them.  I also assumed that they were much quicker than elseif statements.  So I set up this test to try to prove to myself that I was right.

PHP MySQL Row Lock function

Tags:

I just started on a project that I knew was going to need some sort of data lock that would prevent 2 users from editing the same data at the same time.  At first I thought that i would have to write a function that behaved like the C function flock().  I ran across this forum post http://www.dmcinsights.com/phorum/read.php?13,30233,30260 which I have to give credit to is the inspiration for the code below.

JW player with SWFObject

Recently i was working on a project that required a flash media player.  I was trying to integrate JW FLV Media Player using SWFObject.  After losing a few hours of my life trying to pass a variable in a query string to a php script that generated a XML play list, I stumbled upon/discovered this solution.

the JW FLV Media Player documentation currently reads like this

Code and Content Copyright 2010, Jesse Baird.