Monday, March 12, 2012

A nEw App wHiCh ReAllY sUiTs yOuR poCkEt!!

ABBYY Textgrabber and Translator
  Do you snip articles from magazines and share it with your friends on your profile? or are you the ones who capture important notes or documents in their camera rather going for a xerox? But are you satisfied with quality of the snippets??If your answer is NO and you wanna complain about the text being muddled in the glare of light then technology has an eclectic answer to it!Its the ABBYY Textgrabber and Translator-an app which helps you recognize your muddled up text or paragraph into several different languages.It uses iOS camera to capture text in several languages and gives us a platform to share.save and translate text!So friends instead of cutting the article from a magazine rather remember to use this app...So i would say JUST GO FOR IT!!

Wednesday, March 7, 2012


           Happy International Women's Day!!

Monday, March 5, 2012

Just go for it!!: C++  Program code for detecting and correcting err...

Just go for it!!: C++ Program code for detecting and correcting err...: C++ Program code for detecting and correcting error in the 7-bit hamming code I developed this code to detect and correct the error...
C++  Program code for detecting and correcting error in the 7-bit hamming code

 I developed this code to detect and correct the error for a 7-bit hamming code for both even and odd parity.Hope its useful to you!!
  Source code:
#include<iostream.h>
#include<conio.h>
void  checke();
void  checko();

int  main()
{
 int c;
cout<<"even parity-0 & odd parity-1";
 cin>>c;
if(c==0)
checke();
else
checko();
 return 0;
}
 void checke()
{ int x[7];
int n1,n2,n3,n4,p1,p2,p4;
  cout<<"enter the 7-bit hamming code";
 for(int i=6;i>=0;i--)
 cin>>x[i];

 cout<<"checking at p1"<<"\n";
  if (x[0]==1)
    n1=1;
    else
    n1=0;

    if(x[2]==1)
     n2=1;
     else
     n2=0;

     if(x[4]==1)
     n3=1;
     else
     n3=0;

      if(x[6]==1)
     n4=1;
     else
     n4=0;

    if((n4+n3+n2+n1)%2==0)
    p1=x[0];
    else

    {if(x[0]==1)
    p1=0;
     else
    p1=1;
    cout<<"error at p1" "\n"<<"hence p1="<<p1<<"\n"; }

     cout<<"checking at p2"<<"\n";
  if (x[1]==1)
    n1=1;
    else
    n1=0;

    if(x[2]==1)
     n2=1;
     else
     n2=0;

     if(x[5]==1)
     n3=1;
     else
     n3=0;

      if(x[6]==1)
     n4=1;
     else
     n4=0;

    if((n4+n3+n2+n1)%2==0)
    p2=x[1];

    else
    {
    if(x[1]==1)
    p2=0;

    else
    p2=1;
    cout<<"error at p2" "\n"<<"hence p2="<<p2<<"\n";}

     cout<<"checking for p4"<<"\n";
  if (x[3]==1)
    n1=1;
    else
    n1=0;

    if(x[4]==1)
     n2=1;
     else
     n2=0;

     if(x[5]==1)
     n3=1;
     else
     n3=0;

      if(x[6]==1)
     n4=1;
     else
     n4=0;

    if((n4+n3+n2+n1)%2==0)
    p4=x[3];
    else
    {
    if(x[3]==1)
    p4=0;

    else
     p4=1;
     cout<<"error at p4" "\n"<<"hence p4="<<p4<<"\n"; }




  int sum;
   sum=4*p4+2*p2+1*p1;
   cout<<"error is at"<<sum<<"th position in the hamming code"<<"\n";
   cout<<"hence the corrected code is:";
   if(x[sum-1]==1)
   x[sum-1]=0;
   else
   x[sum-1]=1;

   for(i=6;i>=0;i--)
   cout<< x[i];
   }

    void checko()
    {  int x[7];
int n1,n2,n3,n4,p1,p2,p4;
  cout<<"enter the 7-bit hamming code";
 for(int i=6;i>=0;i--)
 cin>>x[i];

 cout<<"checking at p1"<<"\n";
  if (x[0]==1)
    n1=1;
    else
    n1=0;

    if(x[2]==1)
     n2=1;
     else
     n2=0;

     if(x[4]==1)
     n3=1;
     else
     n3=0;

      if(x[6]==1)
     n4=1;
     else
     n4=0;

    if((n4+n3+n2+n1)%2!=0)
    p1=x[0];
    else
   {if(x[0]==1)
    p1=0;
     else
    p1=1;
    cout<<"error at p1" "\n"<<"hence p1="<<p1<<"\n"; }

     cout<<"checking at p2"<<"\n";
  if (x[1]==1)
    n1=1;
    else
    n1=0;

    if(x[2]==1)
     n2=1;
     else
     n2=0;

     if(x[5]==1)
     n3=1;
     else
     n3=0;

      if(x[6]==1)
     n4=1;
     else
     n4=0;

    if((n4+n3+n2+n1)%2!=0)
    p2=x[1];
    else
    {
    if(x[1]==1)
    p2=0;
   else
    p2=1;
    cout<<"error at p2" "\n"<<"hence p2="<<p2<<"\n";}

     cout<<"checking for p4"<<"\n";
  if (x[3]==1)
    n1=1;
    else
    n1=0;

    if(x[4]==1)
     n2=1;
     else
     n2=0;

     if(x[5]==1)
     n3=1;
     else
     n3=0;

      if(x[6]==1)
     n4=1;
     else
     n4=0;

    if((n4+n3+n2+n1)%2!=0)
    p4=x[3];
    else
    {
    if(x[3]==1)
    p4=0;
   else
     p4=1;
     cout<<"error at p4" "\n"<<"hence p4="<<p4<<"\n";1 }
     int sum;
   sum=4*p4+2*p2+1*p1;
   cout<<"error is at"<<sum<<"th bit in the hamming code"<<"\n";
   cout<<"hence the corrected code is:";
   if(x[sum-1]==1)
   x[sum-1]=0;
   else
   x[sum-1]=1;
    for(i=6;i>=0;i--)
   cout<< x[i];
}

Friday, March 2, 2012

The Comma Operator


The operator strings together several expressions.The left side of the comma operator is always evaluated as void.This means that the expression on the right side becomes the value of the total comma-separated expression.For example,
x=(y=3,y+1);
first assigns y the value 3 and then assigns x the value 4.The parentheses are necessary because the comma operator has a lower precedence than the assignment operator.Essentially the comma causes a sequence of operations.When you use it on the right side of an assignment statement,the value assigned is the value of the last expression of the comma-separated list.
The comma operator has somewhat the same meaning as the word "and" in normal English as used in the phrase "do this and this and this".

Thursday, March 1, 2012


Idea of androids 

The idea of personal assistant robots is not too far off, perhaps. But how will these human-like robots, called androids, behave and how will they be governed? Won’t they “take over the world?” If the robot laws of Isaac Asimov  is followed, we’ll be safe.
  • Asimov’s first law is that robots may not harm humans either through action or inaction.
  • They must obey humans except when the commands conflict with the first law.
  • Androids must protect themselves except, again, when this comes into conflict with the first law.

Becoming the real masters through virtual world!

When I saw the movie Terminator, I could not stop myself from exalting the advances made in the field of Artificial Intelligence. We patronize the real world but the virtual world cannot just be an abbreviated piece of nothing. How amazing it is to know and study the different reactions given by a human body, its humor, its reception skills, and the way emotions ooze out. More than that it’s astounding to create a world where everything we imagine turns out in real. The robot (terminator) in the movie Terminator had its primary instructions as salvation and till the end of the movie reel he did the same in spite of the whole programming of his machine body being reversed. We cannot escape the fact that it’s not the love of a girlfriend or a human being but the technology rules our life. Accept it or reject it but we are a slave without these machines and we become a master when they are in our life. Hence artificial intelligence is like a “SECOND LIFE” where everything we think, imagine, fantasize gets en-carved in front of our eyes. With its advances today we don’t see the technology but feel it!!It’s still a quest so just go for IT!!!