jebaird's blog

Get the fulll URL of the current page

Here is a simple function that will get the url of the current page.

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

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

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

z-index image map hack

While working on one of my newer projects I ran into an issue where I needed to overlay a very large image over multiple elements on my page, including the site navigation. This left the contact link on the far right un-clickible.

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

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

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

php forcing SSL Connection

I was updating some code on dirtondirt.com.  We had changed the way sessions/logins where used on the site. Everything worked great in Firefox.  But we were getting complaints that it was randomly dropping logged in users using IE .  I was was not able to recreate the issue so it was very hard to troubleshoot. I believe that this method hacks around IE 4k size on disk issue (if the cookie is larger than 4k then IE has a tendency to drop it).After a couple hours of research I found these solutions.

Syndicate content
 

Twitter Feed

Latest Project

nationalspeedsportnews.com redesign

AgencyeCreative Group
Role Development,
TechnologiesPHP, MySQL, HTML, jQuery, CSS
Live URLhttp://nationalspeedsportnews.com/
Natonalspeedsportnews.com home page