Wednesday, October 26, 2011

Happy Diwali 2011

Diwali is a major Indian festival, and a significant festival in Hinduism, Sikhism and Jainism. Many legends are associated with Diwali. Today it is celebrated by Hindus, Jains and Sikhs across the globe as the “Festival of Lights,” where the lights or lamps signify victory of good over the evil within every human being."
Diwali is my favorite and most awaited Indian festival. It's that time of year when we celebrate the victory of good over evil, Light the fireworks/candles/diyas to shed darkness away from our lives.
Please take care and light the fireworks with in prescribed limit as stated by Government of India. I will be bit busy with some work on hand at home in coming times so will not be able to post for some time but will be back with a bang very soon. 

' I wish all blog visitors a Very Happy and Prosperous Diwali.'

Wednesday, September 28, 2011

Why Not Thread Everything?

What do a t-shirt and a computer program have in common?

They are both composed of many threads! LOL

Those who belong to Information Technology field must know what a ‘thread is’. For Non-ITs I would like to make it clear that this “thread” is not the “thread” which our mom uses to stitch our shirt’s button! ROFL! 

Now back to business! 

There are several very useful benefits to threading; we can have several processes running at once, and several threads running within those processes. So, with all these benefits, why don’t we just use new threads for all of our methods? Wouldn’t that just make everything run fast? Not really. As a matter of fact, we will see in this section that quite the opposite can happen if we overuse threading.

Multithreaded applications require resources. Threads require memory to store the thread-local storage container. As you can imagine, the number of threads used is limited by the amount of memory available. Memory is fairly inexpensive these days so many computers have large amounts of memory. However, you should not assume that this is the case. If you are running your application on an unknown hardware configuration, you cannot assume that your application will have enough memory. Additionally, you cannot assume that your process will be the only one spawning threads and consuming system resources. Just because a machine has a lot of memory, doesn’t mean it’s all for your application.

You will also discover that each thread also incurs additional processor overhead. Creating too many threads in your applications will limit the amount of time that your thread has to execute. Therefore, your processor could potentially spend more time switching between threads as opposed to actually executing the instructions that the threads contain. If your application is creating more threads, your application will gain more execution time than all the other processes with fewer threads.

To make this concept easier to understand, take the parallel example you’ll find down at your local grocery store. Two cashiers are scanning groceries for their customers. However, there is only one bagger, who takes turns switching between the two cashiers. The bagger is rather efficient at jumping back and forth between the two registers and bagging the groceries because they don’t pile up any faster than the bagger can bag the groceries. However, if two more cashiers open up lanes, it will become apparent that the bagger will spend more time jumping back and forth between the registers than they spend actually bagging groceries. Eventually, the store will need to get another bagger. In the case of threading, think of the cashiers as applications - or threads, and the bagger as a processor. The processor has to switch between threads. As the “threads” increase, the grocery store has to add another “processor” to be sure that the customers get the attention they need.

The phrase “too many threads” is a rather generic term - and rightly so. What constitutes “too many” on one system could be fine on another. Since hardware configurations largely dictate the number of threads available on a system, “too many” is an unquantifiable variable without specific configuration details and lots of testing.

It is for these reasons that Microsoft recommends that you use as few threads as possible in your applications. This limits the amount of resources required by the operating system.

Thursday, June 30, 2011

How to Use Wi-fi on BlackBerry Without Getting Data Plan!

Some guys face issues in using Wi-Fi in their BlackBerry SmartPhones, So you have to follow these simple steps to get Wi-Fi working on your BlackBerry.

 1. First just get connected to a Wi-Fi connection by opening ‘Manage connections’ -> ‘Set up Wi-Fi’.

2. Go to Mobile network options in manage connections menu and make sure data services are on.

3. Go to options -> then advance options - >then browser - >open it to see that the default browser configuration should be selected to “hotspot browser”.

4. Open your BlackBerry browser (not the WAP browser) -> go to options ->browser configurations ->again make sure that browser is selected as “hotspot browser”

5. Again go to options - Then general properties and then again make sure that default browser is “hotspot browser”.

6.Enable your Wi-Fi -> open your browser and you are good to go.

Friday, June 17, 2011

It's Raining, It's Pouring!

Yes you read that right. Pre-monsoon showers are already splashing the city since last week and it is even raining right now as I am typing these words. Rains here in Delhi are nothing when you compare it with the monsoon of Mumbai. It’s not even ten percent of that. I do visit the city of dreams quite often and I can say Mumbai rains are way better, refreshing than Delhi rains. I love rains, don’t know why? Whenever it rains, some old good and bad memories drift across my mind, I close my eyes, hear the thunder, feel the smell of soil wetting in and listen to my favorite songs.

 “Indian rains” is a song composed by colonial cousins on rain theme. It’s quite an old song; I guess it was recorded somewhere around year1998. It's a Beautiful song with wonderful lyrics.
 Attaching the song, just listen to it and I am sure your and my opinion will be the same. 

Few select pictures of this lovely season.

Happy monsoon.

Sunday, April 3, 2011


Where do I begin? Where should I begin? Finally after waiting for long 28 years we have the ICC cricket world cup home. India beats Sri Lanka by 6 wickets in a nail biting match. What a night it was! Saturday night was at its best. The anthem of ICC world cup composed by Shankar, ehsan, loy did wonders and this song too will be remembered forever along with this 2011 victory. For the past 10days I was following world cup religiously and will remember this for my entire life. Earlier India has defeated Australia in the quarter finals and then Pakistan in semi-finals to let them play the final match. Both earlier matches were full of action and thrill. When Indian innings begun and Virender Sehwag got out of 2nd bowl of Malinga it was all silence everywhere. When Sachin Tendulkar got out just after sehwag that made thinking of winning the world cup is just impossible. But God couldn’t turn down 1.2 billion prayers and we are the world champions. That’s what all I could write more at this moment. Cheers Team India. Jai Hind.

These are some pictures of the last night which we will cherish forever.  

 Pictures courtesy ESPNSTAR

Tuesday, February 22, 2011

TeamViewer - Remote access and Desktop sharing Software

I found a wonderful freeware software for remote desktop networking, so thought of sharing about this freeware with you all. Team Viewer is a free desktop sharing software  for remote access, desktop sharing, collaboration and file transfers. The TeamViewer software can be installed on the PC for regular usage, but the same executable can be run to start a sharing session, without installing it, if it is needed for a one time solution. I am using this software to connect one desktop and three laptops via wi-fi connection in my home and i am very impressed with this software's capabilities. Its much better than window's stock setup.

The actual advantage of remote access and desktop sharing is the ability to do it cross-platform, and TeamViewer excels in that. There are few such remote access software which can operate seamlessly on Windows, Linux, Mac OS X and even iOS. Using TeamViewer you can have complete control over all your home PCs and laptops (not to mention, iPhone/iPads), from any other computer, connected to these machines with via any form of network.

It doesn't end here; want to help your friend who trusts you, to troubleshoot his PC or find errors? No more confusion or misunderstanding over the telephone; just create a TeamViewer session using his partner ID and password, you can get access his PC and do all that is necessary yourself from the comfort of your home and PC. Moreover on the screen ha can see what's actually happening, as if he is sitting beside and you are teaching him how to do it. What's more? Its capability doesn't end at one-to-one remote desktop sharing, but many users, each one with different types of connectivity (LAN, WiFi, Internet etc.) can use it simultaneously.

You can download this freeware by clicking HERE

Wednesday, January 19, 2011

Shri Hanuman Chalisa

Hanuman Chalisa is a forty (chalis  in Hindi) verses poem written by Mahakavi Goswami Tulsidas in the 16th century in praise of Lord Hanuman and so called as Chalisa which describes, through examples from various religious books, Lord Hanuman's Strength, Bravery, Fighting Skills, Loyality towards Lord Rama and other divine actions.

Thus making it very popular among hindus and is generally recited on every Tuesday (considered a holy day for devotees of Lord Hanuman) with different offerings to the temple like sweets especially Bundi Ladoo and sometimes Hanuman Vastra (Idol Cloth in red color).


Shri guru charan saraj raj, Nij manu mukur sudhare |

Barnau raghubar bimal jasu, Jo dhayak phal chare ||

Budhihien tanu jaanke, Sumerao pavan-kumar |

Bal budhi vidhya dehu mohe, Harhu kales bikar ||


Jai hanuman gyan gun sagar |

Jai kapise tehu lok ujagar ||

Ram dut atulit bal dhama |

Anjani putra pavan sut nama ||

Mahabir bikram bajragee |

Kumati nivas sumati ke sangi ||

Kanchan baran biraj subesa |

Kann kundal kunchit kesa ||

Haat vajar ao dheja biraje |

Kandhe muj janeu sajee ||

Sankar suvan kesrinandan |

Tej pratap maha jag bandhan ||

Vidhyavan gune aati chatur |

Ram kaaj kaibe ko aatur ||

Prabhu charit sunibe ko rasiya |

Ram lakhan sita maan basiya ||

Susham roop dhari siyahi dhikhava |

Bikat roop dhari lank jarava ||

Bhim roop dhari asur sahare |

Ramchandra ke kaaj savare ||

Laye sanjeevan lakhan jiyaye |

Shriraghuvir harsha ure laye ||

Raghupati kinhe bahut badai |

Tum mam preye bharat sam bhai ||

Sahart badan tumarhu jas gavey |

Aas kahi shripati kant lagavey ||

Sankadeek bhramadhi munisa |

Narad sarad sahit ahisa ||

Jam kuber digpal jaha thi |

Kavi kovid kahi sake kaha thi ||

Tum upkar sughuv kehina |

Ram milaye raj pad denha ||

Tumraho mantra vibhekshan mana |

Lankeshvar bhaye sab jag jaan ||

Jug sahes jojan per bhanu |

Linyo tahi madhur phal janu ||

Prabhu mudrika meli mukh mahi |

Jaldhi ladhi gaye acraj nahi ||

Durgam kaaj jagat ke jete |

Sugam anugrah tumre tete ||

Ram duaare tum rakhvare |

Hoot na aagya binu pasare ||

Sab sukh lahai tumhre sarna |

Tum rchak kahu ko daarna ||

Aapan tej samharo aape |

Teno lok hakte kape ||

Bhut pesach nikat nahi aaveh |

Mahavir jab naam sunaveh ||

Nase rog hare sab peera |

Japat nirantar hanumat bal bira ||

Sankat se hanuman chudave |

Maan kam bachan dayan jo lavey ||

Sab per ram tapasvi raja |

Tin ke kaaj sakal tum saja ||

Aur manorat jo kayi lave |

Tasuye amit jeevan phal pavey ||

Charo guj pratap tumarah |

Hai prasidh jagat ujeyara ||

Sadhu sant ke tum rakhvare |

Asur nikandan ram dulare ||

Ashat sidhi navnidhi ke data |

As var deen jaanki mata ||

Ram rasayan tumhre pasa |

Sada raho raghupati ke dasa ||

Tumreh bhajan ram ko bhavey |

Janam janam ke dukh bisravey ||

Ant kaal raghubar pur jaie |

Jaha janam hari bhagat kahaei ||

Aur devta chitna dhareyo |

Hanumat seye sarav sukh karaei ||

Sankat kate mite sab pera |

Jo sumere hanumat balbira ||

Jai jai jai hanuman gusai |

Kripa karo guru dev ke naai ||

Jo sat bar pat kar koi |

Chutehi bandhi maha sukh hoai ||

Jo yahe pade hanuman chalisa |

Hoye sidhi sa ke goresa ||

Tulsidas sada hari chera |

Kijeye nath hridaye maha dera ||


Pavantnaye sankat haran, Mangal murti roop |

Ram lakhan sita sahet, Hridaye basau sur bhup ||

Sunday, January 2, 2011

Collision Of Egos

I came across a wonderful article in Times of India and thought its worth sharing with you all. The truth speaks for itself. A fantastic read.

    "We cannot be successful in either the external world or the internal world while we are tossed about by a powerful ego. What is required is a strong will. The difference between ego and will is that the ego is blind but the will has vision. Will has its source in the pure Self. Ego springs from a false sense of identification with the external world, and is usually concerned with preserving self-image and self-identity. Ego is characterised by stubbornness, selfishness, and unwillingness to compromise.

    The ego is like a little pool. An egotistical person is like a frog crouching in that little pool – his world is small, his borders insecure. He has only a vague awareness of the trees encircling his pool, and he cannot begin to imagine the frog-filled marshes just beyond. From his perspective, only his own feelings and his own voice are meaningful.

    The power of will, by contrast, is like a spring whose source is the Pure Being. It infuses mind and body with enthusiasm, courage, curiosity, and energy to act. In spiritual literature this force – the intrinsic power of the soul – is called ichcha shakti, and it is from this force that all aspects of our personality, including the ego, derive energy to carry out their activities.

    A strong personality exhibits tolerance and endurance. It has the power to vanquish and punish an opponent, but chooses to forgive and forget instead. When we are egotistical, on the other hand, we demonstrate our weakness by answering a pebble with cannon. We lose our composure the moment our feelings are even slightly bruised. We have a hard time forgetting the injuries we have received from others, but an even harder time remembering how much we have injured others.

    All problems – at home, work, in politics, everywhere – are caused by colliding egos. These problems are not overcome by one ego dominating others, but by a person of strong will and clear vision coming forward and overshadowing the trivial egos of those who are quarrelling.

    A strong ego is as much of an obstacle in spiritual practice as it is in worldly matters. The stronger the ego, the bigger the hurdle it will create. However, the solution is not to kill or weaken the ego but to do our best to purify, transform, and guide it properly. We can do this by employing both our intelligence and power of discrimination. When we meditate, practise contemplation, pray, study the scriptures, serve others, and seek the company of the wise we make our ego pure and less confined, and this in turn inspires us to move one step forward. Thus the ego becomes the tool for purifying and expanding itself, and in this way the petty ego is gradually transformed into an expanded, more purified ego.

    This transformation must end with the ego dissolving and becoming one with the pure Self and experiencing its union with Universal Consciousness. As the ego of a dedicated seeker merges with the Infinite, all confusion disappears, the veil of duality lifts, and the purified ego sees the whole universe in itself and itself in the whole universe."