Pages

Saturday, June 26, 2010

How to undo another user’s checkout in TFS?

here are at least 2 different ways to do this:

Command Line

There is a command-line utility called Tf.exe that comes with Team Explorer. Find the documentation here. It can be accessed by launching a Visual Studio Command Prompt window. The syntax of the command is:

tf undo [/workspace:workspacename[;workspaceowner]]
[/server:servername] [/recursive] itemspec [/noprompt]

Example: tf undo /workspace:noxad_ws;noxad $/project/abc.cs

GUI

The second is via the GUI, but does not come standard - you have to install the TFS Power Tools. See here for details on how to use this method.

Keep in mind that with either method you will need the appropriate rights. The permissions are called "Undo other users' changes" and "Unlock other users' changes". These permission can be viewed by:

  1. Right-clicking the desired project, folder, or file in Source Control Explorer
  2. Select Properties
  3. Select the Security tab
  4. Select the appropriate user or group in the Users and Groups section at the top
  5. View the "Permissions for [user/group]:" section at the bottom

Friday, June 25, 2010

TFS DELETE AND TFS DESTROY

TFSDeleteProject does not delete source but only marks it for deletion. TFSDestroy command physically. Even it destrys the deleted files which are marked as deleted when used by tfsdelete.

To use the TFSDeleteProject AND destroy command, you must belong to the Team Foundation Administrators security group

C:\ tfsdeleteproject

C:\ tfs destroy

using the above commands you can delete the files, branches etc...

TFS WEB ACCESS WITHOUT CAL LICENCE

Everyone within your organization (but without tfs cal) can access Web Access in free mode, called WIOV, allowing them to create, view and edit their own work items.


Work item only view – WIOW is a restricted version of team web access – TWA, used when the user should view only creation / edition / history of working items.


This WIOW so called as WORK ITEM WEB ACCESS – WIWA. And it was being installed as a virtual directory under TWA 2008 (http://tfshost:8090/wiwa).


TWA meaning that there is a single entry point for both TWA and WIOV (http://tfshost:8080/tfs/web). The new behavior is based on a new TFS application-level permission called “Use full Web Access features”. If the user connected to TWA is denied for this permission, the application switches automatically to the WIOV.

In TFS administration, add the “Work Item Only View” users group -> set permission to “user level web access” to select.

http://blogs.msdn.com/b/serkani/archive/2009/12/31/how-to-enable-work-item-only-view-in-team-web-access-2010.aspx

Unable to connect to TFS server in Test Manager 2010

First time after installing TFS 2010 in the machine, when try to connect Test Manager 2010 to TFS 2008 project, throwing error that “Unable to connect to server , Check the server name is correct and that you have access to the server”.

Even after trying as the project administrator, same problem repeated. After going through some stuff it was know that TFS 2010 test manager cannot use the TFS 2008 features, because TFS 2008 doesn’t have the Test and lab features. So, TFS 2008 doesn’t have the test and lab features that are included in TFS 2010.

Solution: upgrade the server to TFS 2010 in order to connect from the client.

Wednesday, June 2, 2010

Four Priniciples of Reaching Enlightenment

1. "Prajnaanam Brahma"

Prajnaanam Brahma expresses the truth of universal consciousness as Supreme Divinity. This is expressed in the indirect third person or a generalized, unparticularised declaration of the highest truth-wisdom. It is called Svaruupa Lakshana Vaakya or the statement defining the very nature or essence of Brahman - the Light Supreme. The dawn of this wisdom signifies living in Saalokyam - in the all-embracing spiritual consciousness. Sah + lokya: The one who is to be fully comprehended and its realization is expressed as "I am in the light of supreme consciousness". The light enveloping the individual and every other entity in the cosmos is Prajnaanam - the illumination of total awareness.

2. “Ayam Aathma Brahma”

Ayam Aathma Brahma brings us close to Divinity. It is thus comparable to Saameepya Mukthi, which is the state where we are freed from worldly thoughts and when all thoughts dwell only on the Divinity Supreme. This declaration revolves around the meditation on Thejas as the illuminating Shiva Consciousness. "That Light is in Myself'- is the ineffable experience of a spiritual practice called, Jyothir Dhyaana; internalising the vision of the radiant Sadhaa-Shiva-Principle or Linga installed within oneself.

3. Thath Thvam Asi (Thou art That)

The spiritual aspirant for liberation or Mumukshu is directly addressed in the second person singular case and told, in no uncertain terms, that, he and the Divinity are one and the same. It corresponds to the realization that, the Light of Supreme Divinity and the Light of Consciousness within are identical: "I and the Light are the same". Thath Thvam Asi is symbolised by the Jnaana Lingam, the high water mark of realizing the supreme knowledge or Brahma Vidhya. It is repeated nine times - nine being the representation of Parabrahma so that one is established firmly in the conviction that he is not the body, not the senses, not the mind, not the bundle of Vaasanas or the ego-self He is nothing but Divinity, The Supreme Self

4. Aham Brahma Asmi

It is then stated that Brahman knew Itself as "I am Brahman" "Aham Brahmaasmi". When It knew Itself as Brahman, It became the Supreme All in All "Thasmaath Thath Sarvamaabhavath". Then, the Upanishath declares that the one who realizes the import of this great truth becomes himself the All-in-All. It is so even now with respect to the demi-Gods, Rishis and humans. Even the demi-Gods cannot prevent the human from becoming this All-in-All, for the human Self has become their own Self! In terms of the analogy of Light of Consciousness, the meaning of this great statement is "I am the Supreme Light"

SAKSHI BAVA STHITHI

The word “SAKSHI BAVA STHITHI” is a state where all the humans should experience to avoid the disturbances facing in the real world. All the saints, guru's, Scientists and all analysts cautioning the human's to follow the spirituality in their daily life.

But it is impossible now days to feel the great experiences, so I want to give a formula which can guide you get this experience. Every human see's trees, cars, birds, animals, temples, grave yards, violence, cinemas and thinks on those he or she watches in daily life.

Actual the fact is all the surroundings are filled with thoughts which are called senses like love, violence, jealous etc. A human cannot be sitting 2 minutes silence without any thoughts disturbance. Some spiritual organizations tell to control your self to not to get thoughts into the mind, here mind is nothing but collection of thoughts.

But what I learn from an organization so called "Oneness University", please don't control your thoughts coming into the mind your self. I mean just see all the thoughts which are traveling into your mind.
Actually the man himself cannot give green signal to the thoughts, for example we get different positive types of thoughts when we visit temples, spiritual places, and green parks. But when we visits violent places, films, grave yards etc... Will get all negative thoughts scariness, lusty etc.

So my suggestion and formula is just watch the thoughts coming into the mind", I mean if you sitting on the railway platform, you watch all the trains going here and there, some stops at station and some runs through the tracks. The passenger just watches the trains, but he doesn’t sit in to each train which stops at station.

In the same way, we should just watch the thoughts coming into our mind, don't touch them, don't interact with them as you might excite, leave it them selves as they cannot stay more time at our mind. So you should be witness the thoughts as an third person. This is so called “SAKSHI BAVA STHITHI”

Monday, May 24, 2010

Code Analysis, Code metrics and Profiling

In Visual Studio 2008, you can also see a new menu in the main menu named Analyze menu. There are mainly three commands: Run Code Analysis, Calculate Code Metrics and Profiling. The Code Analysis menu provides a report with the main changes to do in order to find errors and comply with best practices of the technology. The Code Metrics menu helps users find and act upon complex area of the application through metrics that are applied to your code. Let's see an example of running Code Metrics over our examples. In this report, we have some metrics such as Class Coupling, Depth in Inheritance, Cyclomatic Complexity, Lines of Code, and Maintainability Index.

Class Coupling indicates the number of dependencies between entities of your problem domain. Lower number indicates candidates for possible reuse.

Depth in Inheritance indicates the number of classes that are above in the inheritance tree from a particular class.

Cyclomatic Complexity indicates the total number of individual path through the code. It's calculated by counting the number of decision points (if, switch, do, while, foreach, for) and adding 1.

Lines of Code indicate the total number of lines of code excluding white space, comments, braces, declaration of members, types and namespaces.

Maintainability Index is an index from 0 to 100 indicating the overall maintainability of a member or a type (at assembly level,it's the total number of maintainability index of all types within it). It's calculated from other metrics such as Halstead Volume (which factors in the number and use of operands and operators), Cyclomatic Complexity and Lines of Code. Lower values indicate complex and hard to maintain. The report of this field also indicates the status with an icon.

Code Analysis

Microsoft is making the visual studio to be used more secure and quality.
It has introduced code analysis and code metrics to check the health condition of the application and also it digs deep and indentifies the un-maintainable complex hotspots.

Other new features of the code analysis are to provide running the code analysis before check in the code. Along with analyzing the anonymous types and lambda expressions, including additional checking on security, globalization, spelling, grammar and following the best practices.

And also it analysis performance improvements that cut analysis time over managed code by two times, and use half as much memory than in Visual Studio 2005

Saturday, May 15, 2010

IIS Error: Changing the application's trust level in the configuration file

Error Description while browsing the website under IIS


"The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file."

Initially I deleted the virtual directory, created again, set the permission to anonymous, set the browse and execute permissions, no solution.

Then after doing many trials, I found out the basic problem reading the error "not allowed by the security policy".
In web configuration file if we set the security policy to Fully Trusted, then problem solved and application working fine.

or

Set the trust level to the main configuration file in the "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config"

To access the "TFS web access", team expolorer installation is needed?

Yes and No

If the developer or tester has team explorer installed in thier systems, then they can use the TFS web Access URL for managing all other than the check-in check=-out code.

(or)

If the organization has the TFS CAL, then every one under CAL access the "TFS web access" with out installing the team explorer in individual systems. No need to get procured per seat 500$ for getting the web access.

Team Explorer - Team Web Access

In my opinion, for developers and testers Team Explorer is better solution because they use Visual Studio in their everyday work. This integration can be even more natural if the development team uses TFS to check-in code and if you setup links between code check-in and work items.

On the other hand, for project managers, business analysts, etc. TFS Web Access will be better solution - in this scenario, they do not need Team Explorer on their workstations. Anyhow, for reporting Team Explorer is pretty useless...

But one question every one have that is....

How can we get the TFS web access with out having the team explorer?
check in my next posting

Thursday, May 6, 2010

Team Foundation Server Web Access

Is there any way to do all processes which can be done by TFS client?

The current question is how a QA /Testers can log defects with out the TFS Client?

Yes, Microsoft give Team Foundation server do all common tasks when you work with Team Foundation Server client.

Yes, we can do this, Visual Studio Team Foundation Server provides the Team System Web Access which is a customizable Web interface that can access Team Foundation Server project data.

It acts as a client of Team Foundation Server and provides most, but not all, of the functionality available through the Team Explorer client.

You can use Team System Web Access through a remote connection to perform the following functions:

  • Create, view, query for, and track bugs / work items.
  • View / Check / Get the latest version / Specific version from the Source Code
  • Manage a project's document libraries.
  • View version-controlled files and related version information.
  • Manage the software build process by running builds and reviewing build results.
  • Generate reports to track status and trend information over time for a team project.
  • Customize browser themes and user settings.

Please find the below link run the TFS web page to do all transactions.

http://ushoutfs01v:8090 -> Select the project -> do things….

Thursday, April 29, 2010

Education -Commercialization

Education as a whole is a part and parcel of life. In every sector now a day’s it has become as prime requisite.


In the past, education system was very precious, knowledge giving and beneficiary to each and every class. But now a days the education awareness programs were improved but the procurement of the education has became very costlier because of the commercialization in the managements.


People, if opt for government organizations they are not renovating the existing system and the facilities are very poor.


So common man opinion is that government should take certain step which regulates the managements to down the fees rate. So that every one can go for the education.

Private Schools - Fees Hike

It was told that education is for every citizen, starts from childhood to old age, starts from village to city. In olden days people use to get the free education and that too with good quality.

But seeing the current trend in the market, education became commercial. This making the competition between institutions rather increasing the quality and made education to every one.

Wednesday, April 28, 2010

Role of Software Architecture

Software Architecture is an process to tell the success of the project.
It means the performance, reliability, productivity, timeliness etc...

The role starts from kick-off of the project till the end of the project cycle. As an architect usually concentrates on the the following areas.


1. What is the client expectations
2. What is the Business functionality
3. How well the business is understood
4. How the high level design is done
5. Prepare well Low Level Designing for the High level designing
6. Choose the technology to deliver the right inputs (Windows or Web or Smart client applications)
7. Choose the Source control like Team Foundation Server
8. Plan the Project Management system
9. Design the layered Architecture, it may be 3-tier or n-tier
10. Choose the Service Oriented Architecture
11. Analyze the risk management
12. Timely output

Monday, April 26, 2010

How can one make others aware of Nature / Environment

Every one has awareness to make good things around the society, but some people do not realize and they do mistakes regularly polluting the nature. I have my opinion to change those people.

One cannot change all the people in one time anyway. But our actions can change them a lot. When you see that the persons who are throwing the trash on the road, polluting the water and air or doing something that is not good, instead of telling them that they are wrong, initiation should come from our side, we should go straight to the trash, pick it up and throw it in the dustbin. And do first water harvesting at your house. Make sure that others and neighbors see it.

Do it continuously. I know that this will take time. In many cases, it will take unto many months. But finally, the person will feel deeply ashamed when other people see that you are such a nice person and he is such a bad guy and one day, will get converted into a nice person.

Believe me this is the only method that will help you change the person who does badly to the nature and environment


Rainwater harvesting is the final solution

In my last 5 years analysis, never ending population growth and at same time existing water resources are coming down. People just want their home and industry needs to be fulfilled, they not bother about the cutting the trees and saving the water.

I saw one place where in last 2 years all the community occupied a small natural lake and built the houses. Now every one is facing the water scarcity. My concern is how the next generation will drink the water, I am totally disturbed whenever I think about the decreased water levels.

So every one should decide to do something about the scarcity of water; they must plan to construct a rainwater harvesting system at an every house...

Much of India is plagued by a shortage of water. In most of the country, it rains for just about 100 hours a year, and all within one season, making water conservation and storage challenging. The city of Hyderabad, located on the dry Deccan Plateau, receives even less rainfall. As a consequence, every drop of water counts.

Rainwater harvesting is the process of collecting rainwater and either using it directly or letting it absorb into the soil to increase the groundwater level. Rainwater often flows unused into drains and either evaporates or pools, causing flooding and soil erosion. Instead, rainwater harvesting systems direct the water to collect in a container, or absorb evenly into the soil, increasing the groundwater levels. These systems, which can range from an upright water-collection barrel to a pit in the ground, can also provide water for land irrigation, flushing toilets and washing laundry. Rainwater harvesting is a cost-effective way to collect and utilize water.

Thursday, April 22, 2010

How to delete an TFS Project

The existing team project can be permanently deleted by using "TFSDeleteProject" Application which resides in the
"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE"

Run the file in command prompt and type the
"TFSDeleteProject Server\Server Name Team Project Name”

The good practice is those avoid deleting the project frequently, and make sure about the requirements before creating the project

Is it possible to switch from one process template to other (MSF Agile to MSF Cmmi and viceversa..)

No it is not possible to switch the process template from one to another once the team project is created.


Because whenever the team project is created with CMMI or Agile process templates it will configure default classifications (areas and iterations), default security groups and permissions of the process elements, this will be been defined based on the selected process template.
If the users still wish to begin (Change) using the MSF Agile template or MSF CMMI template, my advice is to begin fresh, with a new project.

Wednesday, April 21, 2010

Code Analysis and Code Coverage

Code analysis analyzes manages the managed code and reports information about the assemblies, such as violations of the programming and design rules set forth in the Microsoft .NET Framework

The analysis represents the checks it performs during an analysis as warning messages which identify any relevant programming and design issues and, when it is possible, supply information about how to fix the problem.

It is good practice to make sure to follow run code analysis as part of check-in policy.

Code coverage analysis is a process for developers. Its main mission is to find areas of a program not exercised by a set of test cases. This does functional testing which compares test program behavior against a requirements specification.

So, we can build an application to specify what projects to build, what triggers a build to run, what automated tests to run, and where to deploy the output. After the build runs, data about the build results is stored in the warehouse, where it is available to view through build reports.

With Team Foundation Build, you can create build definitions to automate compiling applications, running associated tests, performing code analysis, doing code coverage, releasing continuous builds, and publishing build reports.

Saturday, April 17, 2010

Microsoft released Visual Studio Team Foundation Server everywhere 2010

It's glad to hear that Microsoft has released Visual Studio Team Foundation Server everywhere 2010 on April 12th. This is an advantage to all the community working on non windows operating system and who works on the command line utilities. So this version gives all the features such as source control, bug tracking system, project management. It includes the popular Plug-in for Eclipse and cross-platform command-line clients for Team Foundation Server

Previously in my blog, I was suggested the java teams to use the teamPrise product for using the TFS features., So we wait how the new one will be feasible to the teams.

Bhargava Vangapally
VanBhargava
http://vangapally.com/

Wednesday, April 7, 2010

How do Java teams working with RAD IDE can use this Teamprise?

Yes, developers can perform all of their source control, bug tracking, build, and reporting operations from within Eclipse-based IDEs, such as Rational Application Developer, JBoss, BEA Workshop, and Adobe Flex Builder.

Bhargava Vangapally (vanBhargava)

Microsoft/TeamPrise Licencing

Question is that does it come with Microsoft license for that? or a separate license is required?

In the coming days Teamprise products will be incorporated into Visual Studio, Microsoft is incorporating these tools into Visual Studio 2010 release. Developers will have a choice between jointly purchasing the Teamprise Client Suite along with Team Foundation Server 2010, or subscribe to MSDN as the portal will feature Teamprise Client Suite as part of the subscription. Developers already owning MSDN subscriptions will see the new solutions added when they become available.

The new product will be priced at $799 (USD) and will support a large portion of the Team Foundation Server 2010 feature compatible with 2005 and 2008 versions. This product will also include one (1) Team Foundation Server Client Access License (CAL). The new product will also be included as an MSDN subscription benefit for customers with Visual Studio 2010 Ultimate with MSDN.

http://www.microsoft.com/pathways/teamprise/FAQ.htm

http://news.softpedia.com/news/Cross-Platform-Support-Visual-Studio-2010-Evolves-with-Teamprise-126472.shtml

http://blogs.msdn.com/bharry/archive/2009/11/09/microsoft-has-acquired-the-teamprise-client-suite.aspx

Thursday, April 1, 2010

Net 3.5 introduces the Entity Framework Model

Previously developers use to create the database schema and then do operations on database. Under the architecture DAL to do all the DDL and DML operations for business, and good practice to not to write the inline queries in the frontend to do manageability.

Do you that that without writing the views, functions, stored procedures etc. can we do business applications. Yes we can do it, now .Net 3.5 introduces the entity framework model which specifies the conceptual model of the data via the Entity-Relationship data model, which deals primarily with Entities and the Relationships they participate.

Entity Data Model in Visual Studio initially generates a 1:1 (one to one) mapping between the database schema and the conceptual schema in most of the cases. In the relational schema, the elements are composed of the tables, with the primary and foreign keys gluing the related tables together.

So this generates the contexts to the entire database schema using the entity model. So whenever to talk to database, call the object contexts. And other benefit is that until and unless execute the call; system doesn’t try to connect to database.

This makes the less code and high performance of the transactions. With the single line of code developer can do all the DDL and DML operations.

So why late, start using the entity framework…

Oh Ohh, I forgot to say that .Net 4.0 introducing the feature to create database schema using the entity data model like Ervin tool from Computer Associates. So depend on the business designing (Entity relationships) the entity model, then click once to create the perfect database depend on the schema. So this hears happy to all developers.


So do you think that Microsoft is making people to fold their hands with the latest tools which making unaware of basic and fundamental stuff.

Actually in my opinion, now we should not think about “How to do”, think about “What to do”, all other will be provided by vendors.

Tuesday, March 30, 2010

ClickOnce::Deploy Windows-based applications to a Web server


It seems that the developers are deploying manually (Copy & Paste components to virtual directory) to run the windows application from web browser. They doing building, moving the all bin files to virtual directory when ever application is updated.


This process generally has the security limitations and hard to manage. I just want to share and suggest there is a known easy way to deploy the windows application to web server and run the file from user’s machine. Visual Studio 3.5 provides the Click Once deployment which replaces all this process.


ClickOnce deployment allows you to publish Windows-based applications to a Web server or network file share for simplified installation. It provides full support for publishing and updating applications deployed with ClickOnce.


ClickOnce can provide automatic application updates. A ClickOnce application periodically reads its deployment manifest file to see if updates to the application are available. If available, the new version of the application is downloaded and run. For efficiency, only those files that have changed are downloaded.


So instead of doing the manual deployment it is easy to use this process which reduces the manageability. I suggest using this, helps through out the time till the application expires.

Friday, March 26, 2010

Teamprise Client Suite

Teamprise Client Suite currently includes the following:

Teamprise Plug-in for Eclipse: Allows developers to perform all their source control, bug tracking, build and reporting operations from within Eclipse

Teamprise Explorer: Combines all the functionality available to Eclipse developers using the Teamprise Plug-in into a stand-alone, cross-platform graphical user interface (GUI) application

Teamprise Command-Line Client: This provides a cross-platform, non-graphical interface to Team Foundation Server, making it perfect for scripting and build scenarios or for developers who prefer a command-line interface

Team Foundation Server for Java Applications with in Eclipse

As I am promoting the Team Foundation server across the teams, during our last two demonstrations with project teams, a question that how Java Applications can use the Team Foundation Server which are running on non windows operating systems such as Linux, Max OS X.

Here is the Solution:

Java applications are typically developed and deployed in multiple environments and platforms work under Eclipse IDE uses below Configuration Tools.

1. Java Configuration Tool- JFig
2. Sub version
3. Concurrent Version Systems- CVS
4. IBM- Configuration Management Version Console- CMVC

But Microsoft Team Foundation server doesn’t run under non windows operating systems cannot support java applications. So to use TFS features efficiently, Microsoft provides the “Teamprise tool” costs $499 per user or with discounted volume licenses.

Teamprise is a suite of client applications for accessing Microsoft Visual Studio Team Foundation Server from outside the Visual Studio Integrated Development Environment (IDE). Teamprise enables development teams to use the source control, bug tracking, work item tracking, build, and reporting features of Team Foundation Server from within the Eclipse IDE, and from other operating systems, including Linux and Mac OS X.

Once we install “Teamprise Plug-in for Eclipse”, it allows us to satisfy the needs of developers working in .NET and those working in Java on Linux desktops can perform all TFS operations.


References:
http://www.teamprise.com/products
http://www.teamprise.com/news/2007/05/teamprise_announces_java_sdk_f.html
http://www.woodwardweb.com/2009/10/

Not getting Latest version - TFS

When two developers are working on same file which is checked out by both, so whenever one changes something and check in source, the new source has to be used. When one check out the source edited by other developer, first developer were getting the same version as the second have but not the latest source. So every time when you do the Get Latest Version you don’t get the latest source and you'll be prompted with the resolve conflicts dialog.

Let me explain the reasoning behind it. When you perform a get latest version operation to populate your workspace with a set of files, you are setting yourself up with a consistent snapshot from source control. Typically, the configuration of source on your system represents a point in time snapshot of files from the repository that is known to work together, and therefore is buildable and testable.

As a developer you working in a workspace, you are isolated from the changes being made by other developers. Ideally when you do this, you'll update the entire configuration of source, and not just one or two files. Why? Because changes in one file typically depend on corresponding changes to other files and you need to ensure that you've still got a consistent snapshot of source that is buildable and testable.

This is why the checkout operation doesn't perform a get latest on the files being checked out. Updating that one file being checked out would violate the snapshot and could result in a non buildable and testable.

As an best practice, Team Foundation forces users to perform the get latest operation at some point before them check in their changes. That's why if you attempt to check in your changes, and you don't have the latest copy, you'll be prompted with the resolve conflicts dialog.

And one more thing as I already told you that you not to use of "Get Latest from Solution Explorer" because it is far slower and less reliable than doing it from the Source Control Explorer. Solution explorer has to crawl your whole project structure and issue non-recursive calls, but Source Control window requires no parsing and issues one single recursive web service call.