That figure seems slightly exaggerated, Wikipedia states he had $9800 saved when he was 20. And that he made $175 a month from his postal route. If he started his paper route at 15 he would have made over $10,000 from just the paper route during those 5 years. And the article lists several more business ventures he was active in.
Few people start working as early as 13-14, but if we extrapolate the $175 a month (which would be almost $2500 in today's dollars), and you had no expenses you could save $150,000 by the time you were 20, today.
Must surprising here is how well paid that paper route was. Average salary was $200 a month in 1944. Today the average salary is $2500 a month, but you can't earn as much from such a simple job today.
This is why I always walk half a block to pick up a cup of coffee rather than just get one in the cafeteria (also it tastes better). For some reason taking a ten minute walk every now and then and getting some fresh air might be frowned upon, but getting coffee / smoking is a socially accepted reason to do so.
Apple does not provide any API for getting the state of the modifier keys on iOS. I really think this is something they need to loosen up about if they want people to go into the post-PC. We get the point Apple, you want users to be able to do everything an app offers without accessories. But that's orthogonal to replacing your PC with an iPad.
(Especially since the private APIs are already there, they just need to allow them)
I think it's a great idea. But to be persistent over my entire life, there really needs to be an export option so that when smartphones are no longer around and we got neural implants or something I can still make use of the data collected now.
Also 1% of the world seems impossible considering the line of sight when walking around. Even 1% of most countries is impossible.
The support for JSON is only validation, otherwise it's just like a plain text column.
A better choice would be to use a hstore column, which is sort of like JSON but we different syntax. Postgres supports indexing hstore subfields, querying on them etc.
I would just write the code to compute it to arbitrary precision and then tell the interviewer that I would test how many iterations are required and hard-code it.
If they insist that it must be solved at runtime, I would check the size of the computed term (1/(1+2x)) and repeat 'til it's less than 10E-6.
That explains how you serve the same data to that user, but the more interesting problem is: how do you propagate the changes to the rest of the users over time?
Do you run some sort of backlog daemon that moves stuff between the different shards? And how is that faster than doing so immediately (the same data would be moved either way...)?
While useful, it's very dangerous in that it's serendipitous to make a commit that breaks building the project, which in the future will break building the project when checking out old commits, or introduce some subtle bug, which breaks other tools like bisect.
Just a personal preference, but I strongly prefer being able to build (and test) every commit in the entire history.
This is why I prefer services to be with different providers. Having storage with dropbox, mail with gmail, phone with Apple etc. etc. means one service dying won't kill your entire online persona. While if you use G-drive, gmail, android phone, Google everything like they want you're basically screwed if you violate the TOS of any service.
While that router may be beefy enough for multiple downloads. Installing an open-source firmwire degrades WAN performance a lot. I've tried a few different routers and dd-wrt / tomato generally reduces the WAN speed by 75 - 90% (from 500-1000mbit down to <100) in comparison with the default firmware. That is simply unacceptable, although understandable since this is probably not something that hits the devs very hard since most people are not on 1gbit pipes.
I do use vim on a daily basis for all my remote editing needs. Just did not think of how useful all short-hands are for blind people. Thanks for mentioning it.
Few people start working as early as 13-14, but if we extrapolate the $175 a month (which would be almost $2500 in today's dollars), and you had no expenses you could save $150,000 by the time you were 20, today.
Must surprising here is how well paid that paper route was. Average salary was $200 a month in 1944. Today the average salary is $2500 a month, but you can't earn as much from such a simple job today.