Friday, August 7, 2020

IIS Reset using Command Prompt

 


1) Open the Command Prompt. Click on Start > All Programs > Accessories > Command Prompt
Note: It may be necessary to right click on the Command Prompt icon and select "Run as Administrator", if the following steps fail with a warning stating the task requires elevation. 

2) Once the Command Prompt window opens, type 'iisreset' (without quotes) and then press Enter.

3) Or - 

To start IIS on command line, Open terminal and type:

c:/> iisreset /start
 Stop IIS via Command Line:

Use following command to stop IIS service on Windows operating systems. Either use Windows command prompt to run this command or execute it from run window.

c:/> iisreset /stop
ReStart IIS via Command Line:

Use the following command to restart IIS service on Windows operating systems. Either use the Windows command prompt to run this command or execute it from the run window.

c:/> iisreset /restart

[or]

c:/> iisreset
Default iisreset command restarts the IIS service. So you don’t need to provide /restart parameter option to iisreset command to restart IIS service
To restart IIS using the IISReset command-line utility
  1. From the Start menu, click Run.
  2. In the Open box, type cmd, and click OK.
  3. At the command prompt, type
    iisreset /noforce
    .
  4. IIS attempts to stop all services before restarting. The IISReset command-line utility waits up to one minute for all services to stop. If the services cannot be stopped within one minute, all IIS services are terminated, and IIS restarts.

Failed to start build #21.x.x.xx in branch feature/Branch

 

Failed to start build #2.10.0.36 in branch feature/Branch at xx Oct 20 12:18 on teamcity--winagentxx



Failed to perform checkout on agent: '"C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\BuildAgent\temp\buildTmp\pass4179502314375956300.bat -c credential.helper= -c credential.helper=C:\BuildAgent\temp\buildTmp\credHelper8372936110454433838.bat reset --hard 12845f9e01e475ec5d9ab6bc6da0c98c4abceb0b' command failed.

exit code: 128
stderr: fatal: Unable to create 'C:/BuildAgent/work/b512b387ffdf2f48/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.


One of the solution is GO TO AGENTS In team city --- And reboot the Agent. 



Visual Studio 2015 doesn't discover unit tests

 

Some things I've noticed I have to do from time to time to get tests to show up properly.

  1. If your solution is in a protected drive that you need administrator access to read/write, sometimes only a portion of the tests come up. Definitely run VS as administrator in that case.

  2. If your solution is 64 bit, make sure that Test > Test Settings > Default Processor Architecture is set to x64. Sometimes it gets set to x86. Set it to x64, then rebuild.

  3. Sometimes just restarting Visual Studio does the trick because the test explorer will start up again.

  4. Don't forget to actually build the test project/solution. (If you want it to get built with the rest of the projects, right-click on your solution > Properties > Configuration Properties > Configuration > check the "Build" box for your test project)

  5. Ensure the tests are in a public section of your test class


https://stackoverflow.com/questions/25304425/visual-studio-2013-doesnt-discover-unit-tests



How to install   NUnit Test Adapter 


http://nunit.org/nunitv2/docs/2.6.4/vsTestAdapter.html



NUnit Test Adapter for Visual Studio

Installation

Beginning with version 0.95 there are two ways of installing the adapter within Visual Studio. See Note 1 below for info on how to choose.

  1. Use the Extension Manager
  2. Add it as a Nuget package to your solution. (New in 0.95, requires VS 2012 Update 1 or higher)

Installing With the Extension Manager

To install the NUnit Test Adapter using the Extension Manager, follow these steps:

  1. From within Visual Studio 2012, 2013 or 2015, select Tools | Extension Manager.
  2. In the left panel of the Extension Manager, select Online Extensions.
  3. Locate (search for) the NUnit Test Adapter in the center panel and highlight it.
  4. Click 'Download' and follow the instructions.

Use the Extension Manager to ensure that the NUnit Test Adapter is enabled.

Installing the Nuget Package

To add it is a Nuget package, you must have an active solution, then follow these steps:

  1. From Tools menu, use Library Package Manager, select Manage NuGet packages for solution
  2. In the left panel, select Online
  3. Locate (search for) NUnit Test Adapter in the center panel and highlight it
  4. You will find two packages, one without framework and one with framework. See note 2 below for which to choose.
  5. Click 'Install'
  6. In the "Select Projects" dialog, you need to select at least one project to add the adapter to, see notes below.




Thursday, August 6, 2020

Visual Studio 2015 doesn't discover unit tests



If you using NUnit, make sure to download NUnit Adapter first.

Go to Tools → Extensions and Updates… → Online → search for "NUnit Test Adapter".


Refer:


https://stackoverflow.com/questions/25304425/visual-studio-2013-doesnt-discover-unit-tests



Sunday, June 30, 2019

Emotional Resilience




About Resilience


               Since many years I have been going though different experience with human relationship, all over. Here all over, I mean, in my personal relationship , in professional relationship, in friendship. I was kind of feeling drastic shift in terms of .... how I use to see the human relationship.


I never knew what was going on, why people was behaving differently. Somewhere I realized .. it may not be possible every person on the earth is against me.. There might not be something wrong inside me. So here was the tipping point for me to research on myself.  Honestly after spending some significant time on researching my self. I didn't get anything wrong within - in treating the people or my behavior for others. But still somewhere something was not right....


After lot of reading and researching.. I finally got one psychology term
- Emotional Resilience.
Resilience means one face stresses and challenges and bounce back and recover and in doing so one can enrich one's life. In simple resilience means learn from your mistake not avoid making the mistakes. Or face the stress not eliminate them. Rebound from your failures. It's an ability to bounce back.

Definition of 
resilience (by mw.com)1  the capability of a strained body to recover its size and shape after deformation caused especially by compressive stressan ability to recover from or adjust easily to misfortune or change


Psychological definition of Resilience - How researchers look at resilience

1. Positive outcome despite high risk status
2. Competence in the face of stress
3. Adapting to trauma
4. Using challenges for growth to make future hardships more manageable. 

How to cultivate Resilience


Be patience - don't be so reactive. I use to react every other thing which I ears would not like. So lesson I learned is by practicing patience.

Be Optimistic - becoz nothing is forever, if you're seeing the adverse situation right now, it is temporary state of the time. Be Optimistic and be patience this will adverse time will also pass away.
 

Do meditation - whatever belief you follow and what ever religion or super power your follow. Get spiritual and do meditation . Something like Yoga or and physical activity\exercise will help. 

Be
Genuine - Be your own, in the process of changing .. don't try to become something else, that will more harmful then helpful. 


Get Social
- no not talking about social media.. avoid social media I would recommend. Try to get social and active in social activities - I know it's difficult if you're not social being like me.. 

I've always been mistaken as arrogant dude - even though that is not true. I hardly have any words to share when it comes to social gathering. I'm like a person.. 'more the crowd more lonely and gloomy  I would be' . So it's very hard for me in social activities. 
But believe me being social sometimes with like-minded people helps to cultivate Resilience. 

Self Confidence- Try to get self confidence as much as you can , you can get it by being coming out your comfort zone and try to get bit social. Or do one construct thing in  a day. Even a small accomplishment will help you to get more self confidence. 


Self Awareness- one of the most important ingredient to cultivate Resilience is self awareness. One must  knowing the needs- knowing what one  need, what one don’t need, and when it’s time to reach out for some extra help. 


Leveraging  your strengths  while developing the missing one is important aspect of getting the edge over what we're looking for.  for example my strong strength is Continuous learning - and I'm planning to use this as a tool to develop my missing attribute (ie. resilience)


Be mindful, it's not a one day pill to get you there, it's a process .. a continuous  process - a journey. This is something which I plan for myself to start this journey of cultivating emotion resilience. If you're with me comment below -  let's peer review each other and get to the pinnacle of cultivating resilience.



Wednesday, June 5, 2019

What is Pollination Process?



What is Pollination ?
Pollination is a process of  taken pollen grains from an anther, the male portion of a flower, are transferred to a female part in the flower, known as the stigma. In order for pollination to be successful, the pollen grains transferred must be from a flower of the same species.
After the pollen grains land on the stigma, they create a pollen tube through the length of the style or stalk connecting the stigma and ovary. Once the pollen tube is complete, the pollen grain will send sperm cells from the grain down to the ovary. When the sperm cells reach the ovary and the egg cells, fertilization will occur, which will result in the formation of the seed. The seed will then be released from the parent plant and will be able to grow into a plant and continue the reproductive cycle using the method of pollination.


How bees pollinate flowers?
Look at video, the flowers provide bees the nectar and pollen, which is collected by bee. Then bee provide flowers with the means to reproduce, by spreading pollen from flower to flower , this process is called pollination.
Note : pollination helps plants to create seeds.
Watch live video - Exclusively shoot by writer to elaborate how pollination happens.

Health Benefits of Cashews

  Benefits of Cashews. Healthy food is an integral part of healthy body. Regular exercises such as Yoga and healthy diet is important to...