Hosts files and the Google Android emulator

Using the Google Android emulator is a good way to test how a website behaves on Android devices. Connecting to your local computer http://10.0.2.2 is the URL to connect to a website hosted on your local computer. localhost or 127.0.0.1 will not work…

SharePoint 2010 jQuery compatibility errors – cmssitemanager.js

Recently I used a site collection scoped feature to add jQuery support to a SharePoint 2010 site collection. As documented on countless blogs, I used custom action XML similar to the following: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <…

Document and report generation using XAML, WPF data binding and XPS

Generating printable documents or reports containing dynamic data is a common requirement of most business systems. In this post I will show you how to create XPS documents dynamically using WPF templates loaded from the file system and populated with data binding. This technique is especially powerful when the output…