Archive for January, 2009

Arggghhhh it’s the end of the world. Google is broken!

Saturday, January 31st, 2009

Lock your doors, stock up on supplies and withdraw all of your money from the bank for Google is broken!

It won’t be long now before mobs rampage through the streets destroying small businesses and legging it with pilfered tellys. This could be the end of the world as we know it!

Currently clicking on the result of any Google search brings up a page warning the user that the website is a potential risk, and does not allow the user to continue on to it.

Be afraid folks, be very afraid!

googlebroken

Update: A little while later Google started working properly again. Normality was restored. Sheepish looking folk gently placed nicked tellys back through the shattered windows of Currys and jogged home.

Getting a symfony plugin to work

Wednesday, January 14th, 2009

Hi all,
I am working on a web based application for my work place. I am building it in a php using the MVC framework Symfony.

Symfony has learning curve, especially if you are new to the MVC setup. This post is not about MVC but about a small problem I had trying to installing a plugin.

Symfony allows you to install plugins to the framework that provide a specific purpose, the one I was trying to install was called AdminQuickCreatePlugin. If you can imagine you have a form that is all about a ‘person’, and on this form you a list of “organisations” that this person may work for, but as you start to fill the form in you realise the organisation the person works for is not in the list. So you would have to go back, create the organisation, then come back to the form and fill all the details back in for the person (you have had to update the select list to show the new organisation).
This plugin creates a small button that will open the form for an organisation, but the magic is that it will save the current forms session info and once the organisation has been created it will reopen the person form but fill in all the details you had entered but also add the new organisation.
This makes web apps a little easier to use.

Any way – the problem was all around the way symfony installs plugins, using PEAR. It refused to install normally due to a md5sum error.
To rectify the problem I had to enter the .tgz, edit the package.xml. I did use a md5sum.exe app to recreate the md5sum, but all the md5s looked ok?!
So finding the ‘<file’ I deleted the md5sum=’7630f0d1fbc…….’ part.
I then recreated the .tar.gz and used ’symfony install-plugin /plugin.tar.gz’

Hey presto.. install without a problem now.
Hopefully this may help anyone who has a similar problem.
Just a word of warning though, the md5sum is used to make sure the file hasn’t been compromised, so always do a virus check.

ta

adam

Problems installing Microsoft SQL Server Express 2005

Monday, January 5th, 2009

Hi all,
I had to install SQL Server Express 2005 edition on my works laptop so I could develop a small database driven application.
I have Visual Studio 2005 already installed and thought installing SQL express would be a simple process, oh no..,…

First attempt – it installed the following without a hitch:

  • SQL Setup Support Files
  • SQL Native Client
  • SQL VSS Writer

but then failed miserably on the SQL Server Database Services, checking through the log files showed nothing out of the ordinary. The summary file stated that the install had been a success, though the installer then wanted to report a fail back to Microsoft headquarters.

So time to start digging, fire up Google and find out who else has had a similar problem, quite a few by the looks of it.

My first attempt at a remedy was to use add/remove programs to remove all traces of the botched install. Then use regedit to remove the following keys (if present) /HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SQL (xxxx) where (xxx) is anything after SQL..

After a reboot I tried another install – same error message.

After many variations of the above I then looked slightly further afield, at the MSXML6 parser, this is a pre-requisite of SQL Server Express 2005, and I had downloaded it from the Microsoft download page MSXML6.exe Parser and attempted to install it.

It failed stating that the version installed was newer than the version I was attempting to install, but after more headaches etc I looked at the dlls msxml6.dll and msxml6r.dll and noted that they were not newer.
I tried to remove MSXML6 parser using the add/remove programs – it replied that it couldn’t as it wasn’t installed!
But the .dlls could be seen – and they were registered?! So I unregistered them both using regsvr32 /u and tried again to remove the app using add/remove programs. No luck.

I then downloaded Windows Installer Clean Up tool and scrolled down to find the rouge MSXML6.
Highlighted the app – clicked ‘Remove’, then attempted an install of msxml6.exe, it didn’t complain about any previous version (onto a winner?) and installed correctly.
I then, tentatively, tried to install the MS SQL Express 2005 – and after an age it installed fully…

Wahoo… we have a winner.

All I have to do now is write the application… and I am more of a MySQL man myself.

;o)

Adam