<?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>www.kevincornwell.com</title>
	<atom:link href="http://www.kevincornwell.com/blog/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kevincornwell.com/blog</link>
	<description></description>
	<lastBuildDate>Thu, 02 Dec 2010 16:31:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>ASP.NET Add Sub Header Row (Group) To GridView Control</title>
		<link>http://www.kevincornwell.com/blog/index.php/asp-net-add-subheader-row-group-to-gridview-control/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/asp-net-add-subheader-row-group-to-gridview-control/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 15:16:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/?p=275</guid>
		<description><![CDATA[''' &#60;summary&#62; ''' Insert a sub header in a grid view. ''' &#60;/summary&#62; ''' &#60;param name=&#34;gv&#34;&#62;The GridView to insert the sub header row into.&#60;/param&#62; ''' &#60;param name=&#34;gvrBeforeRow&#34;&#62;The GridViewRow to insert the sub header before.&#60;/param&#62; ''' &#60;param name=&#34;sSubHeaderText&#34;&#62;The text to render in the sub header.&#60;/param&#62; ''' &#60;remarks&#62;&#60;/remarks&#62; Protected Sub insertGroupHeaderToGridView&#40;ByRef gv As GridView, ByVal gvrBeforeRow As [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.kevincornwell.com/blog/wp-content/uploads/2010/12/sub_group_headers_gridview.jpg"><img src="http://www.kevincornwell.com/blog/wp-content/uploads/2010/12/sub_group_headers_gridview-300x200.jpg" alt="" title="sub_group_headers_gridview" width="300" height="200" class="alignnone size-medium wp-image-288" /></a></p>

<div class="wp_syntax"><div class="code"><pre class="vbnet">    <span style="color: #008080; font-style: italic;">''' &lt;summary&gt;</span>
    <span style="color: #008080; font-style: italic;">''' Insert a sub header in a grid view.</span>
    <span style="color: #008080; font-style: italic;">''' &lt;/summary&gt;</span>
    <span style="color: #008080; font-style: italic;">''' &lt;param name=&quot;gv&quot;&gt;The GridView to insert the sub header row into.&lt;/param&gt;</span>
    <span style="color: #008080; font-style: italic;">''' &lt;param name=&quot;gvrBeforeRow&quot;&gt;The GridViewRow to insert the sub header before.&lt;/param&gt;</span>
    <span style="color: #008080; font-style: italic;">''' &lt;param name=&quot;sSubHeaderText&quot;&gt;The text to render in the sub header.&lt;/param&gt;</span>
    <span style="color: #008080; font-style: italic;">''' &lt;remarks&gt;&lt;/remarks&gt;</span>
    Protected <span style="color: #0600FF;">Sub</span> insertGroupHeaderToGridView<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByRef</span> gv <span style="color: #FF8000;">As</span> GridView, <span style="color: #FF8000;">ByVal</span> gvrBeforeRow <span style="color: #FF8000;">As</span> GridViewRow, <span style="color: #FF8000;">ByVal</span> sSubHeaderText <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span>
&nbsp;
        <span style="color: #0600FF;">Dim</span> visibleColumns <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</span> = gv.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Count</span>
&nbsp;
        <span style="color: #0600FF;">Dim</span> tbl <span style="color: #FF8000;">As</span> Table = gv.<span style="color: #0000FF;">Controls</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">Dim</span> newRowIndex <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</span> = tbl.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">GetRowIndex</span><span style="color: #000000;">&#40;</span>gvrBeforeRow<span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">Dim</span> newRow <span style="color: #FF8000;">As</span> GridViewRow = <span style="color: #FF8000;">New</span> GridViewRow<span style="color: #000000;">&#40;</span>newRowIndex, newRowIndex, DataControlRowType.<span style="color: #0000FF;">DataRow</span>, DataControlRowState.<span style="color: #0600FF;">Normal</span><span style="color: #000000;">&#41;</span>
&nbsp;
        newRow.<span style="color: #0000FF;">Cells</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">New</span> TableCell<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
&nbsp;
        <span style="color: #0600FF;">If</span> <span style="color: #000000;">&#40;</span>visibleColumns &gt; <span style="color: #FF0000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Then</span>
            newRow.<span style="color: #0000FF;">Cells</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">ColumnSpan</span> = visibleColumns
            newRow.<span style="color: #0000FF;">Cells</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">Text</span> = sSubHeaderText
        <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">If</span>
&nbsp;
        tbl.<span style="color: #0000FF;">Controls</span>.<span style="color: #0000FF;">AddAt</span><span style="color: #000000;">&#40;</span>newRowIndex, newRow<span style="color: #000000;">&#41;</span>
&nbsp;
    <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/asp-net-add-subheader-row-group-to-gridview-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How many bottles of beer are opened with a lighter in a given year?</title>
		<link>http://www.kevincornwell.com/blog/index.php/how-many-bottles-of-beer-are-opened-with-a-lighter-in-a-year/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/how-many-bottles-of-beer-are-opened-with-a-lighter-in-a-year/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 20:08:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[bottled beer]]></category>
		<category><![CDATA[glass bottle ligher]]></category>
		<category><![CDATA[lighter]]></category>
		<category><![CDATA[open]]></category>
		<category><![CDATA[turd]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/?p=249</guid>
		<description><![CDATA[The average number of bottles of beer opened with a lighter in a given year is _________ (worldwide). No Googling, no paper pen, just give me your best guess within the next minute or two. I have asked this bit of trivia to dozens of friends and strangers as a mental math estimation exercise. The [...]]]></description>
			<content:encoded><![CDATA[<p>The average number of bottles of beer opened with a lighter in a given year is _________ (worldwide).  No Googling, no paper pen, just give me your best guess within the next minute or two.</p>
<p>I have asked this bit of trivia to dozens of friends and strangers as a mental math estimation exercise.  The answer will obviously based on statistics and will have a margin of error.  I have received a wide range of guesses from 7 to many billions.  It seems people generally have great difficulty in approximation.  And some completely lock up and are incapable of even guessing&#8230;  and surprisingly (or perhaps not so), these are your typical smart guys&#8230; math teachers, programmers, engineers, etc.</p>
<p>Maybe this will spawn a whole new domain in IQ tests&#8230;  Loose math approximation under time constraints.  AKA &#8220;roughing it in&#8221;.  Now that I think about it, Google asks <a href="http://www.businessinsider.com/15-google-interview-questions-that-will-make-you-feel-stupid-2009-11#how-many-golf-balls-can-fit-in-a-school-bus-1">these sorts of questions</a> during interviews for a good reason(?).</p>
<p>For the record my guess is 310,000.</p>
<p>Here are a few guesses from my buds&#8230;</p>
<p>Sid K: 726,000<br />
Edwin C: 4,000,000,000<br />
Kenneth H: 1,000,000<br />
David B: 480,000<br />
Tina K: 1 Zillion Billion Quintillion<br />
Keith B: 13,000,000<br />
Kevin B: 7<br />
Matt C: 3,257,823<br />
Melissa K: 80,000,000,000<br />
Derek D: 7<br />
Brian E: 10,000,000</p>
<p>Stay tuned for the answer.</p>
<p><object width="448" height="269"><param name="movie" value="http://www.youtube.com/v/6DD6PYOutAw&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/6DD6PYOutAw&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"  width="448" height="269"></embed></object></p>
<p>*I came up with this bit of trivia at the beach as some idiot tourist was trying to open his stupid glass beer bottle (thanks Corona) by tearing apart the arm rest of a beach rental chair.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/how-many-bottles-of-beer-are-opened-with-a-lighter-in-a-year/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hands Across The Sand &#8211; Stop Oil Drilling In Florida</title>
		<link>http://www.kevincornwell.com/blog/index.php/hands-across-the-sand-stop-oil-drilling-in-florida/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/hands-across-the-sand-stop-oil-drilling-in-florida/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 16:01:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/?p=247</guid>
		<description><![CDATA[Hands Across The Sand is an organization committed to protecting our coastlines and waterways from near and off shore oil drilling. Join us February 13, 2010! An organization devoted to protecting our coastlines and waterways from the devastating environmental effects of oil exploration and support industries. Mission: 1. To raise awareness about pending Florida legislation [...]]]></description>
			<content:encoded><![CDATA[<p>Hands Across The Sand is an organization committed to protecting our coastlines and waterways from near and off shore oil drilling. Join us February 13, 2010!</p>
<p>An organization devoted to protecting our coastlines and waterways from the devastating environmental effects of oil exploration and support industries. </p>
<p>Mission:</p>
<p>1. To raise awareness about pending Florida legislation to drill for oil within 3 to 10 miles of our coast</p>
<p>2. To organize a statewide, coastal movement to protest this legislation. This protest will bring thousands of Florida citizens to our beaches and will draw metaphorical and physical lines in the sand; human lines in the sand against near shore oil drilling in our waters. This event will be held on Saturday February 13, 2010</p>
<p>3. To convince our Legislators and Governor to drop any and all Legislation that would allow this folly.</p>
<p><a href="http://www.facebook.com/HandsAcrossTheSand?ref=mf">Hands Across The Sand On Facebook</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/hands-across-the-sand-stop-oil-drilling-in-florida/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Droid On A Boat (high speed footage)</title>
		<link>http://www.kevincornwell.com/blog/index.php/droid-on-a-boat-high-speed-footage/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/droid-on-a-boat-high-speed-footage/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 22:26:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/?p=244</guid>
		<description><![CDATA[The following is the Motorola Droid running the Android OS version 2.0 uploaded directly from the phone to youtube. I know the footage is kinda bumpy but it show how well the camera/video records when conditions are &#8220;rough&#8221;.]]></description>
			<content:encoded><![CDATA[<p>The following is the Motorola Droid running the Android OS version 2.0 uploaded directly from the phone to youtube.  I know the footage is kinda bumpy but it show how well the camera/video records when conditions are &#8220;rough&#8221;.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/7Lm1t0W9WRk&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/7Lm1t0W9WRk&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/droid-on-a-boat-high-speed-footage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Halo Domains For Sale (HaloStrategy.com, HaloStrategies.com, HaloTactic.com, HaloTactics.com)</title>
		<link>http://www.kevincornwell.com/blog/index.php/halo-domains-for-sale-halostrategycom-halostrategiescom-halotacticcom-halotacticscom/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/halo-domains-for-sale-halostrategycom-halostrategiescom-halotacticcom-halotacticscom/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 20:26:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Recreation]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/?p=240</guid>
		<description><![CDATA[Halo Domains For Sale (HloStrategy.com, HaloStrategies.com, HaloTactic.com, HaloTactics.com) See this link.]]></description>
			<content:encoded><![CDATA[<p>Halo Domains For Sale (HloStrategy.com, HaloStrategies.com, HaloTactic.com, HaloTactics.com)</p>
<p>See this <a href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&#038;item=280379733083#ht_500wt_1182">link</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/halo-domains-for-sale-halostrategycom-halostrategiescom-halotacticcom-halotacticscom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pandora Has On Air Ads</title>
		<link>http://www.kevincornwell.com/blog/index.php/pandora-has-on-air-ads/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/pandora-has-on-air-ads/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 18:18:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/?p=238</guid>
		<description><![CDATA[NOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!]]></description>
			<content:encoded><![CDATA[<p>NOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/pandora-has-on-air-ads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 10 Free G1 Android Apps</title>
		<link>http://www.kevincornwell.com/blog/index.php/top-10-free-g1-android-apps/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/top-10-free-g1-android-apps/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 20:33:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[g1]]></category>
		<category><![CDATA[tmobile]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/?p=230</guid>
		<description><![CDATA[Nearly every night before I go to sleep I check the Market store for new apps. I have viewed every app (several thousand now) and installed (and uninstalled) maybe 150 that seemed worthy. This list is good for the person who just purchased a new G1 and doesn&#8217;t know which good apps to get. Here [...]]]></description>
			<content:encoded><![CDATA[<p>Nearly every night before I go to sleep I check the Market store for new apps.  I have viewed every app (several thousand now) and installed (and uninstalled) maybe 150 that seemed worthy.  This list is good for the person who just purchased a new G1 and doesn&#8217;t know which good apps to get.  Here is my top 10 list:</p>
<p>1) <strong>Star Map</strong>.  This is the definitive application for showing off your G1.  No other phone has the necessary hardware.  It uses the accelerometers and compass to know which orientation the phone is in and prints the star map on the screen.  <a href="http://www.starreservoir.com/">http://www.starreservoir.com/</a></p>
<p>2) All application written by Google.  By default, not all Google apps come preinstalled.  Here are the current list of Google apps:  <strong>My Maps Editor, Scoreboard, Finance, Picasa Uploader, My Tracks</strong>.</p>
<p>3) <strong>AK Notepad</strong>.  A full featured notepad app.  Until google (or third party) integrates Google &#8220;Tasks&#8221; or &#8220;Notes&#8221;.  <strong>AK Notepad</strong> is the shit. <a href="http://www.kurniadi.org/aknotepad/">http://www.kurniadi.org/aknotepad/</a></p>
<p>4) <strong>Ringdroid</strong>.  Nicely polished ringtone app.  Take any music file and chop it into a ringtone.  Simple, full featured and intuitive. <a href="http://code.google.com/p/ringdroid/">http://code.google.com/p/ringdroid/</a></p>
<p>5) <strong>Weatherbug</strong>.  It&#8217;s a tiny bit bloated but I love it.  Runs in the notification bar and always gives you local data as you travel.  Gets better with every release. <a href="http://weather.weatherbug.com/mobile/android.html">http://weather.weatherbug.com/mobile/android.html</a></p>
<p>6) <strong>WikiMobile</strong>.  Fast as poop wiki search engine.  Nice.</p>
<p>7) <strong>Free Dictionary</strong>.  Fast as eff dictionary search engine.</p>
<p>8) <strong>ShopSavvy</strong>.  Scan barcode and get the best prices online and locally.</p>
<p>9) <strong>PF Voicemail</strong>.  Voicemails are downloaded to phone and organized with relevant data (time, duration caller id).  You can listen to only the voice mails you want and in the order you want.  Way faster than T-Mobile dial in!!  This should be built into the phone.  </p>
<p>10) <strong>Flashlight</strong> (by Devesh Parekh).  There are a bazillion flashlights.  This is the best.  Max brightness and anti sleep.  What more do you need?</p>
<p>Others that are good but didn&#8217;t make the top 10:</p>
<p>&#8211; <strong>OI Countdown</strong>.  A simple countdown timer.<br />
&#8211; <strong>Stopwatch</strong>.  Stopwatch.<br />
&#8211; <strong>Voice Recorder</strong>.  doi.<br />
&#8211; <strong>PicSay</strong>.  Edit and caption photos.<br />
&#8211; <strong>SMS Backup</strong>.  Backs up all your SMS/MMS messages to Google email then archives and tags them.<br />
&#8211; <strong>Convert That</strong>.  Convert anything into anything (for nerds).<br />
&#8211; <strong>Bartender</strong>.  Gets better with every release.  Online database and custom drinks.</p>
<p>&#8211; <strong>Astro File Manager</strong>  Has Application backup feature!!  backs up your .akp files to the SD card.  Sweet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/top-10-free-g1-android-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Media Player 11: How to share media files that are located on other computers on your home network (to share to your xbox 360 or other pc&#8217;s).</title>
		<link>http://www.kevincornwell.com/blog/index.php/windows-media-player-11-how-to-share-media-files-that-are-located-on-other-computers-on-your-home-network-to-share-to-your-xbox-360-or-other-pcs/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/windows-media-player-11-how-to-share-media-files-that-are-located-on-other-computers-on-your-home-network-to-share-to-your-xbox-360-or-other-pcs/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 15:44:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XP]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[windows media player xbox 360 music video sharing]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/?p=228</guid>
		<description><![CDATA[To enable remote content sharing Perform the following steps on the computer that contains the library you are sharing. 1. Click Start, click Run, type regedit, and then click OK. 2. In the registry tree (on the left), expand HKEY_LOCAL_MACHINE, SOFTWARE, Microsoft, MediaPlayer, and Preferences. 3. Right-click HME, point to New, and then click DWORD [...]]]></description>
			<content:encoded><![CDATA[<p><strong>To enable remote content sharing</strong></p>
<p>Perform the following steps on the computer that contains the library you are sharing.<br />
1. Click Start, click Run, type regedit, and then click OK.<br />
2. In the registry tree (on the left), expand HKEY_LOCAL_MACHINE, SOFTWARE, Microsoft, MediaPlayer, and Preferences.<br />
3. Right-click HME, point to New, and then click DWORD Value.<br />
4. Type EnableRemoteContentSharing, and then press ENTER.<br />
5. Right-click EnableRemoteContentSharing, and then click Modify.<br />
6. In the Value data text box, type 1, and then click OK. If you later decide to disable remote content sharing, you can repeat this procedure and change the value to 0.<br />
Caution: Incorrectly editing the registry may severely damage your system. Before making changes to the registry, you should back up any valued data on your computer.</p>
<p><strong>To grant one user account permission to access folders on other computers</strong></p>
<p>1. Click Start, click Control Panel, click Performance and Maintenance or System and Maintenance, click Administrative Tools, and then double-click Services.<br />
2. Scroll down the list of services, right-click Windows Media Player Network Sharing Service, and then click Properties.<br />
3. On the Log On tab, click This account, and specify a user account that has Read permission for the remote folders containing media that you want to share. This account should have a password that never expires.<br />
4. On the General tab, click Stop, click Start, and then click OK.<br />
5. On the computer containing the library you are sharing, click Start, click Run, type regedit, and then click OK.<br />
6. In the registry tree (on the left), expand HKEY_LOCAL_MACHINE, SOFTWARE, Microsoft, and Windows Media Player NSS.<br />
7. Right-click 3.0, and then click Permissions.<br />
8. Click Add.<br />
9. In the Enter the object names to select box, type the name of the account you specified in step 3 of the preceding procedure.<br />
10. Click OK.<br />
11. In the Group or user names box, click the name of the account you specified in step 3 of the preceding procedure.<br />
12. In the Permissions box, on the Full Control row, select the Allow check box.<br />
13. Click OK, and then close Registry Editor.<br />
Caution: Incorrectly editing the registry may severely damage your system. Before making changes to the registry, you should back up any valued data on your computer.</p>
<p><strong>To enable sharing in Windows Media Player</strong></p>
<p>1. Click the arrow below the Library tab, and then click Media Sharing.<br />
2. In the Media Sharing dialog box, select the Share my media to check box.<br />
3. In the list of devices below the Share my media to check box, select a device.<br />
4. Do one of the following:<br />
&#8211;If you want to share your media with the computer or device you have selected, click Allow.<br />
&#8211;If you don&#8217;t want to share your media with the computer or device you have selected, click Deny.</p>
<p>More info here&#8230;</p>
<p><a href="http://www.microsoft.com/windows/windowsmedia/player/faq/sharing.mspx">http://www.microsoft.com/windows/windowsmedia/player/faq/sharing.mspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/windows-media-player-11-how-to-share-media-files-that-are-located-on-other-computers-on-your-home-network-to-share-to-your-xbox-360-or-other-pcs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.NET DataGrid (or GridView) To Excel Utility</title>
		<link>http://www.kevincornwell.com/blog/index.php/net-datagrid-or-gridview-to-excel-utility/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/net-datagrid-or-gridview-to-excel-utility/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 15:00:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/net-datagrid-to-excel-utility/</guid>
		<description><![CDATA[protected void Button3_Click&#40;object sender, EventArgs e&#41; &#123; &#160; &#160; DataSet dsExport = dataSet; DataGrid dgExport = new DataGrid&#40;&#41;; dgExport.DataSource = dsExport; &#160; //ExportToExcel(); &#160; DataGridToExcel&#40;dgExport, Response&#41;; &#125; &#160; protected void DataGridToExcel&#40;DataGrid dGridExport, HttpResponse httpResp&#41; &#123; httpResp.Clear&#40;&#41;; httpResp.Charset = &#34;&#34;; httpResp.ContentType = &#34;application/vnd.ms-excel&#34;; StringWriter stringWrite = new StringWriter&#40;&#41;; HtmlTextWriter htmlWrite = new HtmlTextWriter&#40;stringWrite&#41;; DataGrid dGrid = [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="csharp">    <span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> Button3_Click<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
&nbsp;
&nbsp;
        DataSet dsExport = dataSet;
        DataGrid dgExport = <span style="color: #008000;">new</span> DataGrid<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        dgExport.<span style="color: #0000FF;">DataSource</span> = dsExport;
&nbsp;
        <span style="color: #008080; font-style: italic;">//ExportToExcel();</span>
&nbsp;
        DataGridToExcel<span style="color: #000000;">&#40;</span>dgExport, Response<span style="color: #000000;">&#41;</span>;
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> DataGridToExcel<span style="color: #000000;">&#40;</span>DataGrid dGridExport, HttpResponse httpResp<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        httpResp.<span style="color: #0000FF;">Clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        httpResp.<span style="color: #0000FF;">Charset</span> = <span style="color: #808080;">&quot;&quot;</span>;
        httpResp.<span style="color: #0000FF;">ContentType</span> = <span style="color: #808080;">&quot;application/vnd.ms-excel&quot;</span>;
        StringWriter stringWrite = <span style="color: #008000;">new</span> StringWriter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        HtmlTextWriter htmlWrite = <span style="color: #008000;">new</span> HtmlTextWriter<span style="color: #000000;">&#40;</span>stringWrite<span style="color: #000000;">&#41;</span>;
        DataGrid dGrid = <span style="color: #008000;">new</span> DataGrid<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        dGrid = dGridExport;
        dGrid.<span style="color: #0000FF;">HeaderStyle</span>.<span style="color: #0000FF;">Font</span>.<span style="color: #0000FF;">Bold</span> = <span style="color: #0600FF;">true</span>;
        dGrid.<span style="color: #0000FF;">DataBind</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        dGrid.<span style="color: #0000FF;">RenderControl</span><span style="color: #000000;">&#40;</span>htmlWrite<span style="color: #000000;">&#41;</span>;
        httpResp.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>stringWrite.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
        httpResp.<span style="color: #0000FF;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
    <span style="color: #000000;">&#125;</span></pre></div></div>

<p>Or to export a DataGrid to Excel use:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp">    <span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> LinkButton1_Click<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        exportToExcel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> exportToExcel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        VerifyRenderingInServerForm<span style="color: #000000;">&#40;</span>GridView1<span style="color: #000000;">&#41;</span>;
&nbsp;
        <span style="color: #008080; font-style: italic;">/* This is a limit in Excel prior to Office 2007 */</span>
        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>GridView1.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Count</span> &gt; <span style="color: #FF0000;">65536</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            Page.<span style="color: #0000FF;">Response</span>.<span style="color: #0000FF;">Clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            Page.<span style="color: #0000FF;">Response</span>.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Too many lines to export.&quot;</span><span style="color: #000000;">&#41;</span>;
            Page.<span style="color: #0000FF;">Response</span>.<span style="color: #0000FF;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        <span style="color: #000000;">&#125;</span>
        GridView1.<span style="color: #0000FF;">AllowPaging</span> = <span style="color: #0600FF;">false</span>;
        GridView1.<span style="color: #0000FF;">AllowSorting</span> = <span style="color: #0600FF;">false</span>;
        GridView1.<span style="color: #0000FF;">DataBind</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        Response.<span style="color: #0000FF;">Clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        Response.<span style="color: #0000FF;">AddHeader</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;content-disposition&quot;</span>, <span style="color: #808080;">&quot;attachment; filename=FileName.xls&quot;</span><span style="color: #000000;">&#41;</span>;
        Response.<span style="color: #0000FF;">Charset</span> = <span style="color: #808080;">&quot;&quot;</span>;
        <span style="color: #008080; font-style: italic;">// If you want the option to open the Excel file without saving than</span>
        <span style="color: #008080; font-style: italic;">// comment out the line below</span>
        <span style="color: #008080; font-style: italic;">// Response.Cache.SetCacheability(HttpCacheability.NoCache);</span>
        Response.<span style="color: #0000FF;">ContentType</span> = <span style="color: #808080;">&quot;application/vnd.xls&quot;</span>;
        <span style="color: #000000;">System</span>.<span style="color: #0000FF;">IO</span>.<span style="color: #0000FF;">StringWriter</span> stringWrite = <span style="color: #008000;">new</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">IO</span>.<span style="color: #0000FF;">StringWriter</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">UI</span>.<span style="color: #0000FF;">HtmlTextWriter</span> htmlWrite = <span style="color: #008000;">new</span> HtmlTextWriter<span style="color: #000000;">&#40;</span>stringWrite<span style="color: #000000;">&#41;</span>;
        GridView1.<span style="color: #0000FF;">RenderControl</span><span style="color: #000000;">&#40;</span>htmlWrite<span style="color: #000000;">&#41;</span>;
        Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>stringWrite.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
        Response.<span style="color: #0000FF;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #0600FF;">public</span> <span style="color: #0600FF;">override</span> <span style="color: #0600FF;">void</span> VerifyRenderingInServerForm<span style="color: #000000;">&#40;</span>Control control<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #008080; font-style: italic;">/* Confirms that an HtmlForm control is rendered for the specified ASP.NET
           server control at run time. */</span>
    <span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/net-datagrid-or-gridview-to-excel-utility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.NET: Convert A String Into A Compressed String</title>
		<link>http://www.kevincornwell.com/blog/index.php/net-compress-a-sring-into-a-compressed-string/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/net-compress-a-sring-into-a-compressed-string/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 20:53:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/net-compress-a-sring-into-a-compressed-string/</guid>
		<description><![CDATA[Written with .NET 2.0. Should work with 3.x as well. using System.IO.Compression; using System.Text; &#160; protected string Compress&#40;string text&#41; &#123; byte&#91;&#93; buffer = Encoding.UTF8.GetBytes&#40;text&#41;; MemoryStream ms = new MemoryStream&#40;&#41;; using &#40;GZipStream zip = new GZipStream&#40;ms, CompressionMode.Compress, true&#41;&#41; &#123; zip.Write&#40;buffer, 0, buffer.Length&#41;; &#125; &#160; ms.Position = 0; MemoryStream outStream = new MemoryStream&#40;&#41;; &#160; byte&#91;&#93; compressed = [...]]]></description>
			<content:encoded><![CDATA[<p>Written with .NET 2.0.  Should work with 3.x as well.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp"><span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">IO</span>.<span style="color: #0000FF;">Compression</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Text</span>;
&nbsp;
<span style="color: #0600FF;">protected</span> <span style="color: #FF0000;">string</span> Compress<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> text<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> buffer = Encoding.<span style="color: #0000FF;">UTF8</span>.<span style="color: #0000FF;">GetBytes</span><span style="color: #000000;">&#40;</span>text<span style="color: #000000;">&#41;</span>;
    MemoryStream ms = <span style="color: #008000;">new</span> MemoryStream<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
    <span style="color: #0600FF;">using</span> <span style="color: #000000;">&#40;</span>GZipStream zip = <span style="color: #008000;">new</span> GZipStream<span style="color: #000000;">&#40;</span>ms, CompressionMode.<span style="color: #0000FF;">Compress</span>, <span style="color: #0600FF;">true</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        zip.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>buffer, <span style="color: #FF0000;">0</span>, buffer.<span style="color: #0000FF;">Length</span><span style="color: #000000;">&#41;</span>;
    <span style="color: #000000;">&#125;</span>
&nbsp;
    ms.<span style="color: #0000FF;">Position</span> = <span style="color: #FF0000;">0</span>;
    MemoryStream outStream = <span style="color: #008000;">new</span> MemoryStream<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
    <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> compressed = <span style="color: #008000;">new</span> <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span>ms.<span style="color: #0000FF;">Length</span><span style="color: #000000;">&#93;</span>;
    ms.<span style="color: #0000FF;">Read</span><span style="color: #000000;">&#40;</span>compressed, <span style="color: #FF0000;">0</span>, compressed.<span style="color: #0000FF;">Length</span><span style="color: #000000;">&#41;</span>;
&nbsp;
    <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> gzBuffer = <span style="color: #008000;">new</span> <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span>compressed.<span style="color: #0000FF;">Length</span> + <span style="color: #FF0000;">4</span><span style="color: #000000;">&#93;</span>;
    <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Buffer</span>.<span style="color: #0000FF;">BlockCopy</span><span style="color: #000000;">&#40;</span>compressed, <span style="color: #FF0000;">0</span>, gzBuffer, <span style="color: #FF0000;">4</span>, compressed.<span style="color: #0000FF;">Length</span><span style="color: #000000;">&#41;</span>;
    <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Buffer</span>.<span style="color: #0000FF;">BlockCopy</span><span style="color: #000000;">&#40;</span>BitConverter.<span style="color: #0000FF;">GetBytes</span><span style="color: #000000;">&#40;</span>buffer.<span style="color: #0000FF;">Length</span><span style="color: #000000;">&#41;</span>, <span style="color: #FF0000;">0</span>, gzBuffer, <span style="color: #FF0000;">0</span>, <span style="color: #FF0000;">4</span><span style="color: #000000;">&#41;</span>;
    <span style="color: #0600FF;">return</span> Convert.<span style="color: #0000FF;">ToBase64String</span><span style="color: #000000;">&#40;</span>gzBuffer<span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #0600FF;">protected</span> <span style="color: #FF0000;">string</span> Decompress<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> compressedText<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> gzBuffer = Convert.<span style="color: #0000FF;">FromBase64String</span><span style="color: #000000;">&#40;</span>compressedText<span style="color: #000000;">&#41;</span>;
    <span style="color: #0600FF;">using</span> <span style="color: #000000;">&#40;</span>MemoryStream ms = <span style="color: #008000;">new</span> MemoryStream<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #FF0000;">int</span> msgLength = BitConverter.<span style="color: #0000FF;">ToInt32</span><span style="color: #000000;">&#40;</span>gzBuffer, <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>;
        ms.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>gzBuffer, <span style="color: #FF0000;">4</span>, gzBuffer.<span style="color: #0000FF;">Length</span> - <span style="color: #FF0000;">4</span><span style="color: #000000;">&#41;</span>;
&nbsp;
        <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> buffer = <span style="color: #008000;">new</span> <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span>msgLength<span style="color: #000000;">&#93;</span>;
&nbsp;
        ms.<span style="color: #0000FF;">Position</span> = <span style="color: #FF0000;">0</span>;
        <span style="color: #0600FF;">using</span> <span style="color: #000000;">&#40;</span>GZipStream zip = <span style="color: #008000;">new</span> GZipStream<span style="color: #000000;">&#40;</span>ms, CompressionMode.<span style="color: #0000FF;">Decompress</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            zip.<span style="color: #0000FF;">Read</span><span style="color: #000000;">&#40;</span>buffer, <span style="color: #FF0000;">0</span>, buffer.<span style="color: #0000FF;">Length</span><span style="color: #000000;">&#41;</span>;
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">return</span> Encoding.<span style="color: #0000FF;">UTF8</span>.<span style="color: #0000FF;">GetString</span><span style="color: #000000;">&#40;</span>buffer<span style="color: #000000;">&#41;</span>;
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/net-compress-a-sring-into-a-compressed-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Break into Debugger when Exception is thrown</title>
		<link>http://www.kevincornwell.com/blog/index.php/break-into-debugger-when-exception-is-thrown/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/break-into-debugger-when-exception-is-thrown/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 20:59:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/break-into-debugger-when-exception-is-thrown/</guid>
		<description><![CDATA[Break into Debugger when Exception is thrown even if you are using try catch statements. From Visual Studio, hit CTRL + ALT + E. Then check the &#8220;Thrown attribute of the Common Language Runtime Exceptions.]]></description>
			<content:encoded><![CDATA[<p>Break into Debugger when Exception is thrown even if you are using try catch statements.</p>
<p>From Visual Studio, hit <strong>CTRL + ALT + E</strong>.  Then check the &#8220;Thrown attribute of the Common Language Runtime Exceptions.</p>
<p><a href='http://www.kevincornwell.com/blog/wp-content/uploads/2008/03/untitled.GIF' title='untitled.GIF'><img src='http://www.kevincornwell.com/blog/wp-content/uploads/2008/03/untitled.thumbnail.GIF' alt='untitled.GIF' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/break-into-debugger-when-exception-is-thrown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maxmind and Google Maps Mashup [php]</title>
		<link>http://www.kevincornwell.com/blog/index.php/maxmind-and-google-maps-mashup/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/maxmind-and-google-maps-mashup/#comments</comments>
		<pubDate>Sat, 08 Mar 2008 23:06:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/maxmind-and-google-maps-mashup/</guid>
		<description><![CDATA[I was bored today so I created a very simple and fast php script to plot the location for a given IP and display other IP information (such as lattitude, longitude, Country, State, Area code, ISP, etc.) on a Google Map using the Maxmind web service and the Google Maps API. The link in the [...]]]></description>
			<content:encoded><![CDATA[<p>I was bored today so I created a very simple and fast php script to plot the location for a given IP and display other IP information (such as lattitude, longitude, Country, State, Area code, ISP, etc.) on a Google Map using the Maxmind web service and the Google Maps API.</p>
<p><a href='http://www.kevincornwell.com/blog/wp-content/uploads/2008/03/maxmind_google_maps_mashup.GIF' title='maxmind_google_maps_mashup.GIF'><img src='http://www.kevincornwell.com/blog/wp-content/uploads/2008/03/maxmind_google_maps_mashup.thumbnail.GIF' alt='maxmind_google_maps_mashup.GIF' /></a></p>
<p>The link in the balloon points domaintools.com and does a whois lookup on the IP for detailed information on the ISP (internet service provider).</p>
<p><a href="http://www.kevincornwell.com/MaxmindGoogleMap/index.php?ip=98.195.83.50">Here is a working demo</a> (hard coded IP).<br />
<br/><br/></p>
<p>In order for this script to work on your site, you will need a <a href="http://www.maxmind.com/app/web_services#city">MaxMind GeoIP City/ISP/Organization Web Service Key</a> (50,000 lookups for $20.00) and a <a href="http://code.google.com/apis/maps/signup.html">Google Maps Key</a> (free).  There are other IP to Lat/Long Web services out there but Maxmind is by far the most accurate (none are 100% accurate).</p>
<p>To render the location of an IP on the map, send the IP via the query string such as&#8230;</p>
<pre>

http://www.yourDomain.com/MaxmindGoogleMap/index.php?ip=98.195.83.50
</pre>
<p><br/></p>
<p>Here is the script.  Copy the contents to a .php file and edit the 2 keys.  That&#8217;s it!</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
        <span style="color: #808080; font-style: italic;">//////////////////////////////////////////////////////////////////////////////////////</span>
        <span style="color: #808080; font-style: italic;">///////////////  Maxmind/Google Maps Mashup by Kevin Cornwell ///////////////</span>
        <span style="color: #808080; font-style: italic;">///////////////                       Version 1.0                             ///////////////</span>
        <span style="color: #808080; font-style: italic;">///////////////          http://www.kevincornwell.com                ///////////////</span>
        <span style="color: #808080; font-style: italic;">/////////////////////////////////////////////////////////////////////////////////////</span>
&nbsp;
&nbsp;
&nbsp;
	<span style="color: #808080; font-style: italic;">// EDIT THE NEXT 2 KEYS</span>
&nbsp;
	<span style="color: #0000ff;">$maxmind_license_key</span>  = <span style="color: #ff0000;">&quot;foo&quot;</span>;    <span style="color: #808080; font-style: italic;">// Replace [foo] with your key.</span>
	<span style="color: #0000ff;">$google_maps_key</span>      = <span style="color: #ff0000;">&quot;bar&quot;</span>;    <span style="color: #808080; font-style: italic;">// Replace [bar] with your key.</span>
&nbsp;
&nbsp;
	<span style="color: #0000ff;">$zoom</span>                 = <span style="color: #cc66cc;">4</span>;          <span style="color: #808080; font-style: italic;">// Default zoom level.</span>
	<span style="color: #0000ff;">$lat</span>                  = <span style="color: #cc66cc;">39.232</span>;     <span style="color: #808080; font-style: italic;">// Center on this location by default when no IP is passed.</span>
	<span style="color: #0000ff;">$long</span>                 = <span style="color: #cc66cc;">-95.800</span>;    <span style="color: #808080; font-style: italic;">// Center on this location by default when no IP is passed.</span>
	<span style="color: #0000ff;">$ip</span>                   = <span style="color: #ff0000;">&quot;&quot;</span>;
	<span style="color: #0000ff;">$message</span>              = <span style="color: #ff0000;">&quot;Hello World&quot;</span>;   <span style="color: #808080; font-style: italic;">// Default message when no IP is passed.</span>
&nbsp;
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000066;">isset</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_REQUEST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'ip'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0000ff;">$ip</span> = <span style="color: #0000ff;">$_REQUEST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'ip'</span><span style="color: #66cc66;">&#93;</span>;
&nbsp;
		<span style="color: #0000ff;">$r</span> = maxmind_lookup<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$ip</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #0000ff;">$message</span> = <span style="color: #ff0000;">&quot;&lt;table cellspacing=0&gt;&lt;tr&gt;&lt;td align='right'&gt;&lt;b&gt;IP:&lt;/b&gt; &amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;a href='http://whois.domaintools.com/{$ip}'&gt;{$ip}&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align='right'&gt;&lt;b&gt;Country:&lt;/b&gt; &amp;nbsp;&lt;/td&gt;&lt;td&gt;{$r['country']}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align='right'&gt;&lt;b&gt;Region:&lt;/b&gt; &amp;nbsp;&lt;/td&gt;&lt;td&gt;{$r['region']}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align='right'&gt;&lt;b&gt;City:&lt;/b&gt; &amp;nbsp;&lt;/td&gt;&lt;td&gt;{$r['city']}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align='right'&gt;&lt;b&gt;Zip:&lt;/b&gt; &amp;nbsp;&lt;/td&gt;&lt;td&gt;{$r['zip']}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align='right'&gt;&lt;b&gt;Lat:&lt;/b&gt; &amp;nbsp;&lt;/td&gt;&lt;td&gt;{$r['lat']}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align='right'&gt;&lt;b&gt;Long:&lt;/b&gt; &amp;nbsp;&lt;/td&gt;&lt;td&gt;{$r['long']}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align='right'&gt;&lt;b&gt;Metro:&lt;/b&gt; &amp;nbsp;&lt;/td&gt;&lt;td&gt;{$r['metro_code']}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align='right'&gt;&lt;b&gt;Area Code:&lt;/b&gt; &amp;nbsp;&lt;/td&gt;&lt;td&gt;{$r['area_code']}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align='right'&gt;&lt;b&gt;ISP:&lt;/b&gt; &amp;nbsp;&lt;/td&gt;&lt;td&gt;{$r['isp']}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align='right'&gt;&lt;b&gt;Org:&lt;/b&gt; &amp;nbsp;&lt;/td&gt;&lt;td&gt;{$r['org']}&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&quot;</span>;
&nbsp;
		<span style="color: #0000ff;">$lat</span> = <span style="color: #0000ff;">$r</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'lat'</span><span style="color: #66cc66;">&#93;</span>;
		<span style="color: #0000ff;">$long</span> = <span style="color: #0000ff;">$r</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'long'</span><span style="color: #66cc66;">&#93;</span>;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> maxmind_lookup<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$ipaddress</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
&nbsp;
		<span style="color: #000066;">global</span> <span style="color: #0000ff;">$maxmind_license_key</span>;
&nbsp;
		<span style="color: #808080; font-style: italic;">// Returns:ISO 3166 Two-letter Country Code, Region Code, City, Postal Code, </span>
		<span style="color: #808080; font-style: italic;">// Latitude, Longitude, Metropolitan Code, Area Code, ISP, Organization.</span>
&nbsp;
&nbsp;
		<span style="color: #0000ff;">$query</span> = <span style="color: #ff0000;">&quot;http://maxmind.com:8010/f?l=&quot;</span> . <span style="color: #0000ff;">$maxmind_license_key</span> . <span style="color: #ff0000;">&quot;&amp;i=&quot;</span> . <span style="color: #0000ff;">$ipaddress</span>;
		<span style="color: #0000ff;">$url</span> = <span style="color: #000066;">parse_url</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$query</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #0000ff;">$host</span> = <span style="color: #0000ff;">$url</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;host&quot;</span><span style="color: #66cc66;">&#93;</span>;
		<span style="color: #0000ff;">$path</span> = <span style="color: #0000ff;">$url</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;path&quot;</span><span style="color: #66cc66;">&#93;</span> . <span style="color: #ff0000;">&quot;?&quot;</span> . <span style="color: #0000ff;">$url</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;query&quot;</span><span style="color: #66cc66;">&#93;</span>;
		<span style="color: #0000ff;">$timeout</span> = <span style="color: #cc66cc;">1</span>;
		<span style="color: #0000ff;">$fp</span> = <span style="color: #000066;">fsockopen</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$host</span>, <span style="color: #cc66cc;">8010</span>, <span style="color: #0000ff;">$errno</span>, <span style="color: #0000ff;">$errstr</span>, <span style="color: #0000ff;">$timeout</span><span style="color: #66cc66;">&#41;</span>
		or <span style="color: #000066;">die</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Can not open connection to maxmind server.'</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #0000ff;">$buf</span> = <span style="color: #ff0000;">&quot;&quot;</span>;
&nbsp;
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$fp</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
			<span style="color: #000066;">fputs</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$fp</span>, <span style="color: #ff0000;">&quot;GET $path HTTP/1.0<span style="color: #000099; font-weight: bold;">\n</span>Host: &quot;</span> . <span style="color: #0000ff;">$host</span> . <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #b1b100;">while</span> <span style="color: #66cc66;">&#40;</span>!<span style="color: #000066;">feof</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$fp</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
				<span style="color: #0000ff;">$buf</span> .= <span style="color: #000066;">fgets</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$fp</span>, <span style="color: #cc66cc;">128</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
			<span style="color: #0000ff;">$lines</span> = <span style="color: #000066;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>, <span style="color: #0000ff;">$buf</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$data</span> = <span style="color: #0000ff;">$lines</span><span style="color: #66cc66;">&#91;</span><span style="color: #000066;">count</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lines</span><span style="color: #66cc66;">&#41;</span><span style="color: #cc66cc;">-1</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #000066;">fclose</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$fp</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #0000ff;">$arrMaxmind</span> = <span style="color: #000066;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;,&quot;</span>, <span style="color: #0000ff;">$data</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$arrMaxmind</span> = <span style="color: #000066;">str_replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span>, <span style="color: #ff0000;">&quot;&quot;</span>, <span style="color: #0000ff;">$arrMaxmind</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$arrMaxmind</span> = <span style="color: #000066;">str_replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;,&quot;</span>, <span style="color: #ff0000;">&quot; &quot;</span>, <span style="color: #0000ff;">$arrMaxmind</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #0000ff;">$r</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'country'</span><span style="color: #66cc66;">&#93;</span> 		= <span style="color: #0000ff;">$arrMaxmind</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #0000ff;">$r</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'region'</span><span style="color: #66cc66;">&#93;</span> 		= <span style="color: #0000ff;">$arrMaxmind</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #0000ff;">$r</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'city'</span><span style="color: #66cc66;">&#93;</span> 		= <span style="color: #0000ff;">$arrMaxmind</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #0000ff;">$r</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'zip'</span><span style="color: #66cc66;">&#93;</span> 		= <span style="color: #0000ff;">$arrMaxmind</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #0000ff;">$r</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'lat'</span><span style="color: #66cc66;">&#93;</span> 		= <span style="color: #0000ff;">$arrMaxmind</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #0000ff;">$r</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'long'</span><span style="color: #66cc66;">&#93;</span> 		= <span style="color: #0000ff;">$arrMaxmind</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #0000ff;">$r</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'metro_code'</span><span style="color: #66cc66;">&#93;</span> 	= <span style="color: #0000ff;">$arrMaxmind</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">6</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #0000ff;">$r</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'area_code'</span><span style="color: #66cc66;">&#93;</span> 	= <span style="color: #0000ff;">$arrMaxmind</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">7</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #0000ff;">$r</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'isp'</span><span style="color: #66cc66;">&#93;</span> 		= <span style="color: #0000ff;">$arrMaxmind</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#93;</span>;
			<span style="color: #0000ff;">$r</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'org'</span><span style="color: #66cc66;">&#93;</span> 		= <span style="color: #0000ff;">$arrMaxmind</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">9</span><span style="color: #66cc66;">&#93;</span>;
&nbsp;
		<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">false</span>;
		<span style="color: #66cc66;">&#125;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$r</span>;
	<span style="color: #66cc66;">&#125;</span>		
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;!DOCTYPE html <span style="color: #000000; font-weight: bold;">PUBLIC</span> <span style="color: #ff0000;">&quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;</span>
  <span style="color: #ff0000;">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;</span>&gt;
&lt;html xmlns=<span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span>&gt;
  &lt;head&gt;
    &lt;meta http-equiv=<span style="color: #ff0000;">&quot;content-type&quot;</span> content=<span style="color: #ff0000;">&quot;text/html; charset=utf-8&quot;</span>/&gt;
    &lt;title&gt;&lt;?php <span style="color: #000066;">echo</span> <span style="color: #0000ff;">$ip</span> ?&gt;&lt;/title&gt;
    &lt;script src=<span style="color: #ff0000;">&quot;http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=&lt;?php echo $google_maps_key ?&gt;&quot;</span>
      type=<span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;/script&gt;
    &lt;script type=<span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;
&nbsp;
    <span style="color: #808080; font-style: italic;">//&lt;![CDATA[</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> load<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> 
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>GBrowserIsCompatible<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> 
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">var</span> map = <span style="color: #000000; font-weight: bold;">new</span> GMap2<span style="color: #66cc66;">&#40;</span>document.getElementById<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;map&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
			map.addControl<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> GLargeMapControl<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
			map.addControl<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> GMapTypeControl<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
			map.setCenter<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> GLatLng<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000066;">echo</span> <span style="color: #0000ff;">$lat</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>, <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000066;">echo</span> <span style="color: #0000ff;">$long</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000066;">echo</span> <span style="color: #0000ff;">$zoom</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #000000; font-weight: bold;">var</span> marker = <span style="color: #000000; font-weight: bold;">new</span> GMarker<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> GLatLng<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000066;">echo</span> <span style="color: #0000ff;">$lat</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>, <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000066;">echo</span> <span style="color: #0000ff;">$long</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
			marker.html = <span style="color: #ff0000;">&quot;&lt;?php echo $message ?&gt;&quot;</span>;
			GEvent.addListener<span style="color: #66cc66;">&#40;</span>marker, <span style="color: #ff0000;">'click'</span>, <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>marker.openInfoWindowHtml<span style="color: #66cc66;">&#40;</span>marker.html<span style="color: #66cc66;">&#41;</span>; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
			map.addOverlay<span style="color: #66cc66;">&#40;</span>marker<span style="color: #66cc66;">&#41;</span>;
			marker.openInfoWindowHtml<span style="color: #66cc66;">&#40;</span>marker.html<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">//]]&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
  &lt;/head&gt;
  &lt;body onload=<span style="color: #ff0000;">&quot;load()&quot;</span> onunload=<span style="color: #ff0000;">&quot;GUnload()&quot;</span>&gt;
    &lt;div id=<span style="color: #ff0000;">&quot;map&quot;</span> style=<span style="color: #ff0000;">&quot;width:800px;height:600px&quot;</span>&gt;&lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>If you liked my script, post a thanks below.<br />
:)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/maxmind-and-google-maps-mashup/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>.net versions rant</title>
		<link>http://www.kevincornwell.com/blog/index.php/net-versions-rant/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/net-versions-rant/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 16:21:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/net-versions-rant/</guid>
		<description><![CDATA[I am fairly certain the .NET versioning (numbering release) scheme is the dumbest ever created. Seriously who in their right mind does a point release that is a extension of the previous point but not the one before that (2.0 -> 3.0)? Then 3.0 -> to 3.5? wtf? Remember 1.0 and 1.1? Hmmm. How does [...]]]></description>
			<content:encoded><![CDATA[<p>I am fairly certain the .NET versioning (numbering release) scheme is the dumbest ever created.  Seriously who in their right mind does a point release that is a extension of the previous point but not the one before that (2.0 -> 3.0)?  Then 3.0 -> to 3.5?  wtf?  Remember 1.0 and 1.1?  Hmmm.  How does that fit in?  Oh yea, it doesn&#8217;t.</p>
<p>It went like this&#8230; </p>
<p>1.0 to 1.1.  Perfect.  Basically the 1.0 framework fixed with a couple new things.  That&#8217;s actually how it took place.</p>
<p>Then 2.0.  A whole new framework.  Yay!  We are good at this point.</p>
<p>Then 3.0.  Huh?  Another new framework?  Yay!? Wait, no, huh?  It&#8217;s not a framework? It&#8217;s a extension but only for 2.0 and not related at all to 1.0 or 1.1?  Oh good heavens MS.  </p>
<p>Then 3.5  Another extension to 2.0 or actually 3.0? Ok, now I&#8217;m getting mad.  What happened to 3.1, 3.2, etc.?  </p>
<p>What&#8217;s next? 8.0 with 10.0 extentions?</p>
<p>Might as well number it 38.5.  What&#8217;s the difference at this point?  There is NO consistency anyway and the higher the number the better right?</p>
<p>Anyway here is the 2.0 -> 3.5 relationships&#8230;<br />
<a href='http://www.kevincornwell.com/blog/wp-content/uploads/2007/11/dotnetframework35.png' title='dotnetframework35.png'><img src='http://www.kevincornwell.com/blog/wp-content/uploads/2007/11/dotnetframework35.thumbnail.png' alt='dotnetframework35.png' /></a></p>
<p>Seriously, if you know what the hell MS was thinking, post a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/net-versions-rant/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cannot get the list schema column property from the SharePoint List</title>
		<link>http://www.kevincornwell.com/blog/index.php/cannot-get-the-list-schema-column-property-from-the-sharepoint-list/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/cannot-get-the-list-schema-column-property-from-the-sharepoint-list/#comments</comments>
		<pubDate>Thu, 25 Oct 2007 18:52:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/cannot-get-the-list-schema-column-property-from-the-sharepoint-list/</guid>
		<description><![CDATA[This entry has been moved to mySharePointBlog.com. Go here.]]></description>
			<content:encoded><![CDATA[<p>This entry has been moved to mySharePointBlog.com.  <a href="http://www.mysharepointblog.com/post/2007/10/Cannot-get-the-list-schema-column-property-from-the-SharePoint-List.aspx">Go here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/cannot-get-the-list-schema-column-property-from-the-sharepoint-list/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Workaround For SharePoint Group Email Limits</title>
		<link>http://www.kevincornwell.com/blog/index.php/workaround-for-sharepoint-group-email-limits/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/workaround-for-sharepoint-group-email-limits/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 22:24:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/workaround-for-sharepoint-group-email-limits/</guid>
		<description><![CDATA[This entry has been moved to mySharePointBlog.com. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This entry has been moved to mySharePointBlog.com.  <a href="http://www.mysharepointblog.com/post/2007/10/Workaround-For-SharePoint-Group-Email-Limits.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/workaround-for-sharepoint-group-email-limits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET &#8211; Test NTFS Directory Access</title>
		<link>http://www.kevincornwell.com/blog/index.php/aspnet-test-ntfs-directory-access/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/aspnet-test-ntfs-directory-access/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 20:42:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/aspnet-test-ntfs-directory-access/</guid>
		<description><![CDATA[protected void Page_Load&#40;object sender, EventArgs e&#41; &#123; &#160; // Show admin link if they have access to the admin directory. // &#160; hyperLinkAdmin.Visible = hasAccessToDir&#40;&#34;admin&#34;&#41;; &#125; &#160; protected bool hasAccessToDir&#40;string dir&#41; &#123; return System.IO.Directory.Exists&#40;MapPath&#40;dir&#41;&#41;; &#125;]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="csharp">    <span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> Page_Load<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">// Show admin link if they have access to the admin directory. //</span>
&nbsp;
        hyperLinkAdmin.<span style="color: #0000FF;">Visible</span> = hasAccessToDir<span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;admin&quot;</span><span style="color: #000000;">&#41;</span>;
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #0600FF;">protected</span> <span style="color: #FF0000;">bool</span> hasAccessToDir<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> dir<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #0600FF;">return</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">IO</span>.<span style="color: #0000FF;">Directory</span>.<span style="color: #0000FF;">Exists</span><span style="color: #000000;">&#40;</span>MapPath<span style="color: #000000;">&#40;</span>dir<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
    <span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/aspnet-test-ntfs-directory-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Elevated Security</title>
		<link>http://www.kevincornwell.com/blog/index.php/sharepoint-elevated-security/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sharepoint-elevated-security/#comments</comments>
		<pubDate>Thu, 27 Sep 2007 20:15:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sharepoint-elevated-security/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/09/SharePoint-Elevated-Security.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sharepoint-elevated-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Active Directory User In .NET</title>
		<link>http://www.kevincornwell.com/blog/index.php/create-active-directory-user-in-net/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/create-active-directory-user-in-net/#comments</comments>
		<pubDate>Wed, 26 Sep 2007 20:43:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/create-active-directory-user-in-net/</guid>
		<description><![CDATA[C# public string CreateADUser&#40;string szUsername, string szDisplayName, string szFirstName, string szLastName, string szMiddleInitial, string szPhone, string szEmail, string szOrgUnit&#41; &#123; string szPassword = &#34;fooBar_123&#34;; //temp only. string szCNName = &#34;CN=&#34; + szUsername; &#160; try &#123; DirectoryEntry objContainer = new DirectoryEntry&#40;&#34;LDAP://OU=mySubOU,OU=myMainOU,DC=KEVINCORNWELL,DC=com&#34;&#41;; DirectoryEntry objUser = objContainer.Children.Add&#40;szCNName.ToLower&#40;&#41;, &#34;user&#34;&#41;; objUser.Properties&#91;&#34;sAMAccountName&#34;&#93;.Value = szUsername; objUser.Properties&#91;&#34;userPrincipalName&#34;&#93;.Value = szUsername + &#34;@KEVINCORNWELL.COM&#34;; objUser.Properties&#91;&#34;displayName&#34;&#93;.Value = [...]]]></description>
			<content:encoded><![CDATA[<p>C#</p>

<div class="wp_syntax"><div class="code"><pre class="csharp">    <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> CreateADUser<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> szUsername, <span style="color: #FF0000;">string</span> szDisplayName, <span style="color: #FF0000;">string</span> szFirstName, <span style="color: #FF0000;">string</span> szLastName, <span style="color: #FF0000;">string</span> szMiddleInitial, <span style="color: #FF0000;">string</span> szPhone, <span style="color: #FF0000;">string</span> szEmail, <span style="color: #FF0000;">string</span> szOrgUnit<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #FF0000;">string</span> szPassword = <span style="color: #808080;">&quot;fooBar_123&quot;</span>;  <span style="color: #008080; font-style: italic;">//temp only.</span>
        <span style="color: #FF0000;">string</span> szCNName = <span style="color: #808080;">&quot;CN=&quot;</span> + szUsername;
&nbsp;
        <span style="color: #0600FF;">try</span>
        <span style="color: #000000;">&#123;</span>
            DirectoryEntry objContainer = <span style="color: #008000;">new</span> DirectoryEntry<span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;LDAP://OU=mySubOU,OU=myMainOU,DC=KEVINCORNWELL,DC=com&quot;</span><span style="color: #000000;">&#41;</span>;
            DirectoryEntry objUser = objContainer.<span style="color: #0000FF;">Children</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>szCNName.<span style="color: #0000FF;">ToLower</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #808080;">&quot;user&quot;</span><span style="color: #000000;">&#41;</span>;
            objUser.<span style="color: #0000FF;">Properties</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;sAMAccountName&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Value</span> = szUsername;
            objUser.<span style="color: #0000FF;">Properties</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;userPrincipalName&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Value</span> = szUsername + <span style="color: #808080;">&quot;@KEVINCORNWELL.COM&quot;</span>;
            objUser.<span style="color: #0000FF;">Properties</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;displayName&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Value</span> = szDisplayName;
            objUser.<span style="color: #0000FF;">Properties</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;GivenName&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Value</span> = szFirstName;
            objUser.<span style="color: #0000FF;">Properties</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;sn&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Value</span> = szLastName;
            objUser.<span style="color: #0000FF;">Properties</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;Initials&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Value</span> = szMiddleInitial;
            objUser.<span style="color: #0000FF;">Properties</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;mail&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Value</span> = szEmail;
            objUser.<span style="color: #0000FF;">Properties</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;TelephoneNumber&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Value</span> = szPhone;
            objUser.<span style="color: #0000FF;">Properties</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;Description&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Value</span> = szOrgUnit;
            objUser.<span style="color: #0000FF;">CommitChanges</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            objUser.<span style="color: #0000FF;">Invoke</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;SetPassword&quot;</span>, szPassword<span style="color: #000000;">&#41;</span>;
            objUser.<span style="color: #0000FF;">CommitChanges</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #FF0000;">int</span> flags = <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span><span style="color: #000000;">&#41;</span>objUser.<span style="color: #0000FF;">Properties</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;userAccountControl&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Value</span>;
            objUser.<span style="color: #0000FF;">Properties</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;userAccountControl&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Value</span> = flags &amp; ~0x2;  <span style="color: #008080; font-style: italic;">//Enable User Account</span>
            objUser.<span style="color: #0000FF;">Properties</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;pwdLastSet&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Value</span> = <span style="color: #FF0000;">0</span>;
            objUser.<span style="color: #0000FF;">CommitChanges</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #0600FF;">return</span> <span style="color: #808080;">&quot;&quot;</span>;
        <span style="color: #000000;">&#125;</span>
        <span style="color: #0600FF;">catch</span> <span style="color: #000000;">&#40;</span>Exception ex<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #0600FF;">return</span> ex.<span style="color: #0000FF;">InnerException</span> + ex.<span style="color: #0000FF;">Message</span> + ex.<span style="color: #0000FF;">Source</span> + ex.<span style="color: #0000FF;">StackTrace</span> + ex.<span style="color: #0000FF;">Data</span>;
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/create-active-directory-user-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint WebPart Dev Tip</title>
		<link>http://www.kevincornwell.com/blog/index.php/sharepoint-webpart-dev-tip/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sharepoint-webpart-dev-tip/#comments</comments>
		<pubDate>Tue, 14 Aug 2007 20:27:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sharepoint-webpart-dev-tip/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/08/SharePoint-WebPart-Dev-Tip.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sharepoint-webpart-dev-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server &#8211; How to combine 2 date and time columns into 1 column.</title>
		<link>http://www.kevincornwell.com/blog/index.php/sql-server-how-to-combine-2-date-and-time-columns-into-1-column/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sql-server-how-to-combine-2-date-and-time-columns-into-1-column/#comments</comments>
		<pubDate>Thu, 09 Aug 2007 22:53:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[datetime]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sql-server-how-to-combine-2-date-and-time-columns-into-1-column/</guid>
		<description><![CDATA[Sample columns date_col: 2007-05-06 00:00:00.000 time_col: 1971-01-01 01:06:23.000 Use this&#8230; DATEADD&#40;hh ,DATEPART&#40;hh, &#91;time_col&#93;&#93;&#41;, DATEADD&#40;n ,DATEPART&#40;n, &#91;time_col&#93;&#41; , DATEADD&#40;ss ,DATEPART&#40;ss, &#91;time_col&#93;&#41; , &#91;date_col&#93;&#41;&#41;&#41; To get this&#8230; 2007-05-06 01:06:23.000]]></description>
			<content:encoded><![CDATA[<p>Sample columns</p>
<p>date_col:</p>
<pre>
2007-05-06 00:00:00.000
</pre>
<p>time_col:</p>
<pre>
1971-01-01 01:06:23.000
</pre>
<p>Use this&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="sql">DATEADD<span style="color: #66cc66;">&#40;</span>hh ,DATEPART<span style="color: #66cc66;">&#40;</span>hh, <span style="color: #66cc66;">&#91;</span>time_col<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>, DATEADD<span style="color: #66cc66;">&#40;</span>n ,DATEPART<span style="color: #66cc66;">&#40;</span>n, <span style="color: #66cc66;">&#91;</span>time_col<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> , DATEADD<span style="color: #66cc66;">&#40;</span>ss ,DATEPART<span style="color: #66cc66;">&#40;</span>ss, <span style="color: #66cc66;">&#91;</span>time_col<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> , <span style="color: #66cc66;">&#91;</span>date_col<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>To get this&#8230;</p>
<pre>
2007-05-06 01:06:23.000
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sql-server-how-to-combine-2-date-and-time-columns-into-1-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use the PeoplePicker in SharePoint</title>
		<link>http://www.kevincornwell.com/blog/index.php/how-to-use-the-peoplepicker-in-sharepoint/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/how-to-use-the-peoplepicker-in-sharepoint/#comments</comments>
		<pubDate>Fri, 20 Jul 2007 21:42:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/how-to-use-the-peoplepicker-in-sharepoint/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/07/How-to-use-the-PeoplePicker-in-SharePoint.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/how-to-use-the-peoplepicker-in-sharepoint/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Taskbar Shuffle</title>
		<link>http://www.kevincornwell.com/blog/index.php/taskbar-shuffle/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/taskbar-shuffle/#comments</comments>
		<pubDate>Fri, 20 Jul 2007 19:07:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/taskbar-shuffle/</guid>
		<description><![CDATA[Here is a sweet little app that allows you to shuffle your taskbar items. Go HERE]]></description>
			<content:encoded><![CDATA[<p>Here is a sweet little app that allows you to shuffle your taskbar items.  Go <a href="http://www.freewebs.com/nerdcave/taskbarshuffle.htm">HERE</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/taskbar-shuffle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to enable debugging in WSS 3.0</title>
		<link>http://www.kevincornwell.com/blog/index.php/how-to-enable-debugging-in-wss-30/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/how-to-enable-debugging-in-wss-30/#comments</comments>
		<pubDate>Thu, 12 Jul 2007 20:54:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/how-to-enable-debugging-in-wss-30/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/07/How-to-enable-debugging-in-WSS-30.aspx">Go Here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/how-to-enable-debugging-in-wss-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint &#8211; Establishing Site Context</title>
		<link>http://www.kevincornwell.com/blog/index.php/sharepoint-establishing-site-context/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sharepoint-establishing-site-context/#comments</comments>
		<pubDate>Thu, 12 Jul 2007 19:32:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sharepoint-establishing-site-context/</guid>
		<description><![CDATA[Using SPContext and making a application globally availible]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn2.microsoft.com/en-us/library/ms468609.aspx">Using SPContext and making a application globally availible</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sharepoint-establishing-site-context/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update a Person or Group field in SharePoint with C#</title>
		<link>http://www.kevincornwell.com/blog/index.php/update-a-person-or-group-field-in-sharepoint-with-c/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/update-a-person-or-group-field-in-sharepoint-with-c/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 20:19:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/update-a-person-or-group-field-in-sharepoint-with-c/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/07/Update-a-Person-or-Group-field-in-SharePoint-with-C.aspx">Go Here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/update-a-person-or-group-field-in-sharepoint-with-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DD-WRT MAC Address Toolkit</title>
		<link>http://www.kevincornwell.com/blog/index.php/dd-wrt-mac-address-toolkit/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/dd-wrt-mac-address-toolkit/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 19:56:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/dd-wrt-mac-address-toolkit/</guid>
		<description><![CDATA[This .NET 2.0 website adds additional functionality to associate a name and notes to the MAC addresses in a DD-WRT flashed router. I did this because the built in only has MAC fields which makes it cumbersome to associate names/computer to MACs when you have dozens of clients. The C# source code is included in [...]]]></description>
			<content:encoded><![CDATA[<p>This .NET 2.0 website adds additional functionality to associate a name and notes to the MAC addresses in a DD-WRT flashed router.    I did this because the built in only has MAC fields which makes it cumbersome to associate names/computer to MACs when you have dozens of clients.  The C# source code is included in the zip file.  I make use of the open source <a href="http://www.tamirgal.com/home/dev.aspx?Item=SharpSsh">SharpSSH</a> library to gain access to the router over SSH.   </p>
<p>You will have to edit several files for your particular environment.</p>
<p><a href='http://www.kevincornwell.com/blog/wp-content/uploads/2007/07/screen.gif' title='Screenie'><img src='http://www.kevincornwell.com/blog/wp-content/uploads/2007/07/screen.thumbnail.gif' alt='Screenie' /></a></p>
<p><a href='http://www.kevincornwell.com/blog/wp-content/uploads/2007/07/wireless-router-admin.zip' title='DD-WRT MAC Address Toolkit Website'>DD-WRT MAC Address Toolkit Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/dd-wrt-mac-address-toolkit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to dynamically add a table row with input fields in .NET.</title>
		<link>http://www.kevincornwell.com/blog/index.php/how-to-dynamically-add-a-table-row-with-input-fields-in-net/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/how-to-dynamically-add-a-table-row-with-input-fields-in-net/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 21:57:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/how-to-dynamically-add-a-table-row-with-input-fields-in-net/</guid>
		<description><![CDATA[C# using Visual Studio 2005&#8230; using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; &#160; public partial class _Default : System.Web.UI.Page &#123; // How many rows when the page initially loads. static int tDefaultRow_Count = 10; // Max number of rows. static int tMaxRows = 50; [...]]]></description>
			<content:encoded><![CDATA[<p>C# using Visual Studio 2005&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="csharp"><span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Data</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Configuration</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Web</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">Security</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">UI</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">UI</span>.<span style="color: #0000FF;">WebControls</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">UI</span>.<span style="color: #0000FF;">WebControls</span>.<span style="color: #0000FF;">WebParts</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">UI</span>.<span style="color: #0000FF;">HtmlControls</span>;
&nbsp;
<span style="color: #0600FF;">public</span> partial <span style="color: #FF0000;">class</span> _Default : <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">UI</span>.<span style="color: #0000FF;">Page</span> 
<span style="color: #000000;">&#123;</span>
    <span style="color: #008080; font-style: italic;">// How many rows when the page initially loads.</span>
    <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">int</span> tDefaultRow_Count = <span style="color: #FF0000;">10</span>;
    <span style="color: #008080; font-style: italic;">// Max number of rows.</span>
    <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">int</span> tMaxRows = <span style="color: #FF0000;">50</span>;
&nbsp;
    <span style="color: #008080; font-style: italic;">// Do not modify the following.</span>
    <span style="color: #0600FF;">private</span> <span style="color: #FF0000;">int</span> tUserAddedRowCount = <span style="color: #FF0000;">0</span>;
    <span style="color: #0600FF;">static</span> TextBox<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> TextBox_Item = <span style="color: #008000;">new</span> TextBox<span style="color: #000000;">&#91;</span>tMaxRows<span style="color: #000000;">&#93;</span>;
    <span style="color: #0600FF;">static</span> TextBox<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> TextBox_Desc = <span style="color: #008000;">new</span> TextBox<span style="color: #000000;">&#91;</span>tMaxRows<span style="color: #000000;">&#93;</span>;
    <span style="color: #0600FF;">static</span> TextBox<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> TextBox_Quantity = <span style="color: #008000;">new</span> TextBox<span style="color: #000000;">&#91;</span>tMaxRows<span style="color: #000000;">&#93;</span>;
    <span style="color: #0600FF;">static</span> TextBox<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> TextBox_Price = <span style="color: #008000;">new</span> TextBox<span style="color: #000000;">&#91;</span>tMaxRows<span style="color: #000000;">&#93;</span>;
    <span style="color: #0600FF;">static</span> TextBox<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> TextBox_Total = <span style="color: #008000;">new</span> TextBox<span style="color: #000000;">&#91;</span>tMaxRows<span style="color: #000000;">&#93;</span>;
&nbsp;
    <span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> Page_Load<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        tUserAddedRowCount = <span style="color: #000000;">&#40;</span>ViewState<span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;tUserAddedRowCount&quot;</span><span style="color: #000000;">&#93;</span> != <span style="color: #0600FF;">null</span><span style="color: #000000;">&#41;</span> ? <span style="color: #FF0000;">int</span>.<span style="color: #0000FF;">Parse</span><span style="color: #000000;">&#40;</span>ViewState<span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;tUserAddedRowCount&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> : <span style="color: #FF0000;">0</span>;
        <span style="color: #008080; font-style: italic;">//Response.Write(&quot;User Rows: &quot; + tUserAddedRowCount + &quot;\r\n&quot;);</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">// Recreate the extra rows created by the user on postback</span>
        <span style="color: #008080; font-style: italic;">// events (required to maintain state).</span>
        Add_Table_Rows<span style="color: #000000;">&#40;</span>tUserAddedRowCount + tDefaultRow_Count<span style="color: #000000;">&#41;</span>;
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> Button1_Click<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
            <span style="color: #008080; font-style: italic;">// User clicked &quot;add a row&quot; button.</span>
&nbsp;
            Add_Table_Rows<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">1</span><span style="color: #000000;">&#41;</span>;
            ViewState<span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;tUserAddedRowCount&quot;</span><span style="color: #000000;">&#93;</span> = ++tUserAddedRowCount;
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> Button2_Click<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #008080; font-style: italic;">// User clicked &quot;Submit&quot; button.</span>
&nbsp;
        <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> x = <span style="color: #FF0000;">0</span>; x &lt; tDefaultRow_Count + tUserAddedRowCount; x++<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
&nbsp;
            <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>TextBox_Item<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">Length</span> &gt; <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span> 
            <span style="color: #000000;">&#123;</span> 
                Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>TextBox_Item<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
                Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>TextBox_Desc<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
                Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>TextBox_Quantity<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
                Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>TextBox_Price<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
                Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>TextBox_Total<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> Add_Table_Rows<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> NumberOfRows<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> x = <span style="color: #FF0000;">0</span>; x &lt; NumberOfRows; x++<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            TableRow myRow = <span style="color: #008000;">new</span> TableRow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            Table1.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>myRow<span style="color: #000000;">&#41;</span>;
&nbsp;
            TableCell myCell0 = <span style="color: #008000;">new</span> TableCell<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            myRow.<span style="color: #0000FF;">Cells</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>myCell0<span style="color: #000000;">&#41;</span>;
            TextBox myTextbox0 = <span style="color: #008000;">new</span> TextBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            TextBox_Item<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span> = myTextbox0;
            myCell0.<span style="color: #0000FF;">Controls</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>TextBox_Item<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
            TableCell myCell1 = <span style="color: #008000;">new</span> TableCell<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            myRow.<span style="color: #0000FF;">Cells</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>myCell1<span style="color: #000000;">&#41;</span>;
            TextBox myTextbox1 = <span style="color: #008000;">new</span> TextBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            TextBox_Desc<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span> = myTextbox1;
            myCell1.<span style="color: #0000FF;">Controls</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>TextBox_Desc<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
            TableCell myCell2 = <span style="color: #008000;">new</span> TableCell<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            myRow.<span style="color: #0000FF;">Cells</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>myCell2<span style="color: #000000;">&#41;</span>;
            TextBox myTextbox2 = <span style="color: #008000;">new</span> TextBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            TextBox_Quantity<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span> = myTextbox2;
            myCell2.<span style="color: #0000FF;">Controls</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>TextBox_Quantity<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
            TableCell myCell3 = <span style="color: #008000;">new</span> TableCell<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            myRow.<span style="color: #0000FF;">Cells</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>myCell3<span style="color: #000000;">&#41;</span>;
            TextBox myTextbox3 = <span style="color: #008000;">new</span> TextBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            TextBox_Price<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span> = myTextbox3;
            myCell3.<span style="color: #0000FF;">Controls</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>TextBox_Price<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
            TableCell myCell4 = <span style="color: #008000;">new</span> TableCell<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            myRow.<span style="color: #0000FF;">Cells</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>myCell4<span style="color: #000000;">&#41;</span>;
            TextBox myTextbox4 = <span style="color: #008000;">new</span> TextBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            TextBox_Total<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span> = myTextbox4;
            myCell4.<span style="color: #0000FF;">Controls</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>TextBox_Total<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/how-to-dynamically-add-a-table-row-with-input-fields-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Injection Cheat Sheet</title>
		<link>http://www.kevincornwell.com/blog/index.php/sql-injection-cheat-sheet/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sql-injection-cheat-sheet/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 14:38:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sql-injection-cheat-sheet/</guid>
		<description><![CDATA[Better to know what the bad guys are up to than not. SQL Injection Cheat Sheet]]></description>
			<content:encoded><![CDATA[<p>Better to know what the bad guys are up to than not.</p>
<p><a href="http://ferruh.mavituna.com/makale/sql-injection-cheatsheet/">SQL Injection Cheat Sheet</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sql-injection-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Run php 4.x and php 5.2.x on the same machine with IIS 6.0 as ISAPI.</title>
		<link>http://www.kevincornwell.com/blog/index.php/run-php-4x-and-php-52x-on-the-same-machine-with-iis-60-as-isapi/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/run-php-4x-and-php-52x-on-the-same-machine-with-iis-60-as-isapi/#comments</comments>
		<pubDate>Mon, 25 Jun 2007 19:28:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/run-php-4x-and-php-52x-on-the-same-machine-with-iis-60-as-isapi/</guid>
		<description><![CDATA[Run php 4 and php 5.2.x on the same machine with IIS 6.0 as ISAPI. Extract the ZIP packages of both php 4 &#38; php 5 (not the Windows Installer) to c:\php4 &#38; c:\php5 respectively. Setup the corresponding php.ini files in c:\php4 and c:\php5 Add the Web Service Extensions for php4 and php5. For php4 [...]]]></description>
			<content:encoded><![CDATA[<p>Run php 4 and php 5.2.x on the same machine with IIS 6.0 as ISAPI.</p>
<ol>
<li>Extract the ZIP packages of both php 4 &amp; php 5 (not the Windows Installer) to c:\php4 &amp; c:\php5 respectively.</li>
<li>Setup the corresponding php.ini files in c:\php4 and c:\php5</li>
<li>Add the Web Service Extensions for php4 and php5. For php4 use c:\php4\sapi\php4isapi.dll, php5 use c:\php5\php5isapi.dll</li>
<li>Add the following registry keys:
<pre>
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\5\IniFilePath -> c:\php5
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath -> c:\php4
</pre>
</li>
<li>Add c:\php4 to the PATH environment variable.</li>
<li>Add c:\php5 to the PATH environment variable.</li>
<li>Associate each web site in IIS with the corresponding php version.</li>
<li>Reboot.</li>
</ol>
<p><span style="color:red;">Note: In IIS you still need to to have the DLL&#8217;s in the &#8220;Allowed Web Service Extensions List&#8221; and the extensions in the appropriate &#8220;Application Configuration&#8221; settings for the given websites/applications.</span></p>
<p><span id="more-80"></span><br />
More information on the php.ini file (taken from the install.txt in the distro):</p>
<blockquote><p>
Chapter 5. Runtime Configuration</p>
<p>The configuration file</p>
<p>   The configuration file (called php3.ini in PHP 3, and simply php.ini as<br />
   of PHP 4) is read when PHP starts up. For the server module versions of<br />
   PHP, this happens only once when the web server is started. For the CGI<br />
   and CLI version, it happens on every invocation.</p>
<p>   php.ini is searched in these locations (in order):</p>
<p>     * SAPI module specific location (PHPIniDir directive in Apache 2, -c<br />
       command line option in CGI and CLI, php_ini parameter in NSAPI,<br />
       PHP_INI_PATH environment variable in THTTPD)<br />
     * The PHPRC environment variable. Before PHP 5.2.0 this was checked<br />
       after the registry key mentioned below.<br />
     * As of PHP 5.2.0, the following registry locations are searched in<br />
       order: HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y.z\IniFilePath,<br />
       HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y\IniFilePath and<br />
       HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x\IniFilePath, where x, y and z<br />
       mean the PHP major, minor and release versions.<br />
     * HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath (Windows Registry<br />
       location)<br />
     * Current working directory (except CLI)<br />
     * The web server&#8217;s directory (for SAPI modules), or directory of PHP<br />
       (otherwise in Windows)<br />
     * Windows directory (C:\windows or C:\winnt) (for Windows), or<br />
       &#8211;with-config-file-path compile time option</p>
<p>   If php-SAPI.ini exists (where SAPI is used SAPI, so the filename is<br />
   e.g. php-cli.ini or php-apache.ini), it&#8217;s used instead of php.ini. SAPI<br />
   name can be determined by php_sapi_name().</p>
<p>     Note: The Apache web server changes the directory to root at startup<br />
     causing PHP to attempt to read php.ini from the root filesystem if<br />
     it exists.</p>
<p>   The php.ini directives handled by extensions are documented<br />
   respectively on the pages of the extensions themselves. The list of the<br />
   core directives is available in the appendix. Probably not all PHP<br />
   directives are documented in the manual though. For a complete list of<br />
   directives available in your PHP version, please read your well<br />
   commented php.ini file. Alternatively, you may find the the latest<br />
   php.ini from CVS helpful too.</p>
<p>   Example 5-1. php.ini example<br />
; any text on a line after an unquoted semicolon (;) is ignored<br />
[php] ; section markers (text within square brackets) are also ignored<br />
; Boolean values can be set to either:<br />
;    true, on, yes<br />
; or false, off, no, none<br />
register_globals = off<br />
track_errors = yes</p>
<p>; you can enclose strings in double-quotes<br />
include_path = &#8220;.:/usr/local/lib/php&#8221;</p>
<p>; backslashes are treated the same as any other character<br />
include_path = &#8220;.;c:\php\lib&#8221;</p>
<p>   Since PHP 5.1.0, it is possible to refer to existing .ini variables<br />
   from within .ini files. Example: open_basedir = ${open_basedir}<br />
   &#8220;:/new/dir&#8221;.
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/run-php-4x-and-php-52x-on-the-same-machine-with-iis-60-as-isapi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML PowerPoint presentation running from a secure SharePoint site prompts with a &#8220;unsecured&#8221; dialog.</title>
		<link>http://www.kevincornwell.com/blog/index.php/html-powerpoint-presentation-running-from-a-secure-sharepoint-site-prompts-with-a-unsecured-dialog/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/html-powerpoint-presentation-running-from-a-secure-sharepoint-site-prompts-with-a-unsecured-dialog/#comments</comments>
		<pubDate>Fri, 22 Jun 2007 21:17:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/html-powerpoint-presentation-running-from-a-secure-sharepoint-site-prompts-with-a-unsecured-dialog/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/06/HTML-PowerPoint-presentation-running-from-a-secure-SharePoint-site-prompts-with-a-82203bunsecured82213b-dialog.aspx">Go Here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/html-powerpoint-presentation-running-from-a-secure-sharepoint-site-prompts-with-a-unsecured-dialog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comet &#8211; High Speed AJAX</title>
		<link>http://www.kevincornwell.com/blog/index.php/comet-high-speed-ajax/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/comet-high-speed-ajax/#comments</comments>
		<pubDate>Tue, 12 Jun 2007 18:04:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/comet-high-speed-ajax/</guid>
		<description><![CDATA[Basic Definitions of Comet: Wiki Server Technologies: IE will not allow your to read xmlhttp.responseText untill xmlhttp.readyState = 4 (complete &#8212; connection closed). It works in FF. var http_request = false; function makeRequest&#40;url&#41; &#123; http_request = false; if &#40;window.XMLHttpRequest&#41; &#123; // Mozilla, Safari,... http_request = new XMLHttpRequest&#40;&#41;; if &#40;http_request.overrideMimeType&#41; &#123; http_request.overrideMimeType&#40;'text/xml'&#41;; // See note below [...]]]></description>
			<content:encoded><![CDATA[<p>Basic Definitions of Comet:<br />
<a href="http://en.wikipedia.org/wiki/Comet_%28programming%29">Wiki</a></p>
<p>Server Technologies:</p>
<p>IE will not allow your to read xmlhttp.responseText untill xmlhttp.readyState = 4 (complete &#8212; connection closed).  It works in FF.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript"><span style="color: #003366; font-weight: bold;">var</span> http_request = <span style="color: #003366; font-weight: bold;">false</span>;  
<span style="color: #003366; font-weight: bold;">function</span> makeRequest<span style="color: #66cc66;">&#40;</span>url<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
 	http_request = <span style="color: #003366; font-weight: bold;">false</span>;
 	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>window.<span style="color: #006600;">XMLHttpRequest</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #009900; font-style: italic;">// Mozilla, Safari,...</span>
 		http_request = <span style="color: #003366; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>http_request.<span style="color: #006600;">overrideMimeType</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
 			http_request.<span style="color: #006600;">overrideMimeType</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'text/xml'</span><span style="color: #66cc66;">&#41;</span>;
 			<span style="color: #009900; font-style: italic;">// See note below about this line</span>
 		<span style="color: #66cc66;">&#125;</span>
 	<span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>window.<span style="color: #006600;">ActiveXObject</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #009900; font-style: italic;">// IE</span>
 		<span style="color: #000066; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #009900; font-style: italic;">//</span>
			http_request = <span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Msxml2.XMLHTTP&quot;</span><span style="color: #66cc66;">&#41;</span>;
        		http_request = <span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft.XMLHTTP&quot;</span><span style="color: #66cc66;">&#41;</span>;
 		<span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
 			<span style="color: #000066; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span>
 				http_request = <span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft.XMLHTTP&quot;</span><span style="color: #66cc66;">&#41;</span>;
 			<span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #66cc66;">&#40;</span>e<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span> 		<span style="color: #66cc66;">&#125;</span>
 	<span style="color: #66cc66;">&#125;</span>
 	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>!http_request<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
 		<span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'Giving up :( Cannot create an XMLHTTP instance'</span><span style="color: #66cc66;">&#41;</span>;
 		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span>;
 	<span style="color: #66cc66;">&#125;</span>
 	http_request.<span style="color: #006600;">onreadystatechange</span> = alertContents;
 	http_request.<span style="color: #000066;">open</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'GET'</span>, url, <span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
 	http_request.<span style="color: #006600;">send</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #66cc66;">&#125;</span>
  <span style="color: #003366; font-weight: bold;">var</span> i = <span style="color: #CC0000;">0</span>; <span style="color: #003366; font-weight: bold;">var</span> str = <span style="color: #3366CC;">&quot;&quot;</span>;
  <span style="color: #003366; font-weight: bold;">function</span> alertContents<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
 	$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'info'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">innerHTML</span> = <span style="color: #3366CC;">'&lt;h3&gt;'</span>+ Date<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> + <span style="color: #3366CC;">' '</span> + http_request.<span style="color: #006600;">readyState</span> +<span style="color: #3366CC;">':&lt;/h3&gt;'</span> + http_request.<span style="color: #006600;">responseText</span>;
 	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>http_request.<span style="color: #006600;">readyState</span> == <span style="color: #CC0000;">4</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
 		$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'info'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">innerHTML</span> = <span style="color: #3366CC;">'&lt;h1&gt;Complete ('</span>+ http_request.<span style="color: #000066;">status</span> +<span style="color: #3366CC;">'):&lt;/h1&gt;'</span> + http_request.<span style="color: #006600;">responseText</span>;
 	<span style="color: #66cc66;">&#125;</span>
 <span style="color: #66cc66;">&#125;</span>
  <span style="color: #003366; font-weight: bold;">function</span> $<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
     <span style="color: #003366; font-weight: bold;">var</span> elements = <span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
     <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i = <span style="color: #CC0000;">0</span>; i &lt; arguments.<span style="color: #006600;">length</span>; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
       <span style="color: #003366; font-weight: bold;">var</span> element = arguments<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;
       <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> element == <span style="color: #3366CC;">'string'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
         <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
           element = document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span>element<span style="color: #66cc66;">&#41;</span>;
         <span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>document.<span style="color: #006600;">all</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
           element = document.<span style="color: #006600;">all</span><span style="color: #66cc66;">&#91;</span>element<span style="color: #66cc66;">&#93;</span>;
         <span style="color: #66cc66;">&#125;</span>
       <span style="color: #66cc66;">&#125;</span>
       elements.<span style="color: #006600;">push</span><span style="color: #66cc66;">&#40;</span>element<span style="color: #66cc66;">&#41;</span>;
     <span style="color: #66cc66;">&#125;</span>
     <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>arguments.<span style="color: #006600;">length</span> == <span style="color: #CC0000;">1</span> &amp;&amp; elements.<span style="color: #006600;">length</span> &gt; <span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
       <span style="color: #000066; font-weight: bold;">return</span> elements<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#93;</span>;
     <span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span>
       <span style="color: #000066; font-weight: bold;">return</span> elements;
     <span style="color: #66cc66;">&#125;</span>
 <span style="color: #66cc66;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> go<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span> 	makeRequest<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'http://www.kevincornwell.com/comet/x-mixed-replace.php'</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #66cc66;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/comet-high-speed-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable .NET Web Extensions In ISS via Command Line</title>
		<link>http://www.kevincornwell.com/blog/index.php/enable-net-web-extensions-in-iss-via-command-line/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/enable-net-web-extensions-in-iss-via-command-line/#comments</comments>
		<pubDate>Tue, 22 May 2007 18:56:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/enable-net-web-extensions-in-iss-via-command-line/</guid>
		<description><![CDATA[From command line C:\WINDOWS\Microsoft.NET\Framework\[framework version]\aspnet_regiis.exe -r After that has run, goto IIS &#8211;> Web Service Extensions &#8211;> ASP.NET [framework version] &#8211;> Enable.]]></description>
			<content:encoded><![CDATA[<p>From command line</p>
<pre>
C:\WINDOWS\Microsoft.NET\Framework\[framework version]\aspnet_regiis.exe -r
</pre>
<p>After that has run, goto IIS &#8211;> Web Service Extensions &#8211;> ASP.NET [framework version] &#8211;> Enable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/enable-net-web-extensions-in-iss-via-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WSS Current Number of Sites 0 after SQL Restore of Content DB</title>
		<link>http://www.kevincornwell.com/blog/index.php/wss-current-number-of-sites-0-after-sql-restore-of-content-db/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/wss-current-number-of-sites-0-after-sql-restore-of-content-db/#comments</comments>
		<pubDate>Fri, 18 May 2007 15:12:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/wss-current-number-of-sites-0-after-sql-restore-of-content-db/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/05/WSS-Current-Number-of-Sites-0-after-SQL-Restore-of-Content-DB.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/wss-current-number-of-sites-0-after-sql-restore-of-content-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restore MS SQL Database Via Query</title>
		<link>http://www.kevincornwell.com/blog/index.php/restore-ms-sql-database-via-query/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/restore-ms-sql-database-via-query/#comments</comments>
		<pubDate>Tue, 15 May 2007 15:24:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/restore-ms-sql-database-via-query/</guid>
		<description><![CDATA[RESTORE DATABASE SharePoint_Jeff FROM DISK = 'D:\SharePoint_Content_db_200705072120___jeff_restore.BAK' WITH MOVE 'SharePoint_Content' TO 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\SharePoint_Jeff_Data.MDF', MOVE 'SharePoint_Content_Log' TO 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\SharePoint_Jeff_Log.LDF', STATS = 1, REPLACE GO]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="tsql"><span style="color: #0000FF;">RESTORE</span> <span style="color: #0000FF;">DATABASE</span> SharePoint_Jeff
<span style="color: #0000FF;">FROM</span> <span style="color: #0000FF;">DISK</span> = <span style="color: #FF0000;">'D:<span style="color: #000099; font-weight: bold;">\S</span>harePoint_Content_db_200705072120___jeff_restore.BAK'</span>
<span style="color: #0000FF;">WITH</span> MOVE <span style="color: #FF0000;">'SharePoint_Content'</span> <span style="color: #0000FF;">TO</span> <span style="color: #FF0000;">'C:<span style="color: #000099; font-weight: bold;">\P</span>rogram Files<span style="color: #000099; font-weight: bold;">\M</span>icrosoft SQL Server<span style="color: #000099; font-weight: bold;">\M</span>SSQL<span style="color: #000099; font-weight: bold;">\D</span>ata<span style="color: #000099; font-weight: bold;">\S</span>harePoint_Jeff_Data.MDF'</span>,
MOVE <span style="color: #FF0000;">'SharePoint_Content_Log'</span> <span style="color: #0000FF;">TO</span> <span style="color: #FF0000;">'C:<span style="color: #000099; font-weight: bold;">\P</span>rogram Files<span style="color: #000099; font-weight: bold;">\M</span>icrosoft SQL Server<span style="color: #000099; font-weight: bold;">\M</span>SSQL<span style="color: #000099; font-weight: bold;">\D</span>ata<span style="color: #000099; font-weight: bold;">\S</span>harePoint_Jeff_Log.LDF'</span>,
STATS = <span style="color: #000;">1</span>, <span style="color: #FF00FF;">REPLACE</span>
GO</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/restore-ms-sql-database-via-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint WSS DateTime Format</title>
		<link>http://www.kevincornwell.com/blog/index.php/sharepoint-wss-datetime-format/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sharepoint-wss-datetime-format/#comments</comments>
		<pubDate>Wed, 02 May 2007 19:10:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sharepoint-wss-datetime-format/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/05/SharePoint-WSS-DateTime-Format.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sharepoint-wss-datetime-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint SessionState Issues</title>
		<link>http://www.kevincornwell.com/blog/index.php/sharepoint-sessionstate-issues/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sharepoint-sessionstate-issues/#comments</comments>
		<pubDate>Wed, 02 May 2007 19:09:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sharepoint-sessionstate-issues/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/05/SharePoint-SessionState-Issues.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sharepoint-sessionstate-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL &#8211; Query Database Size</title>
		<link>http://www.kevincornwell.com/blog/index.php/sql-query-database-size/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sql-query-database-size/#comments</comments>
		<pubDate>Tue, 01 May 2007 15:14:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sql-query-database-size/</guid>
		<description><![CDATA[DECLARE @dbsize DEC&#40;15,0&#41; DECLARE @freespace DEC&#40;15,0&#41; DECLARE @spaceused DEC&#40;15,0&#41; &#160; SELECT @dbsize = SUM&#40;CONVERT&#40;DEC&#40;15&#41;,SIZE&#41;&#41; FROM sems_teas5.dbo.sysfiles SELECT database_name = 'YOUR_DB_NAME', database_size = &#40;@dbsize / 128&#41;, spaceused=&#40;SELECT &#40;SUM&#40;CONVERT&#40;DEC&#40;15&#41;,reserved&#41;&#41;/128&#41; FROM sems_teas5..sysindexes WHERE indid in &#40;0, 1, 255&#41;&#41;]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="tsql"><span style="color: #0000FF;">DECLARE</span> @dbsize <span style="color: #0000FF;">DEC</span><span style="color: #808080;">&#40;</span><span style="color: #000;">15</span>,<span style="color: #000;">0</span><span style="color: #808080;">&#41;</span>
<span style="color: #0000FF;">DECLARE</span> @freespace <span style="color: #0000FF;">DEC</span><span style="color: #808080;">&#40;</span><span style="color: #000;">15</span>,<span style="color: #000;">0</span><span style="color: #808080;">&#41;</span>
<span style="color: #0000FF;">DECLARE</span> @spaceused <span style="color: #0000FF;">DEC</span><span style="color: #808080;">&#40;</span><span style="color: #000;">15</span>,<span style="color: #000;">0</span><span style="color: #808080;">&#41;</span>
&nbsp;
<span style="color: #0000FF;">SELECT</span> @dbsize = <span style="color: #FF00FF;">SUM</span><span style="color: #808080;">&#40;</span><span style="color: #0000FF;">CONVERT</span><span style="color: #808080;">&#40;</span><span style="color: #0000FF;">DEC</span><span style="color: #808080;">&#40;</span><span style="color: #000;">15</span><span style="color: #808080;">&#41;</span>,<span style="color: #0000FF;">SIZE</span><span style="color: #808080;">&#41;</span><span style="color: #808080;">&#41;</span>
  <span style="color: #0000FF;">FROM</span> sems_teas5.<span style="color: #202020;">dbo</span>.<span style="color: #202020;">sysfiles</span>
<span style="color: #0000FF;">SELECT</span> database_name = <span style="color: #FF0000;">'YOUR_DB_NAME'</span>,
       database_size = <span style="color: #808080;">&#40;</span>@dbsize / <span style="color: #000;">128</span><span style="color: #808080;">&#41;</span>,
       spaceused=<span style="color: #808080;">&#40;</span><span style="color: #0000FF;">SELECT</span> <span style="color: #808080;">&#40;</span><span style="color: #FF00FF;">SUM</span><span style="color: #808080;">&#40;</span><span style="color: #0000FF;">CONVERT</span><span style="color: #808080;">&#40;</span><span style="color: #0000FF;">DEC</span><span style="color: #808080;">&#40;</span><span style="color: #000;">15</span><span style="color: #808080;">&#41;</span>,reserved<span style="color: #808080;">&#41;</span><span style="color: #808080;">&#41;</span>/<span style="color: #000;">128</span><span style="color: #808080;">&#41;</span>
                   <span style="color: #0000FF;">FROM</span> sems_teas5..<span style="color: #202020;">sysindexes</span>
                   <span style="color: #0000FF;">WHERE</span> indid in <span style="color: #808080;">&#40;</span><span style="color: #000;">0</span>, <span style="color: #000;">1</span>, <span style="color: #000;">255</span><span style="color: #808080;">&#41;</span><span style="color: #808080;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sql-query-database-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.NET ConnectionString Encyption</title>
		<link>http://www.kevincornwell.com/blog/index.php/net-connectionstring-encyption/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/net-connectionstring-encyption/#comments</comments>
		<pubDate>Wed, 25 Apr 2007 20:23:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/net-connectionstring-encyption/</guid>
		<description><![CDATA[The following command will encrypt your connection sting in your web.config file. The connection string must all ready be in place. For C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG -pkm switch encrypts the machine.config rather and web.config (default). aspnet_regiis.exe -pef "connectionStrings" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config" -prov "DataProtectionConfigurationProvider"]]></description>
			<content:encoded><![CDATA[<p>The following command will encrypt your connection sting in your web.config file.  The connection string must all ready be in place.</p>
<p>For C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG</p>
<p>-pkm switch encrypts the machine.config rather and web.config (default).</p>
<pre>
aspnet_regiis.exe -pef "connectionStrings" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config" -prov "DataProtectionConfigurationProvider"
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/net-connectionstring-encyption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Error PublicKeyToken=b77a5c561934e089 failed</title>
		<link>http://www.kevincornwell.com/blog/index.php/sharepoint-error-publickeytokenb77a5c561934e089-failed/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sharepoint-error-publickeytokenb77a5c561934e089-failed/#comments</comments>
		<pubDate>Wed, 18 Apr 2007 19:46:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sharepoint-error-publickeytokenb77a5c561934e089-failed/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/04/SharePoint-Error-PublicKeyToken3db77a5c561934e089-failed.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sharepoint-error-publickeytokenb77a5c561934e089-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET Excel Function</title>
		<link>http://www.kevincornwell.com/blog/index.php/aspnet-excel-function/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/aspnet-excel-function/#comments</comments>
		<pubDate>Wed, 18 Apr 2007 17:50:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/aspnet-excel-function/</guid>
		<description><![CDATA[This function written in c# builds a MS excel out of a dataSet. private DataSet dataSet = new DataSet&#40;&#41;; private DataView dView = new DataView&#40;&#41;; &#160; private void LoadPeople&#40;&#41; &#123; SqlConnection conn = new SqlConnection&#40;&#34;Data Source=asdf;User ID=asdf;Password=asdf;Database=Directory&#34;&#41;; SqlDataAdapter dAdapter = new SqlDataAdapter&#40;&#34;SELECT * FROM People&#34;, conn&#41;; dAdapter.Fill&#40;dataSet, &#34;peeps&#34;&#41;; dView.Table = dataSet.Tables&#91;&#34;peeps&#34;&#93;; personel_cnt = dView.Count; dView.Table.Columns.Add&#40;&#34;is_a_member&#34;&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>This function written in c# builds a MS excel out of a dataSet.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp">    <span style="color: #0600FF;">private</span> DataSet dataSet = <span style="color: #008000;">new</span> DataSet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
    <span style="color: #0600FF;">private</span> DataView dView = <span style="color: #008000;">new</span> DataView<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
    <span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> LoadPeople<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        SqlConnection conn = <span style="color: #008000;">new</span> SqlConnection<span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Data Source=asdf;User ID=asdf;Password=asdf;Database=Directory&quot;</span><span style="color: #000000;">&#41;</span>;
        SqlDataAdapter dAdapter = <span style="color: #008000;">new</span> SqlDataAdapter<span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;SELECT * FROM People&quot;</span>, conn<span style="color: #000000;">&#41;</span>;
        dAdapter.<span style="color: #0000FF;">Fill</span><span style="color: #000000;">&#40;</span>dataSet, <span style="color: #808080;">&quot;peeps&quot;</span><span style="color: #000000;">&#41;</span>;
        dView.<span style="color: #0000FF;">Table</span> = dataSet.<span style="color: #0000FF;">Tables</span><span style="color: #000000;">&#91;</span><span style="color: #808080;">&quot;peeps&quot;</span><span style="color: #000000;">&#93;</span>;
        personel_cnt = dView.<span style="color: #0000FF;">Count</span>;
        dView.<span style="color: #0000FF;">Table</span>.<span style="color: #0000FF;">Columns</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;is_a_member&quot;</span><span style="color: #000000;">&#41;</span>;
        conn.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
    <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> buildExcelReport<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        DataSet dsExport = dataSet;
        <span style="color: #000000;">System</span>.<span style="color: #0000FF;">IO</span>.<span style="color: #0000FF;">StringWriter</span> tw = <span style="color: #008000;">new</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">IO</span>.<span style="color: #0000FF;">StringWriter</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">UI</span>.<span style="color: #0000FF;">HtmlTextWriter</span> hw =
           <span style="color: #008000;">new</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">UI</span>.<span style="color: #0000FF;">HtmlTextWriter</span><span style="color: #000000;">&#40;</span>tw<span style="color: #000000;">&#41;</span>;
        DataGrid dgGrid = <span style="color: #008000;">new</span> DataGrid<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        dgGrid.<span style="color: #0000FF;">DataSource</span> = dsExport;
&nbsp;
        <span style="color: #008080; font-style: italic;">//Report Header</span>
        hw.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;My Super Duper Excel Report&quot;</span><span style="color: #000000;">&#41;</span>;
        hw.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;&amp;lt;br&amp;gt;&amp;mp;nbsp;&quot;</span><span style="color: #000000;">&#41;</span>;
        <span style="color: #008080; font-style: italic;">// Get the HTML for the control.</span>
        dgGrid.<span style="color: #0000FF;">HeaderStyle</span>.<span style="color: #0000FF;">Font</span>.<span style="color: #0000FF;">Bold</span> = <span style="color: #0600FF;">true</span>;
        dgGrid.<span style="color: #0000FF;">DataBind</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        dgGrid.<span style="color: #0000FF;">RenderControl</span><span style="color: #000000;">&#40;</span>hw<span style="color: #000000;">&#41;</span>;
&nbsp;
        <span style="color: #008080; font-style: italic;">// Write the HTML back to the browser.</span>
        Response.<span style="color: #0000FF;">ContentType</span> = <span style="color: #808080;">&quot;application/vnd.ms-excel&quot;</span>;
        <span style="color: #0600FF;">this</span>.<span style="color: #0000FF;">EnableViewState</span> = <span style="color: #0600FF;">false</span>;
        Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>tw.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
        Response.<span style="color: #0000FF;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
    <span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/aspnet-excel-function/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WSS 3.0 API Notes</title>
		<link>http://www.kevincornwell.com/blog/index.php/wss-30-api-notes/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/wss-30-api-notes/#comments</comments>
		<pubDate>Tue, 03 Apr 2007 15:23:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/wss-30-api-notes/</guid>
		<description><![CDATA[This post has been moved to mySharePointblog. Go here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointblog.  Go <a href="http://mysharepointblog.com/post/2007/04/WSS-30-API-Notes.aspx">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/wss-30-api-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint WSS and Session Errors</title>
		<link>http://www.kevincornwell.com/blog/index.php/sharepoint-wss-and-session-errors/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sharepoint-wss-and-session-errors/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 19:36:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sharepoint-wss-and-session-errors/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/03/SharePoint-WSS-and-Session-Errors.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sharepoint-wss-and-session-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint WSS SqlClientPermission Errors</title>
		<link>http://www.kevincornwell.com/blog/index.php/sharepoint-sqlclientpermission-errors/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sharepoint-sqlclientpermission-errors/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 19:35:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sharepoint-sqlclientpermission-errors/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/03/SharePoint-WSS-SqlClientPermission-Errors.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sharepoint-sqlclientpermission-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint WSS Error: Operation aborted (Exception from HRESULT: 0&#215;80004004 (E_ABORT))</title>
		<link>http://www.kevincornwell.com/blog/index.php/sharepoint-wss-error-operation-aborted-exception-from-hresult-0x80004004-e_abort/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sharepoint-wss-error-operation-aborted-exception-from-hresult-0x80004004-e_abort/#comments</comments>
		<pubDate>Wed, 07 Mar 2007 18:31:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sharepoint-wss-error-operation-aborted-exception-from-hresult-0x80004004-e_abort/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/03/SharePoint-WSS-Error-Operation-aborted-(Exception-from-HRESULT-02153b80004004-(E_ABORT)).aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sharepoint-wss-error-operation-aborted-exception-from-hresult-0x80004004-e_abort/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Javascript Expressions in CSS</title>
		<link>http://www.kevincornwell.com/blog/index.php/javascript-expressions-in-css/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/javascript-expressions-in-css/#comments</comments>
		<pubDate>Mon, 05 Mar 2007 20:14:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/javascript-expressions-in-css/</guid>
		<description><![CDATA[#my_div &#123; border: 1px solid Red; width: expression&#40;ieBox ? &#34;100px&#34; : &#34;80px&#34;&#41;; &#125;]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#my_div</span> <span style="color: #66cc66;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">border</span>:  <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> Red;
   <span style="color: #000000; font-weight: bold;">width</span>:   expression<span style="color: #66cc66;">&#40;</span>ieBox ? <span style="color: #ff0000;">&quot;100px&quot;</span> : <span style="color: #ff0000;">&quot;80px&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/javascript-expressions-in-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>General SharePoint Notes &#8211; Part 1</title>
		<link>http://www.kevincornwell.com/blog/index.php/general-sharepoint-notes/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/general-sharepoint-notes/#comments</comments>
		<pubDate>Thu, 01 Mar 2007 21:07:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/general-sharepoint-notes/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/03/General-SharePoint-Notes---Part-1.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/general-sharepoint-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Suppress Microsoft Office Document Authentication Prompt In SharePoint WSS 3.0</title>
		<link>http://www.kevincornwell.com/blog/index.php/suppress-microsoft-office-document-authentication-prompt-in-sharepoint-wss-30/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/suppress-microsoft-office-document-authentication-prompt-in-sharepoint-wss-30/#comments</comments>
		<pubDate>Wed, 28 Feb 2007 19:15:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/suppress-microsoft-office-document-authentication-prompt-in-sharepoint-wss-30/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/02/Suppress-Microsoft-Office-Document-Authentication-Prompt-In-SharePoint-WSS-30.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/suppress-microsoft-office-document-authentication-prompt-in-sharepoint-wss-30/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SharePoint 3.0 (WSS) and Crystal Reports 10</title>
		<link>http://www.kevincornwell.com/blog/index.php/sharepoint-30-wss-and-crystal-reports-10/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sharepoint-30-wss-and-crystal-reports-10/#comments</comments>
		<pubDate>Tue, 20 Feb 2007 20:08:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sharepoint-30-wss-and-crystal-reports-10/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/02/SharePoint-30-(WSS)-and-Crystal-Reports-10.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sharepoint-30-wss-and-crystal-reports-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WSS 2.0 &#8211; Remove the SharePoint team site from the Root of an web site without Un-extending the Team site.</title>
		<link>http://www.kevincornwell.com/blog/index.php/wss-20-remove-the-sharepoint-team-site-from-the-root-of-an-web-site-without-un-extending-the-team-site/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/wss-20-remove-the-sharepoint-team-site-from-the-root-of-an-web-site-without-un-extending-the-team-site/#comments</comments>
		<pubDate>Wed, 14 Feb 2007 16:51:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/wss-20-remove-the-sharepoint-team-site-from-the-root-of-an-web-site-without-un-extending-the-team-site/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/02/WSS-20---Remove-the-SharePoint-team-site-from-the-Root-of-an-web-site-without-Un-extending-the-Team-site.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/wss-20-remove-the-sharepoint-team-site-from-the-root-of-an-web-site-without-un-extending-the-team-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint WSS 2.0 Cannot Delete a Folder Named &#8220;Forms&#8221;</title>
		<link>http://www.kevincornwell.com/blog/index.php/sharepoint-wss-20-cannot-delete-a-folder-named-forms/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sharepoint-wss-20-cannot-delete-a-folder-named-forms/#comments</comments>
		<pubDate>Wed, 14 Feb 2007 16:47:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sharepoint-wss-20-cannot-delete-a-folder-named-forms/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/02/SharePoint-WSS-20-Cannot-Delete-a-Folder-Named-82203bForms82213b.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sharepoint-wss-20-cannot-delete-a-folder-named-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS 6.0 Registry Tweaks</title>
		<link>http://www.kevincornwell.com/blog/index.php/iis-60-registry-tweaks/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/iis-60-registry-tweaks/#comments</comments>
		<pubDate>Wed, 14 Feb 2007 04:58:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/iis-60-registry-tweaks/</guid>
		<description><![CDATA[Microsoft TechNet Article on Global Registry Entries My main point of interest is the IIS logging. I would like to flush the log to disk before I run a script that gathers up all the logs and build useage reports every hour. Although interesting, the following registry entry is no help. If you set the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/60a90c91-a8d0-43b6-89db-a431d0ea0cb4.mspx?mfr=true">Microsoft TechNet Article on Global Registry Entries</a></p>
<p>My main point of interest is the IIS logging.  I would like to flush the log to disk before I run a script that gathers up all the logs and build useage reports every hour.  </p>
<p>Although interesting, the following registry entry is no help.  If you set the value to small the server performance will degrade quickly.</p>
<p><strong>LogBufferSize</strong><br />
Registry Path:</p>
<blockquote><p>
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Http\Parameters\LogBufferSize<br />
Data Type: REG_DWORD<br />
Default Value: N/A<br />
Range: 12,288 &#8211; 65,536 (12K &#8211; 64K)
</p></blockquote>
<p>Overrides the default logging buffer (per site) of 64K. Using this key, administrators can prevent excessive memory usage when running many thousands of sites on a server. This registry key does not exist by default and must be added to the registry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/iis-60-registry-tweaks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS 6.0: How To Eliminate the Delay in Serving Updated ASP</title>
		<link>http://www.kevincornwell.com/blog/index.php/iis-60-how-to-eliminate-the-delay-in-serving-updated-asp/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/iis-60-how-to-eliminate-the-delay-in-serving-updated-asp/#comments</comments>
		<pubDate>Tue, 13 Feb 2007 15:07:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/iis-60-how-to-eliminate-the-delay-in-serving-updated-asp/</guid>
		<description><![CDATA[Due to some new enhancements in IIS 6.0, users may encounter a significant delay before receiving the content on the page. This can be a great annoyance for the users and prevent them from visiting your site. To eliminate this delay, follow these instructions: Copy the following: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ASP\Parameters] "DisableLazyContentPropagation"=dword:00000001 Open [...]]]></description>
			<content:encoded><![CDATA[<p>Due to some new enhancements in IIS 6.0, users may encounter a significant delay before receiving the content on the page. This can be a great annoyance for the users and prevent them from visiting your site. To eliminate this delay, follow these instructions:</p>
<ol>
<li>Copy the following:
<pre>
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ASP\Parameters]
"DisableLazyContentPropagation"=dword:00000001
</pre>
<li>
<li>Open Notepad and paste the text.</li>
<li>Save the text file and rename it to for example &#8220;IIS6_Delay_Fix.reg&#8221;.</li>
<li>Merge the file into the registry by double-clicking it.</li>
<li>Reboot.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/iis-60-how-to-eliminate-the-delay-in-serving-updated-asp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serious WSS 3.0 Bug.</title>
		<link>http://www.kevincornwell.com/blog/index.php/serious-wss-30-bug/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/serious-wss-30-bug/#comments</comments>
		<pubDate>Tue, 09 Jan 2007 19:07:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/serious-wss-30-bug/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/01/Serious-WSS-30-Bug.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/serious-wss-30-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Search with PDF iFilter and scan existing PDF&#8217;s on your site.</title>
		<link>http://www.kevincornwell.com/blog/index.php/sharepoint-search-with-pdf-ifilter-and-scan-existing-pdfs-on-your-site/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/sharepoint-search-with-pdf-ifilter-and-scan-existing-pdfs-on-your-site/#comments</comments>
		<pubDate>Mon, 08 Jan 2007 17:17:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/sharepoint-search-with-pdf-ifilter-and-scan-existing-pdfs-on-your-site/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/01/SharePoint-Search-with-PDF-iFilter-and-scan-existing-PDF82173bs-on-your-site.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/sharepoint-search-with-pdf-ifilter-and-scan-existing-pdfs-on-your-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add your own icons to SharePoint lists (such as pdf, exe, etc.).</title>
		<link>http://www.kevincornwell.com/blog/index.php/add-your-own-icons-to-sharepoint-lists-such-as-pdf-exe-etc/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/add-your-own-icons-to-sharepoint-lists-such-as-pdf-exe-etc/#comments</comments>
		<pubDate>Mon, 08 Jan 2007 14:42:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/add-your-own-icons-to-sharepoint-lists-such-as-pdf-exe-etc/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/01/Add-your-own-icons-to-SharePoint-lists-(such-as-pdf2c-exe2c-etc).aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/add-your-own-icons-to-sharepoint-lists-such-as-pdf-exe-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows SharePoint Services (WSS) 3.0 Search Setup Notes</title>
		<link>http://www.kevincornwell.com/blog/index.php/windows-sharepoint-services-wss-30-search-setup-notes/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/windows-sharepoint-services-wss-30-search-setup-notes/#comments</comments>
		<pubDate>Fri, 05 Jan 2007 19:16:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/windows-sharepoint-services-wss-30-search-setup-notes/</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2007/01/Windows-SharePoint-Services-(WSS)-30-Search-Setup-Notes.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/windows-sharepoint-services-wss-30-search-setup-notes/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>The best X-Mas Eve party EVER!!!</title>
		<link>http://www.kevincornwell.com/blog/index.php/the-best-x-mass-eve-party-ever/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/the-best-x-mass-eve-party-ever/#comments</comments>
		<pubDate>Thu, 21 Dec 2006 19:43:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/the-best-x-mass-eve-party-ever/</guid>
		<description><![CDATA[Yes, EVER!!! It will be this Sunday night (12/24/2006), Christmas Eve in the G-Lounge. You may arrive as early as 7:00 PM. There will be games, door prizes, and plenty of alcohol with people from all over the country. We have two special guests all the way from California: Richard Smith and Michelle Harder (soon [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, EVER!!! It will be this Sunday night (12/24/2006), Christmas Eve in the G-Lounge. You may arrive as early as 7:00 PM. There will be games, door prizes, and plenty of alcohol with people from all over the country. We have two special guests all the way from California: Richard Smith and Michelle Harder (soon to be married, so don&#8217;t hit on them&#8230; too much). We expect another strong turnout from Jacksonville and Niceville this year. You are welcome to bring guests.</p>
<p>Party Checklist&#8230;</p>
<p><span id="more-39"></span></p>
<p>&#8211;Full Belly. Eat something before you come. We will have snacks, not meals. You need to eat something that will sustain extended drinking activities. Please plan accordingly.</p>
<p>&#8211;Alcohol. I will have a few cases of beer and a fairly well stocked bar, if you would like to bring more do so.</p>
<p>&#8211;Beer pong paddle. There will be a beer pong tournament. The awards presentation will immediately follow.</p>
<p>&#8211;Shotgun contest (for ole times sake, we&#8217;ll see who retained the skilz and who didn&#8217;t). Awards presentation to immediately follow.</p>
<p>&#8211;Dancing on the couch. This will depend on the frequency of points earned in the Beer Pong competition.</p>
<p>&#8211;Mrs. Pacman high score tourney. Award presentation to immediately follow.</p>
<p>&#8211;Musical Jeopardy till everyone gets pissed that I won&#8217;t play a song all the way through. Awards presentation to immediately follow.</p>
<p>&#8211;Robot demonstration. Limited to the first 10 people due to time constraints.</p>
<p>&#8211;Rubber-band plane contest. Awards presentation to immediately follow.<br />
<strong><br />
*Special guest appearance: The Stuffing Sandwich Kid!!!</p>
<p align="center">Lisa &#8217;05&#8230;</p>
<p align="center"><img id="image45" src="http://www.kevincornwell.com/blog/wp-content/uploads/2006/12/im001750.JPG" alt="im001750.JPG" /></p?>
<p align="center">Directions:</p>
<p align="center"><a href="http://www.google.com/maps?f=q&#038;hl=en&#038;q=1508+Pine+St,+Niceville,+FL+32578&#038;ie=UTF8&#038;z=15&#038;om=1&#038;iwloc=addr"><img id="image43" alt="screen.gif" src="http://www.kevincornwell.com/blog/wp-content/uploads/2006/12/screen.gif" /></a></p>
<p align="center">
<p align="center">x-mas cheer&#8230;</p>
<p align="center"><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/e-F_FkaaeMA"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/e-F_FkaaeMA" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/the-best-x-mass-eve-party-ever/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>MySQL backup job scheduler fix in x64.</title>
		<link>http://www.kevincornwell.com/blog/index.php/mysql-backup-job-scheduler-fix-in-x64/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/mysql-backup-job-scheduler-fix-in-x64/#comments</comments>
		<pubDate>Thu, 21 Dec 2006 16:04:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/mysql-backup-job-scheduler-fix-in-x64/</guid>
		<description><![CDATA[When you create a backup job with the MySQL Administrator the backup will not execute properly in the MS Scheduler runing on x64. Right click the job in the MS Scheduler and change &#8220;-c&#8221; to &#8220;-C&#8221; (xp64 bug).]]></description>
			<content:encoded><![CDATA[<p>When you create a backup job with the MySQL Administrator the backup will not execute properly in the MS Scheduler runing on x64.  Right click the job in the MS Scheduler and change &#8220;-c&#8221; to &#8220;-C&#8221; (xp64 bug).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/mysql-backup-job-scheduler-fix-in-x64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make php (32 bit) run on XP x64 (64 bit).</title>
		<link>http://www.kevincornwell.com/blog/index.php/how-to-make-php-run-in-x64-64-bit/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/how-to-make-php-run-in-x64-64-bit/#comments</comments>
		<pubDate>Thu, 21 Dec 2006 15:58:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[XP]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/how-to-make-php-run-in-x64-64-bit/</guid>
		<description><![CDATA[From command line: cd c:\inetpub\adminscripts cscript adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1 Thats it. Related MS Article]]></description>
			<content:encoded><![CDATA[<p>From command line:</p>
<pre>
cd c:\inetpub\adminscripts
cscript adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
</pre>
<p>Thats it.</p>
<p><a href="http://support.microsoft.com/?id=894435">Related MS Article</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/how-to-make-php-run-in-x64-64-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Log parser GUI &#8211; graphical log parser tool to analyse your logs.</title>
		<link>http://www.kevincornwell.com/blog/index.php/visual-log-parser-gui-graphical-log-parser-tool-to-analyse-your-logs/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/visual-log-parser-gui-graphical-log-parser-tool-to-analyse-your-logs/#comments</comments>
		<pubDate>Thu, 21 Dec 2006 15:41:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/visual-log-parser-gui-graphical-log-parser-tool-to-analyse-your-logs/</guid>
		<description><![CDATA[As an application developper you often need to write some logs for your application, and hopefully there is actually many framework to ease your pain: Log4net, Entlib Logging Application Block, etc. But when it come to read those logs, extract statistics or to do some alert or action on them, things become harder. Actually a [...]]]></description>
			<content:encoded><![CDATA[<p>As an application developper you often need to write some logs for your application, and hopefully there is actually many framework to ease your pain: Log4net, Entlib Logging Application Block, etc. But when it come to read those logs, extract statistics or to do some alert or action on them, things become harder. Actually a free command line tool from Microsoft name LogParser and it is quite awesome: you can query any log and data sources (database, event log, iis logs, file system, registry, etc.) with a complexe SQL query (I mean with functions, group by, etc.).</p>
<p>On the down side, using it from the command line become quickly boring as you need to type your sql query in a DOS prompt.  As we failed to find any intuitive GUI for logParser, we just start to build our own, by assembling the following pieces:  the logparser engine, a &#8220;visual studio&#8221; like MDI dockable interface, syntax highlighting&#8230;</p>
<p><img alt="serialcoder-visual-logparser.gif" id="image36" src="http://www.kevincornwell.com/blog/wp-content/uploads/2006/12/serialcoder-visual-logparser.gif" /></p>
<p><a href="http://en.serialcoder.net/logiciels/visual-logparser.aspx">Publishers Web Site</a></p>
<p><a href="http://en.serialcoder.net/deploy/visual-logparser/publish.htm">Download Now</a></p>
<p>Some other notes&#8230;</p>
<p>Do an insert to a db with the log parser utility from IIS resource toolkit:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp">C:\Program Files\IIS Resources\Log Parser&gt;logparser <span style="color: #808080;">&quot;SELECT date, time, c-ip, cs
-uri-stem, cs-uri-query, cs-username  FROM C:<span style="color: #008080; font-weight: bold;">\W</span>INDOWS<span style="color: #008080; font-weight: bold;">\s</span>ystem32<span style="color: #008080; font-weight: bold;">\L</span>ogFiles<span style="color: #008080; font-weight: bold;">\W</span>3SVC201
2337366<span style="color: #008080; font-weight: bold;">\*</span>.log TO test2 WHERE SUBSTR( cs-uri-stem, LAST_INDEX_OF(cs-uri-stem,'.'), STRLEN(cs-uri-stem)) = '.asp'&quot;</span> -i:IISW3C -o:SQL -server:teas-db1 -usern
ame:sa -password:<span style="color: #808080;">&quot;foobar&quot;</span> -driver:<span style="color: #808080;">&quot;SQL Server&quot;</span> -database:kevin_temp -createtable:ON</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/visual-log-parser-gui-graphical-log-parser-tool-to-analyse-your-logs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Idiotproof Website</title>
		<link>http://www.kevincornwell.com/blog/index.php/idiotproof-website/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/idiotproof-website/#comments</comments>
		<pubDate>Tue, 19 Dec 2006 01:41:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/idiotproof-website/</guid>
		<description><![CDATA[Here is the story&#8230; John Beschler, lead developer, was a little upset about our users having trouble with our website. He walked by my cube while someone mentioned someone else having trouble with our intrAnet site. Our site is well done and well tested and user friendly&#8230; anyway, John got all upset and turned red in the face and said, &#8220;It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><font face="Arial"><font size="2">Here is the story&#8230;</font></font><br />
<font face="Arial"><font size="2">John <span class="078270204-09122006">Beschler, lead  developer, </span>was a little upset about our users having trouble with  our website. He walked by my cube <span class="078270204-09122006">while</span> someone <span class="078270204-09122006">m</span>entioned <span class="078270204-09122006">someone else </span>having trouble with our intr<span class="078270204-09122006">A</span>net site. Our site<span class="078270204-09122006"> is</span> well done and well tested and user  friendly&#8230; anyway, John <span class="078270204-09122006">got all upset and </span>turned red in the face and said<span class="078270204-09122006">,</span> &#8220;It&#8217;s already <span class="078270204-09122006">an</span> idiot proof website!&#8221;<span class="078270204-09122006">.  W</span><span class="078270204-09122006">hile the  people around him looked at him confused I looked up the domain.  The rest is history.</span></font></font></p>
<p><a target="_blank" href="http://www.idiotproofwebsite.com">Idiotproof Website</a></p>
<p>-kc</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/idiotproof-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create and populate a simple calendar table in MS SQL</title>
		<link>http://www.kevincornwell.com/blog/index.php/create-and-populate-a-simple-calendar-table-in-ms-sql/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/create-and-populate-a-simple-calendar-table-in-ms-sql/#comments</comments>
		<pubDate>Mon, 18 Dec 2006 03:36:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kevincornwell.com/blog/index.php/create-and-populate-a-simple-calendar-table-in-ms-sql/</guid>
		<description><![CDATA[Edit as required&#8230; USE master go &#160; IF EXISTS &#40;SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'tCalendar'&#41; BEGIN DROP TABLE tCalendar END go &#160; CREATE TABLE tCalendar &#40; DateID INT IDENTITY&#40;1,1&#41; CONSTRAINT tCalendar_PK PRIMARY KEY CLUSTERED, DATE DATETIME, Holiday BIT DEFAULT 0, Workday BIT DEFAULT 0&#41; go CREATE UNIQUE NONCLUSTERED INDEX tCalendar_date_N_Idx ON tCalendar&#40;DATE&#41; go [...]]]></description>
			<content:encoded><![CDATA[<p>Edit as required&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="tsql"><span style="color: #0000FF;">USE</span> master
go
&nbsp;
<span style="color: #0000FF;">IF</span>  EXISTS <span style="color: #808080;">&#40;</span><span style="color: #0000FF;">SELECT</span> * <span style="color: #0000FF;">FROM</span> INFORMATION_SCHEMA.<span style="color: #202020;">TABLES</span> <span style="color: #0000FF;">WHERE</span> TABLE_NAME = <span style="color: #FF0000;">'tCalendar'</span><span style="color: #808080;">&#41;</span>
<span style="color: #0000FF;">BEGIN</span>
<span style="color: #0000FF;">DROP</span> <span style="color: #0000FF;">TABLE</span> tCalendar
<span style="color: #0000FF;">END</span>
go
&nbsp;
<span style="color: #0000FF;">CREATE</span> <span style="color: #0000FF;">TABLE</span> tCalendar <span style="color: #808080;">&#40;</span>
DateID <span style="color: #0000FF;">INT</span> <span style="color: #0000FF;">IDENTITY</span><span style="color: #808080;">&#40;</span><span style="color: #000;">1</span>,<span style="color: #000;">1</span><span style="color: #808080;">&#41;</span> <span style="color: #0000FF;">CONSTRAINT</span> tCalendar_PK <span style="color: #0000FF;">PRIMARY</span> <span style="color: #0000FF;">KEY</span> <span style="color: #0000FF;">CLUSTERED</span>,
<span style="color: #0000FF;">DATE</span> <span style="color: #0000FF;">DATETIME</span>,
Holiday <span style="color: #0000FF;">BIT</span> <span style="color: #0000FF;">DEFAULT</span> <span style="color: #000;">0</span>,
Workday <span style="color: #0000FF;">BIT</span> <span style="color: #0000FF;">DEFAULT</span> <span style="color: #000;">0</span><span style="color: #808080;">&#41;</span>
go
<span style="color: #0000FF;">CREATE</span> <span style="color: #0000FF;">UNIQUE</span> <span style="color: #0000FF;">NONCLUSTERED</span> <span style="color: #0000FF;">INDEX</span>
tCalendar_date_N_Idx <span style="color: #0000FF;">ON</span> tCalendar<span style="color: #808080;">&#40;</span><span style="color: #0000FF;">DATE</span><span style="color: #808080;">&#41;</span>
go
&nbsp;
<span style="color: #008080;">--Populate all days</span>
&nbsp;
<span style="color: #0000FF;">DECLARE</span> @n <span style="color: #0000FF;">INT</span>
<span style="color: #0000FF;">DECLARE</span> @maxn <span style="color: #0000FF;">INT</span>
<span style="color: #0000FF;">DECLARE</span> @begindate <span style="color: #0000FF;">DATETIME</span>
<span style="color: #0000FF;">SET</span> @n =<span style="color: #000;">1</span>
<span style="color: #0000FF;">SET</span> @maxn=<span style="color: #000;">36500</span>    <span style="color: #008080;">-- Number of days added to the calendar</span>
<span style="color: #0000FF;">SET</span> @begindate =<span style="color: #0000FF;">CONVERT</span><span style="color: #808080;">&#40;</span><span style="color: #0000FF;">DATETIME</span>,<span style="color: #FF0000;">'01/01/1995'</span><span style="color: #808080;">&#41;</span>
<span style="color: #008080;">-- Initial date for the first run is todays date</span>
<span style="color: #008080;">-- or Jan 1st</span>
<span style="color: #0000FF;">SET</span> @begindate =@begindate <span style="color: #000;">-1</span>
&nbsp;
<span style="color: #0000FF;">WHILE</span> @n &lt;= @maxn
<span style="color: #0000FF;">BEGIN</span>
<span style="color: #0000FF;">INSERT</span> <span style="color: #0000FF;">INTO</span> tCalendar<span style="color: #808080;">&#40;</span><span style="color: #0000FF;">DATE</span><span style="color: #808080;">&#41;</span> <span style="color: #0000FF;">SELECT</span> @begindate+@n
<span style="color: #0000FF;">SET</span> @n=@n<span style="color: #000;">+1</span>
<span style="color: #0000FF;">END</span>
&nbsp;
<span style="color: #008080;">--update the holiday and workday flags</span>
&nbsp;
go
<span style="color: #0000FF;">UPDATE</span> tCalendar
<span style="color: #0000FF;">SET</span> holiday=<span style="color: #000;">1</span> <span style="color: #0000FF;">WHERE</span> <span style="color: #FF00FF;">DATENAME</span><span style="color: #808080;">&#40;</span>dw,<span style="color: #0000FF;">DATE</span><span style="color: #808080;">&#41;</span> in <span style="color: #808080;">&#40;</span><span style="color: #FF0000;">'Saturday'</span>,<span style="color: #FF0000;">'Sunday'</span><span style="color: #808080;">&#41;</span>
go
<span style="color: #0000FF;">UPDATE</span> tCalendar
<span style="color: #0000FF;">SET</span> workday=<span style="color: #000;">1</span> <span style="color: #0000FF;">WHERE</span> holiday=<span style="color: #000;">0</span>
go
&nbsp;
<span style="color: #0000FF;">SELECT</span> * <span style="color: #0000FF;">FROM</span> tCalendar</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/create-and-populate-a-simple-calendar-table-in-ms-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed up Firefox</title>
		<link>http://www.kevincornwell.com/blog/index.php/tweak-ff/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/tweak-ff/#comments</comments>
		<pubDate>Sun, 17 Dec 2006 19:42:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kevincornwell.com/wordpress/?p=25</guid>
		<description><![CDATA[Make FF faster. In the address bar&#8230; type &#8220;about:config&#8221; Filter: network Set network.http.pipelining = true Set network.pipelining.maxrequests = 8]]></description>
			<content:encoded><![CDATA[<p>Make FF faster.</p>
<p>In the address bar&#8230; type &#8220;about:config&#8221;</p>
<p>Filter: network</p>
<p>Set network.http.pipelining = true</p>
<p>Set network.pipelining.maxrequests = 8</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/tweak-ff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Remote Desktop Listening Port</title>
		<link>http://www.kevincornwell.com/blog/index.php/change-remote-desktop-listening-port/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/change-remote-desktop-listening-port/#comments</comments>
		<pubDate>Tue, 12 Dec 2006 14:24:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XP]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kevincornwell.com/wordpress/?p=24</guid>
		<description><![CDATA[Changing the listening port for Remote Desktop can have its advantages, particularly if you are remoting in from behind a firewall. Since a lot of public firewalls (hotels, airports, etc.) block most ports except for those used for email and internet access, using the default settings for Remote Desktop will not work on them. As [...]]]></description>
			<content:encoded><![CDATA[<p>Changing the listening port for Remote Desktop can have its advantages, particularly if you are remoting in from behind a firewall. Since a lot of public firewalls (hotels, airports, etc.) block most ports except for those used for email and internet access, using the default settings for Remote Desktop will not work on them. As long as you are not remoting into a machine that is serving secure sites, you can change the listening port to 443 and access your machine from almost anywhere. Just follow these instructions:1.  Open Regedit.</p>
<p>2.  Navigate to </p>
<pre>
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
</pre>
<p>.</p>
<p>3.  Find the dword value named <span style="font-weight: bold">PortNumber</span>.</p>
<p>4.  Change the value to <span style="font-weight: bold">443</span>.</p>
<p>5.  Close Regedit and reboot.</p>
<p>To connect, open the remote client and type in the hostname or address followed by <span style="font-weight: bold">:443</span>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/change-remote-desktop-listening-port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add an indentity feild to an existing MS SQL table.</title>
		<link>http://www.kevincornwell.com/blog/index.php/add-an-indentity-feild-to-an-existing-sql-table/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/add-an-indentity-feild-to-an-existing-sql-table/#comments</comments>
		<pubDate>Wed, 25 Oct 2006 15:17:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kevincornwell.com/wordpress/?p=23</guid>
		<description><![CDATA[There is no easy way that I am aware of (in MS SQL 2000). You basically have to create a table with an additional identity field and import the data. Here is how you do it: -From *Enterprise Manager, backup the original table by renaming it. -From Query Analyzer, create new table&#8230; -Right click the [...]]]></description>
			<content:encoded><![CDATA[<p>There is no easy way that I am aware of (in MS SQL 2000).  You basically have to create a table with an additional identity field and import the data.  Here is how you do it:</p>
<p>-From *Enterprise Manager, backup the original table by renaming it.<br />
-From Query Analyzer, create new table&#8230;<br />
-Right click the old table &#8220;Script Object to new window as &#8221; -> &#8220;create&#8221;.<br />
-Edit the ALL table names in the query to the original.  (this makes a copy of the table structure)<br />
-Execute.<br />
-In Enterprise manager create new ID (identity column) and set the identity property to &#8220;yes, not for replication&#8221; in the newly created table (you may also want to set this column as the primary key).<br />
-Import the data&#8230;<br />
-Run this query in Query Analyzer, replacing the appropriate table names and column names.  NOTE: the column names must be in the same order for both tables!<br />
INSERT INTO [new_table] (list_all_the_column_names_to_import) SELECT list_all_the_column_names_to_import FROM [old_table]</p>
<p>* If you know your SQL query lingo well enough you can do everything from Query Analyzer.</p>
<p>:)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/add-an-indentity-feild-to-an-existing-sql-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add &#8220;Control Panel&#8221;, &#8220;Device Manager&#8221;, &#8220;Command Prompt&#8221; and &#8220;RegEdit&#8221; to right click context menu of My Computer</title>
		<link>http://www.kevincornwell.com/blog/index.php/how-to-add-control-panel-device-manager-and-regedit-to-right-click-context-menu-of-my-computer/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/how-to-add-control-panel-device-manager-and-regedit-to-right-click-context-menu-of-my-computer/#comments</comments>
		<pubDate>Mon, 18 Sep 2006 15:31:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kevincornwell.com/wordpress/?p=21</guid>
		<description><![CDATA[Open notepad and paste the following text (you can get to notepad easily by going to Start -> Run -> type &#8216;notepad&#8217; -> Ok)&#8230; Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Control Panel\command] @=&#8221;rundll32.exe shell32.dll,Control_RunDLL&#8221; [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr] @=&#8221;Device Manager&#8221; [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command] @=&#8221;mmc.exe %%SYSTEMDRIVE%%\\WINDOWS\\SYSTEM32\\devmgmt.msc&#8221; [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Regedit] [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Regedit\command] @=&#8221;regedit.exe&#8221; [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Command Prompt] [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Command Prompt\command] Save the file as my_computer_context_menu.reg to the desktop. Double [...]]]></description>
			<content:encoded><![CDATA[<p>Open notepad and paste the following text (you can get to notepad easily by going to <em><strong>Start -> Run -> type &#8216;notepad&#8217; -> Ok</strong></em>)&#8230;</p>
<blockquote>
<p><strong>Windows Registry Editor Version 5.00</strong></p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Control Panel\command]<br />
@=&#8221;rundll32.exe shell32.dll,Control_RunDLL&#8221;</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr]<br />
@=&#8221;Device Manager&#8221;</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command]<br />
@=&#8221;mmc.exe %%SYSTEMDRIVE%%\\WINDOWS\\SYSTEM32\\devmgmt.msc&#8221;</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Regedit]</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Regedit\command]<br />
@=&#8221;regedit.exe&#8221;</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Command Prompt]</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Command Prompt\command]
</p></blockquote>
<p>Save the file as <strong>my_computer_context_menu.reg</strong> to the desktop.  Double click <strong>my_computer_context_menu.reg</strong> it to intall this your registry.  You are done.  Test to see if the new items appear in the context menu by right clicking <strong>My Computer</strong>.  If so, you have done it correctly and may delete my_computer_context_menu.reg from your desktop.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/how-to-add-control-panel-device-manager-and-regedit-to-right-click-context-menu-of-my-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio Syntax Highlighting and Intellisense for Classic ASP</title>
		<link>http://www.kevincornwell.com/blog/index.php/visual-studio-classic-asp-syntax-highlighting-and-intellisense/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/visual-studio-classic-asp-syntax-highlighting-and-intellisense/#comments</comments>
		<pubDate>Wed, 05 Apr 2006 17:58:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kevincornwell.com/wordpress/?p=19</guid>
		<description><![CDATA[With the new release of Visual Studio (VS) 2005, you would think that it would have full support for classic ASP when working in a directory. This is not the case. There are some hacks out there, however none are fully functional and some require that you set the page directive on every page you [...]]]></description>
			<content:encoded><![CDATA[<p>With the new release of Visual Studio (VS) 2005, you would think that it would have full support for classic ASP when working in a directory.  This is not the case.  There are some hacks out there, however none are fully functional and some require that you set the page directive on every page you want highlighting and intellisense. Of course this will  break some of your pages.</p>
<p>For those who want the power of VS (mainly Intellisense), you still need to use vs 2003 until MS makes a fully functional .asp template for VS 2005.</p>
<p>This tutorial will walk you through the process of creating a Solution that allows you to edit your classic ASP in VS 2003.  The site must be accessible though windows explorer (C:\ or mapped drives).</p>
<ol>
<li>Start VS 2003</li>
<li>File > New > Blank Solution</li>
<li>Name it &#8220;Classic ASP&#8221; or whatever.  The location is where the link will be stored for opening the solution and all it&#8217;s projects.</li>
<li>Add your sites&#8230;</li>
<li>Right Click the Solution &#8220;Classic ASP&#8221;</li>
<li>Add > New Project > Visual Basic Projects > New Project In Existing Folder</li>
<li>Name it &#8220;My ASP Site 1&#8243;</li>
<li>Click Ok</li>
<li>Browse to the location of the root folder for that web site.</li>
<li>Single click the project.  From the VS menu bar, click Project > Show all Files (or click the second button in the solution Explorer)</li>
<li>Repeat for all your sites/directories.</li>
</ol>
<p><br/><br />
Now when you start the solution, all the sites and files will be listed from within VS 2003.  You now have html, javascript, and vbscript intellisense.  You also get param lists when you call functions/subs that are on the same working page.  Sweet!</p>
<p><strong>Notes</strong>:</p>
<ul>
<li>VS will create a couple of files in the project directories (bin folder, .vbproj, .vbproj.user) .  They are harmless and a small price to pay for the power of VS.</li>
<li>You may get a warning about a project not being fully trusted by the .NET runtime.  That&#8217;s ok, we are not using .NET here anyway.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/visual-studio-classic-asp-syntax-highlighting-and-intellisense/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Run regular script (asp, aspx, php, etc.) on your SharePoint site</title>
		<link>http://www.kevincornwell.com/blog/index.php/run-regular-script-asp-aspx-php-etc-on-your-sharepoint-site/</link>
		<comments>http://www.kevincornwell.com/blog/index.php/run-regular-script-asp-aspx-php-etc-on-your-sharepoint-site/#comments</comments>
		<pubDate>Thu, 23 Mar 2006 15:19:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kevincornwell.com/wordpress/?p=18</guid>
		<description><![CDATA[This post has been moved to mySharePointBlog. Go Here.]]></description>
			<content:encoded><![CDATA[<p>This post has been moved to mySharePointBlog.  <a href="http://mysharepointblog.com/post/2006/03/Run-regular-script-(asp2c-aspx2c-php2c-etc)-on-your-SharePoint-site.aspx">Go Here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevincornwell.com/blog/index.php/run-regular-script-asp-aspx-php-etc-on-your-sharepoint-site/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

