<?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>Skowronek.org &#187; Snipits</title>
	<atom:link href="http://www.skowronek.org/tag/snipits/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.skowronek.org</link>
	<description>The official web site for the Skowronek family of South Jordan, Utah, USA</description>
	<lastBuildDate>Wed, 31 Aug 2011 16:01:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Create Multiple Web Sites on XP Version of IIS</title>
		<link>http://www.skowronek.org/2006/09/30/create-multiple-web-sites-on-xp-version-of-iis/</link>
		<comments>http://www.skowronek.org/2006/09/30/create-multiple-web-sites-on-xp-version-of-iis/#comments</comments>
		<pubDate>Sat, 30 Sep 2006 22:32:38 +0000</pubDate>
		<dc:creator>Skowronek</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Snipits]]></category>

		<guid isPermaLink="false">http://www.skowronek.org/2006/09/30/create-multiple-web-sites-on-xp-version-of-iis/</guid>
		<description><![CDATA[&#8216; Create an instance of the virtual directory object &#8216; that represents the default Web site. Set IIsWebVDirRootObj = GetObject(&#8220;IIS://localhost/W3SVC/1/Root&#8221;) &#8216; Use the Windows ADSI container object &#8220;Create&#8221; method to create &#8216; a new virtual directory. Set IIsWebVDirObj = IIsWebVDirRootObj.Create(&#8220;IIsWebVirtualDir&#8221;, &#8220;NewVDir&#8221;) &#8216; Use the Windows ADSI object &#8220;Put&#8221; method to &#8216; set some required properties. [...]]]></description>
			<content:encoded><![CDATA[<div class="code">
<p class="code">&#8216; Create an instance of the virtual directory object<br />
&#8216; that represents the default Web site.<br />
Set IIsWebVDirRootObj = GetObject(&#8220;IIS://localhost/W3SVC/1/Root&#8221;)</p>
<p class="code">&#8216; Use the Windows ADSI container object &#8220;Create&#8221; method to create<br />
&#8216; a new virtual directory.<br />
Set IIsWebVDirObj = IIsWebVDirRootObj.Create(&#8220;IIsWebVirtualDir&#8221;, &#8220;NewVDir&#8221;)</p>
<p class="code">&#8216; Use the Windows ADSI object &#8220;Put&#8221; method to<br />
&#8216; set some required properties.<br />
IIsWebVDirObj.Put &#8220;Path&#8221;, &#8220;C:\NewContent&#8221;<br />
IIsWebVDirObj.Put &#8220;AccessRead&#8221;, True<br />
IIsWebVDirObj.Put &#8220;AccessScript&#8221;, True</p>
<p class="code">&#8216; Use the AppCreate2 method of the IIS ADSI provider to<br />
&#8216; create an application on the new virtual directory.<br />
IIsWebVDirObj.AppCreate2 1<br />
IIsWebVDirObj.Put &#8220;AppFriendlyName&#8221;, &#8220;NewApp&#8221;</p>
<p class="code">&#8216; Use the Windows ADSI object &#8220;SetInfo&#8221; method to<br />
&#8216; save the data to the metabase.<br />
IIsWebVDirObj.SetInfo</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.skowronek.org/2006/09/30/create-multiple-web-sites-on-xp-version-of-iis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting .NET DateTime to UNIX Timestamp</title>
		<link>http://www.skowronek.org/2006/08/22/converting-net-datetime-to-unix-timestamp/</link>
		<comments>http://www.skowronek.org/2006/08/22/converting-net-datetime-to-unix-timestamp/#comments</comments>
		<pubDate>Tue, 22 Aug 2006 21:36:17 +0000</pubDate>
		<dc:creator>Skowronek</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Snipits]]></category>

		<guid isPermaLink="false">http://www.skowronek.org/2006/08/22/converting-net-datetime-to-unix-timestamp/</guid>
		<description><![CDATA[Note to self: How to convert .NET DateTime to UNIX timestamp (as in PHP, etc.) int timestamp = (DateTime.UtcNow &#8211; new DateTime(1970,1,1,0,0,0)).TotalSeconds and convert a Unix timestamp to an ASP.NET DateTime value: DateTime date = (new DateTime(1970,1,1,0,0,0)).AddSeconds(datestamp)]]></description>
			<content:encoded><![CDATA[<div><em>Note to self:</em></div>
<div>How to convert .NET DateTime to UNIX timestamp (as in PHP, etc.)</div>
<div class="code">int timestamp = (DateTime.UtcNow &#8211; new DateTime(1970,1,1,0,0,0)).TotalSeconds</div>
<div>and convert a Unix timestamp to an ASP.NET DateTime value:</div>
<div class="code">DateTime date = (new DateTime(1970,1,1,0,0,0)).AddSeconds(datestamp)</div>
]]></content:encoded>
			<wfw:commentRss>http://www.skowronek.org/2006/08/22/converting-net-datetime-to-unix-timestamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

