<?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></title>
	<atom:link href="http://www.cuelogic.co.in/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cuelogic.co.in/blog</link>
	<description></description>
	<lastBuildDate>Fri, 11 Nov 2011 06:04:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>123 Web Messenger Integration with Joomla</title>
		<link>http://www.cuelogic.co.in/blog/2011/11/123-web-messenger-integration-with-joomla/</link>
		<comments>http://www.cuelogic.co.in/blog/2011/11/123-web-messenger-integration-with-joomla/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 13:19:56 +0000</pubDate>
		<dc:creator>Atul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.cuelogic.co.in/blog/?p=172</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
You must be wondering why am writing this article when it’s already present on the 123 flash chat site.  So before going into technical aspects for the integration I will share my small experience of integrating the web messenger.  So &#8230; <a href="http://www.cuelogic.co.in/blog/2011/11/123-web-messenger-integration-with-joomla/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
<p>You must be wondering why am writing this article when it’s already present on the 123 flash chat site.  So before going into technical aspects for the integration I will share my small experience of integrating the web messenger.  So initially we have to install the web messenger,  I have mentioned  the steps  below and then make all the necessary settings. Once the messenger is installed you can see a facebook like chat bar on your site where you have installed it with a friend’s button, clicking which will display messenger but it doesn’t have the friends list integrated. We have to integrate the code for the users friend to be displayed in the web messenger.  I integrated the demo code provided but it was not working due to a small issue in the code and I had to spend couple of days contacting the technically guys for the issue.  2-3 days continuously in touch with the technically guys but the response was not upto mark. During the time I was in touch with a girl named Mickey (from the providers sales team) who was really helpful and she was the one who got in touch with the technical guys and provided me a solution i.e. to replace a small block in the demo code for the friend list integration. I did it and it worked.  Thanks to Mickey. 2-3 days is not more when on a safer side but if the delivery date is close then am sure the person can know the value of those 2-3 days. So just to save your time (contacting the technical guys and waiting for the reply incase of urgency) below is the process of integration of 123 Web messenger with Joomla.</p>
<p>Note – This is a paid version. In this article I will just provide you information about its installation on Linux server. Below commands are to be executed through the shell (putty / ssh)</p>
<p>Initially you will have to download the trial installation version of web messenger based upon your operating system (32 bit / 64 bit). To check the details about your operating system use the command<br />
uname –a<br />
Download the installation file using below command.<br />
For 32 bit:<br />
wget http://www.123flashchat.com/download/123webmessenger/123webmessenger.sh<br />
For 64 bit:<br />
wget http://www.123flashchat.com/download/123webmessenger/123webmessenger_x64.sh<br />
Once you download the installation file execute the below command to install the service<br />
For 32 bit:<br />
sh 123webmessenger.sh<br />
For 64 bit:<br />
sh 123webmessenger_x64.sh<br />
After executing the above command system will give you some prompts to complete the installation, follow those and complete the installation.<br />
Now to start the server<br />
cd &lt;123webmessenger installation directory&gt;/server<br />
./wmserver start<br />
To stop the server use the command<br />
cd &lt;123webmessenger installation directory&gt;/server<br />
./wmsrever stop<br />
You have now installed the web messenger and started the server. Now comes its integration with Joomla. Before you proceed with the integration make sure you can visit the 123 webmessenger on the installed server using <a href="http://your/" target="_blank">http://your</a> ip:1560/<br />
Make sure you open the ports 1560 and 1558 before you access the url.<br />
Now download the joomla module from the url <a href="http://www.123flashchat.com/web-messenger-download.html">http://www.123flashchat.com/web-messenger-download.html</a> and follow the below steps.<br />
Step 1, Install the module in the Joomla admin panel<br />
OPEN: Joomla Admin panel -&gt; Extensions -&gt; Install -&gt; Upload Package File:<br />
upload mod_webmessenger.zip<br />
Step 2, Configure 123Webmessenger client<br />
1). Copy 123WebMessenger client folder from &lt;123webmessenger server installed directory&gt;/client to &lt;Joomla root directory&gt;/wmclient<br />
2). Open &lt;Joomla root directory&gt;/client/js/config.js, set webpath to &lt;Joomla root directory&gt;/wmclient</p>
<p>Step 3, Integrate 123Webmessenger with Joomla user database<br />
1). Open &lt;123webmessenger server installed directory&gt;/server/etc/groups/default/server.xml<br />
Find &lt;integrated-other-database&gt;None&lt;/integrated-other-database&gt;<br />
Change it to &lt;integrated-other-database&gt;URL&lt;/integrated-other-database&gt;<br />
Find &lt;auth-url charset=&#8221;UTF-8&#8243;&gt;<a href="http://localhost/login_chat.php?username=%25username%25&amp;password=%25password%25" target="_blank">http://localhost/login_chat.php?username=%username%&amp;password=%password%</a>&lt;/auth-url&gt;<br />
Change it to  &lt;auth-url charset=&#8221;UTF-8&#8243;&gt;&lt;Joomla root directory&gt;/modules/mod_webmessenger/login_chat.php?username=%username%&amp;amp;password=%password%&lt;/auth-url&gt;<br />
2). Restart 123 Webmessenger server.<br />
Step 4, Embed 123Webmessenger into Jommla<br />
1). Open &lt;Joomla root directory&gt;/templates/&lt;your current template name&gt;/templateDetails.xml (The template name should be &#8220;rhuk_milkyway&#8221;)<br />
Find     &lt;positions&gt;<br />
After Add &lt;position&gt;webmesssenger&lt;/position&gt;<br />
2). OPEN: Joomla Admin panel -&gt; Extensions -&gt; Template Manager -&gt; choose the current template your&#8217;re using -&gt; Edit HTML<br />
Find &lt;/body&gt;<br />
Before Add &lt;jdoc:include type=&#8221;modules&#8221; name=&#8221;webmesssenger&#8221; /&gt;<br />
3). OPEN: Joomla Admin panel -&gt; Extensions -&gt; Module Manager -&gt; 123WebMessenger -&gt; configure &#8220;Client location&#8221; to &lt;Joomla root directory&gt;/wmclient<br />
Change &#8220;Position&#8221; to &#8220;webmessenger&#8221; at left panel<br />
Note: Replace &lt;123webmessenger server installed directory&gt; and &lt;Joomla root directory&gt; with the physical address in your server.<br />
Integration done, enjoy your webmessenger:)<br />
Now for friends list integration download the sample code from below url<br />
<a href="http://www.123flashchat.com/download/friendlist.zip">http://www.123flashchat.com/download/friendlist.zip</a><br />
and in userdata.php file change to database connection to match your database credentials and change the queries. For displaying friends you can just change the query stored in variable $queryFriendSql<br />
and in your 123 webmessenger server configuration file change which is located at  &lt;123webmessenger installed directory&gt;/server/etc/groups/default/server.xml<br />
change<br />
&lt;integrated-user-data url=&#8221;http://yoursite/userdata.php?action=%action%&amp;amp;username=%username%&amp;amp;<br />
destusername=%destusername%&amp;amp;friendgroup=%friendgroup%&#8221; charset=&#8221;UTF-8&#8243; enable=&#8221;On&#8221;&gt;<br />
&lt;/integrated-user-data&gt;<br />
Also in your userdata.php file change<br />
private function setFriendGroup()<br />
{<br />
if(isset($_GET['friendgroup']))<br />
{<br />
return $_GET['friendgroup'];<br />
}<br />
else $this-&gt;outputErrorMessage(&#8220;Wrong parameter input&#8221;);<br />
}<br />
=========================<br />
change to<br />
========<br />
private function setFriendGroup()<br />
{<br />
return $_GET['friendgroup'];<br />
}<br />
And that’s it you can see you Joomla user friends in the webmessenger.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuelogic.co.in/blog/2011/11/123-web-messenger-integration-with-joomla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ISO8583 message transaction method using PHP</title>
		<link>http://www.cuelogic.co.in/blog/2011/09/iso8583-message-transaction-method-using-php/</link>
		<comments>http://www.cuelogic.co.in/blog/2011/09/iso8583-message-transaction-method-using-php/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 12:01:07 +0000</pubDate>
		<dc:creator>Nikhil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[#iso8583]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.cuelogic.co.in/blog/?p=157</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
Recently we have worked on API system which has sensitive data and we decided to do not send this without encryption to prevent hacking and fishing attempts. To fulfill this requirement we decided to go with ISO 8583, ISO 8583 &#8230; <a href="http://www.cuelogic.co.in/blog/2011/09/iso8583-message-transaction-method-using-php/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
<p>Recently we have worked on API system which has sensitive data and we decided to do not send this without encryption to prevent hacking and fishing attempts. To fulfill this requirement we decided to go with ISO 8583, ISO 8583 specifies message structure, format and content, data element and values of data elements. So we have decided our own formats to send and receive messages.</p>
<p>ISO 8583 allows you define your message format and communicate between different systems best example of ISO 8583 is ATM machine, banks defines their own formats to send data between two systems. The response, authorizing or declining the transaction, needs to be returned via the same route to the terminal.</p>
<p>There are 3 main parts in each ISO 8583 message</p>
<ul style="margin: 0 0 10px 30px">
<li><strong>1. Message type indicator (MTI)</strong></li>
<li><strong>2. Bitmaps</strong></li>
<li><strong>3. Data elements</strong></li>
</ul>
<p><strong>Message type indicator (MTI)</strong>: This is 4 digit number contains ISO 8583 version, class of message, function of message &amp; who begins communication.</p>
<p><strong>Bitmaps</strong>: This is a binary field in message which tells which data element is present in message. There may be 2 or more bitmaps in a message. Primary bitmap indicates data elements from 1 to 64, same like this secondary bitmap contains 65 to 128 and tertiary bitmap contains 129 to 192 (this is rarely used).</p>
<p><strong>Data elements</strong>: This is the main part of message which contains your data in numeric format. Range of these numbers is from 1 to 128, each number have different meaning in message.</p>
<p><strong>Example of ISO8583 message: </strong>0102800000000000000000000000000001E0026nikhilt@gmail.com008cue009110722180006123456</p>
<p>To implement ISO 8583 in PHP I refer <a href="http://www.phpclasses.org/package/5398-PHP-Generate-and-parse-ISO-8583-transaction-messages.html">JAK8583</a> class.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuelogic.co.in/blog/2011/09/iso8583-message-transaction-method-using-php/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Convert Microsoft document to text, PDF or XML</title>
		<link>http://www.cuelogic.co.in/blog/2011/08/convert-microsoft-document-to-text-pdf-or-xml/</link>
		<comments>http://www.cuelogic.co.in/blog/2011/08/convert-microsoft-document-to-text-pdf-or-xml/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 09:46:31 +0000</pubDate>
		<dc:creator>Nikhil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.cuelogic.co.in/blog/?p=146</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
Few days ago we were working on a complex project to read MS Document file and parse content. Read too many articles and tried hundreds of programs but didn’t found expected output. After few days I have found one Linux &#8230; <a href="http://www.cuelogic.co.in/blog/2011/08/convert-microsoft-document-to-text-pdf-or-xml/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
<p><img src="http://www.cuelogic.co.in/blog/wp-content/uploads/2011/08/word-5-150x150.png" alt="" width="150" height="150" class="alignleft size-thumbnail wp-image-154" />Few days ago we were working on a complex project to read MS Document file and parse content. Read too many articles and tried hundreds of programs but didn’t found expected output. After few days I have found one Linux package <a href="http://www.winfield.demon.nl/" target="_blank">Antiword</a> which converts MS Document to text, XML, PDF formats. One more benefit of this tool is its platform compatible, you can use this tool on Linux, Windows, Mac and many other operating systems.</p>
<p>To install this on Linux follow below commands,</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">wget http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//www.winfield.demon.nl/linux/antiword-0.37.tar.gz</span>
tar <span style="color: #339933;">-</span>zxvf antiword<span style="color: #339933;">-</span><span style="color:#800080;">0.37</span><span style="color: #339933;">.</span>tar<span style="color: #339933;">.</span>gz
yum search antiword
yum install antiword</pre></div></div>

<p>After successfully installing Antiword use following commands to convert MS document. Following are few useful commands which you need to convert document.</p>
<p>To convert MS document to simple text use following command,</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">antiword <span style="color: #339933;">-</span>f <span style="color: #339933;">/</span>FILE_SERVER_PATH<span style="color: #339933;">/</span>test<span style="color: #339933;">.</span>doc <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">/</span> FILE_SERVER_PATH <span style="color: #339933;">/</span> test<span style="color: #339933;">.</span>txt</pre></div></div>

<p>To convert MS document to XML use following command,</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">antiword <span style="color: #339933;">-</span>x db <span style="color: #339933;">/</span>FILE_SERVER_PATH <span style="color: #339933;">/</span> test<span style="color: #339933;">.</span>doc <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #339933;">/</span> FILE_SERVER_PATH <span style="color: #339933;">/</span> test<span style="color: #339933;">.</span>xml</pre></div></div>

<p>Here are few more options to convert MS document,</p>
<ul style="margin-left: 20px">
<li><strong>-f</strong> formatted text output</li>
<li><strong>-t</strong> text output (default)</li>
<li><strong>-a</strong> &lt;paper size name&gt; Adobe PDF output</li>
<li><strong>-p</strong> &lt;paper size name&gt; PostScript output paper size like: a4, letter or legal</li>
<li><strong>-x</strong> &lt;dtd&gt; XML output like: db (DocBook)</li>
<li><strong>-m</strong> &lt;mapping&gt; character mapping file</li>
<li><strong>-w</strong> &lt;width&gt; in characters of text output</li>
<li><strong>-i</strong> &lt;level&gt; image level (PostScript only)</li>
<li><strong>-L</strong> use landscape mode (PostScript only)</li>
<li><strong>-r</strong> Show removed text</li>
<li><strong>-s</strong> Show hidden (by Word) text</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.cuelogic.co.in/blog/2011/08/convert-microsoft-document-to-text-pdf-or-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring Postfix Mail Server on Fedora Linux</title>
		<link>http://www.cuelogic.co.in/blog/2011/08/configuring-postfix-mail-server-on-fedora-linux/</link>
		<comments>http://www.cuelogic.co.in/blog/2011/08/configuring-postfix-mail-server-on-fedora-linux/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 11:33:08 +0000</pubDate>
		<dc:creator>Atul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.cuelogic.co.in/blog/?p=141</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
You must have already read my previous post related to installation of Postfix Mail Server on Fedora. Now here is how you can configure Postfix Mail Server on Fedora. If you want to know about installation of Postfix Mail Server &#8230; <a href="http://www.cuelogic.co.in/blog/2011/08/configuring-postfix-mail-server-on-fedora-linux/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
<p>You must have already read my previous post related to installation of Postfix Mail Server on Fedora. Now here is how you can configure Postfix Mail Server on Fedora.<br />
If you want to know about installation of Postfix Mail Server you can refer my previous article which can be found at following url &#8211; <a href="http://www.cuelogic.co.in/blog/2011/08/installing-postfix-mail-server-on-fedora-linux/">http://www.cuelogic.co.in/blog/2011/08/installing-postfix-mail-server-on-fedora-linux/</a></p>
<p>The main configuration settings for Postfix are located in the /etc/postfix/main.cf file. Edit the file using putty or SSH.<br />
The key options in the main.cf file are:<br />
myhostname = mta1.domain.com<br />
mydomain = domain.com<br />
myorigin = $myhostname<br />
inet_interfaces = $myhostname<br />
The myorigin and inet_interfaces options use the settings we have created so do not need to be changed (although the inet_interfaces may be commented out by default so you should remove the # at the beginning of this particular line in the main.cf file). </p>
<p>Once the /etc/postfix/main.cf file is configured with the correct settings it is now time to start up postfix. This can be achieved from the command line as follows:<br />
	/usr/sbin/postfix start<br />
The postfix process should now start up.<br />
To configure Postfix to start automatically at system startup, run the following command in a Terminal window:<br />
/sbin/chkconfig &#8211;level 345 postfix on</p>
<p>You have successfully installed and configured the Postfix Mail Sever. Now you can send mail through your site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuelogic.co.in/blog/2011/08/configuring-postfix-mail-server-on-fedora-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Postfix Mail Server on Fedora Linux</title>
		<link>http://www.cuelogic.co.in/blog/2011/08/installing-postfix-mail-server-on-fedora-linux/</link>
		<comments>http://www.cuelogic.co.in/blog/2011/08/installing-postfix-mail-server-on-fedora-linux/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 06:32:11 +0000</pubDate>
		<dc:creator>Atul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.cuelogic.co.in/blog/?p=135</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
There are lots of things which need to be installed while setting up a new LAMP server i.e. php , mysql, apache etc. Once you are done with installing the above basic and mandatory things one more thing which you &#8230; <a href="http://www.cuelogic.co.in/blog/2011/08/installing-postfix-mail-server-on-fedora-linux/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
<p>There are lots of things which need to be installed while setting up a new LAMP server i.e. php , mysql, apache etc.<br />
Once you are done with installing the above basic and mandatory things one more thing which you will have to take care of is the mail server installation. This small article will guide you on how you can install a Postfix Mail Server on Fedora Linux. </p>
<p>By default, the Fedora Linux installer does not install Postfix. To verify if Postfix is already installed, use the following rpm command in a Terminal window:<br />
If rpm reports that postfix is not installed, you can install it using below command.<br />
yum install postfix<br />
The yum tool will download and install postfix, and configure a special postfix user in the /etc/passwd file.</p>
<p>In the next article i will provide you a small introduction on how you can configure Postfix mail sever on Fedora.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuelogic.co.in/blog/2011/08/installing-postfix-mail-server-on-fedora-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Memcached for site optimization using PHP</title>
		<link>http://www.cuelogic.co.in/blog/2011/07/memcached-for-site-optimization-using-php/</link>
		<comments>http://www.cuelogic.co.in/blog/2011/07/memcached-for-site-optimization-using-php/#comments</comments>
		<pubDate>Sat, 30 Jul 2011 08:22:44 +0000</pubDate>
		<dc:creator>Nikhil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[cache in PHP]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[optimization]]></category>

		<guid isPermaLink="false">http://www.cuelogic.co.in/blog/?p=112</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
We were facing problem of MySql query optimization for one of our product, page was taking more than a minute to respond. There were few join queries which were taking too much time for processing and we don’t have any &#8230; <a href="http://www.cuelogic.co.in/blog/2011/07/memcached-for-site-optimization-using-php/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
<p>We were facing problem of MySql query optimization for one of our product, page was taking more than a minute to respond. There were few join queries which were taking too much time for processing and we don’t have any way to remove those queries because of complex database structure. We were started thinking of increasing RAM memory of database server. But after few meetings and discussions we found one more option to get MySql Query result from cache and we have started searching caching systems and we found Memcached solution to solve optimization problem. Now we can render page in 10 seconds <img src='http://www.cuelogic.co.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Memcached is a memory caching system. It is often used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read. Memcached runs on Unix, Windows and MacOS and is distributed under a permissive free software license.</p>
<p>Memcached stores values in associative array in key-value pair. To add or read from cache program should connect to server, by default connection port is 11211. Memcahed system stores data in RAM memory, if your server run out of RAM memory then you will lose data. When you restart your server old data will be discard. You can’t assume that your data will be store permanently in Memcached.<br />
To use Memcached on your server get latest version from http://memcached.org/ and install it. Once you are done with installation use following PHP code,</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> clsMemCache
<span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$objMamecache</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #000088;">$strServerIp</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;YOUR_SERVER_IP&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$strConnectPort</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;11211&quot;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>objMamecache <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Memcache<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #339933;">@</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>objMamecache<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>connect<span style="color: #009900;">&#40;</span><span style="color: #000088;">$strServerIp</span><span style="color: #339933;">,</span> <span style="color: #000088;">$strConnectPort</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">function</span> fnAddDataToMemCache<span style="color: #009900;">&#40;</span><span style="color: #000088;">$strKey</span><span style="color: #339933;">,</span><span style="color: #000088;">$arrValue</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$strKey</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arrValue</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #990000;">is_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arrValue</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$arrValue</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #339933;">@</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>objMamecache<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>set<span style="color: #009900;">&#40;</span><span style="color: #000088;">$strKey</span><span style="color: #339933;">,</span> <span style="color: #000088;">$arrValue</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">3600</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">function</span> fnGetDataFromMemCache<span style="color: #009900;">&#40;</span><span style="color: #000088;">$strKey</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$strKey</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #339933;">@</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>objMamecache<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>get<span style="color: #009900;">&#40;</span><span style="color: #000088;">$strKey</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">function</span> fnDeleteDataFromMemCache<span style="color: #009900;">&#40;</span><span style="color: #000088;">$strKey</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$strKey</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #339933;">@</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>objMamecache<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>delete<span style="color: #009900;">&#40;</span><span style="color: #000088;">$strKey</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.cuelogic.co.in/blog/2011/07/memcached-for-site-optimization-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating thumbnails for your video file using ffmpeg</title>
		<link>http://www.cuelogic.co.in/blog/2011/07/creating-thumbnails-for-your-video-file-using-ffmpeg/</link>
		<comments>http://www.cuelogic.co.in/blog/2011/07/creating-thumbnails-for-your-video-file-using-ffmpeg/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 10:39:33 +0000</pubDate>
		<dc:creator>Atul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.cuelogic.co.in/blog/?p=107</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
If you are having a tough time finding a php script which can create thumbnails from your video file, your search ends here. Below is a small php script which can help you create thumbnails for video files within no &#8230; <a href="http://www.cuelogic.co.in/blog/2011/07/creating-thumbnails-for-your-video-file-using-ffmpeg/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
<p>If you are having a tough time finding a php script which can create thumbnails from your video file, your search ends here.<br />
Below is a small php script which can help you create thumbnails for video files within no time.<br />
Note &#8211; FFMPEG must be installed on your server for this script to work.</p>
<p>/**<br />
 * RetriveThumbnail, extracts a thumbnail from a video<br />
 *<br />
 * This function loads a video and extracts an image from a frame<br />
 * @param $videoFile string input path to your video file<br />
 * @param $outputThumbnail string path where your thumbnail image will be saved<br />
 */<br />
function RetriveThumbnail($videoFile, $outputThumbnail)<br />
{<br />
    $thumb_output;<br />
    $errors;<br />
    $returnval = 0;<br />
    // Delete the file if it already exists<br />
    if (file_exists($outputThumbnail)) { unlink($outputThumbnail); }<br />
    // Use ffmpeg to generate a thumbnail from the movie<br />
    $cmd = &#8220;ffmpeg -itsoffset -4 -i &#8216;&#8221;.$videoFile.&#8221;&#8216; -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320&#215;240 $outputThumbnail 2>&#038;1&#8243;;<br />
    exec($cmd, $thumb_output, $returnval);<br />
    // Queue up the error for processing<br />
    if ($returnval != 0) { $errors[] = &#8220;FFMPEG thumbnail generation failed&#8221;; }<br />
    if (!empty($thumb_output))<br />
    {<br />
    	foreach ($thumb_output as $line)<br />
    	{<br />
    		echo $line . &#8221;<br />
\n&#8221;;<br />
    	}<br />
    }<br />
    if (!empty($errors))<br />
    {<br />
    	foreach ($errors as $error)<br />
    	{<br />
    		echo $error . &#8221;<br />
\n&#8221;;<br />
    	}<br />
    }<br />
}</p>
<p>You just need to call the above function providing appropriate values for the video file and the destination folder for your thumbnail image and the script will create an image at the specified location for you. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuelogic.co.in/blog/2011/07/creating-thumbnails-for-your-video-file-using-ffmpeg/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install phpmyadmin to operate MySQL from web</title>
		<link>http://www.cuelogic.co.in/blog/2011/07/install-phpmyadmin-to-operate-mysql-from-web/</link>
		<comments>http://www.cuelogic.co.in/blog/2011/07/install-phpmyadmin-to-operate-mysql-from-web/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 15:23:28 +0000</pubDate>
		<dc:creator>Onkar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.cuelogic.co.in/blog/?p=99</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
In my last post, we saw how to setup a LAMP on AWS. Let’s have a look into how to install phpmyadmin on your linux server. To install phpmyadmin to operate MySql from web browser, web server is needed. Steps &#8230; <a href="http://www.cuelogic.co.in/blog/2011/07/install-phpmyadmin-to-operate-mysql-from-web/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
<p>In my <a title="Getting started with Amazon EC2" href="http://www.cuelogic.co.in/blog/2011/07/getting-started-with-amazon-ec2-and-php-%E2%80%93-mysql/" target="_blank">last post</a>, we saw how to setup a LAMP on AWS. Let’s have a look into how to install <a href="http://www.phpmyadmin.net/home_page/index.php" target="_blank">phpmyadmin </a>on your linux server.</p>
<p>To install phpmyadmin to operate MySql from web browser, web server is needed.</p>
<p>Steps to install phpmyadmin</p>
<ul>
<li> <span style="color: #993300;">yum -y install phpMyAdmin php-mysql php-mcrypt</span></li>
<li><span style="color: #993300;">vi /etc/httpd/conf.d/phpMyAdmin.conf</span></li>
<li> Add IP address you allow on line #14<br />
<span style="color: #993300;">Allow from 127.0.0.1</span></li>
<li> Close Editor</li>
<li> Reload the httpd process<br />
<span style="color: #993300;">/etc/rc.d/init.d/httpd reload</span></li>
</ul>
<p>Once you are successfully run the above 6 steps, phpmyadmin is installed on your server.</p>
<p>Now we will see how we can access phpmyadmin.</p>
<p>Access to &#8216;http://(your hostname or IP address)/(alias name you set)/&#8217; with web browser.</p>
<p>Alias name is by default ‘phpmyadmin’.</p>
<p>When you enter above url on browser, it will ask you the login credentials for MySql user.</p>
<p>You can enter MySql user login credentials, can able to see phpmyadmin dashboard.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuelogic.co.in/blog/2011/07/install-phpmyadmin-to-operate-mysql-from-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing SSL on Amazon EC2 Server</title>
		<link>http://www.cuelogic.co.in/blog/2011/07/installing-ssl-on-amazon-ec2-server/</link>
		<comments>http://www.cuelogic.co.in/blog/2011/07/installing-ssl-on-amazon-ec2-server/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 10:24:17 +0000</pubDate>
		<dc:creator>Atul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.cuelogic.co.in/blog/?p=96</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
If you are looking to configure SSL signed up using GoDaddy for Apache 2.x here are the steps to reduce your headache. Initially you will need to create an CSR (Certificate Signing Request) which is required while registering SSL. Steps &#8230; <a href="http://www.cuelogic.co.in/blog/2011/07/installing-ssl-on-amazon-ec2-server/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
<p>If you are looking to configure SSL signed up using GoDaddy for Apache 2.x here are the steps to reduce your headache. </p>
<p>Initially you will need to create an CSR (Certificate Signing Request) which is required while registering SSL.<br />
Steps for creating CSR are as below<br />
Login to your shell using software such as putty / SSH  and follow the below steps &#8211;<br />
Create a directory /usr/bin/ssl/ where your csr files will be stored.<br />
Type below command from the shell<br />
1 . cd /usr/bin/ (/your path to openssl/)<br />
which will change your directory to the one which is going to store the CSR files.<br />
Then type below command on shell<br />
2. openssl genrsa -des3 -out <name of your certificate>.key 2048<br />
Replace <name of your certificate> with the name which you want.<br />
3. openssl req -new -key <name of your certificate>.key -out <name of your certificate>.csr<br />
Replace <name of your certificate> with the name which you want.<br />
The above two commands will create a .key and .csr file at the location which you have specified above (i.e. in your current working directory).<br />
Note – while creation of a CSR you will be asked the details about organization. Once you are done with this you can download the certificate from your provider.</p>
<p>Once the certificate is registered you will get two files with .crt extension. Place these two files in the same directory as the one which you have stored your CSR files.</p>
<p>Now for apache server configuration.<br />
Go to /etc/httpd/conf.d folder through shell where you will find a ssl.conf file.<br />
In ssl.conf file you will find below lines<br />
SSLCertificateFile – replace the path of your SSL certificate file (from above e.g. /usr/bin/ssl/yourcertificate.crt)<br />
SSLCertificateKeyFile &#8211; replace the path of your SSL key file (from above e.g. /usr/bin/ssl/key.crt)<br />
SSLCertificateChainFile – replace with the path of 2nd .crt file which you got after registering the certificate. (its generally named as gd_bundle.crt) (from above e.g. /usr/bin/ssl/gd_bundle.crt)</p>
<p>Your are done with SSL setup. Let your users experience a secure browsing now <img src='http://www.cuelogic.co.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuelogic.co.in/blog/2011/07/installing-ssl-on-amazon-ec2-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dynamically logging-in to the video chat room</title>
		<link>http://www.cuelogic.co.in/blog/2011/07/dynamically-logging-in-to-the-video-chat-room/</link>
		<comments>http://www.cuelogic.co.in/blog/2011/07/dynamically-logging-in-to-the-video-chat-room/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 11:54:43 +0000</pubDate>
		<dc:creator>Atul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.cuelogic.co.in/blog/?p=90</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
Once you create a room you can allow the users to login to the created room. Below is the code for same. &#60;script src=&#8221;123flashchat.js&#8221;&#62;&#60;/script&#62; &#60;script language=&#8221;javascript&#8221;&#62; init_user=&#8221;myusername&#8221;; init_password=&#8221;mypassword&#8221;; init_room=1; init_host =&#8221;www.123flashchat.com&#8221;; init_port=&#8221;91&#8243;; init_group=&#8221;default&#8221;; openSWF(123flashchat.swf&#8217;,&#8217;634&#8242;,&#8217;476&#8242;); &#60;/script&#62; &#60;noscript&#62; &#60;DIV id=&#8221;flashchat&#8221;&#62; &#60;OBJECT classid=&#8221;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&#8243; &#8230; <a href="http://www.cuelogic.co.in/blog/2011/07/dynamically-logging-in-to-the-video-chat-room/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
position: fixed;
top:40%;
left:100px;
z-index:1;
background-color:white}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:55px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
border:1px solid #808080;
			border-radius:5px 5px 5px 5px;
			box-shadow:2px 2px 5px rgba(0,0,0,0.3);float:left;
height:30px;
width:100%;
background-color:white}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:85px;
margin:4px 4px 4px 4px;
}

</style>
<p>Once you create a room you can allow the users to login to the created room. Below is the code for same.</p>
<p>&lt;script src=&#8221;123flashchat.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script language=&#8221;javascript&#8221;&gt;<br />
init_user=&#8221;myusername&#8221;;<br />
init_password=&#8221;mypassword&#8221;;<br />
init_room=1;<br />
init_host =&#8221;www.123flashchat.com&#8221;;<br />
init_port=&#8221;91&#8243;;<br />
init_group=&#8221;default&#8221;;<br />
openSWF(123flashchat.swf&#8217;,&#8217;634&#8242;,&#8217;476&#8242;);<br />
&lt;/script&gt;<br />
&lt;noscript&gt;<br />
&lt;DIV id=&#8221;flashchat&#8221;&gt;<br />
&lt;OBJECT classid=&#8221;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&#8243; codebase=&#8221;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,19,0&#8243; WIDTH=&#8221;910&#8243; HEIGHT=&#8221;600&#8243; id=&#8221;topcmm_123flashchat&#8221;&gt;<br />
&lt;PARAM NAME=movie VALUE=&#8221;123flashchat.swf?init_user=myusername&amp;init_password=mypassword&amp;init_room=1 &amp;init_host=www.123flashchat.com&amp;init_port=91&amp;init_group=default&#8221;&gt;<br />
&lt;PARAM NAME=quality VALUE=&#8221;high&#8221;&gt;<br />
&lt;PARAM NAME=&#8221;menu&#8221; value=&#8221;false&#8221;&gt;<br />
&lt;EMBED src=&#8221;123flashchat.swf?init_user=myusername&amp;init_password=mypassword&amp;init_room=1 &amp;init_host=www.123flashchat.com&amp;init_port=91&amp;init_group=default&#8221; quality=high menu=false WIDTH=&#8221;910&#8243; HEIGHT=&#8221;600&#8243; TYPE=&#8221;application/x-shockwave-flash&#8221; PLUGINSPAGE=&#8221;http://www.macromedia.com/go/getflashplayer&#8221; scale=&#8221;noscale&#8221; name=&#8221;topcmm_123flashchat&#8221; swLiveConnect=&#8221;true&#8221;&gt;&lt;/EMBED&gt;<br />
&lt;/OBJECT&gt;<br />
&lt;/DIV&gt;<br />
&nbsp;<br />
You will need to replace the values for below variables in your code<br />
init_user=&#8221;myusername&#8221;; // User&#8217;s name<br />
init_password=&#8221;mypassword&#8221;; // User&#8217;s password<br />
init_room=1; // A Valid Room Name<br />
init_host =&#8221;www.123flashchat.com&#8221;; // the primary server&#8217;s host value<br />
init_port=&#8221;91&#8243;; // the primary server&#8217;s port value<br />
&nbsp;<br />
&nbsp;<br />
That’s all … now you are ready to test your video chat application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuelogic.co.in/blog/2011/07/dynamically-logging-in-to-the-video-chat-room/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

