Wednesday, February 15, 2012

15 interview questions banned by Google- The Times of India

15 interview questions banned by Google- The Times of India

1. Q1. How many golf balls can fit in a school bus?

2. Q2. How much should you charge to wash all the windows in Seattle?

3. Q3. In a country in which people only want boys every family continues to have children until they have a boy. If they have a girl, they have another child. If they have a boy, they stop. What is the proportion of boys to girls in the country?

4. Q4. Design an evacuation plan for San Francisco

5. Q5. Why are manhole covers round?

6. Q6. How many piano tuners are there in the entire world?

7. Q7. How many times a day does a clock's hands overlap?

8. Q8. Explain the significance of "dead beef"

9. Q9. A man pushed his car to a hotel and lost his fortune. What happened?

10. Q10. You need to check that your friend, Bob, has your correct phone number, but you cannot ask him directly. You must write the question on a card which and give it to Eve who will take the card to Bob and return the answer to you. What must you write on the card, besides the question, to ensure Bob can encode the message so that Eve cannot read your phone number?

11. Q11. You're the captain of a pirate ship and your crew gets to vote on how the gold is divided up. If fewer than half of the pirates agree with you, you die. How do you recommend apportioning the gold in such a way that you get a good share of the booty, but still survive?

12. Q12. You have eight balls all of the same size 7 of them weigh the same, and one of them weighs slightly more. How can you find the ball that is heavier by using a balance and only two weighing?

13. Q13. You are given 2 eggs, if you have access to a 100-story building. Eggs can be very hard or very fragile means it may break if dropped from the first floor or may not even break if dropped from 100th floor. Both eggs are identical. You need to figure out the highest floor of a 100-story building an egg can be dropped without breaking. The question is how many drops you need to make. You are allowed to break 2 eggs in the process.

14. Q14. Explain a database in three sentences to your eight-year-old nephew.

15. Q15. You are shrunk to the height of a nickel and your mass is proportionally reduced so as to maintain your original density. You are then thrown into an empty glass blender. The blades will start moving in 60 seconds. What do you do?

Monday, February 13, 2012

Cloud Economy

Cloud Economy:
Three key differences in turn enable the sustainable strategic competitive advantage of public clouds vs privately managed enterprise data/cloud setup.
  1. On-demand Supply : they provide true on-demand services, by multiplexing demand from numerous enterprises into a common pool of dynamically allocated resources.
  2. High Scalability : large cloud providers operate at a scale much greater than even the largest private enterprises.
  3. Cost Saving : While enterprise data centers are naturally driven to reduce cost via consolidation and concentration, clouds — whether content, application or infrastructure — benefit from dispersion.
Rules:
  • Rule 1: Utility Premium to handle Spiky Load is always less than owning hardware to handle it.
  • Rule 2: Ability to provision extra on-demand capacity is Cost of having On-Demand capacity Cost to have Ability to Provision Extra Capacity < Profit Made from Extra traffic 
  • Rule 3: Reallocation of resources at different peaks for different customers allows provider to deploy less total capacity.  
  • Rule 4: Aggregated demand from customers allows better utilization of infrastructure.
  • Rule 5: Large volume purchase gives additianal cost benefits to Cloud Provider. 
  • Rule 6: Integrated Network Service can provide better security from large security attacks from hackers. 
  • Rule 7: Parallel processing of job can fasten Business Decision making.
  • Rule 8: Latency can be improved by dispersing computing to multiple service nodes.
  • Rule 9: Reliability can be improved by more Data-centers in across globe.
  • Rule 10: Cloud Data-center location can  be optimally chosen to keep cost low.
References:

Cloud Operation Automation

Every day, we have new cloud vendors are pitching into business of Cloud. Providing more choices to Cloud Consumers but at same time making them confuse which Cloud is best suitable for them. Many time, Customer land up choosing or living in multiple clouds. This pose a challenge for customer to mange these effectively.

With cloud maturity, we need to divide Cloud operations into three separate elements and need to automate them individually to bring best clarity of separation.

Elements of Cloud
Operations
Automation
Infrastructure
  • Manage Infrastructure Capacity Planning/Procurement/Setup/Replacement/Retirement 
  • Maintaining SLA for Infra
  • Developing common interfaces for different IaaS cloud
Services
  • Managing Service Catalog Integration/Collaboration/Administration
  • Managing SLA for Services
  • Developing integration systems between IaaS and PaaS Cloud.  
Application
  • Managing App Migration/Development/Administration
  • Managing SLA for Applications
  • Developing common development methodology across different PaaS and SaaS Cloud.

This gives us new terminology to play with:
  • IOaaS > InfraOps
  • SOaaS > ServiceOps
  • AOaaS > AppOps 

To manage IOaaS, InfraOps has the responsibility to serve only 
  • Cloud interoperability
  • Play of Service Providers

Context Aware Computing - Notes

Why it is important? 
  • Hyper-Mobility 
  • Elastic Productivity 
  • Social Graph 
  • Real-time Web
Apply Context To Experience:
Questions To Design Context Aware Computing App/Service:
  • Basics 
    • Profile - Who are you and your responsibility? 
    • Social  - Who are you friends?
    • Location - Where are you using it?
  •  More Basics
    • Persona - What is your current Role & Responsibility (Now)? 
    • Social Location -Who are you with? 
    • Notification - Can this App interrupt you?
  • Action Log 
    • What are your doing?
    • What you just did?
  • Device 
    • Type - What are you using it on? 
    • Suite - What are all devices you using? 
    • Context - When are you using these devices? 
    • Usage - How much do you use them?
  • Capability 
    • How much money you have? 
  • Timing
    • What is the season (Months)? 
    • What is time and Day? 
  • Needs
    • What are your needs? 
    • What do You Need (NOW)?
  • Learn ability
    • Adjusting according to rejection of choice  
 Observations:
  • We become what we behold. We shape our tool, afterward, Tool shape us. 
  • Context-aware computing as the concept of leveraging information about the end user to improve the quality of the interaction.
  • Emerging context-enriched services will following info to anticipate an end user's immediate needs, offering more-sophisticated, situation-aware and usable functions
    • location,
    • presence,
    • social attributes,
    • other environmental information.
  • Three important aspects of context are:
    • (1) where you are;
    • (2) who you are with;
    • (3) what resources are nearby.
  • Pervasive computing
    • · Ubiquitous computing (ubicomp)
  • Ideas:
    • · Framework To Connect Devices and Persons – Bi directional Programming of these
  • Example:
    • · ADC2 Project – HealthMOn – Automatically Injecting Insulin – Diagnosed and Monitored by Web Doctor
Context Tool Kit  - Basics 
  1. Modeling context with Widgets
  2. Modeling reasoning with Enactors
  3. Modeling behavior with Services
  4. Combining models into a Context-Aware Application
Widget: Define The Context:
  • Each Context (Light/Presence) are modeled in Widget 
  • The contexts are modeled using Attributes. 
  • Types
    • InputWidget  - Attributes of Primitive Types
    • OutputWidget - Attributes of Primitive Types 
Enactor: Define the Logic
  • Need Widgets to work with
    •  InputWidget 
    • OutputWidget 
  • Define The Rule 
    • Define the logic to change the outWidget state depending upon inputWidget. 
Generator: 
  • Like an enactor which can change the state of OutputWidget remotely from outside JVM. 
 Services: 

Retail Demo Example:
  • RoomWidget = CustomerWidget
  • LightWidge = OutfitWidget
  • RoomEnactor = RetailProfileEnactor 
  • LightService = RetailOutfitService 
My Application Ideas: 

  • Horizontal Solution
    • Context Aware Advertising Campaign - Service
    • Service Suggestion Based On Context - Service 
    • Context Sensitive Workflow - Service
    • Tips Based on Context - Service 
    • Device To Human Context Programming - Framework 
    • Seamless Device Traceability - Service   
  • Manufacturing Industry:
    • More Specific Feedback on Product combining other channels of Info (Distributor Feedback and Supply Chain and Production Line)
  • Financial :  
    • Financial Tips Based on Profile  
  • Retail 
    • Recommending Product/Service Based on Customer's Activity and Profile
  • Automobile Industry: 
    • Workman In Car App 
  • Energy 
    • Suggestive App to Reduce Carbon Footprints - App