31 July, 2010

A Sound Mind in A Sound Body

31st, July, 2010

Health is wealth (ఆరోగ్యమే (aarOgyamae) మహభాగ్యం (mahabhaagyam)), we read this during childhood. But how many of us care it?
I heard three stories among the people whom I am aware. All three were suffered from kidney deceases due to lack of sufficient intake of water. These three people are working as software engineers. Is it really required to sacrifice health under the name of advanced development (so called digital revolution engineers)? No one can replace ‘peace of mind’ and good health, most of us won’t recognize their importance till they become irreversible.
Take plenty of pure water… drink atleast 0.5 liter water every morning. I habituated this almost from past 10 years. First time it will be difficult to take water on fasting. Once habituated it will be a vain (addiction). Ensure to consume 2 liter of water during work time. Daily small workout keeps us active and healthy. More over we have to be away from junk food (self control).

25 July, 2010

An Inspiring Story

25th July, 2010
An Inspiring Story – An EAMCET topper
Given below is collection of student story from local paper www.eenadu.net. He also secured good rank in GITAM entrance and few other engineering entrance exams. Read on… 
I will upload few more stories.


01 June, 2010

శ్రీమతి సుధామూర్తి

1st June, 2010
A note from Smt. Sudha Murthy’s narration.
I would like to share an old story. I read an interview article in Eenadu weekly about Smt. Sudha Murthy, an Indian social worker and author of several short story books. She worked for Tata group during initial days of her career. She was one of key persons in establishing Indian pioneer Infosys, “a company driven by values and powered by engineers”. Few of her books translated to other regional languages in India.
She visited Russia long ago. A Russian who saw them smiled with a polite greeting. He recognized them as Indians and poses the same question to Smt. Sudha. It was obvious because of traditional Indian dressing followed by Smt. Sudha. She was proud for the unique reorganization of our culture.
A few moments later, she observed that a newly married couple praying at the statue of soldier. With unclear thought, she requested the Russian what the couple is doing. He replied, “They are honoring soldiers who scarified their life for the country on the eve of marriage day”. She felt proud about Russian culture.
So, every custom has its own beauty. It all depends on how we accept or reject it

26 May, 2010

A new Blog

Almost after two years, I started new blog. It is here.

I am a math and science geek. I like puzzle solving also. I believe it improves lateral thinking of various problem solving techniques. I also like to relate significance of mathematics to real life challenges. Most of the postings in the blog will be of kind having natural importance in day-to-day life. Some of the questions are colleted from various interviews. I encourage posting your answers as comments. I will not provide answers immediately to avoid biasing.

Welcome to my new blog.

Regards,

Ramana.

07 May, 2010

Perception or Acceptance!


The following mail message I received from one of colleague… read…

Arthur Ashe, the legendary Wimbledon player was dying of AIDS which he got due to infected blood he received during a heart surgery in 1983. From world over, he received letters from his fans, one of which conveyed: "Why does GOD have to select you for such a bad disease"?

To this Arthur Ashe replied:

“The world over -- 50 million children start playing tennis, 5 million learn to play tennis, 500,000 learn professional tennis, 50,000 come to the circuit, 5000 reach the grand slam, 50 reach Wimbledon, 4 to semi final, 2 to the finals, when I was holding a cup I never asked GOD 'Why me’?”.

And today in pain I should not be asking GOD 'Why me?'


Happiness keeps you Sweet

Trials keep you Strong

Sorrow keeps you Human

Failure keeps you humble and

Success keeps you glowing, but…

Only Faith & Attitude keeps you going...

01 May, 2010

People Whom I Admire – Sandeep Pandey

Sandeep Pandey, a winner of Ramon Magsaysay award in 2002, graduated from BHU, India and followed by Phd in Mechanical Engineering from UCB, USA. He is also one of the pioneers of RTI movement. He found Asha society for educating rural India.

More on http://www.ashanet.org/

16 April, 2010

A patent and Power Management in Small Gadgets

Can silly idea change the world? Certainly! There are many examples in the history. Here is a simple story. Don’t neglect basic mathematics and physics where ever you are…

It is a story of patent (Patent # 5280371, Directional Diffuser for a Liquid Crystal Display) made by an MNC. The same technology is now being used in smart systems. It was developed to minimize the scattered light from the source and to increase light rays directionality. However, the saving might be small percentage in case of large displays. On mobile displays the saving will be considerable.

Basis:

An aircraft (civil/military) will be equipped with the state-of-the-art electronics ranging from Flight Controls, Displays, Flight Management Systems, Servos, etc. All these systems needs high power generators, usually the aircraft engines will generate large power compared to small systems.

These display systems will be having CRT, LED or LCD based monitors. Except CRT, the other two requires less power, order of few tens of watt. Then why do we need to save small quantity of power (due to scattered light rays) in LCD display? We are engineers, be smart! J

An LED is active display that emits light on power (just remember, it will replace entire lighting systems in near future. The CFL technology is an alternative). Where as, an LCD is passive display, which requires external light source (backlight) for illumination. Based on viewing angle the light will be scattered to sides and vertical direction.

The idea here is to minimize the scattered light to sides, since the display is required only to the pilot. It was achieved using basic physics principles. We use convex lens to direct light on single point. How can it be made directional? (Hint: An array of convex lenses).

The same principle is used in mobile displays, PDAs, iPod, etc. The MNC licenses the technology to the required companies.

Have you heard about CAN, I²C and SPI protocols? These protocols are used in plenty of chips made every year. Need is base for them, yet, the “Need” not to be mother of invention always.

23 March, 2010

Bhagat Singh, Rajguru and Sukhdev


March 23rd ... three Indian Independence Movement fighters were executed.

A tribute to Bhagat Singh, Rajguru and Sukhdev, executed just at the age of 23. What can we learn from them?

Will update more.

13 March, 2010

Recession! How?


Did you ever have the questions like, How the recession happened? Why do we need control on money flow? What is the importance of economy? What is Marshal’s economy theory?
Observe the following simple example,
A, B and C are close friends, of which A is rich, and B, C are moderate investors. Let us assume A lends his money to B and C equally. Say, B and C acquired new land with some of the borrowed money and rest used for other activities, like material, workers, etc. Think that B and C out of money and there are no other investors to lend money for them. What will happen?
Now, fictitiously A is rich, B and C also rich (by virtue of investment value). Also, the workers might have improved their social status due to the value addition they did to the construction. Every one virtually improved their social status, yet there is no money! Huhh… stalemate! In the example A is banker, B and C are customers.
After some time, they won’t find money any where and may experience the state of recession. Once declared recession, every one tries to be defendant and it worsens the situation. The advancement in media adds even more non-sense. In such scenarios, the governments try for rotation of money using packages and other techniques (CRR)…
I believe this is the basic reason behind collapse of financial systems. Fortunately, the roots of our banking system are stronger and we could able to come out of it in less time. Still the situation in west is not encouraging. We have a renowned economist and the instrument of Late. PV Narasimharao as our PM, proud to be Indian.

24 February, 2010

How I Got Addicted to Embedded System Development?

First I am thankful to E-Learning center of College of Engg., GITAM, where I first explored to embedded systems. During 6th semester I was introduced to the new buzz term Embedded System and started gathering information. On the way, www.embedded.com and www.techonline.com helped great extent. Finally, I had finished my academic project in making small embedded system (Crawling Message Display using 8051). Most of my friends opted career in service sector or abroad after engineering, where as I stick to my loving smart systems development, and struggled a bit to get an edge.

I still hear some pessimistic opinions about development of embedded systems in India. Even, few of colleagues, some professional networking portal friends, and few experienced also were not sure of the career prospects in this area. However, I am optimistic in nature and keep abreast of technological changes to cope up the time to market needs. I don’t have any concerns about embedded systems development in India, we definitely have bright future. I shall document my learning for would be professionals.

I believe embedded development requires dedicated learning and multidisciplinary engineering skills. It is always suggested to learn from experts, other engineers and from our own experiences.

I have collected an article long ago, same presented here. Infact, my imagination about the future of embedded systems is much advanced than what the article covers. I am not sure of the statistical data given at the end, after observing the offers that I am getting from various Indian giants I believe the figures might be correct.

Just read on…

Source: http://archives.infotech.indiatimes.com/articleshow/msid-980521,flstry-1.cms

Embedded systems: can India win?

5 Jan, 2005, 0007 hrs IST, Pradeep Kurup, INDIATIMES NEWS NETWORK

Embedded systems technology is a field that is fast making waves in the Infotech world.

Though many developed countries have made huge strides in the technology, the huge skill requirement coupled with essential working experience and infrastructure needed for the sector has made India an eligible candidate to lead the embedded systems revolution.

The technology that has become a part of everyday life has thrown open huge opportunity, though countries like Japan, Thailand and South Korea have made huge strides dealing with the predecessor to embedded systems technology, i.e. microprocessor.

But, as the world gets logged on to more and more Internet applications in everyday life, the computing technology needs to keep pace by mastering a technology that will looks beyond microprocessor.

So, the need is applications that are manageable, adaptable, scalable, and flexible.

What are embedded systems?

Embedded systems are combination of computer hardware and software, and perhaps additional mechanical or other parts, designed to perform a dedicated function.

In some cases, embedded systems are part of a larger system or product, as in the case of an antilock braking system in a car. Contrast with general-purpose computer.

Embedded systems are the applications that fuel some of the microprocessors that play a hidden but crucial role in our everyday lives.

An embedded system consists of two components: a compact, ultra reliable operating system that controls the microprocessor inside a device, and the suite of applications that runs on the operating system.

VLSI is just about chip design, designing hardware, whereas embedded systems are a composite solution of creating software for a given hardware to deliver required functionality.

Where are embedded systems mostly used?

Embedded systems are fast and smart microprocessors, smaller in size, that are the very life of home appliances.

Embedded systems have revolutionized home electronics by making them smarter.

The future of home electronics industry is the link with Internet, so that they become operational from anywhere. This will be helped by advances in embedded systems.

Embedded systems find application in microwave ovens, cell phones, calculators, digital watches, VCRs, cruise missiles, GPS receivers, heart monitors, laser printers, radar guns, engine controllers, digital cameras, traffic lights, remote controls, bread machines, fax machines, pagers, cash registers, treadmills, gas pumps, credit/debit card readers, thermostats, pacemakers, blood gas monitors, grain analyzers, and what not.

What's the market for embedded systems?

The world market for embedded systems development is around $25 billion and is expected to grow at a CAGR of 16%.

The embedded systems technology was $250 million industry in 1998.

Cisco, Wind River Systems, Sun Microsystems, Integrated Systems, Microware Systems, and QNX Software Systems are among the prominent developers of embedded systems.

According to a study, Future of Embedded Systems Technologies, the market for embedded systems is expected to grow at an average annual growth rate (AAGR) of 13% over the period.

The market for embedded systems are divided into 4 segments, namely, embedded software, embedded processors, embedded boards and embedded memory.

Embedded processors are divided into microcontroller (MCU), microprocessor (MPU), and digital signal processor (DSP) segments.

Embedded Memory includes various types of random access memory (RAM) and programmable read-only memory (PROM) memory, as well as flash memory.

Software for embedded applications which includes real-time operating systems and portable operating systems will grow at an AAGR of over 16%. Both Microsoft and Sun have entered the embedded systems marketplace with their Windows CE and Java offerings respectively.

Embedded processors, the largest segment in terms of revenue, will grow at 11.2% on average per year.

Market for embedded memory products will rise at an AAGR of 17.7%.

Embedded boards will see a respectable AAGR of 13.1%.

Why's the market for embedded systems booming?

Embedded products are no more limited just to the high-end technology related tools. They are very much an integral part of our life today.

Everyday home appliances, phones, toys, entertainment systems and printers, though find extensive use of embedded systems, are first generation systems.

The advent of the internet and the need for convergence has ushered a new era in the field of embedded systems.

The modern-day embedded processors are being designed specifically for Net-centric markets.

The emerging embedded processors will ensure new CPU architectures that promise high-end performance and customization.

Analysts are of the view that the next generation hardware and software supported by embedded technology will be more manageable, adaptable, scalable, and flexible.

The embedded systems applications will branch out areas as diverse as wireless, internet and mobile communications, industrial control, test and measurement, networking, aerospace and automotive control, consumer electronics, digital imaging and defense.

What's the future of embedded systems in India?

India has the potential to make substantial revenues in embedded systems development exports.

At present India exports embedded systems worth to the tune of $1 billion and this could grow to $5 billion within two to three years.

India could offer embedded system development services along with manufacturing and market embedded system solutions.

Apart from Infotech services companies, substantial embedded systems development is being done by multinationals such as Texas Instruments and Intel.

India has a bright future in embedded systems as the availability of skilled manpower is in abundance.

Embedded system requires considerable domain knowledge, say in automotive, telecom or medical for which the system has to be designed.

15% of HCL staff is working on embedded systems. It contributes more than 30% of HCL Technologies revenues.

The high level of technological and domain skills required by embedded system are available in India, which gives a definite edge for the country.

TCS is fast moving up the value chain. The largest software exporter of the country has been developing embedded systems for overseas as well as domestic clients. Now, along with the outsourced operations, TCS is planning to design embedded systems itself.

Seeing the huge market potential, TCS will be manufacturing the systems in a fabrication unit located elsewhere and marketing it in the India and abroad.

Wipro has around 4,000 people in embedded systems. If the telecom services are included then the number goes up to 9,000.

Come on, learn the technology and grab the opportunity…

22 February, 2010

People Whom I Admire – Dr. Verghese Kurien

I heard about Dr. Kurien in a GK class during 10th. Later I read about him in Annadaatha magazine, followed by news media. He is father of White Revolution in India, and Anand village in Gujarat is recognized world wide due to his efforts. Amul is his brain child. Dr. Kurien is the first person who demonstrated making milk pudding (cheek) from normal milk. Unfortunately, because of improper politics he was forced to quit from his role. Now India is largest milk producer in the world and second maker of milk products after Swiss. We still have to improve on productivity. We can read some of his thoughts from the book “I too had a Dream”.

People Whom I Admire – Aruna Roy

I had one question earlier, does information is a wealth? Even though I have seen evaluation of Internet and computer closely from past decade I haven’t realized its importance till Aruna Roy (IAS) and others initiated RTI movement. As a citizen of this country I should be thankful to the government and democracy. Aruna Roy started Mazdoor Kisan Shakti Sangathan which became pioneers of Indian RTI movement. A winner of Ramon Magsaysay (treated Asian Nobel Prize), we (India) can learn lot from this former IAS officer in small and precise articles.

People Whom I Admire – Dr. Kalam

I hope no need of introduction, yet would like to mention what learnt from him. Few words like, “make big steps, but ensure it on the top of hill”. It helps me in making calculated risk.

I will update few other notes.

People Whom I Admire – My Parents

Yes, they are visible gods. I don’t know much about the word God, it is immaterial for me. Matru, Pitru and Aacharya… there is no word of god in these phrases. They are the first roll models of my life. One of the seers in Andhra (of-course I don’t believe them too) about whom I heard from my school teacher, preaches to love parents and co-human. I appreciate his effort. They are ultimate. Even, if at all god exists, can’t feel the kind of intimacy and dearness as parents.

31 January, 2010

Think 0÷0 =?


One day a teacher was explaining about basic mathematics to his pupils. He posed the following question,

"I have 25 apples with me, and you are all total of 25 children. So, if I distribute them, how many apples will each have got"?

The children shouted in chorus "one apple each".

A smart boy erected up, and question the teacher "there are no children in the class and you don't have any apples, even then would we able to get one apple each"?

The teacher was puzzled for a while. Then the teacher said 'I don't know my boy'.

The student intent was, when 1÷1 = 1, 2÷2 = 1, so on... will 0÷0 equals to 1? And later the student proved that 0÷0 is NOT equal to 1.

The student was none other than SRINIVAS RAMANUJAN, a mathematical genius till now world had. Unfortunately our land lost him at early age.

If possible read the book THE MAN WHO KNEW INFINITY.

28 January, 2010

PI (∏) = 3.14.... ?

How to prove the value of PI is constant and irrational number? Here is simple proof.

Yet to update, need some diagrams.

05 April, 2009

Role of Type System in Software Development (Technical)

If some one asks what is C++, I would say better C with primary emphasis on type safety. So what is the significance of "Type System" in program development? I will try to explain...
During implementation of software, programmers usually overlook warnings thrown by the compilers that are against to the usual conversion rules. Unfortunately programmers will tend to suppress forcibly few warnings. A sort of type overriding will cause critical errors. Let us analyze two such kinds of idioms.

Brief Description of Type System
A type is set of values and associated operations, where as an Abstract Data Type represents generic mathematical model. An ADT will have its own definition in each programming language. For example the 'int' is a primitive type defined by compiler which allows addition, subtraction, multiplication and division on such variables. When an 'int' type is mixed with scalar variables (e.g. pointers) the kind of operations will be different, like pointer addition and subtraction. (multiplication and division are not valid) And, present day compilers are providing user defined operations on any of data type with the help of operator overloading.

Enumerations in C and C++
In C the enumeration constants (like INACTIVE given below, not enum variable) are just integers or can be converted to integers easily. After one or two stages of parsing, the compiler replaces the enumerated constants with their equivalent integer representations. And hence assignment of integer to enumerated type variable is a valid programming construct.

In C++, even though the literal INACTIVE is constant, it will have an associated type information during parsing. And an implicit conversion of a user defined type (like enum) to another type (like int) is not allowed. This will help us in making better software.

How the type system will help us?
As an example, observe the following code snippet,

typedef enum SystemStateTag
{
INACTIVE = 0,
OPERATIONAL,
FAILURE
} SystemState;

Snippet1

The type SystemState represents state of a system in enumerated constants INACTIVE, OPERATIONAL and FAILURE. The compiler imposes enumeration type on any SystemState variable. Let us analyze the following code in terms of C and C++ compilation.

int calculateState();
SystemState sysState = calculateState();

In the above statement, the assignment

sysState = calculateState();

causes an implicit or explicit conversion of int to enum based on the type of compiler used.

As per ANSI C, the conversion from an int to enum is valid and implicit (no need of casting), and as per ANSI C++ the conversion is an error, requires an explicit casting. Some compilers (e.g. Borland C++ 5.02) treat the conversion as warning by default, and generates error message when compiled as per ANSI standard (try using –A option in Borland).

Since we are assigning the return value of function calculateState() to sysState, it is possible that the function may return values other than 0 (INACTIVE), 1 (OPERATIONAL) or 2 (FAILURE), in which case the system will be malfunctioning.

Perhaps this error would be trapped during system testing time and at this stage the correction effort will be more. By imposing C++ strict compiler type checking we can push such errors to compile time. In C, using defensive programming designs, like use of switch cases along with default statement, we can catch such errors at run time, but it would be too late.

Errors due to implicit conversions
The following code compares sysState against OPERATIONAL and the result is of type Boolean (can be of 0 or 1).

if(OPERATIONAL == sysState)
{
// process command
}
Snippet2

If the programmer tends to compare as shown below, is valid in C or C++

if(sysState = OPERATIONAL)
{
// process command
}
Snippet3

A C/C++ compiler implicitly converts ‘the return value of assignment statement (What it mean?)’ in ’if’ to Boolean type. It is the limitation of C++ to support legacy code written in C, it can be made fail safe by using defensive programming idioms as shown in the snippet2, because the statement OPERATIONAL = sysState is not valid in C/C++. This was an error that caused loss of $400 million during space craft take off.

Modern programming languages like C# imposes strict type checking, and will not allow any implicit conversions. Code snippet3 will not be allowed in C# or Java.
Especially Engineers making safety critical systems need to be aware of in depth knowledge in type system.

04 April, 2009

Utility Theory

Have you ever thought what will happen if the currency value falls or raises? What is the importance of Economics?
(Yet to Update :))

18 February, 2009

No One Perfect, Quarrels are Natural

18th Feb, 2009

Ohh.. After exactly an year, posting new message…

I received the following mail message from my friend, something to learn from it… just go through

Monica married Hitesh this day. At the end of the wedding party,
Monica's mother gave her a newly opened bank saving passbook.
With Rs.1000 deposit amount.

Mother: 'Monica, take this passbook. Keep it as a record of your marriage life.

When there's something happy and memorable happened in your new life,
Put some money in. Write down what it's about next to the line.
The more memorable the event is, the more money you can put in.
I've done the first one for you today. Do the same with Hitesh.
When you look back after years, you can know how much happiness you've had.'

Monica shared this with Hitesh when getting home.
They both thought it was a great idea and were anxious to know when the second deposit can be made.

This was what they did after certain time:

  • 7 Feb: Rs.100, first birthday celebration for Hitesh after marriage
  • 1 Mar: Rs.300, salary raise for Monica
  • 20 Mar: Rs.200, vacation trip to Bali
  • 15 Apr: Rs.2000, Monica got pregnant
  • 1 Jun: Rs.1000, Hitesh got promoted
..... and so on...

However, after years, they started fighting and arguing for trivial things.
They didn't talk much. They regretted that they had married the most nasty people in the world....
No more love...Kind of typical nowadays, huh?
One day Monica talked to her Mother:

'Mom, we can't stand it anymore. We agree to divorce. I can't imagine how I decided to marry this guy!!!'

Mother: 'Sure, girl, that's no big deal. Just do whatever you want if you really can't stand it. But before that, do one thing first. Remember the saving passbook I gave you on your wedding day? Take out all money and spend it first. You shouldn't keep any record of such a poor marriage.'

Monica thought it was true. So she went to the bank, waiting at the queue and planning to cancel the account.

While she was waiting, she took a look at the passbook record. She looked, and looked, and looked. Then the memory of all the previous joy and happiness just came up her mind. Her eyes were then filled with tears. She left and went home.

When she was home, she handed the passbook to Hitesh, asked him to spend the money before getting divorce. The next day, Hitesh gave the passbook back to Monica. She found a new deposit of Rs.5000. And a line next to the record:

'This is the day I notice how much I've loved you thru out all these years. How much happiness you've brought me.'

They hugged and cried, putting the passbook back to the safe.
Do you know how much money they had saved when they retired? I did not ask. I believe the money did not matter any more after they had gone thru all the good years in their life.

"When you fall, in any way, Don't see the place where you fell, Instead see the place from where you slipped.

“No one perfect, accept your partner as they are. There is no ABSOLUTE"

18 February, 2008

Five Monkeys Experiment (Change Management)

There was an interesting experiment that started with five monkeys in a cage. A banana hung inside the cage with a set of steps placed underneath it. After a while, a monkey went to the steps and started to climb towards the banana, but when he touched the steps, he set off a spray that soaked all the other monkeys with cold water. Another monkey tried to reach the banana with the same result. It didn't take long for the monkeys to learn that the best way to stay dry was to prevent any monkey from attempting to reach the banana.


The next stage of the experiment was to remove the spray from the cage and to replace one of the monkeys with a new one. Of course, the new monkey saw the banana and went over to climb the steps. To his horror, the other monkeys attacked him. After another attempt, he learnt that if he touched the steps, he would be assaulted.

Next, another of the original five was replaced with a new monkey. The newcomer went to the steps and was attacked. The previous newcomer joined in the attack with enthusiasm!
Then, a third monkey was replaced with a new one and then a fourth. Every time a newcomer approached the steps, he was attacked. Most of the monkeys beating him had no idea why they were not allowed to climb the steps or why they were joining in the beating of the newest monkey.

After replacing the fifth monkey, none of the monkeys had ever been sprayed with water. Still, no monkey ever approached the steps. Why not? Because as far as they knew it was the way it had always been done around here... and that is how company policy begins.


People usually reluctant to change their ways (their thoughts)
Courtesy - http://www.mwls.co.uk/anecdotes/alphadex.htm You can find more articles here.