July 22nd, 2008
I’m experimenting with a remote data backup system for two reasons:
1. In case my desktop dies and I lose all my data.
2. In case my laptop / data stick dies when away on business.
Jungle Disk seems fairly well rounded and takes advantage of Amazon’s S3 data warehouse service.
I’d hoped that I’d be able to install the software on each of my machines and use a ‘sync’ function to automatically update local and remote files to the newest version whichever machine I was using. Can’t be done though! JungleDisk are looking to do it in a future release but could be a pretty hellish undertaking. (See here)

The solution? Only allow the desktop to put data on the remote server. Pass info to/from desktop to laptops as before and, in emergencies only, take data from remote server but do not put back (except via the desktop).
Posted in Business Admin | No Comments »
July 22nd, 2008
Needs to be set up on the server rather than a mail client (a distinction blurred by outlook etc.)
Set up on alias – dwinton. Double check functionality.
Posted in Web development | No Comments »
July 16th, 2008
Say you have a javascript object eg
function myobject(){
this.height = "180";
this.weight = "90";
}
You can access these properties in two ways; the standard myobject.weight OR myobject["weight"]
The second way allows access to a variable using a string which is very useful
var objectVariables = ["height","weight"];
for(var i=0; i<objectVariables.length; i++){
alert(myobject[objectVariables[i]]);
}
Which allows you to loop through an object’s variables and perform standard operations.
Posted in Web development | 1 Comment »
July 15th, 2008
One slight tweak to standard checkboxes when you want to pass multiple selections of the same variable …
<input type='checkbox' name='myvariable[]' value='0' />
Notice the SQUARE BRACKETS at the end of the variable name. This tells the browser to send the variables in an array.
You can then use standard array handling functions in your php to strip the values out of:
$myvariables = $_POST['myvariable']
Posted in Web development | No Comments »
July 11th, 2008
Rather than import data to a form, import it to a collection of javascript objects – the same objects you’ve already created to display database information.
Then use the parent object to carry out display / query creation behaviours. Much more elegant.
Posted in Web development | No Comments »