Tips and Tricks from my Experience

SVN Repository Migration

Posted in Uncategorized by Chakravarthy on April 7, 2010

Our current employer decided to have the code base as VisualSVN. So we stated a demo server and then after successful trail started a staging server for our project. For the entire March month it worked well, and we decided to have another VisualSVN server as production.  During the last week we have decided to migrate our staging SVN source to production box, but now the problem is about history or revision of the full one month.

After binging and googling, I’ve found many alternatives. Most of all, I’ve realized one simple solution and migrated the entire code base from staging to production as simple as cake biting.

Problem :

Source SVN is at 10.4.5.68 and the repositories are installed at D:\

Target SVN is at 119.18.112.63 and the repositories are installed at E:\

Solution:

Step 1:

Copy all the project folders from 5.68\d$\repository\<<projectRepositories>> to 112.63\e$\repository\

Step 2:

Copy the auth files from 5.68 to 112.63, this would copy all the users along with their project groups

Step 3:

Go to the client side and just relocate your SVN url by right clicking on the folder and point to “SVN=>Relocate”

That’s is done.. did you try?

Advertisements

C# 3.0 – What’s New : {Properties}-Part2

Posted in Uncategorized by Chakravarthy on October 12, 2007

Property of the class can be considered as the mechanism of accessing the private variables of the class. In other words, properties act as wrappers to the private variables. Though, the new feature related to this is not so great from the point of technology, but highly meaningful from the developer point of view. In a large class code, having many fields and exposed as Properties, it is really difficult to remember the private fields association with the respective definition of properties. The new feature of Properties in C# 3.0 language specification says that the developer doesn’t require to define the private variables that are associated with the respective properties. During the good olden days, we are used to the following coding mechanism to declare the property via a private variable.

        // The private Variable declaration
        string strEmpName;

        // Property Declaration
        public string EmployeeName
        {
            get {
                // Returning the value from the private variable
                return strEmpName;
                }
            set {
                // Assigning the value to private Variable
                strEmpName = value; 
                }
        }

But hence forth, by using the C# 3.0 version, we doesn’t require to define as above but just as simple as mentioned below

        public string EmployeeName { get; set; }

How simple is this, by this method we doesn’t require to remember which is property and which is a private variable. But bottom line remains the same as of the old tradition, the only thing that every one has to remember is that, there is no need to declare a private variable and association of the same with the exposed property. Beneath the code, the compiler creates a private variable for each property that you define as such. To justify, use any reflector to understand the emitted IL code and the Assembly signature. You will surprise to note that a separate private variable is associated by the compiler.

Technorati Tags:

Visual Studio Code Name Orcas Beta 2

Posted in Uncategorized by Chakravarthy on August 4, 2007

Y’day night have successfully downloaded the latest Visual Studio code name Orcas Beta 2 and started exploring. It seems there are lots of new things, have to explore slowly

Am I the first person to read about this acquisition?

Posted in Uncategorized by Chakravarthy on May 23, 2006

Microsoft today announced the idea to acquire Softricity Inc., am i the first person to learn this news apart of the employees working with these two companies ?

Read  here to learn more about the acquision. Hopefuly by tomorrow Bill G will give the official statement on the same.

Hello world!

Posted in Uncategorized by Chakravarthy on November 22, 2005

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!