Wednesday, March 31, 2010

Windows Update KB980182 in Windows 7 X64 Video stops playing

Well it looks like microsoft screwed this update up, least on my machine.

Last night I was informed that a security update had been applied. I rebooted and went to sleep. Windows 7
 Cumulative Security Update for Internet Explorer (980182) had been applied and caused my machine to no longer play any video.
This includes Flash,Silverlight, AVI, WMV, and any other video format to load, show first frame and then lock up.

The only way I fixed this and figured out it was the update was to do a system restore to last nights state.

I hope microsoft fixes this issue, as of now, I have to ignore this security update.

Saturday, March 27, 2010

WPF and Silverlight Programming

I have been programming Silverlight for some time now. I have had some hard times trying to grasp the design end and have found some great resources that I would love to share. Hopefully it helps you like it has helped me with Silverlight and WPF:

Windows Presentation Foundation
WPF Architecture


Base Elements

Element Tree and Serialization


Guidance on Differences Between WPF and Silverlight

Friday, March 26, 2010

SQL Server - Get Row Count in Table TSQL

I was working on a shared site machine over at Ektron Hosting and hating this MyLittleSQLAdmin utility they have, doesn't even give row counts like SQL management studio.

So I needed a quick way to get total row counts on my table, this worked just fine:

SELECT OBJECT_NAME(OBJECT_ID) TableName, st.row_count
FROM sys.dm_db_partition_stats st
WHERE index_id < 2
ORDER BY st.row_count DESC

Monday, March 22, 2010

How to clear Visual Studio 2008 Recent Project List

Well I was getting so frustrated at my Visual studio List being full of old unused projects when I opened it up, that I needed a way to clear the Visual Studio 2008 Recent Project List. All you need to do is create a reg file with the following code:

Windows Registry Editor Version 5.00


Save it as a .reg file and run it, restart Visual Studio 2008.

Tuesday, March 9, 2010

How to parse Meta Tags

The other day I needed to parse a custom ASP.NET meta tag. Here is what I came up with:

List metas = new List();
foreach (Control c in this.Page.Header.Controls)
if (c.GetType() == typeof(HtmlMeta))
HtmlMeta meta = (HtmlMeta)c;
if (meta.Name == "CategoryID")
strMeta = meta.Content;