The personal Blog of Chris Dempsey

Chris is a web developer working freelance in Ayr nr Glasgow, Scotland. Other business interests include Underground Grapics, a company that manufactures vinyl decals for modified cars.

Saturday 3 April 2010

Canon EOS 20D Drivers for Windows 7

The Canon Europe website does not list Canon EOS 20D Drivers for Windows 7 at this time. I tried the Vista driver installer but the 20D would not respond. Google came up trumphs again with a Forum post that suggested: Set the D20 Camera Communications setting on PTP instead of NORMAL.

Works for me.

Sunday 21 March 2010

Fixing Unable to find the socket transport "ssl" on Windows 2003

If you receive the error below, often seen when using the Zend Gdata library follow the instructions below to correct the issue.

Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Unable to Connect to ssl://www.google.com:443. Error #24: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?'

  1. run phpinfo(); to find the path to the loaded php.ini config file
  2. open the file and ensure extension=php_openssl.dll is not commented out
  3. restart IIS from command prompt with command iisreset

Saturday 20 March 2010

IIS 7.5 ASP Error

On freshly installed IIS 7.5 classic ASP website returns following generic error:

An error occurred on the server when processing the URL. Please contact the system administrator.

If you are the system administrator please click here to find out more about this error.

Issue is caused by IIS 7.5 being set by default to not send errors to the browser. To change open the relevant site in IIS, select ASP

Expand the Debugging Properties tree and set Send Errors To Browser to True. Then click Apply in the top right of the window.

IIS will now send errors to the browser allowing easier debugging. Sending errors to the browser is not recommended for production environments as it can give away information that you don't want to such as the path to an access database.

These settings can also be configured using the command-line tool AppCmd.exe with the following syntax:

appcmd.exe set config "Default Web Site" -section:system.webServer/asp /scriptErrorMessage:"An error occurred."

appcmd.exe set config "Default Web Site" -section:system.webServer/asp /scriptErrorSentToBrowser:"False"

Tuesday 2 March 2010

Error '80040211' - when CDOSYS email goes wrong

We had an issue on an asp shopping cart site over the past day after it was moved to a new server. Initially it wouldn't send emails out which was easily sorted as the new server doesn't have Jmail installed.

I switched it to CDOSYS instead but in my haste forgot that CDOSYS should be authenticated causing the following error:
error '80040211'
/includes/functions.asp, line 537
This was an issue because during the checkout process the shopping cart sends an email to the store owner and the customer but this was failing and people thought their order hadn't been taken. Worse still there is no error handling for this and customers were just seeing a white screen with a non descriptive error.

Fortunately the shopping cart software wrote all the order details to the database before the error occurred so we were able to contact those who thought their order had failed.

Moral of the story is not to migrate a busy website to a new server and not test it thoroughly.

Friday 26 February 2010

And this is why some people should not be allowed to have content management

Was working on a site that a client maintains using Macromedia Contribute recently. They were told it was a bad idea at the time...

Check this out for a single paragraph tag:

<p align="center" class="txtWhosWhoName style9" style="margin-bottom: 0;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:times new roman;font-size:13px;"><span style="font-family:Times New Roman;font-size:16px;"><span style="font-family:times new roman;font-size:13px;"><img src="images/2010_000.jpg" width="700" height="525" /></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>

Wednesday 17 February 2010

How to change an image filename in Picasa Web Albums

Picasa Web Albums does not seem to allow users to edit the filename of an image once it has been uploaded.

The filename can be changed using Picasa by doing the following:

Select the image you wish to rename and press F2 to rename, or select the image and choose File > Rename and enter the filename you wish to use.


To have the new filename shown in Picasa Web Albums simply select the image(s) you wish to update, right click and select Online Actions > Update Online Photo


More details on changing an image filename in Picasa Web Albums, including notes on how to sequentially number a selection of photos is available at http://picasa.google.com/support/bin/answer.py?hl=en&answer=19548

Saturday 6 February 2010

IcyBox - An unexpected network error occurred - IB-NAS3221-B


In December 2009 our Bufallo Terastation failed first with a corrupt Kernel then a RAID failure. We were forced to purchase a new NAS box and had to take what we could get same day on a Saturday which turned out to be an IcyBox IB-NAS3221-B from RaidSonic.

The device accepts 2 drives and we installed a new 500gb SATA unit. After an arduous 24 hour backup restore from a USB 1.0 drive and then 18 hours of copying across the network to the new NAS box we should have been set.

Several times though the first day of using the device with 4 people using it as a simple file server it was throwing errors:
  • An unexpected network error occurred
  • Not enough memory to complete opperation
The error happened both at random times when not much was happening and also when we were copying large amounts of files to or from the device. It seemed that anything over 600mb tripped it up or any copy operation involving more than 2000 files.

One of the Dell Desktop PCs seemed less affected when copying files than my ASUS VX2s so it looked like the network controller on my may have been part of the issue. We also tried using RoboCopy to do some copy operations but that too was unable to shift files to and from the IcyBox.

We ended up shifting the files by hand to a Synology DS508 which would allow our nightly backup routines to an external USB 2.0 devide to run without failing.

Now that the IcyBox is somewhat redundant I updated the firmware from the version shipped from the factory to the latest IB-v263n-v01.3-20090826. The firmware upgrade took about 10 minutes and went without issue.

I'm currently copying 26gb [25, 000] of files from Synology unit to the IcyBox and 2 hours in it's running away nicely at around 1.96mb/sec on our 100mbit network. If I'd had the balls to try a firmware update on a working drive looks very much like it would have saved days of time. Given the choice again there's still no way I'd risk that much data on a firmware update with no way of having a full backup available for immediate restore.

UPDATE [03 July 2010]: I noticed a few referrals coming from a topic over at Tom's Hardware and thought I should update this post.  The firmware update I applied did not resolve the issues with the NAS so it was shelved for a good few months.  Fired it back up a couple of weeks ago and the thing refuses to boot now, simply showing the word 'Booting' on the screen.  The drives did spin up but the power button did not turn the unit off.  Removing the drives produced the same results so now it's going back to the store for a credit note.

Sunday 31 January 2010

ECU Remapping for Diesel and Petrol in Ayrshire



ECU Remapping is one of the main performance tuning services provided by Moorfield Motor Services in Kilmarnock, Ayrshire.

Benefits of an ECU remap
  • Increased throttle response
  • Increased torque
  • Better driveability
  • Improved fuel economy
  • No compromise on reliability

Diesel cars, most notably turbo diesel cars, stand to achieve some of the best increases from an ECU Remap. Typically a remapped diesel turbo ECU can produce a 30-40% increase in BHP and up to 60% increase in torque depending on your specific car.

ECU remapping is better than a diesel tuning box

ECU remapping is much safer than using a diesel tuning box which simply tricks your ECU into supplying more fuel to the engine. This approach can lead to problems including excessive wear on components, heavy black emissions and engine check lights being activated. Compare this to the ECU remap service offered by Moorfield which adjusts specific areas of your car's original ECU map.

How much extra power will I get?

Call 01563 537 145 or email info@moorfieldmotorservices.co.uk with details of your car for advice on what can be done for your particular vehicle and the gains you can expect.

Moorfield Motor Services' website is available at www.moorfieldmotorservices.co.uk