SYSK 388: Differences between basicHttpBinding and wsHttpBinding

Doing a web search for a difference between basicHttpBinding and wsHttpBinding, I find just generic references to basicHttpBinding being a basic implementation of SOAP1.1, and wsHttpBinding supporting all the WS-* spec. So, I did a side by side comparison using Microsoft Service Configuration Editor – differences (in available settings and defaults) are indicated by red…

1

SYSK 387: Resolving Data Type Conversion Error

Consider the following line of code: AttendeeAvailability attendeeAvailability; . . .if (attendeeAvailability.WorkingHours.DaysOfTheWeek.Contains(DateTime.Today.DayOfWeek) == false){   . . . } You’ll get a compile time error — Argument 1: cannot convert from ‘System.DayOfWeek’ to ‘Microsoft.Exchange.WebServices.Data.DayOfTheWeek’   One way to resolve it is by converting it to a string representation and parsing into the Exchange library known data type,…

0

SYSK 386: Performance Implications of Using One vs. Several Nested Hashtables

Let’s say you need to quickly find some reference/lookup data and you decide to use hashtables…  If your key is comprised of several elements, is it better, from the performance point of view for you to combine all of them into one string and use it to access a flat single hashtable, or, would you…

0

SYSK 385: Smart Cache

John Manaloto, one of the architects I’ve worked with recently, has been kind enough to allow me to publish the “smart cache” class he’s put into one of his projects…  It’s a component built on top of Microsoft Caching Application Block from the enterprise library, but it has an additional capability of actually getting the…

0

SYSK 384: The new ‘normal’ [non-technical]

Once in a while, I post non-technical gems I come across…  This one was one of those hard to pass by and not to share…  I got it through a couple of forwards, and the original, accurate author information is not known – if somebody knows who wrote it, please reply, so proper credit is…

0

SYSK 383: FileSync Tool

Last weekend I wrote a utility that does file synchronization (yes, I know there many such tools), but where I can define in advance what I want to see happen if there are discrepancies, e.g.: If you think you might benefit from it, attached is the source code and the executable (in the bin\debug folder). …

2

SYSK 382: File Comparison

Last weekend I wrote a utility that does file synchronization (yes, I know there many such tools), but where I can define in advance what I want to see happen if there are discrepancies…  To do that, I needed a class that would take an array of file names from one folder and another array…

4

SYSK 381: How To Get One Callback When Multiple Async Services Calls are Completed

My current project uses Silverlight 4.0 and RIA services, and I quickly came to realize the benefits and the challenges of all DomainService calls being asynchronous.    Consider this scenario: a Silverlight client app needs to get some data, that requires multiple DomainService calls – it may be because upon “processing” the first resultset, the…

0

SYSK 380: How to Get Rid of Double Scroll Bar in Microsoft Report Viewer Control

Special thanks to David Petersen who has submitted this post!   If you ASP.NET page that contains the Report Viewer Control, has double scroll bars, you can remove them by including two separate form elements on the page: 1.    First <form> element Includes your Headers and so forth (notice the absence of runat=”server” attribute in…

3

SYSK 379: Visual Studio 2010 Add-In for Managing Configuration Files Across Environments

This is an update to http://blogs.msdn.com/b/irenak/archive/2009/12/16/sysk-375-visual-studio-add-in-for-managing-configuration-files-across-environments.aspx. The provided code is upgraded for Visual Studio 2010, and also now supports nested projects (e.g. a project that is a container for other projects). To deploy, copy ConfigAddIn.AddIn to C:\Users\YourLoginName\Documents\Visual Studio 2010\Addins folder.   Open it in a text editor, and update the path to where you put ConfigAddIn.dll…

0