<?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/"
	>

<channel>
	<title>TutorialsForU</title>
	<atom:link href="http://www.tutorialsforu.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tutorialsforu.com</link>
	<description>Blog where we can share our knowledge...</description>
	<pubDate>Thu, 01 Oct 2009 13:26:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting started with jQuery - Part 1</title>
		<link>http://www.tutorialsforu.com/?p=28</link>
		<comments>http://www.tutorialsforu.com/?p=28#comments</comments>
		<pubDate>Thu, 01 Oct 2009 13:26:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.tutorialsforu.com/?p=28</guid>
		<description><![CDATA[jQuery is the most popular JavaScript library, which provides useful set of features for DOM and Ajax related functionalities. Statistics from http://trends.builtwith.com/javascript/JQuery, explains how popular jQuery is.
The above diagram shows that ~34.21% of sites that use JavaScript are using jQuery. In this post, we will start learning jQuery with some basic usage.
Let us start with  [...]]]></description>
			<content:encoded><![CDATA[<p><a class="alignleft" title="jQuery" href="http://jquery.com/" target="_blank">jQuery</a> is the most popular JavaScript library, which provides useful set of features for DOM and Ajax related functionalities. Statistics from <a href="http://trends.builtwith.com/javascript/JQuery" target="_blank">http://trends.builtwith.com/javascript/JQuery</a>, explains how popular jQuery is.</p>
<div id="attachment_38" class="wp-caption aligncenter" style="width: 556px"><a href="http://trends.builtwith.com/javascript/JQuery"><img class="size-full wp-image-38" title="jQuery Usage" src="http://www.tutorialsforu.com/wp-content/uploads/2009/09/jqueryusage2.png" alt="jQuery Usage" width="546" height="334" /></a><p class="wp-caption-text">jQuery Usage</p></div>
<p>The above diagram shows that ~34.21% of sites that use JavaScript are using jQuery. In this post, we will start learning jQuery with some basic usage.</p>
<p>Let us start with  document.getElementById equivalent in jQuery. We can use the CSS selectors to select the DOM elements using jQuery. Suppose if we have an element with id &#8220;<strong>element1</strong>&#8220;, then in order to get the DOM object of the element, in core JavaScript we will use</p>
<pre lang="javascript" escaped="true">document.getElementById( "element1" )</pre>
<p>Using jQuery, we can select the above element using the below statement:</p>
<pre lang="javascript" escaped="true">$( '#element1' )</pre>
<p>In the above statement, <span style="color: #3366ff;"><strong>#</strong></span> represents that element1 is the ID. In the same way, we will use &#8220;<strong><span style="color: #3366ff;">.</span></strong>&#8221; to select elements by class name.  Suppose in our HTML document, we have few div, span and form elements whose has class &#8220;<span style="color: #3366ff;">sample-class</span>&#8220;. To select all the elements with class name &#8220;<span style="color: #3366ff;">sample-class</span>&#8220;, we can use</p>
<pre lang="javascript" escaped="true">document.getElementsByClassName( "sample-class" )</pre>
<p><em>The above method is not supported in Internet Explorer. </em>So, in Internet Explorer, we have to write our own method to get the elements with a particular class.</p>
<p>Using jQuery, we can get the elements with &#8220;<span style="color: #3366ff;">sample-class</span>&#8221; class using</p>
<pre lang="javascript" escaped="true">$( '.sample-class' )</pre>
<p>The above method works in all major browsers (IE, Firefox, Opera, Safari). So, another advantage of using jQuery is, it works in all major browsers.</p>
<p>Suppose that in a document some div and span elements have the class &#8220;<span style="color: #3366ff;">sample-class</span>&#8220;. If we need to get all the &#8220;div&#8221; elements with class &#8220;simple-class&#8221;, just use:</p>
<pre lang="javascript" escaped="true">$( 'div.sample-class' )</pre>
<p>and</p>
<pre lang="javascript" escaped="true">$( 'div' )</pre>
<p>returns all the div elements in the documents. To get all div elements, which has <strong>class</strong> attribute, use:</p>
<pre>$( 'div[class]' )
</pre>
<p>To get all the div elements, which has <strong>name</strong> attribute and attribute&#8217;s value is &#8220;SampleDIV&#8221;, use:</p>
<pre>$( 'div[name=SampleDiv]' )</pre>
<p>You can get more information about attributes from <a href="http://docs.jquery.com/Attributes" target="_blank">http://docs.jquery.com/Attributes</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tutorialsforu.com/?feed=rss2&amp;p=28</wfw:commentRss>
		</item>
		<item>
		<title>Installing Apache from sources</title>
		<link>http://www.tutorialsforu.com/?p=23</link>
		<comments>http://www.tutorialsforu.com/?p=23#comments</comments>
		<pubDate>Thu, 24 Sep 2009 12:23:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apache]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.tutorialsforu.com/?p=23</guid>
		<description><![CDATA[This tutorial will describe the procedures for installing Apache HTTPD server from sources in Linux environment.
Download the latest version of httpd sources from http://httpd.apache.org/.
Unzip the downloaded archive and use the commands given below to compile and install Apache httpd.
Unzip the archive using the command below:
If it is a zip file:
unzip &#60;&#60;downloaded zip filename&#62;&#62;
If it is [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial will describe the procedures for installing Apache HTTPD server from sources in Linux environment.</p>
<p>Download the latest version of httpd sources from <a class="wp-caption-dd" title="Download httpd" href="http://httpd.apache.org/download.cgi" target="_blank">http://httpd.apache.org/</a>.</p>
<p>Unzip the downloaded archive and use the commands given below to compile and install Apache httpd.</p>
<p>Unzip the archive using the command below:</p>
<p>If it is a zip file:</p>
<pre lang="bash" escaped="true">unzip &lt;&lt;downloaded zip filename&gt;&gt;</pre>
<p>If it is a tar.gz file:</p>
<pre lang="bash" escaped="true">tar -zxf &lt;&lt;downloaded zip filename&gt;&gt;</pre>
<p>If it is a tar.bz2 file:</p>
<pre lang="bash" escaped="true">tar -jxf &lt;&lt;downloaded zip filename&gt;&gt;</pre>
<p>Go to the extracted Apache httpd source directory using the command given below (From now onwards, the extracted httpd source directory name will be assumed as <strong>httpd</strong>):</p>
<pre lang="bash" escaped="true">cd httpd</pre>
<p>Now, in order to install Apache from sources, we need to compile the downloaded source. To compile the code, we will use the command configure.</p>
<pre lang="bash" escaped="true">./configure --prefix=/opt/server/apache --enable-so --enable-auth-digest --enable-rewrite=shared
--enable-setenvif=shared --enable-mime=shared --enable-deflate=shared --enable-ssl=shared
--with-ssl=/usr/include/openssl --enable-headers</pre>
<p>&#8220;./&#8221; at the beginning of the command says that we are executing the &#8220;configure&#8221; script in the current directory.</p>
<p>To have the support for OpenSSL, you may have to install openssl-devel library. To install OpenSSL devel, use the command specified below:</p>
<pre lang="bash" escaped="true">yum install -y curl curl-devel openssl openssl-devel</pre>
<p>To get the complete list of available options, use:</p>
<pre lang="bash" escaped="true">./configure --help</pre>
<p>After the compilation is completed, use the command below to install:</p>
<pre lang="bash" escaped="true">make &amp;&amp; make install</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tutorialsforu.com/?feed=rss2&amp;p=23</wfw:commentRss>
		</item>
	</channel>
</rss>
