<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Nishant Pant's Techie Blog</title>
	<atom:link href="http://nishantpant.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nishantpant.wordpress.com</link>
	<description>Nishant's coding tips,tricks,hacks,gotchas</description>
	<lastBuildDate>Fri, 20 Jan 2012 14:27:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nishantpant.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Nishant Pant's Techie Blog</title>
		<link>http://nishantpant.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nishantpant.wordpress.com/osd.xml" title="Nishant Pant&#039;s Techie Blog" />
	<atom:link rel='hub' href='http://nishantpant.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Control ctl00_ContentMain_ xxxxx of type &#8216;GridView&#8217; must be placed inside a form tag with runat=server</title>
		<link>http://nishantpant.wordpress.com/2009/05/06/control-ctl00_contentmain_-xxxxx-of-type-gridview-must-be-placed-inside-a-form-tag-with-runatserver/</link>
		<comments>http://nishantpant.wordpress.com/2009/05/06/control-ctl00_contentmain_-xxxxx-of-type-gridview-must-be-placed-inside-a-form-tag-with-runatserver/#comments</comments>
		<pubDate>Wed, 06 May 2009 14:21:48 +0000</pubDate>
		<dc:creator>Nishant Pant</dc:creator>
				<category><![CDATA[.Net 2.0]]></category>
		<category><![CDATA[ASP.net 2.0]]></category>

		<guid isPermaLink="false">http://nishantpant.wordpress.com/?p=294</guid>
		<description><![CDATA[Recently I wrote some simple code to Export the contents of a GridView to Excel. You know, the basic stuff like changing the type to application/ms-excel content and removing Images from the GridView (so that they don&#8217;t appear as missing images in the Excel sheet) and converting Hyperlinks to Labels. The Problem : But when I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=294&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I wrote some simple code to Export the contents of a GridView to Excel. You know, the basic stuff like changing the type to <span style="color:#993300;">application/ms-excel</span> content <span style="color:#000000;">and removing Images from the GridView (so that they don&#8217;t appear as missing images in the Excel sheet) and converting Hyperlinks to Labels.</span></p>
<p><strong>The Problem</strong> : But when I ran my code, I got the dreaded error :<span style="color:red;">Control ctl00_ContentMain_ xxxxx of type &#8216;GridView&#8217; must be placed inside a form tag with runat=server</span></p>
<p><strong><span style="color:#000000;">The Solution : </span></strong> Just place this code in your codebehind. And that will fix ya! :</p>
<p><span style="color:blue;">public override void VerifyRenderingInServerForm(Control control) {}</span></p>
<p><strong>The Explanation : </strong><br />
Asp.net calls <em>VerifyRenderingInServerForm</em> to ensure that every single server control is being rendered inside a <em>&lt;form runat=&#8221;server&#8221;&gt;</em> tag. Which makes sense for a web page.  But it doesn&#8217;t make sense for an Excel sheet. Since, we just want to send the Gridview contents to the client and not the Form tag.</p>
<p>All we are doing here is overriding this Method and falsely reporting to Asp.Net that our Control is actually being rendered inside a &lt;Form Runat=&#8217;server&#8217;&gt; tag.</p>
<p>Hope it helps&#8230;</p>
<br />Posted in .Net 2.0, ASP.net 2.0  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nishantpant.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nishantpant.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nishantpant.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nishantpant.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nishantpant.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nishantpant.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nishantpant.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nishantpant.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nishantpant.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nishantpant.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nishantpant.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nishantpant.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nishantpant.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nishantpant.wordpress.com/294/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=294&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nishantpant.wordpress.com/2009/05/06/control-ctl00_contentmain_-xxxxx-of-type-gridview-must-be-placed-inside-a-form-tag-with-runatserver/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13382fb87091e31313d828a8a1ffd8e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nishantpant</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Windows 7 (using Bootcamp) on a Mac with Parallels installed on it</title>
		<link>http://nishantpant.wordpress.com/2009/01/13/installing-windows-7-on-a-mac-with-parallels-installed-on-it/</link>
		<comments>http://nishantpant.wordpress.com/2009/01/13/installing-windows-7-on-a-mac-with-parallels-installed-on-it/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 19:35:18 +0000</pubDate>
		<dc:creator>Nishant Pant</dc:creator>
				<category><![CDATA[Macbook]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows 7 on Mac]]></category>

		<guid isPermaLink="false">http://nishantpant.wordpress.com/?p=181</guid>
		<description><![CDATA[I finally managed to install Windows 7 beta on my Macbook. I must say I am liking it so far. Of course it is a beta, so you have to keep that in mind. Plus, I am still hunting for drivers for my sound card(found it..see below for link) and isight camera. The setup for Windows 7 was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=181&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I finally managed to install Windows 7 beta on my Macbook. I must say I am liking it so far. Of course it is a beta, so you have to keep that in mind. Plus, I am still hunting for drivers for my sound card(found it..see below for link) and isight camera. The setup for Windows 7 was smooth as a cake. Thats what I call unattended setup. No questions asked! the computer reboots a couple of times you enter the product key, and you are golden <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The reason why I am writing this blog entry is that I wasted a lot of time getting Boot Camp to partition my Macbook hard drive so that I can install Windows on it. And I finally found a solution for it.</p>
<p><strong>The problem : </strong>My Macbook with Leopard on it has a 200GB hard drive and only 5 GB was free. Also, I have a Vista installation on my Macbook which I run using Parallels desktop software. It is much better than Virtual PC.</p>
<p>So, obviously with 5 GB space I couldnt do anything. First I had to use a software called Diskkeeper to tell me which files were eating up all the space. I found a lot of redundant stuff, which I deleted and finally was able to create 50gigs offree space. I was happy with my cleanup. </p>
<p>I fired up Bootcamp and gave 32GB to the Windows parition that I was about to create. But, after running for 5 minutes, Boot camp comes back with an error saying that some files could not be moved and the paritioning failed ! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><strong>The Solution: </strong>After doing lot of research,  I finally found that the culprit was the Parallels desktop .hdd files.</p>
<p>So, I moved the entire Documents&#8211;&gt;Parallels folder to my 32GB usb drive (formatted with Mac OSX partition). To move it you simply drag and drop it while keeping the Command key pressed. This created 30GB more free space on my Mac. And Boot camp had no problem creating the parition after this.</p>
<p>e free space on my Mac. And Boot camp had no problem creating the parition after this.</p>
<p>The bottomline is that Bootcamp doesn&#8217;t fail because you have less disk space, it fails because the .hdd files used by Parallels desktop are either marked readonly or are too big for it to move around to create a new partition.</p>
<p><strong>Drivers : </strong>I found the driver for the sound card. Here is the direct link to the manufacturer&#8217;s site : <a href="http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&amp;PNid=14&amp;PFid=24&amp;Level=4&amp;Conn=3&amp;DownTypeID=3&amp;GetDown=false">http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&amp;PNid=14&amp;PFid=24&amp;Level=4&amp;Conn=3&amp;DownTypeID=3&amp;GetDown=false</a></p>
<br />Posted in Macbook, Windows 7 Tagged: Windows 7 on Mac <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nishantpant.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nishantpant.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nishantpant.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nishantpant.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nishantpant.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nishantpant.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nishantpant.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nishantpant.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nishantpant.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nishantpant.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nishantpant.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nishantpant.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nishantpant.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nishantpant.wordpress.com/181/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=181&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nishantpant.wordpress.com/2009/01/13/installing-windows-7-on-a-mac-with-parallels-installed-on-it/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13382fb87091e31313d828a8a1ffd8e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nishantpant</media:title>
		</media:content>
	</item>
		<item>
		<title>Phone buddy for HTC Touch diamond and Touch PRO released !!!</title>
		<link>http://nishantpant.wordpress.com/2008/11/29/phone-buddy-for-htc-diamond/</link>
		<comments>http://nishantpant.wordpress.com/2008/11/29/phone-buddy-for-htc-diamond/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 17:51:25 +0000</pubDate>
		<dc:creator>Nishant Pant</dc:creator>
				<category><![CDATA[HTC Touch Diamond]]></category>
		<category><![CDATA[Windows Mobile]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://nishantpant.wordpress.com/?p=177</guid>
		<description><![CDATA[UPDATES : [3/3/2009] Added a new option which allows you to enable tilt even in darkness. I had deliberately disabled it for valid reasons, but some people thought the tilt feature suddenly stops working not realizing that it is intentionally disabled in darkness (i.e in your pocket) [2/9/2009] Two major improvements. Added very precise calculation [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=177&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATES </strong>:</p>
<ul>
<li><strong><span style="color:#ff0000;">[3/3/2009] </span></strong>Added a new option which allows you to enable tilt even in darkness. I had deliberately disabled it for valid reasons, but some people thought the tilt feature suddenly stops working not realizing that it is intentionally disabled in darkness (i.e in your pocket)</li>
<li><strong>[2/9/2009] </strong>Two major improvements. Added very precise calculation for the Tilting feature. Also, the Shake feature is extremely sensitive and reliable(try with Sensitivity 15)</li>
<li><strong>[1/27/2009]</strong> The fully functional 5 day trial version is available for download <a title="here" href="http://cid-c933587a63b8c5ab.skydrive.live.com/self.aspx/Public/PhoneBuddySetup.msi" target="_blank">here</a>. Please uninstall Meeting Buddy from your phone first if you have it installed.</li>
<li>Microsoft.NET 3.5 framework can be downloaded <a title="here" href="http://cid-c933587a63b8c5ab.skydrive.live.com/self.aspx/Public/NETCFv35.wm.armv4i.cab" target="_blank">here</a>. Copy this cab to your phone and run it from the phone.</li>
<li>If you like the trial version it is also available for purchase : (I prefer the Paypal method because Pocketgear pockets more than 50% of the sales proceeds from me)</li>
<li>PAYPAL : (Preferred) &#8211; <strong>$5 only !!</strong><br />
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=2813754"><img class="alignnone size-full wp-image-216" title="btn_buynowcc_lg" src="http://nishantpant.files.wordpress.com/2008/11/btn_buynowcc_lg.gif?w=468" alt="btn_buynowcc_lg"   /></a></li>
<li>POCKETGEAR :<strong>$6 </strong><br />
<a href="http://classic.pocketgear.com/software_detail.asp?id=27720"><img class="alignnone size-full wp-image-219" title="pocketgear" src="http://nishantpant.files.wordpress.com/2008/11/pocketgear.jpg?w=468" alt="pocketgear"   /></a></li>
</ul>
<p>Phone Buddy is an upgrade to <a title="Meeting Buddy for HTC Diamond" href="http://nishantpant.wordpress.com/2008/11/14/meeting-buddy-a-really-cool-application-for-htc-touch-diamond/" target="_blank">Meeting Buddy for HTC Diamond</a>. It has many more features than Meeting Buddy and the price is the same. I have <span style="color:#ff0000;">highlighted</span> all the new features in <span style="color:#ff0000;">Red</span></p>
<p><a href="http://nishantpant.files.wordpress.com/2008/11/phonebuddy.jpg"></a><a href="http://nishantpant.files.wordpress.com/2008/11/phonebuddy.jpg"></a></p>
<ul>
<li><span style="color:#ff0000;"><strong>Tilt Control: </strong>The biggest featuer that I have added to Phone Buddy compared to Meeting Buddy is Tilt Control. When enabled it will go forward/backward depending on the screen you are on when you tilt your phone left or right</span>. See video below</li>
<li><span style="text-align:center; display: block;"><a href="http://nishantpant.wordpress.com/2008/11/29/phone-buddy-for-htc-diamond/"><img src="http://img.youtube.com/vi/_hhN6-_KxdU/2.jpg" alt="" /></a></span></li>
<li><strong>Flip phone to vibrate : </strong>Puts your phone into vibrate mode when you put your HTC Diamond face down, and will set it back to normal ringer when you put it face-up. It uses HTC Diamond&#8217;s built in accelerometer/G-Sensor for this.</li>
<li><span style="text-align:center; display: block;"><a href="http://nishantpant.wordpress.com/2008/11/29/phone-buddy-for-htc-diamond/"><img src="http://img.youtube.com/vi/qnk7ZD1n6rM/2.jpg" alt="" /></a></span></li>
<li>If you check <strong>&#8216;Use Outlook Integration&#8217;</strong>, Phone buddy will put your phone into vibrate mode only if it sees that you are in a meeting (<em>It does this by checking your phone&#8217;s outlook calendar</em>)</li>
<li>If you use <strong>&#8216;Outlook Integration&#8217;</strong> another settings becomes available to you called <strong>&#8216;Pocket Sensor&#8217;</strong>, if you check this, Phone Buddy will put your phone into vibrate mode, if it senses darkness (<em>i.e your phone is probably in your pocket</em>). It uses HTC Diamond&#8217;s light sensor for this.</li>
<li>Phone Buddy also has an option which allows you to <strong>lock/unlock the phone automatically</strong> using <strong>ambient light</strong>. So, if it is dark it will lock the phone&#8217;s keyboard. (<em>So you don&#8217;t accidentally dial someone when your phone is in your pocket</em>). It will unlock the keyboard as soon as you take it out of your pocket. <span style="color:#ff0000;">You can also tell Phone buddy to activate this feature between certain hours of the day. eg. between 7 Am and 5 Pm.</span></li>
<li><span style="text-align:center; display: block;"><a href="http://nishantpant.wordpress.com/2008/11/29/phone-buddy-for-htc-diamond/"><img src="http://img.youtube.com/vi/kxsOq6R2UWw/2.jpg" alt="" /></a></span></li>
<li>Another option that it gives you is to <strong>lock/unlock</strong> the phone when you <strong>shake your pho</strong>ne. <span style="color:#ff0000;">I have added the option to control Shake sensitivity too.</span></li>
<li><span style="text-align:center; display: block;"><a href="http://nishantpant.wordpress.com/2008/11/29/phone-buddy-for-htc-diamond/"><img src="http://img.youtube.com/vi/i6Cr-QKaKiA/2.jpg" alt="" /></a></span></li>
<li><strong>&#8216;Auto unlock on Incoming call&#8217;</strong> is very obvious. If your phone&#8217;s keyboard is locked and Phone Buddy detects an incoming call, it will unlock the keyboard or you, so you don&#8217;t have to fumble around.</li>
<li><span style="color:#ff0000;">&#8216;<strong>Auto unlock when Stylus removed&#8217; </strong>unlocks your phone as soon as you take out the Stylus. </span></li>
<li><span style="text-align:center; display: block;"><a href="http://nishantpant.wordpress.com/2008/11/29/phone-buddy-for-htc-diamond/"><img src="http://img.youtube.com/vi/vXSZ-gjC0eY/2.jpg" alt="" /></a></span></li>
<li><span style="color:#ff0000;">&#8216;<strong>Hassle Free Installation&#8217; </strong>No need to copy a .CAB file to your phone and run it. You can simply run the setup on your desktop and it will automatically install it to your phone. </span></li>
</ul>
<p><span style="color:#000000;">Here are screenshots of the Configuration options for Phone Buddy :</span></p>
<ul>
<li><span style="color:#000000;"><img class="alignnone size-full wp-image-196" title="fliptovibrate" src="http://nishantpant.files.wordpress.com/2008/11/fliptovibrate.jpg?w=468" alt="fliptovibrate"   /><img class="alignnone size-full wp-image-197" title="autolock" src="http://nishantpant.files.wordpress.com/2008/11/autolock.jpg?w=468" alt="autolock"   /></span></li>
<li><span style="color:#000000;"><img class="alignnone size-full wp-image-198" title="tiltcontrol" src="http://nishantpant.files.wordpress.com/2008/11/tiltcontrol.jpg?w=468" alt="tiltcontrol"   /><img class="alignnone size-full wp-image-199" title="feedback" src="http://nishantpant.files.wordpress.com/2008/11/feedback.jpg?w=468" alt="feedback"   /></span></li>
</ul>
<p>The good news is that it will be available for the same price, and all existing buyers will get a free upgrade. I will continue to offer Meeting Buddy for download as well (Although I don&#8217;t know why people would want that)</p>
<p>If you like the software buy it here :</p>
<p>PAYPAL :<br />
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=2813754"><img class="alignnone size-full wp-image-216" title="btn_buynowcc_lg" src="http://nishantpant.files.wordpress.com/2008/11/btn_buynowcc_lg.gif?w=468" alt="btn_buynowcc_lg"   /></a></p>
<p>POCKETGEAR :<br />
<a href="http://classic.pocketgear.com/software_detail.asp?id=27720"><img class="alignnone size-full wp-image-219" title="pocketgear" src="http://nishantpant.files.wordpress.com/2008/11/pocketgear.jpg?w=468" alt="pocketgear"   /></a></p>
<p>Check out these other Titles too :</p>
<ul>
<li><a href="http://tinyurl.com/atimetonap">http://tinyurl.com/atimetonap</a> (Time To Nap !)</li>
<li><a href="http://nishantpant.wordpress.com/2009/01/30/dudler-your-drunk-dialling-assistant/">http://nishantpant.wordpress.com/2009/01/30/dudler-your-drunk-dialling-assistant/</a> (Drunk Dialer)</li>
<li><a href="http://tinyurl.com/iTmobile">http://tinyurl.com/iTmobile</a> (iTmobile &#8211; Check your Tmobile minutes on your iPhone)</li>
</ul>
<br />Posted in HTC Touch Diamond, Windows Mobile Tagged: linkedin <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nishantpant.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nishantpant.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nishantpant.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nishantpant.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nishantpant.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nishantpant.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nishantpant.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nishantpant.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nishantpant.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nishantpant.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nishantpant.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nishantpant.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nishantpant.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nishantpant.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=177&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nishantpant.wordpress.com/2008/11/29/phone-buddy-for-htc-diamond/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13382fb87091e31313d828a8a1ffd8e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nishantpant</media:title>
		</media:content>

		<media:content url="http://nishantpant.files.wordpress.com/2008/11/btn_buynowcc_lg.gif" medium="image">
			<media:title type="html">btn_buynowcc_lg</media:title>
		</media:content>

		<media:content url="http://nishantpant.files.wordpress.com/2008/11/pocketgear.jpg" medium="image">
			<media:title type="html">pocketgear</media:title>
		</media:content>

		<media:content url="http://nishantpant.files.wordpress.com/2008/11/fliptovibrate.jpg" medium="image">
			<media:title type="html">fliptovibrate</media:title>
		</media:content>

		<media:content url="http://nishantpant.files.wordpress.com/2008/11/autolock.jpg" medium="image">
			<media:title type="html">autolock</media:title>
		</media:content>

		<media:content url="http://nishantpant.files.wordpress.com/2008/11/tiltcontrol.jpg" medium="image">
			<media:title type="html">tiltcontrol</media:title>
		</media:content>

		<media:content url="http://nishantpant.files.wordpress.com/2008/11/feedback.jpg" medium="image">
			<media:title type="html">feedback</media:title>
		</media:content>

		<media:content url="http://nishantpant.files.wordpress.com/2008/11/btn_buynowcc_lg.gif" medium="image">
			<media:title type="html">btn_buynowcc_lg</media:title>
		</media:content>

		<media:content url="http://nishantpant.files.wordpress.com/2008/11/pocketgear.jpg" medium="image">
			<media:title type="html">pocketgear</media:title>
		</media:content>
	</item>
		<item>
		<title>Get rid of Regsvr32, Regasm, Gacutil&#8230; A Shellextension for .Net and COM dlls</title>
		<link>http://nishantpant.wordpress.com/2008/08/19/get-rid-of-regsvr32-regasm-gacutil-a-shellextension-for-net-and-com-dlls/</link>
		<comments>http://nishantpant.wordpress.com/2008/08/19/get-rid-of-regsvr32-regasm-gacutil-a-shellextension-for-net-and-com-dlls/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 14:35:07 +0000</pubDate>
		<dc:creator>Nishant Pant</dc:creator>
				<category><![CDATA[.net 1.1]]></category>
		<category><![CDATA[.Net 2.0]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[Shellextension]]></category>

		<guid isPermaLink="false">http://nishantpant.wordpress.com/?p=131</guid>
		<description><![CDATA[I had originally written a Shellextension for COM dlls, which would give you the option of registering/unregistering a dll (if it is a com dll) by right clicking on it. Here is the original post :http://nishantpant.wordpress.com/wp-admin/post.php?action=edit&#38;post=11 After several years, I finally took out some time and created a Shellextension which works for .Net assemblies as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=131&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had originally written a Shellextension for COM dlls, which would give you the option of registering/unregistering a dll (if it is a com dll) by right clicking on it. Here is the original post :<a href="http://nishantpant.wordpress.com/wp-admin/post.php?action=edit&amp;post=11">http://nishantpant.wordpress.com/wp-admin/post.php?action=edit&amp;post=11</a></p>
<p>After several years, I finally took out some time and created a Shellextension which works for .Net assemblies as well. These are the few features it has :</p>
<p>1. If you right click on a DLL and if it is a COM Plus dll it will show you the following menu.</p>
<p><a href="http://nishantpant.files.wordpress.com/2008/08/rightclickcomplus.jpg"><img class="size-full wp-image-132" src="http://nishantpant.files.wordpress.com/2008/08/rightclickcomplus.jpg?w=468" alt="COM Plus Dlls" /></a>If you click on a COM dll but it is not installed in COM+, then you will get all above options except, the last 3 options which are relevant to COM+ only. Also, if you right clik a COM only dll, then it WILL give you an option called &#8220;Create COM+ package&#8221;.</p>
<p>2. IF you Right click on a dll which is a .Net assembly and is Strong Named as well, you will see the following menu :</p>
<p><a href="http://nishantpant.files.wordpress.com/2008/08/rightclickstrongnamed.jpg"><img class="alignnone size-full wp-image-133" src="http://nishantpant.files.wordpress.com/2008/08/rightclickstrongnamed.jpg?w=468" alt=""   /></a></p>
<p>If you right click on an Assembly which is not Strong Named, you will see all options except GACUTIL</p>
<p>3. If you hover your mouse over a dll which is a .Net dll, you will see some brief information about the dll like below :</p>
<p><a href="http://nishantpant.files.wordpress.com/2008/08/tooltipnet.jpg"><img class="alignnone size-full wp-image-134" src="http://nishantpant.files.wordpress.com/2008/08/tooltipnet.jpg?w=468&#038;h=334" alt="" width="468" height="334" /></a></p>
<p>4. If you right click on an Assembly, you will see a menu option called &#8220;Open with Lutz Reflector&#8221;. In case you dont know what <a href="http://www.aisto.com/Roeder/DotNet/" target="_blank">Lutz Reflector </a>is, it is an awesome free tool written by Lutz Roeder which disassembles any .Net assembly and shows you the source code in a very easy to view typelibrary browser. Since you could have downloaded Lutz Reflector anywhere in your PC, my shellextension will prompt you for the location just once when you first click on this option. It will then remember the location and will just open the Reflector with your assembly loaded in it.</p>
<p><a href="http://nishantpant.files.wordpress.com/2008/08/lutz.jpg"><img class="alignnone size-full wp-image-135" src="http://nishantpant.files.wordpress.com/2008/08/lutz.jpg?w=468" alt="" /></a></p>
<p>Tested with Lutz Reflector 5.1</p>
<p><strong>UPDATE (8/21/08) -</strong> Just heard from Lutz Roeder, that his software will be further developed and maintained by Red-Gate software from now on. (It will still be free though). See link for details &#8211;&gt;<a href="http://www.simple-talk.com/opinion/opinion-pieces/the-future-of-reflector-/" target="_blank">Click to see article</a></p>
<p>5. If you go to the thumbnail view of any folder which has dlls, the shellextension analyzes the dlls and puts and changes their icon which helps you identify them. The Shellextension can distinguish between a regular dll, COM dll, .Net 1.0, 1.0, 2.0, 3.0 and 3.5 assembly. See below :</p>
<p><a href="http://nishantpant.files.wordpress.com/2008/08/iconhandler.jpg"><img class="alignnone size-full wp-image-146" src="http://nishantpant.files.wordpress.com/2008/08/iconhandler.jpg?w=468" alt=""   /></a></p>
<p>6. Last but not the least, you can customize the behavior of the dll and turn the ShellExtensions off or on. You can toggle, IconHandler extension, Right Click context menu extension and ToolTip extension. Here is a snapshot of the configuration screen :</p>
<p><a href="http://nishantpant.files.wordpress.com/2008/08/options.jpg"><img class="alignnone size-full wp-image-147" src="http://nishantpant.files.wordpress.com/2008/08/options.jpg?w=468" alt="" /></a></p>
<p>This is the first time I am releasing this ShellExtension, so there may be a few bugs in it. I would really appreciate if you can report the bugs to me by leave a comment in this post. I will try to work on them as soon as I can find time.</p>
<p>DOWNLOAD/Setup :</p>
<ul>
<li>Download the ShellExtension : <a href="http://cid-51ddcfc18f827e31.skydrive.live.com/self.aspx/Public/NPShellExtSetup.msi">http://cid-51ddcfc18f827e31.skydrive.live.com/self.aspx/Public/NPShellExtSetup.msi</a></li>
<li>Run the above .MSI file (it is a setup file) to install the Extension. To test right click on any .net assembly or com dll and see if the menu comes up.</li>
<li>PREREQUISITES : .Net Framework 2.0</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nishantpant.wordpress.com/131/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nishantpant.wordpress.com/131/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nishantpant.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nishantpant.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nishantpant.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nishantpant.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nishantpant.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nishantpant.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nishantpant.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nishantpant.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nishantpant.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nishantpant.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nishantpant.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nishantpant.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nishantpant.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nishantpant.wordpress.com/131/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=131&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nishantpant.wordpress.com/2008/08/19/get-rid-of-regsvr32-regasm-gacutil-a-shellextension-for-net-and-com-dlls/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13382fb87091e31313d828a8a1ffd8e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nishantpant</media:title>
		</media:content>

		<media:content url="http://nishantpant.files.wordpress.com/2008/08/rightclickcomplus.jpg" medium="image">
			<media:title type="html">COM Plus Dlls</media:title>
		</media:content>

		<media:content url="http://nishantpant.files.wordpress.com/2008/08/rightclickstrongnamed.jpg" medium="image" />

		<media:content url="http://nishantpant.files.wordpress.com/2008/08/tooltipnet.jpg" medium="image" />

		<media:content url="http://nishantpant.files.wordpress.com/2008/08/lutz.jpg" medium="image" />

		<media:content url="http://nishantpant.files.wordpress.com/2008/08/iconhandler.jpg" medium="image" />

		<media:content url="http://nishantpant.files.wordpress.com/2008/08/options.jpg" medium="image" />
	</item>
		<item>
		<title>Create pdf documents for free</title>
		<link>http://nishantpant.wordpress.com/2008/08/08/create-pdf-documents-for-free/</link>
		<comments>http://nishantpant.wordpress.com/2008/08/08/create-pdf-documents-for-free/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 15:40:01 +0000</pubDate>
		<dc:creator>Nishant Pant</dc:creator>
				<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://nishantpant.wordpress.com/?p=129</guid>
		<description><![CDATA[Here is an open source printer driver. Once you install it on your machine it will create a fake printer on your computer. Printing any document to this printer, will cause your document to be converted into a .PDF file. Pretty neat! Download http://sourceforge.net/project/showfiles.php?group_id=57796&#38;package_id=53473&#38;release_id=563252 Close programs like Outlook, Word, SQLEdit, Visual Studio etc. (otherwise the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=129&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is an open source printer driver. Once you install it on your machine it will create a fake printer on your computer. Printing any document to this printer, will cause your document to be converted into a .PDF file. Pretty neat!</p>
<ul>
<li>Download <a href="http://sourceforge.net/project/showfiles.php?group_id=57796&amp;package_id=53473&amp;release_id=563252" target="_blank">http://sourceforge.net/project/showfiles.php?group_id=57796&amp;package_id=53473&amp;release_id=563252</a></li>
</ul>
<ul>
<li>Close programs like Outlook, Word, SQLEdit, Visual Studio etc. (otherwise the setup may fail)</li>
</ul>
<ul>
<li> Install the software (accept all defaults), it will create a new printer on your machine called “PDFCreator”.</li>
</ul>
<ul>
<li> To create pdf documents all you need to do is to print to this printer. It will prompt you for the PDF location and will automatically open the PDF after it is created.</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nishantpant.wordpress.com/129/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nishantpant.wordpress.com/129/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nishantpant.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nishantpant.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nishantpant.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nishantpant.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nishantpant.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nishantpant.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nishantpant.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nishantpant.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nishantpant.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nishantpant.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nishantpant.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nishantpant.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nishantpant.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nishantpant.wordpress.com/129/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=129&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nishantpant.wordpress.com/2008/08/08/create-pdf-documents-for-free/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13382fb87091e31313d828a8a1ffd8e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nishantpant</media:title>
		</media:content>
	</item>
		<item>
		<title>An enhanced UpdateProgress control, which shows an animation at the point where mouse was clicked</title>
		<link>http://nishantpant.wordpress.com/2008/07/18/an-enhanced-updateprogress-control-which-shows-an-animation-at-the-point-where-mouse-was-clicked/</link>
		<comments>http://nishantpant.wordpress.com/2008/07/18/an-enhanced-updateprogress-control-which-shows-an-animation-at-the-point-where-mouse-was-clicked/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 12:08:17 +0000</pubDate>
		<dc:creator>Nishant Pant</dc:creator>
				<category><![CDATA[.Net 2.0]]></category>
		<category><![CDATA[ASP.net 2.0]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[VSS /Visual Studio]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Custom Control]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[UpdateProgress]]></category>

		<guid isPermaLink="false">http://nishantpant.wordpress.com/?p=110</guid>
		<description><![CDATA[Also Check Out: My latest venture. http://loqly.me – a way for you to ask questions and get answers about local businesses around you. iTunes link:http://bit.ly/e5u4jv (only available in US for now) WHY DO IT ??? Before you read the post, let us answer why did I waste time in changing the behavior of the UpdateProgress [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=110&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#ff0000;"><strong>Also Check Out:</strong> </span><strong>My latest venture. </strong><a href="http://loqly.me/"><strong>http://loqly.me</strong></a><strong> – a way for you to ask questions and get answers about local businesses around you. iTunes link:</strong><strong><a href="http://bit.ly/e5u4jv">http://bit.ly/e5u4jv</a> (only available in US for now)</strong></p>
<p><strong>WHY DO IT ???</strong></p>
<p>Before you read the post, let us answer why did I waste time in changing the behavior of the <em><strong>UpdateProgress </strong></em>control. Here is the deal. Suppose, you have 5 or 6 controls on your page, which when clicked result in an Ajax call. You know that the <em><strong>UpdateProgress </strong></em>control is pretty much static, meaning, wherever you put the <strong><em>&lt;asp:UpdateProgress&gt;</em></strong> tags, that is the place where the progressbar will show up when your Ajax call is in progress. So, no matter which control the user clicks the progressbar is being shown in a fixed place. Why may some people consider this bad ???</p>
<ul>
<li>You or anyone looking at the screen, may lose track of why you are waiting because the progressbar just shows that you are waiting not what has triggered the wait.</li>
<li>If the page is long, and the progress bar is at a fixed place, there is a possibility that you clicked a control which is a scroll length away from where the progressbar will show.</li>
<li>If the control which was clicked can give a feedback for the user to wait, it prevents the user from clicking the same button twice.</li>
</ul>
<p>So, much for justifying why I wrote this control. But those were just a few thoughts behind it. Let us get back to the nitty gritties. Btw, here is a YouTube vide of how it looks (video is a little fuzzy but it shows what I am trying to communicate)</p>
<span style="text-align:center; display: block;"><a href="http://nishantpant.wordpress.com/2008/07/18/an-enhanced-updateprogress-control-which-shows-an-animation-at-the-point-where-mouse-was-clicked/"><img src="http://img.youtube.com/vi/a46xkBea6mg/2.jpg" alt="" /></a></span>
<p><strong>The Code :</strong></p>
<p>I will not go into too much detail explaining the code, because I am sharing the source code with you. But here is the high level overview :</p>
<ul>
<li>Create a new control, which inherits from <strong><em>UpdateProgress </em></strong>control</li>
<li>Embed two resources in your control assembly. (the default hourglass image and the javascript used to make this control work)</li>
<li>Override Render method, and inject javascript. The javascript will hook into the AJAX <strong><em>InitializeRequest </em></strong>and <strong><em>EndRequest </em></strong>events, by calling <strong><em>add_initializeRequest</em></strong>() and <strong><em>add_endRequest</em></strong>() methods of <strong><em>Sys.WebForms.PageRequestManager </em></strong>class.</li>
<li>The first Image control in the &lt;<strong><em>ProgressTemplate</em></strong>&gt; of the UpdateProgress control will be assumed to be the hourglass image, and if you haven&#8217;t set an ImageURL value for it, a default image will be supplied. You can create your own hourglass images from this awesome website : <a href="http://www.ajaxload.info/#preview">http://www.ajaxload.info/#preview</a></li>
</ul>
<p>That is it. Do leave comments and suggestions if you find this control useful. I am also attaching the <a title="Rigth Click --&gt;Save Target--&gt;Rename to .Zip" href="http://nishantpant.files.wordpress.com/2008/07/vbajaxzip1.jpg">source code </a>and the assembly. If you don&#8217;t want to see the code, just use the assembly and things should work right away.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nishantpant.wordpress.com/110/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nishantpant.wordpress.com/110/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nishantpant.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nishantpant.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nishantpant.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nishantpant.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nishantpant.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nishantpant.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nishantpant.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nishantpant.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nishantpant.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nishantpant.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nishantpant.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nishantpant.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nishantpant.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nishantpant.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=110&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nishantpant.wordpress.com/2008/07/18/an-enhanced-updateprogress-control-which-shows-an-animation-at-the-point-where-mouse-was-clicked/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13382fb87091e31313d828a8a1ffd8e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nishantpant</media:title>
		</media:content>
	</item>
		<item>
		<title>Migrating Sourcesafe database from one server to another in 5 steps</title>
		<link>http://nishantpant.wordpress.com/2008/05/22/migrating-sourcesafe-database-from-one-server-to-another-in-5-steps-2/</link>
		<comments>http://nishantpant.wordpress.com/2008/05/22/migrating-sourcesafe-database-from-one-server-to-another-in-5-steps-2/#comments</comments>
		<pubDate>Wed, 21 May 2008 18:36:37 +0000</pubDate>
		<dc:creator>Nishant Pant</dc:creator>
				<category><![CDATA[VSS /Visual Studio]]></category>
		<category><![CDATA[Sourcesafe]]></category>
		<category><![CDATA[VSS]]></category>

		<guid isPermaLink="false">http://nishantpant.wordpress.com/?p=106</guid>
		<description><![CDATA[UPDATE: The easiest way to move a VSS database to a new server is to copy the whole database in one shot. If your database is small this works like a charm. See this MS KB article for details. The only gotchas are : This involves copying the complete VSS folder over the network. This [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=106&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Times New Roman;"><strong>UPDATE: </strong>The easiest way to move a VSS database to a new server is to copy the whole database in one shot. If your database is small this works like a charm. See this <a title="Microsoft KB Article" href="http://support.microsoft.com/kb/176909">MS KB article</a> for details. The only gotchas are :</span></p>
<ol><span style="font-size:small;font-family:Times New Roman;"></p>
<li>This involves copying the complete VSS folder over the network. This may be slooooow and the file copy may even fail suddenly for no reason.</li>
<li>If the VSS db is real big then even winzip will stop at 65K files, so rule out that option if the no of files &gt; 65K. Even winrar doesn&#8217;t work. I haven&#8217;t tried Lharc or ARJ yet.</li>
<p></span></ol>
<ol></ol>
<p><span style="font-family:Times New Roman;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></p>
<p><!--adsense--></p>
<p><span style="font-family:Times New Roman;"><strong>Original Post</strong> </span></p>
<p><span style="font-family:Times New Roman;">If you have found this article, it means you haven&#8217;t had much luck trying to find how to migrate VSS from one machine to another. Also, many of you must have noticed that MS KB article <a rel="nofollow" href="http://support.microsoft.com/kb/q176875/"><span style="color:#247cd4;">http://support.microsoft.com/kb/q176875/</span></a></span><span style="color:#247cd4;"> is bogus and the syntax for ssarc does not work. So, how do you actually move your VSS sourcesafe database ????</span></p>
<p><span style="font-size:small;font-family:Times New Roman;"><strong>STEP 1: Use SSARC.EXE to archive your existing database.</strong><br />
Here is the syntax which I got working for me after umpteen trial/errors :<br />
<strong>ssarc</strong> <span style="color:#60bf00;"><strong>&#8220;-s\\vssserver\vssfolder&#8221; d:\Archive.SSA $</strong> </span></span></p>
<p><span style="font-size:small;font-family:Times New Roman;">1. Notice that -s is inside the quotes<br />
2. $ means the whole VSS should be archived starting from root. You can specify sub branches too. eg. $/Projects or $/Project/Project1<br />
3. Make sure you enter &#8216;N&#8217; (NO) when ssarc asks you if you want to delete the existing database after it has been archived.</span></p>
<p><span style="font-size:small;font-family:Times New Roman;"><strong>STEP 2: Run SSRESTOR.EXE to restore the database on the new server.</strong><br />
<strong>ssrestor <span style="color:#60bf00;">&#8220;-s\\NewServer\VSS&#8221; d:\ArchivedProjects.ssa &#8220;$/PathYouWantToRestoreTo&#8221;</span></strong></span></p>
<p><span style="font-size:small;font-family:Times New Roman;"><strong>STEP 3: Copy existing users from your current VSS installation.</strong><br />
Copy VSS\Users folder, VSS\Users.txt file and Um.dat file to the new installation</span></p>
<p><span style="font-family:Times New Roman;"><strong>STEP 4: </strong>Run <strong><span style="color:#007f40;"><span style="color:#60bf00;">Analyze -F &#8220;C:\Program Files\Microsoft Visual Studio\VSS\Data</span></span></strong></span><strong><span style="color:#007f40;"><span style="color:#60bf00;">&#8220;</span></span></strong><span style="color:#007f40;">. This will re-generate the rights for all the users based on um.dat. Remember you just cannot simply copy rights.dat file to do this.</span></p>
<p><span style="font-family:Times New Roman;"><strong>STEP 5:</strong> You can either change the current srcsafe.ini to point to the new database, so that developers don&#8217;t get a broken link. Or you can just shutdown the server and tell people to reload their projects from the new server.</span></p>
<p><span style="font-family:Times New Roman;"><span style="color:#ff4040;">Thats it. When you complete step 5&#8230;.your VSS migration is complete !!!!</span></span></p>
<p><!--adsense--></p>
<p><span style="font-family:Times New Roman;"><strong>Further Reading:&#8212;&#8212;&#8212;&#8212;&#8212;</strong></span></p>
<p><span style="font-family:Times New Roman;"><span style="font-family:Times New Roman;">Problems/Fixes for integrating VSS with Interdev:</span></span><span style="font-size:small;font-family:Times New Roman;"><br />
<a href="http://www.codeproject.com/asp/VSS_and_VID.asp?df=100&amp;forumid=136229&amp;select=1313406&amp;msg=1313406"><span style="font-family:Times New Roman;">http://www.codeproject.com/asp/VSS_and_VID.asp?df=100&amp;forumid=136229&amp;select=1313406&amp;msg=1313406</span></a></span></p>
<p><span style="font-family:Times New Roman;"><span style="font-family:Times New Roman;">User right setup for VSS:</span></span><span style="font-size:small;font-family:Times New Roman;"><br />
<a href="http://support.microsoft.com/kb/131022/EN-US/"><span style="font-family:Times New Roman;">http://support.microsoft.com/kb/131022/EN-US/</span></a><span style="font-family:Times New Roman;"> </span></span></p>
<p><span style="font-size:12pt;font-family:'Times New Roman';"><span style="font-family:Times New Roman;">Use of <a href="http://codebetter.com/blogs/darrell.norton/archive/2004/04/15/11493.aspx"><span style="color:#247cd4;">http://codebetter.com/blogs/darrell.norton/archive/2004/04/15/11493.aspx</span></a></span><span style="color:#247cd4;"> vss binding remover on developer’s machines to get rid of .scc files</span></span></p>
<p><!--adsense--></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nishantpant.wordpress.com/106/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nishantpant.wordpress.com/106/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nishantpant.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nishantpant.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nishantpant.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nishantpant.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nishantpant.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nishantpant.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nishantpant.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nishantpant.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nishantpant.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nishantpant.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nishantpant.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nishantpant.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nishantpant.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nishantpant.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=106&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nishantpant.wordpress.com/2008/05/22/migrating-sourcesafe-database-from-one-server-to-another-in-5-steps-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13382fb87091e31313d828a8a1ffd8e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nishantpant</media:title>
		</media:content>
	</item>
		<item>
		<title>LDAP Query to search a user in AD using his partial last name</title>
		<link>http://nishantpant.wordpress.com/2008/05/22/ldap-query-to-search-a-user-in-ad-using-his-partial-last-name-2/</link>
		<comments>http://nishantpant.wordpress.com/2008/05/22/ldap-query-to-search-a-user-in-ad-using-his-partial-last-name-2/#comments</comments>
		<pubDate>Wed, 21 May 2008 18:35:18 +0000</pubDate>
		<dc:creator>Nishant Pant</dc:creator>
				<category><![CDATA[LDAP / Active Directory]]></category>
		<category><![CDATA[VBScript /VB6]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[VB6]]></category>
		<category><![CDATA[VBScript]]></category>

		<guid isPermaLink="false">http://nishantpant.wordpress.com/?p=105</guid>
		<description><![CDATA[Dim User as object Set User = GetUserObjectFromPartialName(&#8216;doe&#8217;) Msgbox User.FullName &#38; User.sAMAccountName &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Public Function GetUserObjectFromPartialName(ByVal PartialName As String) As Object On Error Resume Next Set rs = CreateObject(&#8220;adodb.recordset&#8221;) rs.ActiveConnection = &#8220;provider=adsdsoobject&#8221; � rs.Open &#8220;&#60;LDAP://dc=sl,dc=ad,dc=csx,dc=com&#62;;(&#38;(objectCategory=Person)&#8221; &#38; _ &#8220;(objectClass=OrganizationalPerson)(name=&#8221; &#38; PartialName &#38; &#8220;*));adspath;subtree&#8221; If Not rs.EOF Then Set GetUserObjectFromPartialName = GetObject(rs(0)) End If End Function<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=105&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:10pt;font-family:'Courier New';"><span><span style="color:#0000ff;">Dim</span> User <span style="color:#0000ff;">as object</span></span></span></p>
<p><span style="font-size:10pt;font-family:'Courier New';"><span><span style="color:#0000ff;">Set </span><span style="color:#000000;">User = GetUserObjectFromPartialName(&#8216;doe&#8217;)</span></span></span></p>
<p><span style="font-size:10pt;font-family:'Courier New';"><span>Msgbox User.FullName <span style="color:#0000ff;">&amp;</span> User.sAMAccountName</span></span></p>
<p><span style="font-size:10pt;font-family:'Courier New';"><span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></span></p>
<p><!--adsense--></p>
<p><span style="font-size:10pt;font-family:'Courier New';"><span><span style="color:#0000ff;">Public Function</span> GetUserObjectFromPartialName(ByVal PartialName As String) As Object<br />
On Error Resume Next<br />
Set rs = CreateObject(&#8220;adodb.recordset&#8221;)<br />
rs.ActiveConnection = &#8220;provider=adsdsoobject&#8221;<br />
�<br />
rs.Open &#8220;&lt;LDAP://dc=sl,dc=ad,dc=csx,dc=com&gt;;(&amp;(objectCategory=Person)&#8221; &amp; _<br />
&#8220;(objectClass=OrganizationalPerson)(name=&#8221; &amp; PartialName &amp; &#8220;*));adspath;subtree&#8221;</span></span></p>
<p><span style="font-size:10pt;font-family:'Courier New';"><span>If Not rs.EOF Then<br />
Set GetUserObjectFromPartialName = GetObject(rs(0))<br />
End If<br />
<span style="color:#0000ff;">End Function</span></span></span></p>
<p><!--adsense--></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nishantpant.wordpress.com/105/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nishantpant.wordpress.com/105/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nishantpant.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nishantpant.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nishantpant.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nishantpant.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nishantpant.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nishantpant.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nishantpant.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nishantpant.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nishantpant.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nishantpant.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nishantpant.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nishantpant.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nishantpant.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nishantpant.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=105&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nishantpant.wordpress.com/2008/05/22/ldap-query-to-search-a-user-in-ad-using-his-partial-last-name-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13382fb87091e31313d828a8a1ffd8e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nishantpant</media:title>
		</media:content>
	</item>
		<item>
		<title>Recursive LDAP function to get nested groups</title>
		<link>http://nishantpant.wordpress.com/2008/05/22/recursive-ldap-function-to-get-nested-groups/</link>
		<comments>http://nishantpant.wordpress.com/2008/05/22/recursive-ldap-function-to-get-nested-groups/#comments</comments>
		<pubDate>Thu, 22 May 2008 05:34:17 +0000</pubDate>
		<dc:creator>Nishant Pant</dc:creator>
				<category><![CDATA[LDAP / Active Directory]]></category>
		<category><![CDATA[VBScript /VB6]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[VB6]]></category>
		<category><![CDATA[VBScript]]></category>

		<guid isPermaLink="false">http://nishantpant.wordpress.com/?p=104</guid>
		<description><![CDATA[Here is a simple recursive function that I wrote which will give you nested groups and members for any given Active Directory group. Try it&#8230;.it works! U can bind it to a tree later on to show it on the screen. I have also included an output of how it looks when bound to an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=104&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a simple recursive function that I wrote which will give you nested groups and members for any given Active Directory group. Try it&#8230;.it works! U can bind it to a tree later on to show it on the screen. I have also included an output of how it looks when bound to an iewc Treeview.</p>
<p><a title="tree.jpg" href="http://nishantpant.files.wordpress.com/2006/12/tree.jpg"><img class="yui-img" src="http://nishantpant.files.wordpress.com/2006/12/tree.jpg?w=468" alt="tree.jpg" /></a></p>
<p><!--adsense--></p>
<p><span style="color:#0000ff;">Dim</span> AdsPath<span style="color:#0000ff;"> as string</span><br />
<span style="color:#0000ff;">Dim</span> XMLRoles<span style="color:#0000ff;"> as string</span></p>
<p>AdsPath = GetAdsPathOfGroupThroughADO(&#8220;Domain Admins&#8221;)</p>
<p>XMLRoles = GetRoleMembers(Adspath)</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><span style="color:#0000ff;">Public Function</span> GetAdsPathOfGroupThroughADO(<span style="color:#0000ff;">ByVal</span> Group <span style="color:#0000ff;">As String</span>) <span style="color:#0000ff;">As String</span><br />
<span style="color:#0000ff;">On Error Resume Next</span><br />
<span style="color:#0000ff;">Set</span> rs = CreateObject(&#8220;ADODB.RecordSet&#8221;)<br />
rs.Open &#8220;;(sAMAccountName=&#8221; &amp; Group &amp; &#8220;);adspath&#8221;, &#8220;provider=ADsDSOObject&#8221;</p>
<p><span style="color:#0000ff;">If Not</span> rs.EOF <span style="color:#0000ff;">Then </span><br />
s = rs(0).Value<br />
<span style="color:#0000ff;">End If<br />
</span><br />
GetAdsPathOfGroupThroughADO = s<br />
<span style="color:#0000ff;">End Function<br />
</span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><!--adsense--></p>
<p><span style="color:#0000ff;">Public Function</span> GetRoleMembers(<span style="color:#0000ff;">ByVal</span> RoleAdsPath<span style="color:#0000ff;"> As String</span>)<span style="color:#0000ff;"> As String<br />
</span><span style="color:#0000ff;">Dim</span> eu <span style="color:#0000ff;">As Object</span><br />
<span style="color:#0000ff;">Dim</span> XML <span style="color:#0000ff;">As String</span></p>
<p><span style="color:#0000ff;">Set</span> eu = CreateObject(&#8220;ess.user&#8221;)<br />
<span style="color:#0000ff;">Set</span> Group = GetObject(RoleAdsPath)<br />
XML = &#8220;&#8221;</p>
<p><span style="color:#0000ff;">For Each</span> member <span style="color:#0000ff;">In</span> Group.Members<br />
<span style="color:#0000ff;">If</span> member.Class = &#8220;Group&#8221; <span style="color:#0000ff;">Then</span><br />
XML = XML &amp; vbCrLf &amp; GetRoleMembers(member.ADsPath)<br />
<span style="color:#0000ff;">ElseIf</span> member.Class = &#8220;foreignSecurityPrincipal&#8221; <span style="color:#0000ff;">Then </span><br />
<span style="color:#0000ff;">On Error Resume Next</span><br />
<span style="color:#0000ff;">Set</span> u = GetObject(&#8220;LDAP://=&#8221; &amp; eu.SidStringToHexString(member.cn) &amp; &#8220;&gt;&#8221;)<br />
<span style="color:#0000ff;">If</span> Err.Number = 0 <span style="color:#0000ff;">Then</span><br />
XML = XML &amp; vbCrLf &amp; &#8220;&#8221;<br />
<span style="color:#0000ff;">End If<br />
End If<br />
Next</span></p>
<p>XML = XML &amp; vbCrLf &amp; &#8220;&#8221;<br />
GetRoleMembers = XML<br />
<span style="color:#0000ff;">End Function</span></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><a title="input.jpg" href="http://nishantpant.files.wordpress.com/2006/12/input.jpg"><img class="yui-img" src="http://nishantpant.files.wordpress.com/2006/12/input.jpg?w=468" alt="input.jpg" /></a><a title="Treetransform.XSLT" href="http://nishantpant.files.wordpress.com/2006/12/treetransformxslt.txt">Treetransform.XSLT</a><br />
eg. TreeView1.TreeNodeSrc = &#8220;XML returned by GetRoleMembers()&#8230;.&#8221;<br />
TreeView1.TreeNodeXsltSrc = Server.MapPath(&#8220;Treetransform.xslt&#8221;)�<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><a title="tree.jpg" href="http://nishantpant.files.wordpress.com/2006/12/tree.jpg"></a></p>
<p><!--adsense--></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nishantpant.wordpress.com/104/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nishantpant.wordpress.com/104/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nishantpant.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nishantpant.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nishantpant.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nishantpant.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nishantpant.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nishantpant.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nishantpant.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nishantpant.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nishantpant.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nishantpant.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nishantpant.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nishantpant.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nishantpant.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nishantpant.wordpress.com/104/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=104&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nishantpant.wordpress.com/2008/05/22/recursive-ldap-function-to-get-nested-groups/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13382fb87091e31313d828a8a1ffd8e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nishantpant</media:title>
		</media:content>

		<media:content url="http://nishantpant.files.wordpress.com/2006/12/tree.jpg" medium="image">
			<media:title type="html">tree.jpg</media:title>
		</media:content>

		<media:content url="http://nishantpant.files.wordpress.com/2006/12/input.jpg" medium="image">
			<media:title type="html">input.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>WordPress statistics not updating with Blogstat, firestat or Statpress</title>
		<link>http://nishantpant.wordpress.com/2008/05/22/wordpress-statistics-not-updating-with-blogstat-firestat-or-statpress/</link>
		<comments>http://nishantpant.wordpress.com/2008/05/22/wordpress-statistics-not-updating-with-blogstat-firestat-or-statpress/#comments</comments>
		<pubDate>Wed, 21 May 2008 18:27:54 +0000</pubDate>
		<dc:creator>Nishant Pant</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Blog Hosting]]></category>
		<category><![CDATA[Self Hosting Wordpress]]></category>

		<guid isPermaLink="false">http://nishantpant.wordpress.com/?p=103</guid>
		<description><![CDATA[I moved my WordPress blog to my Home machine recently. The main motivation was to have full control over wordpress. As most of you would already know that WordPress is free!, which means that you can download the entire wordpress software with source code and run it from your home machine. All you need is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=103&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I moved my WordPress blog to my Home machine recently. The main motivation was to have full control over wordpress. As most of you would already know that WordPress is free!, which means that you can download the entire wordpress software with source code and run it from your home machine. All you need is a webserver. I use IIS but there are several free webservers out there. By the way IIS is also free depending on the operating system you have. eg. Windows XP Pro comes with IIS. Or Windows Vista Business and above also come with IIS.</p>
<p>Anyway, I installed at least 15 free plugins when I moved my blog to my own machine. Yes, thats what you get for hosting your own blog. If you have a wordpress.com or wordpress.org blog, you will not even see the menu option called &#8216;plugins&#8217;. But, the real power of wordpress lies in plugins. Once you start seeing the plugins available out there, you will literally freak out.</p>
<p>So, I installed 3 plugins just to track my stats (i.e how many people are visiting my blog, what blog posts they are reading, what country they are comning from, what Google search terms they are using to get to my blog etc etc). But, I was really frustrated the first few days, because all the stats plugins showed me was 0 vistors, 0 hits&#8230;.and I knew that this couldn&#8217;t be true. So, now I am sharing the one line of code which was causing all my stats plugins to malfunction. I found out that the &#8220;theme&#8221; that I was using for my Blog had a missing line of code in the header.php file. So, I just added this line of code and wallah!!!! all the plugins started showing me stats instantly. This is what I did to start making it work&#8230;&#8230;&#8230;&#8230;</p>
<p><!--adsense--></p>
<p style="color:#ff0000;">&lt;div id=&#8221;sitetitle&#8221;&gt;<br />
&lt;h1&gt;&lt;a href=&#8221;&lt;?php bloginfo(&#8216;url&#8217;); ?&gt;&#8221;&gt;&lt;?php bloginfo(&#8216;name&#8217;); ?&gt;&lt;/a&gt;&lt;/h1&gt;<br />
&lt;h2&gt;&lt;?php bloginfo(&#8216;description&#8217;); ?&gt;&lt;/h2&gt;<br />
&lt;/div&gt;</p>
<p>&lt;div id=&#8221;menu&#8221;&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;&lt;?php bloginfo(&#8216;url&#8217;); ?&gt;&#8221;&gt;home&lt;/a&gt;&lt;/li&gt;<br />
&lt;?php wp_list_pages(&#8216;title_li=&#8217;); ?&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;<br />
<strong>&lt;?php wp_head(); ?&gt; &lt;&#8211; This is the line I changed.</strong></p>
<p>Leave a comment if this does or doesn&#8217;t work for you.</p>
<p><!--adsense--></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nishantpant.wordpress.com/103/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nishantpant.wordpress.com/103/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nishantpant.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nishantpant.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nishantpant.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nishantpant.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nishantpant.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nishantpant.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nishantpant.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nishantpant.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nishantpant.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nishantpant.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nishantpant.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nishantpant.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nishantpant.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nishantpant.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nishantpant.wordpress.com&amp;blog=518127&amp;post=103&amp;subd=nishantpant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nishantpant.wordpress.com/2008/05/22/wordpress-statistics-not-updating-with-blogstat-firestat-or-statpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/13382fb87091e31313d828a8a1ffd8e8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nishantpant</media:title>
		</media:content>
	</item>
	</channel>
</rss>
