I know that I first heard it from somewhere else, but I do not remember where. I'm pretty sure it was a TV show.
Does any one remember where it originated from?
1,249 karma · joined December 22, 2014
I know that I first heard it from somewhere else, but I do not remember where. I'm pretty sure it was a TV show.
Does any one remember where it originated from?
I've been using this dataset for two years now. It's really helped me in game development; specifically being able to use words instead of hex values in things like error messages and modeling palettes. "Blunt Violet" is much easier for me to parse than "0x8d697a".
I use simple Euclidean distance to find the nearest name for each used color. As a sanity check, I keep track of all colors that I have associated with names while the game is running and get a warning message if I ever associate more than one color to a given name. Outside of messing with a colorpicker, I never get that warning, so the perceptual space between names has been great.
So `n % 2 == 1` should probably [1] be replaced with `n % 2 != 0`.
While this may be obvious with experience, if the code says `n % 2 == 0`, then a future developer who is trying to reverse the operation for some reason must know that they need to change the equality operator not the right operand. Whereas, with `n % 1 == 0`, they can change either safely and get the same result.
This feels problematic because the business logic that necessitated the change may be "do this when odd" and it may feel incorrect to implement "don't do this when even".
I really disfavor writing code that could be easily misinterpreted and modified in future by less-experienced developers; or maybe just someone (me) who's tired or rushing. For that reason, and the performance one, I try to stick to the bitwise operator.
[1] Of course, if for some reason you wanted to test for only positive odd numbers, you could use `n % 2 == 1`, but please write a comment noting that you're being clever.
Total operational water "footprint" of data centers in 2018: 5.13 * 10^8 m^3. Of that, indirect consumption through electricity generation: 3.83 * 10^8 m^3, or 74.7%. And indirect consumption related to water and wastewater utilities (non-electicity production): 4.50 * 10^5 m^3, or 0.09%.
The study then does a reasonable job of discussing the concerns of building data centers in water-stressed places.
This article seems to be another "didn't read the study, saw big number" thing.
[1] https://iopscience.iop.org/article/10.1088/1748-9326/abfba1 (PDF page 7, section 3.1)
I never stated that she infected others for 38 years. Being an asymptomatic carrier does not require continually infecting others, only that the carrier maintains the infection without showing symptoms. [1] Additionally, the NIH article isn't complete in listing likely infections, as evidenced by comparing it to the Wikipedia article. Nor does is state that she continued to infect others until her paralysis in 1932.
As for the 38 years, the Wikipedia article notes 1900 as the first known, likely infection of a family she worked for. Then, from the NIH article:
> A post mortem revealed that she shed Salmonella typhi bacteria from her gallstones ...
Her death (and, presumably, post mortem) was in 1938. "Bacterial shedding" [2] implies infection and, thus, being a carrier in 1938, though asymptomatic. I arrived at 38 years by considering her likely a carrier from 1900 to 1938.
No. VAT in Germany is not charged to American servicemen and women and dependants. This is covered under the Status of Forces Agreement (SOFA) [1]. One may also receive reimbursement of VAT paid on the economy, though that is subject to some restrictions at around €2500, I believe. There are specific rules on cars. The actual forms for receiving reimbursement are onerous enough that VAT forms aren't often used outside of major purchases.
I went to high school on an American military base in Germany in the 1990s. At least then, the major items of note were jeans and gasoline/diesel (though, I had a teenager's bias). Both were subject to significant taxation on the economy that Americans didn't need to pay on base. In practice, this meant there were some restrictions on how many jeans people could purchase at once, to prevent Americans from reselling them to the Germans. There were also special booklets that Americans could buy on base that had little tear-out pages; each page could be exchanged for a certain number of liters of fuel at, specifically, Esso gas stations on the economy. While fuel prices on base (the same rate as the booklets) were considerably more expensive than in the US, it was still far cheaper than off base.
Most of the goods available in stores on base were imported from the US [2]. All prices and payments were in dollars. We did not use pennies on the base, since they were too expensive to import. All bills/receipts were rounded to the nearest five cents [3].
I was told by a teacher at the time that the Rhine valley had "the single largest concentration of Americans outside of America." That specific area of US installations has grown in the intervening 20 years both due to the wind down of smaller Cold War-era bases scattered throughout Germany and due to the current conflicts the US is involved in, of which, most require US forces to deploy via Germany.
[1] https://en.wikipedia.org/wiki/Status_of_forces_agreement
[2] As a major exception, I believe the bases purchased civilian fuel from German suppliers directly as part of the taxation agreement.
[3] The base bank would always do business to the penny which, over the course of years, would create a small pile of useless copper in every home.
If "hundreds of thousands" means 500 thousand, then this is saying that 0.00027% of those plastic straws are found on coastlines.
I understand that there are problems with both of those statistics, but it still seems a bit odd to publish them like this (there are 13 words between those numbers).
Again, the "500 million" number is likely wrong (as OP references, [1]) and the "hundreds of thousands" number was probably the author taking a spitball at something that there aren't real statistics for, but they still chose to print it.
[1] https://www.nytimes.com/2018/07/19/business/plastic-straws-b...
EDIT: In reference to [1], being within an order-of-magnitude is pretty impressive for a 9-year-old.
The animals breakdown (Chart B) contains 10 values, ranging from 1 Gt to 0.002 Gt. That's a difference of 500x. That's a bit hard to perceive in a one-dimensional chart.
The two-dimensionality of a Voronoi makes it easier to perceive, particularly in a small image (as is presented on a phone's screen), at least to me. I imagine this is mostly due to a 2D chart consuming far more physical pixels to convey the same information.
A stacked bar chart of the same information: [1]. Admittedly, I didn't take time sprucing up that chart, but I find it extremely hard to intuit from and can't even see the value for "wild birds".
Forgive me if I got some of that wrong, or if the system as a whole does not work like than anymore. Not exactly what was asked, but maybe helpful to someone.
EDIT: Closest source I can find: https://news.ycombinator.com/item?id=9866140
It references a long comment from dang three years ago regarding this as an "experiment": https://news.ycombinator.com/item?id=8790134
> Those reservation holders must pay an additional $2,500 to turn their reservations into an order, at which point the original $1,000 deposit goes toward the overall payment for the car. Buyers can cancel their orders within three days for a full refund, the company confirmed, but after that their money is Tesla’s for good.
https://www.cnbc.com/2018/06/28/tesla-model-3-orders-cost-25...
For every 10,000 customers that place an order of the, likely, several hundred thousand current deposit holders, that's somewhere around $600 MM in additional customer money that Tesla would be holding. For every 10,000 customers. But that money won't deliver a physical product for months.
Is this a play to make billions more in deposit money? Is this how they plan to take no more investment/debt this year?
Is there anyone on the list looking to buy one that can confirm if this requires full payment?
EDIT: Apparently, the ask is for an additional $2,500. [2] That would make $25MM per 10,000 customers that place an order.
Putting forth the additional $2,500 also removes the ability for you receive a refund of the original $1,000 deposit if you do not cancel within three days.
[1] https://www.bloomberg.com/graphics/2018-tesla-burns-cash/
[2] https://www.cnbc.com/2018/06/28/tesla-model-3-orders-cost-25...
As for actual jail time, here [1] is a single engineer in California (same jurisdiction as Tesla, presumably) that was sentenced to 15 years. Also, $28 million in fines, which is what he earned for his espionage. Another engineer got 2.5 years for the same incident [2]. And this was the very first instance of people being convicted under the Economic Espionage Act you mentioned. Further reading: [3].
I don't think the facts support your position.
[1] http://www.latimes.com/business/la-fi-espionage-sentence-dup...
[2] https://www.law360.com/articles/571212/ex-dupont-engineer-ge...
[3] https://www.justice.gov/opa/pr/two-individuals-and-company-f...
You are describing entirely legal actions. Sabotage and (this form of) industrial espionage are very much illegal. There's quite a difference there.
> a few $100k is pocket change for these guys
But a few billion dollars of market cap and a few years of jail time are the price of being found guilty of what Musk is insinuating.
That's not a small leap.
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
https://blog.secondmeasure.com/2018/06/04/tesla-faces-accele...
In the article. Musk stated 12% last August.
There are, essentially, an infinite number of optimizations you could make to Closure, though probably several thousand are reasonable. Every marginal optimization needs to run though the entire AST and many of them require prior optimizations to be re-run. As 'cromwellian pointed out, the number of passes is the dominating factor in speed. At some point, it's no longer worth it.
More importantly, this is a compiler targeted towards one-time compilations to permanently reduce large JavaScript payloads per millions of downloads, and not a compiler that is required during development. As such, blunting its effect to save a few seconds is pretty meaningless, so I doubt the maintainers ever considered "less optimization".
That said, it does allow for "dangerous" but more aggressive optimizations that require assurances from the JavaScript or you'll break the code. In that way, Closure offers user-specified levels of optimization.
EDIT: A secondary and less-obvious effect is that using a smaller number of total optimizations produces more internally-consistent code, as opposed to producing unusual and internally-unique constructions for rare optimizations. Internal consistency is great for the next step after compilation: run-length compression.
Really good point. Closure Compiler, at least historically, rejected many valid optimizations because they aren't common enough to justify growing the rate of number of passes.
> If you rewrote something like Closure Compiler in C, I doubt you could get more than a 2x-4x speedup.
Closure Compiler is written in Java. I don't know exactly where the state of the art of JIT is right now, but I would bet C wouldn't be that much faster.
They reference other studies which have show greater variability among males in: cognitive ability, academic achievement test results, personality, athletic performance, birth weight, and adult weight.