skysight-inc/HackerNews huggingface dataset:
Good point. The precision loss will be pretty bad if the numbers added above have greatly different magnitudes, which could occur if the next number (x) is very different to the current mean (mu), or if the list is very long. The first issue could be partially mitigated by sorting the list first. If the list is very long, the above algorithm will necessarily add numbers of quite different magnitudes, but employing something like Kahan summation - https://en.wikipedia.org/wiki/Kahan_summation_algorithm , could partially mitigate that issue as well.
Show HN: JavaScript Moving and Zooming Handler
That you don't have to know the number of elements to sum at start. But I think the precision loss is even greater this way.
Unfortunately, by averaging the averages you skew the results. Average of averages does not produce the same result as averaging the whole list.
Can you please read and follow the site guidelines instead of breaking them like this?

https://news.ycombinator.com/newsguidelines.html

We detached this subthread from https://news.ycombinator.com/item?id=19470846 and marked it off-topic.
He needs to figure out where to effectively invest the money. He's already investing some of his money.

https://www.forbes.com/sites/denizcam/2017/11/13/microsoft-b...
So what's the correct code? I try my guess before reading the 30 page paper (I will add my comment after reading it)

My first guess: Normalize it. Find the largest exponent and divide all values with the exponent. This is a power-of-2 operation so would not lose any precision. Then divide all numbers by the length. Perform the same normalization again. Sum the numbers, then revert the exponent that was removed in the first step.

My second guess (backup plan): Use the interval arithmetic. I don't remember the specifics but I remember this is the safest form of floating point operations. But perhaps I should be careful about the performance penalty.
The World Bank already exists and China was the second largest borrower from it between 2013-2018. Read that again, it's not a mistake. At a time when China was booming and loaning out money on the OBOR, they were simultaneously the second largest borrower from the World Bank. So what are they really doing with OBOR?

https://www.bloomberg.com/news/articles/2019-03-12/china-s-t...
Datasets for Country,States,City with ISO Codes,Lat,Long,Population
Many startups need reference data as a foundation to their database if they want to build a global product-What is the best source for getting an ACCURATE list of country,state,city with data fields like IDD numbers,Countey ISO codes,Lat,Long,Population? So many sources we have found offer half baked datasets that is incomplete or inaccurate.
Why don’t YC offer ‘core data’ datasets that startups can use to help build out their products? ... or do they - and we just need to ask? Hints on where to search would be great as we’ve lost weeks putting together data only to find it missing some key cities or has outdated data
Can you please not respond to a bad comment by breaking the site guidelines yourself? Personal attacks are particularly not ok here.

https://news.ycombinator.com/newsguidelines.html
1.25x? Aim to get accustomed to 2x+. So much time savings. I have a friend who’s blind and super proficient on his laptop using screen readers. He runs all the speech at 3x+. It sounds like gibberish to me, but he’s crazy productive. He inspired me to learn how to understand and follow significantly sped up audio. Saves so much time.
I agree with that logic, I think I've encountered every one of those cases.

That makes me see that there isn't a "god" object like the article calls it, that holds all of the app state. There's the root state shared throughout the app, and then each page or component can have its own encapsulated state.

Ideally I like to also keep page- or component-specific state+actions decoupled from their views, functional and testable independently - but often I start/keep them in the component class (and maybe soon hooks).
this is similar to our experience in commercial properties as well, which removes the emotionally charged aspects of "taking advantage of poor people" - landscaping, interior finishings, painting, etc are all large costs in nice retail properties, and non existent in functional light industrial or trades-oriented buildings, yet rents are generally higher for the later.
True, but beware the unintended consequences of 2007.
No one said all the money would be spent on drug research. The idea is that some basic science would also be done.
New technique could help regrow tissue lost to periodontal disease
Maybe deep learning technobabble that might convince a script kiddie into "researching" what was coming back?
Oh shut up and let people disagree you fucking insane sjw.
I'm not against pain being incorporated into training, but for this specific scenario I don't get how you go from "I have been shot in the back once with an airsoft gun" to "I must rush the active shooter or I will die".
The issue is also we don't know what to write. I'm being a bit extreme here, but not being able to do rational design limits things to mostly 1) build a lot of variants, using some educated guessing, 2) test those variants, 3) plug those results into some model and predict what to build next.

So the value of each individual variant is relatively low, since you don't know if it will work or not. Plus a lot of other investments have to be made into the toolchain (developing assays for the thing you actually care about is not easy).

In your plateaus, the possibility space explodes with each step function. We are already at the first rung of the ladder of building many 50bp variants. Generally, you'd probably want to be able to conduct an experimental cycle with 1000s of variants. At the upper end, you'd want to pay $5000-10000 for each cycle. There is demand for making protein-length sequences, but the prices the market is willing to pay is probably closer to $10/gene (fully customizable 2kbp) rather than the current price.

Another thing is that not all sequences are created equally. Some sequences will just not synthesize well (maybe there's secondary structure), so to limit costs one ought to limit the number of retries per sequence.
Fromfrom, a LINQ-Inspired Library for JavaScript
Similar correct result from sbcl.
TFA also makes another good point but somehow makes it sound evil;

In low-cost cities, landlord profit rates rise steeply alongside neighborhood poverty. But in expensive cities, the reverse is true. In expensive cities, landlords make money through appreciation and gentrification (which is bad enough for the poor). In lower-cost, more economically hard-hit cities, they make it on the backs of the poor.

If the home value is flat or even falling, then of course the rent will have to be higher to provide the necessary return on capital to bother owning the rental property in the first place!

It’s not like capital is required to be deployed to rental stock in certain proportions. There is whole world of potential investments, and based on their risk and return will have a whole world of dollars competing for them.

Rental units that appreciate fast enough are just held vacant in some markets, so much so that Vancouver had to abundantly tax it to try to stop it.

Rental property appreciation is an absolutely key variable in the profitability calculation. In many markets it totally dominates the equation over the actual rental income figure.
Your personal network. Check out “Take the Work Out Of Networking” [0] for non-sleazy ways to build this asset.

0: https://www.amazon.com/Taking-Work-Out-Networking-Connection...
well, this is the general premise of actions like habitat for humanity, to get the owner/occupier to invest sweat equity over purely financial.

It probably works but the cost (and scalability) can restrict how fast/far it can be applied...
I don't think you should be down voted, you asked a good question. I don't think everything has to have a "point".
Affiliate sites. You'd be surprised how much those can make.
Final Day of the Linux Foundation Deals
The cost would be zero if residential ISPs issued static ipv6 and allowed servers.
Providing money to attend this kind of program is awesome, but there are many people who, despite having expenses paid, still could not afford to take advantage of this kind of program. The more financially stable you are, the more likely you would be able to drop your life for x weeks to take advantage of this kind of program.
Its not that what she is doing is "helping rich people more", but it will still favour them.
“Of course it is a complex issue on how to address this — what mixture of regulation and free market solutions best serves people -- and I think the authors land in a position that is more in favor of regulation.”

The interventions we already have are largely responsible for the problem in the first place. Governments intervene massively to increase the cost of housing as a backdoor give-away to incumbent homeowners.

Doubling down on intervention will not work because there are diametrically opposed requirements—-politicians want high and monotonically increasing home prices but low and stable rents.
Even better if you can afford to sort the data and use a high precision type for mu. The algorithm will not be online any more and for python real numbers are usually double in practice. But in a constraint system where one has to work with float32, just using float64 for mu helps.
Love Rick Steves, and used his resources to plan a 3 week vacation touring Italy almost 20 years ago now. It was an amazing trip.

Rick has also been on the board of NORML forever.

Warning: If you travel enough you might come down with "Cosmopolitan bias", which is evidently a bad thing in some circles.
Geo-location is a fascinating topic.

Here's a Twitter thread where BBC solved a murder in Cameroon: https://twitter.com/bbcafrica/status/1044186344153583616?lan...

From a single video of the crime, they were able to figure out where, who, and when (!) the crime was committed. (Using Google maps.)

And here's Jeffrey Lewis presenting how they figured out "Where does North Korea Build Its Missile Launchers?" (1h video): https://www.youtube.com/watch?v=E9QbI8Jf4hg

Using "only" North Korean propaganda videos and commercially available satellite images and published memoirs from NK defectors, they were able to located the building where NK is making their TELs.

Does anyone have any other examples?
Shameless plug: I build Trunk @ https://www.trunkinventory.com which can sync inventory between multiple Shopify stores (and other channels)
Jerry (YC S17) Is Hiring Senior Software Developers (Toronto/Markham or Remote)
This is one of the many reasons multiprecision floating point libraries exist.
Most people would probably be better off with the cost of using them than dealing with any of this.
Quite a few macroeconomists have said the Fed caused or depeened the recession: http://bruegel.org/2016/02/blaming-the-fed-for-the-great-rec...

But it's also a bit philosophical, because any causal claim implicitly invokes a counterfactual. Like, if a bus drives off a cliff, was it the fault of the cliff or the bus driver who didn't respond quickly enough in trying to steer away? To me, common sense says that sometimes it's the cliff's fault and sometimes it's the driver's fault - the difference depends on how early the driver 'should' have known.
The job never became prestigious. I love computer programming but saying “I’m a programmer” has been one of the best ways to lose interest of people who aren’t programmers. The most common response is just “oh, that must be nice because it pays well, right?”

Compare that to the response people get when they introduce themselves as heart surgeons and you’ll see what prestige amongst the general population (at least in the US) looks like.
Comments moved to https://news.ycombinator.com/item?id=19470313, except the low-rent flamewar.
You can also apply the command pattern in some cases and store the undo redo state globally.this at the global store can be generic and the previous specific state will be part of the saved commands. (More applicable to SPAs).
The name of the party is misspelled in the article, it should be Platforma Obywatelska (Citizens' Platform), not Platformy.

Every single time, goddammit.
Land. They don't build that stuff any more. (But not in countries with unstable regimes)
What did you learn, if you don't mind sharing?
you get the ability to hire people with a keyword ... "kubernetes SRE"

but i think thats pretty much it if you're a smallish team with an already well implemented IaC stack.

Though i'd definitely encourage anyone to try the GCP Kubernetes before trying to self host it...

The former gets you a taste for why its getting such good publicity.
the later explains why its still controversial.
Wasn't that PET scan showing ketone uptake? So it showed that brains can use ketones... but nothing about the activity or ability of the brain otherwise?
The common strategies that you'll find people do are:

- take notes in margins

- phrase what you read in your own words

- think critically about what you read

But for me, I extract the most value when I discuss what I read with others. Not only does it provide more motivation for reading but I also find myself with a lot more insight after a conversation with a friend about what we just read.
I'm taking every preventative measure I can at a young age to reduce chance of Alzheimer's later in life, starting with low carb intake (+ no sugar) and IF.

I can't think of anything more depressing than working your whole life so you can retire only to go into retirement and be diagnosed with Alzheimer's.
Make: Magazine Vol. 68 April / May 2019 – Tech Trend #1: The Push for Python
*in the developing world

Polio have been eradicated in developed nations by the 1980s.
Please don't. What you're doing here crosses into personal attack and is therefore not allowed on HN.

https://news.ycombinator.com/newsguidelines.html
Got your back! I've been working on a JS voxels side project which I just made available for R: https://github.com/javierluraschi/voxels

I still need to add support to add voxels from R and retrieve them, but should be straightforward, the hard part was putting together the rendering engine.
This is a very important point and a large reason I got out of landlording. To be successful you have to be tough as nails and evict people when they can't pay their rent for totally understandable reasons. And if you're not emotionally prepared to kick out a mother and son because they lost their job because they couldn't make it to work because of a hurricane your returns won't justify the extra work renting takes over just throwing it into mutual fund.(especially at the hourly rates most of us make)
The US is not an ally of China. It cooperates with China to maintain peaceful military and political relations in Asia and it has vast trade with China. There's a dramatic, fundamental difference between being an ally and being a global competitor that you try to get along with (ie try not to go to war with as you collide repeatedly on matters of perceived national interest).

Britain, France, Germany, Poland, Canada, Australia, New Zealand, Japan, South Korea, Philippines, etc. Those are allies of the US. I don't think there's actually much confusion in the difference between a US ally relationship like Britain and the modern US relationship with China.
Would you please not break the site guidelines by posting obvious flamebait about divisive topics? Nationalistic flamewar, which is what you started here, is completely unwelcome on HN.

If you'd please review https://news.ycombinator.com/newsguidelines.html and follow the rules when posting here, we'd be grateful. They include: Comments should get more civil and substantive, not less, as a topic gets more divisive.
Fuck everything, we're doing 7G.
I was able to see a presentation about this topic one time by ICE. It tragic in two senses:

1) The crimes themselves are absolutely intolerable to society.

2) The lack of serious resourcing the seriousness of this crime should warrant.

Part of the presentation was specifically on identifying the location a sequence of photos was taken in the hopes that it would narrow down the search radius for the offender. The team that did the work were members of the ICE HERO program -- one of the coolest veteran-to-civilian programs I've ever seen [1][2]. The folks literally spent weeks "driving" around likely areas in Google maps trying to identify the location. Because the photo was taken from an angle that the car wouldn't have seen, they weren't able to use any automation at all and it literally took a human's intuitive understanding of 3-D spaces to eventually figure it out.

However, what was really tough was that the HERO program only exists because it offers an internship that costs very little to DHS -- they simply can't afford a large group of full-time staff.

I urge anybody who can to petition to better fund anti-child abuse programs.

1 - https://www.ice.gov/hero

2 - http://www.herocorps.net/
Close, well-maintained, meaningful relationships with your family and friends.
Please edit personal swipes out of what you post here.

https://news.ycombinator.com/newsguidelines.html
My neighbor has this, built directly into the cabinets. Just cold drawers, blew my mind.
Mueller revealed his Trump-Russia story in plain view
Hungary does this already in the EU for Russia

https://www.unian.info/politics/10270653-hungarian-top-diplo...

https://www.reuters.com/article/us-russia-hungary-putin-orba...
Dupe: https://news.ycombinator.com/item?id=19468327
Poland is a pretty young democracy. There are no strong democratic institutions, there isn't much faith in them and people are quite doubtful. After partitions Poland spent a few hundreds years off the map, at the time when many social changes were talking place (at the start of industrial revolution). For a few centuries Poles no longer ruled themselves and there's no strong tradition of civilized debate. Don't get me started about "democracy of gentry", because the class composed at most 20% of society. So a vast majority had no say in what's going on.

There's still admiration for strong figures like Putin, Piłsudski, Churchill, even Stalin. People who don't trust institutions are sympathetic towards autocrats and their displays of strength.

The Polish law works in such a way that a party member can jump ship, join another party and still have a seat in parliament. Then if he's loyal enough they put him on a voting list (in many cases you vote on lists of people, not individuals).
Technically speaking, the animals he is talking about are bisexual. But this was a truly great article. Please post more like this, queerty.
Pointing out hypocrisy is perfectly legitimate in a debate. I don't know how the word "whataboutism" causes people to miss that obvious point, but it has long become a reflexive cliché.
It's a sliding scale of return. If your infrastructure is already decent, you will see a terrible return on your investment, as in the case of Japan's debacle of decades of infrastructure investment that produced negative real growth (due to the debt vs growth generated).

If you're China in 1980 or 1990 (ie third world infrastructure), vast infrastructure spend will faciliate your decades-long growth explosion. Without that, you can't become China of 2019, you can't actually go from a $400b economy to a $14t economy. The ports, roads, rail, bridges, utilities, energy generation, et al. is a requirement and produces extraordinary returns in a context like that. It drastically boosts economic productivity and raises your maximum output potential by a lot.

As another recently discussed (on HN) example, Romania has had one of the world's fastest growing economies in recent years. Economically it's attempting to push into a solid middle-tier economic nation, in the footsteps of countries like Poland, Chile or Slovakia. Romania simultaneously has a horribly lagging roads network that is in desperate need of expansion and improvement. It's very likely that properly building out their roads infrastructure would help facilitate their economic boom continuing; and that not doing so, would act as a serious point of friction on growth long-term. You can't get to $25k GDP per capita, with roads built for a $2k GDP per capita economy.
What's the point of diamond rings, necklaces, earrings, etc...? A mechanical watch is jewellery, art, and as such also a status symbol.
The semantics of template resolution are important, and unlike anything I'm aware of in Lisp.
thanks --
Well, at least theoretically, the way I organize state management allows me to pull in "slices" of app state/actions (or even moved into shared libs/modules), to compose a smaller subset for an API or CLI. So the latter can choose to not include any of the UI-related state.

In practice I haven't used it so much, but I like the idea of treating the UI as just another render target / consumer of app state/actions. It enables "remote control" of the app logic, makes testing simpler, and allows reuse for various interfaces like CLI, API, maybe React Native too.
The WOOL 2009 paper where it takes days to attack a 14-bit key is irrelevant for attacking a 64-bit key. They even say that 32 bits would make the attack infeasible.

Offline attacks to find collisions are irrelevant because revealing the key breaks the security model.

Saying you can recover the key from side-channel attacks on probe sequences is actually a claim that SipHash/HighwayHash are not secure PRFs.

If you're not making these claims, you're not communicating very well what your security claims are.
If you cannot trust that 725 line program without any mention of recv() nor read() will never call recv() or read() on network socket then you have much larger reliability (not security, because whether something that is broken to the point of being unusable is secure or not is completely irrelevant) issue in your system that is not going to go away by applying random hardening options to said program.
I ran into a similar issue doing high accuracy dot-products. The solution was Kahan summation [1], which first adds the incremental value, then checks the result to see how much floating point error was introduced, then rolls that error into the next addition.

I suspect something similar could be done here, even if it would be a few times slower, to get an ulp-accurate mean regardless of the order/size of the individual elements.

1: https://en.wikipedia.org/wiki/Kahan_summation_algorithm
In what way do Dat, IPFS, SSB, Mastodon, ActivityPub, Matrix etc. counter the push for some centralizing effect, in that eventually everyone is still dependent on the same server?

It's still possible to host your own website & server, but not as easy as setting up a Facebook profile.
Same goes for e.g. Mastodon: running your own server isn't as easy as creating your just an account.

How do projects like Mastodon not end up with a big server (or a few big ones) that everybody uses?

Edit: Not all of the protocols I mentioned use servers, some are P2P which don't have that issue, I think.
Oh wow, that sounds s cool. Could you post some pictures on imgur?
I didn't say state-owned, I said they had economical backing from the state. Many of them. Just look at the bottom of many European websites and you'll see the logo of the EU.

Whether the states are authoritarian or not is irrelevant to me and to the question.
> It is really important for the fat guy to determine if he is near Nile River, or an area infected with the WN virus and work out the chances of contracting the virus.

The fat guy should certainly do that, but first of all he should quit smoking and eating KFC. Those are more existential threats.