skysight-inc/HackerNews huggingface dataset:
There is a big difference between selling out Americans to be replaced by foreigners whether H1-B as in Disney, Silicon Valley, and Wall Street or illegal immigrants replacing working class American jobs and depressing working class jobs and what Trump is doing now with Wall Street.

If Trump were truly bought off by Goldman, he certainly would not be behind legislation that fixes the broken H1-B Visa system. Goldman, Wall Street, Silicon Valley and other firms will have to start paying market wages instead of depressed wages because of the H1-B Visa reform.
I like drawings in this article
Would you care to explain why?
> What do you gain by having no fundamental datatypes, only bits?

I'd say what you gain is reusability, mostly. When you impose a datatype on data, it comes with a series of constraints and expectations, so you can only use the data in the ways prescribed by its type.

If the data doesn't have attached a type of is own, you can use it in different ways at different contexts - this can be valuable for data transformation processes, such as compilation or system interfaces. I suppose you could get the same effect by casting the data to a new type when you change it to a new context.

I've read a bunch about applying semiotics theory to programming, and changing the meaning of the symbols "on the go" is closer to the way we think (inferring meanings from the signs adequate to the current context) than the old mathematical approach of "every datum has one well-defined type, and only one".
Every time the topic comes up, I wonder how many of the HN'ers who are cross at H-1B workers because they are depressing wages are intellectually consistent (and honest) enough to accept that this position is part and parcel of the same system of nationalist thought that leads to a wall to Mexico and steeply increased tariffs on chinese import; of "America First"?

If you find yourself reconciling the idea of protecting against wage competition from H-1Bs, but are in favour of continued undocumented immigration from Mexico (or at least opposed to taking any substantial measures against it), in favour of NAFTA remaining in place and in favour of continued trade with China under current conditions, I'd be very interested in understanding how you model that?

(There is also a critique around the specific rules of H-1B being unfair to the worker, mostly around restrictions on changing employers. I agree with most of that and don't think it inherently incompatible with other views on immigration and trade, pro or con.)
It is a rather sticky point.

Likewise though, the OPs "people wailing about how shit everything is" are pretty unusual. Mostly what you hear are different people dissatisfied with different things. If you choose to aggregate this in your mind to some abstract "person" you get an odd picture of what is going on.
Although you don't deserve an reply for your rudeness. Let's say I can get into a position and make some good work and it counts (good, is not it?). Let's say you think you can also make something meaningful and even better and you are currently not in the position to currently make it count for anybody (why then disrespect others people work?). This is something you are lacking: respect.
So how much were you paying him? (Last week?) there was an article about someone trying to double the H1B minimum wage to $140k; surely if this physicist is as important as you say he is, you were compensating him around that figure, no?
Wouldn't he just be replaced with some "abolish the FCC" know-nothing?
I get really tired of the voluntary blind spot people adopt about this. Legalization is happening for medicinal reasons, and for economic/justice reasons. Not because people everywhere decided it's good for you recreationally. It's not this binary thing where all of a sudden it's the same as, like, knitting as a hobby. Growing it also doesn't inhabit the same moral space as growing wine grapes in your back yard, or even brewing beer in your garage.
It's not designed to "beat" you. Casinos are entertainment venues, not banks. One of the main selling points of casinos is the thrill you get from potentially winning a lot of money. You pay for the fun in form of the slight loss of edge in the long run odds.

No one goes in a movie theater and complain that it's "beating" you because you come out with a net negative balance
Announcing Apache Flink 1.2.0
The moment it becomes a law, it should become a work of the Federal Government. If they draft it as a law, and it becomes a law, it should enter the standard of non-copyrightable public works (as we see on wikipedia for many releases from the federal government).

We're also ignoring something really troubling in this entire situation: the fact that private entities and lobbyists are drafting so much of our legislation (typically for their benefit). Sure there are some things like safety standards that I can see as best being worked on by several trade groups, but there is a considerable about of legislation drafted by banks, security firms and defense contractors that directly benefits those industries at the expense of the people.

Let's not forget the 2008 financial crisis, that was created by much of this type of legislation. Many of those banks committed outright fraud:

https://www.youtube.com/watch?v=6khYSTqHrqM

..and none of those people from the bottom to the top, have never been charged with crimes. As they write more laws, they make the types of corruption they often engage in, legal.
How is it not? You want to show HN something you did to get feedback on it. Seems within the spirit on "Show HN" IMO.

For instance I've posted a library I wrote on HN which gave me some good feedback to act on. If I had waited until someone else posted it for feedback it likely would have never happened.
Data-flow is a dashboard tool for testing and monitoring every website you manage.

All in one place. It combines the power of real-time monitoring and testing features in a simple dashboard, featuring monitoring, performance, stats and more.
The design of regular expressions is different than any other version from any other language to improve readability along with other improvements.

In Perl 6 regexes are seen as a type of method (that is they are literally implemented as a type of method in Rakudo)

Grammars tend to look like a cross between BNF, and well Perl. https://stackoverflow.com/a/41770672/1337

Perl 6 regexes have longest term matching using |, or sequential matching like Perl 5 using ||.

Since regexes are methods, they can take arguments as well.
You do realize that half of the reason this post is noteworthy is because it's so out of the ordinary that The Huffington Post agrees with Trump right?
How a mechanical watch works
Note that MongoDB clarified their understanding of AGPL in no uncertain terms [0] so they would have trouble dragging someone who developed apps using their DB to court and demanding opensourcing of the app. Without such clarification from their side we would never have touched MongoDB.

[0] https://www.mongodb.com/blog/post/the-agpl
Horizon will be joining under RethinkDB's aegis at The Linux Foundation: a new community-driven release is in the works.
Hidden Blue Hazard? LED Lighting and Retinal Damage in Rats
NeXT's usage of BSD predates BSD being available under any open source license, and as such macOS/iOS's use of it seems like a direct consequence of that rather than it being under a non-left license.
Noise cancelling headphones work much better and are much easier to do than room level noise-cancellation.

Why? Well, the whole point of noise-cancellation is to create an interference pattern in your ear, that is as similar as possible to the noise in your ear.

The farther you get from your ear that becomes harder, because of the room's acoustics, because of latency, because of the fact your head is moving, etc. And we see that in the results of room level noise cancellation attempts in the past.
In this narrow case, I believe there may be a claim that those bits are not “Internet” service. They are private network traffic, within their respective networks.
The optimist glass is full of "nice to have" other than the Hep-C pharma which is the only "must have".

The pessimist glass is full of "must have" like pay kids college, pay for health care, purchase roof over head, purchase car or alternative transport. And those trends are not looking good.

This is aside from negative technologies. Military drones. Mass surveillance. Social media. Fake news. Corn syrup. Industrialized heavily processed food in general.

And of course technologies that are on the bubble. The net result of fast food drive thru as a technology is likely negative, although superficially what could possibly go wrong with food that's fast?

I've noticed over decades in the field that providing more automation to businesses sometimes results in more complicated systems rather than more productive systems. Probably the small number of failures being more memorable than the larger number of successes... An ever more complicated culture is not necessarily better, but it is certainly more brittle and prone to collapse.
It absolutely is exaggerated. I left a job at a real money slot manufacturer 3-ish years ago where I was a mathematician and 'the rng guy'. Even then our machines weren't susceptible to this attack. We had a fix. And by 'weren't susceptible' I mean probably weren't but could be, because getting the rng wrong is super easy to do. Don't be shocked if regulators just pull these from the floor. They probably had to go through a lot of different machines from different manufacturers to find this in the first place.
Because I was under the impression Show HN was for projects you had worked on. Blog posts aren't projects.
classic mistake
The real question is, why FSF isn't stepping up and resolving this issue once and for good?

They must've heard about the problem. Why won't they make a statement about intended reading of AGPLv3 and publish AGPLv4 that has improved wording that avoids any possible ambiguities?
Pg 124 from 2nd edition where this code is pulled (emphasis mine):

"[T]he programs are intended to be illustrative, not bullet-proof, there are significant restrictions on dcl."

In context this code illustrates the points they're trying to convey about complicated declarations quite well and is a precursor to understanding typedef later in the book.

Also, you left the nice inline comments off the variable declaration block.
Ask HN: Which is the most useful programming language?
So they got fined for doing what essentially every internet company is doing? It's a good start, but I'm afraid it won't go nearly far enough.
I think the title (the English version, at least) is supposed to evoke both meanings.
Nothing about that is a physical limitation of linking computers. That's a limitation of a specific type of linking computers. There is nothing that says people couldn't lay cable down on the Atlanitc to cross the pond. Nothing about that has to do with the concept of the network being made up of linked computers. That has everything to do with how they are linked.
Interesting, I've always been curious if it doesn't make sense to have a clear unit with some sort of cover and LEDs to "top up" the natural sunlight in northern locations during winter. Not sure if it just ends up being the angle makes the spectrum useless... but always seems like the completely enclosed environments are throwing away a lot of free energy.
can we update the title to reflect what the condition actually is?

Green tea compound may halt molecular cause of often-fatal multiple myeloma
Nobody is saying hydrogen is free. Nor will the production of ammonia from compounds we have in abundance (i.e. water, air and rock) ever produce energy, as it's a high energy compound, releasing quite a bit of energy when combusted. But that is absolutely not what this is about.

However, I was refuting the GP's wrong assertion that the energy cost equation of this reaction shows that it cannot be a net energy producer.

It makes sense to optimize this step, because the energy equation shows the energy is just wasted as heat, as it's not contained in the compound itself.
It isn't freedom to use unconditionally. It's freedom to use if you do same as we did for you.
>Keep in mind that you'd need to drink about 1 gallon of green tea every day (which would cause nausea and pain)

I might not drink a gallon but I get close. If you find you get nauseous after a couple of cups of tea (green tea especially) your probably brewing the tea too hot or for too long. Overdoing ether will let tasty bitter tasting ND nauseating componds to leach. 170F deg is about perfect for most green teas. Higher for blacks.
The idea is that they are self-driving flying cars, so consumers don't need training.

While the physics of flight are more complex than driving, the environment is far less complex (straight-line between points, few obstacles along the way). Flight is better suited to automation, and in fact we already have very reliable autopilots and computer-enhanced airplanes.

That said, I think the fuel costs of flying mean it will never be competitive with driving, based on cost.
Acquisitions, Expansions, Contractions and Departures
Whoops, broken link! Posting is at http://tinyurl.com/blinksec2
Incredible news. I was certain this kind of relicensing would be impossible. Congrats to the community.
Protecting against wage competition for H-1Bs: More money for me (U.S. citizen / permanent resident tech worker).

In favor of free trade: Cheaper goods for me.

It all boils down to "which collection of policies help me maximize my stuff?" Most people seem to take a more pragmatic approach, valuing tangible things over intellectual consistency.
Private and public debt bubbles? There's no actual debt or deficit being incurred - it's just using money to pay for goods. We might as well worry that we have a trade deficit with the corner store, or our employer might worry that they have a trade deficit with us. "Trade deficits" are orthogonal to actual debt.

And they don't cause unemployment, they just change the composition of employment. Now, if a country resolutely insists on hampering its own economy with cartels and bizarre regulation, then yes, "trade deficits" can reveal some of those weaknesses more prominently, but they were already there.

Trade deficits are just a mercantilist phantom, conjured up by counting physical goods crossing a border, carefully not counting services and capital investment, and then claiming that wealth is being "drained". It's like measuring evaporation from a lake (exports), ignoring any and all precipitation (payment for exports), and then claiming that the lake is running dry, without actually measuring the water level (per capita income).

"Trade deficits" pretty much always comes down to "foreigners sell us things at a low price, therefore we need to fight them/restrict investment in our economy/make things more expensive for our own consumers". It's never been an actual problem.
Nothing to hide, huh
> I was spoiled back in Seattle with my 1gbps for 80 a month.

Before anyone gets excited, this is only available in a limited set of neighborhoods (CenturyLink fiber) or upscale apartments (CondoInternet or whatever their new name is).
RethinkDB pushes well past 15 nodes: teams have demonstrated north of 25-30 nodes with linear scale.
I always find it funny how they test Green, Black, White or Oolong Teas separately. All teas (Not herbal infusions) are all from the same plant, Camellia sinensis. The only difference is when they are picked and for black tea they are oxidized.

The only thing chemistry I have found is caffeine levels. The old belief was the highest Black and the lowest was White. This has proven to be untrue.

Pill form would equal KIDNEY STONES if they contained the leaf. Tea leafs are one of the highest in oxalates (Causes most kidney stones) but tea is low/moderate in oxalates.
That's correct, the guidelines explicitly call out blog posts as something that should not be a Show HN:

https://news.ycombinator.com/showhn.html
Two problems with that analysis. The first is CFL are not LED. The second, vegetables are not as fungible as you suggest.
Anecdotes allowed here?

Former GrubHub employee here.

When you tip with your credit card when ordering through grubhub, 99% of the time it goes to grubhub and it never reaches the driver. Grubhub guarantees a hourly wage, but to keep your tips that you have to earn more then your hourly rate. This means the driver won't receive any tips until he/she makes themselves free for grubhub. Pretty ingenious IMO, make the driver a contractor so you don't pay payroll tax, and the drivers basically work to make themselves free for you to hire.

It's not that I want the tips, I really do think tipping is a horrendous system and it is "my fault" for signing up to work for them (I was incredibly desperate for money). I just feel it is disingenuous to call it a tip when it should be called a "please pay my driver's hourly wage for me" fund. I know that is basically what a tip is, but when someone tips me very well I have this sick feeling in my stomach because they wanted it to go to me not grubhub. That is why I'm leaving grubhub.

I'll break it down for you guys how it works because I was confused for a long while about how it works (which is probably by design).

You work 8 hours for grubhub. For brevity, lets assume in your area grubhub pays $10 a hour, the mileage they pay you is 25 cents a mile (from restaurant to customer only, you don't get anything driving to restaurant) and the delivery fee is $2. You deliver 10 deliveries during that time, your (payable) mileage is 40 miles:

You worked 8 hours, so your hourly wage is $80. Now lets see how much in tips you need to make before you can start keeping your tips!

Delivery fees - $20 Mileage - $10

You would need to make $50 in tips to start actually getting your tips.

Now I'm getting a new pizza delivery job where the hourly rate is a couple bucks an hour lower, so my hourly rate in this example would be $8, so while I would only make $64 dollars from my hourly rate, I get to keep my delivery fees, mileage, and tips on top of that.

The Grubhub I worked for spreads the work around so that people earn the minimum hourly rate. Why wouldn't they? it lowers their labor costs to near zero.

If you have to use grubhub tip in cash, or better yet just don't tip. I don't care I am making the minimum hourly rate 99% of the time. If grubhub can't survive without the credit card tips customers intended to go to the driver it shouldn't be around.

P.S.: I'll say again I understood that I signed a contract so grubhub can do whatever it wants. I understand I got a few dollars more over the minimum wage (as if it was worth giving up all that tip money). This entire post was about informing people the deception involved around the credit card tips. If grubhub stands by their practices, then spreading this information around won't hurt their business.
More like learning rate decay. Learning rate is now zero.
Gerd Gigerenzer is the author you want for looking at overfit in human beings. Sworn life enemy of the Kahneman and Tversky collaboration, and vice versa(Kahneman actually put in a few disses in his Nobel prize ceremony aimed pretty much at him...).
https://news.ycombinator.com/showhn.html

> Show HN is for something you've made that other people can play with.

> Blog posts, sign-up pages, and fundraisers can't be tried out, so they can't be Show HNs.
Ah I never noticed that. Yeah that is quite nice but I expect 99% of other people don't notice it either.

I definitely think the defaults should have everything except the description at the top collapsed.
Sort of maybe. It sounds like the slot machine makers are being cheap with their machines. There are such things as hardware RNG that will produce a truly random number, it's just that for most applications they're overkill. This seems like an instance where not only aren't they overkill, they're almost mandatory. They talk a bit about using encryption to protect the PRNG algorithm, but that's just a bandaid, at best it buys them a little bit of time, but ultimately it will be cracked the same way.

A hardware RNG is actually pretty cheap to make, there are actually open source (as in the circuit diagrams are available) ones floating around the internet that you can build for less than $20 worth of parts. The manufacturers probably don't want to go that far because a) compared to most of the parts in the machine it's a fairly expensive piece so it will cut into profits, b) hardware RNG function a bit different from a PRNG so properly integrating one requires a certain amount of skill, c) it isn't their problem really, they already got their money, it's the casinos that are losing, and d) it's simpler to just prosecute the handful of people doing this (for now).
Or you get TVs that last a lot less ;)
The language you know.
The latter, I imagine.
Node by the Numbers 2016
The other problem is that AFAIK the 10-year-long Green Card clock resets if they change jobs, so there's a strong incentive not to leave.
I believe the proposed solution to the H1B issue was to simply increase the minimum wage for H1B's to $140k. If a company is bringing over top-talent that is irreplaceable; surely that salary is justified. Otherwise, they probably don't need you as bad as they say they do.
One of the tricks Ive worked with, is practicing something slow and chunked three times in a row perfectly. If you fail you start over, I.e. you may play it perfectly twice, but third time you fail, you start over.

Then once you do a small chunked section slowly perfectly (say 8 measures), you then try at regular speed until you do it three times perfectly.

Then you try playing two chunks (say 16 measures) the same way, constantly building.

For reference, I had a full ride to multiple universities for my music. So at least for me it worked well this way.
So your theory is that lack of political buy-in from the populace, exacerbated by our access to technology and thus free information?

If that is the case, again, I contest that the real issue was fighting an unwinnable war for no real reason. Having a true, blue enemy to fight is an important difference. A war with China would be a Nazi Germany situation, whereas Iraq / Afghanistan were clearly a Vietnam.
Ask HN: Is openssl enc a good choice for file encryption?
I recently read a blog post[1] where the author shows how to use openssl to encrypt a file that will be uploaded to an untrusted third-party.

The encryption process is as follows:

# Generate RSA key pair

openssl genrsa -out backup_key.priv.pem 4096
openssl rsa -in backup_key.priv.pem -out backup_key.pub.pem -outform PEM -pubout

# Encrypt the private key (need to enter a password)

openssl enc -aes-256-cbc -in backup_key.priv.pem -out backup_key.priv.pem.enc
rm backup_key.priv.pem

# Encrypt backup file

openssl rand 64 | tee >(openssl enc -aes-256-cbc -salt -pass stdin -in backup.tar.gz
-out backup.tar.gz.enc) |
openssl rsautl -encrypt -pubin -inkey backup_key.pub.pem -out backup.tar.gz-aeskey.enc

I'm not a cryptographer, but knowing that openssl has suffered from numerous vulnerabilities I decided to google `openssl enc` to get a sense of its security. After reading:

"if you use `openssl enc`, make sure your password has high entropy"[2]

"it looks like openssl enc is still using a very weak KDF"[3]

"The commandline utilities in general are fairly minimal wrappers around functionality in libssl and libcrypto, and if you want something complete, polished, convenient, etc. the idea is you should either modify or replace them"[4]

I'm left wondering if using openssl for file encryption is a good choice if security is paramount.

Can crypto experts please comment. Thanks in advance.

[1]: https://summitroute.com/blog/2016/12/25/creating_disaster_recovery_backups/

[2]: https://security.stackexchange.com/a/29139

[3]: https://security.stackexchange.com/questions/29106/openssl-recover-key-and-iv-by-passphrase#comment202222_29139

[4]: https://security.stackexchange.com/a/129067
Google fixes a problem with AMP, lets you view and share publisher’s own links