Usually some assessed value of the property that has some relation to the market value of the property. But how would that work with copyrights that are not sold for which there is no market? How would you assess the value of a copyright in that scenario?
Doesn't look like anything to me. This shows the tax rates: http://www.truthandpolitics.org/top-rates.php. They climbed up for WW1 & WW2, and now are falling back to historical levels.
which again, shows nothing sinister. Where one man made $2 to anothers $1, now that man is making $200 to the others $100.
Also can anyone substantiate the claim that the super rich lend the government money? As far as I knew only the Federal Reserve lent money to the government.
But it was during the period of WWI and WWII that America became a super power. The syphoning of wealth from the general populace will ensure that America will no longer be a super power any more given a generation or so. America is repeating the economic history of a number of past empires; once the overall growth goes the rich try to take a bigger slice to keep their relative growth up, which leads to collapse. The transition of wealth to other countries like China has already begun.
If you have a look at the graph you'll see that in the 40' the top 95% was approximately 4 times the 20% line, by the end of the graph that is approximately 8x, so the ratio doesn't hold at all. Have a look at http://en.wikipedia.org/wiki/Gini_coefficient and you'll see that the Gini index in the US has been steadily increasing, boiling frog style, since the 80's. I wouldn't be surprised if the US's Gini index was worse than Mexico by these days (i.e. the US has a bigger problem with the _relatively_ poor than Mexico).
If you look at the colour coded map of the world you'll see that Europe's socialist states, basically all of them, have less of a problem with the relative poor.
A more useful graph of income distribution would be inflation adjusted - this graph might be useful in that regard (shows the larger overall take of total income by the extremely wealthy):
Regarding the lending question - the wealthy lend through buying government securities, in the same way that any fixed financial instrument works - you give someone X dollars, you expect X+% back.
If I were willing to discuss any of the details of my friend's case, I wouldn't be purposely obtuse.
The takeaway from that was only supposed to be that while I won't tell anybody that their friendship may not (edit: I meant, "won't") work as a business partnership -- even if they've done it before -- in my experience, even strong friendships aren't invincible, and they can collapse quickly over issues you've never imagined. So, when it comes to business, treat it like business.
On a more serious note, this would be a complete non-issue, except that education is state controlled. So now it's politics.
Where it private people could choose what's best for their child without choosing what's best for everyone elses.
Well, any parent who wants his children to learn chess can teach it to 'em. That is, I guess, how most children learn it.
In the opposite case, where chess is compulsory and the parent doesn't want the child to learn... well, big deal. I must have learned to play dozens of games at school, from tunnelball to rugby, and throwing in an extra one isn't gonna do much harm.
You can't solve these equations (at least in the general case, maybe there's some clever way in this specific case I'm not getting), because the ring of 64-bit integers is not a factorial ring, meaning not every multiplication can be undone. That is, if xy = z, there might be multiple y's for a given x and z. (Edit--previously I had said it's because it's not a field, but that's a stronger condition than we need.) If the sum is 2 and the sum of squares is 0, then (1, -1) and (2^63 + 1, 2^63 - 1) are both solutions.
You could do this solution using the field of bitfields modulo a 64-bit irreducible polynomial, but I expect that's over the heads of most interviewers :P
(edit: just realized that you can do the neccesary field multiplication and addition very quickly in constant time and space. It's even linear in the number of bits you have to process. This looks very close to an ideal solution, so I posted a link on the blog. There may be a clever solution that is better.)
(edit #2: the clever solution is just to use bigints. The sum of squares is guaranteed to fit in 192 bits. This might be what the parent poster meant all along. This works because integers are a factorial ring, so the equations are guaranteed to have a unique solution.)
Simpler to do the arithmetic modulo a prime just smaller than 2^64 if you ignore the case where n is very close to 2^64 (which should be fine in real life). In case you leave your code will be easier to maintain than if you bring Galois Fields into it.
It seems like you'd be IO bound when scanning the array so using larger than machine precision integers shouldn't slow things down. Particularly since you know the number of bits you'll need beforehand.
Since you didn't put SPOILER ALERT, I guess it's okay to say that I was going for a similar approach, except that I was going to use sum of elements and the XOR of all elements. I guess the only advantage is that computing the XOR should be faster/smaller space than summing squares.
Your solution won't work because you can't solve for a and b if you are given (a xor b) and (a - b), consider an extra 3 and missing 2 will give 1 for both values, as will extra 5 and missing 4.
I gave a similar solution in the blog comments, but instead of sum of squares I used the product of the numbers. We used to give similar puzzles to candidates on job interviews.
Sometimes software stinks because it IS bad. Perhaps the software he is using grew from simple to complex and nobody did any housework, thus the smell. Maybe it does need some work.
I think the point is that anyone's software would stink on some level when set against the toughness of some of the challenges a super-behemoth like Facebook faces. Some problems are much too difficult for even the best programmers in the world to solve and solve elegantly without multiple attempts. There's usually barely time for one attempt. But people still need to take on these problems, even if it makes them look bad, because eventually they will be ironed out, making way for new problems, bigger problems, and the circle goes on and on.
There isn't really much benefit of using chunked encoding for streaming video, if you're not generating the video on the fly server-side.
If you are simply streaming a stored video, you can just get the file size, use that as the content-length, and send the video. If the content is in a streamable format the client can just read/play the data as it is received. Chunked encoding will in fact add a little overhead to just sending as is.
Chunked encoding is more apt for situations where you don't know beforehand how much data you are going to send.
Yes, this is how Move Network's streaming works, how Apple's streaming works, and Adobe just announced official support for streaming this way last week[1] (edit: oh and microsoft buit it into iis too).
What they do is parallel-encode their video feed to many different bitrates, then as the client is keeping up or not keeping up with the incoming chunks they move up or down the scale of which chunks to send. The best part is, it works via existing http cdn's like level3 and akamai, so just about anybody can stream live video this way to as many people on the internet as they can get to watch it for the already commodity cost of cdn bandwidth.
This is a common misconception. In fact, HTTP Live Streaming as proposed by Apple has nothing to do with chunked encoding. The former splits the video into multiple "chunk" files, using an m3u file as a playlist. Stream variants are supported by having multiple sets of video and m3u files, but dynamically switching between them based on bandwidth is left to the client.
Not really. Streaming video tends to use byte-range requests (introduced in HTTP 1.1) because you want be able to to drag the video play head/cursor to an arbitrary location. For example, iOS uses this mechanism.
Also, once you have a permanent address you can trade. Civilization does well in places with trade routes (like coasts, big slow rivers, or well defended roads)