<?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>Kurinchi Blogger Scribbles ...</title>
	<atom:link href="http://kurinchilamp.kurinchilion.com/feed" rel="self" type="application/rss+xml" />
	<link>http://kurinchilamp.kurinchilion.com</link>
	<description>On Open Source Technologies</description>
	<lastBuildDate>Mon, 02 Jan 2012 06:14:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to check if linux server can send out email via command line?</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/12/how-to-check-if-linux-server-can-send-out-email-via-command-line.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/12/how-to-check-if-linux-server-can-send-out-email-via-command-line.html#comments</comments>
		<pubDate>Thu, 15 Dec 2011 06:05:34 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[command line email]]></category>
		<category><![CDATA[linux mail]]></category>
		<category><![CDATA[mail command line]]></category>
		<category><![CDATA[send mail]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=931</guid>
		<description><![CDATA[Method 1: $ mail -s &#8220;Subject: Test email from linux server&#8221; info@test.com Press the &#8220;Return&#8221; key Enter the body part of the email Press ctrl + D Enter a CC email if you would like (e.g. info2@test.com) Press ctrl + D again Then check the mail box to see if the mail has arrived. Method [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Method 1:</strong></p>
<p>$ mail -s &#8220;Subject: Test email from linux server&#8221; info@test.com</p>
<p>Press the &#8220;Return&#8221; key</p>
<p>Enter the body part of the email</p>
<p>Press ctrl + D</p>
<p>Enter a CC email if you would like (e.g. info2@test.com)</p>
<p>Press ctrl + D again </p>
<p>Then check the mail box to see if the mail has arrived.</p>
<p><span id="more-931"></span><br />
<strong>Method 2:</strong></p>
<p>$ echo &#8220;Enter the body part of the email&#8221; | mail -s &#8220;Subject: Test email from linux server&#8221; info@test.com -c info2@test.com</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/12/how-to-check-if-linux-server-can-send-out-email-via-command-line.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reverse DNS and Junk Email</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/12/reverse-dns-and-junk-email.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/12/reverse-dns-and-junk-email.html#comments</comments>
		<pubDate>Mon, 12 Dec 2011 13:58:45 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[dig command]]></category>
		<category><![CDATA[Junk email]]></category>
		<category><![CDATA[PTR]]></category>
		<category><![CDATA[Reverse DNS]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=936</guid>
		<description><![CDATA[Many email servers depend on Reverse DNS in order to identify if the mail is legit or spam. For the Reverse DNS to work correctly, two points need to be addressed a) Look for IP address of the mail server should return its name. PTR record should be set for this b) Reverse look on [...]]]></description>
			<content:encoded><![CDATA[<p>Many email servers depend on Reverse DNS in order to identify if the mail is legit or spam. For the Reverse DNS to work correctly, two points need to be addressed<br />
a) Look for IP address of the mail server should return its name. PTR record should be set for this<br />
b) Reverse look on the name should return back the IP address</p>
<p>For example,</p>
<p><strong>$ dig -x 217.83.122.34</strong></p>
<p>;; ANSWER SECTION:</p>
<p>34.122.83.217.in-addr.arpa. 66372 IN    PTR     mail.example.com.</p>
<p><strong>$ dig mail.example.com</strong></p>
<p>;; ANSWER SECTION:</p>
<p>mail.example.com.   900     IN      A       217.83.122.34</p>
<p>Check the IP address that is getting resolved matches the name that is getting returned back.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/12/reverse-dns-and-junk-email.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: How to upgrade PHP from 5.1 to 5.2 in CentOS5?</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/11/linux-how-to-upgrade-php-from-5-1-to-5-2-in-centos5.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/11/linux-how-to-upgrade-php-from-5-1-to-5-2-in-centos5.html#comments</comments>
		<pubDate>Tue, 15 Nov 2011 06:15:37 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[centos php]]></category>
		<category><![CDATA[php upgrade]]></category>
		<category><![CDATA[update php]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=919</guid>
		<description><![CDATA[First Check PHP version that is currently installed $ php -version Check Linux Version $ cat /etc/*-release (or redhat-release) Create a repo file with the content given below. As you can note, we are looking for package upgrade related to php only. $ vi /etc/yum.repos.d/CentOS-phpupgrade.repo # CentOS5-Upgrade: # This repository is a proving grounds for [...]]]></description>
			<content:encoded><![CDATA[<p>First Check PHP version that is currently installed</p>
<p><strong>$ php -version</strong></p>
<p>Check Linux Version </p>
<p><strong>$ cat /etc/*-release (or redhat-release)</strong></p>
<p>Create a repo file with the content given below. As you can note, we are looking for package upgrade related to php only.<br />
<span id="more-919"></span><br />
<strong>$ vi /etc/yum.repos.d/CentOS-phpupgrade.repo</strong></p>
<p># CentOS5-Upgrade:<br />
# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.<br />
# They may or may not replace core CentOS packages, and are not guaranteed to function properly.<br />
# These packages build and install, but are waiting for feedback from testers as to<br />
# functionality and stability. Packages in this repository will come and go during the<br />
# development period, so it should not be left enabled or used on production systems without due<br />
# consideration.<br />
[cent5-upgrade]<br />
name=CentOS5 Upgrade<br />
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/<br />
enabled=1<br />
gpgcheck=1<br />
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing<br />
includepkgs=php*</p>
<p>Update the repository</p>
<p><strong>$ yum update</strong></p>
<p>Restart Apache server</p>
<p><strong>$ service http restart</strong></p>
<p>Check the PHP version that is installed</p>
<p><strong>$ php -version</strong></p>
<p>Check the package repository</p>
<p><strong>$ rpm -qa | grep php</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/11/linux-how-to-upgrade-php-from-5-1-to-5-2-in-centos5.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux: How to list or allow access to ports ?</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/10/linux-how-to-list-or-allow-access-to-ports.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/10/linux-how-to-list-or-allow-access-to-ports.html#comments</comments>
		<pubDate>Sat, 15 Oct 2011 14:54:51 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[find open port]]></category>
		<category><![CDATA[list port]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[port allow access]]></category>
		<category><![CDATA[SELinux]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=922</guid>
		<description><![CDATA[SELinux is a feature that may be turned on certain servers and it can restrict access to certain ports. In order to gain access and make the ports work, you need to open those ports. To see if SELinux is set, type $ sestatus To list all port, try the semanage command $ semanage port [...]]]></description>
			<content:encoded><![CDATA[<p><strong>SELinux </strong>is a feature that may be turned on certain servers and it can restrict access to certain ports. In order to gain access and make the ports work, you need to open those ports.</p>
<p>To see if SELinux is set, type</p>
<p><strong>$ sestatus</strong></p>
<p>To list all port, try the semanage command</p>
<p><strong>$ semanage port -l</strong></p>
<p>To check for a specific port that is opened</p>
<p><strong>$ semanage port -l | grep 8085</strong></p>
<p>To allow access to a specific port</p>
<p><strong>$ semanage port -a -t http_port_t -p tcp 8085</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/10/linux-how-to-list-or-allow-access-to-ports.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL: &#8216;Access denied for user &#8216;root&#8217;@&#039;localhost&#8217; (using password: YES)&#8217;</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/09/mysql-access-denied-for-user-rootlocalhost-using-password-yes.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/09/mysql-access-denied-for-user-rootlocalhost-using-password-yes.html#comments</comments>
		<pubDate>Sun, 18 Sep 2011 13:44:37 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[change password mysql]]></category>
		<category><![CDATA[mysql access denied]]></category>
		<category><![CDATA[mysql password old password]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=917</guid>
		<description><![CDATA[The above error message most likely occurs when users change password in one environment (via command line or phpmyadmin) and do not see the changes reflect in other OR if they have forgotten the password that is being set for the environment in question. Following command should help you set/change MySQL password $ mysql -u [...]]]></description>
			<content:encoded><![CDATA[<p>The above error message most likely occurs when users change password in one environment (via command line or phpmyadmin) and do not see the changes reflect in other OR if they have forgotten the password that is being set for the environment in question.</p>
<p>Following command should help you set/change MySQL password</p>
<p>$ mysql -u root -p<br />
<span id="more-917"></span><br />
mysql&gt; use mysql;<br />
mysql&gt; show tables;<br />
mysql&gt; desc user;<br />
mysql&gt; update user set password=PASSWORD(&#8216;mypassword&#8217;) where User=&#8217;root&#8217;;<br />
mysql&gt; flush privileges;<br />
mysql&gt; \q</p>
<p>Now you need to enter the new password for the user &#8216;root&#8217; to gain access to mysql.</p>
<p>Point to note:</p>
<p>Prior to MySQL 4.1 PASSWORD function returns 16 byte string and in later versions it returns 41 byte string. In later versions, passwords begin with &#8220;*&#8221;. When users migrate databases from one version to other there are chances for the application to break if this factor is not considered. In later versions, if users want to still use the old form of password hashing there is a function &#8220;OLD_PASSWORD&#8221; available to them.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/09/mysql-access-denied-for-user-rootlocalhost-using-password-yes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL: How to stop, start or restart mysql?</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/08/mysql-how-to-stop-start-or-restart-mysql.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/08/mysql-how-to-stop-start-or-restart-mysql.html#comments</comments>
		<pubDate>Thu, 11 Aug 2011 00:00:34 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[mysql restart]]></category>
		<category><![CDATA[mysql start]]></category>
		<category><![CDATA[mysql stop]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=906</guid>
		<description><![CDATA[In linux, following commands are used to start/stop/restart mysql $/etc/init.d/mysqld start $/etc/init.d/mysqld restart $/etc/init.d/mysqld stop In windows, mysql runs as a service. C:&#62; net stop mysql C:&#62; net start mysql]]></description>
			<content:encoded><![CDATA[<p><em>In linux, following commands are used to start/stop/restart mysql</em></p>
<p>$<strong>/etc/init.d/mysqld start</strong><br />
$<strong>/etc/init.d/mysqld restart</strong><br />
$<strong>/etc/init.d/mysqld stop</strong></p>
<p><em>In windows, mysql runs as a service.</em><br />
C:&gt; <strong>net stop mysql</strong><br />
C:&gt; <strong>net start mysql</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/08/mysql-how-to-stop-start-or-restart-mysql.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Case sensitive MySQL table names</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/07/linux-case-sensitive-mysql-table-names.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/07/linux-case-sensitive-mysql-table-names.html#comments</comments>
		<pubDate>Thu, 21 Jul 2011 00:11:29 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[lower_case_table_names]]></category>
		<category><![CDATA[my.cnf]]></category>
		<category><![CDATA[mysql case sensitive]]></category>
		<category><![CDATA[mysql table not found]]></category>
		<category><![CDATA[sql case sensitive error]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=909</guid>
		<description><![CDATA[When transitioning MySQL database from Windows to Linux, users often encounter issues related to case-sensitiveness. Windows is case-insensitive and Linux is case-sensitive. In such scenarios when a database call is made after the application migration happens, users often run into errors which can send them in circles between the migration servers. Solution to this problem [...]]]></description>
			<content:encoded><![CDATA[<p>When transitioning MySQL database from Windows to Linux, users often encounter issues related to case-sensitiveness.  Windows is case-insensitive and Linux is case-sensitive. </p>
<p>In such scenarios when a database call is made after the application migration happens, users often run into errors which can send them in circles between the migration servers.</p>
<p>Solution to this problem is to add a single line of text under <strong>my.cnf</strong> (MySQL configuration file) under <em>[mysqld]</em><strong><span id="more-909"></span></p>
<p><strong>lower_case_table_names=1</strong></p>
<p><strong>$ whereis my.cnf</strong><br />
/etc/my.cnf</p>
<p>$ vi my.cnf<br />
&#8230;<br />
&#8230;<br />
<em>[mysqld]</em><br />
lower_case_table_names=1</p>
<p><strong>Common Errors related to this issue</strong></p>
<p>When the application is executed, users get &#8220;table not found&#8221; errors which is an indication of this error.  You can verify the error by issuing the command</p>
<p><strong>$ mysqladmin -uAdmin -pPass variables</strong></p>
<p>and check for the value of <em>lower_case_table_names</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/07/linux-case-sensitive-mysql-table-names.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache: [warn] NameVirtualHost *:80 has no VirtualHosts</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/06/apache-warn-namevirtualhost-80-has-no-virtualhosts.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/06/apache-warn-namevirtualhost-80-has-no-virtualhosts.html#comments</comments>
		<pubDate>Sat, 25 Jun 2011 18:14:25 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[warning message]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=903</guid>
		<description><![CDATA[$ /etc/init.d/apache2 restart After configuring Apache server settings on the name server, you may encounter a message &#8220;[warn] NameVirtualHost 192.168.1.3:80 has no VirtualHosts&#8221; The issue may be due to more than one entry of NameVirtualHost lines in the configuration settings. You can find this out by $ grep NameVirtual * -R site1:NameVirtualHost *:80 site2:NameVirtualHost *:80 [...]]]></description>
			<content:encoded><![CDATA[<p>$ /etc/init.d/apache2 restart</p>
<p>After configuring Apache server settings on the name server, you may encounter a message &#8220;<strong>[warn] NameVirtualHost 192.168.1.3:80 has no VirtualHosts</strong>&#8221;</p>
<p>The issue may be due to more than one entry of NameVirtualHost lines in the configuration settings. You can find this out by </p>
<p><strong>$ grep NameVirtual * -R</strong><br />
site1:NameVirtualHost *:80<br />
site2:NameVirtualHost *:80</p>
<p><strong>Linux Solution:</strong> Remove one of the occurance of the NameVirtualHost and the warning message that you receive will vanish.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/06/apache-warn-namevirtualhost-80-has-no-virtualhosts.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JAVA: public class naming</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/05/java-class-is-public-should-be-declared-in-a-file-named.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/05/java-class-is-public-should-be-declared-in-a-file-named.html#comments</comments>
		<pubDate>Sat, 21 May 2011 00:31:12 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java program]]></category>
		<category><![CDATA[public name]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=925</guid>
		<description><![CDATA[A JAVA program file can only contain one public java class and this should be named the same as the java file itself. There can be any number of classes with / without other modifiers. Classes without any modifiers will get compiled even if the name of the class does not match the name of [...]]]></description>
			<content:encoded><![CDATA[<p>A JAVA program file can only contain one public java class and this should be named the same as the java file itself.</p>
<p>There can be any number of classes with / without other modifiers.</p>
<p>Classes without any modifiers will get compiled even if the name of the class does not match the name of the java program file.<br />
<span id="more-925"></span></p>
<p>JAVA compiler will look for the name of the .java files associated with the call to a class (during object instantiation).</p>
<p>Some JAVA compilers will warn the users even when the non-public class names do not match the file names.</p>
<p>When you indicate that the class file is &#8220;public&#8221; it explicitly states that the program will be referenced elsewhere. Compiler checks if the name of the class matches the name of the file at that instance and will throw an error message to indicate the inconsistency.</p>
<p><em>Rule of thumb:</em> Save the java files in the name of the primary class referenced in the program file.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/05/java-class-is-public-should-be-declared-in-a-file-named.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL: Default collation latin1_swedish_ci (swedish case insensitive)</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/03/mysql-default-collation-latin1_swedish_ci-swedish-case-insensitive.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/03/mysql-default-collation-latin1_swedish_ci-swedish-case-insensitive.html#comments</comments>
		<pubDate>Sat, 26 Mar 2011 15:41:51 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[my.cnf]]></category>
		<category><![CDATA[mysql collation]]></category>
		<category><![CDATA[mysql default collation]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=893</guid>
		<description><![CDATA[When new fileds are created as variable characters they get stored as latin1_swedish_ci as default. To change the default collation users will have to manually select the collation of their choice from the mysql admin interface such as in the case of phpmyadmin or will have to denote it in sql queries. To make a [...]]]></description>
			<content:encoded><![CDATA[<p>When new fileds are created as variable characters they get stored as <strong>latin1_swedish_ci</strong> as default. To change the default collation users will have to manually select the collation of their choice from the mysql admin interface such as in the case of <em>phpmyadmin</em> or will have to denote it in sql queries.</p>
<p>To make a specific collation as the default, other option to give mysql an indication of it by having the needed collation name in <strong>my.cnf (mysql configuration)</strong> as shown below</p>
<p><strong>Edit my.cnf: </strong><br />
<em>[mysqld]<br />
collation_server=latin1_general_ci</em><br />
<span id="more-893"></span><br />
<em>MySql command to set collation type when creating database is given below:</em></p>
<p><strong>Latin1 encoding</strong><br />
CREATE DATABASE sampledb DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci;</p>
<p><strong>UTF-8 encoding</strong><br />
CREATE DATABASE sampledb DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;</p>
<p>Once the encoding for the database is set, fields associated with the tables in our new database will take up default collation as the one set during the database creation.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/03/mysql-default-collation-latin1_swedish_ci-swedish-case-insensitive.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

