Build Your Own E-commerce Website

June 2nd, 2009

We are running a one day
Build Your Own E-commerce Website Workshop
as a fund raiser for Calstock Development Trust
at the Oasis Centre in Gunnislake

At the end of the one day workshop each attendee will have built their own web shop and be ready to take orders online.

The workshop is aimed at anyone running a business who has some experience of using the internet and email and is ready to take the next step to trading on-line.

The workshop is to be held on
Monday 22 June 2009 10am to 4pm
£25.00 per person cheques payable to Calstock Development Trust
The price includes 30 days hosting.

Book at the Oasis Centre
or by phoning
Mike at Amcho Computer Services Ltd
on 01822 833 690

For anyone who wishes to start early or cannot attend the workshop we will be running an online version using email – sign up atBxB.biz

Example live webshops:

Number 1 on Google – dead easy!

May 26th, 2009

On one of my websites I use a feed that has a limited bandwith quota, normally the quota limit is not a problem, but occasionally the website gets hammered by various intenet spiders, bots, and screen scrapers, so whenever I get near to the quota I implement a simple throttle that says no to bad bots.
Well, that was the theory, unfortunately one of the ip numbers that I banned was that of a googlebot and as a result I ended up number one on google for the search term ” “Sorry site not available – database ip-throttle in effect – please try again later….”.

Sometimes number 1 on google is not all it is cracked up to be!

New Website Goes Live

May 15th, 2009

Have been playing about with gallery and drupal this last month as my daughter is about to graduate and join the real world and wanted a gallery website to display her ceramic art, so please have a look at her Ceramic Art Gallery Website.
I also found a great bit of code at www.flashyourweb.com to create a slideshow from the pictures in your gallery, I have included an example in this page:

More Dates Madness

April 8th, 2009

Just did some cross browser testing – all works OK in firefox and safari and seamonkey and google chrome, but internet explorer croaks. The customer (not totally unreasonably) objected to dates being displayed as YYYY-MM-DD and wanted them displayed in the UK format of dd/month/yy. Unfortunately somewhere in the dates manipulation I used the Javascript Dates.parse function. this worked OK in Firefox and processed UK dates OK ie Date.parse(“1/Aug/2009”) gave the correct result of 1249081200000,
but in IE I got NaN.

Try it yourself in different browsers by putting UK style dates at www.w3schools.com/jsref/jsref_parse.asp

The Next Millennium Time Bomb

April 3rd, 2009

Just been working on a booking system for holiday lets and stumbled on the next millennium time bomb – I was using php mktime to add days to a date and discovered that if you add 1 day to Jan 1st 2037 the result is correct, but if you add 1 day to April 1st 2038 you get a date back in 1968 (a good year – but not the right answer!).

If you want to check it out yourself the PHP code is included below:

Function FindDate($sDate,$iDirection,$sTarget) {
// $sDate format YYYY-MM-DD from MySQL table
// $idirection to go forward or back in time 
// $sTarget day of week we want to find
list($yyyy,$mm,$dd)=preg_split('/\W/',$sDate);
$i=0;
do {
	$timestamp=mktime(0, 0, 0, $mm, $dd+$i, $yyyy);
	$i=$i+$iDirection;
	$w=date('D',$timestamp);  // gives Mon - Sun
	echo ($i." ".$sDate." ".$w);
	echo (date('Y-m-d',$timestamp)."\n");
    } while ($w!=$sTarget && abs($i<7));
    
$r= date('Y-m-d',$timestamp);
echo ($r."\n");
return $r;

}