<?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>GuyFromChennai</title>
	<atom:link href="http://www.guyfromchennai.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.guyfromchennai.com</link>
	<description>Blog of a Web Craftsman</description>
	<lastBuildDate>Mon, 15 Mar 2010 04:18:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Snippet to Dynamically add rows to a table</title>
		<link>http://www.guyfromchennai.com/?p=146</link>
		<comments>http://www.guyfromchennai.com/?p=146#comments</comments>
		<pubDate>Fri, 08 Jan 2010 11:20:16 +0000</pubDate>
		<dc:creator>Kumar S</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[TechBits]]></category>

		<guid isPermaLink="false">http://www.guyfromchennai.com/?p=146</guid>
		<description><![CDATA[Snippet to Dynamically add rows to a table]]></description>
			<content:encoded><![CDATA[<p>This code snippet will help you to add rows dynamically in a html table.</p>
<p><code><br />
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br />
"http://www.w3.org/TR/html4/loose.dtd"&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Insert Table Row using DOM&lt;/title&gt;<br />
&lt;script language="javascript"&gt;<br />
function addRow()<br />
{<br />
var tbody = document.getElementById("table1").getElementsByTagName("tbody")[0];<br />
var row = document.createElement("TR");<br />
var cell1 = document.createElement("TD");<br />
var inp1 =  document.createElement("INPUT");<br />
inp1.setAttribute("type","text");<br />
inp1.setAttribute("value","New row");<br />
cell1.appendChild(inp1);<br />
var cell2 = document.createElement("TD");<br />
cell2.innerHTML = "label3";<br />
var cell3 = document.createElement("TD");<br />
cell3.innerHTML = "label4";<br />
row.appendChild(cell1);<br />
row.appendChild(cell2);<br />
row.appendChild(cell3);<br />
tbody.appendChild(row);<br />
//alert(row.innerHTML);<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;tableid="table1"&gt;<br />
&lt;tbody&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;inputtype=textvalue="Original Row"&gt;&lt;/td&gt;<br />
&lt;td&gt;label1&lt;/td&gt;<br />
&lt;td&gt; label2&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/tbody&gt;<br />
&lt;/table&gt;<br />
&lt;inputtype="button"value="Insert Row"onClick= "addRow();"&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
</code></p>
<p>Most of the code is self explanatory, so am leaving it unexplained. If anybody needs help, post your questions, will help you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyfromchennai.com/?feed=rss2&amp;p=146</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Get computed Width of an HTML Element</title>
		<link>http://www.guyfromchennai.com/?p=143</link>
		<comments>http://www.guyfromchennai.com/?p=143#comments</comments>
		<pubDate>Fri, 08 Jan 2010 11:09:35 +0000</pubDate>
		<dc:creator>Kumar S</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[TechBits]]></category>

		<guid isPermaLink="false">http://www.guyfromchennai.com/?p=143</guid>
		<description><![CDATA[Get computed Width of an HTML Element ]]></description>
			<content:encoded><![CDATA[<p>This function will help you to get the computed width(actual width) of an HTML Element/Object. For example you may be using a div to show some contents inside that. But want to calculate the actual width of the div after loading the contents inside it. There comes this function to help you.<br />
<code>function getComputedWidth(theElt){<br />
var browserName=navigator.appName;<br />
if (browserName=="Microsoft Internet Explorer"){<br />
var is_ie=true;<br />
} else {<br />
var is_ie=false;<br />
}<br />
if(is_ie){<br />
tmphght = document.getElementById(theElt).offsetWidth;<br />
}<br />
else{<br />
docObj = document.getElementById(theElt);<br />
var tmphght1 = document.defaultView.getComputedStyle(docObj, "").getPropertyValue("width");<br />
tmphght = tmphght1.split('px');<br />
tmphght = tmphght[0];<br />
}<br />
return tmphght;<br />
}<br />
&lt; div id="demo" onclick="alert(getComputedWidth('demo'));"&gt;hello there&lt; /div&gt;</code></p>
<p>To know the computed height of an element see <a class="wp-caption" href="http://www.guyfromchennai.com/?p=139" target="_self">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyfromchennai.com/?feed=rss2&amp;p=143</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Get computed Height of an HTML Element</title>
		<link>http://www.guyfromchennai.com/?p=139</link>
		<comments>http://www.guyfromchennai.com/?p=139#comments</comments>
		<pubDate>Fri, 08 Jan 2010 10:56:30 +0000</pubDate>
		<dc:creator>Kumar S</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[TechBits]]></category>

		<guid isPermaLink="false">http://www.guyfromchennai.com/?p=139</guid>
		<description><![CDATA[Get computed Height of an HTML Element,]]></description>
			<content:encoded><![CDATA[<p>This function will help you to get the computed height (actual height) of an HTML Element/Object. For example you may be using a div to show some contents inside that. But want to calculate the actual height of the <strong>div</strong> after loading the contents inside it. There comes this function to help you.</p>
<p><code><br />
function getComputedHeight(theElt){<br />
var browserName=navigator.appName;<br />
if (browserName=="Microsoft Internet Explorer"){<br />
var is_ie=true;<br />
} else {<br />
var is_ie=false;<br />
}<br />
if(is_ie){<br />
tmphght = document.getElementById(theElt).offsetHeight;<br />
}<br />
else{<br />
docObj = document.getElementById(theElt);<br />
var tmphght1 = document.defaultView.getComputedStyle(docObj, "").getPropertyValue("height");<br />
tmphght = tmphght1.split('px');<br />
tmphght = tmphght[0];<br />
}<br />
return tmphght;<br />
}<br />
</code></p>
<p>&lt; div id=&#8221;demo&#8221; onclick=&#8221;alert(getComputedHeight(&#8216;demo&#8217;));&#8221;&gt;  hello there&lt; /div&gt;<br />
Thanks to <a class="wp-caption" href="http://www.bytemycode.com/members/member/richard123/" target="_blank">Richard A</a> who made the code complete to run as a demo.</p>
<p>To know the computed width of an element see <a class="wp-caption-dd" href="http://www.guyfromchennai.com/?p=143" target="_self">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyfromchennai.com/?feed=rss2&amp;p=139</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Structured Process of Developing a Web Application</title>
		<link>http://www.guyfromchennai.com/?p=134</link>
		<comments>http://www.guyfromchennai.com/?p=134#comments</comments>
		<pubDate>Thu, 07 Jan 2010 04:16:54 +0000</pubDate>
		<dc:creator>Kumar S</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Presentations]]></category>
		<category><![CDATA[Webservice]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://www.guyfromchennai.com/?p=134</guid>
		<description><![CDATA[A small presentation that will help the beginners to understand the process of developing a Web application or website]]></description>
			<content:encoded><![CDATA[<p>A small presentation that will help the beginners to understand the process of developing a Web application.<br />
I did this presentation for the my Team @ Office to give them the idea of the whole process. </p>
<p><object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_462076308636775" name="doc_462076308636775" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle"	height="500" width="100%" ><param name="movie"	value="http://d1.scribdassets.com/ScribdViewer.swf?document_id=24799413&#038;access_key=key-10jryypey083nq1tcs4y&#038;page=1&#038;version=1&#038;viewMode=slideshow"></param><param name="quality" value="high"></param><param name="play" value="true"></param><param name="loop" value="true"></param><param name="scale" value="showall"></param><param name="wmode" value="opaque"></param><param name="devicefont" value="false"></param><param name="bgcolor" value="#ffffff"></param><param name="menu" value="true"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><param name="salign" value=""></param><param name="mode" value="slideshow"><embed src="http://d1.scribdassets.com/ScribdViewer.swf?document_id=24799413&#038;access_key=key-10jryypey083nq1tcs4y&#038;page=1&#038;version=1&#038;viewMode=slideshow" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_462076308636775_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" mode="slideshow" height="500" width="100%"></embed></param></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyfromchennai.com/?feed=rss2&amp;p=134</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advanced Techniques in PHP &#8211; Part 1</title>
		<link>http://www.guyfromchennai.com/?p=131</link>
		<comments>http://www.guyfromchennai.com/?p=131#comments</comments>
		<pubDate>Thu, 07 Jan 2010 04:05:53 +0000</pubDate>
		<dc:creator>Kumar S</dc:creator>
				<category><![CDATA[OOPS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Presentations]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[Backtracing]]></category>
		<category><![CDATA[Method Chaining]]></category>

		<guid isPermaLink="false">http://www.guyfromchennai.com/?p=131</guid>
		<description><![CDATA[Backtracing in PHP, Method Chaining in PHP, Object Oriented PHP]]></description>
			<content:encoded><![CDATA[<p>Here I tried to explain two advanced techniques in PHP.<br />
1. Backtracing<br />
2. Method Chaining</p>
<p><object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_69162867819577" name="doc_69162867819577" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle"	height="500" width="100%" ><param name="movie"	value="http://d1.scribdassets.com/ScribdViewer.swf?document_id=24799303&#038;access_key=key-jeon6rzjjnoz5o9qlw&#038;page=1&#038;version=1&#038;viewMode=slideshow"></param><param name="quality" value="high"></param><param name="play" value="true"></param><param name="loop" value="true"></param><param name="scale" value="showall"></param><param name="wmode" value="opaque"></param><param name="devicefont" value="false"></param><param name="bgcolor" value="#ffffff"></param><param name="menu" value="true"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><param name="salign" value=""></param><param name="mode" value="slideshow"><embed src="http://d1.scribdassets.com/ScribdViewer.swf?document_id=24799303&#038;access_key=key-jeon6rzjjnoz5o9qlw&#038;page=1&#038;version=1&#038;viewMode=slideshow" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_69162867819577_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" mode="slideshow" height="500" width="100%"></embed></param></object>	</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyfromchennai.com/?feed=rss2&amp;p=131</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Webservice &#8211; a brief Introduction</title>
		<link>http://www.guyfromchennai.com/?p=123</link>
		<comments>http://www.guyfromchennai.com/?p=123#comments</comments>
		<pubDate>Thu, 07 Jan 2010 03:48:47 +0000</pubDate>
		<dc:creator>Kumar S</dc:creator>
				<category><![CDATA[Webservice]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://www.guyfromchennai.com/?p=123</guid>
		<description><![CDATA[a brief Introduction about Webservice]]></description>
			<content:encoded><![CDATA[<p>Recently I prepared this presentation for a small lecture for my team, to give info about web services.<br />
Hope this will be helpful to others too. I tried to explain what is an Webservice, how and where it is used, How it works, Necessary thing to know to develop a webserice, etc.</p>
<p><object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_298809935537269" name="doc_298809935537269" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle"	height="500" width="100%" ><param name="movie"	value="http://d1.scribdassets.com/ScribdViewer.swf?document_id=24799300&#038;access_key=key-kk5zcso7t1if097dodg&#038;page=1&#038;version=1&#038;viewMode=slideshow"></param><param name="quality" value="high"></param><param name="play" value="true"></param><param name="loop" value="true"></param><param name="scale" value="showall"></param><param name="wmode" value="opaque"></param><param name="devicefont" value="false"></param><param name="bgcolor" value="#ffffff"></param><param name="menu" value="true"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><param name="salign" value=""></param><param name="mode" value="slideshow"><embed src="http://d1.scribdassets.com/ScribdViewer.swf?document_id=24799300&#038;access_key=key-kk5zcso7t1if097dodg&#038;page=1&#038;version=1&#038;viewMode=slideshow" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_298809935537269_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" mode="slideshow" height="500" width="100%"></embed></param></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyfromchennai.com/?feed=rss2&amp;p=123</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN Quick Installation Guide in Ubuntu</title>
		<link>http://www.guyfromchennai.com/?p=118</link>
		<comments>http://www.guyfromchennai.com/?p=118#comments</comments>
		<pubDate>Wed, 16 Dec 2009 00:58:00 +0000</pubDate>
		<dc:creator>Kumar S</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[What I've learnt Today]]></category>

		<guid isPermaLink="false">http://www.guyfromchennai.com/?p=118</guid>
		<description><![CDATA[SVN quick installation guide in Ubuntu. This guide will explain the basic and necessary steps to install and configure SVN in ubuntu.]]></description>
			<content:encoded><![CDATA[<p>For all of the installation and configuration process, you need to login as root.</p>
<h4>Installation</h4>
<p><span style="color: #0000ff;">apt-get install subversion </span><span style="color: #000000;">(this will install the subversion package) Install any other dependencies if any as required for your system.</span></p>
<h4>Server Configuration</h4>
<p>The following steps assume that, the necessary packages are installed. Now we will create the folders and the repository. The SVN repository can be placed in several places in the server. Most common places are /var/svn/ , /svr/svn/,  /home/svn/ etc.</p>
<p>First of all create a new user group named “subversion”<br />
<span style="color: #3f4beb;"> </span><span style="color: #0000ff;">addgrp subversion</span><br />
Then add <span style="color: #3f4beb;">youself</span> and the <span style="color: #3f4beb;">www-data</span> ( the apache user) to this groups. You can do this by doing the following steps</p>
<p><span style="color: #077078;"><span style="color: #0000ff;">1 Choose System &gt; Administration &gt; Users and Groups from your Ubuntu menu.<br />
2 Select the Group tab<br />
3 Click the &#8216;Add Group&#8217; button<br />
4 Name the group &#8216;subversion&#8217;<br />
5 Add yourself and www-data (the Apache user) to this group . </span><br />
</span><strong>Note:</strong> As default, the user configuration does not show system users. To see the Apache user in this list, do the following<br />
<span style="color: #077078;"> </span><span style="color: #0000ff;">a) Start gconf settings editor: Alt+F2 gconf-editor Enter.<br />
b) In the tree, locate /apps/gnome-system-tools/users.<br />
c) Select the &#8220;showall&#8221; check-box. </span></p>
<p>Now logout and login again in order to the above changes to be applied.<br />
Now we will create the folder where you can place the SVN repository.<br />
<span style="color: #3f4beb;"><br />
</span><span style="color: #0000ff;">mkdir /home/svn<br />
cd /home/svn<br />
mkdir projectname<br />
chown -R www-data:subversion </span><span style="color: #0000ff;">projectname</span><span style="color: #0000ff;"><br />
chmod -R g+rws </span><span style="color: #0000ff;">projectname</span>&lt;-<span style="color: #000000;">This command will set the <strong>gid</strong> for proper permissions on all new files added to your SVN repository. </span></p>
<p><span style="color: #000000;">Now issue the following command to create the SVN repository<br />
</span><span style="color: #0000ff;">svnadmin create /home/svn/</span><span style="color: #0000ff;">projectname</span><br />
<span style="color: #0000ff;"> chmod -R g+rws </span><span style="color: #0000ff;">projectname </span><span style="color: #000000;">Issue this command again, because svnadmin will create folders and files without the write access to the group. </span></p>
<h4>Importing the Project into SVN</h4>
<p>Now go the folder where your project folder is present. Then issue to following command to import your project into SVN repository.<br />
<span style="color: #0000ff;">svn import </span><span style="color: #0000ff;">projectname</span><a href="file:///home/svn/myproject"><span style="color: #0000ff;">file:///home/svn/</span><span style="color: #0000ff;">projectname</span></a><span style="color: #0000ff;"> –m “Initial checkin of </span><span style="color: #0000ff;">projectname</span><span style="color: #0000ff;"> into SVN”</span></p>
<h4>Creating Users</h4>
<p>Now we have created the repository and imported the project into it successfully. Now we have to control the access to the repository by creating users.</p>
<p>If the SVN is just now installed the <strong>passwd</strong> file will not exist and it should be created first,   under the /etc/subversion folder. This is the file that will contain the authentication details for the users.</p>
<p>to create the the password file, use the command<br />
<span style="color: #0000ff;">htpasswd –c /etc/subversion/passwd <em>username (Enter the username here) </em></span></p>
<p><span style="color: #0000ff;"><em> </em></span><span style="color: #000000;">this will prompt us to enter the password for the user. Enter the password. Now the user is added. To add more users use the same command above without using the –<strong>c </strong>switch. For example to add another user, use the following.<br />
</span></p>
<p><span style="color: #0000ff;">htpasswd /etc/subversion/passwd <em>username2 (Enter the second username here)<br />
</em></span></p>
<h4>Checking out from Repository</h4>
<p>We have created the repository, imported out project into SVN and created the users also. Now to check with the installation and repository, we have to checkout our project from the repository. Go to any of your working folder(not to the svn repository folder) first. To checkout use the following command</p>
<p><span style="color: #0000ff;">svn co </span><a href="file:///home/svn/myproject"><span style="color: #0000ff;">file:///home/svn/</span><span style="color: #0000ff;">projectname</span></a><span style="color: #0000ff;"> </span><span style="color: #000000;">(this will checkout the </span><span style="color: #0000ff;">projectname</span><span style="color: #000000;"> from SVN repository)<br />
</span></p>
<p><span style="color: #000000;">That’s it we are done with the our basic things to use SVN.  To access SVN over various protocols like http://, https://. svn:// and svn:+ssh// we can refer ubuntu or SVN documentation. For an example I’ll explain how to access our SVN repository over <strong>http:// </strong>(WebDAV).<br />
</span></p>
<h4>Access the SVN via WebDAV (http://)</h4>
<p>To access the SVN repository via WebDAV, we must configure the Apache server.<br />
First we have to install the <strong>libapache2-svn</strong> package<br />
<span style="color: #0000ff;">apt-get install libapache2-svn</span></p>
<p>Then add the following snippet to the /etc/apache2/mods-available/dav_svn.conf file.</p>
<p><span style="color: #0000ff;">&lt;Location /svn/</span><span style="color: #0000ff;">projectname</span><span style="color: #0000ff;">&gt;<br />
DAV svn<br />
SVNPath /home/svn/</span><span style="color: #0000ff;">projectname</span><br />
<span style="color: #0000ff;"> AuthType Basic<br />
AuthName &#8220;</span><span style="color: #0000ff;">projectname</span><span style="color: #0000ff;"> subversion repository&#8221;<br />
AuthUserFile /etc/subversion/passwd<br />
&lt;LimitExcept GET PROPFIND OPTIONS REPORT&gt;<br />
Require valid-user<br />
&lt;/LimitExcept&gt;<br />
&lt;/Location&gt;</span></p>
<p>Hope this will help somebody who would like to get all the basic, necessary steps to start using the SVN. Let me know your feeback.</p>
<p>For further reference see the following links</p>
<ul>
<li><a title="http://www.abbeyworkshop.com/howto/misc/svn01/" href="http://www.abbeyworkshop.com/howto/misc/svn01/">http://www.abbeyworkshop.com/howto/misc/svn01/</a></li>
<li><a title="https://help.ubuntu.com/community/Subversion" href="https://help.ubuntu.com/community/Subversion">https://help.ubuntu.com/community/Subversion</a></li>
<li><a title="http://blog.itemployeesnetwork.com/2008/12/quick-setup-svn-with-apache2-on-linux.html" href="http://blog.itemployeesnetwork.com/2008/12/quick-setup-svn-with-apache2-on-linux.html">http://blog.itemployeesnetwork.com/2008/12/quick-setup-svn-with-apache2-on-linux.html</a></li>
<li><a title="http://www.yolinux.com/TUTORIALS/LinuxSubversionAndTracServer.html" href="http://www.yolinux.com/TUTORIALS/LinuxSubversionAndTracServer.html">http://www.yolinux.com/TUTORIALS/LinuxSubversionAndTracServer.html</a></li>
<li><a title="http://techchorus.net/instant-svn-setup" href="http://techchorus.net/instant-svn-setup">http://techchorus.net/instant-svn-setup</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.guyfromchennai.com/?feed=rss2&amp;p=118</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Apache,PHP5,MySQL on Ubuntu</title>
		<link>http://www.guyfromchennai.com/?p=112</link>
		<comments>http://www.guyfromchennai.com/?p=112#comments</comments>
		<pubDate>Tue, 27 Oct 2009 08:03:28 +0000</pubDate>
		<dc:creator>Kumar S</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[TechBits]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.guyfromchennai.com/?p=112</guid>
		<description><![CDATA[Installing Apache,PHP,MySQL on Ubuntu.]]></description>
			<content:encoded><![CDATA[<p><strong>Apache</strong><br />
<span style="color: #0000ff;">sudo apt-get install apache2</span></p>
<p><strong>PHP</strong><br />
<span style="color: #0000ff;">sudo apt-get install php5<br />
sudo apt-get install libapache2-mod-php5</span></p>
<p><span style="color: #0000ff;">sudo /etc/init.d/apache2 restart</span></p>
<p><strong>MySQL</strong><br />
To install the MySQL Server and Client packages.<br />
<span style="color: #0000ff;">sudo apt-get install mysql-server mysql-client</span><br />
This will install the mysql server and client packages.<br />
By default, recent Ubuntu/Debian systems install a MySQL Server from the 5-branch.</p>
<p><strong>Set MySQL Root Password</strong><br />
By default, the root account of the MySQL Server is empty. To set the mysql root password do the following.<br />
<span style="color: #0000ff;">sudo mysqladmin -u root -h localhost password &#8216;mypassword&#8217;</span> <span style="color: #808080;">#replace the &#8216;mypassword&#8217; with your password.</span></p>
<p><strong>Connect to MySQL from PHP / Ruby</strong><br />
Now you have Apache+PHP already installed, and want to connect to MySQL from PHP scritps.<br />
For that you have to install one library, which is used to connect to mysql from PHP. Use this command to install the library.</p>
<p><span style="color: #0000ff;">sudo apt-get install php5-mysql</span></p>
<p>In case you are using Ruby, use the command<br />
<span style="color: #0000ff;">sudo apt-get install libmysql-ruby</span> to connect to MySQL from Ruby.</p>
<p><strong>Note :</strong> while restarting the apache if you get the following error<br />
apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.1.1 for ServerName</p>
<p>then open the /etc/apache2/apache2.conf file and add the following line<br />
as the last line</p>
<p><span style="color: #0000ff;">ServerName &#8220;YourSitename or Servername&#8221;</span></p>
<p>save the file and restart the apache by giving the /etc/init.d/apache2 restart command, you will not get the error anymore.</p>
<p><strong>To Install MySQL Query Browser</strong>, an GUI for MySQL</p>
<p><span style="color: #0000ff;">sudo apt-get install mysql-query-browser</span></p>
<p><span style="color: #0000ff;"><span style="color: #000000;">After installation, to start MySQL Query Browser </span></span><span style="font-family: Verdana; font-size: x-small;">go to <strong>Applications</strong> &gt; <strong>Programming </strong>&gt; <strong>MySQL Query Browser. </strong></span><span style="color: #0000ff;"><br />
</span></p>
<p><strong>Install PHP-GD Library</strong></p>
<p>The GD Graphics Library is useful for dynamically creating, manipulating images. You will need to compile PHP with the GD library of image functions for this to work. However Ubuntu (and Debian) comes with package called <strong>php5-gd</strong></p>
<p>To install GD for PHP use the following command.</p>
<p><span style="color: #0000ff;">sudo apt-get install php5-gd</span></p>
<p>I&#8217;ve collected the information from net which are required while installing and configuring Apache, PHP, MySQL and given here. Hope this will help for somebody who can get all information at one place.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyfromchennai.com/?feed=rss2&amp;p=112</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Check if a firefox addon is installed or not</title>
		<link>http://www.guyfromchennai.com/?p=104</link>
		<comments>http://www.guyfromchennai.com/?p=104#comments</comments>
		<pubDate>Mon, 26 Oct 2009 08:31:08 +0000</pubDate>
		<dc:creator>Kumar S</dc:creator>
				<category><![CDATA[Addons]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.guyfromchennai.com/?p=104</guid>
		<description><![CDATA[Check if a firefox addon is installed or not using javascript]]></description>
			<content:encoded><![CDATA[<p>While trying to check if one of my firefox add-on is installed or not, I found that, Chrome resources can no longer be referenced from within &lt;img&gt;, &lt;script&gt;, or other elements contained in, or added to, content that was loaded from an untrusted source. This restriction applies to both elements defined by the untrusted source and to elements added by trusted extensions.</p>
<p>Before firefox 3 we were able to check if a firefox add-on is installed or not as following.<br />
using an image tag to load an image in the firefox add-on.<br />
Once loaded trigger the onload event to verify the add-on is loaded.<br />
For example,<br />
&lt; img src=&#8221;chrome://youraddonname/content/skin/images/anyimagefilename&#8221; width=&#8221;0&#8243; height=&#8221;0&#8243; onload=&#8221;function call here()&#8221; style=&#8221;visibility:hidden&#8221; &gt;;</p>
<p>But this stopped working after firefox 3 and later versions due to security restrictions.<br />
And the extensions won&#8217;t interact with the web page in any way.</p>
<p><span id="more-104"></span></p>
<p>This caused my add-on checking scripts stopped working.<br />
While digging through the Google, finally found a way to allow interaction with the chrome resources from developer.mozilla.org site.<br />
It is &#8220;<strong>contentaccessible</strong>&#8221; flag, which allows the user scripts to check if the add-on is installed or not.</p>
<p>Please note that, The contentaccessible flag applies only to content packages: it is not recognized for locale or skin registration.<br />
However, the matching locale and skin packages will also be exposed to content.</p>
<p>Change your chrome.manifest file as follows</p>
<p><strong>content youraddonname chrome/content/</strong><br />
<span style="color: #808080;"># Because older versions of Firefox do not understand the contentaccessible flag, any extension designed to work with both Firefox 3 or above<br />
# and older versions will need the above line too</span></p>
<p><strong>content youraddonname chrome/content/ contentaccessible=yes</strong></p>
<p>Package your add-on and install the new version of your add-on.<br />
Restart firefox.<br />
Now you will be able to check the add-on is installed as following</p>
<p>&lt; img src=&#8221;chrome://your add-on name/content/skin/images/anyimagefilename&#8221; width=&#8221;0&#8243; height=&#8221;0&#8243; onload=&#8221;function call here()&#8221; style=&#8221;visibility:hidden&#8221; &gt;</p>
<p><strong>For example</strong></p>
<p>var isInstalled = false;</p>
<p>function checkAddon(){<br />
isInstalled = true;<br />
alert(&#8216;Your addon is installed&#8217;);<br />
}</p>
<p>&lt; img src=&#8221;chrome://youraddonname/content/skin/images/anyimagefilename&#8221; width=&#8221;0&#8243; height=&#8221;0&#8243; onload=&#8221;javascript: checkAddon()&#8221; style=&#8221;visibility:hidden&#8221; &gt;</p>
<p>You can use the variable <strong>isInstalled </strong>for later use.</p>
<p>Hope this will<strong> </strong>help others also, who are also trying<strong> </strong>like me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyfromchennai.com/?feed=rss2&amp;p=104</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cannot load mysql extension. Please check your PHP configuration</title>
		<link>http://www.guyfromchennai.com/?p=101</link>
		<comments>http://www.guyfromchennai.com/?p=101#comments</comments>
		<pubDate>Mon, 22 Jun 2009 12:16:15 +0000</pubDate>
		<dc:creator>Kumar S</dc:creator>
				<category><![CDATA[TechBits]]></category>

		<guid isPermaLink="false">http://www.guyfromchennai.com/?p=101</guid>
		<description><![CDATA[Solve the "Cannot load mysql extension. Please check your PHP configuration" issue while installing php, MySQL in Windows ]]></description>
			<content:encoded><![CDATA[<p>Everytime I install PHP, MySQL in windows boxes I used to get the error message &#8220;<strong>Cannot load mysql extension. Please check your PHP configuration</strong>&#8220;. This is because i&#8217;d forget to do the necessary steps.</p>
<p>While wandering thru sites most of the people were looking for the same issues.So decided to write a simple post with the necessary steps to solve this while installing PHP, MySQL in a linux box.</p>
<p><strong>PHP.INI settings</strong></p>
<p>1. Modify extension_dir = &#8220;./&#8221; to extension_dir = &#8220;c:/PHP/ext&#8221;<br />
2. make sure php_mysql.dll file is inside the folder c:/PHP/ext<br />
3. uncomment the line ;extension=php_msql.dll i.e., remove the comma in the line. so that line will look like<br />
extension=php_msql.dll</p>
<p><strong>Others</strong><br />
4. Copy the libmysql.dll file to C:\WINDOWS folder<br />
5. restart Apache Service</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyfromchennai.com/?feed=rss2&amp;p=101</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
