<?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>nPath Ltd.</title>
	<atom:link href="http://www.npathweb.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.npathweb.com</link>
	<description>Web Development Blog</description>
	<lastBuildDate>Tue, 10 Jan 2012 02:22:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Server Side Include messed up my layout</title>
		<link>http://www.npathweb.com/2012/01/09/server-side-include-messed-up-my-layout/</link>
		<comments>http://www.npathweb.com/2012/01/09/server-side-include-messed-up-my-layout/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 02:21:21 +0000</pubDate>
		<dc:creator>B.Harding</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.npathweb.com/?p=152</guid>
		<description><![CDATA[Here is what happened: I migrated some content to an SSI and when I viewed the page it was different. The file was SHTML. I had a div that was supposed to hug the top of the page. After, it was moved to SSI, it was pushed down 1 line. Tools Used: Fiddler Notepad ++ [...]]]></description>
			<content:encoded><![CDATA[<p>Here is what happened:</p>
<p>I migrated some content to an SSI and when I viewed the page it was different. The file was SHTML.</p>
<p>I had a div that was supposed to hug the top of the page. After, it was moved to SSI, it was pushed down 1 line.</p>
<p>Tools Used:</p>
<p>Fiddler<br />
Notepad ++</p>
<p>The cause:</p>
<p>Shtml SSI streams the bytes of the included file byte for byte. The included file was saved as UTF-8 With BOM.  The BOM bytes were being sent to the client and rendered as a space. A div following a space will move to the next line because a div is a block element.</p>
<p>I saw the extra bytes when I viewed the raw hex response in fiddler.<br />
When I used Notepad++ to save the file as UTF-8 without BOM the problem disappeared.</p>
<p>ASP server side includes don&#8217;t suffer from this, only SHTML.</p>
<p>For some reason I couldn&#8217;t find any sites on the web about this. The 24 hour hosting chat support were clueless. Save yourself some time and save include files as UTF-8 without BOM.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npathweb.com/2012/01/09/server-side-include-messed-up-my-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Log4Net in a Windows Forms app (quick and easy)</title>
		<link>http://www.npathweb.com/2011/08/10/log4net-in-a-windows-forms-app-quick-and-easy/</link>
		<comments>http://www.npathweb.com/2011/08/10/log4net-in-a-windows-forms-app-quick-and-easy/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 15:33:59 +0000</pubDate>
		<dc:creator>B.Harding</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.npathweb.com/?p=136</guid>
		<description><![CDATA[This post will show you how get Log4Net working ASAP on a windows forms application. First, get Log4net. The easiest way to do this is to open the Tools, Library Package Manager, Package Manager Console then type Install-Package Log4Net Next add the log4net config to your App.config. WATCH OUT!   &#60;configSections&#62; must be the first child [...]]]></description>
			<content:encoded><![CDATA[<p>This post will show you how get Log4Net working ASAP on a windows forms application.</p>
<p>First, get Log4net.<br />
The easiest way to do this is to open the Tools, Library Package Manager, Package Manager Console then type<br />
Install-Package Log4Net</p>
<p>Next add the log4net config to your App.config.</p>
<p>WATCH OUT!  <span class="Apple-style-span" style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px; white-space: pre;"> &lt;configSections&gt; must be the first child element of &lt;configuration&gt;</span></p>
<p>WATCH OUT!  Target the 4.0 framework. My project was defaulted to 4.0 Client Profile and would not build</p>
<pre>&lt;configSections&gt;
        &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821" /&gt;
     &lt;/configSections&gt;
    &lt;!-- Log4net Logging Setup --&gt;
    &lt;log4net debug="false"&gt;
        &lt;appender name="LogFileAppender" type="log4net.Appender.FileAppender,log4net" &gt;
            &lt;param name="File" value="Errors.log" /&gt;
            &lt;param name="AppendToFile" value="true" /&gt;
            &lt;layout type="log4net.Layout.PatternLayout,log4net"&gt;
                &lt;param name="ConversionPattern" value="%n%n%n%d [%t] %-5p %c  - %m%n%n" /&gt;
            &lt;/layout&gt;
        &lt;/appender&gt;
        &lt;root&gt;
            &lt;priority value="ALL" /&gt;
            &lt;appender-ref ref="LogFileAppender" /&gt;
        &lt;/root&gt;
        &lt;category name="DesktopLogger.Form1"&gt;
            &lt;priority value="ALL" /&gt;
        &lt;/category&gt;
    &lt;/log4net&gt;</pre>
<p>Notice this line</p>
<pre>&lt;param name="File" value="Errors.log" /&gt;</pre>
<p>I left the path off. That will put the log in the same folder where the executable was run from. We could set it to</p>
<p>value=&#8221;c:\\temp\\Errors.log&#8221;  or what ever you need.</p>
<pre></pre>
<p>Now that setup is complete we have three steps to using the logger. 1.) load the configuration 2.) create a log category 3.) log something  </p>
<pre>-----------------------</pre>
<p>1.) Load the configuration by calling</p>
<pre> log4net.Config.XmlConfigurator.Configure();</pre>
<p>on the line just before</p>
<p>InitializeComponent();</p>
<pre></pre>
<p>2.) Add the log category as a property of the form itself, not in a function</p>
<pre></pre>
<pre>    public partial class Form1 : Form
    {
        private readonly ILog log = LogManager.GetLogger("<span style="color: #0000ff;"><strong>YourAppName.Form1.cs</strong></span>");</pre>
<pre></pre>
<p>3.) Log errors by calling the Error method of your log object</p>
<pre>            int x = 10;
            int y = 10;
            try
            {
                int z= x/(y-10);
            }
            catch (Exception ex) {
              <strong>  <span style="color: #008000;">log.Error("<span style="color: #993300;">onload</span>", ex);</span></strong>
            }</pre>
<pre></pre>
<pre></pre>
<p>Lets look at the log file entry</p>
<pre>2011-08-10 11:07:14,584 [9] <span style="color: #000000;">ERROR</span> <span style="color: #0000ff;">YourAppName.Form1.cs </span> <span style="color: #993300;">- onload</span>

System.DivideByZeroException: Attempted to divide by zero.
   at ProPayMigration.Form1..ctor() in C:\dev\local\ProPayMigration\ProPayMigration\Form1.cs:line 60</pre>
<pre></pre>
<pre></pre>
<p><span style="color: #0000ff;">YourAppName.Form1.cs</span> is the category name we set when the log is initialized</p>
<p><span style="color: #993300;">onload</span> is the string I passed in when I called the method to create the entry</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npathweb.com/2011/08/10/log4net-in-a-windows-forms-app-quick-and-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to read a POST&#8217;s raw data</title>
		<link>http://www.npathweb.com/2011/04/13/how-to-read-a-posts-raw-data/</link>
		<comments>http://www.npathweb.com/2011/04/13/how-to-read-a-posts-raw-data/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 00:04:47 +0000</pubDate>
		<dc:creator>B.Harding</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.npathweb.com/?p=130</guid>
		<description><![CDATA[I was tasked with accepting data posted from an AS400 to a web page. The only problem is that for some reason the Request.Form was empty. I&#8217;m not sure if this violates the RFC or not but I have to deal with it. Luckily I can adapt with a few short lines. It turns out [...]]]></description>
			<content:encoded><![CDATA[<p>I was tasked with accepting data posted from an AS400 to a web page. The only problem is that for some reason the Request.Form was empty. I&#8217;m not sure if this violates the RFC or not but I have to deal with it. Luckily I can adapt with a few short lines.</p>
<p>It turns out that this is caused by not using the correct content-type when the request was made. The request.form isn&#8217;t parsed unless the content-type is application/x-www-form-urlencoded.</p>
<p>The way to read the raw data is to read the Request&#8217;s InputStream.</p>
<p>Here are the steps.<br />
Create a stream and set it to the Reqest.InputStream<br />
Read it into a byte array<br />
Encode the Byte array to a string.</p>
<pre class="brush: php">
            string sPostData = String.Empty;
            if (Request.RequestType==&quot;POST&quot;)
            {
                System.IO.Stream myStream = Request.InputStream;

                // Read the file into the byte array.
                byte[] input = new byte[Request.InputStream.Length];
                myStream.Read(input, 0, (int)Request.InputStream.Length - 1);

                //encode to a string
                System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding();
                sPostData = enc.GetString(input);
            }
            if (sPostData!=string.Empty) {

               //parse and process away

            }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.npathweb.com/2011/04/13/how-to-read-a-posts-raw-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTPModule: Redirect a page even if POST ed</title>
		<link>http://www.npathweb.com/2010/10/12/httpmodule-redirect-a-page-even-if-post-ed/</link>
		<comments>http://www.npathweb.com/2010/10/12/httpmodule-redirect-a-page-even-if-post-ed/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 19:04:33 +0000</pubDate>
		<dc:creator>B.Harding</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.npathweb.com/?p=121</guid>
		<description><![CDATA[My curret project involves an HTTP module that will handle page redirects that are centrally manage by storing them in a database. I want the module also handle redirects for form submits that use both get and post. Get is easy, you just pull off the querry string and tack it back on when you&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>My curret project involves an HTTP module that will handle page redirects that are centrally manage by storing them in a database.</p>
<p>I want the module also handle redirects for form submits that use both get and post.</p>
<p>Get is easy, you just pull off the querry string and tack it back on when you&#8217;ve found the new page. Post isn&#8217;t so easy.</p>
<p>In html when you use &lt;form method=&#8221;post&#8221; things change completely behind the scenes. Because of this a 301 message won&#8217;t do.  When a client receives this message it does a get on the new page and the form data is lost.</p>
<p>Server.Transfer will not work for me because I need the module to redirect to a full url. This causes a runtime error  when server.transfer is used even if the full url is the same server.</p>
<p>The best solution I&#8217;ve found is to use 307 temporarily moved if the original method was &#8220;post&#8221;.</p>
<p>According to the HTTP 1.1 RFC a browser must confirm re-posting to the new location.  If the user confirms the new location is used. I tested this on 5 browsers, Firefox, Opera, Safari, IE, and Chrome.</p>
<p>Only Firefox and Opera followed the RFC. IE, Safari and Chrome simply redirect the post as if nothing happened.</p>
<p>Here is the source from the module&#8230;</p>
<pre class="brush: php">using System;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using Sample.Data.Web;

namespace Sample.Web.HttpHandlers
{

public class RedirectModule : IHttpModule
{
#region under the hood settings

public void Init(HttpApplication app)
{
app.BeginRequest += new EventHandler(OnBeginRequest);
}

public void Dispose() { }

#endregion

public void OnBeginRequest(Object sender, EventArgs e)
{
HttpApplication context = sender as HttpApplication;
try
{
string requestMethod = context.Request.RequestType;
string requestUrl = context.Request.Url.ToString().ToLower();
string protocol = context.Request.Url.Scheme;
string host = context.Request.Url.Authority;
string file = context.Request.Url.LocalPath;
string query = context.Request.Url.Query;

string strippedRequest = protocol + &quot;://&quot; + host + file;

using (SampleWebEntities db = new SampleWebEntities())
{
var redirect = (
from u in db.UrlRedirects
where   u.RequestServer.ToLower().Contains(host.ToLower()) &amp;&amp;
u.RequestUrl.ToLower()==file
select u

).FirstOrDefault();

if (redirect != null)
{
context.Response.Clear();

if (requestMethod == &quot;POST&quot;)
{
context.Response.Status = &quot;307 Temporary Redirect&quot;;
}
else
{
context.Response.Status = &quot;301 Moved Permanently&quot;;
}

context.Response.AddHeader(&quot;Location&quot;, redirect.ResponseUrl + query);
context.Response.AddHeader(&quot;Cache-Control&quot;, &quot;no-cache&quot;);
context.Response.End();

}
}
}
catch (Exception ex)
{
//TODO: Handle Exception
string str = ex.ToString();
}

}//OnBeginRequest

}//class

}//Namespace
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.npathweb.com/2010/10/12/httpmodule-redirect-a-page-even-if-post-ed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Garage Door Opener Stripped Gear-How do you remove a Roll Pin?</title>
		<link>http://www.npathweb.com/2010/02/18/garage-door-opener-stripped-gear-how-do-you-remove-a-roll-pin/</link>
		<comments>http://www.npathweb.com/2010/02/18/garage-door-opener-stripped-gear-how-do-you-remove-a-roll-pin/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 02:30:19 +0000</pubDate>
		<dc:creator>B.Harding</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Home Repair]]></category>
		<category><![CDATA[Roll Pin]]></category>
		<category><![CDATA[Roll Punch]]></category>

		<guid isPermaLink="false">http://www.npathweb.com/?p=105</guid>
		<description><![CDATA[Q: How do you remove a Roll Pin?
A: With a Craftsman Roll Punch from Sears ]]></description>
			<content:encoded><![CDATA[<p>Q: How do you remove a Roll Pin?<br />
A: With a Craftsman Roll Punch from Sears</p>
<p>After about 10 years my garage door quit working. After a couple of turns of the screw driver I see that the innerds are full of gear dust. My drive gear is stripped!</p>
<p>To fix or replace? That is the question. I quickly discover that a new gear is only $12 on ebay and that includes grease and free shipping. Done.</p>
<p>When it arrives I come to a step in the instructions that simply says &#8220;remove roll pin from under the drive gear&#8221;.</p>
<p>Hmm. That seems to be a problem. As it turns out you need a Roll Punch to remove a Roll Pin.  A tool which I do not own. Home Depot, no. Lowes, no.  Sears, scoreboard! $20 bucks.</p>
<p>My garage door opener is now in full repair.  I could probably return the set but I&#8217;ll probably need it in another 10 years.</p>
<div id="attachment_108" class="wp-caption alignleft" style="width: 310px"><a href="http://www.npathweb.com/wp-content/upLoads/2010/02/24020_1311802519449_1362221554_31082304_3306524_n.jpg"><img class="size-medium wp-image-108" title="drive gear" src="http://www.npathweb.com/wp-content/upLoads/2010/02/24020_1311802519449_1362221554_31082304_3306524_n-300x224.jpg" alt="" width="300" height="224" /></a><p class="wp-caption-text">Drive Gear Stripped</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.npathweb.com/2010/02/18/garage-door-opener-stripped-gear-how-do-you-remove-a-roll-pin/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Truncate a databound string at runtime</title>
		<link>http://www.npathweb.com/2009/12/30/truncate-a-databound-string-at-runtime/</link>
		<comments>http://www.npathweb.com/2009/12/30/truncate-a-databound-string-at-runtime/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 20:59:10 +0000</pubDate>
		<dc:creator>B.Harding</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.npathweb.com/?p=102</guid>
		<description><![CDATA[So here is the scenario, I want to display the first 25 characters of a text field in a grid. You can do this a few ways such as, truncate when the datasource selects it, alter it on rowdatabound and probably a few others. But I wanted to try to find a way using the [...]]]></description>
			<content:encoded><![CDATA[<p>So here is the scenario,</p>
<p>I want to display the first 25 characters of a text field in a grid.</p>
<p>You can do this a few ways such as, truncate when the datasource selects it, alter it on rowdatabound and probably a few others. But I wanted to try to find a way using the a format string.</p>
<pre class="brush: csharp">

&lt;asp:Label ID=&quot;amanotesLabel&quot;
runat=&quot;server&quot;
Text=&#039;&lt;%#String.Format(&quot;{0}&quot;,Eval(&quot;notes&quot;)).Substring(0,25)%&gt;&#039;
</pre>
<p>it throws an error when the string is less than 25 characters which can be corrected like so&#8230;.<br />
There are 25 spaces after the {0}</p>
<pre class="brush: c#">

&lt;asp:Label ID=&quot;amanotesLabel&quot;

runat=&quot;server&quot;
Text=&#039;&lt;%#String.Format(&quot;{0}                         &quot;,Eval(&quot;notes&quot;)).Substring(0,25)%&gt;&#039;
</pre>
<p>So there you have it, no events needed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npathweb.com/2009/12/30/truncate-a-databound-string-at-runtime/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Copy a generic list, List, by ref, by value wierdness</title>
		<link>http://www.npathweb.com/2009/10/19/copy-a-generic-list-list-by-ref-by-value-wierdness/</link>
		<comments>http://www.npathweb.com/2009/10/19/copy-a-generic-list-list-by-ref-by-value-wierdness/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 17:45:00 +0000</pubDate>
		<dc:creator>B.Harding</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Linq]]></category>

		<guid isPermaLink="false">http://www.npathweb.com/?p=100</guid>
		<description><![CDATA[Here is my latest weird problem. I had a generic list, I wanted to  make a copy of it. So the aproach I used was to make the new list = the first one. Enter the wierdness; any mods to the second list showed up in the first one. So I guess it used a [...]]]></description>
			<content:encoded><![CDATA[<p>Here is my latest weird problem.</p>
<p>I had a generic list, I wanted to  make a copy of it. So the aproach I used was to make the new list = the first one.</p>
<p>Enter the wierdness; any mods to the second list showed up in the first one. So I guess it used a pointer or passed it by reference instead of  making a copy like I expected.</p>
<p>Live and learn I guess. The work around was to initialize it blank and call the add range function passing it the first list.</p>
<p>Here is an example of what I&#8217;m talking about. You can past this into Linqpad as C# Statements and play around more.</p>
<p><!--</p>
<p>p.MsoNormal<br />
{margin-top:0in;<br />
margin-right:0in;<br />
margin-bottom:10.0pt;<br />
margin-left:0in;<br />
line-height:115%;<br />
font-size:11.0pt;<br />
font-family:"Calibri","sans-serif";<br />
}<br />
table.MsoNormalTable<br />
{line-height:115%;<br />
font-size:11.0pt;<br />
font-family:"Calibri","sans-serif";<br />
}<br />
--></p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt; mso-border-bottom-alt:solid windowtext .75pt;padding:0in 0in 1.0pt 0in">
<p class="MsoNormal" style="border:none;mso-border-bottom-alt:solid windowtext .75pt; padding:0in;mso-padding-alt:0in 0in 1.0pt 0in"><span style="font-size:10.0pt; line-height:115%;font-family:Consolas;color:black">List&lt;</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:blue">string</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:black">&gt; s1 = </span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas; color:blue">new</span><span style="font-size:10.0pt;line-height:115%; font-family:Consolas;color:black"> List&lt;</span><span style="font-size:10.0pt; line-height:115%;font-family:Consolas;color:blue">string</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:black">&gt;{</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:#DC1414">&#8220;one&#8221;</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:black">,</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:#DC1414">&#8220;two&#8221;</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:black">,</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:#DC1414">&#8220;three&#8221;</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:black">,</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:#DC1414">&#8220;four&#8221;</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:black">,</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:#DC1414">&#8220;five&#8221;</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:black">};</span></p>
<p>List&lt;<span style="font-size:10.0pt;line-height:115%;font-family:Consolas; color:blue">string</span><span style="font-size:10.0pt;line-height:115%; font-family:Consolas;color:black">&gt; s2 = s1;</span></p>
<p>s2.Add(<span style="font-size:10.0pt;line-height:115%;font-family:Consolas; color:#DC1414">&#8220;six&#8221;</span><span style="font-size:10.0pt;line-height: 115%;font-family:Consolas;color:black">);</p>
<p>s2.Add(</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas; color:#DC1414">&#8220;seven&#8221;</span><span style="font-size:10.0pt; line-height:115%;font-family:Consolas;color:black">);</span></p>
<p>s1.Dump();</p>
<p>s2.Dump();<br />
List&lt;<span style="font-size:10.0pt;line-height:115%;font-family:Consolas; color:blue">string</span><span style="font-size:10.0pt;line-height:115%; font-family:Consolas;color:black">&gt; s3 = </span><span style="font-size:10.0pt; line-height:115%;font-family:Consolas;color:blue">new </span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas;color:black">List&lt;</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas; color:blue">string</span><span style="font-size:10.0pt;line-height:115%; font-family:Consolas;color:black">&gt;{};</p>
<p>s3.AddRange(s1);</span></p>
<p>s3.Add(<span style="font-size:10.0pt;line-height:115%;font-family:Consolas; color:#DC1414">&#8220;eight&#8221;</span><span style="font-size:10.0pt; line-height:115%;font-family:Consolas;color:black">);</p>
<p>s3.Add(</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas; color:#DC1414">&#8220;nine&#8221;</span><span style="font-size:10.0pt;line-height: 115%;font-family:Consolas;color:black">);</p>
<p>s3.Add(</span><span style="font-size:10.0pt;line-height:115%;font-family:Consolas; color:#DC1414">&#8220;ten&#8221;</span><span style="font-size:10.0pt;line-height: 115%;font-family:Consolas;color:black">);</span></p>
<p>s1.Dump();</p>
<p>s3.Dump();</p></div>
<p class="MsoNormal"><span style="font-size:10.0pt;line-height:115%;font-family: Consolas;color:black">Returns:</span></p>
<table class="MsoNormalTable" style="margin-left:2.4pt;border-collapse:collapse;border:none;mso-border-alt:  solid #1177BB 1.0pt;mso-border-top-alt:solid #1177BB .5pt;mso-yfti-tbllook:  1184" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes">
<td style="border: solid #AAAAAA 1.0pt; mso-border-alt: solid #AAAAAA .5pt; background: #1177BB; padding: 0in 2.4pt 1.2pt 1.2pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><strong><br />
<span style="font-size:8.5pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;color:white"><br />
<span style="mso-field-code:&quot; HYPERLINK \0022\0022 &quot;"><span style="text-decoration: underline;"><br />
<span style="mso-bidi-font-size:   11.0pt;font-family:Webdings;color:blue">5</span><span style="mso-bidi-font-size:11.0pt;color:blue">List&lt;String&gt; (7 items)</span></span></span><br />
</span></strong></td>
</tr>
<tr style="mso-yfti-irow:1">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
one</span></td>
</tr>
<tr style="mso-yfti-irow:2">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
two</span></td>
</tr>
<tr style="mso-yfti-irow:3">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
three</span></td>
</tr>
<tr style="mso-yfti-irow:4">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
four</span></td>
</tr>
<tr style="mso-yfti-irow:5">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
five</span></td>
</tr>
<tr style="mso-yfti-irow:6">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
six</span></td>
</tr>
<tr style="mso-yfti-irow:7">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
seven</span></td>
</tr>
<tr style="mso-yfti-irow:8">
<td style="border: solid #AAAAAA 1.0pt; border-top: none; mso-border-top-alt: solid #AAAAAA .5pt; mso-border-alt: solid #AAAAAA .5pt; background: #1177BB; padding: 0in 2.4pt 1.2pt 1.2pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><strong><br />
<span style="font-size:8.5pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;color:white"><br />
<span style="mso-field-code:&quot; HYPERLINK \0022\0022 &quot;"><span style="text-decoration: underline;"><br />
<span style="mso-bidi-font-size:   11.0pt;font-family:Webdings;color:blue">5</span><span style="mso-bidi-font-size:11.0pt;color:blue">List&lt;String&gt; (7 items)</span></span></span><br />
</span></strong></td>
</tr>
<tr style="mso-yfti-irow:9">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
one</span></td>
</tr>
<tr style="mso-yfti-irow:10">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
two</span></td>
</tr>
<tr style="mso-yfti-irow:11">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
three</span></td>
</tr>
<tr style="mso-yfti-irow:12">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
four</span></td>
</tr>
<tr style="mso-yfti-irow:13">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
five</span></td>
</tr>
<tr style="mso-yfti-irow:14">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
six</span></td>
</tr>
<tr style="mso-yfti-irow:15;mso-yfti-lastrow:yes">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
seven</span></td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin-bottom:.1in;line-height:normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;mso-fareast-font-family: &quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;;display:none; mso-hide:all"> </span></p>
<table class="MsoNormalTable" style="margin-left:2.4pt;border-collapse:collapse;border:none;mso-border-alt:  solid #1177BB 1.0pt;mso-border-top-alt:solid #1177BB .5pt;mso-yfti-tbllook:  1184" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes">
<td style="border: solid #AAAAAA 1.0pt; mso-border-alt: solid #AAAAAA .5pt; background: #1177BB; padding: 0in 2.4pt 1.2pt 1.2pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><strong><br />
<span style="font-size:8.5pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;color:white"><br />
<span style="mso-field-code:&quot; HYPERLINK \0022\0022 &quot;"><span style="text-decoration: underline;"><br />
<span style="mso-bidi-font-size:   11.0pt;font-family:Webdings;color:blue">5</span><span style="mso-bidi-font-size:11.0pt;color:blue">List&lt;String&gt; (7 items)</span></span></span><br />
</span></strong></td>
</tr>
<tr style="mso-yfti-irow:1">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
one</span></td>
</tr>
<tr style="mso-yfti-irow:2">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
two</span></td>
</tr>
<tr style="mso-yfti-irow:3">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
three</span></td>
</tr>
<tr style="mso-yfti-irow:4">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
four</span></td>
</tr>
<tr style="mso-yfti-irow:5">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
five</span></td>
</tr>
<tr style="mso-yfti-irow:6">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
six</span></td>
</tr>
<tr style="mso-yfti-irow:7">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
seven</span></td>
</tr>
<tr style="mso-yfti-irow:8">
<td style="border: solid #AAAAAA 1.0pt; border-top: none; mso-border-top-alt: solid #AAAAAA .5pt; mso-border-alt: solid #AAAAAA .5pt; background: #1177BB; padding: 0in 2.4pt 1.2pt 1.2pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><strong><br />
<span style="font-size:8.5pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;color:white"><br />
<span style="mso-field-code:&quot; HYPERLINK \0022\0022 &quot;"><span style="text-decoration: underline;"><br />
<span style="mso-bidi-font-size:   11.0pt;font-family:Webdings;color:blue">5</span><span style="mso-bidi-font-size:11.0pt;color:blue">List&lt;String&gt; (10 items)</span></span></span><br />
</span></strong></td>
</tr>
<tr style="mso-yfti-irow:9">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
one</span></td>
</tr>
<tr style="mso-yfti-irow:10">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
two</span></td>
</tr>
<tr style="mso-yfti-irow:11">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
three</span></td>
</tr>
<tr style="mso-yfti-irow:12">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
four</span></td>
</tr>
<tr style="mso-yfti-irow:13">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
five</span></td>
</tr>
<tr style="mso-yfti-irow:14">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
six</span></td>
</tr>
<tr style="mso-yfti-irow:15">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
seven</span></td>
</tr>
<tr style="mso-yfti-irow:16">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
eight</span></td>
</tr>
<tr style="mso-yfti-irow:17">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
nine</span></td>
</tr>
<tr style="mso-yfti-irow:18;mso-yfti-lastrow:yes">
<td style="border:solid #AAAAAA 1.0pt;border-top:none;mso-border-top-alt:   solid #AAAAAA .5pt;mso-border-alt:solid #AAAAAA .5pt;padding:1.2pt 2.4pt 1.2pt 2.4pt" valign="top">
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"><span style="font-size:9.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;   mso-fareast-font-family:&quot;Times New Roman&quot;;mso-bidi-font-family:&quot;Times New Roman&quot;"><br />
ten</span></td>
</tr>
</tbody>
</table>
<p class="MsoNormal">
]]></content:encoded>
			<wfw:commentRss>http://www.npathweb.com/2009/10/19/copy-a-generic-list-list-by-ref-by-value-wierdness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search your entire server for a string across all databases! MSSql 2000</title>
		<link>http://www.npathweb.com/2009/10/09/search-your-entire-server-for-a-string-across-all-databases-mssql-2000/</link>
		<comments>http://www.npathweb.com/2009/10/09/search-your-entire-server-for-a-string-across-all-databases-mssql-2000/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 21:39:42 +0000</pubDate>
		<dc:creator>B.Harding</dc:creator>
				<category><![CDATA[SQL server]]></category>

		<guid isPermaLink="false">http://www.npathweb.com/?p=94</guid>
		<description><![CDATA[You can use this query to search your entire server for a string. It will search views, stored procs, triggers, everything. All the sql text in your database is stored in system tables under each database. There are a few hardships to overcome in order to search. 1.) Text is split into 4000 character chunks. [...]]]></description>
			<content:encoded><![CDATA[<p>You can use this query to search your entire server for a string. It will search views, stored procs, triggers, everything.</p>
<p>All the sql text in your database is stored in system tables under each database. There are a few hardships to overcome in order to search.</p>
<p>1.) Text is split into 4000 character chunks. So every 4k chunk has a colID to note its position in the stack of rows .  The names are stored in sysobjects and the text is stored in syscomments. The issue is when your search hits in the second chunk. You need to pull in all chunks when any one finds a hit.</p>
<p>2.) Each database has it&#8217;s own system tables. For one search to check every database&#8217;s syscomments you need to loop. My example solution didn&#8217;t use a cursor.</p>
<p>I pulled a list of database names out of master.dbo.sysdatabases and put it in a temp table. That is what I used for my loop. I  just jet the top row, work it, delete it, and get the next one from the top.</p>
<p>In the loop I execute sql constructed dynamically based on the database name of in the current loop iteration. It searches for all object Ids that have text matching the search term. Then gets all chucks for that object.  To help me narrow down the search I also search on object type. V for view, p for proc  etc&#8230;Leave type &#8221; to get all types.</p>
<p>If you paste this in your query window and set the search strings you should get results.  I clipped the text to 3990 because I kept getting errors that the row was too large. I should probably look into it but this will do for now.</p>
<p>I&#8217;m dealing with MSSql Server 2000 here and this works.  I plan to make this a stored proc and call it from asp but right now it&#8217;s 5:00pm on Friday and this can wait &#8217;till Monday.</p>
<p><!--</p>
<p>p.MsoNormal<br />
{margin-top:0in;<br />
margin-right:0in;<br />
margin-bottom:10.0pt;<br />
margin-left:0in;<br />
line-height:115%;<br />
font-size:11.0pt;<br />
font-family:"Calibri","sans-serif";<br />
}<br />
--></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes">Create</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> <span style="color:blue">Table</span> #dblist<span style="color:blue"> </span><span style="color:gray">(</span>NAME <span style="color:blue">VARCHAR</span><span style="color:gray">(</span>80<span style="color:gray">))</span></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes">create</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"><span style="color:blue">table</span> #results<span style="color:blue"> </span><span style="color:gray">(</span>name <span style="color:blue">nvarchar</span><span style="color:gray">(</span>80<span style="color:gray">),</span><span style="color:blue">text</span> <span style="color:blue">varchar</span><span style="color:gray">(</span>4000<span style="color:gray">))</span></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:gray;mso-no-proof:yes"> </span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes">insert</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> <span style="color:blue">into</span> #dblist</span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes">exec</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:gray;mso-no-proof:yes">(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-no-proof:yes">&#8216;select         name from master..sysdatabases order by name&#8217;</span><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:gray;mso-no-proof:yes">)</span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:gray;mso-no-proof:yes"><br />
</span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes">declare</span><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes"> @ObjectType <span style="color:blue">as</span> <span style="color:blue">nvarchar</span><span style="color:gray">(</span>80<span style="color:gray">)<br />
</span>declare</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> @search <span style="color:blue">as</span> <span style="color:blue">nvarchar</span><span style="color:gray">(</span>80<span style="color:gray">)</span></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:gray;mso-no-proof:yes"> </span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes">set</span><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes"> @search <span style="color:gray">=</span> <span style="color:red">&#8216;update&#8217; &#8211;change this</span><br />
set</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> @ObjectType<span style="color:gray">=</span><span style="color:red">&#8216;p&#8217;  &#8211;searches only procedures</span><br />
<span style="color:green">&#8211;set to &#8221; for all types</span></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes">declare</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> @dbname <span style="color:blue">as</span> <span style="color:blue">nvarchar</span><span style="color:gray">(</span>80<span style="color:gray">)</span></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes">set</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> @dbname<span style="color:gray">=</span><span style="color:blue"> </span><span style="color:gray">(</span><span style="color:blue">select</span> <span style="color:blue">top</span> 1 name <span style="color:blue">from</span> #dblist<span style="color:gray">)</span></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes">while</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> @dbname<span style="color:gray">&lt;&gt;</span><span style="color:red">&#8221;</span></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"><span style="mso-tab-count: 1"> </span><span style="color:blue">begin</span></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"><span style="color:blue">insert</span> <span style="color:blue">into</span> #results<span style="mso-tab-count: 3"><br />
</span><span style="color:blue">exec</span><span style="mso-tab-count: 4">(<br />
</span><span style="color:red">&#8216;select id &#8216;</span> <span style="color:gray">+</span><span style="color:red"><br />
&#8216;into #found &#8216;</span> <span style="mso-tab-count: 4">+<br />
</span><span style="color:red">&#8216;from ['</span><span style="color:gray">+</span>@dbname<span style="color:gray">+</span><span style="color:red">']..syscomments &#8216;</span><span style="mso-tab-count: 4">+<br />
</span><span style="color:red">&#8216;where [text] like &#8221;%&#8217;</span><span style="color:gray">+</span> @search <span style="color:gray">+</span><span style="color:red">&#8216;%&#8221; &#8216;</span> <span style="color:gray">+</span></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"><span style="mso-tab-count: 4"> </span><span style="color:red">&#8216;select &#8221;&#8217;</span><span style="color:gray">+</span> @dbname<span style="color:gray">+</span><span style="color:red">&#8216;:&#8221; + so.name         as name, left(sc.text, 3990) &#8216; +<br />
&#8216;from ['</span> <span style="color:gray">+</span></span><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> @dbname <span style="color:gray">+</span><span style="color:red"> ']..syscomments sc &#8216;</span> <span style="color:gray">+</span><span style="mso-tab-count: 4"><br />
</span><span style="color:red">&#8216;inner join ['</span> <span style="color:gray">+</span> @dbname <span style="color:gray">+</span> <span style="color:red">']..sysobjects         so on sc.id= so.id &#8216;</span> <span style="color:gray">+</span><span style="mso-tab-count: 4"><br />
</span><span style="color:red">&#8216;where sc.id in (select id from #found) &#8216;</span><span style="mso-tab-count: 4">+</span><span style="color:red"><br />
&#8216;and<span style="mso-spacerun:yes"> </span> xtype like &#8221;%&#8217;</span> <span style="color:gray">+</span> @ObjectType<span style="color:gray">+</span> <span style="color:red">&#8216;%&#8221; &#8216;</span><span style="color:gray">+</span><span style="color:red"><br />
&#8216;order by name, colid &#8216;</span><span style="mso-tab-count: 4">+<br />
</span><span style="color:red">&#8216;drop table #found&#8217;</span><br />
</span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"><span style="color:gray">)</span></span></p>
<p><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"><span style="color:blue">delete</span><span style="mso-spacerun:yes"> </span><span style="color:blue">from</span> #dblist <span style="color:blue"> where</span> name<span style="color:gray">=</span> @dbname</span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"><span style="mso-tab-count: 2"></span><span style="color:blue">set</span> @dbname<span style="color:gray">=</span><span style="color:blue"> </span><span style="color:gray">(</span><span style="color:blue">select</span> <span style="color:blue">top</span> 1 name <span style="color:blue">from</span> #dblist<span style="color:gray">)</span></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"><span style="mso-tab-count: 1"> </span><span style="color:blue">end</span></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes"> </span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes">select</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> <span style="color:gray">*</span> <span style="color:blue">from</span> #results</span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> </span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes">drop </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"><span style="color:blue">table</span> #dblist</span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-no-proof:yes">drop</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> <span style="color:blue">table</span> #results</span></p>
<p class="MsoNormal">
]]></content:encoded>
			<wfw:commentRss>http://www.npathweb.com/2009/10/09/search-your-entire-server-for-a-string-across-all-databases-mssql-2000/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Store an IP Address in a human-readable Int64 (bigint)</title>
		<link>http://www.npathweb.com/2009/09/29/83/</link>
		<comments>http://www.npathweb.com/2009/09/29/83/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 13:34:07 +0000</pubDate>
		<dc:creator>B.Harding</dc:creator>
				<category><![CDATA[SQL server]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.npathweb.com/?p=83</guid>
		<description><![CDATA[Lets say you have an  ip address in a string such as  &#8221;127.1.2.3&#8243; This code will store the information in an int64 (C#) or bigint (SQL) in with three places per octet. 127001002003 The highest this number could go is 255,255,255,255.00 which is too large for a 32 bit integer. Hence the Int64. In SQL [...]]]></description>
			<content:encoded><![CDATA[<p>Lets say you have an  ip address in a string such as  &#8221;127.1.2.3&#8243;</p>
<p>This code will store the information in an int64 (C#) or bigint (SQL) in with three places per octet.</p>
<p>127001002003</p>
<p>The highest this number could go is 255,255,255,255.00 which is too large for a 32 bit integer. Hence the Int64. In SQL an 64 bit Integer is big int so that is what you&#8217;ll need to store in an MS-SQL Database.</p>
<p>I worked this up as a work-around on a project and present it here for your enjoyment.</p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-family: 'Courier New', 'Times New Roman', 'Bitstream Charter', Times, serif;"><span style="color: #0000ff;">using System.Text.RegularExpressions;<br />
</span></span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> <span style="mso-spacerun:yes"> </span><span style="color:blue">public</span> <span style="color:blue">static</span><span style="color:#2B91AF"> Int64</span> convertIP(<span style="color:blue">string</span> sAddress) {<br />
<span style="color:#2B91AF"> </span><br />
<span style="color:#2B91AF"> Match</span> ipaddress =<span style="color:#2B91AF"> Regex</span>.Match(sAddress,<span style="color:#A31515">&#8220;^([\\d]*).([\\d]*).([\\d]*).([\\d]*)&#8221;</span>);</span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> </span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"><span style="color:#2B91AF"> <span style="color: #2b91af;">Int64</span> iAddress = 0;</span></span></p>
<p>Int64 ip1 =<span style="color:#2B91AF">Convert</span>.ToInt64(ipaddress.Groups[1].ToString())<span style="mso-spacerun:yes"> </span>* 1000000000;<br />
<span style="color:#2B91AF"> Int64</span> ip2 =<span style="color:#2B91AF">Convert</span>.ToInt64(ipaddress.Groups[2].ToString()) * 1000000;<br />
<span style="color:#2B91AF"> Int64</span> ip3 =<span style="color:#2B91AF">Convert</span>.ToInt64(ipaddress.Groups[3].ToString()) * 1000;<br />
<span style="color:#2B91AF"> Int64</span> ip4 =<span style="color:#2B91AF">Convert</span>.ToInt64(ipaddress.Groups[4].ToString());</p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-family: 'Courier New', 'Times New Roman', 'Bitstream Charter', Times, serif; "> iAddress = ip1 + ip2 + ip3 + ip4;</span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> </span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"><span style="mso-spacerun:yes"><br />
</span><span style="color:blue">return</span> iAddress;</span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"> </span></p>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-size: 10.0pt;font-family:&quot;Courier New&quot;;mso-no-proof:yes"><br />
<span style="mso-spacerun:yes"> </span><br />
}</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;line-height:115%;font-family: &quot;Courier New&quot;;mso-no-proof:yes"><span style="mso-spacerun:yes">Extra credit: This number is now 127,001,002,003. You can use string formating to display it as 127.001.002.003 by using the format string N0 (Number, zero decimal places) and changing the number group separator from the default comma to a period. All with the raw int64, no function required.</span></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;line-height:115%;font-family: &quot;Courier New&quot;;mso-no-proof:yes"><span style="mso-spacerun:yes"> </span></span></p>
<p><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;; mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;color:#2B91AF; mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA; mso-no-proof:yes">Int64</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;; mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language: EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;mso-no-proof:yes"> iAddress = convertIP(Request.UserHostAddress);</span></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Response.Write(util.convertIP(Request.UserHostAddress).ToString(&#8220;N0&#8243;, new NumberFormatInfo { NumberGroupSeparator = &#8220;.&#8221; }));</div>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="font-family: 'Courier New', 'Times New Roman', 'Bitstream Charter', Times, serif;">Response.Write(iAddress).ToString(<span style="color:#A31515">&#8220;N0&#8243;</span>, <span style="color:blue">new </span><span style="color:#2B91AF">NumberFormatInfo</span> { NumberGroupSeparator =<span style="color:#A31515">&#8220;.&#8221;</span> }));</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.npathweb.com/2009/09/29/83/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Watch out Chuck Norris! Scott Guthrie is in town!</title>
		<link>http://www.npathweb.com/2009/09/24/watch-out-chuck-norris-scott-guthrie-is-in-town/</link>
		<comments>http://www.npathweb.com/2009/09/24/watch-out-chuck-norris-scott-guthrie-is-in-town/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 16:09:29 +0000</pubDate>
		<dc:creator>B.Harding</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.npathweb.com/?p=79</guid>
		<description><![CDATA[Boosted from http://developerdeveloperdeveloper.com/guathon/Default.aspx Some things you might not know about Scott Guthrie When Scott Guthrie throws exceptions, it’s across the room. All arrays Scott Guthrie declares are of infinite size, because Scott Guthrie knows no bounds. Scott Guthrie doesn’t have disk latency because the hard drive knows to hurry up. Scott Guthrie writes code that [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em>Boosted from <a href="http://developerdeveloperdeveloper.com/guathon/Default.aspx">http://developerdeveloperdeveloper.com/guathon/Default.aspx</a></em></strong></p>
<p><strong><em>Some things you might not know about Scott Guthrie</em></strong></p>
<ol>
<li>When Scott Guthrie throws exceptions, it’s across the room.</li>
<li>All arrays Scott Guthrie declares are of infinite size, because Scott Guthrie knows no bounds.</li>
<li>Scott Guthrie doesn’t have disk latency because the hard drive knows to hurry up.</li>
<li>Scott Guthrie writes code that optimizes itself.</li>
<li>Scott Guthrie can’t test for equality because he has no equal.</li>
<li>Scott Guthrie doesn’t need garbage collection because he doesn’t call .Dispose(), he calls .DropKick().</li>
<li>Scott Guthrie’s first program was kill -9.</li>
<li>Scott Guthrie burst the dot com bubble.</li>
<li>All browsers support the hex definitions #scott and #guthrie for the colors black and blue.</li>
<li>MySpace actually isn’t your space, it’s Scott’s (he just lets you use it).</li>
<li>Scott Guthrie can write infinite recursion functions &#8230; and have them return.</li>
<li>Scott Guthrie can solve the Towers of Hanoi in one move.</li>
<li>The only pattern Scott Guthrie knows is God Object.</li>
<li>Scott Guthrie finished World of Warcraft.</li>
<li>Project managers never ask Scott Guthrie for estimations &#8230; ever.</li>
<li>Scott Guthrie doesn’t use web standards as the web will conform to him.</li>
<li>“It works on my machine” always holds true for Scott Guthrie.</li>
<li>Whiteboards are white because Scott Guthrie scared them that way.</li>
<li>Scott Guthrie doesn’t do Burn Down charts, he does Smack Down charts.</li>
<li>Scott Guthrie can delete the Recycling Bin.</li>
<li>Scott Guthrie’s red polo shirt can type 140 wpm.</li>
<li>Scott Guthrie can unit test entire applications with a single assert.</li>
<li>Scott Guthrie doesn’t bug hunt as that signifies a probability of failure, he goes bug killing.</li>
<li>Scott Guthrie’s keyboard doesn’t have a Ctrl key because nothing controls Scott Guthrie.</li>
<li>When Scott Guthrie is web surfing, websites get the message “Warning: Internet Explorer has deemed this user to be malicious or dangerous. Proceed?”.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.npathweb.com/2009/09/24/watch-out-chuck-norris-scott-guthrie-is-in-town/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

