skysight-inc/HackerNews huggingface dataset:
Ask HN: Is there a JavaScript library for arbitrary precision complex mathematics?
I am looking for a JavaScript library to work with very small (very large) complex numbers. I need things like pow(), sqrt(), etc. Best I could find is Math.js [1], but it doesn't have arbitrary precision functions for complex numbers. To illustrate my point, please see this JSFiddle [2].

If there is no such library - what is the best alternative?

a.) create such a library from scratch

b.) convert some Java, Python, or C/C++ library to JavaScript using pyjs or Emscripten

[1] http://mathjs.org/

[2] https://jsfiddle.net/95mxb0dL/12/
I agree completely. For a long time I was avoiding Spring because bloat and XML, but then I finally gave in and tried Spring Boot. It is most excellent. Nearly all bloat is opt-in, it does everything, and absolutely zero XML configuration needed. I've tried Dropwizard before, and use it for two applications I have running. It works, but it's not great (because it's not just a rest API, but also has GUI and user management). I'll be porting it to Spring eventually.
Spring boot is the dropwizard competitor for people who don't mind Spring magic. Jhipster is a project that uses spring boot to make the project setup pretty much as easy as in rails. https://jhipster.github.io There IS still cool stuff happening in the Java world
Wait, do regular cars engage the emergency brake in a fail-safe way? I've always treated the emergency brake as a way to keep a stopped car from moving, not as a way to make a moving car stop.
The problem with telemedicine is not vision or technology, it’s distribution
You don't need to MITM, if you can predict the request and get your spoofed response in faster than the real server.
But it is quite popular in almost every other European country and the conditions here look perfect to me: tall people, good installations, a weather that usually favors indoor sports, a very active population willing to practice any sport... I see people following the NBA, I see sport shops where basketball equipment is no less present than in any other country, I see baskets in schools and high schools like everywhere. And I have even seen quite some people playing. Certainly more than playing volleyball, and the Dutch volleyball team is a very good one.

Of course football is the big thing here, but other countries like Spain or Italy where football is huge also have top basketball teams.

Thank you for the number of players data, but I still wonder what are the reasons that basketball is not bigger in the NL.
Some years back, some federal organization made new rules for semi-trailers with regard to the space between the road and the bottom of the trailer. These rules were designed with one problem in mind: decapitations due to rolling under the trailer. I think there was a rash of fatal wrecks that would have been non-fatal if the car was taller or the trailer was shorter, or something. I am under the impression that the rules are generally met these days by installing metal frames that stick down from the bottom of the trailer and prevent cars from fitting underneath.

Could it be that this trailer was out of spec? Could that be why 1. there is little damage to the truck, 2. The body is mostly intact but the roof is gone, and 3. the car did not detect the obstacle?
New York 1# in billionaires
Even ISPs will do all sorts of obnoxious things like this, although some public wifi is horrible. I got a $15/year ramnode VPS about a year and a half ago and removed all services except ssh on port 80 with chacha/poly1305 and public key encryption. I mostly use SOCKS with sshuttle to catch anything not configured for SOCKS (sshuttle in theory is a better method, but in practice it leaks DNS requests somehow). Quite simple and I highly recommend it. Traffic accounting seems to undercount substantially with this usage so I didn't get anywhere near my limit (I don't have the highest bandwidth usage, but not the smallest either). One public wifi I would like to use more often somehow manages to break this setup (and half the internet even without a VPN so no idea what they are doing), but I haven't had trouble anywhere else. I started doing this after getting SSL downgrade errors using public wifi.
I'd also like to point out that the comparison between Apple and a cult has existed since at least 2004. [1]

[1] - https://en.wikipedia.org/wiki/The_Cult_of_Mac_(book)
No. Other styles include logic (e.g. Prolog), (forward chaining) production systems (e.g. CLIPS), dataflow, and (gated) quantum computing. There's some overlap between the different styles.
By your definition, what's an example of a non-constructive proof (of any theorem ) ?
I'm not sure that's necessarily feasible here.

If your battery dies while the car is running (say, even, that something causes a physical disconnect between the batteries and the rest of the car — a wiring fault, or whatever). Ideally you would be able to pull to the side of the road while your vehicle coasts, braking as necessary.

If the system detects a power disconnect and instantly engages all brakes, does that help or harm? Additionally, since powered items like anti-lock brakes are now unavailable, how hard should the brakes be engaged? Fully? Slightly?

Slamming on the brakes in a failure scenario is not automatically the right answer. Odds are it's probably the wrong answer more often than not.
By "intact", the NTSB means "in one piece", as opposed to "debris field".
That road looks very dangerous to speed on, with cars crossing perpendicular to oncoming traffic.
Obviously I'm biased, but here's my take:

Flynn has a larger technical scope, covering everything from the details of how container are run all the way up to the user interface used to deploy applications. We also run highly available databases within the platform, in addition to stateless webapps. As a result of working to build an easy to use unified solution, we've ended up building many components from scratch specifically for Flynn and have very few dependencies.

Deis is designed to use commonly used off the shelf components, and has a focus on stateless web apps. Currently Deis is built around the Kubernetes and Docker ecosystems.

Flynn's approach has given us more flexibility, but it has taken longer, so Deis has often reached various milestones faster.

It's a frequently asked question so hopefully in the future a well-informed user with experience on both platforms can write a detailed teardown/comparison.
Technically they use it as a dumb key-value storage.
The only analog I can think of is if you suddenly lost all your brake fluid, and in that instance the breaks would be useless.
I would also argue that the inability to impose negative interest rates on cash is an even bigger problem from their perspective than anonymity.
[footnote] John Oliver saying it even better: https://youtu.be/zNdkrtfZP8I
> The infrastructure was there so you could say, “I want sheet metal done. I want a printed circuit board made.” You could just go out and someone would do it for you. “I want to buy parts,” someone could do it for you.

The ability to reach out locally and have hardware components custom made seems kind of important for the small innovator in today's fast economy. The speed of revisions and product evolution and all that.
Not perfect in every detail, but absolutely lovely. Well done!
Also, SciHub exists.
Yup, we'd use IncrediBuild to keep build times down to something reasonable.

Unless you're working on something very console specific most of your day to day testing happens on PC. Even titles that don't have a PC port will have a PC version of the game since iteration time is so much quicker. Having something close in specs there means you'll see perf issues right up-front as opposed to when QA gets around to testing it the next day.
Free Minimalistic Logos
Verifying ARM processors against the official ARM specification
Support for online schema changes has been getting a lot better in recent releases of MySQL. No idea if it is totally bulletproof right now though, we are still in the "stone ages" of doing failover based schema changes, not even pt-online-schema-change.

It seems that the replication arguments in the post are pretty weak (migrating to 9.4+ to allow heterogeneous versions would still have less downtime than migrating to MySQL), but clustered indexes seem like a huge win for their use case of updating only a subset of each row. Whether that is reason enough to totally ditch postgres, I don't know.
DI is fine, but that's just the concept that you ask for dependencies rather than relying on them.

foo(X dep) {}
vs
foo() {X dep = new X()}

It's overused imo but it's fine. The problem comes with DI frameworks like Spring or Angular DI when you start letting the framework tie your code together. This couples you tightly with the framework and can lead to odd situations where the thing you're getting isn't what you're expecting but that's not obvious because the object passing is happening behind a curtain.
I don't really agree; I think you either need to have a very thin layer between your DB facts and your domain, or else use the DB as a kind of persistence layer for a complex graph.

The latter only really works if you've got a primary implementation language and aren't integrating lots of applications / libraries written in different languages communicating with the same database. You need to go down the SOA / distributed RPC / FFI route to integrate different languages, and that has its own complexities.

Personally I prefer treating the DB as a canonical store of facts. Models with a lot of code are pretty suspect. Retrievals can be tuned to just the facts required, ma'am - you don't accidentally drag in the banana + gorilla + whole forest. Doesn't stop you building a higher-level service layer if that's what you need, either. You'll need that when you scale up anyway; chatty models won't work at that level either.
Well it's all a bit vague in my mind, but the idea was that if a central bank coin is introduced, and if it achieves widespread use and popularity such that it becomes the default demand deposit mechanism, that the central bank could purchase the dispute resolution units from the private banks that presumably no longer have a use for them. The systems and human capital expertise to perform the functions would still exist, but it would be a question of whether they would be willing to work in the public sector instead of the private, and if the public sector could effectively manage them such that their performance remains acceptable.
There are not many JS libraries in this space that have sane handling for complex numbers and arbitrary precision.

I'm not entirely sure, but perhaps NumericJS [1] would have what you're looking for?

[1] http://www.numericjs.com/documentation.html
None of the trailers around here are like that, fwiw. All tall and open underneath.
No, a regular car will not engage brakes without human interaction. The fail-safe is having two independent systems - hydraulic for the foot brake and wire rope for the hand brake in most vehicles.

Additionally automatic transmissions have a transmission lock, but that won't work while the vehicle is in motion.

Some modern cars use electric systems for both, I'm not sure how that would work.
In regular cars the emergency brake lever is mechanically connected to the brakes, so unless your brakes are busted, it's always "fail-safe".
I'm blunt because I feel strongly about it. They could be so much greater, but they willingly choose not to be. Then they lie to themselves about being just as good as anyone else despite being denied jobs.
You're talking about the 'Mansfield bar'[0], or 'underride bumper' named after a famous case of a celebrity killed by rear-ending a truck.

[0] http://www.sparebumper.com/index.php?act=viewProd&productId=...
Good point, but the problem is that the companies responsible for "making IPv6 happen" are not necessarily the same companies who want to compete with Amazon. There's very little incentive for ISPs to roll out IPv6, especially when the biggest cloud providers don't support it. It's a bit of a catch 22.
Well that's a lot of sad. I was following the helmet project and thought it was a great idea ... should I ever (be foolish enough to) buy another motorbike.

Some rear view mirrors are just ludicrously small. Having the rear view projected inside the helmet's AR display would be a massive boost to safety and confidence, as any rider who has ever waited at lights should be able to tell you.

I feel sorry for the engineers working on this, who will not be able to bring it to the light of day, and for all those who already paid for theirs should chargeback not be available.
Official who oversees whistleblower complaints files one of his own
For the vast majority of proofs you are exactly right. There are some exceptions, though, since you don't necessarily have a choice principle, even under a double negation translation. This is why you need Markov's priniciple in addition to the double negation transform to give a constructive intrepretation to proofs from classical analysis.

You could rewrite this proof using some results from point set topology which typically require choice (the article even gives an outline on how to do this, weirdly enough). This rewritten proof would be non-constructive in a more precise sense, in that you couldn't translate it step-by-step.
What's the point of having a phone then?
https://en.wikipedia.org/wiki/Steganography
Twitter warns that advertiser demand is falling and the stock is crashing
Is there a reason why "Indian" was added to the headline? I don't think color makes a hacker any different...does it?
> some people perceive similarities in Apple's approach to what you just described re: "Cults sell [a lifestyle usually based on lies and manipulation]"

Marketing involves manipulation. Despite being good at marketing, I don't see evidence that Apple resorts to lying more than other companies. More often, the "cult of Apple" label is directed at avid customers who are particularly enthusiastic about Apple's products, and its used pejoratively by people who don't share or understand their enthusiasm.

But it's metaphor, and it doesn't mean Apple or its fans are an actual cult.
Because the radar is at headlight level, and the truck had a lot of ground clearance.
The new number crushing Twitter: revenue growth down 60% to 20%
Robotic Onesie Assists Babies at Risk for Cerebral Palsy
>if you need to try that hard

Do people who program in their spare time usually work 18 hour days?
iPhone, iPad and Mac sales are down, but Apple only cares about services now
You have to be logged in, and have previously been a member of the UnrealEngine repo... I think.
> Additionally, since powered items like anti-lock brakes are now unavailable

Are they unavailable? Electric cars have a main traction battery plus the conventional 12V battery that all cars have.
Not true. Ferraris are designed to be a car they are not designed as a store of value. Ferraris are a tangible item with value inherent.

Dollars are designed to store value. Without that value being assigned that paper is valueless

Gold has historically been a store of value. Gold is a tangible item whose value cannot ever be valueless. ( especially now that there is TiAu )
There are only 38bn USD banknotes (not dollars, banknotes) in circulation. That's very few. https://www.federalreserve.gov/paymentsystems/coin_currcircv...

...and 15bn EUR banknotes. If you think about it, they all have a serial number and it's easy to track them with a mere bigdata database. Most banknotes change hands only once before being registered in a bank again. The others are all suspicious. Keeping your money for a few months? Not a crime by itself but in most situations it's linked with laundering. Withdrawing every week from your ATM and cashed by the same drug dealer? They probably won't scream it over the roofs, but the FBI probably already uses this technique to track criminals.

If you think it's hard to track patterns in banknotes, it's ok, but it's less hard than tracking every single CB transaction across the world.
Yes, participation is a difficult thing to ensure in a democracy, and even more so when it's online. A few years ago, I was a member of the German pirate party. We tried to implement "liquid democracy", using Liquid Feedback. It allows every party member to vote on anything or delegate their votes (based on categories, subcategories or single initiatives) to any other voter, and change those delegations at any time.

Because of the known security problems with digital voting systems, the system was supposed to work only as a tool to form opinions. Initiatives were then put to final vote in real-life assemblies, where everyone was allowed to participate. We didn't have any "classical" delegates.

Both of these steps posed their challenges in participation:

- Liquid Feedback was not the easies tool to understand and use. For non-technical people, it was quite the challenge. And of course, a computer in the first place.

- Full member real-life assemblies, particularly on a national level, require time and money for travel, accommodation etc. Because we didn't have "real" delegates, if you couldn't afford to go, you were out.

There were some suggestions to overcome these issues (like a "permanent assembly" which would work by postal -snail mail- vote), but that never came to pass. (Or at least I think it didn't, I moved out of the country since then and don't follow that closely anymore.)
My question is that with 10 trillion dollars in bonds that the lender now has to pay in order to lend to the Swiss / US / Japanese governments, just how good does the likely return on startups have to be to get some of that money re-investing?

Or is it simply that with wars, elections, terrorism and Brexit, everyone is scared?
> Yes. I regularly fly in planes, which I have no control over, and which spend most of their time on autopilot.

Those planes with their auto-pilot system still have a means for the pilots to intervene. That's not quite the same as being in a vehicle for which no human has the possibility of intervening. (It's also a bit disingenuous to imply that it is.)
It is fairly easy to introduce a proxy for IPv4 only networks. Like a NAT gateway, but even easier since you can do this at the application level (and get real firewalling).
Apple Earnings Fall on iPhone Slump
The curious case of the very lazy, but blazingly fast, JSON parser
More like set of worst practices. You have some API exposed in plenty of
endpoints instead of one, and on top of that you embed one of the call
arguments in the URL itself.

And no, it doesn't make designing API easier if you preallocate "read",
"create", and "delete" operations to separate HTTP methods, and then put
all the other operations in POST. "Create" and "delete" in many cases don't
even make any sense to guarantee their being specially distinguished.

And you say that RPC can be used under REST. Do you have any example of
a REST client library that actually can do that? It's the first time I ever
hear about this way. Almost everybody else uses REST like an underspecified
RPC protocol, cramming call request into an ad-hoc JSON structure to HTTP POST
and mixing error reporting from transport layer and from application.
I like website which distinguish between GET (navigation only) and POST (state changing) buttons by style. For example, ghost buttons for GET and colored for POST.
> Rectangular shaped buttons have been introduced into the digital world a long time ago and users are familiar with them. Some research suggests that rounded corners enhance information processing and draw our eyes to the center of the element.

I found this bit pretty interesting, and anecdotally correct. It took me a while to figure out how to compose an email in Android's Gmail client when they made that button a circle. I still find myself looking for it a bit too long sometimes.
404 note: You have to be logged in, and have previously been a member of the UnrealEngine repo to see this and not get a 404... I think.

I also saw this a while ago as southclaw says. There were also a few other repo's I got email notifications from Github about my having been automatically subscribed. I figured the first of today was a copycat of the one a while ago. I was surprised more people didn't do it then. The later ones today also seemed to be copycats of the first one today.

Not sure how Github should solve this, but they should solve this.

Edit (22:45 BST): It also now looks like teardemon has deleted his Github account. https://github.com/teardemon/ Best to look at Null-Set's screenshot http://imgur.com/a/yVjAM
Elevator Hacking: From the Pit to the Penthouse
It makes a difference because insurance companies don't have unlimited ability (even collectively) to set prices, since there if an alternative that they don't control.
Dane Flanigan's Entrepreneur Origins Interview Sean Tsai
My takeaway from the article is whether Tesla has any defendable technology advantage?

All of its major competitors have existing lines of business they can amortize investment across as well as large dealership networks they can sell into with minimal investment.

If Tesla doesn't have a technology advantage it can defend, then it's going to be in trouble.
It would have been interesting if they had substituted "business people" or "corporations" for "scientists" is some of the surveys to see if makes a substantial difference in the perceived level of trust.
Except it's infinitely easier to slightly drag your hands on the trackpad your fingers are already on, than to glance over at the side of a window, identify a scroll bar, and glance back to the content you were viewing.
I think there are regional differences to be accounted for. NY VS SF Bay may actually be more similar then, say somewhere in alabama or ohio. And I suspect things are very different in the UK, though probably not as much as in eastern europe, south america, or asia.

So I think you should quantify your question. Otherwise expect a fair bit of bias based on the locality of the commenter.
On OS X, it is set in the system network preference pane. Click a connection, then Advanced..., then Proxies, and there's a service listed called "Automatic Proxy Discovery" that you can enable if you want it (it is disabled by default.)
DI is great; DI isn't the problem at all. It's rather the fact that Angular baked in a DI implementation that doesn't play well with either static analysis tools or module loaders. I'm not even criticizing the creators of Angular; they did something that made sense at the time and worked, in its way. It's just that Angular DI is icky and I hope to never have to deal with it again.
This isn't really surprising, they haven't really done anything yet to make themselves more attractive. One can hope that they have something in the pipe. Though, even if their revenue growth is slowing, they can pull profit out. That could allow them to take their time to pull themselves back together.
If this sort of thing becomes common enough at the local-/start-level, I can see it becoming a legal battlefield for the companies that stand to benefit from driverless cars.
It's been a long time since I took my EE classes, but I was under the impression that the problem with EMP was that it induced large spikes in places beyond what is protected by lightning strikes.
Show HN: Helping people better visualise colour palettes
"we would prefer to follow in this round, rather than lead it."

There are some legal reasons for this if it's a down round. If the initial investment is in one fund, and there's a down round in another, they need someone else to drive pricing so that it doesn't look like they're favoring one fund at the expense of the other. (I'm not sure why this isn't an issue during an up round)