Monday, 30 March 2009

No files were found to look in Visual Studio 2003

"No files were found to look in.Find was stopped in progress." message in Visual Studio 2003

Microsoft deserve a prize for the most random fix for this. If you get the above message press Ctrl + Scroll Lock

Friday, 20 March 2009

Internet Explorer 8 - Oh Dear!

Well, having had the final release of IE 8 installed for approximately 20 hours it has so far hung countless times and crashed completely on 5 occasions.

I am a fairly intensive user constantly opening and closing tabs but I'm not viewing particularly intensive sites - how can the browser have been in development so long and still be this bad!!

Thursday, 19 March 2009

Google StreetView for UK goes live

Google has launched the UK version of it's Street View service, the new service covers:
  • Aberdeen
  • Belfast
  • Birmingham
  • Bradford
  • Bristol
  • Cambridge
  • Cardiff
  • Coventry
  • Derby
  • Dundee
  • Edinburgh
  • Glasgow
  • Leeds
  • Liverpool
  • London
  • Oxford
  • Manchester
  • Newcastle
  • Norwich
  • Nottingham
  • Scunthorpe
  • Sheffield
  • Southampton
  • Swansea
  • York

The major issue for street view is privacy. Google has had agreement from the information commissioner because they have automatically blurred the faces of individuals and vehicle numer plates in all images, the only problem is that their software isn't perfect... you'd better hope this isn't your car.

Friday, 6 March 2009

Dynamically loading CSS in Safari and Google Chrome

Having developed a new AJAX enabled content viewer for a client's website I found that it would not load correctly in Google Chrome or Safari. The content being loaded into the viewer DIV included the CSS styles for the content and the HTML content itself, by loading the CSS into the container DIV it was being loaded outside of the document header - this is not valid in Safari as all style definitions must be placed in the head section - as a result the content loads without any CSS being applied.

To fix this the AJAX request has been split into two requests, the first loads the HTML into the DIV, the second loads the CSS and writes it into a style tag in the head section - this works in all browsers. Unfortunately this isn't as easy as it sounds due to various browser quirks when creating style elements, populating the element and adding it to the head section.

Essentially the following code will ensure the style element is created correctly:

function addCss(cssCode)
{
var styleElement = document.createElement(”style”);
styleElement.type = “text/css”;
if (styleElement.styleSheet)
{
styleElement.styleSheet.cssText = cssCode;
}
else
{
styleElement.appendChild(document.createTextNode(cssCode));
}
document.getElementsByTagName(”head”)[0].appendChild(styleElement);
}

Nicholas Zakas explains this in great and excellent detail:
http://yuiblog.com/blog/2007/06/07/style/

Thursday, 5 March 2009

Installing SQL Server Express 2005 on Windows 2008 SBS

Due to what frankly seems to be a complete botch from Microsoft SQL Server Express 2005 can be a pain to get installed on Windows Server 2008 SBS.

See:
http://technet.microsoft.com/en-us/library/cc794697.aspx

Especially:

Installing SQL Server 2005
If you plan to install SQL Server 2005 on the original server running Windows SBS 2008, do the following before you run the installation.

  • Click Start, click All Programs, click Accessories, and then click Run.

  • Type regedit, and then click OK.

  • At the User Account Control prompt, click OK.

  • Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90.

  • Double-click OriginalMachineName, and then change the OriginalMachineName value name to the current server name.

  • Click OK.

Wednesday, 4 March 2009

Developer Developer Developer South West Taunton 23rd May 2009


From the DDD South West site: DDD South West is a free one day technical event for developers. It is a day of learning, discussing, contributing and being part of the community in the South West. Our goal is to provide free technical education, the opportunity to mix with peers and to make and develop relationships in the .NET industry.


Free registration started on 2nd March 2009, get over to the DDD site now to register.

C# how to get the current method and calling method names

Helpful CodeProject article:

http://www.codeproject.com/KB/dotnet/MethodName.aspx

Install SQL Express 2005/2008 from the command line

Information for installing SQL Server 2008 from the command line
including parameters/switches:
http://msdn.microsoft.com/en-us/library/ms144259.aspx

Information for installing SQL Server 2005 from the command line
including parameters/switches:
http://msdn.microsoft.com/en-us/library/ms144259(SQL.90).aspx