Archive for June, 2009

Tips on Decreasing Air Consumption – Scuba Diving

Tuesday, June 16th, 2009
Bubbles

Bubbles *

Most divers want to decrease the amount of air that they use on each dive, and those who don’t use much air are often asked just what the secret is. So seeing as I seem to have gained a reputation as one of these people that “just don’t breathe”, I thought I’d pass on a few of my thoughts and tips.

Firstly, it’s VERY important to remember that decreasing your air consumption should not be an aim in itself, as it is actually an outcome of good diving practice and technique. Good air consumption does not make you a better diver, but it does allow you to stay down longer where appropriate.
(more…)

Share

Virtual Hosts in Apache on Windows

Monday, June 8th, 2009

This is more of a reminder for me but this might also help somebody else.

I’ve had to set up virtual servers for apache on windows a couple of times (using php5.2.6 and apache 2.2 on XP and Vista) and can never quite remember exactly what it is that I have to put where, so here is my way of doing it:

  • Open up the windows hosts file (for me found in windows\windows32\drivers\etc\)
  • Under 127.0.0.1 localhost, add in the new virtual host and save eg.

    127.0.0.1 localhost
    127.0.0.1 newhost // set the name of your new virtual host
  • Open up the apache httpd.conf file (found in your apache conf folder, for me its Program Files\Apache Software Foundation\Apache2.2\conf\)
  • (more…)

Share

Jquery .live and .livequery

Tuesday, June 2nd, 2009

I recently had a problem where I was trying to insert some product information into a page, with the information shown changed depending on which product was selected from a drop down list.

Here is the select list and the div that I wanted the extra information to be displayed into:

<select name="product" id="product">
<option value="">Select product...</option>
<option value="Product 1">Product 1</option>
<option value="Product 2">Product 2</option>
<option value="Product 3">Product 3</option>
<option value="Product 4">Product 4</option>
</select>

<div id=”product_info”>
</div>

(more…)

Share