About Me

My photo
Bangalore, Karnantaka, India
Hi Frndss... I am Divya Prakash, presently working as an ABAP consultant , simplicity is my Prime Importance n I beleive in " First Deserve then DESIRE ".

Friday, October 30, 2009

Just for ur SMILE :)


How to be cruel to old guys:

AARP Eye Chart

THE FOUR �STAGES OF LIFE

Mountain Story - An interesting short story

"A son and his father were walking on the mountains.
Suddenly, his son falls, hurts himself and screams: "AAAhhhhhhhhhhh!!!"
To his surprise, he hears the voice repeating, somewhere in the mountain: "AAAhhhhhhhhhhh!!!"
Curious, he yells: "Who are you?"
He receives the answer: "Who are you?"
And then he screams to the mountain: "I admire you!"
The voice answers: "I admire you!"
Angered at the response, he screams: "Coward!"
He receives the answer: "Coward!"
He looks to his father and asks: "What's going on?"
The father smiles and says: "My son, pay attention."
Again the man screams: "You are a champion!"
The voice answers: "You are a champion!"
The boy is surprised, but does not understand.
Then the father explains: "People call this ECHO, but really this is LIFE.
It gives you back everything you say or do.
Our life is simply a reflection of our actions.
If you want more love in the world, create more love in your heart.
If you want more competence in your team, improve your competence.
This relationship applies to everything, in all aspects of life;
Life will give you back everything you have given to it."

YOUR LIFE IS NOT A COINCIDENCE. IT'S A REFLECTION OF YOU!"
-- Divya Prakash

Tuesday, October 27, 2009

Tips to Search Better in GOOGLE...




T
his is an old one, but very important: Put quotes around phrases that must be searched together. If you put quotes around "electric curtains," Google won't waste your time finding one set of Web pages containing the word "electric" and another set containing the word "curtains."



Similarly, put a hyphen right before any word you want screened out. If you're looking up dolphins, for example, you'll have to wade through a million Miami Dolphins pages unless you search for "dolphins - Miami ."



Google is a global White Pages and Yellow Pages. Search for "phonebook:home depot norwalk , ct," Google instantly produces the address and phone number of the Norwalk Home Depot. This works with names ("phonebook: robert jones las vegas , NV") as well as businesses.



Don't put any space after "phonebook." And in all of the following examples, don't type the quotes I'm showing you here.

G oogle is a package tracker. Type a FedEx or UPS package number (just the digits); when you click Search, Google offers a link to its tracking information.



G oogle is a calculator. Type in an equation ("32+2345*3- 234=").



G oogle is a units-of-measuremen t converter. Type "teaspoons in a gallon," for example, or "centimeters in a foot."



G oogle is a stock ticker. Type in AAPL or MSFT, for example, to see a link to the current Apple or Microsoft stock price, graphs, financial news and so on.



Google is an atlas. Type in an area code, like 212, to see a Mapquest map of the area.

Google is Wal-Mart's computer. Type in a UPC bar code number, such as "036000250015, " to see the description of the product you've just "scanned in." (Thanks to the Google Blog,
http://google. blogspace. com
, for this tip and the next couple.)


G oogle is an aviation buff. Type in a flight number like "United 22" for a link to a map of that flight's progress in the air. Or type in the tail number you see on an airplane for the full registration form for that plane.



G oogle is the Department of Motor Vehicles. Type in a VIN (vehicle identification number, which is etched onto a plate, usually on the door frame, of every car), like "JH4NA1157MT001832, " to find out the car's year, make and model.



F or hours of rainy-day entertainment, visit
http://labs. google.com
. Here, you'll find links to new, half-finished Google experiments- like Google Voice, in which you call (650) 623-6706, speak the words you want to search for and then open your browser to view the results. Disclaimer: It wasn't working when I tried it. (Ditto a lot of these experiments. )

Source:

Garima :)

( My Class mate )

Can we directly compare two structures using the == operator?

No, you cannot!

The
only way to compare two structures is to write your own function that compares the structures field by field. Also, the comparison should be only on fields that contain data (You would not want to compare the next fields of each structure!).

A byte by byte comparison (say using memcmp()) will also fail. This is because the comparison might fonder on random bits present in unused "holes" in the structure (padding used to keep the alignment of the later fields correct). So a memcmp() of the two structure will almost never work. Also, any strings inside the strucutres must be compared using strcmp() for similar reasons.

There is also a very good reason why structures can be compared directly -
unions!. It is because of unions that structures cannot be compared for equality. The possibility that a structure might contain a union makes it hard to compare such structures; the compiler can't tell what the union currently contains and so wouldn't know how to compare the structures. This sounds a bit hard to swallow and isn't 100% true, most structures don't contain unions, but there is also a philosophical issue at stake about just what is meant by "equality" when applied to structures. Anyhow, the union business gives the Standard a good excuse to avoid the issue by not supporting structure comparison.



If your structures dont have stuff like floating point numbers, pointers, unions etc..., then you
could possibly do a memset() before using the structure variables..


memset (&myStruct, 0, sizeof(myStruct));



This will set the whole structure
(including the padding) to all-bits-zero. We can then do a memcmp() on two such structures.


memcmp (&s1,&s2,sizeof(s1));


But this is very
risky and can end up being a major bug in your code!. So try not to do this kind of memcmp() operations on structures variables as far as possible!

What are Trigraph characters?

These are used when you keyboard does not support some special characters


??= #
??( [
??) ]
??< {
??> }
??! |
??/ \
??' ^
??- ~

Can structures be assigned to variables and passed to and from functions?

Yes, they can!

But note that when structures are passed, returned or assigned, the copying is done only at one level (The data pointed to by any pointer fields is
not copied!.

When should a type cast be used?

There are two situations in which to use a type cast.

The first use is to change the type of an operand to an arithmetic operation so that the operation will be performed properly.

The second case is to cast pointer types to and from void * in order to interface with functions that expect or return void pointers. For example, the following line type casts the return value of the call to malloc() to be a pointer to a foo structure.


struct foo *p = (struct foo *) malloc(sizeof(struct foo));


A type cast should
not be used to override a const or volatile declaration. Overriding these type modifiers can cause the program to fail to run correctly. A type cast should not be used to turn a pointer to one type of structure or data type into another. In the
rare events in which this action is beneficial, using a union to hold the values makes the programmer?s intentions clearer.

When should the register modifier be used?

The register modifier hints to the compiler that the variable will be heavily used and should be kept in the CPU?s registers, if possible, so that it can be accessed faster. There are several restrictions on the use of the register modifier.

First, the variable must be of a type that can be held in the CPU?s register. This usually means a single value of a size less than or equal to the size of an integer. Some machines have registers that can hold floating-point numbers as well. Second, because the variable might not be stored in memory, its address cannot be taken with the unary & operator. An attempt to do so is flagged as an error by the compiler. Some additional rules affect how useful the register modifier is. Because the number of registers is limited, and because some registers can hold only certain types of data (such as pointers or floating-point numbers), the number and types of register modifiers that will actually have any effect are dependent on what machine the program will run on. Any additional register modifiers are silently ignored by the compiler. Also, in some cases, it might actually be slower to keep a variable in a register because that register then becomes unavailable for other purposes or because the variable isn?t used enough to justify the overhead of loading and storing it. So when should the register modifier be used? The answer is never, with most modern compilers. Early C compilers did not keep any variables in registers unless directed to do so, and the register modifier was a valuable addition to the language. C compiler design has advanced to the point, however, where the compiler will usually make better decisions than the programmer about which variables should be stored in registers. In fact, many compilers actually ignore the register modifier, which is perfectly legal, because it is only a hint and not a directive.

What is the difference between constants defined through #define and the constant keyword?

A constant is similar to a variable in the sense that it represents a memory location (or simply, a value). It is different from a normal variable,in that it cannot change it's value in the proram - it must stay for ever stay constant. In general, constants are a useful because they can prevent program bugs and logical errors(errors are explained later). Unintended modifications are prevented from occurring. The compiler will catch attempts to reassign new values to constants. Constants may be defined using the preprocessor directive #define. They may also be defined using the const keyword. So whats the difference between these two?

#define ABC 5
and
const int abc = 5;

There are two main advantages of the second one over the first technique. First, the type of the constant is defined. "pi" is float. This allows for some type checking by the compiler. Second, these constants are variables with a definite scope. The scope of a variable relates to parts of your program in which it is defined. There is also one good use of the important use of the const keyword. Suppose you want to make use of some structure data in some function. You will pass a pointer to that structure as argument to that function. But to make sure that your structure is readonly inside the function you can declare the structure argument as const in function prototype. This will prevent any accidental modification of the structure values inside the function.
Hope this was useful....:)
- - - Div

Sunday, October 25, 2009

What is LUCK ?

Luck

He worked by day
And toiled by night.

He gave up play
And some delight.

Dry books he read
New things to learn.

And forged ahead
Success to earn.

He plodded on with
Faith and pluck;

And when he won,
Men called it luck.

Friday, October 23, 2009

7 DONT's after a meal

After a meal..



Don't smoke- Experiment from experts proves that smoking a cigarette after meal is comparable to smoking 10 cigarettes (chances of cancer is higher).



Don't eat fruits immediately -
Immediately eating fruits after meals will cause stomach to be bloated with air. Therefore take fruit 1-2 hr after meal or 1hr before meal.



Don't drink tea - Because tea leaves contain a high content of acid. This substance will cause the Protein content in the food we consume to be hardened thus difficult to digest.



Don't loosen your belt - Loosening the belt after a meal will easily cause the intestine to be twisted & blocked.


Don't bathe - Bathing will cause the increase of blood flow to the hands, legs & body thus the amount of blood around the stomach will therefore decrease. This will weaken thedigestive system in our stomach.

Don't walk about - People always say that after a meal walk a hundred steps and you will live till 99. In actual fact this is not true. Walking will cause the digestive system to be unable to absorb the nutrition from the food we intake.


Don't sleep immediately - The food we intake will not be able to digest properly. Thus will lead to gastric & infection in our intestine.

Its not an Elephant's job to follow THIS ...

Wednesday, October 21, 2009

Thursday, October 8, 2009

How to Propose a Girl in C++

#include
#include
#define Cute beautiful_lady

main()
{
goto college;
scanf("100%",&ladies);

if(lady ==Cute)
line++;
while( !reply )
{

printf("I Love U");

scanf("100%",&reply);
}

if(reply == "GAALI")
main(); _/* go back and repeat the process */

else if(reply == "SANDAL ")
exit(1);



else if(reply == "I Love U")
{
lover =Cute ;
love = (heart*)malloc(sizeof(lover));
}

goto restaurant;

restaurant:
{
food++;
smile++;
pay->money = lover->money;
return(college);
}

if(time==2.30)
goto cinema;

cinema:
{
watch++;
if(intermission)
{
coke++;
Popecorn++;
}
}

if(time ==6.00)
goto park;
}
}
{
for(time=6.30;time<= 8.30;time+=0.001)
kiss = kiss+1;// not applicable to kids...
}
free(lover);
return(home);
}

Monday, October 5, 2009

My Interview Experience with Indian Navy (UES SSC)

Hello frnds...
I would like to share my experience with Indian Navy selection under UES (University Entry Seheme).
Today at 9 am the Navy people gave a presentation about Navy and the selection process. Then they divided all the students(approx 180-200) from various colleges of Tamil Nadu into 3 groups A,B and C.
I was in group A batch 2. This division was to conduct a group discussion for about 15-20 min.
My group got the topic "Should the 10th board exam removed or not ???"
I gave my points in the discussion that eventually became Super Heated !!!
Other topics were :
->Plane crash- responsible who - Mgmt or Pilots??
->IQ and EQ ??
Around 1 : 45 pm results came out and I cleared the Gd round :)

Then we were asked to come for Interview at 2 45 pm....
I went to the office in our campus and after some time I got a call to go inside a cabin for the interview....The interview was basically an aptitude one...Qts covered were:
1.Ur games interests
2.Extracurricular details
3.Frnds opinion about u
4.Basic computer qts like wat is RAM, ROM, Spped of computer...etc
5.Why u want to join Navy?
6.U appeared for NCC?
7.Any past experience about Navy?
8. Say about ur family?
Like these types of qts....
then the officer told its k...n u can leave ...he was grading me simultaneously on 10 parameters.....
then I told Thank U sir n came out....
Hope this may be useful. Any further help of any sort, if needed, pl leave a comment or a mail....-:)
Urs
Div

Tuesday, September 29, 2009

What is DHCP Option 82?


Light bulb 2 (Photo by brokenarts)To put it simply, DHCP Option 82 is the “DHCP Relay Agent Information Option”. Wasn’t that easy?

Option 82 was designed to allow a DHCP Relay Agent to insert circuit specific information into a request that is being forwarded to a DHCP server. Specifically the option works by setting two sub-options: Circuit ID and Remote ID.

The Circuit ID sub-option is supposed to include information specific to which circuit the request came in on. It’s an identifier that is specific to the relay agent, so what kind of circuit is described will vary depending on the relay agent. In an Ethernet-based network this is probably a port on a switch. In other networks, this might be a wireless modem or an ATM virtual circuit.

The Remote ID sub-option was designed to carry information relating to the remote host end of the circuit. In practice, this sub-option usually contains information that identifies the relay agent. In the case of an Ethernet network, this is the MAC address of the relay agent. In a wireless network, this would likely be a unique identifier of the wireless access point. It’s worth noting that the Remote ID sub-option was designed to be globally unique. In other words, Remote ID “7″ should not have different meanings depending on some other context.

In it’s default configuration, the DHCP Relay Agent Information Option passes along port and agent information to a central DHCP server. It is useful in statistical analysis, as well as, indicating where an assigned IP address physically connects to the network. It may also be used to make DHCP decisions based on where the request is coming from or even which user is making the request.

The Computers are men or women?

Computers are Like Men...


  • In order to get their attention, you have to turn them on.
  • They are supposed to help you solve problems, but half the time they are the problem.
  • They have a lot of data but are still clueless.
  • As soon as you commit to one, you realize that, if you had waited a little longer you could have had a better model.
  • They hear what you say, but not what you mean.

Computers are Like Women...


  • No one but the Creator understands their internal logic.
  • The native language they use to communicate with other computers is incomprehensible to everyone else.
  • Even your smallest mistakes are stored in long-term memory for later retrieval.
  • As soon as you make a commitment to one, you find yourself spending half your paycheck on accessories for it.
  • You do the same thing for years, and suddenly it's wrong.

A Dialog between a Webmaster and an ISP

Can you image that a dialog between a webmaster and ISP tech support could be interesting? Not really. But it does happen occasionally. Please read on.

ISP Support: Hello :) How can I help you?

Webmaster: hello. Our site is very slow recently. Also lots of database disconnection. What’s up?

ISP Support: I see. Let me check.

ISP Support: Your site is being abused. Have you noticed that?

Webmaster: not yet. What’s wrong?

ISP Support: I see the same ip adresses making many many many connections at the same time

ISP Support: I had to ban about 500 IPs yesterday

Webmaster: I see. I'll have my programmer to look into it.

ISP Support: do you allow people to post to the site?

Webmaster: yes. It is a public social media site.

ISP Support: do they have to register and log in first?

Webmaster: The system does allow posting without login. Your point?

ISP Support: I was wondering how you stop people from spamming

Webmaster: we request a user to enter an authentication code before saving to prevent program to spaml

ISP Support: and does that keep the spam away?

Webmaster: yes. we occasionally see some manual spam and then delete it manually.

ISP Support: ok. But I need you to think hard.

ISP Support: what happens when a program tries to fill in the authentication code?

Webmaster: it is hard, because typically the code is a randomly generated picture

ISP Support: do you think the spammer cares if he has to try 9999 times before it works?

ISP Support: i mean, he isn't doing it by hand, does he care if his program has to try 9999 times? how do you think the server feels while he tries 9999 times?

Webmaster: good point. you noticed some clue from the log data?

ISP Support: I notice some clues from the server status, also, this is my job all day long i look at sites being abused :)

ISP Support: did you read recently in online news, spammer bots can now solve hotmail authentication images

ISP Support: no, the many many connections is a different problem :)

Webmaster: I did not see the news yet.

ISP Support: It was last week, along with a gmail password compromiseand a flash exploit.

ISP Support: You would not believe how busy the bad people are out there.Think how much they could accomplish if they turned all that energy to good!

Webmaster: agreed.

ISP Support: I know it does not seem completely fair, but when you build a website that tempts people to come abuse it

ISP Support: we have to hold you responsible :(

ISP Support: I realize you are trying to build a safe and usable site

ISP Support: and you don't want it abused

Webmaster: we are on the same side because we are the primary victim of such abuse.

ISP Support: in US law there is an idea called an attractive nuisance. A pool is the classic example.nobody wants a child to come through their gate and drown in their pool

ISP Support: but the law recognizes that certain things tempt people to do what they should notand strangely enough, the pool owner is held responsiblefor having extra extra extra good protection. just because the pool is soooo attractive

Webmaster: Understand..

ISP Support: a site that publishes visitor comments is very very very attractive to spammersso

Webmaster: Sure.

ISP Support: I have heard that bloggers have some solutions

Webmaster: like?

ISP Support: for instance a registration on one particular site can be used to post on many blogs, I forget what this system is called. But it is easier for the user than having to register on every site

Webmaster: I see.

ISP Support: and it let's the blog owner know that the visitor has a good reputation in the blogging community, that his post is likely to have value. I think you should research this type of tool.

Webmaster: Good idea.

ISP Support: the alternative is to require your visitors to register.but the problem is that bots are rather good at registering :( those authentication codes, often called a "captcha". when they are made of letters and numbers, wellthe programs to analyze the images are getting very good smart bots can read them correctly more and more of the time

Webmaster: we are going to rotate our authentication methods to reduce risks.

ISP Support: the spammers use tricks to get real people to solve them for them. they say "fill in the code to get a free download"or something like thatso some kid who wants to download porn, or a song, or somethingends up filling in the code for a spammer - it's

Webmaster: really

ISP Support: you know sesame street?

Webmaster: yes the famous kids show.

ISP Support: They often ask kids to pick: one of these things is not like the others, one of these things, doesn't belong! and then you present six pictures: five are cats and one is a dog. very very very hard for a bot to solve that kind of puzzle

Webmaster: Interesting idea.

ISP Support: so the real problem is that a webmaster would like a lovely website that takes care of itself and in reality, a site where the public can post is going to require moderators to constantly watch what is happening. because nasty things will pop upand they will reflect poorly on your productand they will make your hosting company upset :

Webmaster: Well, we can simply focus one thing a day, unfortunately while there are so many of them out there trying so many things to abuse the digital world.

ISP Support: yes, the bad guys outnumber us by a lot :(

ISP Support: have you considered not having any real public posts that are not approved first by a human being?

Webmaster: we did consider to have a pre-approval before posting, but it makes the site with much less traffic

ISP Support: I know what you mean

Webmaster: we need to grow first, otherwise we have no website problems but no revenue

ISP Support: it's a complicated problem

Webmaster: yes.

ISP Support: the slashdot model has other users rate the value of each postones that are rated up showones that are rated down get hidden away

Webmaster: Our system is doing pretty much this now.

ISP Support: perhaps a combination of methods is best: posts from unregistered visitors have to be approved, but registered users go right on to the site.

Webmaster: Agreed. Thanks a lot for sharing your insights with me. This type of conversation actually is a good blog article

ISP Support: hehe. you will turn our conversation into site content!

Webmaster: valuable stuff for readers.

ISP Support: yes

Webmaster: really enjoyed my conversation with you today. I'll send you the link of the blog article based on this conversation "A Dialog between a Webmaster and ISP"

ISP Support: ok :)

ISP Support: byebye!

Webmaster: bye now

Saturday, August 8, 2009

Just Read !!!

Just Read this !!!



An amazing conversation I came across in a children’s weekly newspaper…(Ya I lovvve to read em!)

A computer engineer chats with his wife:-

Husband: Good evening dear. I have logged in!
Wife: Have you bought the grocery?
Husband: Bad command or file name.
Wife: I had told you in the morning!
Husband: Erroneous syntax…Abort?
Wife: At least give me your credit card. I want to do the shopping.
Husband: Sharing violation.
Access denied…
Wife: Do you love me or your computers or
you are just being funny with me right now!
Husband: Too many parameters.
Wife: It was my worst mistake that I married to an idiot like you…
Husband: Data type mismatch.
Wife: You are a useless nut!
Husband: By default.
Wife: What about your salary??
Husband: File in use...try after sometime.
Wife: What is my worth in your life?
Husband: Unknown virus.
Wife: I am going to leave you forever…
Husband: Close your programs and log out for another user.
Wife: It’s worthless taking to you!
Husband: Shut down.
Wife: I am going then!
Husband: It’s now safe to turn off your computer!

Friday, July 31, 2009

Be a LION !!!

Lion`s Green Card

In a poor zoo of India, a lion was frustrated as he was offered not more than 1 kg meat a day. The lion thought its prayers were answered when one US Zoo Manager visited the zoo and requested the zoo management to shift the lion to the US Zoo.

The lion was so happy and started thinking of a central A/c environment, a goat or two every day and a US Green Card also.

On its first day after arrival, the lion was offered a big bag, sealed very nicely for breakfast. The lion opened it quickly but was shocked to see that it contained few bananas. Then the lion thought that may be they cared too much for him as they were worried about his stomach as he had recently shifted from India.

The next day the same thing happened. On the third day again the same food bag of bananas was delivered.

The lion was so furious, it stopped the delivery boy and blasted at him, 'Don't you know I am the lion... king of the Jungle..., what's wrong with your management?, what nonsense is this? Why are you delivering bananas to me?'

The delivery boy politely said, 'Sir, I know you are the king of the jungle but ..did you know that you have been brought here on a monkey's visa!!!

Moral: Better to be a Lion in India than a Monkey elsewhere!!!

IntelliBriefs: Nirupam Bajpai : India has conferred Padma Shri award

IntelliBriefs: Nirupam Bajpai : India has conferred Padma Shri award

Monday, July 13, 2009

Love Marriage VS Arranged Marriage - The IT Perspective


Love Marriage: Resembles procedural programming language. We have some set functions like flirting, going to movies together, making long conversations on phone and then try to fit all functions to the candidate we like.

Arranged Marriage: Similar to object oriented programming approach. We first fix the candidate and then try to implement functions on her. The main object is fixed and various functions are added to supplement the main program. The functions can be added or deleted.

Love Marriage: It is a throwaway type of prototype as client requirements rises with time thus it is a dynamic system and difficult to maintain.

Arranged Marriage: Requirements are well defined so use of waterfall model is possible.

Love Marriage: Family system hangs because hardware called parents are not responding.
Arranged Marriage: Compatible with hardware Parents.

Love Marriage: You are the project leader so u are responsible for implementation and execution of PROJECT- married life.

Arranged Marriage: You are a team member under project leader parents so they are responsible for successful execution of project Married life.

Love Marriage: Client expectations include exciting feature as spouse cooking food, washing clothes etc.

Arranged Marriage: All these features are covered in the SRS as required features.

Love Marriage: Acceptance test possible you can try before you Buy.

Arranged Marriage: Product is sold on an as is where is basis. Product once sold will not be taken back!

LOVE !!!

Love & Ego
"Sometimes
love is
for a moment, sometimes love is for a
lifetime.


Sometimes a moment is
a
lifetime."

Once upon a
time
there was an island
where all the
feelings lived
One day
there
was a storm in the sea
and the island
was about to get drowned.

Every feeling
was scared but Love
made a
boat

to escape.

Every feeling
boarded the boat

Only 1
feeling
was left.

Love
got
down to see who it
was..

It was EGO;.

Love tried
and
tried
but ego wasn't
moving
also the water was rising.

Every one asked
love to leave him and come in the boat, but love
was

made to love.

At last all
the
feelings escape and Love dies with
ego on the
island..

Love Dies
because
of EGO
So, Kill Ego And
Save
Love.




Life is all
about moments, but not
milestones."

Monday, June 22, 2009

BAHV SEWTA

aaJ se *tum* BHAV SEWTA ke naam se jani jaougi.....THASTU

Saturday, April 4, 2009

NS 2 Installation and Fundamentals

Hi Frnds....
I welcome u to my blog wher I intend to share and learn.
I am learning ns 2 (Network Simulator 2 ver 2.33).
I welcome all ur doubts at my comment list.
I have sum nice ppts regarding ns 2 so if u want u can mail me.

Regardes
Divya Prakash

Pic :)

Pic :)
Look at !!!