<?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>TutorBoy &#187; Arun C P</title>
	<atom:link href="http://articles.tutorboy.com/author/arun-c-p/feed/" rel="self" type="application/rss+xml" />
	<link>http://articles.tutorboy.com</link>
	<description>Log on to Techknowledgey</description>
	<lastBuildDate>Wed, 28 Mar 2012 11:04:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Changing MySql User Password</title>
		<link>http://articles.tutorboy.com/2009/11/23/changing-mysql-user-password/</link>
		<comments>http://articles.tutorboy.com/2009/11/23/changing-mysql-user-password/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 07:03:40 +0000</pubDate>
		<dc:creator>Arun C P</dc:creator>
				<category><![CDATA[DataBase]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=486</guid>
		<description><![CDATA[The mysqladmin tool can be used for changing MySql user&#8217;s password. The following line of code will change the user1&#8242;s ...]]></description>
			<content:encoded><![CDATA[<p>The mysqladmin tool can be used for changing MySql user&#8217;s password. The following line of code will change the user1&#8242;s password to &#8220;newpassword&#8221;.</p>
<pre class="brush:bash">mysqladmin -u user1 -p password "newpassword"</pre>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/2009/11/23/changing-mysql-user-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Revoking MySQL Root Privilege</title>
		<link>http://articles.tutorboy.com/2009/11/20/revoking-mysql-root-privilege/</link>
		<comments>http://articles.tutorboy.com/2009/11/20/revoking-mysql-root-privilege/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 04:36:20 +0000</pubDate>
		<dc:creator>Arun C P</dc:creator>
				<category><![CDATA[DataBase]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=480</guid>
		<description><![CDATA[If we lost the root privilege or password, it can be retrieved by the following steps :
Stopping MySQL :
Shell Command
/etc/init.d/mysqld ...]]></description>
			<content:encoded><![CDATA[<p>If we lost the root privilege or password, it can be retrieved by the following steps :<br />
Stopping MySQL :</p>
<h2>Shell Command</h2>
<pre class="brush:bash">/etc/init.d/mysqld stop</pre>
<p>wait until MySQL stops, then run the following commands :</p>
<pre class="brush:bash">mysqld_safe --skip-grant-tables &amp;</pre>
<p>Then you will be you will be able to login as root with no password.</p>
<pre class="brush:bash">mysql -uroot mysql</pre>
<p><span id="more-480"></span><br />
In MySQL command prompt use the following commands :</p>
<pre class="brush:bash">use mysql;
update user set password=PASSWORD("newrootpassword") where User='root';
FLUSH PRIVILEGES;</pre>
<p>Restart MySQL :</p>
<pre class="brush:bash">/etc/init.d/mysqld stop

/etc/init.d/mysqld start</pre>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/2009/11/20/revoking-mysql-root-privilege/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copying value from one table to another</title>
		<link>http://articles.tutorboy.com/2009/11/19/copying-value-from-one-table-to-another/</link>
		<comments>http://articles.tutorboy.com/2009/11/19/copying-value-from-one-table-to-another/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 07:38:13 +0000</pubDate>
		<dc:creator>Arun C P</dc:creator>
				<category><![CDATA[DataBase]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=476</guid>
		<description><![CDATA[This can be done by using both insert and select queries.
Example :
Suppose we have two tables student and mark :
Student
id ...]]></description>
			<content:encoded><![CDATA[<p>This can be done by using both insert and select queries.</p>
<h2>Example :</h2>
<pre>Suppose we have two tables student and mark :
Student
id     | integer |
name   | text    |

Mark
id     | integer |
name   | text    |
mark | integer |

We can copy all values of student to mark by using the following query :

insert into mark select * from student;
 id | name  | mark
----+-------+--------
  1 | test  |
  2 | test1 |
  3 | test2 |
  4 | test3 |

We can copy one column of student to mark by using the following query :

insert into mark(name) select name from student</pre>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/2009/11/19/copying-value-from-one-table-to-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a playlist for mplayer</title>
		<link>http://articles.tutorboy.com/2009/11/19/creating-a-playlist-for-mplayer/</link>
		<comments>http://articles.tutorboy.com/2009/11/19/creating-a-playlist-for-mplayer/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 07:25:41 +0000</pubDate>
		<dc:creator>Arun C P</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=474</guid>
		<description><![CDATA[We can create the mplayer playlist by following some simple commands :
$ find [/path/to/directory/] -name "*.mp3" -print &#62; myplaylist.txt
$ mplayer ...]]></description>
			<content:encoded><![CDATA[<p>We can create the mplayer playlist by following some simple commands :</p>
<pre>$ find [/path/to/directory/] -name "*.mp3" -print &gt; myplaylist.txt
$ mplayer -playlist myplaylist.txt</pre>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/2009/11/19/creating-a-playlist-for-mplayer/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Add Ip&#8217;s to a Linux Server</title>
		<link>http://articles.tutorboy.com/2009/11/14/add-ips-to-a-linux-server/</link>
		<comments>http://articles.tutorboy.com/2009/11/14/add-ips-to-a-linux-server/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 09:43:36 +0000</pubDate>
		<dc:creator>Arun C P</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=435</guid>
		<description><![CDATA[1. Login to the server as root user.
2.
cd /etc/sysconfig/network-scripts 
3. Check for existing network adapters with the command:
ls ifcfg-*
4. Copy ...]]></description>
			<content:encoded><![CDATA[<p>1. Login to the server as root user.</p>
<p>2.
<pre class="brush:bash">cd /etc/sysconfig/network-scripts </pre>
<p>3. Check for existing network adapters with the command:</p>
<pre class="brush:bash">ls ifcfg-*</pre>
<p>4. Copy ifcfg-eth0 to ifcfg-eth0:0</p>
<pre class="brush:bash">cp ifcfg-eth0 ifcfg-eth0:0</pre>
<p>5. Edit the file</p>
<pre>vi ifcfg-eth0:0 and change the following lines

   DEVICE=eth0:0
   IPADDR=x.x.x.x (The ip you want to be added to the server)</pre>
<p>Another important parameter in this file is the ONBOOT =yes, because if you forget to set this parameter to Yes, after a reboot the ip&#8217;s that you had added just now will be lost.</p>
<p>Make sure for permanent addition of the ip in the server that ONBOOT is set to yes.</p>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/2009/11/14/add-ips-to-a-linux-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using wget command to download entire contents inside the directory</title>
		<link>http://articles.tutorboy.com/2009/11/14/using-wget-command-to-download-entire-contents-inside-the-directory/</link>
		<comments>http://articles.tutorboy.com/2009/11/14/using-wget-command-to-download-entire-contents-inside-the-directory/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 09:40:50 +0000</pubDate>
		<dc:creator>Arun C P</dc:creator>
				<category><![CDATA[Shell]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=433</guid>
		<description><![CDATA[Using wget command, to download entire contents inside the directory.
This can be achieved by using the option -m with wget
for ...]]></description>
			<content:encoded><![CDATA[<p>Using wget command, to download entire contents inside the directory.</p>
<p>This can be achieved by using the option -m with wget</p>
<p>for example:</p>
<pre class="brush:bash">wget -m http://download.inhouse.net/mag_cd/linux4u/Dec06/app_server/jboss/</pre>
<p>It will download all the files/folders inside the directory jboss</p>
<p>-r, –recursive Specify recursive download.<br />
<span id="more-433"></span><br />
-l, –level=NUMBER Maximum recursion depth (inf or 0 for infinite).</p>
<p>-k, –convert-links Make links in downloaded HTML point to local files.</p>
<p>-p, –page-requisites Get all images, etc. needed to display HTML page.</p>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/2009/11/14/using-wget-command-to-download-entire-contents-inside-the-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to shutdown the server after sometimes</title>
		<link>http://articles.tutorboy.com/2009/11/14/how-to-shutdown-the-server-after-sometimes/</link>
		<comments>http://articles.tutorboy.com/2009/11/14/how-to-shutdown-the-server-after-sometimes/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 09:38:03 +0000</pubDate>
		<dc:creator>Arun C P</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=431</guid>
		<description><![CDATA[You just use the command &#8220;shutdown&#8221; with -h option to shutdown the server after some periods.
shutdown -h +period
for example:
shutdown -h ...]]></description>
			<content:encoded><![CDATA[<p>You just use the command &#8220;shutdown&#8221; with -h option to shutdown the server after some periods.</p>
<pre class="brush:bash">shutdown -h +period</pre>
<p>for example:</p>
<pre class="brush:bash">shutdown -h +48</pre>
<p><span id="more-431"></span><br />
here the command will shut down the system after 48hrs(2days).<br />
In the mean time, if you want to cancel the shutdown process, execute the following command.</p>
<pre class="brush:bash">shutdown -c</pre>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/2009/11/14/how-to-shutdown-the-server-after-sometimes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between htmlentities() and htmlspecialchars()</title>
		<link>http://articles.tutorboy.com/2009/11/13/difference-between-htmlentities-and-htmlspecialchars/</link>
		<comments>http://articles.tutorboy.com/2009/11/13/difference-between-htmlentities-and-htmlspecialchars/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 05:02:32 +0000</pubDate>
		<dc:creator>Arun C P</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Functions]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=429</guid>
		<description><![CDATA[htmlspecialchars only takes care of &#60;, &#62;, single quote ‘, double quote &#8221; and ampersand. htmlentities translates all occurrences of ...]]></description>
			<content:encoded><![CDATA[<p><strong>htmlspecialchars</strong> only takes care of &lt;, &gt;, single quote ‘, double quote &#8221; and ampersand. <strong>htmlentities</strong> translates all occurrences of character sequences that have different meaning in HTML.</p>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/2009/11/13/difference-between-htmlentities-and-htmlspecialchars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between echo, print and printf</title>
		<link>http://articles.tutorboy.com/2009/11/13/difference-between-echo-print-and-printf/</link>
		<comments>http://articles.tutorboy.com/2009/11/13/difference-between-echo-print-and-printf/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 04:58:57 +0000</pubDate>
		<dc:creator>Arun C P</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Functions]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=426</guid>
		<description><![CDATA[ echo is the most primitive of them, and just outputs the contents following the construct to the screen. print ...]]></description>
			<content:encoded><![CDATA[<p><strong> echo</strong> is the most primitive of them, and just outputs the contents following the construct to the screen. <strong>print </strong>is also a construct (so parentheses are optional when calling it), but it returns TRUE on successful output and FALSE if it was unable to print out the string. However, you can pass multiple parameters to <strong>echo</strong>, like:<span id="more-426"></span></p>
<pre class="brush:php"> &lt;?php echo 'Welcome ', 'to', ' ', 'TechInterviews!'; ?&gt;</pre>
<p>and it will output  the string &#8220;Welcome to TechInterviews!&#8221; <strong>print</strong> does not take multiple  parameters. It is also generally argued that <strong>echo </strong>is faster, but usually the speed advantage is negligible, and might not be there for future versions of PHP. <strong>printf </strong> is a function, not a construct, and allows such advantages as formatted output, but it’s the slowest way to print out data out of <strong>echo, print </strong>and <strong>printf</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/2009/11/13/difference-between-echo-print-and-printf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magic Methods</title>
		<link>http://articles.tutorboy.com/2009/11/13/magic-methods/</link>
		<comments>http://articles.tutorboy.com/2009/11/13/magic-methods/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 04:13:35 +0000</pubDate>
		<dc:creator>Arun C P</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Functions]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=415</guid>
		<description><![CDATA[PHP reserves all function names starting with __ as magical.
__sleep :-  This function is     executed ...]]></description>
			<content:encoded><![CDATA[<p>PHP reserves all function names starting with __ as magical.</p>
<p><em><strong>__sleep</strong></em> :-  This function is     executed prior to any serialization. It can clean up the object     and is supposed to return an array with the names of all variables     of that object that should be serialized.     If the method doesn&#8217;t return anything then <strong><tt>NULL</tt></strong> is serialized and     E_NOTICE is issued.</p>
<p><em><strong>__wakeup </strong></em>:-      The intended use of <em>__wakeup</em> is to     reestablish any database connections that may have been lost     during serialization and perform other reinitialization     tasks.</p>
<p><em><strong>__toString</strong></em><em><em> </em></em>:-  The <em>__toString</em> method allows a class to decide     how it will react when it is converted to a string.</p>
<p><strong><em>__invoke </em></strong>:-<strong><em> </em></strong> The <em>__invoke</em> method is called when a script tries to     call an object as a function.</p>
<p class="para"><strong><em><em>__set_state </em></em></strong>:-  This <a class="link" href="http://in2.php.net/manual/en/language.oop5.static.php">static</a> method is called     for classes exported by <a class="function" href="http://in2.php.net/manual/en/function.var-export.php">var_export()</a> since PHP 5.1.0.</p>
<p class="para">The only parameter of this method is an array containing exported     properties in the form <em>array(&#8216;property&#8217; =&gt; value, &#8230;)</em>.<span id="more-415"></span></p>
<p class="para"><em><span class="methodname"><strong>__construct </strong></span></em><span class="methodname">:- </span> PHP 5 allows developers to declare constructor methods for classes.     Classes which have a constructor method call this method on each     newly-created object, so it is suitable for any initialization that the     object may need before it is used.</p>
<p class="para"><span class="methodname"><strong><em>__destruct</em> </strong>:- </span> PHP 5 introduces a destructor concept similar to that of other     object-oriented languages, such as C++. The destructor method will be     called as soon as all references to a particular object are removed or when     the object is explicitly destroyed or in any order in shutdown sequence.</p>
<p class="para"><em><strong>__call </strong></em>:-   It is triggered when invoking     inaccessible methods in an object context.</p>
<p class="para"><em><strong>__callStatic </strong></em>:-  It is triggered when invoking     inaccessible methods in a static context.</p>
<p class="para"><em><strong>__set </strong></em>:-  __set() is run when writing data to     inaccessible properties.</p>
<p class="para"><strong><em>__get</em> </strong> :-  __get() is utilized for reading data from     inaccessible properties.</p>
<p class="para"><strong><em>__isset</em> </strong>:-<strong> </strong>__isset() is triggered by calling     <a class="function" href="http://in2.php.net/manual/en/function.isset.php">isset()</a> or <a class="function" href="http://in2.php.net/manual/en/function.empty.php">empty()</a> on inaccessible properties.</p>
<p class="para"><strong><em>__unset</em> </strong>:-<strong> </strong>__unset() is invoked when     <a class="function" href="http://in2.php.net/manual/en/function.unset.php">unset()</a> is used on inaccessible properties.</p>
<p class="para"><em><strong>__clone </strong></em>:-      An object copy is created by using the clone keyword (which calls the    object&#8217;s __clone() method if possible). An object&#8217;s __clone()  method    cannot be called directly.</p>
<p class="para">
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/2009/11/13/magic-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

