skysight-inc/HackerNews huggingface dataset:
Yes, that is some flawless logic. Also, if you were a pilot losing control of your airplane, the best thing to do would be to stay calm, quickly analyze the solution, go through appropriate checklists and try to fix the situation. That's something pilots can learn. I would actually go as far as claim that's what they're actually taught. However if you search on YouTube, you'll find quite some voice recordings of crashed flights where you can clearly infer from the recording that panic seemed to guide the actions in the cockpit. I think this is far more likely to increase the chances of the pilots failing to regain control of the aircraft, leading to a lot of deaths. So I wouldn't bet on those very same people to always think as rationally as you described here. Rational thinking and panic usually don't work together that well.
How much precision loss is to be expected here?
Looks useful. Two hints: I'd love to see an actual approximate number under "Small" on your homepage so I can assess if it's worth trying or will blow my memory requirements anyway.
The other small thing: on https://awot.net/en/guide/middleware.html you accidentally repeat the .h extension in the coffee examples.
This reminds me of the project ran by scholar Avery Morrow, "Everything Shii Knows."[0] He was an early Wikipedia administrator and one of the founders of 4chan. It was really interesting.

Great work OP, personal wikis are very cool! I wish there were more of them :(

[0] http://shii.bibanon.org/shii.org/knows/Everything_Shii_Knows...
Machine Learning: Full-Text Search in JavaScript – Relevance Scoring (2015)
How are the 9000 dollars given?
Because someone might be in the US under certain visa issues. (For example, OPT, F1, etc).
There’s no reason it can’t be glass. Glass can be made highly flexible: https://en.wikipedia.org/wiki/Bend_radius#Fiber_optics says a bend radius of 15 times the diameter of the glass typically is a safe assumption.

That factor 15 doesn’t directly apply to plates of glass, and still might give too high a radius, but this is a hotly researched field.

For nice demos, look at https://m.youtube.com/watch?v=12OSBJwogFc

(And of course, there’s https://en.wikipedia.org/wiki/Flexible_glass, invented about 2,000 years ago.
You can't just build desalination equipment out of a thin layer of this material: it has to be bonded with some sturdy substrate.

At that point it's competing with any number of readily-available black coatings that are suitable the use.
Dear Turner: A love letter from father to son about the gift of Down syndrome
I'd bee willing to join an IN team trying to do this ... If you can string together a few non-traditional clues to the general area you could target the crowd-sourced part more effectively. Might even be able to get cloud providers to donate unused CPU.
All I am saying is that in a relatively safe first world countries in 2019 there are not that many ways to screw up your life big time. But signing a contract that lets someone take take more than your net worth might be based on a risk that they control and you don't, is certainly one of them.

I have actually been in a somewhat similar situation myself and I had spent hours googling all the legalese and running the "worst case" simulations in my head before signing it. And my understanding of possible paths and their consequences was very helpful later when the corporate politics unfolded the wrong way and it helped me exit the situation with a net plus.
umm... OBOR could the Chinese version of IMF and World bank, who knows?
Plotting the path followed by a ball under magnus effect
Just got 27ms in the city on Verizon on iphone X
Easy user mobility should be a goal of decentralized protocols and platforms. That would help users leave one provider and join another if/when the need arises. If I join Server A today as User A, I should be able to carry my identity as User A to another server or provider in the future without losing the ability to still remain in touch with everyone I was in touch with or having to tell them that my address has changed. This would be similar to email where one owns a domain but can move it around to any provider (or self-host) for storing and managing the content.

I have generally observed that some initial servers for a decentralized platform get more users over time and remain the largest, while later and/or smaller ones may not get attention, and could possibly even close down because of low usage.
In ruby you need to use bigdecimal:

precision = Float::DIG + 1
require 'bigdecimal'
a = BigDecimal(8.98846567431158e+307, precision)
b = BigDecimal(8.988465674311579e+307, precision)
mean = (a + b) / 2
puts "Works" if mean > [a, b].min && mean < [a, b].max
=> Works

(edit: I used 0 first and it works fine but converts to precision 15 instead of 16 (which is the maximum on my computer) for some reason, I may file a bug for this)

Works for small floats too:

smalls = [1.390671161567e-309, 1.390671161567e-309, 1.390671161567e-309].map { BigDecimal(@1, precision) }
mean = smalls.sum / smalls.size
puts "Works" if mean >= smalls.min && mean <= smalls.max
=> Works

One could also use BigDecimal("8.98846567431158e+307") but seems like the numbers are coming as floats.
You should read john perkins then.
One alternative theory: Alzheimer as a metabolic disease.

"We conclude that the term “type 3 diabetes” accurately reflects the fact that AD represents a form of diabetes that selectively involves the brain and has molecular and biochemical features that overlap with both type 1 diabetes mellitus and T2DM."

[1] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2769828/
Show HN: Auto responsive images with JavaScript plugin
Yes. It occurred to me that the EU's expansion occurred during a lull in great power politics.
That's... the exact opposite of how it works.
Skimming the article, an obvious solution seems to be overlooked.

Someone is probably a lot less likely to trash/destroy something they own / are in the process of owning.

Imagine if there was far less rental and much more liquid stock of housing units in markets?

What if everyone who was renting now could actually "buy" livable housing at that same level of rent; rather than lining the pockets of others?
It’s a well known fact that as property value rises the yield on rental income decreases.

A $180k townhouse can rent for $1600/mo but a $1.8m McMansion isn’t going to rent for $16,000/mo.

The economics of this has to do with marginal utility mainly and nothing to do with exploitation.

There’s also the calculation of fixed rental costs which derive a larger portion of the monthly payment the lower the payment gets. If management costs are $100 per month that’s 10% of a $1,000/mo rent.

Finally, there are costs like interviewing, turnover, payment risk, eviction risk, legal costs, damage exceeding security deposit risk, and trying to factor this in can dwarf the underlying carrying cost of the property. Some of these are likely to be inversely correlated with property value.
Hi - We’re a small bootstraped startup, but based in the Cayman Islands, and just coming out of core development phase - We’d love to talk with you about how we can help each other. Contact me at admin@yam.exchange if you’re still available. - Thx.Stephen
https://www.yam.exchange
You could use capacitive power transfer with a nonmagnetic electrode.
I know and was referring to them.
PipeHub: Programmable Proxy Server
When you have several layers of middle management trying to sabotage one another in pursuit of better chances at the next reorg, even weirder things could happen. Been there myself.
If you're going to be forced to use an email address as an ID, which I agree is poor practice, you'd definitely want it to be an operational one that is under your control.

Otherwise you're leaving an opening for someone else to come along later, set up that address, and take over your account.
Hack I used to get around that: at the time I was signing up for the VoIP provider, I had an existing cellphone number with a regular carrier. The VoIP provider let me transfer my cellphone number to them, just as if they were another cellular carrier. The number still shows up in directories as being owned by the original carrier (which I think is true in all cases where you transfer a number; the number is sort of "on loan" from the original carrier's assigned number space.)

No 2FA (or KYC/AML) processes flatly reject my number, because it looks entirely legitimate to their heuristics. Still, sometimes the actual activation codes just mysteriously never arrive. Then I switch to using the actual DID associated with my (data-only) SIM, and the codes arrive instantly. I'm not sure whether this is their sending system being smarter about virtual numbers than their pre-check heuristics; or if it's just some weird gateway failure between my old and new carriers when (I presume) they try to forward the SMS from their SMSC to the VoIP carrier's SMSC.
It's amazing how many floating point edge cases emerge from mid-range values. Ordering can also help minimize the accumulation of rounding errors for similar reasons to those you pointed out.
Whenever there's talk about "causes" of things, it makes me wish that more people had studied Aristotle and his four causes:

* https://en.wikipedia.org/wiki/Four_causes

This was a pretty good example of material, formal, efficient, and final causes.
This is the most concise explanation of Gaussian peak interpolation from the article that I can find. Unfortunately it's a pdf, but it does have a full example:

http://www.add.ece.ufl.edu/4511/references/ImprovingFFTResol...

RFFT_SIZE = 256
magAddr: points to array of FFT magnitude results
sample_freq = 8000Hz
TI_FFT(): TI optimized function to calculate FFT
maxidx_SP_RV_2(): TI optimized function to find maximum value in array

TI_FFT(); //perform TI FFT analysis.
int max_bin = maxidx_SP_RV_2(magAddr, RFFT_SIZE>>1); //find max bin
float freq_rez = (float)sample_freq/RFFT_SIZE; //calculate frequency resolution
float inter_bin = max_bin + log(magAddr[max_bin+1]/magAddr[max_bin-1])*0.5
/log(magAddr[max_bin]*magAddr[max_bin]/(magAddr[max_bin+1]*magAddr[max_bin-1]));
//calculate the intermittent bin on continuous spectrum using GI
freq = (unsigned)(freq_rez*inter_bin); //calculate max input frequency

I believe that the above is C code, so the array indices are 0-based.

I can't find anything on TI_FFT except a bunch of PowerPoints, so you'll probably want to use a better documented FFT function:

https://www.google.com/search?q=TI_FFT&tbs=li:1

Here is the maxidx_SP_RV_2() function:

http://read.pudn.com/downloads543/sourcecode/embedded/224236...
Who has actually run into this in practice? Though I’m sure a few people have I doubt it’s more than .001% of programmers or programs. And those that do run into it are probably aware of the challenges.
How much would you attribute to logic puzzling fun and how much for addiction to a incremental, time-spent based reward system.
Trolling like this will get you banned here. Please don't.

Also, it looks like this account is using HN primarily for political and nationalistic battle. We ban accounts that do that, because it destroys the intellectual curiosity HN exists for. Would you mind reviewing https://news.ycombinator.com/newsguidelines.html and taking the spirit of this site to heart? We'd be grateful.

We detached this subthread from https://news.ycombinator.com/item?id=19470535 and marked it off-topic.
What about a "reduce" technique? Average the numbers in equal-sized chunks, then average those averages. You could even chunk the chunk averages and repeat the process as many levels down as you want to, and chunks could be as small as 2 each.

I guess this still assumes that the largest number in the original list is less than or equal to the maximum floating point value, but otherwise you stay roughly in the same space of precision as the original data.
On Classic Party Fiction
CSS-blocks.com is the closest high-quality tool like this, but it's approach is slightly different, it doesn't work against any page, but for this approach it's by far the best quality and most powerful tool like this right now. And, it's made by one of the maintainers of Sass
The privacy policy is also pretty shit for a lot of the plugins on Shopify. Many will ask for indiscriminate access to customer information, product information, etc.
Fair point, it really may have been a different situation in 2000, I didn't realize that.
The Growing Crisis of Guns on Campus
Christchurch mosque shootings: 'Manifesto' deemed objectionable
Also, infrastructure does not lead to economic growth. Quite the other way around, really.
> The MMT argument is stronger: taxes only exist in a fiat money system to reduce the money supply (and, to create behavioral incentives with specific targeting.)

I think this is like the image of the snake eating its own tail, and what you see may depend on whether you see start at the end-end of things or the tail-end. Or the optical illusions that change if between duck/rabiit, etc.

:)
Attributing the situations in Evicted to inequality or differences in household wealth is pretty off base. It's Milwaukee, not San Francisco. Competition from wealthier households has minimal to zero weight as a factor in the price of low-end housing.

Rather, a bunch of people have incomes that are below or precariously close to the carrying and maintenance costs on the cheapest possible shelter. You can tell that this is a poverty problem and not an inequality problem because the situation is worse, not better, if everyone falls down to that level. (Example: we might be legitimately better off in a world where no one is a billionaire, because billionaires have access to outsized political power that can harm other people. Money in politics is an inequality problem. I don't think you can say we're better off in a world where no one can securely afford good housing).

And if we look at places in the world that deal more successfully with such low economic productivity, one of things you'll find is a regulatory bar for "minimum viable shelter" that's more in line with what people living there can afford.
Mastodon has this. SSB doesn't, because your identity is just your message chain and key pair on your computer.
Absolutely. Many in Silicon Valley make much, much more as Individual Contributors.
And enforcement is deferent to the landlord.
This exactly! Also upkeep. Replacing a cheap shingle roof vs a metal or Spanish tile roof are night and day in costs.

Plumbing is cheaper in a cheap small house with simple layout vs. Sprawling multi-level house.

Size of grounds (and expected level care) to maintain are different.

It goes on and on, but the gist is that the total net on a cheap house (ie. houses in cheap areas) is going to be more for the same level of investment.

I don't even see how this is unexpected or controversial!
Please don't start doing nationalistic flamewar again on HN. I realize it's hard to resist, when other people are posting provocative comments. But taking the thread further in the low-information, high-agitation direction is exactly the wrong thing to do here.

https://news.ycombinator.com/newsguidelines.html
If you read the book you would not call it advertising material. It's very open-minded and it's honestly not a book that is designed to sell you on Pivotal PAS in any direct way.

The first line in the first chapter is more like an "ok, full disclosure, this is advertising material" but if you read the full text, the Pivotal suite of tools is hardly mentioned. It merely paints a picture you can understand to demonstrate that some kind of platform is definitely needed for basically any enterprise of nontrivial size. (Now if you want to read the real promotional material, get yourself a copy of "Cloud Foundry the Definitive Guide")

This book is only advertising in the sense that if its message is delivered successfully, you will concede that you should use a platform, and we will both agree on the meaning of the word platform. That's it. It's only a bit of tongue-in-cheek first since Pivotal actually makes such a platform, that it says on Page 1, "our platform is the best and only platform" – the rest of the book isn't at all like that.

But if you take it in context for the date of publication, it might make more sense that it was framed this way. Obviously it does not pre-date Heroku. It is a different platform than Heroku. But it is a platform, and a cloud-native one. It's an example of "why you might not need Kubernetes." Also might help to note that this book was published in 2016.

It might be (read: definitely) harder to assert in 2019 that there really isn't any other platform worth considering (than CloudFoundry in 2016), but for a medium-large enterprise in 2016 I'm honestly not so sure. Kubernetes was still new on the scene. People in 2016 in large part still needed to be convinced that such a platform was needed, or even possible, since few existed in the wild/open source commons. (Name your favorite platform that is older than 2016, if you still are in disagreement with the thesis. There are sure several right answers, and I seriously don't doubt this at all.)

To take the contrary position to the extreme a bit, present company including the original poster I think nobody serious (I hope) is suggesting "you may not need Kubernetes, and there is also no serious contender which you should consider in the race for a thing like K8S that you may need for your enterprise, either." Even the original post recommends something instead (Nomad). There is a decent chance you are already sold on this idea, if you're reading this article.

The central argument isn't that you should definitely pick Nomad, it's that you really do need a platform that works for you, even if it only gets you 80% of the way there. The author of "Maybe You Don't Need Kubernetes" started out explaining why Kubernetes just wouldn't work for them. The book, just like this article, comes off a bit like "hey, why not this product instead of whatever it is you're doing there."

But just a little. I strongly agree myself – "In 2019, pick something, anything. (Even Nomad) Just don't do nothing."
This book
https://www.amazon.com/dp/0735216207
Nationalistic flamewar is against everything this site is for, and we ban accounts that do it. Please don't do it again.

https://news.ycombinator.com/newsguidelines.html
Apple's Reinvention as a Services Company Starts for Real Monday
>Landlords steal whatever they like, including deposits

Kind of like how policemen will shoot who they want to, right?
mind blown good luck with that.

edit: Let's take 2 billion. Assuming 60 characters per line, that'll take around 120GB just to keep the text in memory! Would the ast representation of whole codebase be smaller or larger in size?
Not really. The time required to overflow that way is unrealistic. Also I think you'll run into S + x = S. at that point your sum will stop climbing towards overflow.
http://Dvc.org does this
B&MGF were largely responsible for the eradication of polio
The biggest problem with cars, at least in European cities is the amount of space they take. Despite rising rents, making some cities unaffordable for people working there, we still mandate parking spaces for every build flat and use large amounts of space for multi lane roads, tolerating emissions, noise etc. Electric cars don't solve most of that. Making it easier to live in cities without owning a car should be the focus, not electric cars
Even if there was only a one in ten chance, it justifies an enormous research budget, when the costs are $200bn a year in the US alone. What we’re actually spending is far too little.
No. Most unlimited plans start deprioritization after 22GB.
You can easily read all images out of the api.
Almost always they ignore this kind of issue; the best you're likely to get is a mean() function that remembers to sort the input first. Most numbers are in a "human" range far from the limits.
How is that different from the second example?
They're not anymore. Telenor in the Balkans was sold to PPF Group. They new owners raised prices a lot, and they have a license to call the company Telenor for 5 years.
Significant impact in 30 days. Without changing diet to reduce glucose. Can’t achieve 1mmol/L of Ketones in the blood, though, without a Ketogenic diet. The brain lights up in the PET scan on a Ketogenic diet:

https://youtu.be/OU26epaihmw?t=1469
1. Read the article, entertain the premise.

2. Install solarized from github on IntelliJ

3. Realize the editor frame and the rest of the UI don't match.

4. Back out install.

5. Finally, conclude that I actually do not want all editors I use to have the same color scheme; the differences in appearance serve to cue my mind that each editor operates differently, does things in different ways, and I am already equipped with sufficient cognitive dissonance not to add another layer.
The number of times in my life that I have seen "this should never happen" scroll by on STDOUT suggests that it's time well spent.
Yeah I agree that nobody could agree on a single subset of C++.

I think that Bjarne might mean "modern C++", but I'm more a fan of "C with classes", and I think the latter is more appropriate for many domains. I would say those are the two main dialects (with modern C++ being split being library writers using templates and library consumers.)

The old Google C++ style guide is good, but it seems to be morphing more into modern C++ lately. It's basically C with:

- The ability to add methods to structs

- Basic single inheritance.

- Collection and string classes

- Scope based resource management.

https://stackoverflow.com/questions/3073642/official-c-langu...

No exceptions, no IO streams (except in one place), no implicit constructors, no operator overloading, multiple inheritance, etc.

So I woudn't say there are 5 or 6 languages, but it definitely feels like that sometimes. I think the lack of a single string type, single error handling mechanism, and single deallocation mechanism are the things that make it feel like more than one language in a single codebase.
If you continue to troll HN we will ban you. Please stop posting unsubstantive comments as well.

https://news.ycombinator.com/newsguidelines.html
Because of the aging of the population and the consolidation of wealth the natural interest rate have fallen quite a bit. And you're right I think that's a big risk for the next recession.

But the only way to a higher nominal interest rate while keeping the same real rate is too raise the inflation rate to 3 or 4%.
Status, and in some cases art, but mostly status.
For Sale: A Massive, Obsessive and Probably Obsolete VHS Boxing Archive
This is nothing more than the State starting to normalize the control of information. Expect things to worsen in the coming decades, until they're good again.
The two parties are not very different. Remember they were in a ruling coalition once, and a few people moved from PO to PiS after PiS came to power.

Poland has no true left wing party anymore, and there are more extreme right voters too. Something is stirring on the right. PiS and PO are different shades of centrist I think. Especially that what PiS does and what it says are two completely different things.
I use graphql extensively as an API for apps I've built this way. But I don't feel like it really fundamentally changes very much in the client (other than much more efficient data fetching). But you still have to compose the data into the view the client is trying to render. Defining data requirements in components is nice in theory, I just personally don't know of any examples where this approach is being used successfully at scale. There may be examples I don't know of. Do you know of any successful large Relay apps?
It is proportional to the number of terms in the sum. Kahan summation has a tighter error bound.