<?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>WHO IS THIS?</title>
	<atom:link href="http://sivasrec.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sivasrec.wordpress.com</link>
	<description>Love, Respect, Knowledge - More you share, More you earn!</description>
	<lastBuildDate>Sat, 14 Aug 2010 15:56:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sivasrec.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/c2d5f900a34ef2f0555f25a593a0e61a?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>WHO IS THIS?</title>
		<link>http://sivasrec.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sivasrec.wordpress.com/osd.xml" title="WHO IS THIS?" />
	<atom:link rel='hub' href='http://sivasrec.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Output Caching</title>
		<link>http://sivasrec.wordpress.com/2009/09/22/output-caching/</link>
		<comments>http://sivasrec.wordpress.com/2009/09/22/output-caching/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 09:19:59 +0000</pubDate>
		<dc:creator>sivasrec</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://sivasrec.wordpress.com/?p=341</guid>
		<description><![CDATA[Output caching improves the performance of an ASP.NET application by caching the rendered markup of an ASP.NET web page and serving this content instead of re-rendering the page. For example, imagine that you had an ASP.NET page that displayed the records from a database table named Employees that listed the current employee information. Without caching, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=341&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Output caching improves the performance of an ASP.NET application by caching the rendered markup of an ASP.NET web page and serving this content instead of re-rendering the page. For example, imagine that you had an ASP.NET page that displayed the records from a database table named <code>Employees</code> that listed the current employee information. Without caching, each time this page is accessed a connection is made to the database, the table queried, and the results returned to the requesting client. But how often does the employee information change? Probably not more than once a day or so, making many of those requests to the database superfluous. With output caching, when this page is first visited the rendered HTML will be cached for a specified duration. During that time period, if a user requests this page, the cached markup will be returned, thereby saving the database access and page rendering costs.</p>
<p style="text-align:justify;">That&#8217;s output caching in a nutshell! To implement output caching, simply add the <code>&lt;% @OutputCache %&gt;</code> directive to the top of your page like so:</p>
<table border="0" width="95%">
<tbody>
<tr>
<td width="100%" bgcolor="#cccccc"><code>&lt;%@ Page ... %&gt;<br />
<strong>&lt;%@ OutputCache Duration="<em>duration</em>" VaryByParam="<em>paramList</em>" %&gt;</strong> </code></td>
</tr>
</tbody>
</table>
<p style="text-align:justify;"><em>duration</em> is the number of seconds for which the rendered markup remains in the cache. <em>paramList</em> is a list of parameters whose values vary the cache. For example, if the page that displays employees displays just those employees in a particular department as determined by a querystring parameter, then we want to vary the cache by this parameter. To be more precise, imagine that our employee page displays a particular department&#8217;s employees when visited like <code>ShowEmployees.aspx?DepartmentID=<em>departmentID</em></code>. If the cache is <strong>not</strong> varied by any parameter then when a user visits <code>ShowEmployees.aspx?DepartmentID=Sales</code>, the employees in the sales department will be returned and that markup will be cached. If within that cache duration a user visits <code>ShowEmployees.aspx?DepartmentID=IT</code>, they will still see the cached sales staff rather than the IT staff.</p>
<p style="text-align:justify;">To fix this, we simply need to instruct the output cache engine to vary its cache by the <code>DepartmentID</code> parameter:</p>
<table border="0" width="95%">
<tbody>
<tr>
<td width="100%" bgcolor="#cccccc"><code>&lt;%@ OutputCache Duration="<em>duration</em>" VaryByParam="<strong>DepartmentID</strong>" %&gt; </code></td>
</tr>
</tbody>
</table>
<p>To vary by <em>all</em> parameters, use an asterisk (<code>*</code>); to vary by no parameters, use &#8220;None&#8221;.</p>
<p><img class="alignnone size-full wp-image-342" title="output" src="http://sivasrec.files.wordpress.com/2009/09/output.jpg?w=469&#038;h=492" alt="output" width="469" height="492" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sivasrec.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sivasrec.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sivasrec.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sivasrec.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sivasrec.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sivasrec.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sivasrec.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sivasrec.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sivasrec.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sivasrec.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sivasrec.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sivasrec.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sivasrec.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sivasrec.wordpress.com/341/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=341&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sivasrec.wordpress.com/2009/09/22/output-caching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/201e9059830b198fef61b58446260bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sivasrec</media:title>
		</media:content>

		<media:content url="http://sivasrec.files.wordpress.com/2009/09/output.jpg" medium="image">
			<media:title type="html">output</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Farm Vs Web Gardens</title>
		<link>http://sivasrec.wordpress.com/2009/09/19/web-farm-vs-web-gardens/</link>
		<comments>http://sivasrec.wordpress.com/2009/09/19/web-farm-vs-web-gardens/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 12:39:57 +0000</pubDate>
		<dc:creator>sivasrec</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[web farm]]></category>
		<category><![CDATA[web garden]]></category>

		<guid isPermaLink="false">http://sivasrec.wordpress.com/?p=339</guid>
		<description><![CDATA[Web Farm A web farm is a multi-server scenario. So we may have a server in each state of US. If the load on one server is in excess then the other servers step in to bear the brunt. How they bear it is based on various models. 1. RoundRobin. (All servers share load equally) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=339&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Web Farm</strong></p>
<p>A web farm is a multi-server scenario. So we may have a server in each state of US. If the load on one server is in excess then the other servers step in to bear the brunt.<br />
How they bear it is based on various models.<br />
1. RoundRobin. (All servers share load equally)<br />
2. NLB (economical)<br />
3. HLB (expensive but can scale up to 8192 servers)<br />
4. Hybrid (of 2 and 3).<br />
5. CLB (Component <span style="text-decoration:underline;">load balancer</span>).</p>
<p><strong>How to implement webfarms in .Net:</strong></p>
<p style="text-align:justify;">Go to web.config and<br />
Here for mode = you have 4 options.<br />
a) Say mode=inproc (non web farm but fast when you have very few customers).<br />
b) Say mode=StateServer (for webfarm)<br />
c) Say mode=SqlServer (for webfarm)<br />
Whether to use option b or c depends on situation. StateServer is faster but SqlServer is more reliable and used for mission critical applications.</p>
<p style="text-align:justify;"><strong>Web Garden</strong></p>
<p style="text-align:justify;">A web garden is a multi-processor setup. i.e., a single server (not like the multi server above).</p>
<p><strong>How to use webgardens in .Net:</strong><br />
Go to web.config and<br />
Change the false to true. You have one more attribute that is related to webgarden in the same tag called cpuMask.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sivasrec.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sivasrec.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sivasrec.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sivasrec.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sivasrec.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sivasrec.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sivasrec.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sivasrec.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sivasrec.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sivasrec.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sivasrec.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sivasrec.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sivasrec.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sivasrec.wordpress.com/339/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=339&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sivasrec.wordpress.com/2009/09/19/web-farm-vs-web-gardens/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/201e9059830b198fef61b58446260bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sivasrec</media:title>
		</media:content>
	</item>
		<item>
		<title>Manifest</title>
		<link>http://sivasrec.wordpress.com/2009/09/19/manifest/</link>
		<comments>http://sivasrec.wordpress.com/2009/09/19/manifest/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 10:35:00 +0000</pubDate>
		<dc:creator>sivasrec</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[manifest]]></category>

		<guid isPermaLink="false">http://sivasrec.wordpress.com/?p=337</guid>
		<description><![CDATA[In .NET framework assembly metadata stored in manifest. Every assembly, whether static or dynamic, contains a collection of data that describes how the elements in the assembly relate to each other. The assembly manifest contains this assembly metadata. An assembly manifest contains all the metadata needed to specify the assembly&#8217;s version requirements and security identity, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=337&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In .NET framework assembly metadata stored in manifest.</p>
<p style="text-align:justify;">Every assembly, whether static or dynamic, contains a collection of data that describes how the elements in the assembly relate to each other. The assembly manifest contains this assembly metadata. An assembly manifest contains all the metadata needed to specify the assembly&#8217;s version requirements and security identity, and all metadata needed to define the scope of the assembly and resolve references to resources and classes. The assembly manifest can be stored in either a PE (Portable Executable) file (an .exe or .dll) with Microsoft intermediate language (MSIL) code or in a standalone PE file that contains only assembly manifest information.</p>
<p>The following illustration shows the different ways the manifest can be stored.</p>
<p><strong>Types of assemblies</strong></p>
<p><img src="http://i.msdn.microsoft.com/1w45z383.assemblytypes%28en-us,VS.71%29.gif" border="0" alt="" /></p>
<p><strong>Assembly Manifest Contents</strong></p>
<p>The following table shows the information contained in the assembly manifest. The first four items — the assembly name, version number, culture, and strong name information.</p>
<p><strong>Assembly name </strong> A text string specifying the assembly&#8217;s name.</p>
<p style="text-align:justify;"><strong>Version number </strong>A major and minor version number, and a revision and build number. The common language runtime uses these numbers to enforce version policy.</p>
<p style="text-align:justify;"><strong>Culture</strong> Information on the culture or language the assembly supports. This information should be used only to designate an assembly as a satellite assembly containing culture- or language-specific information. (An assembly with culture information is automatically assumed to be a satellite assembly.)</p>
<p style="text-align:justify;"><strong>Strong name information</strong> The public key from the publisher if the assembly has been given a strong name.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sivasrec.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sivasrec.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sivasrec.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sivasrec.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sivasrec.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sivasrec.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sivasrec.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sivasrec.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sivasrec.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sivasrec.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sivasrec.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sivasrec.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sivasrec.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sivasrec.wordpress.com/337/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=337&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sivasrec.wordpress.com/2009/09/19/manifest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/201e9059830b198fef61b58446260bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sivasrec</media:title>
		</media:content>

		<media:content url="http://i.msdn.microsoft.com/1w45z383.assemblytypes%28en-us,VS.71%29.gif" medium="image" />
	</item>
		<item>
		<title>What is Serialization, how its work in ASP.NET</title>
		<link>http://sivasrec.wordpress.com/2009/09/19/what-is-serialization-how-its-work-in-asp-net/</link>
		<comments>http://sivasrec.wordpress.com/2009/09/19/what-is-serialization-how-its-work-in-asp-net/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 08:32:44 +0000</pubDate>
		<dc:creator>sivasrec</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Serialization]]></category>

		<guid isPermaLink="false">http://sivasrec.wordpress.com/?p=335</guid>
		<description><![CDATA[Serialization is when you persist the state of an object to a storage medium so an exact copy can be re-created at a later stage. Serialization is used to save session state in ASP.NET. Serialization is to copy objects to the Clipboard in Windows Forms. Serialization is used by remoting to pass objects by value [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=335&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Serialization is when you persist the state of an object to a storage medium so an exact copy can be re-created at a later stage.</p>
<p>Serialization is used to save session state in <a id="Y8569529S5" style="color:#000fff;text-decoration:underline;" href="void(0);">ASP</a>.NET.</p>
<p>Serialization is to copy objects to the Clipboard in Windows Forms.</p>
<p>Serialization is used by remoting to pass objects by value from one application domain to another.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sivasrec.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sivasrec.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sivasrec.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sivasrec.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sivasrec.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sivasrec.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sivasrec.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sivasrec.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sivasrec.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sivasrec.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sivasrec.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sivasrec.wordpress.com/335/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sivasrec.wordpress.com/335/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sivasrec.wordpress.com/335/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=335&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sivasrec.wordpress.com/2009/09/19/what-is-serialization-how-its-work-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/201e9059830b198fef61b58446260bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sivasrec</media:title>
		</media:content>
	</item>
		<item>
		<title>What is FullTrust</title>
		<link>http://sivasrec.wordpress.com/2009/09/19/what-is-fulltrust/</link>
		<comments>http://sivasrec.wordpress.com/2009/09/19/what-is-fulltrust/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 08:15:31 +0000</pubDate>
		<dc:creator>sivasrec</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[full trust]]></category>

		<guid isPermaLink="false">http://sivasrec.wordpress.com/?p=333</guid>
		<description><![CDATA[Your code is allowed to do anything in the framework, meaning that all (.Net) permissions are granted. The GAC has FullTrust because it?s on the local HD, and that has FullTrust by default, you can change that using caspol.. GAC &#8211; Global Assembly Cache HD &#8211; High Definition Caspol &#8211; Code Access Security Policy Tool [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=333&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Your code is allowed to do anything in the framework, meaning that all (.Net) permissions are granted. The GAC has FullTrust because it?s on the local HD, and that has FullTrust by default, you can change that using caspol..</p>
<p style="text-align:justify;">GAC &#8211; Global Assembly Cache</p>
<p style="text-align:justify;">HD &#8211; High Definition</p>
<p style="text-align:justify;">Caspol &#8211; Code Access Security Policy Tool</p>
<p><strong>GLOBAL ASSEMBLY CATCHE</strong></p>
<p style="text-align:justify;">Each computer where the common language runtime is installed has a machine-wide code cache called the global assembly cache. The global assembly cache stores assemblies specifically designated to be shared by several applications on the computer.</p>
<p style="text-align:justify;"><strong>Caspol</strong></p>
<p style="text-align:justify;">The Code Access Security Policy tool (Caspol)  enables users and administrators to modify security policy for the machine policy level, the user policy level, and the enterprise policy level.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sivasrec.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sivasrec.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sivasrec.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sivasrec.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sivasrec.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sivasrec.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sivasrec.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sivasrec.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sivasrec.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sivasrec.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sivasrec.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sivasrec.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sivasrec.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sivasrec.wordpress.com/333/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=333&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sivasrec.wordpress.com/2009/09/19/what-is-fulltrust/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/201e9059830b198fef61b58446260bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sivasrec</media:title>
		</media:content>
	</item>
		<item>
		<title>What is mean by CLR</title>
		<link>http://sivasrec.wordpress.com/2009/09/19/what-is-mean-by-clr/</link>
		<comments>http://sivasrec.wordpress.com/2009/09/19/what-is-mean-by-clr/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 06:45:55 +0000</pubDate>
		<dc:creator>sivasrec</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[CLR]]></category>

		<guid isPermaLink="false">http://sivasrec.wordpress.com/2009/09/19/what-is-mean-by-clr/</guid>
		<description><![CDATA[The Common Language Runtime, popularly known as CLR, is the heart and soul of the .NET Framework.Before explaining CLR, Let&#8217;s understand runtime? what is mean by runtime? A runtime is a component, which a computer must have in order to execute programs written in a particular programming language.The runtime of a language provides the basic [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=330&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">The Common Language Runtime, popularly known as CLR, is the heart and soul of the .NET Framework.Before explaining CLR, Let&#8217;s understand runtime?</p>
<p>what is mean by runtime?</p>
<p style="text-align:justify;">A runtime is a component, which a computer must have in order to execute programs written in a particular programming language.The runtime of a language provides the basic features, needed by the programs written in that language to execute successfully.</p>
<p style="text-align:justify;">For example, to execute a program written in Visual C#, the machine executing program must have Visual C# runtime installed in it. This requirement of different runtimes for different programming languages made the task of the programmer very tough. The developer could not share the code written in different programming languages.</p>
<p style="text-align:justify;">The .NET CLR offers the solution to this providing a single runtime environment for multiple languages.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sivasrec.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sivasrec.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sivasrec.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sivasrec.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sivasrec.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sivasrec.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sivasrec.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sivasrec.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sivasrec.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sivasrec.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sivasrec.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sivasrec.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sivasrec.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sivasrec.wordpress.com/330/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=330&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sivasrec.wordpress.com/2009/09/19/what-is-mean-by-clr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/201e9059830b198fef61b58446260bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sivasrec</media:title>
		</media:content>
	</item>
		<item>
		<title>Sharepoint Project</title>
		<link>http://sivasrec.wordpress.com/2009/09/09/sharepoint-project/</link>
		<comments>http://sivasrec.wordpress.com/2009/09/09/sharepoint-project/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 11:51:06 +0000</pubDate>
		<dc:creator>sivasrec</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[EventHandler]]></category>

		<guid isPermaLink="false">http://sivasrec.wordpress.com/?p=322</guid>
		<description><![CDATA[An EventHandler to fire when a new wiki page is created Problem This project creates a Eventhandler in .net to fire on sharepoint site when we create a wiki page on the site. That Eventhanlder has to create two folders on that site with the name of the page 1.under shared documents 2.under Images (if [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=322&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>An EventHandler to fire when a new wiki page is created</strong></p>
<p><strong>Problem</strong></p>
<p style="text-align:justify;">This project creates a Eventhandler in .net to fire on sharepoint site when we create a wiki page on the site. That Eventhanlder has to create two folders on that site with the name of the page<br />
1.under shared documents<br />
2.under Images (if exists) ..picture library.</p>
<p><strong>Requirements:</strong></p>
<p><strong>Development Machine Requirements</strong><br />
1. Windows Server 2003 OS<br />
2. WSS 3.0 or MOSS.<br />
3. Dotnet installed on the system VS2005 or above The Downloadable version comes for VS2008<br />
<strong>Client Side Requirements</strong><br />
1. Dotnet Framework 2.0 or above in which the application is made<br />
2. WSS3.0 or MOSS</p>
<p><strong>Solution</strong><br />
Now lets start developing the application<br />
1. Create a class library project from VS 2005/2008 with the name &#8220;WikiEventHanlder&#8221;. You can even use any name of your choice I am using this for my example.<br />
2. Rename the class as &#8220;WikiEvent.cs&#8221; .<br />
3. Add sharepoint refernce to the project (Microsoft.Sharepoint)<br />
4. Add following code to .&#8221;WikiEvent.cs&#8221;. in this we inherit the class with &#8220;IListEventSink&#8221; class</p>
<p><strong>Coding</strong></p>
<p>using System;<br />
using System.IO;<br />
using System.Xml;<br />
using System.Xml.XPath;<br />
using System.Configuration;<br />
using System.Security.Principal;<br />
using System.Runtime.InteropServices;<br />
using Microsoft.SharePoint;</p>
<p>namespace WikiEventHanlder<br />
{<br />
///<br />
/// Summary description for Class1.<br />
///</p>
<p>public class WikiEvent: IListEventSink<br />
{<br />
#region IListEventSink Members</p>
<p>public void OnEvent(SPListEvent listEvent)<br />
{<br />
//Open the current context site<br />
SPWeb myWeb = listEvent.Site.OpenWeb();<br />
//Get  the target Event hanlder source name as file name<br />
SPFile fileItem = myWeb.GetFile(listEvent.UrlAfter);</p>
<p>//get the folder structure of the source<br />
SPFolder folderItem = myWeb.GetFolder(listEvent.UrlAfter);</p>
<p>//assign a delimiter to get the target url to add the folders<br />
string delimiter = &#8220;/&#8221;;<br />
//get the collection atleast 10 of folder names under the parent folder of the source of the event i.e wiki pages library<br />
string[] subFolder = folderItem.ParentFolder.Url.Split(delimiter.ToCharArray(), 10);<br />
//get all folders of the site<br />
SPFolderCollection folders= myWeb.Folders;<br />
SPFolder targetfolder=null,targetFolder1=null;<br />
//Get the page name of the created page<br />
string pageName = fileItem.Name;<br />
//remove .aspx from the name<br />
int index=pageName.IndexOf(&#8220;.aspx&#8221;);<br />
pageName = pageName.Remove(index, 5);<br />
pageName = pageName.Trim();</p>
<p>//traverse to Shared documents folder<br />
foreach (SPFolder folder in folders)<br />
{<br />
if (folder.Name == &#8220;Shared Documents&#8221;)<br />
{<br />
targetfolder = folder;<br />
break;<br />
}<br />
}<br />
//traverse to Images folder<br />
foreach (SPFolder folder in folders)<br />
{<br />
if (folder.Name == &#8220;Images1&#8243;)<br />
{<br />
targetFolder1 = folder;<br />
break;<br />
}<br />
}<br />
//create the folders under them<br />
switch(listEvent.Type.ToString())<br />
{<br />
case &#8220;Update&#8221;:<br />
if (subFolder.Length &lt; 2)<br />
{<br />
create_folders(listEvent, myWeb, targetfolder, pageName);<br />
create_folders(listEvent, myWeb, targetFolder1, pageName);<br />
}<br />
break;</p>
<p>default:       break;<br />
}<br />
}</p>
<p>#endregion<br />
/* creates the folder for the<br />
* list Event on the current myWeb and under folderItem with name pageName*/<br />
private void create_folders(SPListEvent listEvent,<br />
SPWeb myWeb,<br />
SPFolder folderItem ,<br />
string pageName)<br />
{<br />
SPFolder tempFolder=folderItem.SubFolders.Add(pageName);<br />
}<br />
}<br />
}</p>
<p>5. Strong name the project by going to project properties-&gt;signing<br />
6. Compile the project .<br />
7. Add the dll to GAC.<br />
* By dragging and dropping the dll to C:\WINDOWS\assembly<br />
(or)<br />
* using the command at Visual studio command prompt<br />
GACUTIL.exe /i [path]/WikiEventHanlder.dll /f .<br />
8. Go to Sharepoint Central Adminsitration(start-&gt;settings-&gt;control panel-&gt;adminstrative tools) and<br />
* goto Application Management &gt; Web Application General Settings<br />
* select the site collection you require and godown to Backward- Compatible Event Handlerssection and make it &#8220;on&#8221;<br />
* Refer figure1 and Figure2 for help.<br />
9. Browse to your site and goto the WikiPage site.<br />
10. Goto the Page library named as &#8220;Wiki Pages&#8221;,click on Settings then move to Document Library settings<br />
in that goto Advanced settings section and move to Backward-Compatible Event Handler section .<br />
11. In this page add details of the assembly inthe assembly name text box as</p>
<p><span style="color:#0000ff;">WikiEventHanlder,Version=1.0.0.0,Culture=neutral,PublicKeyToken=5b283fb82a61470c</span></p>
<p>In the above line take the public key token value from GAC by right clicking on the assembly or dll(browse to C:\WINDOWS\assembly for the dll)</p>
<p>12. In the class name box enter,</p>
<p><span style="color:#0000ff;">WikiEventHanlder.WikiEvent</span></p>
<p>Refer figure3 for the above steps 11,12</p>
<p>13. click on OK button,if your assembly has any errors then error will be given otherwise you will be moved to the settings page back.<br />
14. Now goto the Wiki Pages and create a page with any name(lets say samplePage) this will automatically creates one folder under Shared Documents with name &#8220;samplePage&#8221; another under Images(if exists) with same name as &#8220;samplePage&#8221;.<br />
15. Goto Shared Documents, Images and check the folders created.</p>
<p><strong>Attachments</strong></p>
<p><strong>figure 1<br />
</strong></p>
<p><img class="alignnone size-full wp-image-323" title="figure1" src="http://sivasrec.files.wordpress.com/2009/09/figure1.jpg?w=75&#038;h=75" alt="figure1" width="75" height="75" /></p>
<p><span style="color:#0000ff;"><strong><span style="color:#000000;">figure 2</span></strong></span></p>
<p><span style="color:#0000ff;"><strong><span style="color:#000000;"><img class="alignnone size-full wp-image-324" title="figure2" src="http://sivasrec.files.wordpress.com/2009/09/figure2.jpg?w=75&#038;h=75" alt="figure2" width="75" height="75" /></span></strong></span></p>
<p><span style="color:#0000ff;"><strong><span style="color:#000000;">figure 3<br />
</span></strong></span></p>
<p><img class="alignnone size-full wp-image-325" title="figure3" src="http://sivasrec.files.wordpress.com/2009/09/figure3.jpg?w=75&#038;h=75" alt="figure3" width="75" height="75" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sivasrec.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sivasrec.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sivasrec.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sivasrec.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sivasrec.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sivasrec.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sivasrec.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sivasrec.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sivasrec.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sivasrec.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sivasrec.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sivasrec.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sivasrec.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sivasrec.wordpress.com/322/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=322&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sivasrec.wordpress.com/2009/09/09/sharepoint-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/201e9059830b198fef61b58446260bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sivasrec</media:title>
		</media:content>

		<media:content url="http://sivasrec.files.wordpress.com/2009/09/figure1.jpg" medium="image">
			<media:title type="html">figure1</media:title>
		</media:content>

		<media:content url="http://sivasrec.files.wordpress.com/2009/09/figure2.jpg" medium="image">
			<media:title type="html">figure2</media:title>
		</media:content>

		<media:content url="http://sivasrec.files.wordpress.com/2009/09/figure3.jpg" medium="image">
			<media:title type="html">figure3</media:title>
		</media:content>
	</item>
		<item>
		<title>Regular Expression</title>
		<link>http://sivasrec.wordpress.com/2009/09/07/regular-expression/</link>
		<comments>http://sivasrec.wordpress.com/2009/09/07/regular-expression/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 11:46:16 +0000</pubDate>
		<dc:creator>sivasrec</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Regex]]></category>

		<guid isPermaLink="false">http://sivasrec.wordpress.com/?p=316</guid>
		<description><![CDATA[ Regular expressions are a powerful language for describing and  manipulating text. The result of applying a regular expression to a string is either to return a substring, or to return a new string representing a modification of some part of the original string. EX: One,Two,Three Liberty Associates, Inc. you can return any or all of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=316&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> Regular expressions are a powerful language for describing and  manipulating text.</p>
<p style="text-align:justify;">The result of applying a regular expression to a string is either to return a substring, or to return a new string representing a modification of some part of the original string.</p>
<p><strong>EX:</strong></p>
<p>One,Two,Three Liberty Associates, Inc.</p>
<p style="text-align:justify;">you can return any or all of its substrings (e.g.,Liberty  or One ), or modified versions of its substrings (e.g., LIBeRtY  or OnE ).</p>
<p>A regular expression consists of two types of characters:</p>
<p>1.Literals</p>
<p>2. Metacharacters.</p>
<p style="text-align:justify;">A literal is just a character you wish to match in the target string. A metacharacter is a special symbol which acts as a command to the regular expression parser.</p>
<p style="text-align:justify;"><strong>Using Regex</strong></p>
<p style="text-align:justify;">The Base Class Library namespace <span style="color:#0000ff;">S</span><span style="color:#0000ff;"><span style="color:#0000ff;">y</span>stem.Text.RegularExpressions  <span style="color:#000000;">i</span></span>s the home to all the .NET Framework objects associated with regular expressions. The central class for regular expression support is  Regex , which represents an immutable, compiled regular expression.</p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Text.RegularExpressions;</p>
<p>namespace regular<br />
{<br />
    class Program<br />
    {<br />
        static void Main(string[] args)<br />
        {<br />
            string s = &#8220;one, two three welcome india&#8221;;<br />
            Regex r = new Regex(&#8221; |, &#8220;);            <br />
           <br />
          foreach (string a in r.Split(s))<br />
             {<br />
                 Console.WriteLine(a);      </p>
<p>             }<br />
            Console.ReadLine();<br />
        }<br />
    }<br />
}</p>
<p><strong>Output:</strong> </p>
<p>one</p>
<p>two</p>
<p>three</p>
<p>welcome</p>
<p>india</p>
<p style="text-align:justify;"><strong>Using Regex Match Collections</strong></p>
<p style="text-align:justify;">Two additional classes in the .NET RegularExpressions  namespace allow you to search a string repeatedly, and to return the results in a collection. The collection returned is of type MatchCollection , which consists of zero or more Match  objects. </p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Text.RegularExpressions;</p>
<p>namespace regular<br />
{<br />
    class Program<br />
    {<br />
        static void Main(string[] args)<br />
        {<br />
            string s = &#8220;This is a test sample&#8221;;<br />
            Regex r = new Regex(@&#8221;(\S+)\s&#8221;);</p>
<p>            MatchCollection m = r.Matches(s);</p>
<p>           foreach (Match theMatch in m)</p>
<p>            {</p>
<p>                Console.WriteLine(theMatch);    </p>
<p>             }<br />
            Console.ReadLine();<br />
        }<br />
    }<br />
<strong>Explanation:</strong></p>
<p>The string \S  finds nonwhitespace, and the plus sign indicates one or more. The string \s  (note lowercase) indicates whitespace. Thus, together, this string looks for any nonwhitespace characters followed by whitespace.<strong> </strong></p>
<p style="text-align:justify;"><strong>Output:</strong></p>
<p style="text-align:justify;">This</p>
<p style="text-align:justify;">is<strong> </strong></p>
<p style="text-align:justify;">a</p>
<p style="text-align:justify;">test</p>
<p style="text-align:justify;">The output shows that the first four words were found. The final word was not found because it is not followed by a space. If you insert a space after the word string  and before the closing quote marks, this program will find that word as well. </p>
<p style="text-align:justify;"><strong>Using Regex Groups</strong></p>
<p style="text-align:justify;">The Group  class allows you to create groups of matches based on regular expression syntax, and represents the results from a single grouping expression. <br />
A grouping expression names a group and provides a regular expression; any substring matching the regular expression will be added to the group.</p>
<p style="text-align:justify;">For example, to create an ip  group you might  write: <br />
@&#8221;(?&lt;ip&gt;(\d|\.)+)\s&#8221;   </p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Text.RegularExpressions;</p>
<p>namespace regular<br />
{<br />
    class Program<br />
    {<br />
        static void Main(string[] args)<br />
        {<br />
            string s = &#8220;04:03:37 123.0.0.0 sivasrec.com &#8220;;</p>
<p>            Regex r = new Regex(@&#8221;(?&lt;time&gt;(\d|\:)+)\s&#8221; + @&#8221;(?&lt;ip&gt;(\d|\.)+)\s&#8221; + @&#8221;(?&lt;site&gt;\S+)&#8221;);</p>
<p>            MatchCollection m = r.Matches(s);<br />
            foreach (Match theMatch in m)</p>
<p>            {<br />
                if (theMatch.Length != 0)<br />
                {<br />
                    Console.WriteLine(&#8220;\ntheMatch: {0}&#8221; , theMatch.ToString()); </p>
<p>                    Console.WriteLine(&#8220;time: {0}&#8221;, theMatch.Groups["time" ]); </p>
<p>                    Console.WriteLine(&#8220;ip: {0}&#8221;, theMatch.Groups["ip" ]); </p>
<p>                    Console.WriteLine(&#8220;site: {0}&#8221;, theMatch.Groups["site" ]);</p>
<p>                 }</p>
<p>            }             <br />
            Console.ReadLine();<br />
        }<br />
    }<br />
} </p>
<p><strong>Explanation:</strong></p>
<p style="text-align:justify;">(?&lt;time&gt;<br />
The parentheses create a group. Everything between the opening parenthesis (just before the question mark) and the closing parenthesis (in this case, after the +  sign) is a single unnamed group. </p>
<p style="text-align:justify;">(@&#8221;(?&lt;time&gt;(\d|\:)+)<br />
The string  ?&lt;time&gt;  names that group  time  and the group is associated with the matching text, the  regular expression (\d|\:)+)\s&#8221; . This regular expression can be interpreted as &#8220;one or more digits  or colons followed by a space.&#8221; </p>
<p style="text-align:justify;"><strong>Output:</strong> </p>
<p>the match : 04:03:37 123.0.0.0 sivasrec.com</p>
<p>time: 04:03:37</p>
<p>ip : 123.0.0.0</p>
<p>site : sivasrec.com</p>
<p> </p>
<p> </p>
<p> </p>
<p><span style="font-size:x-small;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sivasrec.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sivasrec.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sivasrec.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sivasrec.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sivasrec.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sivasrec.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sivasrec.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sivasrec.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sivasrec.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sivasrec.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sivasrec.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sivasrec.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sivasrec.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sivasrec.wordpress.com/316/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=316&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sivasrec.wordpress.com/2009/09/07/regular-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/201e9059830b198fef61b58446260bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sivasrec</media:title>
		</media:content>
	</item>
		<item>
		<title>document.getElementById function</title>
		<link>http://sivasrec.wordpress.com/2009/08/27/document-getelementbyid-function/</link>
		<comments>http://sivasrec.wordpress.com/2009/08/27/document-getelementbyid-function/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 12:56:44 +0000</pubDate>
		<dc:creator>sivasrec</dc:creator>
				<category><![CDATA[Java Script]]></category>
		<category><![CDATA[document.getElementById]]></category>

		<guid isPermaLink="false">http://sivasrec.wordpress.com/?p=305</guid>
		<description><![CDATA[Have you ever tried to use JavaScript to do some form validation? Did you have any trouble using JavaScript to grab the value of your text field? There&#8217;s an easy way to access any HTML element, and it&#8217;s through the use of id attributes and the getElementById function. If you want to quickly access the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=305&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Have you ever tried to use JavaScript to do some form validation? Did you have any trouble using JavaScript to grab the value of your text field? There&#8217;s an easy way to access any HTML element, and it&#8217;s through the use of id attributes and the getElementById function.</p>
<p>If you want to quickly access the value of an HTML input give it an id to make your life a lot easier. This small script below will check to see if there is any text in the text field &#8220;myText&#8221;. The argument that getElementById requires is the id of the HTML element you wish to utilize.</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function ad()<br />
{<br />
var m=document.getElementById(&#8220;my&#8221;);<br />
if(m.value!=&#8221;")<br />
{<br />
alert(&#8220;enter:&#8221;+m.value)<br />
}<br />
else<br />
{<br />
alert(&#8220;type value&#8221;)<br />
}<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;</p>
<p>&lt;body&gt;<br />
&lt;input type=&#8221;text&#8221; id=&#8221;my&#8221;/&gt;<br />
&lt;input type=&#8221;button&#8221; onclick=&#8221;ad()&#8221; value=&#8221;enter&#8221;/&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p style="text-align:justify;">document.getElementById returned a reference to our HTML element myText. We stored this reference into a variable, myTextField, and then used the value property that all input elements have to use to grab the value the user enters.</p>
<p>There are other ways to accomplish what the above script does, but this is definitely a straight-forward and browser-compatible approach.</p>
<p><strong>Things to Remember About getElementById<br />
</strong><br />
When using the getElementById function, you need to remember a few things to ensure that everything goes smoothly. You always need to remember that getElementById is a method (or function) of the document object. This means you can only access it by using document.getElementById.</p>
<p>Also, be sure that you set your HTML elements&#8217; id attributes if you want to be able to use this function. Without an id, you&#8217;ll be dead in the water.</p>
<p>If you want to access the text within a non-input HTML element, then you are going to have to use the innerHTML property instead of value. The next lesson goes into more detail about the uses of innerHTML.</p>
<p style="text-align:justify;"><strong>Output</strong></p>
<p style="text-align:justify;"><img class="alignnone size-full wp-image-306" title="doc1" src="http://sivasrec.files.wordpress.com/2009/08/doc1.jpg?w=218&#038;h=42" alt="doc1" width="218" height="42" /></p>
<p style="text-align:justify;">Click On enter <strong>button</strong></p>
<p style="text-align:justify;"><strong><img class="alignnone size-full wp-image-307" title="doc2" src="http://sivasrec.files.wordpress.com/2009/08/doc2.jpg?w=403&#038;h=198" alt="doc2" width="403" height="198" /></strong></p>
<p style="text-align:justify;">Enter value in text box</p>
<p style="text-align:justify;"><strong><img class="alignnone size-full wp-image-309" title="doc3" src="http://sivasrec.files.wordpress.com/2009/08/doc31.jpg?w=357&#038;h=199" alt="doc3" width="357" height="199" /><br />
</strong></p>
<p style="text-align:justify;"><strong><br />
</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sivasrec.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sivasrec.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sivasrec.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sivasrec.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sivasrec.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sivasrec.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sivasrec.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sivasrec.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sivasrec.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sivasrec.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sivasrec.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sivasrec.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sivasrec.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sivasrec.wordpress.com/305/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=305&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sivasrec.wordpress.com/2009/08/27/document-getelementbyid-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/201e9059830b198fef61b58446260bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sivasrec</media:title>
		</media:content>

		<media:content url="http://sivasrec.files.wordpress.com/2009/08/doc1.jpg" medium="image">
			<media:title type="html">doc1</media:title>
		</media:content>

		<media:content url="http://sivasrec.files.wordpress.com/2009/08/doc2.jpg" medium="image">
			<media:title type="html">doc2</media:title>
		</media:content>

		<media:content url="http://sivasrec.files.wordpress.com/2009/08/doc31.jpg" medium="image">
			<media:title type="html">doc3</media:title>
		</media:content>
	</item>
		<item>
		<title>Java Script &#8211; Browser</title>
		<link>http://sivasrec.wordpress.com/2009/08/27/java-script-browser/</link>
		<comments>http://sivasrec.wordpress.com/2009/08/27/java-script-browser/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 12:37:39 +0000</pubDate>
		<dc:creator>sivasrec</dc:creator>
				<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Navigator]]></category>

		<guid isPermaLink="false">http://sivasrec.wordpress.com/?p=302</guid>
		<description><![CDATA[JavaScript includes an object called the Navigator object, that can be used for this purpose. The Navigator object contains information about the visitor&#8217;s browser name, version, and more. The Navigator Object The JavaScript Navigator object contains all information about the visitor&#8217;s browser. We are going to look at two properties of the Navigator object: * [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=302&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>JavaScript includes an object called the Navigator object, that can be used for this purpose.</p>
<p>The Navigator object contains information about the visitor&#8217;s browser name, version, and more.</p>
<p><strong>The Navigator Object</strong></p>
<p>The JavaScript Navigator object contains all information about the visitor&#8217;s browser. We are going to look at two properties of the Navigator object:</p>
<p>* appName &#8211; holds the name of the browser<br />
* appVersion &#8211; holds, among other things, the version of the browser</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
var name=navigator.appName;<br />
var id=navigator.appVersion;<br />
var v=parseFloat(id);<br />
document.write(&#8220;browser:&#8221;+name);<br />
document.write(&#8220;&lt;br/&gt;&#8221;);<br />
document.write(&#8220;ver:&#8221;+v);<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;/html&gt;</p>
<p style="text-align:justify;">The variable browser in the example above holds the name of the browser, i.e. &#8220;Netscape&#8221; or &#8220;Microsoft Internet Explorer&#8221;.</p>
<p>The appVersion property in the example above returns a string that contains much more information than just the version number, but for now we are only interested in the version number. To pull the version number out of the string we are using a function called parseFloat(), which pulls the first thing that looks like a decimal number out of a string and returns it.</p>
<p>IMPORTANT! The version number is WRONG in IE 5.0 or later! Microsoft starts the appVersion string with the number 4.0. in IE 5.0 and IE 6.0!!! Why did they do that??? However, JavaScript is the same in IE6, IE5 and IE4, so for most scripts it is ok.</p>
<p style="text-align:justify;"><strong>Output</strong></p>
<p style="text-align:justify;">browser: Netscape<br />
ver: 5.0</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sivasrec.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sivasrec.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sivasrec.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sivasrec.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sivasrec.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sivasrec.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sivasrec.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sivasrec.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sivasrec.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sivasrec.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sivasrec.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sivasrec.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sivasrec.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sivasrec.wordpress.com/302/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sivasrec.wordpress.com&amp;blog=7904856&amp;post=302&amp;subd=sivasrec&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sivasrec.wordpress.com/2009/08/27/java-script-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/201e9059830b198fef61b58446260bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sivasrec</media:title>
		</media:content>
	</item>
	</channel>
</rss>
