Thursday, 26 May 2011

Debugging IIS w3wp.exe process

When debugging  IIS and taking a while to look at your code, you may sometimes get this message


To fix this simply switch off the ping enabled setting in your IIS, application pool, advanced settings


Monday, 23 May 2011

Binding to a constant in XAML WPF


Add this to your controls namespace declarations


then use it as follows in your markup

ToolTipService.ShowDuration="{x:Static MyNameSpace:MyClass.MY_CONSTANT}"

Monday, 9 May 2011

Enabling all disabled triggers in SQL Server

select 'ALTER TABLE ' + + ' ENABLE TRIGGER ' +
from sys.objects o
inner join sys.triggers s on s.parent_id = o.object_id
and s.is_disabled = 1

How to replace the watch battery in Logitech K750 solar power keyboard

Buy this battery Open the battery cover on the back of the keyboard, you’ll need...