Hey Folks...this is for all those who have "PrOgRamOPhobia"!! Don't dread coding as this is the most logical and practical approach towards solving a problem in this digitized world.Believe me its fun and so uncomplicated...that you better fall in love with it.Happy coding friends!!!
Wednesday, March 21, 2012
Just go for it!!: We have the power!!
Just go for it!!: We have the power!!: We have the power!! It means joy to some and sorrow to few; it is success for some and fail...
We have the power!!
We have the power!!
It means joy to some and sorrow to few; it is
success for some and failure for few. While some consider it as the truth, for
few it’s akin to mirage. It brings the spring of smiles and cheers to some
while few only receive the rain of chaos. Some live it during the day while a
few wait for the darkness to conquer. The word “life” is so immense, erratic
and intangible that we can never unfold its secret. However one can make it
meaningful by dedicating it for the nation’s pride. It’s the youth that
understands the essence of life, has positive attitude towards it, can tweak
the system of nation and also one who feels for the nation.
In words of Swami Vivekananda-“You Have The Power:
All the powers in the universe are already ours. It is we who have put our hands
before our eyes and cry that it is dark”. We as Youths have the primary rule in
our dictionary of life as-Nothing is impossible, if we are determined to bring
a change in the system, we can; if want to remove the remorse from someone’s
life, we can; if we want to change someone’s mind process, we can; if want to
eradicate the evil from the society, we surely can as education is our weapon.
“Education is the manifestation of the perfection
already in man”-perfectly edified by Swami is a guide for every youth who eat,
drink and sleep for the nation. Brain drain which is a concern for the nation
falls in the ambit of youths to abduct it. It can happen if every youth embroils
his/her brain for a national cause and with his power of mind, body, soul or
rather education can lead the nation to the path of success and glory.
Knowing oneself and behaving as what you are is
required by the youth today. Abiding by the rules, upholding your values and
listening to your soul can work wonders for the nation. A septuagenarian Anna
can feel and fight so much for the country then why the youths who have the power
to change the direction of wind are sleeping. Youths need to be awake and keep
themselves updated about the nation in which they live because they are the
future builders. Any damage to the nation will affect each and every citizen
equally but it’s also very true that it will create a greater impact on a
youth’s life as their goals; their dreams; their aspirations; their
expectations. If these get tampered then its outcomes can be catastrophic.
A heart of iron, a soul pure as holy water, a mind
which stimulates vibrant ideas for the nation and following the path of truth
and non-violence makes a perfect youth. Enrolling yourself in army or civil
services is one of the greatest roles played by the youth. Raising voice
against any improper or corrupt system and having the courage to bring out the
truth can in real terms define the democracy in our country. Having an agenda
to not only live for one but to live for many strikes the fire of patriotism in
one’s heart. An educated youth can spread the light of education in every house
of every village because the main reason of our backwardness is lack of awareness.
If you are a technical person then think on what your technology can help to
solve the problems of poor and needy.
It is said that abhor what is wrong not those who do
wrong. Youths are a directionless river but when they have a specific purpose
then they can quench the thirst of the nation. If youth awakens then there is
no power that can stop it, but the only need is that it should be aimed
properly and in good context. If we subtract from the total population the
population of youth, the result we have is - children and senior citizens who
are not effective in nation building as the youths as they are the powerhouse
of a nation. Anything in this world can’t match the happiness and contentment
what a free service to the nation gives. Youth empowerment can keep a nation
united and history itself says that youth plays an important role in making a
nation. Inspiring the youths in words-“Just go for it!”
Thursday, March 15, 2012
Just go for it!!: ThiS MessaGe WilL SeLf DeStruCt!!
Just go for it!!: ThiS MessaGe WilL SeLf DeStruCt!!: ThiS MessaGe WilL SeLf DeStruCt!! How cool the idea of sending a message to a friend without anyone else being able to read it afterwar...
ThiS MessaGe WilL SeLf DeStruCt!!
ThiS MessaGe WilL SeLf DeStruCt!!
How cool the idea of sending a message to a friend without anyone else being able to read it afterwards would be???It sounds more often like a spy story where the clues get self-destroyed after few seconds!!This is all possible due to a platform called BURN NOTE which gives you this functionality.Write a message and send the link to your friend.After reading your message the message gets burnt after the time interval set by you.You can also set the password if you want to improve your security.It works this way:
-first type the message which is to be sent.
-Set the timer and password if you like
-Set the timer and password if you like
-After this we receive a link for the message.The message will be deleted in 72 hours regardless of whether it is opened or not.
This message is ready to be sent via e-mail,instant message or carrier pigeon.
-When the receiver receives the message the countdown does not get started until the user is ready to view it.It looks something like this..
So visit www.burnnote.com to send your secret messages!!JUST GO FOR IT!!
Monday, March 12, 2012
Just go for it!!: A nEw App wHiCh ReAllY sUiTs yOuR poCkEt!!
Just go for it!!: 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 th...
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!!
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;
#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;
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 }
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];
}
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!!!
Subscribe to:
Posts (Atom)