Archive for November 2008
Reliance data card ( Huawei ) works really well in Ubuntu, and getting it to work is very easy.
All that one must do is to plug in the USB modem and edit the /etc/wvdial.conf file:
Step 1: Edit the /etc/wvdial.conf file by typing in the following lines
Step 2: Run (as root) the commands from terminal:
Many students have the habit of planning in advance what they must do during the holidays. Some decide they must learn a programming language, some might be planning to sharpen their problem solving skills, and a few others might be planning to bring out their creativity by trying their hand at designing.
The Open Source University Meetup (OSUM) at NIT Trichy is functioning as a guide for students of NIT-Trichy, helping them to set realistic targets, and providing them with necessary resources to achieve the targets. Students who have registered are given guidance in their own fields of interest.
Netbeans IDE can be used to create C/C++ Applications. Netbeans running on Linux Platforms dont require any additional configuration if the compilers are already available in the Linux distribution. But to get it working in Windows, a Linux-like environment will be required.
Cygwin is a Linux-like environment for Windows.
Here is a step by step guide to configure Cygwin with Netbeans in Windows.
Step 1: Installing Netbeans
Step 2: Installing Cygwin
Step 3: Testing Cygwin
Step 4: Setting PATH
Many a times we might have pondered over why God failed to create a rewind button for our lives. A peep into our own past might bring back the treasured memories from the pages of our lives. If every human is given a chance to go back to his past, make some changes and come back to the present, would life be any better?
Life is a mixture of happiness and sorrow, anger and calmness, friends and foes, good and bad. The challenge is to have the right mix of all these, with the ability to cherish the good and brave the bad. A life without challenges is not worth living. To emerge a winner, we need to adapt and evolve. We need to have a good control of everything that our life provides us. Losing confidence over ourselves just indicates that we have surrendered to our own life.
Some say that there exists a hypothetical parallel universe; a correlation between mind and matter. Is there an option for us to co-exist in a different universe? Can we modify the other life of ours so that the present life is accordingly influenced? Something like an alternate reality? Probably it might give us a different perspective of our own life? The time travel, the alternate history, the bending of space – all these might seem like a fantasy, an imagination of a mind craving for change, longing for a new past. But we are forced to accept the fact that there is only one reality – the present. The past cannot be changed, but the present will change the future. The history books are not going to be changed, neither are our memories. Our past is permanent, the present is temporary and the future is undefined.
We always want everyone around us to be happy, to be cheerful. We always try to make sure our loved ones are happy. We love to see a smile on their faces. But then, things do not always happen the way we expect them to. We might have hurt others. We might have made our loved ones cry. We might have caused pain. But, if we are given a chance to rectify our errors, we would embrace the opportunity, go back to those days and redesign our lives. But God gives us no such option. We are not given an option to forget either. The memories haunt us, remind us about our mistakes. The tears might have dried, the pain might have subsided, but the scars would remain.
God made human a ‘Creator’. We create our own life. We shape ourselves. We have moulded this world into what it is today. Every human shares the responsibility for the past, present and the future. But we were never meant to be ‘Editors’. Words spoken and actions done cannot be changed. The moments that have passed are the moments we have lost. There isn’t a second chance. Life has no trial run.
In the end, it is always chaos. Randomness exists everywhere. But there emerges a pattern – a chain of events revolving around us. We have been directing the events during different phases of our life. We have been bending them to suit our needs. But are we really in control of it? If everyone transforms the world to his own needs, there might have been millions of worlds today – A divide between every single person, a boundary for our minds, a wall around us. What we are bending is our own perception of the world. We have the power of imagination. We have the ability to dream. Our world, our imagination, and our dreams – everything is virtual. They occupy no space or volume, but are powerful enough to change our lives and our destiny.
Every piece on a chess board stands on its own. A glance at the chess board while the game is in progress will give us very little clue about the random arrangement of the pieces. But, every game has a similar start and every move is based on a strategy. Our life is like a chess game. The events happening in our present might seem to be unrelated. But the game of life depends upon every move of ours, every strategy we adopt and every step we advance. Our thoughts decide our actions. Our actions determine our fate. Our fate crafts our destiny. But we must always remember that there is never a step backward…
Both the problems here are based on prisoners and hats….
There are n prisoners in a prison. The prison warden gives them an offer:
He will be asking the prisoners to stand in a queue, ordered based on their heights, tallest in the front of the queue and the shortest at the end such that every prisoner can see the heads of all prisoners in front of him. Now everyone will be blindfolded and a black or a white hat will be placed on every head. Distribution will be random. The warden would then remove the blindfolds and would start asking every prisoner the colour of their hat, in order, starting from the shortest. The prisoner can answer either “black” or “white”. If a prisoner tells the answer correctly, he will be freed, otherwise killed instantly.
The warden gives twenty minutes for the prisoners to discuss the algorithm among themselves. Then the above activity starts.
Out of n prisoners, how many can be saved for sure ? What is the method ?
Here there are only three prisoners. The warden has three white and two black hats, and the prisoners know this fact. The warden announces that he would be placing one cap on each of their heads after blindfolding them. After removing the blindfold, every prisoner will be able to see both the other prisoners.
The warden blindfolds them and places the three white hats on their heads.
Everyone thinks for some time, after which one prisoner answers “white”.
How did the prisoner come to the conclusion that his head had a white hat ?