<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GTTools.com</title>
	<atom:link href="http://gttools.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://gttools.com</link>
	<description></description>
	<lastBuildDate>Fri, 17 Apr 2009 10:20:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to iterate a C# dictionary</title>
		<link>http://gttools.com/2009/01/how-to-iterate-a-dicitonary/</link>
		<comments>http://gttools.com/2009/01/how-to-iterate-a-dicitonary/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 23:07:23 +0000</pubDate>
		<dc:creator>GAT</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[collections]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://gttools.com/?p=65</guid>
		<description><![CDATA[The following snippet shows an easy way to iterate a C# dictionary:


            Dictionary&#60;int, string&#62; dictionary = new Dictionary&#60;int, string&#62;();

            dictionary.Add(1, &#34;Cat&#34;);
            dictionary.Add(2, [...]]]></description>
			<content:encoded><![CDATA[<p>The following snippet shows an easy way to iterate a C# dictionary:</p>
<pre name="code" class="c#">

            Dictionary&lt;int, string&gt; dictionary = new Dictionary&lt;int, string&gt;();

            dictionary.Add(1, &quot;Cat&quot;);
            dictionary.Add(2, &quot;Dog&quot;);
            dictionary.Add(3, &quot;Horse&quot;);

            foreach (var item in dictionary)
            {
                // do stuff with item
                Console.WriteLine(string.Format(&quot;{0} - {1}&quot;, item.Key, item.Value));
            }

            // Result:
            // 1 - Cat
            // 2 - Dog
            // 3 - Horse
</pre>
]]></content:encoded>
			<wfw:commentRss>http://gttools.com/2009/01/how-to-iterate-a-dicitonary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mercurial and Redmine on Bluehost</title>
		<link>http://gttools.com/2008/12/mercurial-and-redmine-on-bluehost/</link>
		<comments>http://gttools.com/2008/12/mercurial-and-redmine-on-bluehost/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 23:15:16 +0000</pubDate>
		<dc:creator>magnes</dc:creator>
				<category><![CDATA[bluehost]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[redmine]]></category>

		<guid isPermaLink="false">http://gttools.com/?p=67</guid>
		<description><![CDATA[bluehost mercurial redmine]]></description>
			<content:encoded><![CDATA[<p><a href="http://bugtracker.gttools.com/public/wiki/bluehost/BlueHost_setup">Here is how I installed Mercurial and Redmine on bluehost</a><br />
It is a script/screenshot walktrough on the entire setup.</p>
]]></content:encoded>
			<wfw:commentRss>http://gttools.com/2008/12/mercurial-and-redmine-on-bluehost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to export your SQL Server table &#8211; the easy way</title>
		<link>http://gttools.com/2008/12/how-to-export-your-sql-server-table/</link>
		<comments>http://gttools.com/2008/12/how-to-export-your-sql-server-table/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 20:45:52 +0000</pubDate>
		<dc:creator>GAT</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[toolbox]]></category>

		<guid isPermaLink="false">http://gttools.com/?p=32</guid>
		<description><![CDATA[Since I work as a consultant I always bring with me my &#8220;toolbox&#8221;. My latest addition to this toolbox is a SQL Server script created by Narayana Vyas Kondreddi
He has created a script that let you export your data, by generating a insert script,  from a given table in a very easy way.
All you [...]]]></description>
			<content:encoded><![CDATA[<p>Since I work as a consultant I always bring with me my &#8220;toolbox&#8221;. My latest addition to this toolbox is a SQL Server script created by <a href=" http://vyaskn.tripod.com" target="_blank">Narayana Vyas Kondreddi</a></p>
<p>He has created a script that let you export your data, by generating a insert script,  from a given table in a very easy way.</p>
<p>All you need to do to make is work is:</p>
<ul>
<li>Download the script and add the procedure called <strong>sp_generate_inserts<br />
</strong></li>
<li>Generate your insert script by calling: <strong>EXEC sp_generate_inserts &#8216;myTable&#8217;</strong></li>
</ul>
<p>The insert script will now be written to the output in query analyzer.</p>
<p>Please note that by default the query analyzer will only display the first 256 charachters from each line.<br />
You can change this setting from: <strong>Tools-&gt;Options-&gt;Query Result-&gt;SQL Server-&gt;Result to Text</strong>.</p>
<p>Maximum allowed value is 8192.</p>
<p>You can download the script here: <a title="http://vyaskn.tripod.com/code/generate_inserts_2005.txt" href="http://vyaskn.tripod.com/code/generate_inserts_2005.txt" target="_blank">http://vyaskn.tripod.com/code/generate_inserts_2005.txt</a>.</p>
<p>For more information on how to use the script and all the features check out this page: <a title="http://vyaskn.tripod.com/code.htm#inserts " href="http://vyaskn.tripod.com/code.htm#inserts " target="_blank">http://vyaskn.tripod.com/code.htm#inserts </a></p>
]]></content:encoded>
			<wfw:commentRss>http://gttools.com/2008/12/how-to-export-your-sql-server-table/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to change a column collation to the default database collation</title>
		<link>http://gttools.com/2008/11/change-column-collation-to-default-database-collation/</link>
		<comments>http://gttools.com/2008/11/change-column-collation-to-default-database-collation/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 22:05:31 +0000</pubDate>
		<dc:creator>GAT</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://gttools.com/?p=26</guid>
		<description><![CDATA[If you for some reason needs to change the collation of a column in SQL Server to the default database collation, you can use the following syntax:
ALTER TABLE &#60;table_name&#62; ALTER COLUMN &#60;column_name&#62; &#60;current_data_type&#62; COLLATE database_default
Eg.:
ALTER TABLE myTable ALTER COLUMN myColumn TEXT COLLATE database_default
]]></description>
			<content:encoded><![CDATA[<p>If you for some reason needs to change the collation of a column in SQL Server to the default database collation, you can use the following syntax:</p>
<p><span style="color: #3366ff;">ALTER TABLE </span><em>&lt;table_name&gt;</em> <span style="color: #3366ff;">ALTER COLUMN</span> <em>&lt;column_name&gt; &lt;current_data_type&gt;</em> <span style="color: #3366ff;">COLLATE </span>database_default</p>
<p>Eg.:</p>
<p><span style="color: #3366ff;">ALTER TABLE </span>myTable <span style="color: #3366ff;">ALTER COLUMN</span> myColumn <span style="color: #3366ff;">TEXT COLLATE </span>database_default</p>
]]></content:encoded>
			<wfw:commentRss>http://gttools.com/2008/11/change-column-collation-to-default-database-collation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unauthorized error when using Integrated Security</title>
		<link>http://gttools.com/2008/11/unauthorized-error-when-using-integrated-security/</link>
		<comments>http://gttools.com/2008/11/unauthorized-error-when-using-integrated-security/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 18:39:09 +0000</pubDate>
		<dc:creator>GAT</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Integrated Security]]></category>
		<category><![CDATA[Kerberos]]></category>
		<category><![CDATA[windows 2003 server]]></category>

		<guid isPermaLink="false">http://gttools.com/?p=20</guid>
		<description><![CDATA[Sometimes when I&#8217;m setting up a new server and creating a site using only integrated security I am unable to access the site.
Instead of direct access to the site, a dialog pops up asking for user name and password. Even if I enter a valid domain user and the correct password no access is given [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes when I&#8217;m setting up a new server and creating a site using only integrated security I am unable to access the site.</p>
<p>Instead of direct access to the site, a dialog pops up asking for user name and password. Even if I enter a valid domain user and the correct password no access is given to the site. After three attempts this message occurs:</p>
<p><strong>HTTP Error 401.1 &#8211; Unauthorized:  Access is denied due to invalid credentials</strong></p>
<p>IIS is by default using Kerberos for authentication. This error occurs because the Kerberos authentication for some reason fails.</p>
<p>The easiest way to fix this is to change the default authentication mode for IIS from Kerberos to NTLM.</p>
<p>To change the default authentications mode to NTLM follow these steps:</p>
<ol>
<li>Open a command window.</li>
<li>Navigate to the Adminscripts folder on the server. This is default found on C:\Inetpub\Adminscripts.</li>
<li>Run the following command:<strong><span class="userInput">cscript adsutil.vbs set w3svc/NTAuthenticationProviders &#8220;NTLM&#8221;
<p></span></strong></li>
<li><span class="userInput">Run <strong>iisreset</strong></span></li>
</ol>
<p>You should now be able to access the site using Integrated Security.</p>
<p>For more information on this issue, check out this KB article: <a title="http://support.microsoft.com/kb/871179" href="http://support.microsoft.com/kb/871179" target="_blank">http://support.microsoft.com/kb/871179</a></p>
]]></content:encoded>
			<wfw:commentRss>http://gttools.com/2008/11/unauthorized-error-when-using-integrated-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging gac assemblies</title>
		<link>http://gttools.com/2008/03/debugging-gac-assemblies/</link>
		<comments>http://gttools.com/2008/03/debugging-gac-assemblies/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 20:50:53 +0000</pubDate>
		<dc:creator>GAT</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[assembly]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[gac]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://gttools.com/?p=13</guid>
		<description><![CDATA[Every now and then somebody says to me:
I just added my assembly to the gac and now I can&#8217;t debug my code anymore  
The fact is that debugging gac assemblies is quite easy when you know how to do it.
The problem with debugging gac assemblies is that you can&#8217;t add the pdb file to [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and then somebody says to me:</p>
<blockquote><p>I just added my assembly to the gac and now I can&#8217;t debug my code anymore <img src='http://gttools.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p></blockquote>
<p>The fact is that debugging gac assemblies is quite easy when you know how to do it.</p>
<p>The problem with debugging gac assemblies is that you can&#8217;t add the pdb file to the gac. What you need to do is to find the actual folder where your assembly is stored and copy your pdb file into this location.</p>
<p>To find this folder you need to run the following command from start-&gt;run:</p>
<p><strong>C:\WINDOWS\Assembly\GAC_MSIL</strong></p>
<p>Navigate to your assembly by drilling down in the folders. Copy your pdb file to the same folder as your dll.</p>
<p>You should now be able to debug your assembly by attaching to the running process.</p>
<p>( If you are not building your assembly as a MSIL assembly you will find it under:  C:\WINDOWS\Assembly\GAC or C:\WINDOWS\Assembly\GAC_32 )</p>
]]></content:encoded>
			<wfw:commentRss>http://gttools.com/2008/03/debugging-gac-assemblies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mercurial and Trac installation on bluehost</title>
		<link>http://gttools.com/2008/03/mercurial-and-trac-on-bluehost-2/</link>
		<comments>http://gttools.com/2008/03/mercurial-and-trac-on-bluehost-2/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 00:55:10 +0000</pubDate>
		<dc:creator>magnes</dc:creator>
				<category><![CDATA[bluehost]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">http://gttools.com/?p=10</guid>
		<description><![CDATA[Here is how I set up mercurial (Hg) and Trac on bluehost
I will make some minor changes to the scripts in a while to ease testing of new/other versions of all the software
which is installed by using some constants (e.g. $HOME).
All this because I&#8217;m to lazy to change to many variables in more than one [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://gttools.com/?page_id=12">Here is how I set up mercurial (Hg) and Trac on bluehost</a><br />
I will make some minor changes to the scripts in a while to ease testing of new/other versions of all the software<br />
which is installed by using some constants (e.g. $HOME).<br />
All this because I&#8217;m to lazy to change to many variables in more than one place <img src='http://gttools.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://gttools.com/2008/03/mercurial-and-trac-on-bluehost-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GT Trader Release info</title>
		<link>http://gttools.com/2008/03/gt-trader-release-info/</link>
		<comments>http://gttools.com/2008/03/gt-trader-release-info/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 00:10:20 +0000</pubDate>
		<dc:creator>GAT</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[trader]]></category>

		<guid isPermaLink="false">http://gttools.com/?p=6</guid>
		<description><![CDATA[GT Trader release notes are now found here.
]]></description>
			<content:encoded><![CDATA[<p>GT Trader release notes are now found <a href="http://gttools.com/?page_id=7" title="GT Trader release info " target="_blank">here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://gttools.com/2008/03/gt-trader-release-info/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use random data in WebTest</title>
		<link>http://gttools.com/2008/01/use-random-data-in-webtest/</link>
		<comments>http://gttools.com/2008/01/use-random-data-in-webtest/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 10:39:56 +0000</pubDate>
		<dc:creator>GAT</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Test Automation]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WebTest]]></category>

		<guid isPermaLink="false">http://gttools.com/?p=14</guid>
		<description><![CDATA[Usually my WebTests are coded WebTests, but sometimes the plain WebTest can do the job a lot faster.
My biggest problem working with plain WebTests, is that all the input to my forms are the recorded values.  In some of the text fields I need value variations every run.
To solve this problem I created a [...]]]></description>
			<content:encoded><![CDATA[<p>Usually my WebTests are coded WebTests, but sometimes the plain WebTest can do the job a lot faster.</p>
<p>My biggest problem working with plain WebTests, is that all the input to my forms are the recorded values.  In some of the text fields I need value variations every run.</p>
<p>To solve this problem I created a WebTest plugin. This plugin creates a couple of Context variables on the <span style="color: black">PreWebTest event</span>. These variables can easily be used in the WebTest using the: {{<span style="font-style: italic">VAR_NAME</span>}} syntax.</p>
<ul>
<li>{{RANDOM}}               &#8211; Gives you a random string of 5 characters</li>
<li>{{RANDOMNUM}}     &#8211; Gives you a string of 4 random numeric characters</li>
<li>{{TIME_STAMP}}      &#8211; Gives you a time stamp as a string</li>
</ul>
<p>Just copy the code below into a C# Class Library project and compile. You can now connect your WebTest to this WebTestPlugin.</p>
<pre><span style="color: blue" lang="EN-US">using </span><span style="color: black" lang="EN-US">System</span><span style="color: blue" lang="EN-US">;
using </span><span style="color: black" lang="EN-US">System.Collections.Generic</span><span style="color: blue" lang="EN-US">;
using </span><span style="color: black" lang="EN-US">System.Text</span><span style="color: blue" lang="EN-US">;
using </span><span style="color: black" lang="EN-US">Microsoft.VisualStudio.TestTools.WebTesting</span><span style="color: blue" lang="EN-US">;</span>

namespace <span style="color: black" lang="EN-US">MyPlugin
{
</span><span style="color: blue" lang="EN-US">    public class </span><span style="color: black" lang="EN-US">RandomGenerator : WebTestPlugin
    {
</span><span style="color: blue" lang="EN-US">        public override void </span><span style="color: black" lang="EN-US">PreWebTest(</span><span style="color: blue" lang="EN-US">object </span><span style="color: black" lang="EN-US">sender, PreWebTestEventArgs e)
        {</span>
<span style="color: black" lang="EN-US">            Random ran </span><span style="color: blue" lang="EN-US">= new </span><span style="color: black" lang="EN-US">Random()</span><span style="color: blue" lang="EN-US">;
</span><span style="color: black" lang="EN-US">            e.WebTest.Context[</span><span style="color: gray" lang="EN-US">"RANDOM"</span><span style="color: black" lang="EN-US">] </span><span style="color: blue" lang="EN-US">= </span><span style="color: black" lang="EN-US">GetRandomString(</span><span style="color: maroon" lang="EN-US">5</span><span style="color: black" lang="EN-US">)</span><span style="color: blue" lang="EN-US">;
</span><span style="color: black" lang="EN-US">            e.WebTest.Context[</span><span style="color: gray" lang="EN-US">"RANDOMNUM"</span><span style="color: black" lang="EN-US">] </span><span style="color: blue" lang="EN-US">= </span><span style="color: black" lang="EN-US">GetRandomNumberString(</span><span style="color: maroon" lang="EN-US">4</span><span style="color: black" lang="EN-US">)</span><span style="color: blue" lang="EN-US">;
</span><span style="color: black" lang="EN-US">            e.WebTest.Context[</span><span style="color: gray" lang="EN-US">"TIME_STAMP"</span><span style="color: black" lang="EN-US">] </span><span style="color: blue" lang="EN-US">= </span><span style="color: black" lang="EN-US">GetTimeStamp()</span><span style="color: blue" lang="EN-US">;
</span><span style="color: black" lang="EN-US">        }</span>

<span style="color: blue" lang="EN-US">        public override void </span><span style="color: black" lang="EN-US">PostWebTest(</span><span style="color: blue" lang="EN-US">object </span><span style="color: black" lang="EN-US">sender, PostWebTestEventArgs e)
        {
        }

</span><span style="color: darkgreen" lang="EN-US">        /// &lt;summary&gt;
        /// Creates a random uppercase string with the letters A-Z
        /// &lt;/summary&gt;
        /// &lt;param name="length"&gt;Length of the string to generate&lt;/param&gt;
        /// &lt;returns&gt;A random generated string of upper case characters&lt;/returns&gt;

</span><span style="color: blue" lang="EN-US">        protected string </span><span style="color: black" lang="EN-US">GetRandomString(</span><span style="color: blue" lang="EN-US">int </span><span style="color: black" lang="EN-US">length)
        {
            Random ran </span><span style="color: blue" lang="EN-US">= new </span><span style="color: black" lang="EN-US">Random()</span><span style="color: blue" lang="EN-US">;
            char</span><span style="color: black" lang="EN-US">[] chArray </span><span style="color: blue" lang="EN-US">= new char</span><span style="color: black" lang="EN-US">[length]</span><span style="color: blue" lang="EN-US">;</span>

            for <span style="color: black" lang="EN-US">(</span><span style="color: blue" lang="EN-US">int </span><span style="color: black" lang="EN-US">i </span><span style="color: blue" lang="EN-US">= </span><span style="color: maroon" lang="EN-US">0</span><span style="color: blue" lang="EN-US">; </span><span style="color: black" lang="EN-US">i &lt; length</span><span style="color: blue" lang="EN-US">; </span><span style="color: black" lang="EN-US">i++)
            {
                chArray[i] </span><span style="color: blue" lang="EN-US">= </span><span style="color: black" lang="EN-US">(</span><span style="color: blue" lang="EN-US">char</span><span style="color: black" lang="EN-US">)ran.Next(</span><span style="color: maroon" lang="EN-US">65</span><span style="color: black" lang="EN-US">, </span><span style="color: maroon" lang="EN-US">90</span><span style="color: black" lang="EN-US">)</span><span style="color: blue" lang="EN-US">;
</span><span style="color: black" lang="EN-US">            }</span>

<span style="color: blue" lang="EN-US">            return new string</span><span style="color: black" lang="EN-US">(chArray)</span><span style="color: blue" lang="EN-US">;
</span><span style="color: black" lang="EN-US">        }

</span><span style="color: darkgreen" lang="EN-US">        /// &lt;summary&gt;
        /// Creates a random string with numeric characters
        /// &lt;/summary&gt;
        /// &lt;param name="length"&gt;Length of the string to generate&lt;/param&gt;
        /// &lt;returns&gt;A random generated string of numeric characters&lt;/returns&gt;

</span><span style="color: blue" lang="EN-US">        protected string </span><span style="color: black" lang="EN-US">GetRandomNumberString(</span><span style="color: blue" lang="EN-US">int </span><span style="color: black" lang="EN-US">length)
        {
            Random ran </span><span style="color: blue" lang="EN-US">= new </span><span style="color: black" lang="EN-US">Random()</span><span style="color: blue" lang="EN-US">;
            char</span><span style="color: black" lang="EN-US">[] chArray </span><span style="color: blue" lang="EN-US">= new char</span><span style="color: black" lang="EN-US">[length]</span><span style="color: blue" lang="EN-US">;</span>

            for <span style="color: black" lang="EN-US">(</span><span style="color: blue" lang="EN-US">int </span><span style="color: black" lang="EN-US">i </span><span style="color: blue" lang="EN-US">= </span><span style="color: maroon" lang="EN-US">0</span><span style="color: blue" lang="EN-US">; </span><span style="color: black" lang="EN-US">i &lt; length</span><span style="color: blue" lang="EN-US">; </span><span style="color: black" lang="EN-US">i++)
            {
                chArray[i] </span><span style="color: blue" lang="EN-US">= </span><span style="color: black" lang="EN-US">(</span><span style="color: blue" lang="EN-US">char</span><span style="color: black" lang="EN-US">)ran.Next(</span><span style="color: maroon" lang="EN-US">48</span><span style="color: black" lang="EN-US">, </span><span style="color: maroon" lang="EN-US">57</span><span style="color: black" lang="EN-US">)</span><span style="color: blue" lang="EN-US">;</span>
<span style="color: black" lang="EN-US">            }

</span><span style="color: blue" lang="EN-US">            return new string</span><span style="color: black" lang="EN-US">(chArray)</span><span style="color: blue" lang="EN-US">;
</span><span style="color: black" lang="EN-US">        }</span>

<span style="color: darkgreen" lang="EN-US">        /// &lt;summary&gt;
        /// Creates a timestamp
        /// &lt;/summary&gt;
        /// &lt;returns&gt;The timestamp as a string&lt;/returns&gt;

</span><span style="color: blue" lang="EN-US">        protected </span><span style="color: black" lang="EN-US">String GetTimeStamp()
        {
            DateTime dt </span><span style="color: blue" lang="EN-US">= </span><span style="color: black" lang="EN-US">DateTime.Now</span><span style="color: blue" lang="EN-US">;
            return </span><span style="color: black" lang="EN-US">dt.ToShortDateString() + </span><span style="color: gray" lang="EN-US">" " </span><span style="color: black" lang="EN-US">+ dt.ToLongTimeString() + </span><span style="color: gray" lang="EN-US">":" </span><span style="color: black" lang="EN-US">+ dt.Millisecond</span><span style="color: blue" lang="EN-US">;</span>
<span style="color: black" lang="EN-US">        }</span>
    }
}</pre>
<p><span style="color: black;"><br />
</span><span style="color: #808080; font-family: tahoma; font-size: 8px">Colorized by: <a style="color: #808080" href="http://www.carlosag.net/Tools/CodeColorizer/">CarlosAg.CodeColorizer</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://gttools.com/2008/01/use-random-data-in-webtest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Read remote performance counters from a machine in a different domain</title>
		<link>http://gttools.com/2008/01/read-remote-performance-counters-from-a-machine-in-a-different-domain/</link>
		<comments>http://gttools.com/2008/01/read-remote-performance-counters-from-a-machine-in-a-different-domain/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 09:29:05 +0000</pubDate>
		<dc:creator>GAT</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[load test]]></category>
		<category><![CDATA[performance counter]]></category>
		<category><![CDATA[windows 2003 server]]></category>

		<guid isPermaLink="false">http://gttools.com/?p=15</guid>
		<description><![CDATA[Sometimes I need to read performance counters from a machine in a different domain when I run load tests. This can be done in a few easy steps on the target machine:

Enable the guest account
Add the guest account to the Users and Performance Monitor Users group

This will also remove the &#8220;Unable to connect to machine&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I need to read performance counters from a machine in a different domain when I run load tests. This can be done in a few easy steps on the target machine:</p>
<ul>
<li>Enable the <span style="font-style: italic">guest</span> account</li>
<li>Add the <span style="font-style: italic">guest </span>account to the <span style="font-style: italic">Users</span> and <span style="font-style: italic">Performance Monitor Users</span> group</li>
</ul>
<p>This will also remove the &#8220;<span style="font-weight: bold">Unable to connect to machine</span>&#8221; error message if you use perfmon.</p>
<p>Remember to disable the guest account when you are done.</p>
<p>This recipe is only valid for Windows 2003 Server. If you need to read the counters from a Windows NT or Windows 2000 server take a look at this article:</p>
<p><a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q300702">http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q300702</a></p>
]]></content:encoded>
			<wfw:commentRss>http://gttools.com/2008/01/read-remote-performance-counters-from-a-machine-in-a-different-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
