Saturday 25 April 2009
One more puzzle!
A person goes to his house from office in car. Car with driver starts from his house at 7p.m. and reaches office and picks him up and drops him at his home. One day, he is done with his work at 5.30p.m. and starts walking to his home instead of waiting for car. He finds the car on his way and goes to his house. He reaches his house 20 minutes eariler than his usual time. At what time, he usually reaches his home?
Friday 10 April 2009
Some Puzzles
- Producer Consumer Problem:
Scenario 1: Traditional Problem
Scenario 2: Producer should produce and puts in the shared buffer. Every consumer should consume the item before we delete it from the shared buffer.
- In race court, there are 5 tracks and 25 horses to race. We need to find the top 3 from the 25 horses. Assumption is - Horses perform in the same way during all the races and we can't record the times. You can make horses to participate any number of times. In how many races, you can find the top 3?
Scenario 1: Traditional Problem
Scenario 2: Producer should produce and puts in the shared buffer. Every consumer should consume the item before we delete it from the shared buffer.
- In race court, there are 5 tracks and 25 horses to race. We need to find the top 3 from the 25 horses. Assumption is - Horses perform in the same way during all the races and we can't record the times. You can make horses to participate any number of times. In how many races, you can find the top 3?
Tuesday 21 October 2008
Difference between prototypes
Wats the difference between prototypes
- T &operator[](size_t index);
- const T &operator[](size_t index) const;
?
- T &operator[](size_t index);
- const T &operator[](size_t index) const;
?
Saturday 23 August 2008
- Parse error: parse error, unexpected T_STRING
Almost always a missing semicolon! Look at the line directly above the line error is reported.
- Some webservers have a problem regarding the "submit" input type names, for ex, submit_btn.
- CAPTCHA implementation through PHP.. http://www.lagom.nl/linux/hkcaptcha/
This is one post which I thought I will be updating as I find anything interesting in internet.. managed to do it for that day, and failed to continue it.. Very bad :(
Looks like, I missed my september post.. Its better to be empty rather than to have some junk like above..
Is it so??? NO
Almost always a missing semicolon! Look at the line directly above the line error is reported.
- Some webservers have a problem regarding the "submit" input type names, for ex, submit_btn.
- CAPTCHA implementation through PHP.. http://www.lagom.nl/linux/hkcaptcha/
This is one post which I thought I will be updating as I find anything interesting in internet.. managed to do it for that day, and failed to continue it.. Very bad :(
Looks like, I missed my september post.. Its better to be empty rather than to have some junk like above..
Is it so??? NO
Wednesday 20 August 2008
This And... That
Finally, MegaStar Chiranjeevi released the news to press that he is entering politics. He is going to create new type of politics in Andhra i.e., positive politics. Hoping he will get support and do some good work. He is saying that
"Present politicians are doing good but he feels that its not reaching the poor and poor becoming poorer and rich becoming richer." Isn't this show positive politics? Usually, in the politics, we observe one party saying bad about other parties.
Chiranjeevi Zindaabaaad..
- Went to home on last weekend. Was completely at home for complete 2 and half days.. Not even went to the neighbor's house.. :) Good
Thought of writing lot of things.. but sorry.. forgot about them.. and will gather the things regarding the technical learnings that happened last month to put in my next blog.. :) and finally one tip that may be useful
Hair Care
Below are some that I collected from my friends.. no idea how effective they are..
- if waana to apply oil, apply after head bath and drying your hair.. instead of applying after your hair got dust..
- Make sure that your hair is oily before head bath
- Eat mussambi fruits rather than having its juice
"Present politicians are doing good but he feels that its not reaching the poor and poor becoming poorer and rich becoming richer." Isn't this show positive politics? Usually, in the politics, we observe one party saying bad about other parties.
Chiranjeevi Zindaabaaad..
- Went to home on last weekend. Was completely at home for complete 2 and half days.. Not even went to the neighbor's house.. :) Good
Thought of writing lot of things.. but sorry.. forgot about them.. and will gather the things regarding the technical learnings that happened last month to put in my next blog.. :) and finally one tip that may be useful
Hair Care
Below are some that I collected from my friends.. no idea how effective they are..
- if waana to apply oil, apply after head bath and drying your hair.. instead of applying after your hair got dust..
- Make sure that your hair is oily before head bath
- Eat mussambi fruits rather than having its juice
Saturday 9 August 2008
Digitally Surrounded
Went to attend a marriage in Andhra last week.. I was feeling lonely and fear also, as suddenly, I was alone, where as usually, surrounded with lot of people. Nothing to worry, I can manage. But, once I reached that station in marriage place, I got lot of energy as that was the place I used to stay alone through out the night waiting for dawn to catch bus. So, this trip became my eye opener and made me to collect those memories and made me to remember my work.
But, still, no need to fear.. U r rounded up with so many.. :)
But, still, no need to fear.. U r rounded up with so many.. :)
Friday 11 July 2008
My experiments with vmware.
Tried vmware on SLES 9 SP3 (no one on this earth might be using that as their desktop). I know I'm weird as my box disk usage at 98% utilization and having very poor work environment. vmware is working if I have one bridge configured on one physical ethernet card. When I try configuring bridges on multiple cards, it works, but, once I restart the vmware or the box, I'm losing those bridges. But, ps -aef was showing me somethings regarding vmnet-bridge. With the help of my friends at office, found that ifconfig doesn't show the bridge networks and ps -aef only shows the bridge networks. Done lot of junk by uninstalling and installing rpms, changing some files and all, so finally, it moved into a state where I can't install or uninstall the rpms.
Finally, found that SLES 9 SP3 have issues with vmware.
So, just rebooted into my SLED 10 partition which I installed a year ago (and upto now, I was using this partition as my data server) and tried my luck there with vmware. Here, I'm not able to activate both of my network cards at a time. It is allowing me to have only one active card and now working with only bridge.
Finally, found that SLES 9 SP3 have issues with vmware.
So, just rebooted into my SLED 10 partition which I installed a year ago (and upto now, I was using this partition as my data server) and tried my luck there with vmware. Here, I'm not able to activate both of my network cards at a time. It is allowing me to have only one active card and now working with only bridge.
Subscribe to:
Posts (Atom)