2011 in Review

Posted: January 2, 2012 in Uncategorized
Tags: ,

The WordPress.com stats helper monkeys prepared a 2011 annual report for my blog.

Here’s an excerpt:

The concert hall at the Syndey Opera House holds 2,700 people. This blog was viewed about 18,000 times in 2011. If it were a concert at Sydney Opera House, it would take about 7 sold-out performances for that many people to see it.

Click here to see the complete report.

Advertisements

Yesterday, I was driving, and the FM radio went off for few seconds. I thought, I should have an iPod. Then suddenly I realized that I have not used my iPod in last 6 months. And then more things, Handy cam in last 2 years, Digital Camera in last 2 months, DVD player in last 1 month and many more. Now I can say that I bought that Handy cam just out of impulse, I have used it twice only in last 4 years.

So, whats wrong and where? When I look at myself or my friends I can see it everywhere. We are not happy with what we have but all are stressed and not happy for the things we don’t have. You have a Santro, but you want City. You have a City, but you want Skoda. Just after buying a new phone, we need another one. Better laptop, bigger TV, faster car, bigger house, more money. I mean, these examples are endless. The point is, does it actually worth? Do we ever think if we actually need those things before we want them?

After this, I was forced to think what I need and what I don’t. May be I didn’t need this Handy cam or the iPod or that DVD player. When I see my father back at home, he has a simple BPL colour TV, he doesn’t need 32″ Sony LCD wall mount. He has a cell phone worth Rs 2,500. Whenever I ask him to change the phone, he always says ‘Its a phone, I need this just for calls.’ And believe me; he is much happier in life than me with those limited resources and simple gadgets. The very basic reason why he is happy with so little is that he doesn’t want things in life to make it luxurious, but he wants only those things which are making his life easier. It’s a very fine line between these two, but after looking my fathers life style closely, I got the point. He needs a cell phone but not the iPhone. He needs a TV but not the 32″ plasma. He needs a car but not an expensive one.

Initially I had lot of questions.

I am earning good, still I am not happy… Why ?
I have all luxuries, still I am stressed… Why ?
I had a great weekend, still I am feeling tired… Why?

I met lot of people, I thought over it again and again, I still don’t know if I got the answers, but certainly figured out few things. I realized that one thing which is keeping me stressed is the stay connected syndrome. I realized that, at home also I am logged in on messengers, checking mails, using social networks, and on the top of that, the windows mobile is not letting me disconnected. On the weekend itself, trying to avoid unwanted calls and that is keeping my mind always full of stress. I realized that I am spending far lesser money than what I earn, even then I am always worried about money and more money. I realized that I am saving enough money I would ever need, whenever needed. Still I am stressed about job and salary and spends.

May be, many people will call this approach not progressive attitude, but I want my life back. Ultimately its a single life, a day gone is a day gone. I believe if I am not happy tonight, I’ll never be happy tomorrow morning. I finally realized that meeting friends, spending quality time with your loved ones; spending time with yourself is the most important thing. If on Sunday you are alone and you don’t have anybody to talk with, then all that luxuries life, all that money is wasted. May be cutting down your requirements, re-calculating your future goal in the light of todays happiness is a worthwhile thing to do. May be selling off your Santro and buying Honda City on EMIs is not a good idea. I believe putting your happiness ahead of money is the choice we need to make.

I think, a lot can be said and done but what we need the most is re-evaluation of the value of happiness and time we are giving to our life and people associate with it.

Change does not Happen when Circumstances Improve. Change happens when YOU Decide to Improve YOUR circumstances!

Note: I am not the author of this piece of writing, I don’t even know who wrote. But whoever has written it, has done it very beautifully and I found it worth sharing here.

Something Useful For You To Know

Posted: December 2, 2011 in Useful
Tags:


I know that there are people who just hate forwarded mails, but believe me, they prove to be useful many times. And here is one such useful forwarded mail that I got recently, and I thought its worth sharing here. Feel free to add similar useful tips here.

Ants Problem:
Ants hate cucumbers. Keep the skin of cucumbers near the place or ant hole.

To get pure and clean ice:
Boil water first before freezing.

To make the mirror shine:
Clean with spirit.

To remove chewing gum from clothes:
Keep the cloth in the freezer for an hour.

To whiten white clothes:
Soak white clothes in hot water with a slice of lemon for 10 minutes.

To give a shine to hair:
Add one teaspoon of vinegar to hair, then wash hair.

To get maximum juice out of lemons:
Soak lemons in hot water for one hour, and then juice them.

To avoid smell of cabbage while cooking:
Keep a piece of bread on the cabbage in the vessel while cooking.

To avoid tears while cutting onions:
Chew gum.

To boil potatoes quickly:
Skin one potato from one side only before boiling.

To remove ink from clothes:
Put toothpaste on the ink spots generously and let it dry completely, then wash.

To skin sweet potatoes quickly:
Soak in cold water immediately after boiling.

To get rid of mice or rats:
Sprinkle black pepper in places where you find mice or rats. They will run away.

Top

Shared memory and Semaphores are types of IPC. IPC stands for Inter Process Communication. There are couple more IPCs, namely Pipes & Message Queue. I am not going to go deep into the details of these IPCs because its not in the context here. Lets directly go to the commands under discussion:

ipcs: To display the shared memory and semaphores.

Example: ipcs command with -a option lists all the IPC facilities which can be read by the current process. It provides details about message queue, semaphore and shared memory.

# ipcs -a

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0xc616cc44 1056800768 oracle    660        4096       0
0x0103f577 323158020  root      664        966        1
0x0000270f 325713925  root      666        1          2

------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0x0103eefd 0          root      664        1
0x0103eefe 32769      root      664        1
0x4b0d4514 1094844418 oracle    660        204

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages
0x000005a4 32768      root       644        0            0

Command to list all Message Queues, -q.

$ ipcs -q

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages
0x000005a4 32768      root       644        0            0

Read the rest of this entry »

There are seven disciplines you must develop if you want to achieve all that is possible for you. You can learn these disciplines through practice and repetition until they become automatic.

1. Goal Setting
Every morning, take three to five minutes to write out your top goals in the present tense. Get a spiral notebook for this purpose. By writing out your ten goals at the beginning of each day, you will program them deep into your subconscious mind.

This daily goal writing will activate your mental powers. It will stimulate your mind and make you more alert. Throughout the day, you will see opportunities and possibilities to move more rapidly toward your goals.

2. Planning and Organizing
Take a few minutes, preferably the night before, to plan out every activity of the coming day. Always work from a list. Always think on paper. This is one of the most powerful and important disciplines of all for high performance.

3. Priority Setting
The essence of all time management, personal management, and life management is contained in your ability to set the proper priorities on the use of your time. This is essential for high performance.

4. Concentration on your Highest-Value Activities
Your ability to work single-mindedly on your most important task will contribute as much to your success as any other discipline you can develop.

5. Exercise and Proper Nutrition
Your health is more important than anything else. By disciplining yourself to exercise regularly and to eat carefully, you will promote the highest possible levels of health and fitness throughout your life.

6. Learning and Growth
Your mind is like a muscle. If you don’t use it, you lose it. Continuous learning is the minimum requirement for success in any field.

7. Time for Important People in your Life
Relationships are everything. Be sure that in climbing the ladder of success, you do not find it leaning against the wrong building. Build time for your relationships into every day, no matter how busy you get.

Action Exercise
These seven disciplines will ensure that you perform at the highest level and get the greatest satisfaction and results from everything you do. Study these seven disciplines and then make a plan for how you can incorporate each of them into your daily life.

Note: If you feel that some more disciplines can be added to this list, then please free to discuss here.

MY FAULT

Posted: October 20, 2011 in Opinions, Thoughts
Tags: , ,

Well well well, this post was long pending in my mind and somehow I was reluctant to post it. But what’s the point in giving an advice and you yourself not following it? 😉

Let me take you back to one of those real bad days (not horrible though!) in my life where IT WAS MY FAULT!

My office is in ITPB, usually I take ITPB buses to office, but today as I had to collect my Home Loan provisional certificate to apply for Tax exception, I thought of taking bike to office. I even took one of my friends with me to drop him at his office near Dommalur.

He was late, I was late, so I was driving crazily. And as usual, it lead to some bad moments. First, I narrowly escaped an accident with a Car just after Hosmat hospital signal, but it wasn’t my mistake alone, even that car driver was in hurry! My friend was terrified and asked me to slow down. But I was having full faith in my driving, or you can even call it as over confident! 😮 And again, this over confidence lead to a worst moment later.

His office falls after my bank where I had to collect my document. There was no U turn nearby the bank, but there is some bicycle mark on the median where, I think, bikers take U turn to reach the bank.  So did I and then, suddenly dhadd dhadall..! Another biker who was going towards Marathalli bridge came faster than I expected and he hit my bike on the back side, I managed my bike and didn’t fall but he fell down exactly in the middle of the road. My heart stopped for a moment, thinking about the bad things that might have happened but when I stopped and looked back, he was very much fine, there were some scratches on his bike, and one indicator cover was broken, but nothing much to him. Uffff! I let a sigh of relief. [ That’s why I said it’s a bad day, not horrible tough]

But he was furious at his best and started shouting at me. I parked my bike, went to him quickly and asked him to ‘get the bike outside the road first, later we can talk.’

Now you can imagine the blasting that I might have faced at this moment. The people gathered around two of us were ready to beat me. The first thing I said was “It’s my Fault and I am really sorry!”

Read the rest of this entry »

On a random day at a random time, I got a random forward mail with the above title, and yes it caught my attention at first sight. And I couldn’t stop myself from sharing the facts here in my blog!

One-Two-Three

One-Two-Three

Letters A, B, C and D do not appear anywhere in the spellings of 1 to 99.
Letter D comes for the first time in 100 (Hundred)

Letters A, B and C do not appear anywhere in the spellings of 1 to 999.
Letter A comes for the first time in 1000 (Thousand)

Letters B and C do not appear anywhere in the spellings of 1 to 999,999,999.
Letter B comes for the first time in 1,000,000,000 (Billion)

And….

Letter C does not appear anywhere in the spellings of entire English Counting! 😮

A very interesting read!

What Killed Waterfall could Kill Agile.
Robert C. Martin
20 Nov, 2010

In 1970 a software engineer named Dr. Winston W. Royce wrote a seminal paper entitled Managing the Development of Large Software Systems. This paper described the software process that Royce felt was appropriate for large-scale systems. As a designer for the Aerospace industry, he was uniquely qualified.

He began the paper by setting up a straw-man process to knock down. He described this naïve process as “grandiose”. He depicted it with a simple diagram on an early page of his paper. Then the paper methodically tears this “grandiose” process apart. In the end, Royce proposed a far more nuanced and insightful approach, leaving the reader to giggle at the silliness of the “grandiose” model.

Royce’s paper was an instant hit. It was cited in many other papers, including several very important process documents in the early ‘70s. One of the most influential of these was DOD2167, the document that described the software development process for the American Department of Defense. Royce was acclaimed, and became known as the father of the DOD process.

There was just one problem. The process that DOD2167 adopted was Royce’s straw man! Apparently the authors of DOD2167 did not actually read Royce’s paper; because they adopted the “grandiose”, naïve process that Royce’s paper had derided. To his great chagrin, Dr. Winston W. Royce became known as the father of the waterfall.

Though Royce railed and fought against it, the snowball was in motion. It kept on growing as it rolled down the mountains of software companies and industrial countries. Year by year the waterfall gained in popularity leaving it’s father to wonder about the justice of the universe and whether there was intelligent life on Earth.

By the middle of the 1990s, the waterfall process dominated the world of software. The field of Software Engineering was defined by it; and by the catalog of analysis and design documents that Architects, Designers, and Analysts were expected to produce. Coding was a detail – the least important part of the process. If you wrote your documents well, and drew all the necessary diagrams, then you were doing it right. You were an engineer. The code could be left to the unwashed minions in the cellar.

This attitude created a schism in the technical community. There were the elite Architects, Designers, and System Analysts who did the real engineering by satisfying the first two phases of the waterfall. And then there were the grunts who actually had to make everything work in the final phase. When the project got behind schedule, it was the grunts who worked overtime. When the project failed, it was the grunts who bore the blame.

Read the rest of this entry »

I have a friend who keeps bugging me for small small scripting solutions, and every time I enjoy helping him just because all those times I learn new things in Unix. But I never thought of capturing these things anywhere. Then I thought of putting them in my own blog, here! 🙂

Coming to the recent question he asked me, he wanted to capture the common entries in two files.
Say, file1 contains following entries:
AT010
AT013
AT015

And file2 contains:
AT011
AT012
AT013
AT014
AT015

How do I find the common lines? Simple, use comm command.
$ comm -12 file1 file2
AT013
AT015

Smooth, isn’t it? 🙂
But what if the files are not sorted? Then comm can’t help you alone, you need to take help of another command sort.

Consider the above files are not sorted, then:
$ sort file1 > new_file1
$ sort file2 > new_file2
$ comm -12 new_file1 new_file2

would give the same result as above.

Read the rest of this entry »

Here is a good piece of article that I got as a mail forward. A good read in deed, enjoy! 🙂

Written on September 22, 2008 by Subroto Bagchi

Those who were tracking the events happened in Banking industry during last week must have got the experience of watching a thriller. These events not only show Dos and Don’ts as far as Leadership is concerned but also gave us a different perspective and made us a little bit matured and wiser. Don’t you think so ??

I pass through this very intersection every morning with so much ease. Today, the pace is skewed. There is a sense of disarray as motorists try to push past each other through the traffic light. The light here always tests their agility because if you miss the green, you have to wait for another three minutes before it lets you go past again. Those three minutes become eternity for an otherwise time-insensitive nation on the move.

Today, there is a sense of chaos here. People are honking, skirting each other and rushing past. I look out of my window to seek the reason. It is not difficult to find because it is lying strewn all over the place.

A tomato seller’s cart has overturned. There are tomatoes everywhere and the rushing motorists are making pulp of it. The man is trying to get his cart back on its four rickety wheels and a few passersby are picking up what they can in an attempt to save him total loss. Though symbolic in the larger scheme of things, it is not a substantive gesture. His business for the day is over.

Read the rest of this entry »