Rajesh kumar’s Blog

If you have knowledge, let others light their candles at it.

Design Patterns Relations Diagram

Posted by Rajesh Kumar on October 23, 2009

DesignPattern Relations

DesignPattern Relations

Posted in Design Patterns | Leave a Comment »

.net based Product Activation

Posted by Rajesh Kumar on September 24, 2009

Add License Validation, Product Activation, and Installation Keys to your .Net based application. Prevent casual copying and keep your customers honest. Similar to Microsoft style product activation where the product key is validated against the machine specific identifiers and validated against an internet server. Supports server based creation, maintenance and validation of install key codes.

Find more information with Source code at: InstallKey

Posted in .Net | Leave a Comment »

Visual Studio 2008 Extentions / Power Commands

Posted by Rajesh Kumar on September 24, 2009

Microsoft has released extensions for Visual Studio which makes developers life easy. It has the following features:

  • Enable/Disable PowerCommands in Options dialog
  • Format document on save / Remove and Sort Usings on save
  • Clear All Panes
  • Copy Path
  • Email CodeSnippet
  • Insert Guid Attribute
  • Show All Files
  • Undo Close
  • Collapse Projects
  • Copy Class
  • Paste Class
  • Copy References
  • Paste References
  • Copy As Project Reference
  • Edit Project File
  • Open Containing Folder
  • Open Command Prompt
  • Unload Projects
  • Reload Projects
  • Remove and Sort Usings
  • Extract Constant
  • Clear Recent File List
  • Clear Recent Project List
  • Transform Templates
  • Close All
  • You can find more detailed information and msi file from: PowerCommands

    Posted in .Net, Visual Studio | Leave a Comment »

    Remove unused namespaces from Visual Studio

    Posted by Rajesh Kumar on August 12, 2009

    When we add any new class file, Visual Studio 2008 by default adds few namespaces depending on the project type. But, in real time – we will not be using one or all of the namespaces.

    At the same time, most of us know only few namespace of the objects that we are going to use. So, it is a bit difficult to identify and remove the namespace. So, how can we make the code clean?

    Fortunately, Visual Studio allows to Sort, Remove and Remove & Sort unused namespaces. The following pictures shows you how the class file looks like before and after removing the unused namespaces:

    Default Class Structure

    Default Class StructureContext menu in Visual Studio

     

    Context menu in Visual Studio

    Context menu in Visual Studio

    Class structure after Removing and Sorting unused namespaces

    Class structure after Removing and Sorting unused namespaces

    This is a very cool and useful feature :)

    Posted in .Net, Visual Studio | 2 Comments »

    Single Sign On – Test Sites added

    Posted by Rajesh Kumar on August 10, 2009

    To make the development and testing easy, I added 3 web sites to the SingleSingleOnResearch as given below:

    1) SingleSignOn.Administration (this site is going to have all administrative interfaces in the future)

    2) FirstWebSite and

    3) SecondWebSite

    All the above 3 sites will have the Login page and then allows you to browse to rest of the two sites without re-login. So, please try and let me know your comments and suggestions.

    Source Code at: http://sso.codeplex.com

    Posted in Single Sign On, WCF | Leave a Comment »

    Single Sign On Alpha 1.1 released

    Posted by Rajesh Kumar on July 28, 2009

    Development of Single Sign On is going smoothly. There is a good response for Alpha 1.0 version.

    As per Codeplex’s statistics, there were 122 downloads.

    I have released Alpha 1.1 version on July 10, 2009. This version includes a Silverlight based UI to test the Single Sign On Service. UI displays the list of Online users and Requested Tokens.

    Please have a look at SSO project at: http://sso.codeplex.com/

    Posted in .Net, Single Sign On, WCF | Leave a Comment »

    Single Sign On – Light Weight

    Posted by Rajesh Kumar on July 2, 2009

    As a journey towards the Single Sign On solution, I have creted a project in Codeplex. It is just an initial version.

    Developed using WCF, ASP.Net and Silverlight to track the online users. Please have a look at: http://sso.codeplex.com/

    Posted in .Net, Single Sign On, WCF | Leave a Comment »

    Rampup (Ascend to new heights in your career)

    Posted by Rajesh Kumar on June 10, 2009

    If at all you are looking for one or more of the below:

    • Web Development with ASP.NET
    • Move from PHP to ASP.NET
    • Move from ASP to ASP.NET
    • Develop Windows Mobile 6 Applications
    • SharePoint for Developers – Part 1
    • SharePoint for Developers – Part 2
    • Visual Studio 2008
    • For the VS 2002/2003 Developer: Learn VS 2005
    • For the VB 6.0 Developer: Learn VB 2005
    • For the Java Developer: Learn .NET
    • Developer Basics

    Its worth browsing:   http://msdn.microsoft.com/hi-in/rampup/default(en-us).aspx

    Posted in .Net | Leave a Comment »

    Behavior of dynamic type in C# 4.0

    Posted by Rajesh Kumar on June 3, 2009

    If you wish to get the type of any object dynamically and then invoke its methods are properties at run time, then C# 4.0 provides a new type called dynamic.

    With this dynamic type, we can avoid compile time exceptions for method or property call. Compiler will just ignore dynamic types at the time of compilation. However, they will be evaluated at run time.

    During the compile time, the variables of dynamic types are compiled into “object” type. So, type “dynamic” exists only at compile time, but not at run time.

    This dynamic type can be used in following scenarios:

    • A private field
    • A public property
    • Method return type

    Posted in .Net | Leave a Comment »

    Visual Studio 2010 & .Net 4.0 Beta 1 download link

    Posted by Rajesh Kumar on May 19, 2009

    Hi All,

    You can download the Visual Studio 2010 & .Net Framework 4.0 Beta 1 from the below link:

    https://msdn.microsoft.com/en-us/subscriptions/securedownloads/default.aspx

    Posted in .Net | Leave a Comment »