Get Adobe Flash player

 

March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

Who's Online

2 visitors online now
2 guests, 0 members

RNA to Protein Translation in PERL

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.

Continue reading RNA to Protein Translation in PERL

Doing Simulation using Discovery Studio 2.1

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:

Continue reading Doing Simulation using Discovery Studio 2.1

Running JAVA program in Linux Ubuntu

Steps to run JAVA program in Ubuntu:

1. Go to Applications > Accessories > Terminal, to open terminal window.

2. Type the following in command line

gedit Add.java

Continue reading Running JAVA program in Linux Ubuntu

Installing and Configuring XAMPP in Windows 7

Many people know from their own experience that it’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 – just download, extract and start.

At the moment there are four XAMPP distributions:

Continue reading Installing and Configuring XAMPP in Windows 7

Two methods to run PHP script

HTML with PHP :-
HTML: add.htm
<html>
<head>
<title>Adding two numbers</title>
</head>
<body>
<form action=”add.php” method=”post”>
Enter the first number: <input type=”text” name=”a” size=10><br>
Enter the second number: <input type=”text” name=”b” size=10><br>
<input type=”submit” name=”submit” value=”ADD”>
</form>
</body>
</html>
PHP: add.php
<html>
<head>
<title>Adding two numbers</title>
</head>
<body>
<?php
$a=$_POST["a"];
$b=$_POST["b"];
$c=$a+$b;
print “Addition of $a and $b is $c.”;
?>
</body>
</html>
Only with PHP :-
<?php
$a = $_POST["a"];
$b = $_POST["b"];
if (!isset($_POST['add']))
{  // If page is not submitted to itself echo the form
?>
<html>
<head><title>Adding Two Numbers</title></head>
<body>
<form method=”post” action=”<?php echo $PHP_SELF; ?>”>
Enter the first number: <input type=”text” size=”12″ maxlength=”12″ name=”a”></br>
Enter the second number: <input type=”text” size=”12″ maxlength=”36″ name=”b”></br>
<input type=”submit” value=”ADD” name=”add”>
</form>
<?
}
else
{
$c=$a+$b;
print “Addition of $a and $b is $c.”;
}
?>
</body>
</html>

HTML with PHP :-

HTML: add.htm

<html>
<head>
<title>Adding two numbers</title>
</head>
<body>
<form action=”add.php” method=”post”>
Continue reading Two methods to run PHP script

Linux wvdial.conf script for Vodafone IN

[Modem0]
Modem = /dev/rfcomm0
Baud = 115200
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
Init3= ATM0
FlowControl = CRTSCTS
[Dialer vodafone]
Username = “vodafone”
Password = “vodafone”
Phone = *99#
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”10.10.1.100:9401″,”portalnmms”,”",0,0
Inherits = Modem0
[Dialer three]
Username = “none”
Password = “none”
Phone = *99#
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”10.10.1.100:9401″,”portalnmms”,”",0,0
Inherits = Modem0
[Modem0]
Modem = /dev/rfcomm0

Running C or C++ program in Linux

Steps to run C program in Ubuntu:
1. Go to Applications > Accessories > 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<stdio.h>
main()
{
printf(”Hello World.\n”);
}
4. Save the file and close to return to terminal window.
5. Firstly compile the code using the following command
cc -c first.c
That would produce an object file you may need to add to the library.
6. Then create an executable using the following command
cc -o first first.c
7. Now run this executable using the following command
./first
8. Output should show as follows
Hello World.
Steps to run C++ program in Ubuntu:
1. Go to Applications > Accessories > Terminal, to open terminal window.
2. Type the following in command line
sudo gedit first.cpp
3. Enter the code bellow in the editor.
/* Program first.cpp */
#include<iostream>
main()
{
std::cout<<”Hello World.”<<std::endl;
}
4. Save the file and close to return to terminal window.
5. Now compile the code using the following command
g++ first.cpp -o second
6. Then run this executable using the following command
./second
7. Output should show as follows
Hello World.
A sample factorial program in C
#include<stdio.h>
int main()
{
int i,n,f=1;
printf(”\nEnter the number: “);
scanf(”%d”,&n);
for(i=1;i<=n;i++)
{
f=f*i;
}
printf(”\nFactorial of %d is %d \n\n”,n,f);
}
Output:
$ sudo gedit factorial.c
$ cc -c factorial.c
$ cc -o factorial factorial.c
$ ./factorial
Enter the number: 6
Factorial of 6 is 720


Steps to run C program in Ubuntu:

1. Go to Applications > Accessories > Terminal, to open terminal window.

2. Type the following in command line

sudo gedit first.c

Continue reading Running C or C++ program in Linux

Addition using Perl/CGI in Ubuntu

If Apache web server has installed in your system, you can run Perl/CGI script successfully. Create a html file and perl script using following steps.

Continue reading Addition using Perl/CGI in Ubuntu

Installing LAMP on Ubuntu 9.10

Installing and configuring LAMP (Linux, Apache, MySQL, and PHP) is easy in Ubuntu Linux. If you have internet connection in your system, you can able to download the necessary applications using apt-get or synaptic package manager tools.

In this tutorial, I have given step-by-step procedure to setup LAMP web server environment in Ubuntu 9.10 operating system.

Continue reading Installing LAMP on Ubuntu 9.10

Bioinformatics World!

Bioinformatics derives knowledge from computer analysis of biological data. These can consist of the information stored in the genetic code, but also experimental results from various sources, patient statistics, and scientific literature. Research in bioinformatics includes method development for storage, retrieval, and analysis of the data. Bioinformatics is a rapidly developing branch of biology and is highly interdisciplinary, using techniques and concepts from informatics, statistics, mathematics, chemistry, biochemistry, physics, and linguistics. It has many practical applications in different areas of biology and medicine.

Continue reading Bioinformatics World!