- 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?
Friday, 10 April 2009
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.
Sunday, 1 June 2008
SmartTechie Startup conf details
Attended a conference called SmartTechie Startup some time last week.. (Friend told me about this and finally ditched also.. I guess these 2 words goes as synonyms.. Had a similar ditching experience with different fellow in the same week) Conference was a nice, informative one.. ofcourse its boring also. You get lot of funda and you will get sleep and I slept after lunch :) In the morning, there were some sessions and a closing session keynote was from RK Misra the "Lead India" programme winner. There was a session on Cloud Computing by an Amazon guy. He explained what it is and why and all stuff. One point worth mentioning here is - "Can you see the big elephant in the room?". He wants to say that there are lot of things that need to be done between making the product and giving it to customers like the estimation for the infrastructure needed including servers, storage area etc and having the ability to scale as users increases. In the closing keynote session, RK Misra stated the keynotes with his career and explained what all the startups, initiatives he made. He used the trailers idea from US to make a mobile house in Japan and became a overnight celebrity and case study for those who want to do business in Japan. Then, he started a company in telecom domain in India when everyone was in the Y2K and outsourcing technology. He made a successful exit from both of them. As a CEO, he needs to travel through out world and he faced problems in air tickets reservation, and this made him to start a air ticket booking website and he was one of the very few who made these attempts and became hit. He planned his life to take retirement at 40 and he done that. Now, he is in socio-political world. He arranged many meetings between business and political people to help public and made many successful mantras. He started a plan in Rajasthan, with the help of this business and political people, that helped villagers to increase their monthly income. He gathered the students who failed in 10th and +2 level and arranged for them coaching as security gaurds, BPOs etc that showed them a bread earning way. He started the website changeindia.in. His message was to be socio-aware entrepreneurs.
In the afternoon, there was a open discussion forum which included a panel with big shots from HP, Infosys, Dell and Yahoo. This was very informative. Slept in the starting and the topic at the time I woke up was - when we need to go to change CEO? and this triggered - do we really agree to have some one who have completely different ideas from founders? Then, next one was - are the today's entrepreneurs ready for the the second challenge once their startup becomes hit? Infosys guy (sorry, I don't remember the name :( ) is one of the founder of Infosys and a close friend of Narayana Murthy shared his experience. In 1989, they went through the phase where they thought to sell the Infosys. In the room, when all the other founders present along with Narayana Murthy, were discussing this and everyone agreed to sell it, as they were not able to continue it. Narayana Murthy told them that he will buy their shares and that made his other friends to be with him, worked a lot, chalked out a plan to go to IPO in 1992. They executed the plan and made to IPO in 1993. Very inspiring one right!! Discussion was going in the lines how the response came from the audience. One more worthy point here is - There is no need for foreigners to invent in food, education, energy areas as they are very much self sufficient of these things and it is us who are facing problem with these and we are the one to invent solutions for these problems. So, instead of providing solution for a problem having a view of a customer whom you doesn't know and doesn't have clear idea, invent the solutions for the problems where you know the customer (end uses) and the people get benefit from that. Here, they were mentioning the mChek idea from Airtel as the Best one. They closed the discussion with the question to panel "What they are expecting can grow in coming future?" Responses were - 1. Development in food, energy, education areas (and I forgot one more area) 2. As mobiles became part of every ones' life now a days, solutions from that angle 3. Information/data analysis (I guess this is something to do with data mining, statistics, pattern recognition etc where lot of banks, stock market people do this)
Penned (Typed) down almost all worthy points that I remember.. going to sleep..
In the afternoon, there was a open discussion forum which included a panel with big shots from HP, Infosys, Dell and Yahoo. This was very informative. Slept in the starting and the topic at the time I woke up was - when we need to go to change CEO? and this triggered - do we really agree to have some one who have completely different ideas from founders? Then, next one was - are the today's entrepreneurs ready for the the second challenge once their startup becomes hit? Infosys guy (sorry, I don't remember the name :( ) is one of the founder of Infosys and a close friend of Narayana Murthy shared his experience. In 1989, they went through the phase where they thought to sell the Infosys. In the room, when all the other founders present along with Narayana Murthy, were discussing this and everyone agreed to sell it, as they were not able to continue it. Narayana Murthy told them that he will buy their shares and that made his other friends to be with him, worked a lot, chalked out a plan to go to IPO in 1992. They executed the plan and made to IPO in 1993. Very inspiring one right!! Discussion was going in the lines how the response came from the audience. One more worthy point here is - There is no need for foreigners to invent in food, education, energy areas as they are very much self sufficient of these things and it is us who are facing problem with these and we are the one to invent solutions for these problems. So, instead of providing solution for a problem having a view of a customer whom you doesn't know and doesn't have clear idea, invent the solutions for the problems where you know the customer (end uses) and the people get benefit from that. Here, they were mentioning the mChek idea from Airtel as the Best one. They closed the discussion with the question to panel "What they are expecting can grow in coming future?" Responses were - 1. Development in food, energy, education areas (and I forgot one more area) 2. As mobiles became part of every ones' life now a days, solutions from that angle 3. Information/data analysis (I guess this is something to do with data mining, statistics, pattern recognition etc where lot of banks, stock market people do this)
Penned (Typed) down almost all worthy points that I remember.. going to sleep..
Subscribe to:
Posts (Atom)