IT Technology Blog

IT technology blog, featuring the essence for you to read the article, is to learn IT technology blog first choice

NHibernate Basics

Introduction NHibernate is an Object-Relational Mapping (ORM) solution for the .NET Platform. It provides a framework for mapping an object oriented domain model to a traditional relational database.

WebSockets, WCF & Silverlight 5

Introduction  With this tutorial, I want to explain how you can create a WebSocket application. I have chosen Silverlight as my client, but you can have any framework &nb

Template Method Design Pattern in .Net

Template method design pattern falls under the category of Behavioral Design Pattern. In this pattern, a template method defines a skeleton of an algorithm in terms of abstract operations. The templat

Decorator Design Pattern in .Net

Decorator design pattern falls under the category of Structural Design Pattern. Structural design pattern emphasizes upon the overall structure of classes and objects in the system either by doing cla

A CWtlPicture Control Based on GDI+

Download CWtlPicture source code only - 4.47 KB Download the sample application project - 17.85 KB Introduction This is a graphics class written for Windows Template Library (WTL)

How to determine the integer type for a C++ enum?

Download source code - 1.92 KB Introduction I use enumerators many times in C++ but sadly these enums are not supported well. When you want to serialize an enum, you don't know what is the small

Metro In Motion Part #6 – Rolling List Location Indicator

This blog post describes the development of a rolling list location indicator. This indicator mirrors the behaviour seen in the native Windows Phone 7 calendar which rolls from one date to the next as

Ribbon with C++, Part 2: First Ribbon Enabled Application

In this post, we continue our review of the Windows Ribbon Framework feature brought to us in Windows 7. For more information on the ribbon feature in general and the Windows Ribbon Framework in parti

Deadlocks and race condition scenarios with a WebSockets server

Download source code - 53.2 KB Introduction This article describes the challenges I faced while programming a simple, concurrent WebSockets server in C++, and concludes with a complete working so

LitmusV - Validity Verification for Variables

Download demo project - 76.22 KB Download source - 2.39 KB Introduction One of the most common errors in multi-thread programming is accessing invalid data in different threads. Although this i

JavaScript call from C++

Download demo project - 32.6 KB Download source - 2.64 KB Introduction Sometimes when you are using the IE Browser Control inside of a C++ application, you need to get access to the HTML el

Testing C++ classes

Introduction  This is just an idea on how to write test classes for testing C++ classes. I might reinvent the wheel here (since I am not an expert on automated testing...) but as an idea/code s

A Simple String Compression Algorithm

Download source code - 22.17 KB Introduction Data compression is always useful for encoding information using fewer bits than the original representation it would use. There are many applicati

Decorator Design Pattern in .Net

Decorator design pattern falls under the category of Structural Design Pattern. Structural design pattern emphasizes upon the overall structure of classes and objects in the system either by doing cla

Default Browser Switcher Extension for Visual Studio 2010 - Improve Productivity

There are many instances when we have "Browser1" as the default browser in the system and we want our web application to be run inside a different browser (say "Browser2") from th

A D.I.Y. Lightbox

Download source code and demo - 905.83 KB Introduction OK, so JavaScript/jQuery lightboxes are ten-a-penny. Just go to the jQuery plugin repository and take your pick! Indeed for a long time, I di

Some Hidden Facts: Stored Procedure and Its Optimization

We create stored procedures in database applications for several reasons and benefits like enhanced performance, security, code maintenance, etc. But with time, we may see that these stored procedures

Template Method Design Pattern in .Net

Template method design pattern falls under the category of Behavioral Design Pattern. In this pattern, a template method defines a skeleton of an algorithm in terms of abstract operations. The templat

Call Your Stored Procedures With Ease

Download StoredProcedureCaller05 - 36.95 KB Call Your Stored Procedures With Ease Introduction Calling Stored Procedures Autogenerated Code Conclusion

Three reasons to why you should use View Models

I’ve answered a couple of questions at StackOverflow regarding the benefit of View Models. Here is a summary of all my answers focusing on View Models in ASP.NET MVC. Reason 1: Remove logic from you