<?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>BioGem.Org</title>
	<atom:link href="http://www.biogem.org/feed" rel="self" type="application/rss+xml" />
	<link>http://www.biogem.org</link>
	<description>Bioinformatics Blog Site..</description>
	<lastBuildDate>Sat, 03 Jul 2010 07:57:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Running Swiss-PdbViewer on Ubuntu</title>
		<link>http://www.biogem.org/2010/07/running-swiss-pdbviewer-on-ubuntu.html</link>
		<comments>http://www.biogem.org/2010/07/running-swiss-pdbviewer-on-ubuntu.html#comments</comments>
		<pubDate>Sat, 03 Jul 2010 07:44:08 +0000</pubDate>
		<dc:creator>Ashok Kumar</dc:creator>
				<category><![CDATA[Bioinformatics]]></category>
		<category><![CDATA[Clustal X]]></category>
		<category><![CDATA[EMBOSS]]></category>
		<category><![CDATA[ExPASy]]></category>
		<category><![CDATA[PyMOL]]></category>
		<category><![CDATA[RasMol]]></category>
		<category><![CDATA[SPDBV]]></category>
		<category><![CDATA[Swiss Model]]></category>
		<category><![CDATA[Swiss-PdbViewer]]></category>

		<guid isPermaLink="false">http://www.biogem.org/?p=326</guid>
		<description><![CDATA[DeepView &#8211; Swiss-PdbViewer (or SPDBV) is an bioinformatics application that provides a user friendly graphical interface allowing to view and analyze protein and nucleic acid structure. This program is associated with Swiss-Model (an automated homology modeling server running in the Geneva Glaxo Welcome Experimental Research), accessible via the ExPASy web server. Through this application,  proteins [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="font-family: georgia,palatino;"><span style="font-size: small;"><a href="http://spdbv.vital-it.ch/">DeepView &#8211; Swiss-PdbViewer</a> (or SPDBV) is an bioinformatics application that provides a user friendly graphical interface allowing to view and analyze protein and nucleic acid structure. This program is associated with <a href="http://swissmodel.expasy.org/">Swiss-Model</a> (an automated homology modeling server running in the Geneva Glaxo Welcome Experimental Research), accessible via the ExPASy web server. Through this application,  proteins can be superimposed in order to deduce structural alignments and compare their active sites or any other relevant parts. Amino acid mutations, H-bonds, angles and distances between atoms are easy to obtain thanks to the intuitive graphic and menu interface.<span id="more-326"></span></span></span></p>
<p style="text-align: justify;"><span style="font-family: georgia,palatino;">Working with these two programs greatly reduces the amount of work necessary to generate models, as it is possible to thread a protein primary sequence onto a 3D template and get an immediate feedback of how well the threaded protein will be accepted by the reference structure before submitting a request to build missing loops and refine sidechain packing.</span></p>
<p style="text-align: justify;"><span style="font-family: georgia,palatino;">Swiss-PdbViewer can also read electron density maps, and provides various tools to build into the density. In addition, various modeling tools are integrated and command files for popular energy minimization packages can be generated.</span></p>
<p style="text-align: justify;"><span style="font-family: georgia,palatino;">Currently Swiss-PdbViewer is released for Microsoft Windows and Macintosh OS. In order to run Swiss-PdbViewer in Ubuntu OS, a windows application loader <a href="http://www.winehq.org/">WINE</a> must be installed.</span></p>
<h3 style="text-align: justify;"><strong><span style="font-family: georgia,palatino;"><span style="color: #ff0000;"><span style="font-size: small;">What is Wine?</span></span></span></strong></h3>
<h3 style="text-align: justify;"><span style="font-family: georgia,palatino;"><span style="font-size: small;"> </span></span></h3>
<p style="text-align: justify;"><span style="font-family: georgia,palatino;"><span style="font-size: small;">Wine is an implementation of Windows APIs on top of X and Unix. Think of Wine as a Windows compatibility layer. Wine provides a program loader, allowing many unmodified Windows binaries to run under Intel Unixes. Wine works on most popular Intel Unixes, including Linux, FreeBSD, and Solaris.</span></span></p>
<p><span style="font-family: georgia,palatino;">In Linux Ubuntu OS, Wine can be easily installed through Ubuntu Software Center.</span></p>
<h3 style="text-align: justify;"><strong><span style="font-family: georgia,palatino;"><span style="color: #ff0000;"><span style="font-size: small;">Steps to install Wine</span></span></span></strong></h3>
<h3 style="text-align: justify;"><span style="font-family: georgia,palatino;"><span style="font-size: small;"> </span></span></h3>
<p style="text-align: justify;"><span style="font-family: georgia,palatino;"><span style="font-size: small;">To install Wine, simply follow these steps.</span></span></p>
<p><span style="font-family: georgia,palatino;">1. Go to <em>Applications</em> -&gt; <em>Ubuntu Software Center</em>.</span></p>
<p><span style="font-family: georgia,palatino;"><a href="http://www.biogem.org/wp-content/uploads/2010/07/UbuntuSoftwareCenter.png"><img class="aligncenter size-medium wp-image-337" title="Ubuntu Software Center" src="http://www.biogem.org/wp-content/uploads/2010/07/UbuntuSoftwareCenter-300x177.png" alt="Ubuntu Software Center" width="300" height="177" /></a></span></p>
<p><span style="font-size: small;"><span style="font-family: georgia,palatino;">2. Click the tab <em>Get Free Software</em>.<br />
3. In the search bar type keyword &#8220;<em>wine</em>&#8220;.</span></span></p>
<p><span style="font-family: georgia,palatino;"><a href="http://www.biogem.org/wp-content/uploads/2010/07/1.png"><img class="aligncenter size-medium wp-image-338" title="Wine in Ubuntu" src="http://www.biogem.org/wp-content/uploads/2010/07/1-300x198.png" alt="Wine in Ubuntu" width="300" height="198" /></a></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;">4. Select the hit <em>Wine Microsoft Windows Compatibility Layer</em> and press forward button.<br />
5. Click the <em>Install</em> button.</span></span></p>
<p><span style="font-family: georgia,palatino;"><a href="http://www.biogem.org/wp-content/uploads/2010/07/2.png"><img class="aligncenter size-medium wp-image-339" title="Wine in Ubuntu Screenshot." src="http://www.biogem.org/wp-content/uploads/2010/07/2-300x199.png" alt="Wine in Ubuntu Screenshot." width="300" height="199" /></a><br />
</span></p>
<h3><strong><span style="font-family: georgia,palatino;"><span style="color: #ff0000;"><span style="font-size: small;">Steps to run SPDBV</span></span></span></strong></h3>
<h3><span style="font-family: georgia,palatino;"><span style="font-size: small;"> </span></span></h3>
<p style="text-align: justify;"><span style="font-family: georgia,palatino;"><span style="font-size: small;">1. Download the windows compatible Swiss-PdbViewer application from <a href="http://spdbv.vital-it.ch/download.html">SPDBV download site</a> and decompress it.<br />
2. Open the decompressed folder. Right click the application <em>spdbv.exe</em> and open with <em>Wine Windows Program Loader</em>.</span></span></p>
<p style="text-align: justify;"><span style="font-family: georgia,palatino;"><span style="font-size: small;"><a href="http://www.biogem.org/wp-content/uploads/2010/07/5.png"><img class="aligncenter size-medium wp-image-341" title="Swiss-PdbViewer in Ubuntu using Wine." src="http://www.biogem.org/wp-content/uploads/2010/07/5-300x283.png" alt="Swiss-PdbViewer in Ubuntu using Wine." width="300" height="283" /></a><br />
</span></span></p>
<p><span style="font-family: georgia,palatino;">Other bioinformatics tools such as RasMol, Clustal X, TreeView, SeaView, PyMOL, Cn3D, EMBOSS, fastDNAml, etc can be installed instantly through Ubuntu Software Center.</span></p>
<p><span style="font-family: georgia,palatino;"><strong>Note:</strong> You must be on-line while installing the application.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.biogem.org/2010/07/running-swiss-pdbviewer-on-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Embedding Perl into Perl</title>
		<link>http://www.biogem.org/2010/06/embedding-perl-into-perl.html</link>
		<comments>http://www.biogem.org/2010/06/embedding-perl-into-perl.html#comments</comments>
		<pubDate>Sun, 06 Jun 2010 17:39:24 +0000</pubDate>
		<dc:creator>Ashok Kumar</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Common Gateway Interface]]></category>
		<category><![CDATA[Embedding]]></category>

		<guid isPermaLink="false">http://www.biogem.org/?p=289</guid>
		<description><![CDATA[This article describes embedding a Perl script into a Perl script. This program is an Common Gateway Interface, which reads ASCII files through file upload and displays content of the file. The Perl script upload.pl is called through the Perl script file-upload.pl using function eval{ }. This program can be modified to call by reference [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="font-size: small;">This article describes embedding a Perl script into a Perl script. This program is an Common Gateway Interface, which reads ASCII files through file upload and displays content of the file. The Perl script <em>upload.pl</em> is called through the Perl script <em>file-upload.pl</em> using function eval{ }. This program can be modified to call by reference function, to access in other programs too.</span></p>
<p><span style="font-size: small;"><strong><span id="more-289"></span>file-upload.html</strong></span><span style="font-size: small;"><br />
<span style="font-family: courier new,courier;">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;File Upload&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form method=&#8221;post&#8221; action=&#8221;/cgi-bin/file-upload.pl&#8221; enctype=&#8221;multipart/form-data&#8221;&gt;<br />
Enter the file to upload:&lt;br&gt;<br />
&lt;input name=&#8221;file&#8221; size=&#8221;45&#8243; type=&#8221;file&#8221;&gt;&lt;br&gt;<br />
&lt;p&gt;<br />
&lt;input name=&#8221;reset&#8221; type=&#8221;reset&#8221;&gt;<br />
&lt;input name=&#8221;submit&#8221; value=&#8221;Upload&#8221; type=&#8221;submit&#8221;&gt;<br />
&lt;/p&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
</span></span></p>
<p><span style="font-size: small;"><strong>file-upload.pl</strong><br />
<span style="font-family: courier new,courier;">#!/usr/bin/perl<br />
eval { require &#8220;upload.pl&#8221; };<br />
my @x = upload();<br />
print &#8220;Content-type: text/html\n\n&#8221;;<br />
print &#8220;&lt;font face=&#8217;courier new&#8217;&gt;&#8221;,@x,&#8221;&lt;/font&gt;&#8221;;</span></span></p>
<p><span style="font-size: small;"><strong>upload.pl</strong><br />
<span style="font-family: courier new,courier;">#!/usr/bin/perl<br />
use strict &#8216;refs&#8217;;<br />
use lib &#8216;..&#8217;;<br />
use CGI qw(:standard);<br />
use CGI::Carp qw(fatalsToBrowser);<br />
sub upload()<br />
{<br />
my $file = param(&#8217;file&#8217;);<br />
while (&lt;param(&#8217;file&#8217;)&gt;)<br />
{<br />
@_ = &lt;$file&gt;;<br />
}<br />
return (@_);<br />
}</span></span></p>
<p><span style="font-size: small;"><span style="font-family: courier new,courier;"><strong><span style="font-family: georgia,palatino;">Note: </span></strong><span style="font-family: georgia,palatino;">Both Perl scripts must granted file permission (<span style="font-family: verdana,geneva;">0755</span>)</span><br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.biogem.org/2010/06/embedding-perl-into-perl.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RNA to Protein Translation in PERL</title>
		<link>http://www.biogem.org/2010/03/rna-to-protein-translation-in-perl.html</link>
		<comments>http://www.biogem.org/2010/03/rna-to-protein-translation-in-perl.html#comments</comments>
		<pubDate>Tue, 09 Mar 2010 16:11:44 +0000</pubDate>
		<dc:creator>Ashok Kumar</dc:creator>
				<category><![CDATA[BioProgramming]]></category>
		<category><![CDATA[RNA Protein Translation PERL]]></category>

		<guid isPermaLink="false">http://www.biogem.org/?p=240</guid>
		<description><![CDATA[In PERL programing, RNA sequence is converted into protein sequence by substituting equivalent amino acid characters to triplet characters of RNA. This method is followed to find six reading frame (three in forward direction, and three in reverse direction). In this program, I have used associative array (also known as hash array) to associate triplet [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: georgia,palatino;">In PERL programing, RNA sequence is converted into protein sequence by substituting equivalent amino acid characters to triplet characters of RNA. This method is followed to find six reading frame (three in forward direction, and three in reverse direction). In this program, I have used associative array (also known as hash array) to associate triplet characters with amino acid character.</span></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: georgia,palatino;"><span id="more-240"></span></span></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: georgia,palatino;">The associate array corresponding to codon table is arranged to 20 amino acid character. The triplet codon table is shown bellow:</span></span></p>
<p style="text-align: center;"><span style="font-size: small;"><a href="http://www.biogem.org/codon.jpg"><img class="aligncenter" style="vertical-align: middle;" title="Triplet Codon Table" src="http://www.biogem.org/codon.jpg" alt="Triplet Codon Table" width="449" height="337" /></a></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: georgia,palatino;"><br />
</span></span></p>
<p style="text-align: center;"><span style="font-size: small;"><span style="font-family: georgia,palatino;"> </span></span></p>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: georgia,palatino;">Source Code:</span></strong></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><strong><span style="font-family: courier new,courier;"><span style="color: #ff0000;">print &#8220;Enter the RNA sequence: &#8220;;<br />
$rna = &lt;&gt;;<br />
chomp($rna);<br />
$rna =~s/[^acgu]//ig;<br />
my $rna = uc($rna);<br />
my(%genetic_code) = (<br />
&#8216;UCA&#8217; =&gt; &#8216;S&#8217;, # Serine<br />
&#8216;UCC&#8217; =&gt; &#8216;S&#8217;, # Serine<br />
&#8216;UCG&#8217; =&gt; &#8216;S&#8217;, # Serine<br />
&#8216;UCU&#8217; =&gt; &#8216;S&#8217;, # Serine<br />
&#8216;UUC&#8217; =&gt; &#8216;F&#8217;, # Phenylalanine<br />
&#8216;UUU&#8217; =&gt; &#8216;F&#8217;, # Phenylalanine<br />
&#8216;UUA&#8217; =&gt; &#8216;L&#8217;, # Leucine<br />
&#8216;UUG&#8217; =&gt; &#8216;L&#8217;, # Leucine<br />
&#8216;UAC&#8217; =&gt; &#8216;Y&#8217;, # Tyrosine<br />
&#8216;UAU&#8217; =&gt; &#8216;Y&#8217;, # Tyrosine<br />
&#8216;UAA&#8217; =&gt; &#8216;_&#8217;, # Stop<br />
&#8216;UAG&#8217; =&gt; &#8216;_&#8217;, # Stop<br />
&#8216;UGC&#8217; =&gt; &#8216;C&#8217;, # Cysteine<br />
&#8216;UGU&#8217; =&gt; &#8216;C&#8217;, # Cysteine<br />
&#8216;UGA&#8217; =&gt; &#8216;_&#8217;, # Stop<br />
&#8216;UGG&#8217; =&gt; &#8216;W&#8217;, # Tryptophan<br />
&#8216;CUA&#8217; =&gt; &#8216;L&#8217;, # Leucine<br />
&#8216;CUC&#8217; =&gt; &#8216;L&#8217;, # Leucine<br />
&#8216;CUG&#8217; =&gt; &#8216;L&#8217;, # Leucine<br />
&#8216;CUU&#8217; =&gt; &#8216;L&#8217;, # Leucine<br />
&#8216;CCA&#8217; =&gt; &#8216;P&#8217;, # Proline<br />
&#8216;CAU&#8217; =&gt; &#8216;H&#8217;, # Histidine<br />
&#8216;CAA&#8217; =&gt; &#8216;Q&#8217;, # Glutamine<br />
&#8216;CAG&#8217; =&gt; &#8216;Q&#8217;, # Glutamine<br />
&#8216;CGA&#8217; =&gt; &#8216;R&#8217;, # Arginine<br />
&#8216;CGC&#8217; =&gt; &#8216;R&#8217;, # Arginine<br />
&#8216;CGG&#8217; =&gt; &#8216;R&#8217;, # Arginine<br />
&#8216;CGU&#8217; =&gt; &#8216;R&#8217;, # Arginine<br />
&#8216;AUA&#8217; =&gt; &#8216;I&#8217;, # Isoleucine<br />
&#8216;AUC&#8217; =&gt; &#8216;I&#8217;, # Isoleucine<br />
&#8216;AUU&#8217; =&gt; &#8216;I&#8217;, # Isoleucine<br />
&#8216;AUG&#8217; =&gt; &#8216;M&#8217;, # Methionine<br />
&#8216;ACA&#8217; =&gt; &#8216;T&#8217;, # Threonine<br />
&#8216;ACC&#8217; =&gt; &#8216;T&#8217;, # Threonine<br />
&#8216;ACG&#8217; =&gt; &#8216;T&#8217;, # Threonine<br />
&#8216;ACU&#8217; =&gt; &#8216;T&#8217;, # Threonine<br />
&#8216;AAC&#8217; =&gt; &#8216;N&#8217;, # Asparagine<br />
&#8216;AAU&#8217; =&gt; &#8216;N&#8217;, # Asparagine<br />
&#8216;AAA&#8217; =&gt; &#8216;K&#8217;, # Lysine<br />
&#8216;AAG&#8217; =&gt; &#8216;K&#8217;, # Lysine<br />
&#8216;AGC&#8217; =&gt; &#8216;S&#8217;, # Serine<br />
&#8216;AGU&#8217; =&gt; &#8216;S&#8217;, # Serine<br />
&#8216;AGA&#8217; =&gt; &#8216;R&#8217;, # Arginine<br />
&#8216;AGG&#8217; =&gt; &#8216;R&#8217;, # Arginine<br />
&#8216;CCC&#8217; =&gt; &#8216;P&#8217;, # Proline<br />
&#8216;CCG&#8217; =&gt; &#8216;P&#8217;, # Proline<br />
&#8216;CCU&#8217; =&gt; &#8216;P&#8217;, # Proline<br />
&#8216;CAC&#8217; =&gt; &#8216;H&#8217;, # Histidine<br />
&#8216;GUA&#8217; =&gt; &#8216;V&#8217;, # Valine<br />
&#8216;GUC&#8217; =&gt; &#8216;V&#8217;, # Valine<br />
&#8216;GUG&#8217; =&gt; &#8216;V&#8217;, # Valine<br />
&#8216;GUU&#8217; =&gt; &#8216;V&#8217;, # Valine<br />
&#8216;GCA&#8217; =&gt; &#8216;A&#8217;, # Alanine<br />
&#8216;GCC&#8217; =&gt; &#8216;A&#8217;, # Alanine<br />
&#8216;GCG&#8217; =&gt; &#8216;A&#8217;, # Alanine<br />
&#8216;GCU&#8217; =&gt; &#8216;A&#8217;, # Alanine<br />
&#8216;GAC&#8217; =&gt; &#8216;D&#8217;, # Aspartic Acid<br />
&#8216;GAU&#8217; =&gt; &#8216;D&#8217;, # Aspartic Acid<br />
&#8216;GAA&#8217; =&gt; &#8216;E&#8217;, # Glutamic Acid<br />
&#8216;GAG&#8217; =&gt; &#8216;E&#8217;, # Glutamic Acid<br />
&#8216;GGA&#8217; =&gt; &#8216;G&#8217;, # Glycine<br />
&#8216;GGC&#8217; =&gt; &#8216;G&#8217;, # Glycine<br />
&#8216;GGG&#8217; =&gt; &#8216;G&#8217;, # Glycine<br />
&#8216;GGU&#8217; =&gt; &#8216;G&#8217;  # Glycine<br />
);<br />
my ($protein) = &#8220;&#8221;;<br />
for(my $i=0;$i&lt;length($rna)-2;$i+=3)<br />
{<br />
$codon = substr($rna,$i,3);<br />
$protein .= $genetic_code{$codon};<br />
}<br />
print &#8220;Translated protein sequence is $protein&#8221;;<br />
&lt;&gt;;</span></span></strong></span></p>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: georgia,palatino;">This program can also used for six reading frame, by changing the three character shift in forward and reverse of the RNA sequence.</span></span></p>
<p style="text-align: justify;"><span style="font-size: small;"><span style="font-family: georgia,palatino;"><br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.biogem.org/2010/03/rna-to-protein-translation-in-perl.html/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Doing Simulation using Discovery Studio 2.1</title>
		<link>http://www.biogem.org/2010/02/doing-simulation-using-discovery-studio-2-1.html</link>
		<comments>http://www.biogem.org/2010/02/doing-simulation-using-discovery-studio-2-1.html#comments</comments>
		<pubDate>Sat, 20 Feb 2010 23:29:45 +0000</pubDate>
		<dc:creator>Ashok Kumar</dc:creator>
				<category><![CDATA[Bioinformatics]]></category>
		<category><![CDATA[Accelrys]]></category>
		<category><![CDATA[Simulation]]></category>

		<guid isPermaLink="false">http://www.biogem.org/?p=198</guid>
		<description><![CDATA[The protocols and tools under Simulation allow you to run energy calculations, solvation, energy minimization, and molecular dynamics simulations using the CHARMm and other programs.
The protocols under Simulation serve the following types of users:


Novice protein modelers and computational chemists who are interested primarily in running pre-defined simulation protocols to provide simple minimization or dynamics of [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="font-size: medium;"><span style="font-size: small;">The protocols and tools under Simulation allow you to run energy calculations, solvation, energy minimization, and molecular dynamics simulations using the CHARMm and other programs.</span></span></p>
<p style="text-align: justify;"><span style="font-size: medium;"><span style="font-size: small;">The protocols under Simulation serve the following types of users:</span></span></p>
<p><span id="more-198"></span></p>
<ol style="text-align: justify;">
<li><span style="font-size: medium;"><span style="font-size: small;">Novice protein modelers and computational chemists who are interested primarily in running pre-defined simulation protocols to provide simple minimization or dynamics of the molecular structure under study. Novice protein modelers and computational chemists will find that the protocols are an easy way to run predetermined workflows with a minimal amount of configuration.</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Expert protein modelers and computational chemists who are interested in running several simulation steps independently and trying out different parameterizations.</span></span></li>
</ol>
<p style="text-align: justify;"><span style="font-size: large;"><span style="font-family: times new roman,times;"><strong><span style="color: #0066cc;"><span style="font-size: small;">Analysis Goals</span></span></strong></span></span></p>
<p style="text-align: justify;"><span style="font-size: medium;"><span style="font-size: small;">You can use Simulation methods to:</span></span></p>
<ul style="text-align: justify;">
<li><span style="font-size: medium;"><span style="font-size: small;">Analyze molecular trajectories</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Calculate energies using molecular mechanics or QM-MM based methods</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Calculate interaction energies</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Equilibrate a molecule with molecular dynamics</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Perform a dynamics simulation to adjust the temperature of a molecule</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Perform molecular dynamics on a pre-equilibrated molecule</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Minimize a molecule using molecular mechanics or QM-MM</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Calculate the radial distribution function for two sets of atoms in a trajectory</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Solvate a system by adding water molecules</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Perform a set of minimization and equilibration steps followed by molecular dynamics</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Calculate fundamental motions (Principal Components) of a trajectory</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Prepare structures for simulation using the forcefield tools</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Apply constraints on atoms in structures before performing simulation analysis</span></span></li>
<li><span style="font-size: medium;"><span style="font-size: small;">Analyze molecular trajectories</span></span></li>
</ul>
<p style="text-align: justify;"><span style="font-size: large;"><span style="font-family: times new roman,times;"><strong><span style="color: #0066cc;"><span style="font-size: small;">Simulation Tasks</span></span></strong></span></span></p>
<p style="text-align: justify;"><span style="font-size: medium;"><span style="font-family: times new roman,times;"><span style="font-size: small;">The following table describes the basic tasks that are possible with the Simulation methods. </span><a class="aligncenter" href="http://www.biogem.org/Accelrys/Simulation/simu.html" target="_blank"><span style="font-size: small;">Read more..</span></a></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.biogem.org/2010/02/doing-simulation-using-discovery-studio-2-1.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Protein Modeling using Discovery Studio 2.1</title>
		<link>http://www.biogem.org/2010/01/protein-modeling-using-discovery-studio-2-1.html</link>
		<comments>http://www.biogem.org/2010/01/protein-modeling-using-discovery-studio-2-1.html#comments</comments>
		<pubDate>Mon, 18 Jan 2010 15:53:19 +0000</pubDate>
		<dc:creator>Ashok Kumar</dc:creator>
				<category><![CDATA[Bioinformatics]]></category>
		<category><![CDATA[Accelrys]]></category>
		<category><![CDATA[Discovery Studio 2.1]]></category>
		<category><![CDATA[Protein Modelling]]></category>

		<guid isPermaLink="false">http://www.biogem.org/?p=191</guid>
		<description><![CDATA[Experimental structure determination involves difficult methods that require a significant amount of expertise and resources. Protein Modeling on the other hand enables access to sensible structural models in much shorter periods of time. The major aim of protein modeling is the prediction of a protein&#8217;s tertiary structure from its primary structure. To this end a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Experimental structure determination involves difficult methods that require a significant amount of expertise and resources. Protein Modeling on the other hand enables access to sensible structural models in much shorter periods of time. The major aim of protein modeling is the prediction of a protein&#8217;s tertiary structure from its primary structure. To this end a diverse range of approaches have been developed comparative, de novo or ab initio structure prediction.</p>
<p><span id="more-191"></span></p>
<p style="text-align: justify;">The protein modeling methods provided in Discovery Studio provide an extensive set of tools for the construction of molecular structures and analysis of their behavior.</p>
<p style="text-align: justify;">
<div id="attachment_235" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.biogem.org/wp-content/uploads/2009/12/DS.png"><img class="size-medium wp-image-235 " title="Protein Modeling in Accelrys Discovery Studio 2.1" src="http://www.biogem.org/wp-content/uploads/2009/12/DS-300x264.png" alt="Protein Modeling in Accelrys Discovery Studio 2.1" width="300" height="264" /></a><p class="wp-caption-text">Protein Modeling in Accelrys Discovery Studio 2.1</p></div>
<p style="text-align: justify;"><strong><span style="color: #0066cc; font-size: x-small;"><span style="font-size: medium;">Analysis Goals</span></span></strong></p>
<p style="text-align: justify;">Protein Modeling provides tools and protocols that allow you to:</p>
<ul style="text-align: justify;">
<li>Build and edit proteins or peptides</li>
<li>Modify protein structures and generate reports of protein structures</li>
<li>Identify and report abnormalities in a protein structure</li>
<li>Align sequences according to sequence similarity or structure similarity</li>
<li>Build homology models for a protein sequence</li>
<li>Refine side-chain conformation of a protein structure</li>
<li>Refine conformation of one or more loop regions of a protein structure</li>
<li>Mutate residues and optimize structure</li>
<li>Predict protein docking conformations</li>
<li>Model antibody structure and variable loop conformations</li>
<li>Analyze the sequence conservation pattern of a sequence family</li>
<li>Identify conserved functional patches in a protein structure</li>
</ul>
<p style="text-align: justify;"><strong><span style="color: #0066cc; font-size: x-small;"><span style="font-size: medium;">Protein Modeling Tasks</span></span></strong></p>
<p style="text-align: justify;">The following table describes the basic tasks that are possible with the Protein Modeling methods in Discovery Studio. <a class="aligncenter" href="http://www.biogem.org/Accelrys/ProteinModeling/prmo.html" target="_blank">Click here for tutorial&#8230;.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.biogem.org/2010/01/protein-modeling-using-discovery-studio-2-1.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Running JAVA program in Linux Ubuntu</title>
		<link>http://www.biogem.org/2009/12/running-java-program-in-linux-ubuntu.html</link>
		<comments>http://www.biogem.org/2009/12/running-java-program-in-linux-ubuntu.html#comments</comments>
		<pubDate>Wed, 16 Dec 2009 15:49:39 +0000</pubDate>
		<dc:creator>Ashok Kumar</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[JAVA]]></category>
		<category><![CDATA[jre6]]></category>

		<guid isPermaLink="false">http://www.biogem.org/?p=181</guid>
		<description><![CDATA[Steps to run JAVA program in Ubuntu:
1. Go to Applications &#62; Accessories &#62; Terminal, to open terminal window.
2. Type the following in command line
gedit Add.java
3. Enter the code bellow in the editor.
/* Addition of two numbers &#8211; Add.java */
import java.io.*;
class Add
{
public static void main(String args[])
{
InputStreamReader ISR = new InputStreamReader(System.in);
BufferedReader BR = new BufferedReader(ISR);
int a = [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: medium;"><span style="font-family: georgia,palatino;"><span style="color: #ff0000;"><strong>Steps to run JAVA program in Ubuntu:</strong></span></span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;">1. Go to <em>Applications</em> &gt; <em>Accessories</em> &gt;<em> Terminal</em>, to open terminal window.</span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;">2. Type the following in command line</span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;"><em><span style="color: #0000ff;">gedit Add.java<span id="more-181"></span></span></em></span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;">3. Enter the code bellow in the editor.</span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;"><em><span style="color: #0000ff;">/* Addition of two numbers &#8211; Add.java */<br />
import java.io.*;<br />
class Add<br />
{<br />
public static void main(String args[])<br />
{<br />
InputStreamReader ISR = new InputStreamReader(System.in);<br />
BufferedReader BR = new BufferedReader(ISR);<br />
int a = 0, b = 0;<br />
try<br />
{<br />
System.out.print(&#8221;Enter the first number: &#8220;);<br />
a = Integer.parseInt(BR.readLine());<br />
System.out.print(&#8221;Enter the second number: &#8220;);<br />
b = Integer.parseInt(BR.readLine());<br />
}<br />
catch(Exception e)<br />
{<br />
System.out.println(&#8221;Check the program.&#8221;);<br />
}<br />
System.out.println(&#8221;Addition of &#8221; + a + &#8221; + &#8221; + b + &#8221; is&#8221; + (a+b));<br />
}<br />
}</span></em></span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;">4. Save the file and close to return to terminal window.</span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;">5. Firstly compile the code using the following command</span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;"><em><span style="color: #0000ff;">javac Add.java</span></em></span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;">That would produce an class file you may need to run the program.</span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;">7. Now run this executable using the following command</span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;"><em><span style="color: #0000ff;">java Add</span></em></span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;">8. Output should show as follows</span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;"><em><span style="color: #ff0000;">Enter the first number: 49<br />
Enter the second number: 2<br />
Addition of 49 + 2 is 51</span></em></span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="font-size: small;"><strong>Note: </strong>If java is not present in the system, download it through terminal window using command <em><span style="color: #0000ff;">sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk</span></em></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.biogem.org/2009/12/running-java-program-in-linux-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Installing and Configuring XAMPP in Windows 7</title>
		<link>http://www.biogem.org/2009/12/installing-and-configuring-xampp-in-windows-7.html</link>
		<comments>http://www.biogem.org/2009/12/installing-and-configuring-xampp-in-windows-7.html#comments</comments>
		<pubDate>Mon, 14 Dec 2009 16:29:30 +0000</pubDate>
		<dc:creator>Ashok Kumar</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[WebServer]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://www.biogem.org/?p=148</guid>
		<description><![CDATA[Many people know from their own experience that it&#8217;s not easy to install an Apache web server and it gets harder if you want to add MySQL, PHP and Perl.
XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use &#8211; just download, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Many people know from their own experience that it&#8217;s not easy to install an Apache web server and it gets harder if you want to add MySQL, PHP and Perl.</p>
<p style="text-align: justify;">XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use &#8211; just download, extract and start.</p>
<p style="text-align: justify;">At the moment there are four XAMPP distributions:</p>
<p><span id="more-148"></span><br />
<a name="295"></a></p>
<h4><a href="http://www.apachefriends.org/en/xampp-linux.html"><img src="http://www.apachefriends.org/img/afbullet.gif" border="0" alt="*" /> XAMPP for Linux <img src="http://www.apachefriends.org/img/link.gif" border="0" alt="" /></a></h4>
<p style="text-align: justify;">The distribution for Linux systems (tested for SuSE, RedHat, Mandrake and Debian) contains: Apache, MySQL, PHP &amp; PEAR, Perl, ProFTPD, phpMyAdmin, OpenSSL, GD, Freetype2, libjpeg, libpng, gdbm, zlib, expat, Sablotron, libxml, Ming, Webalizer, pdf class, ncurses, mod_perl, FreeTDS, gettext, mcrypt, mhash, eAccelerator, SQLite and IMAP C-Client. <a name="296"></a></p>
<h4 style="text-align: justify;"><a href="http://www.apachefriends.org/en/xampp-windows.html"><img src="http://www.apachefriends.org/img/afbullet.gif" border="0" alt="*" /> XAMPP for Windows <img src="http://www.apachefriends.org/img/link.gif" border="0" alt="" /></a></h4>
<p style="text-align: justify;">The distribution for Windows 2000, 2003, XP and Vista. This version contains: Apache, MySQL, PHP + PEAR, Perl, mod_php, mod_perl, mod_ssl, OpenSSL, phpMyAdmin, Webalizer, Mercury Mail Transport System for Win32 and NetWare Systems v3.32, Ming, JpGraph, FileZilla FTP Server, mcrypt, eAccelerator, SQLite, and WEB-DAV + mod_auth_mysql. <a name="885"></a></p>
<h4 style="text-align: justify;"><a href="http://www.apachefriends.org/en/xampp-macosx.html"><img src="http://www.apachefriends.org/img/afbullet.gif" border="0" alt="*" /> XAMPP for Mac OS X <img src="http://www.apachefriends.org/img/link.gif" border="0" alt="" /></a></h4>
<p style="text-align: justify;">The distribution for Mac OS X contains: Apache, MySQL, PHP &amp; PEAR, SQLite, Perl, ProFTPD, phpMyAdmin, OpenSSL, GD, Freetype2, libjpeg, libpng, zlib, Ming, Webalizer, mod_perl. <a name="297"></a></p>
<h4><a href="http://www.apachefriends.org/en/xampp-solaris.html"><img src="http://www.apachefriends.org/img/afbullet.gif" border="0" alt="*" /> XAMPP for Solaris <img src="http://www.apachefriends.org/img/link.gif" border="0" alt="" /></a></h4>
<p style="text-align: justify;">The distribution for Solaris (developed and tested with Solaris 8, tested with Solaris 9) contains: Apache, MySQL, PHP &amp; PEAR, Perl, ProFTPD, phpMyAdmin, OpenSSL, Freetype2, libjpeg, libpng, zlib, expat, Ming, Webalizer, pdf class.   WARNING: This version of XAMPP is still in the first steps of development. Use at you own risk!</p>
<h2>Easy installation and deinstallation</h2>
<p style="text-align: justify;">To install XAMPP you only need to download and extract XAMPP, that&#8217;s all. There are no changes to the Windows registry (not true if you use the Windows installer version of XAMPP) and it&#8217;s not necessary to edit any configuration files. It couldn&#8217;t be easier!To check that XAMPP is working some sample programs are included, there is a small CD collection program (written in PHP using MySQL) and a small guest book software (written in Perl) and several other demonstration utilities.</p>
<p style="text-align: justify;">If you decide that XAMPP isn&#8217;t needed any more just delete the XAMPP directory and it&#8217;s completely removed from your system.</p>
<p style="text-align: justify;">However if you use the Windows installer version of XAMPP it&#8217;s recommended to use the uninstall feature. As every installer the installer will make registry entries to remember the install.</p>
<h3><span style="color: #ff0000;">Steps to install:</span></h3>
<h4><span style="color: #008000;">Step 1:</span></h4>
<p><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/1.jpg"><img class="aligncenter size-medium wp-image-156" src="http://www.biogem.org/wp-content/uploads/2009/12/1-300x224.jpg" alt="" width="300" height="224" /></a><br />
</span></p>
<h4><span style="color: #008000;">Step 2:</span></h4>
<p style="text-align: center;"><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/3.jpg"><img class="aligncenter size-medium wp-image-158" src="http://www.biogem.org/wp-content/uploads/2009/12/31-300x224.jpg" alt="" width="300" height="224" /></a><br />
</span></p>
<h4><span style="color: #008000;">Step 3:</span></h4>
<p><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/4.jpg"><img class="aligncenter size-medium wp-image-159" src="http://www.biogem.org/wp-content/uploads/2009/12/4-300x151.jpg" alt="" width="300" height="151" /></a><br />
</span></p>
<h4><span style="color: #008000;">Step 4:</span></h4>
<p><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/5.jpg"><img class="aligncenter size-medium wp-image-160" title="XAMPP" src="http://www.biogem.org/wp-content/uploads/2009/12/5-300x151.jpg" alt="XAMPP" width="300" height="151" /></a><br />
</span></p>
<h4><span style="color: #008000;">Step 5:</span></h4>
<p><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/6.jpg"><img class="aligncenter size-medium wp-image-161" title="XAMPP" src="http://www.biogem.org/wp-content/uploads/2009/12/6-300x151.jpg" alt="XAMPP" width="300" height="151" /></a><br />
</span></p>
<h4><span style="color: #008000;">Step 6:</span></h4>
<p><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/7.jpg"><img class="aligncenter size-medium wp-image-162" title="XAMPP" src="http://www.biogem.org/wp-content/uploads/2009/12/7-300x220.jpg" alt="XAMPP" width="300" height="220" /></a><br />
</span></p>
<h4><span style="color: #008000;">Step 7:</span></h4>
<p><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/8.jpg"><img class="aligncenter size-medium wp-image-163" title="XAMPP" src="http://www.biogem.org/wp-content/uploads/2009/12/8-300x172.jpg" alt="XAMPP" width="300" height="172" /></a><br />
</span></p>
<h4><span style="color: #008000;">Step 8:</span></h4>
<p><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/9.jpg"><img class="aligncenter size-medium wp-image-164" title="XAMPP" src="http://www.biogem.org/wp-content/uploads/2009/12/9-300x172.jpg" alt="XAMPP" width="300" height="172" /></a><br />
</span></p>
<h4><span style="color: #008000;">Step 9:</span></h4>
<p><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/10.jpg"><img class="aligncenter size-medium wp-image-165" title="XAMPP" src="http://www.biogem.org/wp-content/uploads/2009/12/10-300x255.jpg" alt="XAMPP" width="300" height="255" /></a><br />
</span></p>
<h4><span style="color: #008000;">Step 10:</span></h4>
<p><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/11.jpg"><img class="aligncenter size-medium wp-image-166" title="XAMPP" src="http://www.biogem.org/wp-content/uploads/2009/12/11-300x255.jpg" alt="XAMPP" width="300" height="255" /></a><br />
</span></p>
<h4><span style="color: #008000;">Step 11:</span></h4>
<p><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/12.jpg"><img class="aligncenter size-medium wp-image-167" title="XAMPP" src="http://www.biogem.org/wp-content/uploads/2009/12/12-300x255.jpg" alt="XAMPP" width="300" height="255" /></a><br />
</span></p>
<h4><span style="color: #008000;">Step 12:</span></h4>
<p><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/13.jpg"><img class="aligncenter size-medium wp-image-168" title="XAMPP" src="http://www.biogem.org/wp-content/uploads/2009/12/13-300x216.jpg" alt="XAMPP" width="300" height="216" /></a><br />
</span></p>
<h4><span style="color: #008000;">Step 13:</span></h4>
<p><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/14.jpg"><img class="aligncenter size-medium wp-image-169" title="XAMPP" src="http://www.biogem.org/wp-content/uploads/2009/12/14-300x216.jpg" alt="XAMPP" width="300" height="216" /></a><br />
</span></p>
<h4><span style="color: #008000;">Step 14:</span></h4>
<p><span style="color: #008000;"><a href="http://www.biogem.org/wp-content/uploads/2009/12/15.jpg"><img class="aligncenter size-medium wp-image-170" title="XAMPP" src="http://www.biogem.org/wp-content/uploads/2009/12/15-300x83.jpg" alt="XAMPP" width="300" height="83" /></a></span></p>
<p style="text-align: justify;"><span style="color: #008000;">After changing to new password, open <span style="color: #0000ff;">C:\xampp\phpMyAdmin\config.inc.php</span> in a text editor. Go to<span style="color: #ff0000;"><span style="background-color: #ffffff;"> line 21</span> </span>[</span>$cfg['Servers'][$i]['password'] = &#8221;;<span style="color: #008000;">] and change it to new password</span><span style="color: #008000;"> [</span>$cfg['Servers'][$i]['password'] = &#8216;new_password&#8217;;<span style="color: #008000;">]</span><span style="color: #008000;">.</span></p>
<p><span style="color: #008000;"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.biogem.org/2009/12/installing-and-configuring-xampp-in-windows-7.html/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Two methods to run PHP script</title>
		<link>http://www.biogem.org/2009/12/two-methods-to-run-php-script.html</link>
		<comments>http://www.biogem.org/2009/12/two-methods-to-run-php-script.html#comments</comments>
		<pubDate>Tue, 08 Dec 2009 16:54:53 +0000</pubDate>
		<dc:creator>Ashok Kumar</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Addition]]></category>

		<guid isPermaLink="false">http://www.biogem.org/?p=140</guid>
		<description><![CDATA[HTML with PHP :-
HTML: add.htm
&#60;html&#62;
&#60;head&#62;
&#60;title&#62;Adding two numbers&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;form action=&#8221;add.php&#8221; method=&#8221;post&#8221;&#62;
Enter the first number: &#60;input type=&#8221;text&#8221; name=&#8221;a&#8221; size=10&#62;&#60;br&#62;
Enter the second number: &#60;input type=&#8221;text&#8221; name=&#8221;b&#8221; size=10&#62;&#60;br&#62;
&#60;input type=&#8221;submit&#8221; name=&#8221;submit&#8221; value=&#8221;ADD&#8221;&#62;
&#60;/form&#62;
&#60;/body&#62;
&#60;/html&#62;
PHP: add.php
&#60;html&#62;
&#60;head&#62;
&#60;title&#62;Adding two numbers&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;?php
$a=$_POST["a"];
$b=$_POST["b"];
$c=$a+$b;
print &#8220;Addition of $a and $b is $c.&#8221;;
?&#62;
&#60;/body&#62;
&#60;/html&#62;
Only with PHP :-
&#60;?php
$a = $_POST["a"];
$b = $_POST["b"];
if (!isset($_POST['add']))
{  // If page is not submitted to itself echo the form
?&#62;
&#60;html&#62;
&#60;head&#62;&#60;title&#62;Adding [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">HTML with PHP :-</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">HTML: add.htm</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;html&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;head&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;title&gt;Adding two numbers&lt;/title&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;/head&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;body&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;form action=&#8221;add.php&#8221; method=&#8221;post&#8221;&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">Enter the first number: &lt;input type=&#8221;text&#8221; name=&#8221;a&#8221; size=10&gt;&lt;br&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">Enter the second number: &lt;input type=&#8221;text&#8221; name=&#8221;b&#8221; size=10&gt;&lt;br&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;input type=&#8221;submit&#8221; name=&#8221;submit&#8221; value=&#8221;ADD&#8221;&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;/form&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;/body&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;/html&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">PHP: add.php</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;html&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;head&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;title&gt;Adding two numbers&lt;/title&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;/head&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;body&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;?php</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">$a=$_POST["a"];</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">$b=$_POST["b"];</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">$c=$a+$b;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">print &#8220;Addition of $a and $b is $c.&#8221;;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">?&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;/body&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;/html&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">Only with PHP :-</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;?php</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">$a = $_POST["a"];</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">$b = $_POST["b"];</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">if (!isset($_POST['add']))</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">{  // If page is not submitted to itself echo the form</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">?&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;html&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;head&gt;&lt;title&gt;Adding Two Numbers&lt;/title&gt;&lt;/head&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;body&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;form method=&#8221;post&#8221; action=&#8221;&lt;?php echo $PHP_SELF; ?&gt;&#8221;&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">Enter the first number: &lt;input type=&#8221;text&#8221; size=&#8221;12&#8243; maxlength=&#8221;12&#8243; name=&#8221;a&#8221;&gt;&lt;/br&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">Enter the second number: &lt;input type=&#8221;text&#8221; size=&#8221;12&#8243; maxlength=&#8221;36&#8243; name=&#8221;b&#8221;&gt;&lt;/br&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;input type=&#8221;submit&#8221; value=&#8221;ADD&#8221; name=&#8221;add&#8221;&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;/form&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;?</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">}</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">else</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">{</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">$c=$a+$b;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">print &#8220;Addition of $a and $b is $c.&#8221;;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">}</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">?&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;/body&gt;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: georgia, palatino;">&lt;/html&gt;</span></div>
<p><strong><span style="color: #ff0000;"><span style="font-size: medium;"><span style="font-family: georgia, palatino;">HTML with PHP :-</span></span></span></strong></p>
<p><span style="font-family: georgia, palatino;"><strong><span style="font-family: georgia, palatino;">HTML: </span></strong></span><span style="color: #0000ff;"><strong><span style="font-family: georgia, palatino;">add.htm</span></strong></span></p>
<p><span style="color: #0000ff;"><span style="font-family: georgia, palatino;">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Adding two numbers&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form action=&#8221;add.php&#8221; method=&#8221;post&#8221;&gt;<br />
<span id="more-140"></span>Enter the first number: &lt;input type=&#8221;text&#8221; name=&#8221;a&#8221; size=10&gt;&lt;br&gt;<br />
Enter the second number: &lt;input type=&#8221;text&#8221; name=&#8221;b&#8221; size=10&gt;&lt;br&gt;<br />
&lt;input type=&#8221;submit&#8221; name=&#8221;submit&#8221; value=&#8221;ADD&#8221;&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</span></span></p>
<p><strong><span style="font-family: georgia, palatino;">PHP: </span><span style="color: #0000ff;"><span style="font-family: georgia, palatino;">add.php</span></span></strong></p>
<p><span style="color: #0000ff;"><span style="font-family: georgia, palatino;">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Adding two numbers&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;?php<br />
$a=$_POST["a"];<br />
$b=$_POST["b"];<br />
$c=$a+$b;<br />
print &#8220;Addition of $a and $b is $c.&#8221;;<br />
?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</span></span></p>
<p><span style="font-family: georgia, palatino;"><span style="font-family: georgia, palatino;"><span style="font-family: georgia, palatino;"><br />
</span> </span><span style="font-family: georgia, palatino;"> </span></span></p>
<p><span style="font-family: georgia, palatino;"><strong><span style="color: #ff0000;"><span style="font-size: medium;"><span style="font-family: georgia, palatino;">Only with PHP :-</span></span></span></strong></span></p>
<p><span style="color: #0000ff;"><span style="font-family: georgia, palatino;">&lt;?php<br />
$a = $_POST["a"];<br />
$b = $_POST["b"];<br />
if (!isset($_POST['add']))<br />
{  // If page is not submitted to itself echo the form<br />
?&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Adding Two Numbers&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form method=&#8221;post&#8221; action=&#8221;&lt;?php echo $PHP_SELF; ?&gt;&#8221;&gt;<br />
Enter the first number: &lt;input type=&#8221;text&#8221; size=&#8221;12&#8243; maxlength=&#8221;12&#8243; name=&#8221;a&#8221;&gt;&lt;/br&gt;<br />
Enter the second number: &lt;input type=&#8221;text&#8221; size=&#8221;12&#8243; maxlength=&#8221;36&#8243; name=&#8221;b&#8221;&gt;&lt;/br&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;ADD&#8221; name=&#8221;add&#8221;&gt;<br />
&lt;/form&gt;<br />
&lt;?<br />
}<br />
else<br />
{<br />
$c=$a+$b;<br />
print &#8220;Addition of $a and $b is $c.&#8221;;<br />
}<br />
?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</span></span></p>
<p><span style="color: #0000ff;"><span style="font-family: georgia, palatino;"><br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.biogem.org/2009/12/two-methods-to-run-php-script.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux wvdial.conf script for Vodafone IN</title>
		<link>http://www.biogem.org/2009/12/linux-wvdial-conf-script-for-vodafone-in.html</link>
		<comments>http://www.biogem.org/2009/12/linux-wvdial-conf-script-for-vodafone-in.html#comments</comments>
		<pubDate>Tue, 08 Dec 2009 16:37:46 +0000</pubDate>
		<dc:creator>Ashok Kumar</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[portalnms]]></category>
		<category><![CDATA[Vodafone IN]]></category>
		<category><![CDATA[wvdial.conf]]></category>

		<guid isPermaLink="false">http://www.biogem.org/?p=135</guid>
		<description><![CDATA[[Modem0]
Modem = /dev/rfcomm0
Baud = 115200
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
Init3= ATM0
FlowControl = CRTSCTS
[Dialer vodafone]
Username = &#8220;vodafone&#8221;
Password = &#8220;vodafone&#8221;
Phone = *99#
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &#38;C1 &#38;D2 +FCLASS=0
Init3 = AT+CGDCONT=1,&#8221;10.10.1.100:9401&#8243;,&#8221;portalnmms&#8221;,&#8221;",0,0
Inherits = Modem0
[Dialer three]
Username = &#8220;none&#8221;
Password = &#8220;none&#8221;
Phone = *99#
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">[Modem0]</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Modem = /dev/rfcomm0</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Baud = 115200</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">SetVolume = 0</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Dial Command = ATDT</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Init1 = ATZ</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Init3= ATM0</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">FlowControl = CRTSCTS</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">[Dialer vodafone]</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Username = &#8220;vodafone&#8221;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Password = &#8220;vodafone&#8221;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Phone = *99#</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Stupid Mode = 1</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Init1 = ATZ</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Init2 = ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Init3 = AT+CGDCONT=1,&#8221;10.10.1.100:9401&#8243;,&#8221;portalnmms&#8221;,&#8221;",0,0</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Inherits = Modem0</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">[Dialer three]</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Username = &#8220;none&#8221;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Password = &#8220;none&#8221;</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Phone = *99#</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Stupid Mode = 1</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Init1 = ATZ</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Init2 = ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Init3 = AT+CGDCONT=1,&#8221;10.10.1.100:9401&#8243;,&#8221;portalnmms&#8221;,&#8221;",0,0</span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="font-family: 'courier new', courier;">Inherits = Modem0</span></div>
<div></div>
<div><span style="font-family: 'courier new', courier; font-size: small;">[Modem0]</span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Modem = /dev/rfcomm0</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Baud = 115200<br />
<span id="more-135"></span></span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">SetVolume = 0</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Dial Command = ATDT</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Init1 = ATZ</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Init3 = ATM0</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">FlowControl = CRTSCTS</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;"><span style="font-family: 'courier new', courier;"><br />
</span> </span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">[Dialer </span><span style="color: #0000ff;"><span style="font-family: 'courier new', courier;">vodafone</span></span><span style="font-family: 'courier new', courier;">]</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Username = &#8220;</span><span style="color: #0000ff;"><span style="font-family: 'courier new', courier;">vodafone</span></span><span style="font-family: 'courier new', courier;">&#8220;</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Password = &#8220;</span><span style="color: #0000ff;"><span style="font-family: 'courier new', courier;">vodafone</span></span><span style="font-family: 'courier new', courier;">&#8220;</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Phone = </span><span style="color: #0000ff;"><span style="font-family: 'courier new', courier;">*99#</span></span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Stupid Mode = 1</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Init1 = ATZ</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Init2 = ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Init3 = AT+CGDCONT=1,&#8221;</span><span style="color: #0000ff;"><span style="font-family: 'courier new', courier;">10.10.1.100:9401</span></span><span style="font-family: 'courier new', courier;">&#8220;,&#8221;</span><span style="color: #0000ff;"><span style="font-family: 'courier new', courier;">portalnmms</span></span><span style="font-family: 'courier new', courier;">&#8220;,&#8221;",0,0</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Inherits = Modem0</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;"><span style="font-family: 'courier new', courier;"><br />
</span> </span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">[Dialer three]</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Username = &#8220;</span><span style="color: #0000ff;"><span style="font-family: 'courier new', courier;">none</span></span><span style="font-family: 'courier new', courier;">&#8220;</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Password = &#8220;</span><span style="color: #0000ff;"><span style="font-family: 'courier new', courier;">none</span></span><span style="font-family: 'courier new', courier;">&#8220;</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Phone = </span><span style="color: #0000ff;"><span style="font-family: 'courier new', courier;">*99#</span></span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Stupid Mode = 1</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Init1 = ATZ</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Init2 = ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Init3 = AT+CGDCONT=1,&#8221;</span><span style="color: #0000ff;"><span style="font-family: 'courier new', courier;">10.10.1.100:9401</span></span><span style="font-family: 'courier new', courier;">&#8220;,&#8221;</span><span style="color: #0000ff;"><span style="font-family: 'courier new', courier;">portalnmms</span></span><span style="font-family: 'courier new', courier;">&#8220;,&#8221;",0,0</span></span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;">Inherits = Modem0</span></span></div>
<div><span style="font-family: 'courier new', courier;"><br />
</span></div>
<div><span style="font-size: small;"><span style="font-family: 'courier new', courier;"><br />
</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.biogem.org/2009/12/linux-wvdial-conf-script-for-vodafone-in.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Running C or C++ program in Linux</title>
		<link>http://www.biogem.org/2009/12/running-c-or-c-program-in-linux.html</link>
		<comments>http://www.biogem.org/2009/12/running-c-or-c-program-in-linux.html#comments</comments>
		<pubDate>Fri, 04 Dec 2009 02:11:57 +0000</pubDate>
		<dc:creator>Ashok Kumar</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[CPP]]></category>

		<guid isPermaLink="false">http://www.biogem.org/?p=90</guid>
		<description><![CDATA[Steps to run C program in Ubuntu:
1. Go to Applications &#62; Accessories &#62; Terminal, to open terminal window.
2. Type the following in command line
sudo gedit first.c
3. Enter the code bellow in the editor.
/* Program first.c */
#include&#60;stdio.h&#62;
main()
{
printf(&#8221;Hello World.\n&#8221;);
}
4. Save the file and close to return to terminal window.
5. Firstly compile the code using the following command
cc [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: georgia,palatino;"><span style="font-size: small;"><span style="color: #ff0000;"><span style="font-size: medium;"><strong>Steps to run C program in Ubuntu:</strong></span></span></span></span></p>
<p><span style="font-family: georgia,palatino;">1. Go to <em>Applications</em> &gt; <em>Accessories</em> &gt; <em>Terminal</em>, to open terminal window.</span></p>
<p><span style="font-family: georgia,palatino;">2. Type the following in command line</span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #0000ff;"><em>sudo gedit first.c<span id="more-90"></span></em></span></span></p>
<p><span style="font-family: georgia,palatino;">3. Enter the code bellow in the editor.</span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #0000ff;"><em>/* Program first.c */<br />
#include&lt;stdio.h&gt;<br />
main()<br />
{<br />
printf(&#8221;Hello World.\n&#8221;);<br />
}</em></span></span></p>
<p><span style="font-family: georgia,palatino;">4. Save the file and close to return to terminal window.</span></p>
<p><span style="font-family: georgia,palatino;">5. Firstly compile the code using the following command</span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #0000ff;"><em>cc -c first.c</em></span></span></p>
<p><span style="font-family: georgia,palatino;">That would produce an object file you may need to add to the library.</span></p>
<p><span style="font-family: georgia,palatino;">6. Then create an executable using the following command</span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #0000ff;"><em>cc -o first first.c</em></span></span></p>
<p><span style="font-family: georgia,palatino;">7. Now run this executable using the following command</span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #0000ff;"><em>./first</em></span></span></p>
<p><span style="font-family: georgia,palatino;">8. Output should show as follows</span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #ff0000;"><em>Hello World.<br />
</em></span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #ff0000;"><span style="font-size: medium;"><strong>Steps to run C++ program in Ubuntu:</strong></span></span></span></p>
<p><span style="font-family: georgia,palatino;">1. Go to <em>Applications</em> &gt; <em>Accessories</em> &gt; <em>Terminal</em>, to open terminal window.</span></p>
<p><span style="font-family: georgia,palatino;">2. Type the following in command line</span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #0000ff;"><em>sudo gedit first.cpp</em></span></span></p>
<p><span style="font-family: georgia,palatino;">3. Enter the code bellow in the editor.</span></p>
<p><span style="font-family: georgia,palatino;"><em><span style="color: #0000ff;">/* Program first.cpp */<br />
#include&lt;iostream&gt;<br />
main()<br />
{<br />
std::cout&lt;&lt;&#8221;Hello World.&#8221;&lt;&lt;std::endl;<br />
}</span></em></span></p>
<p><span style="font-family: georgia,palatino;">4. Save the file and close to return to terminal window.</span></p>
<p><span style="font-family: georgia,palatino;">5. Now compile the code using the following command</span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #0000ff;"><em>g++ first.cpp -o second</em></span></span></p>
<p><span style="font-family: georgia,palatino;">6. Then run this executable using the following command</span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #0000ff;"><em>./second</em></span></span></p>
<p><span style="font-family: georgia,palatino;">7. Output should show as follows</span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #ff0000;"><em>Hello World.<br />
</em></span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #ff0000;"><strong><span style="font-size: medium;">A sample factorial program in C</span></strong></span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #0000ff;"><em>/* Factorial using C */<br />
#include&lt;stdio.h&gt;<br />
int main()<br />
{<br />
int i,n,f=1;<br />
printf(&#8221;\nEnter the number: &#8220;);<br />
scanf(&#8221;%d&#8221;,&amp;n);<br />
for(i=1;i&lt;=n;i++)<br />
{<br />
f=f*i;<br />
}<br />
printf(&#8221;\nFactorial of %d is %d \n\n&#8221;,n,f);<br />
}</em><br />
</span></span></p>
<p><span style="font-family: georgia,palatino;"><strong>Output:</strong><br />
<span style="color: #0000ff;"><em><br />
$ sudo gedit factorial.c<br />
$ cc -c factorial.c<br />
$ cc -o factorial factorial.c<br />
$ ./factorial</em></span></span></p>
<p><span style="font-family: georgia,palatino;"><span style="color: #ff0000;"><em>Enter the number: 6<br />
Factorial of 6 is 720</em></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.biogem.org/2009/12/running-c-or-c-program-in-linux.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
