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.