skysight-inc/HackerNews huggingface dataset:
"Have you ever paid a toll booth without slowing down?", and then he slides his credit card through a thing in his car!!! :-D :-D

I mean, they got the prediction right, but their implementation is so so wrong!
> Bad ads ruin it for Google.

That might be why someone proposed it. But your parent comment mentions why management approved of the risky move:

> They are trying to put "competing internet ad companies" out of business.
Project wonderful ads are a competitor to Google ads, and are, imo, vastly superior to some sorta of ads which I believe (?) are Google ads.
High-Performance Run-Time Mathematical Expression Parsing Engine
`typeof()` is a common compiler extension, not standard C. (C++11 irritatingly standardized it as `decltype()`).
I see a case of clueless police here, not the "evil police". They don't apply excessive force and are generally respectful. They execute dumb instructions the best they can; what they don't know is that for this particular child the experience could be 100x more traumatic than for a neuro-typical child, and this child shouldn't have been arrested in the first place, even if he misbehaved.

Instead of blaming police I would see this is an opportunity to educate everyone on the autism and how to properly deal with it. Especially given the fact that April is the National Autism Awareness month.

People talk about diversity and inclusion a lot, in the context of gender or race or anything; I have never heard "diversity specialists" talk about neuro-diversity even though this impact major part of the population. This has to change.
For a software engineer who has never done anything with FPGAs or embedded devices but is interested in learning, do you know of any good resources?
I guess it's a matter of opinion. If a university had some prime real estate, they could sell it to the highest bidder so that they could build a shopping mall, or they could donate it to a non-profit that would improve society in some way, thereby fulfilling their mission, to improve society. Or they could just cash out and getting more money could arguably improve society in a less tangible, less measurable way.

Universities are uniquely positioned to not be constrained by market forces. Part of the reason that universities get privileged access to things, is because they are seen as working in the public interest. Government and business and wealthy donors throw money at universities, because they want to see innovation and public good come from it.

Maybe that's idealistic of me, and universities are just a kind of business, and only that. MIT already gives the public free hosting, with an externally routable, unfirewalled ip4 or ip6 address, to anyone who comes on campus. I don't think any other universities in the world do that. And MIT does this at great expense. (this is how Aaron Schwarz was able to download so much of JSTOR)

It makes no financial sense for MIT to be doing this. Perhaps they should lock down their network as much as possible, and probably outsource it's management.
"I wasn't referring to the specifics, but to the point that every programming language seems to have quirks and hidden rules."
Hmm, interesting. There was a pond in front of the office at Denver which was created when construction diverted some of the Platte river, and it had 3 or 4 fish 'stuck' in it. In the winter the water froze solid and I walked over and saw one of the fish sitting there frozen in the ice. I was tempted to try to chip it out but it was too deep and the ice too hard. About 3 weeks later the ice melted and the fish was swimming around again. It was pretty amazing to see.
> Also, you're COMPLETELY wrong about Jews having a level playing field prior to the 17th century. Jews were prohibited from nearly every trade in the middle ages.

I said in the 19th-20th century. You have trouble reading my answers because you have a prejudiced mind. I never said prior to 17th century. So do not twist my answers to your liking (First you changed from "Jews" to "Jewish ancestry" after calling you out on your ridiculous comparison between Indians and Jews and now this). Jews had 3 centuries (starting from 17th century) to adapt and learn all the best things in various fields. Be it science, arts, philosophy etc. Indians have had only 70 years. This is a hard fact and no one can deny this.

> That is truly repulsive, man. I'm not sure why you have such a wet dream about being the smartest and most successful race/ethnicity/whatever, but I want nothing to do with it. It's honestly really off-putting.

We aren't. I'm clearly telling you that we had only 70 years to get to where we are today and we'll need 2-3 centuries more to make it (which is clearly why I said future generations 2-3 centuries from now). And I'm proud of it. It's repulsive to your prejudiced mind that's not my problem. I'm glad that my comments are off-putting to bigots.
Shallow equality is not a panacea -- it doesn't avoid updates when the content is the same, something which can easily happen.

For example, say you have an action that fetches a bunch of blog posts, then refetches later. If all the items are identical since the last fetch, you want to avoid rendering. So that means that whenever you deal with data updates, de-duplication has to occur at some point, preferably early on in the data layer when the surface area is minimal.

That de-duplication would need to "intern" data; i.e. if you fetch the new blog posts, check each of them if they are exactly the same as what's already cached (time stamps or version numbers could be used to save deep equality checks), and keep the existing object if that's the case.

Of course, you will still end up with lots of identical objects (different identity, but same content) purely because mutations generate them. For example, a user goes to a text field, types a character and then hits backspace. Now you've produced three different objects: version 0 (original data), version 1 (character added), version 2 (identical to v0, different identity). This will correctly re-render each version, of course. But let's say you had some other component (like a preview) that only updated every second. It would receive v0, v1, v2; at this point the delta of v2-v0 is zero, and there's no need to re-render; but a shallow equality check would cause it to. So de-duping needs to be built into all sorts of places you might not anticipate.
Comcast Connects Directly with IBM Cloud Services
Cycling to work can cut cancer and heart disease, says study
Since Republic is contracting for United, United is probably liable under vicarious liability principles anyway, so conspiracy theories about why they don't try to deflect blame aren't really needed.
Ditto actually.

I mean, ultimately that's what Eve Online is, a massive TW2002 "clone". Only everything made better.

I think the problem with an economic system is you need enough people to do it properly, or you have to figure out some kind of 'fake' where it can be dynamic enough for the concept of cross-space trading work, but also not be entirely unrealistic.

I did learn a lot about event-driven programming, state machines, and the telnet protocol however.
I ran a BBS back in the 90s called The Game BBS, it was hosted out of my bedroom in Colorado. I'd love to find an old backup, but I doubt I have one.
Well, it's not entirely efficient allocation, if you take the daring leap to assume that rents in certain areas are not totally subject to free market forces. I know a number of people who suggest they take home more by working in the Midwest metros than they would in equivalent jobs in the West Coast hubs.

It's possible that living in a high cost West Coast metro area is itself some sort of benefit, or at least better in ways we can't deduce by salary means alone. One alternative would be to keep the existing lottery system, and simply allow visa holders more latitude to switch employers. At which point any firms flooding the lottery with underpaid and underqualified applicants would see themselves out the door.
while (foo.firstChild)
foo.removeChild(foo.firstChild);

Let's assume that there are 100 children. So we will have
5000 a[i] = a[i-1] operations in total. This is really nothing for modern CPU.

But I agree that even this is not good.

That's why I have Element.clear() and Element.prepend|append|insert([array of nodes]) methods.

As in any case calling of DOM method (as any other function ins script) is comparable to 100 of a[i] = a[i-1] in native code.

I mean that such O(N) problems are better to be solved by specialized native functions.
Tips on moving to USA from Canada
FLT is Fairlight and RZR should be Razor, but I can't remember what the last three were. Oh god the nostalgia.
I wrote a thing in Turbo Pascal that would convert Prodoor (Proboard) mailbox files to RBBS mailboxes. Or the other way around, I can't remember, but not both directions I don't think. Anyway, I uploaded it to several boards back then I think someone who was a retired Navy officer used it on their own board. I also think the Prodoor people may have used several of the ideas possibly, but in all the archives of BBS software, I haven't been able to find it. Oh well! Turbo Pascal was so much fun, and reading the RBBS source was a great education at the time when long distance phone calls were expensive.
Üo – innovative 360° scooter that rides on a ball – OUT NOW
>A few people dying horribly is a price the rest of us are willing to pay for that value.

Can you morons please extend that to the general case. Nobody enjoys being groped by the TSA.
Show HN: Scrabble
There are several kinds of bankruptcy. One is the kind you're thinking of, where whatever's left is divided up and given to creditors. Another provides a sort of time-out for the business to work its problems out without creditors hassling them. When a business "emerges" from bankruptcy it's a successful conclusion of that second kind.

There are more kinds.
Sadly, I've been going through a similar experience after several commenters indicated that my complaints seemed to refer to "old" JavaScript and encouraged me to try ES6.

Between ES6 fixing [0] many of the day-to-day warts that made JavaScript a joke language barely suitable for scripting DOM elements and V8's complete obliteration of other dynamic VMs in speed, I am being forced to accept that JavaScript is maturing into a serious platform, and starting to gradually introduce Node.js into my workflow.

Just today I was discussing how hard it is to pull the stick out of my butt regarding JavaScript, but I think that the evidence is in favor of it. I'm having a strong impulse to try to use Dart instead just so I don't feel as dirty anymore.

[0] http://es6-features.org
In other words, the RL system needs to acquire high order concepts (such as "climb the ladder" or "run from the bad guy"), and equipped with those it fares much better. The problem with learning abstract concepts is that they are combinations of combinations of low level features and it is exponentially hard to search for them in raw data. Humans inputting such concepts as "command phrase + reward in case the agent correctly executes the command" cut through the search space and help it learn to operate over the new concepts it learned.

Imagine how would you classify even a simple concept, such as "riding" - a human could be riding a horse, or a monkey could be riding an elephant, or there could be tons of other cases. Riding would be much simpler to detect if there is a classifier that selects "objects used for rides" and "agents that can ride" and the spatial relation between them - that would be a high order concept that we can't simply learn from images, we have to have preliminary abstractions that help in classifying it.

I think this is the future in AI - higher order concepts, based on compositions of previously known concepts. Both language and the physical world are made of objects and relations between objects, so it would be necessary to learn to combine concepts into new concepts, even when training data is very small. It would solve the problem of sharing knowledge between tasks. Another benefit would be the ease of inspecting the internal state of the system - which would be a graph of language based concepts, unlike the internal states of neural nets which are inscrutable. An agent that has higher order abstractions and an object-relations graph would also be programmable in plain language and capable of reasoning over facts - that would make AI accessible to the public at large.

Another way of putting it is that up until now, we used plain vectors, as if it was untyped data, but now we need to operate over strongly typed vectors with higher order operators. We need type theory into neural nets, to apply type constraints and to convert from one type to another, by applying operations. Such operations are hard to learn directly from labeled sets of images.
Silicon Valley's Manifest Destiny
That's just an excuse to say "all programming languages are hard"

Which is true, but ultimately useless
NES emulator that can rewind time with C, C#, Java, Lua and Python API
Ah, good to hear. Sorry it happened.

Since https://news.ycombinator.com/item?id=14144814 got locked (which, to provide context for anyone else reading, is why this reply is here in this thread) maybe you could repost it now.

FWIW, this idea in and of itself is worth spending a bit of time on. The page itself is very... basic right now, and I wouldn't discount that this may be one major reason why nobody is taking the concept seriously.

Which makes sense: nobody knows what your areas of specialty and experience are, what you're capable of, and all they've got is this very barebones page. Noone knows what to suggest for you to do!!

Spending some time on the page design and specifying the kinds of things you're capable of - and, most importantly, the things you're most interested in - might just turn things around a fair bit.

Thanks for the ping :) and hopefully you see this.

I note you have not yet put any contact info on that page :P (Gmail happily forwards, and Outlook (which forwards too) also has aliases)

My email is in my profile FWIW. You could also drop your username on the page and tell people to "find your email on HN". That could be a good filter.
Thanks for sharing. The documentation is well done, looking forward to checking out the code.
The default behavior for Node when there is an uncaught error is to crash the process, killing all requests in flight. Even if you go out of your way to stop this default behavior, errors still likely leave the process in an inconsistent state. Node can't just unwind a few stack frames like synchronous platforms.

Do you read JSON from ajax post bodies? Do you access fields in that JSON without sanity checking it? Try passing JSON that's missing one of those critical fields (as, say, a griefer might do). What happened to your app?
Male Copywriter
I see this whole event kind of like the Rosa Parks situation. I'm not comparing the magnitude of injustice, just that (a)There was an unjust system and (b)It took an individual to stick up for the just result, even though it was breaking the rules.

Also, the author is wrong in this passage:

From the article: "The gate agents offered offered $800 in airline scrip to anyone willing to deplane, which from past observation I think is the maximum that was allowed by United policy. That's an illegal cheapskate policy for which United fully deserves the condemnation it has received, and the fines it should be assessed for violating Department of Transportation regulations on denied boarding compensation. Obviously, the gate agents should have been allowed to offer more, and in cash, as Federal law requires. "

The truth:

The airline can try and get people to voluntary give up their seats with whatever method they would like. They can offer free kittens, cash, vouchers, etc. If no one accepts the airlines arbitrary amount, THEN DoT rules take effect, mandating the cash compensation amounts. So Dr Dao and the other 3 passengers that left the plane are entitled to a completely separate amount from what United offered.

From the DoT website[1]:

"DOT has not mandated the form or amount of compensation that airlines offer to volunteers. DOT does, however, require airlines to advise any volunteer whether he or she might be involuntarily bumped and, if that were to occur, the amount of compensation that would be due. Carriers can negotiate with their passengers for mutually acceptable compensation."

https://www.transportation.gov/airconsumer/fly-rights
Yes, it is 6.67%. That is literally the definition of a small fraction. And that is assuming a gross overestimate of 240k employees for Indian consulting firms in the US. Exact numbers are hard to get but here are some more facts: Infosys had a total of 23,594 employees in the US for 2016. TCS in 2012-13 had a total of only 21,830 employees outside India. With the two biggest H1B employers out of the way, I don't see how you're going to support your claim that there are 700k employees of Indian consulting firms on H1Bs in the US. It is simply not possible.

I have plenty of friends who work for Infosys and TCS. None of my friends even applied for a green card and they all went back to India after a couple of years here at the most. Many postings in the US at these companies last only 9-12 months. And neither TCS nor Infosys have any interest whatsoever in helping people immigrate to the US. (You need an employer to file a PERM application if you want a green card. A green card is required if you want to stay here more than 6 years.) That is the exact opposite of what they want to do.

The article you've mentioned says nothing about H1Bs. Outsourcing is not going to go away even if you eliminate H1Bs. And yes, all these articles making noise about this epidemic of H1Bs are in fact wrong. They're written by a bunch of poorly-informed Americans who wouldn't know the difference between an I-140 and an I-20. And their goal is to just generate clickbait to cater to nativist sentiment in the US. There's a lot of conservatives who emphatically don't want more Indians in this country. But they know they'll never win if they argue that they don't want Google and Microsoft employees here. So instead they've come up with this nonsense about Infosys and TCS stealing American jobs.
Don't think that's disingenuous, if that's what you're implying. Companies that have an exabyte of data usually know how much it's costing them to have it.
I would watch it with that "large talent pool". As is typical in the language du jour, there are tons of worthless imposters going around selling Node.js skills. However, it's even worse in the case of JavaScript because since it uses the "same language", some people assume that light front-end scripting qualifies as real backend development experience.

"Tons of modules" is also a misnomer, because a much larger than normal portion of these are low-quality, small, and/or poorly maintained. Just the way it goes in the age of GitHub, where everyone wants a badge of honor in their repo list.
Rather than blame the goon squad, you should blame the king for ordering them into action. Or, in this case, the subcontracting sheriff's deputy.

I think the more serious error here is the error you display: "people are asked/told to get off planes every day." That may be true, and maybe in most cases results in only a grumpy exit, but this situation seems to have exposed that it is not a legal requirement, and that people's generally co-operative nature has led to routine infringement of consumer's rights. Dr. Dao was not clearly obligated to exit the plane, and the justification for the "police"'s removal of him depends upon the now-questionable claim that they were okay to do so.

Certainly we are putting too much of a premium on peacefully resolving situations at the expense of fair treatment. Your story should start with whether Dr. Dao was, in fact, obligated to incur thousands of dollars in losses by being "randomly" selected to miss a work day on which an entire medical office depends, in exchange for 800 units of United scrip.
Eight visions of Facebook's future from its F8 conference
> That's vast exageration and it's sad people believe this common myth about China, lived there plenty of years and yes, it's common phenomenom, but so it's marriage out of love.

I'm quite familiar with China, the culture, people, and the situation on the ground. I stand by my claim. It's a serious problem, one that the government itself is addressing because they believe will lead to social instability. It's not a myth at all. It's a serious problem - it might be improving with youth in urban centers - because so many have no chance of realistically owning a house/car - but the overall mentality still very much prevails.

> Pretty much none of my foreign coworkers had house or car and married if they wanted (yes, some traditional parents were not happy about it, but it was usually more about being foreigner than wealth) and so did Chinese couples doing naked wedding.

Yes, foreigners don't need to have a house or car to get married to a local. They have other assets - like foreign citizenship - that make up the difference.

No offense, but you live in rarefied air in China. I don't think you really know about the situation facing the average Chinese person.

> I find personally this selfpity about how you are screwed if you are not making tons of moeny and havin great car and house a lame excuse, as if all girls living would be gold diggers, but I guess in this website where is maybe 98% readers men it sounds plausible in this echo chamber.

In China it's not about the gold-digging. It's just facing the realities of life on the ground: competitive society + single child families means you have to take care of your parents, so of course girls seek stability. This is natural and you find various elements of this in the west too.
Still better than any dynamically typed language (I mean any) where you always have to redeploy everything since none of these language support incremental compilation, let alone incremental reloading.
Agreed, but I was reiterating the author's (admittedly speculative) point here. It is interesting even if it's not conclusive; the incentive is at least there, if not the intention.

That said, I wouldn't call it a conspiracy theory. I'd call it shrewd business acumen. If the law permits you to reduce your costs using contracted third parties, you'll likely avail yourself of the opportunity when shareholders are demanding returns. It sounds sensational, but I think it's really quite mundane.
That just one example.

One element removal means invalidation of container's layout. That means you will need to relayout container. That is a scan of children again. And so on.
Red is only available to a minuscule fraction of the world population, namely United States, Australia, Mexico, New Zealand and South Korea.
Your view seems to be that some communities are allowed to prevent outsiders from working in the jurisdiction of those communities in order to accrue modest economic advantages for community members. It seems like communities that share local resources and markets do have this property and communities that share skin pigmentation do not.

Why?

Typically people belong to multiple communities, say family, city, state, world. What kinds of actions are permissible in order to secure modest economic advantages to each of the these communities? What if there is a dispute between the various jurisdictions. What if the "world community" votes overwhelmingly in favor of open borders? What if a NYC block (which is certainly a community that shares local resources and markets) votes to ban black people from living/working there? Why is this wrong but the American community banning Indians from working in America not?
If the RNG is truly random, then it must have a non-zero probability of failing any test for randomness that uses a finite sample of the RNG's output. For instance, the RNG could theoretically return a sequence of all the same number. You can't "fix" this.