Monday, March 23, 2009

Electrical Engineering VS Computer Science

Once upon a time, in a kingdom not far from here, a king summoned two of his advisors for a test. He showed them both a shiny metal box with two slots in the top, a control knob, and a lever. "What do you think this is?"

One advisor, an engineer, answered first. "It is a toaster," he said. The king asked, "How would you design an embedded computer for it?" The engineer replied, "Using a four-bit microcontroller, I would write a simple program that reads the darkness knob and quantizes its position to one of 16 shades of darkness, from snow white to coal black. The program would use that darkness level as the index to a 16-element table of initial timer values. Then it would turn on the heating elements and start the timer with the initial value selected from the table. At the end of the time delay, it would turn off the heat and pop up the toast. Come back next week, and I'll show you a working prototype." 

The second advisor, a computer scientist, immediately recognized the danger of such short-sighted thinking. He said, "Toasters don't just turn bread into toast, they are also used to warm frozen waffles. What you see before you is really a breakfast food cooker. As the subjects of your kingdom become more sophisticated, they will demand more capabilities. They will need a breakfast food cooker that can also cook sausage, fry bacon, and make scrambled eggs. A toaster that only makes toast will soon be obsolete. If we don't look to the future, we will have to completely redesign the toaster in just a few years."

"With this in mind, we can formulate a more intelligent solution to the problem. First, create a class of breakfast foods. Specialize this class into subclasses: grains, pork, and poultry. The specialization process should be repeated with grains divided into toast, muffins, pancakes, and waffles; pork divided into sausage, links, and bacon; and poultry divided into scrambled eggs, hard- boiled eggs, poached eggs, fried eggs, and various omelet classes."

"The ham and cheese omelet class is worth special attention because it must inherit characteristics from the pork, dairy, and poultry classes. Thus, we see that the problem cannot be properly solved without multiple inheritance. At run time, the program must create the proper object and send a message to the object that says, 'Cook yourself.' The semantics of this message depend, of course, on the kind of object, so they have a different meaning to a piece of toast than to scrambled eggs."

"Reviewing the process so far, we see that the analysis phase has revealed that the primary requirement is to cook any kind of breakfast food. In the design phase, we have discovered some derived requirements. Specifically, we need an object-oriented language with multiple inheritance. Of course, users don't want the eggs to get cold while the bacon is frying, so concurrent processing is required, too."

"We must not forget the user interface. The lever that lowers the food lacks versatility, and the darkness knob is confusing. Users won't buy the product unless it has a user-friendly, graphical interface. When the breakfast cooker is plugged in, users should see a cowboy boot on the screen. Users click on it, and the message 'Booting UNIX v.8.3' appears on the screen. (UNIX 8.3 should be out by the time the product gets to the market.) Users can pull down a menu and click on the foods they want to cook."

"Having made the wise decision of specifying the software first in the design phase, all that remains is to pick an adequate hardware platform for the implementation phase. An Intel 80386 with 8MB of memory, a 30MB hard disk, and a VGA monitor should be sufficient. If you select a multitasking, object oriented language that supports multiple inheritance and has a built-in GUI, writing the program will be a snap. (Imagine the difficulty we would have had if we had foolishly allowed a hardware-first design strategy to lock us into a four-bit microcontroller!)."

The king wisely had the computer scientist beheaded, and they all lived happily ever after.......

Monday, October 20, 2008

Pick it from the net,I love this story .........

10th grade
As I sat there in English class, I stared at the girl next to me. She was my so called "best friend". I stared at her long, silky hair, and wished she was mine. But she didn't notice me like that, and I knew it. After class, she walked up to me and asked me for the notes she had missed the day before and handed them to her. She said "thanks" and gave me a kiss on the cheek. I wanted to tell her, I want her to know that I don't want to be just friends, I love her but I'm just too shy, and I don't know why.

11th grade
The phone rang. On the other end, it was her. She was in tears, mumbling on and on about how her love had broke her heart. She asked me to come over because she didn't want to be alone, so I did. As I sat next to her on the sofa, I stared at her soft eyes, wishing she was mine. After 2 hours, one Drew Barrymore movie, and three bags of chips, she decided to go to sleep. She looked at me, said "thanks" and gave me a kiss on the cheek. I want to tell her, I want her to know that I don't want to be just friends, I love her but I'm just too shy, and I don't know why.

Senior year
The day before prom she walked to my locker. My date is sick" she said; he's not going to go well, I didn't have a date, and in 7th grade, we made a promise that if neither of us had dates, we would go together just as "best friends". So we did. Prom night, after everything was over, I was standing at her front door step. I stared at her as she smiled at me and stared at me with her crystal eyes. I want her to be mine, but she isn't think of me like that, and I know it. Then she said "I had the best time, thanks!" and gave me a kiss on the cheek. I want to tell her, I want her to know that I don't want to be just friends, I love her but I'm just too shy, and I don't know why.

Graduation Day
A day passed, then a week, then a month. Before I could blink, it was graduation day. I watched as her perfect body floated like an angel up on stage to get her diploma. I wanted her to be mine, but she didn't notice me like that, and I knew it. Before everyone went home, she came to me in her smock and hat, and cried as I hugged her. Then she lifted her head from my shoulder and said, "you're my best friend, thanks" and gave me a kiss on the cheek. I want to tell her, I want her to know that I don't want to be just friends, I love her but I'm just too shy, and I don't know why.A Few Years Later Now I sit in the pews of the church. That girl is getting married now. I watched her say "I do" and drive off to her new life, married to another man. I wanted her to be mine, but she didn't see me like that, and I knew it. But before she drove away, she came to me and said "you came!". She said "thanks" and kissed me on the cheek. I want to tell her, I want her to know that I don't want to be just friends, I love her but I'm just too shy, and I don't know why.

Years passed, I looked down at the coffin of a girl who used to be my "best friend". At the service, they read a diary entry she had wrote in her high school years. This is what it read: I stare at him wishing he was mine, but he doesn't notice me like that, and I know it. I want to tell him, I want him to know that I don't want to be just friends, I love him but I'm just too shy, and I don't know why. I wish he would tell me he loved me! `I wish I did too...` I thought to my self, and I cried.

Friday, October 17, 2008

Describe how a friend changed you life in a story(DESCRIPTIVE essayXD)

A friend is a person who will stretch out their hand to help us when we fall.A friend will not mock or disdain us whenever we fail.Indeed,friends are people nobody can do without.Of course,I have a good,loyal friend too.She was the one who changed me much and instilled me with a sense of responsibility with her righteous and kind of character.
I once isolated myself from rest of the world after terrifying accident which killed my parents in front of my eyes.After the traumatic ordeal,I was forced to be sent to an orphanage as no relatives wanted to take me in because my parents were not rich and had no assets to leave me.Once i thought i could start a new life at this place.But everything was a nightmare once again as there a group of older boys who took an instant dislike to me and planned to make life miserable for me.The other orphans kept away from me to avoid trouble.
Just when i was suffering from a great depression,,Jolin,a caring angel,come to me.She was one of the orphans too.But she was one of the few who did not bully or look down to me.Nor did she alienate me.Everytime,whenever there were games or activities held by the guardian,she would always join me,or partner me so that I could be part of the orphanage.Instead of feeling being isolated and neglected,I was slowly healed by her kindness.
Jolin had always given me much comfort.She would always be at my side when I was sad.I remembered there was a day where all the orphans accused me for breaking a vase.Again,Jolin was the one who proved to the guardian that it was not my fault.Eventually,both of us developed a special bond.Jolin was a very popular girl in the orphanage.She was the apple of the guardians.Other orphans admired her.Because of her friendship with me,I was slowly accepted.
The time passes swiftly as I concentrated fully on my studies.I overcame every huddle academically with ease and finally I obtained a scholarship for tertiary education.I knew that i had to make something of myself through education.
After a few years of sweat,toil and tears overseas.I am niow an engineer.Most people say that friendship is the foundation of love,and love is the friendship that catches fire.Jolin is now my lovely wife who had bare me three lovely children.I have become a successful and tough man who is ready to shoulder the responsibility of looking after my three sons and face the society which is full of challenges and hardship.And all there I have my wife,Jolin,to Thank You.

Wednesday, September 17, 2008

can we negate the existing of true love?

In most cases we think: this is true love, when in fact it’s not. But than if this ain’t love than what it is? There are plenty of things that we confuse with love.
It could be just the basic instinct. The feelings can be passionate and crazy.And after it all the misunderstanding starts, and once infatuated lovers will find out that they have nothing in common and sometimes they don’t even know what to talk with each other.

Another variant is when people lack support, care and attention to their person or they just scared to stay single. Being with someone can be a habit when one simply got used to the other. It can either be a sick addiction or some self-interest. People call all these types of relationship love just by mistake or trying to conceal the true nature of it.

But than what does real love look and feel like? Maybe it’s when two people seem to know each other for ages and even in their previous lives. They can go on talking and talking and conversation never lacks topics and never gets dull. Or people don’t have to say anything because they understand each other without words. And those moments, minutes and even hours of silence are never uncomfortable. True love is when partners complete one another, when they’re together it’s peaceful, the whole other world with it’s sufferings and problems doesn’t exist and nothing even matters.

True love means understanding. One trusts another more than him/herself and feels ready to satisfy every little need of a partner. Two people don’t stop for a second looking into each other eyes.

It’s said that two persons truly in love aren’t looking at each other but in the one direction. And this is rather reasonable because they don’t say nothing “this is yours and this is mine” and share everything: friends, enemies, interests, problems and etc. One has his/her own identity but sees him/herself only as a part of the other. Still real love is not a relationship of property. If you really love someone you may say “I belong you” but always be ready to let go if it makes the person you love happy.

Jealousy stands out of the true love. How can one be jealous if there’s so much love and faithfulness? Real love doesn’t long for power, it doesn’t want to hurt, doesn’t want to punish for mistakes, it’s self-sacrificing and ready to forgive other and other again. But it’s wrong to think that true love is always a suffering, it only means that you take a person as he or she is and don’t expect the one you love to be perfect.

True love isn’t supposed to blow your mind, yet it doesn’t tend to get and to possess – it’s a and very special state of a soul.
But the question that true love is still has no definite answer. Do we truly love only once in our life? At what age are we supposed to meet our love? Does it last for a lifetime or just for a while? Probably everyone has his own answers to this questions. The truth is that no one should spend life chasing ideals or building relationships by some model of a true love. One will probably fail and miss the real thing beyond all this.

We should remember that very many things we need to supply our healthy and comfortable living but only the true feeling of love makes life really longer and happier. And this is scientifically proved.^^(mY thEory again,copyrighted)Eventually myself is in love with a girl too,but yet it is just a feeling that conceal in my heart,signifying nothing but harsh,endless grief.....................

Love is patient, love is kind.
It does not envy, it does not boast,
it is not proud. It is not rude,
it is not self-seeking, it is not easily angered,
it keeps no record of wrongs.
Love does not delight in evil but rejoices with the truth.
It always protects, always trusts, always hopes, always perseveres.
Love never fails.
—I Corinthians 13:4-8a (NIV)

Picked from The King James Bible

Friday, September 12, 2008

Malaysia broughtly presents you the most romantic,heart-touching fIlm

Despite all those eclipse and nightmare malaysian having,Malaysia broughtly presents you the "Winter Sonata,Love in Surau"written by Anwar.This has clearly shown that Malaysia is on their way to succeed their dream by involving themself in hollywood.Besides,those breath-taking scene will sincerely make viewers cry for every 5 minutes.This film was taken in 2008 ,February 19 and will be debut onto the scene on 2008,December 30.It was also the first malaysia's movie to be broadcast on TV1.The film soundtrack was the best selling album in the entire world."Winter Sonata,Love in Surau"was filmed in Sungai Petani,second street(which well known by those native as ji geh in hokkien).The perfect landscape second street posessed had fully enhanced all the scene of the movie.Below we brings you a sneak peek into the poster of this gigantic movie.

Directed by :Samy velu
Produced by:Png Gaik Meng
Written by :Anwar Ibrahim

Starring :Pak Lah as Kang Joon Sang / Lee Min Hyung
:Najib as Jung Yu-jin
:Mahathir as Kim Sang-Hyuk

The families of Kim Sang-Hyuk, a boy who is a Sophomore in High School, and a girl named Jung Yu-Jin in his same class have been friends for many years, and thus Sang-Hyuk and Yu-Jin have known each ther all their lives. Sang-Hyuk longs to have a romantic relationship with Yu-Jin, but she seems oblivious to his longing, and therefore they just continue as strong friends and companions.
Into their lives one day comes transfer student Kang Joon-Sang. He is lame,ugly and a paranormal student at mathematics, but he seems to carry a chip on his shoulder, and his behavior is surly and hot.
Nevertheless, Sang-Hyuk and Yu-Jin and their accepting and amicable friends let Joon-sang into their circle. At a weekend retreat at a cabin the woods, Yu-Jin falls into a dangerous situation and Joon-Sang saves her life. Her gratitude opens Joon-Sang's heart, and the two fall deeply in love. However, their joy is not to last, as a tragic event ends their romance.
Ten years later the friends are all successful young professionals. Sang-Hyuk and Yu-Jin are betrothed and planning to marry soon. While walking to the engagement party Yu-Jin suddenly spots a man in the crowd who looks astonishingly like Joon-Sang. Her shock is so great that she faints on the street, for she has never really gotten over him, and the wedding is postponed.
It turns out that the man is Lee Min-Hyung, an architect whose firm has hired Yu-Jin's company on contract. Yu-Jin is astounded by the resemblance, but it's apparent that Min-Hyung has no knowledge of Joon-Sang, and his warm and humorous personality is entirely different.
A series of events has been set in motion, however, that will alter the course of the lives of everyone.

Tuesday, September 2, 2008

dAd,tHanks for the splendid love you've give 2 me

It has been 23 days since my dad leave us and continue his journey to another world,and in this lonely,rainy night,I listen to a few songs which makes me recall the events when my dad was still alive.Moreover,he's abit childish= =..but,I still remember the love he gave me,and he taught memuch about something that is essential in our daily life....Although dad was no longer be by my sides,but I know that courage is needed to continue my life,because my dad had told me before:"RJ,you are a man,in the future you must take care of your family,your love,so don't stop because of the obstacles you meet,or anything that stop you from achieving your goals,you must be independent,caring,and the most important is,love the poor,help those who need,and becomes a responsible man!"Oh heavenly father,I realize that the life for me and my dad no longer be lingered on,so I pray to you that please tell my dad how much I love him and although I'm upset,but I'll still try to be tough and continue my road to success,and I commit this prayer in Jesus name,Amen.....dAds,i promise your teaching will etch in my memory forever,lOv3 you dAd,the greatest dAd in the world,and the most childish = =(always bully me and my brother at home= =,but sometimes he get some punishment from me 2,lolz)

Below I present you the song title and the lyrics I listen to and connect my heart to the wonderful story when my dad was still alive

Sorry Seems To Be The Hardest Words By:Elton John
What have I got to do to make you love me
What have I got to do to make you care
What do I do when lightning strikes me
And I wake to find that you're not there
What do I do to make you want me
What have I got to do to be heard
What do I say when it's all over
And sorry seems to be the hardest word
It's sad, so sadIt's a sad, sad situation
And it's getting more and more absurd
It's sad, so sadWhy can't we talk it over
Oh it seems to me
That sorry seems to be the hardest word
What do I do to make you love me
What have I got to do to be heard
What do I do when lightning strikes me
What have I got to do
What have I got to do
When sorry seems to be the hardest word

Here I Am By:Air Supply
Here I am playing with those memories again
And just when I thought time had set me free
Those thoughts of you keep taunting me
Holding you, a feeling I never outgrew
Though each and every part of me has tried
Only you can fill that space inside
So theres no sense pretending
My heart its not mending(chorus)
Just when I thought I was over you
And just when I thought I could stand on my own
Oh baby those memories come crashing through
And I just cant go on without
On my own Ive tried to make the best of it alone
Ive done everything I can to ease the pain
But only you can stop the rain
I just cant live without you
I miss everything about you(chorus)
Just when I thought I was over you
And just when I thought I could stand on my own
Oh baby those memories come crashing through
And I just cant go on without
Go on without
Its just no good without you

Saturday, August 30, 2008

The letter of dEmise

Dying,i'm lacking of motivation in study.....(yet the trial exam is approaching).The worst is,if i can't get a good result,my mum definitely not going to reconcile with me.So,I've decided to impose something that is evil...(guess what,curi tengok la).Haiz.but after a long contemplating towards the consequences in my mind,finally i give up.Because it's not my desire to have the feeling of conscience.Really,I'm really frusfrate with my own action,everytime my mum hit me up for a study,I'll give her an ackward excuse,trying to avoid from it.I know I know...procrastination is the thief of time.Indeed,I still feel myself is lazy.......