How to create / deploy custom check in policy in TFS 2010

This is excellent article to explain about how to create and deploy custom check in policy in TFS 2010.

http://blogs.msdn.com/b/jimlamb/archive/2010/03/31/how-to-implement-package-and-deploy-custom-check-in-policy-for-tfs-2010.aspx

DDD NLayered .NET 4.0 Architecture Guide


Guide/eBook – 1st Edition
PDF y Ebook Readers (Kindle .mobi y epub) 

• Download the ‘Domain Oriented NLayered .NET 4.0 Architecture Guide’

Formats:


DDD_NLayered_NET40_Architecture_Guide_Microsoft.zip

Architecture Sample Application (NLayerApp V1 .0)
.NET4 Core, Windows Server AppFabric and Windows Azure flavors | Silverlight, WPF, ASP.NET MVC clients

• Download the Sample Application (Published at CODEPLEX)

http://microsoftnlayerapp.codeplex.com/

• Global technical presentation of the DDD Architecture

DDD_NLayered_Architecture_Presentation.zip (16’1 MB)

Programmaticaly disable IE compatibility mode

<head> 
  <!-- Mimic Internet Explorer 7 --> 
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" > 
  <title>My Web Page</title> 
</head> 

other options (old and new) include:IE=5, IE=7, IE=8, or IE=edge

(edge equals highest mode available)

Architecture Vs. Design

This is not an uncommon question in today’s poorly defined and often overlapping roles and responsibilities that architects, senior developers and developers play today in many organizations. It becomes more confusing when a single person or everyone in a small team does a mix of architecture, design and coding without a defined boundary. The mere term architecture could mean many things depending on the context it is referenced in. But for this writing I mostly assume application architecture and design. Yes, there are other architectures types exist in this software world!

Application architecture is all about decomposing an application into modules and sub-modules, defining their attributes and responsibilities and the relationships among them. During this process, numerous parameters are considered and thoroughly analyzed and based on the merits and demerits of each, various constraints/trade-offs are made. Strict lines are drawn to arrive at an optimal architecture that solves the business problem and aligns well with the organization’s enterprise architecture or business requirements directly. Ideally, software architecture should be technology and platform neutral but often it is defined around a specific technology such as J2EE, .NET and open-source, which is not too bad, in my perspective. On the other end, it potentially locks down oneself into a specific stream where alternatives exist. Instead of going in depth in to the subject, here is the crisp of software architecture.

The term architecture itself doesn’t have a global definition but standards bodies such as IEEE and SEI-CMM have their own versions and reinforce them in their respective publications/open talks. However, here is my version closely derived from one of the standards body’s definition that I feel closely defines software architecture: a software architecture is the definition and description of the organization of a system in terms of its sub-systems, modules, their interdependencies, relationships, interaction with external systems and how they communicate with each other cohesively in order to give the intended functionality and meet the definition of the system in question.

reference:Siva M

Design Patterns Bootcamp: Model View * Patterns

Model View * Patterns… What are they?

The main drawback to these patterns is usually the learning curve… this show will hopefully remove that barrier-to-entry. The first on the scene and primary pattern to all each involved is the Model View Controller. This pattern is used throughout many of the modern development platforms. The quickest way to describe MVC in the terms a .NET developer will understand is that you code your pages in such a way that you place the code that would be in your code-behind, into a separate class. This class is called a “controller”. The “model” are your domain objects (business objects or data access objects).

So your controller will tell your domain objects what to do. Once the work is done, then the user interface must be updated. The code in the user interface is known as the “view”. So if you can picture that the code-behind in an ASPX file is no longer where you do any real work and can re-label that code the “view”, and you can picture a new class that would act as a bucket for the code you would have written in your code behind to do the work (call that the “controller”) and imagine the finaly peice of the puzzle as a class that talks to the database, to encapsulates some business logic or does something else completely unlreated to any user interace (and call that the “model”), then you, my friend have just understood the most difficult part of the Model View * patterns.

 

http://polymorphicpodcast.com/shows/mv-patterns/

Dapper.Net–StackOverflow’s Open Source ORM

 

This ORM is specialized in converting and mapping query result into a strongly typed List.

public static List<T> ExecuteMapperQuery<T>(this IDbConnection cnn, string sql, 
object param = null, SqlTransaction transaction = null)

Example usage:
public class Dog
{
    public int? Age { get; set; }
    public Guid Id { get; set; }
    public string Name { get; set; }
    public float? Weight { get; set; }

    public int IgnoredProperty { get { return 1; } }
}            
            
var guid = Guid.NewGuid();
var dog = connection.ExecuteMapperQuery<Dog>("select Age = @Age, Id = @Id", 
new { Age = (int?)null, Id = guid });
            
dog.Count()
    .IsEqualTo(1);

dog.First().Age
    .IsNull();

dog.First().Id
    .IsEqualTo(guid);

http://code.google.com/p/dapper-dot-net/

Link to Source code : http://code.google.com/p/dapper-dot-net/source/browse/Dapper/SqlMapper.cs

The unofficial Google shell…

Google shell will look alike unix shell to consume all the google services at console prompt. You type commands and the results are shown on this page. goosh is powered by google. goosh is written by Stefan Grothkopp. it is NOT an official google product! goosh is open source under the Artistic License/GPL.

http://www.goosh.org

Hidden Secrets of C# Tip 1: Yield Return, Yield Break

If you ever wanted to return the generic collection of items from an method, what do you do? you may do like this..

public List<int> LoadEvenNumbers(){
         List<int> items = new List<int>();
         for(int i = 0; i<100;i++)
         {
                  if(i % 2 == 0) items.Add(i);                 
         }  
}

But, there is better way to achieve the same using Iterators..

public IEnumerable<int> LoadEvenNumbers(){
         for(int i = 0; i<100;i++)
         {
                  if(i % 2 == 0) yield return i;                 
         }  
}

Surprise.. isn’t it…

For more details about Yield Return and Yield Break.. refer MSDN documentation here..

http://msdn.microsoft.com/en-us/library/9k7k7cf0(v=vs.80).aspx

Donate for victims of Japan Tsunami/Earthquake

Japan, we feel really sad for what has happened to you.. we know, you have tremendous courage to come back from any disaster. At this moment, We share our deepest condolences from heart of billion indian peoples.

Students hold candles as they pray for Japan’s earthquake victims inside their school in the western Indian city of Ahmedabad March 11. (Amit Dave/Reuters)

Donate here : http://www.google.com/crisisresponse/japanquake2011.html

Donations will go to the Japanese Red Cross Society and will be used to support to those affected by the earthquake in Japan

A massive 8.9/9.0 magnitude earthquake hit the Pacific Ocean nearby Northeastern Japan at around 2:46pm on March 11 (JST) causing damage with blackouts, fire and tsunami. On this page we are providing the information regarding the disaster and damage with realtime updates.

The large earthquake triggered a tsunami warning for countries all around the Pacific ocean.

Local Japan Emergency dials:
171 + 1 + line phone number to leave a message
171 + 2 + line phone number to listen to the message

Phone numbers to consult about missing persons: (Japanese language)
Iwate: 0120-801-471
Miyagi: 022-221-2000
Fukushima: 0120-510-186 / 090-8424-4207 / 090-8424-4208

Visual Studio 2010 Service Pack 1 (SP1) Released..

The Beta version of the Visual Studio 2010 Service Pack 1 (SP1) is now available to download for all users..
http://go.microsoft.com/fwlink/?LinkId=207130