Friday, February 22, 2008

Determining The Computer Name Associated With An IP Address (Windows 2k/XP/2003)

 

Determining The Computer Name Associated With An IP Address (Windows 2k/XP/2003)

Finding the IP address assigned to a computer is very simple. All you have to do is open the command prompt and use the IPCONFIG command. If you want to find the IP address associated with a specific computer name, you can use the NBTSTAT command. The syntax for doing so is as follows:

NBTSTAT -a <computername>

What if you want to find the computer name associated with a specific IP address? The solution is simple. You can once again find the information you are looking for using the NBTSTAT command, only this time with a different switch. Instead of using -a, you will use -A and specify an IP address as shown below:

NBTSTAT -A <ipaddress>

The results will tell you the computer name that is currently associated with the IP address you have specified.

 

 

 

--------------------------------------

Charnsak Srisawatsakul (Joyce)

Product Programme IT Team.

 

Loan and Related System.

Bangkok Bank Public Company Limited.

7664

 


----------------------------------
Confidentiality and Disclaimer

This e-mail and any attachments hereto (the E-mail) may contain information which is confidential and/or proprietary and transmitted for the sole use of the recipient(s) named above and for the intended purpose only. If you are not the intended recipient of the E-mail, you are hereby notified that any review, copy, retransmission, distribution, or use of the E-mail in any manner for any purpose is strictly prohibited and please notify the sender, delete the original of the E-mail and destroy all copies immediately. Bangkok Bank accepts no responsibility for any mis-transmission or virus contamination of, or interference with, the E-mail, or for any loss or damage that may be incurred as a result of the use of any information contained in the E-mail.    

Tuesday, February 12, 2008

Optimize the launch of the Visual Studio 2005

  • Disable "Start Page".
    1. Go to Tools | Options.
    2. In Environment | Startup section, change At startup setting to Show empty environment.
  • Disable splash screen.
    1. Open the properties of Visual Studio 2005 shortcut.
    2. Add the parameter /nosplash to the target.
  • Close all unnecessary panels/tabs to prevent them from appearing when the IDE loads.

Speed up Visual Studio 2005

  • Make sure Visual Studio 2005 SP1 is installed.
  • Turn off animation.
    Go to Tools | Options | Environment and uncheck Animate environment tools.
  • Disable Navigation Bar.
    If you are using ReSharper, you don't need VS2005 to update the list of methods and fields at the top of the file (CTRL-F12 does this nicely). Go to Tools | Options | Text Editor | C# and uncheck Navigation bar.
  • Turn off Track Changes.
    Go to Tools | Options | Text Editor and uncheck Track changes. This will reduce overhead and speeds up IDE response.
  • Turn off Track Active item.
    This will turn off jumping in the explorer whenever you select different files in different projects. Go to Tools | Options | Projects and Solutions and uncheck Track Active Item in Solution Explorer. This will ensure that if you are moving across files in different projects, left pane will still be steady instead of jumping around.
  • Turn off AutoToolboxPopulate.
    There is an option in VS 2005 that will cause VS to automatically populate the toolbox with any controls you compile as part of your solution. This is a useful feature when developing controls since it updates them when you build, but it can cause VS to end up taking a long time in some circumstances. To disable this option, select the Tools | Options | Windows Forms Designer and then set AutoToolboxPopulate to False.

 

 

 

 

--------------------------------------

Charnsak Srisawatsakul (Joyce)

Product Programme IT Team.

 

Loan and Related System.

Bangkok Bank Public Company Limited.

7664

 


----------------------------------
Confidentiality and Disclaimer

This e-mail and any attachments hereto (the E-mail) may contain information which is confidential and/or proprietary and transmitted for the sole use of the recipient(s) named above and for the intended purpose only. If you are not the intended recipient of the E-mail, you are hereby notified that any review, copy, retransmission, distribution, or use of the E-mail in any manner for any purpose is strictly prohibited and please notify the sender, delete the original of the E-mail and destroy all copies immediately. Bangkok Bank accepts no responsibility for any mis-transmission or virus contamination of, or interference with, the E-mail, or for any loss or damage that may be incurred as a result of the use of any information contained in the E-mail.    

How to Speed up Visual Studio 2005?

 

I found these great links in scott bolg while searching for anyways to speed up Visual Studio 2005 Performance.

 Thanks scottgu

 

 

 

--------------------------------------

Charnsak Srisawatsakul (Joyce)

Product Programme IT Team.

 

Loan and Related System.

Bangkok Bank Public Company Limited.

7664

 


----------------------------------
Confidentiality and Disclaimer

This e-mail and any attachments hereto (the E-mail) may contain information which is confidential and/or proprietary and transmitted for the sole use of the recipient(s) named above and for the intended purpose only. If you are not the intended recipient of the E-mail, you are hereby notified that any review, copy, retransmission, distribution, or use of the E-mail in any manner for any purpose is strictly prohibited and please notify the sender, delete the original of the E-mail and destroy all copies immediately. Bangkok Bank accepts no responsibility for any mis-transmission or virus contamination of, or interference with, the E-mail, or for any loss or damage that may be incurred as a result of the use of any information contained in the E-mail.    

Friday, February 8, 2008

Cannot create/shadow copy when that file already exists

Cannot create/shadow copy when that file already exists

The .Net Framework has a feature called Shadow Copy. Shadow copy is enabled on every appdomain created by ASP.NET by default. By default assemblies loaded will be copied to a shadow copy cache directory, and will be used from that location. Why does ASP.Net do this? So the original file is not locked and can be modified. An interesting error I have ran into intermittently when running ASP.Net apps with the debugger is 'Cannot create/shadow copy when that file already exists' I'm still not sure why this happens only on occasion, as I can often clean my solution, then reload a web app and it will work fine then. But if you are getting it frequently enough for it to affect your work, you can add the following to your app's web.config or the master .Net web.config:

<system.web>
   <hostingEnvironment shadowCopyBinAssemblies="false" />
</system.web>

 

 

 

--------------------------------------

Charnsak Srisawatsakul (Joyce)

Product Programme IT Team.

 

Loan and Related System.

Bangkok Bank Public Company Limited.

7664

 


----------------------------------
Confidentiality and Disclaimer

This e-mail and any attachments hereto (the E-mail) may contain information which is confidential and/or proprietary and transmitted for the sole use of the recipient(s) named above and for the intended purpose only. If you are not the intended recipient of the E-mail, you are hereby notified that any review, copy, retransmission, distribution, or use of the E-mail in any manner for any purpose is strictly prohibited and please notify the sender, delete the original of the E-mail and destroy all copies immediately. Bangkok Bank accepts no responsibility for any mis-transmission or virus contamination of, or interference with, the E-mail, or for any loss or damage that may be incurred as a result of the use of any information contained in the E-mail.