skysight-inc/HackerNews huggingface dataset:
This is a place where local variable type inference really comes in handy for cutting down the noise of the type declarations.

var descendingTransactionsByValue = comparing(Transaction::getValue).reversed();
var groceries = transactions.filter(t -> t.getType() == Transaction.GROCERY);
var sortedGroceries = groceries.sorted(descendingTransactionsByValue);
var transactionids = sortedGroceries.map(Transaction::getId).collect(toList());

is much easier to understand
Quite. I strongly dislike sites that cram the article content into 1/3 of the screen, while the other 2/3 is taken up by ads and previews of "relevant" content. Reader mode may well be the best thing to come to Firefox in ages...
I hope the author realizes that it opens thing up further for phishing. As well, it presumes the security/privacy of the email account. There's no guarantee that the email is securely delivered, stored, and not snooped by a 3rd party.

After all, most people don't use GPG.
Ah, but smart does not mean worldly or wise - I chose my wording poorly for the sake of brevity. I know plenty of very intelligent people who are utter idiots!
> Why don't more people rail against rent control like they do airbnb?

I've seen more people -- on HN and in real life -- railing against rent control than against AirBnB.
>This study of more than 40,000 people, published in JAMA Internal Medicine, accounted for all other potential risk factors including total calories, overall diet quality, smoking, cholesterol, high blood pressure, obesity and alcohol.

How can a study that ignores physical activity possibly discover anything significant about heart disease?
It's easy to do this when you don't need to interact with the outside world and you don't even care about memory protection.
So basically SF wants companies like Airbnb to do their police/enforcement work for them.

Because it's the most cost-effective way of doing things, and -- in this ethically-challeneged startup culture of ours -- it gets the message across.

It's also no different from how regulations are applied to most all other industries in that regard. Liquor stores are required to card anyone who looks like they might possibly be under 21 (and are fined for not doing so). You can argue that the city "should be going after the underage drinkers themselves" -- but decades of empirical evidence suggest this would lead to the laws being widely unenforced.
"For me, in the general case empty big box stores in suburbia aren't worth much mental energy or expenditure of public resources."

If no one is taking over, I'd say it's definitely worth the public resources at least to tear it down.
PSA: Just upvote the poll up above, no need to add your comments in the comments below.

Comment: As a follow up, it would be interesting to see which framework people use within the language.
Doesn't Go fit these requirements?
This is literally all I was saying and people went on a downvote frenzy. People are literally saying that a encrypted output can NEVER be compressed. I was saying that it can (although not all the time!) and the gains would be minimal. Ive corrected the first post with the word 'may'
I found the NFC pairing feature to be pointless, tbh. The headphones still had to be put into pairing mode first, so the only step that it saved was going into settings on the phone and tapping the item in the list. It worked most of the time, but the one or two times that it didn't more than outweighed the benefits.
They'd probably do well to just fire their PR person.

No, it's not "the PR person" who's at fault.

One way or another, these decisions (and the mentality and ethos that drive them) always trickle down from the top.
Predicting the consumption of a scarce resource is extremely plausible, and there are many historical precedents. Predicting that interstellar travel will ever be in any way economically advantageous is probably unphysical. With travel time for messages taking decades and travel taking centuries, your "Human Empire" would be more along the lines of "Human-descended collection of exceptionally bad pen-pals". The speed of light and the tyrannies of the rocket equation don't really allow for anything else.
Even if the entire world switched over to fusion power and efficiently recovered Helium from it that still wouldn't meet worldwide Helium demand.
A particularly off-the-wall paper proposed firing a lot of X-ray lasers simultaneously into the same point to generate black holes. Photons being bosons, all you need is several million tons mass-energy equivalent occupying the same few cubic femtometers...
> Why would we do something that benefits far away humans over something that benefits nearby humans? Don't help those foreigners (or people in NY)! Build a wall! Trump 2016! (Same idea, just directed at a slightly different target.)

You've misunderstood his sentence. He's not saying that we should prefer fixing things locally to fixing things globally. He's asking why we should believe that the tech elite can improve life on a global scale when they can't even improve it on a local scale.
I use Symfony and love it.
Whoops! Sorry, my bad! Thanks for catching my mistake!
I use PHP for a long time. But now I see Python and JavaScript are the most used languages. I just wonder which one of them will be a true choise after PHP?
Sugar substitutes are generally hundreds of times sweeter than the sugar they replace so they wouldn't even be a blip on the composition by mass. This is why cans of diet coke float in water but cans of regular coke sink.
To stay with the metaphors, what if the hunters at some point decide to break off and make their own tribe? The other members of the tribe will be forced to join the new tribe, because they wouldn't be able to survive on their own.

Similarly, my fear is that a world in which a few elites provide everything for a large "idle class", people of that idle class would have no practical rights against that elite.

I agree with you that the current "work ideology" won't be usable in the future and in fact seems contradictory. However, I think seeing centralisation as the solution could lead to an even worse society.
This means I CAN make my whole life about it?!?! YAY!!!!
I think that America's anti-terrorism efforts are insufficiently discriminatory (in the sense that they're indiscriminate, not that they're racially discriminatory (which they also are, but for obvious and probably defensible reasons)) when selecting targets. We're probably doing more harm than good by driving innocents caught in the crossfire into the arms of the very anti-American organizations we meant to target.
If I eat a bowl of cereal, even unsweetened, I am ravenous and unproductive 2 hours later. On the other hand if I have 4-5 eggs or tin of sardines I'm good for 4-5 hours.
What happens when you pour molten aluminum onto a pile of ice cubes?
The article is a fair assessment for "traditional" projects at Google (server-side? hosted? native? not sure the best term. Think "gmail" or "search" or "brain").

As mentioned elsewhere, Android and Chrome are huge exceptions in that they're a) open source and b) pretty much standalone products not closely tied to the rest of the Google ecosystem.
In what way is tech supposed to replace the legislative duties of government? Whatever you say about lawmakers, I think they have a higher than average understanding of the laws and how they interact, and the consequences of certain actions (even if "higher than average" isn't that high). I don't believe a true democracy where everyone votes yields a better system, just a more democratic one. For example, brexit. It was truly democratic, but that doesn't mean it was a good idea, or that if everyone was presented with an impartial, truthful display of the facts the same people would have voted the same way. There are some negative aspects of our psychology that we haven't found a good way to curb yet.
Feel free to upload a 5MB file under your narrow restrictions and I will see if I can reduce it with one of the 20 different compression systems available to me.
I am not very comfortable with a machine that's very competent in killing fighter pilots. I am much less comfortable with such machines generalizing that competency to other, closer, problem spaces. Also, in cases where the use of deadly force happens without a human in the loop, being able to describe exactly which rules triggered and caused the death of a friendly pilot or that C-40 that happened to actually be a 737 full of passengers would be a requirement. "Because the plane got confused" is not very satisfactory.
> Please read the link I provided before[0], it features links to a bunch of people saying Telegram is not secure[1][2][3][4]. It's not just Moxie. I actually have not seen any expert saying that Telegram is secure, but I'm interested in such thing.

I don't like Telegram claiming that it us unbreakable in the early days.

That said: I don't care for the things I use Telegram for. Most people seem to post their thoughts to Facebook or Twitter anyway, compared to that Telegram is a better option in my case.

For serious stuff we use seriohs crypto anyway, don't we?
Canva – How to Use Canva – Tutorial Business Cards, Collages, Invitations
75% sucralose sounds horrid. I can't imagine anyone would want to eat a bowlful of Splenda for breakfast.
Why is that the responsibility of the browser and not the website's owner?
Hi Alex, I had a chance to talk with Hassan Bhatti last week about some of the problems being worked on at Iris. I asked him about how Iris plans to provide solutions to the wide range of applications that an industrial drone can contribute to, and he mentioned building a modular platform that can be modified to suit the unique needs of the different applications.

With DJI currently offering a general purpose flying platform (Matrice 600) in addition to a highly specialised agricultural drone, I am wondering if you can provide some more insights into the pros and cons of developing a modular platform, give some examples on the different kind of modifications that can be made, and whether there is plans down the road to develop more specialised drones for specific applications.

Oh, and tell him Jimmy said hi when he gets there today :)
Genius. Let's write that screenplay!
It might be just what we need to power an Alcubierre drive. I'd probably want them to research this kind of energy source for at least 200 years before trying something like that, though. We wouldn't want to wipe out the solar system by accident.
I have very similar requirements, and I think within the next few years, Swift will fill this niche very well.
Look, it's more about saying that the area of a right triangle is naturally represented (and explained) as half that of a rectangle sharing the height and width - but being divided in two equal halves by the hypotenuse.

You can argue that you're so used to right triangles that it's the square and the rectangle that should be considered special, and "twice the area" - but I don't think that makes much sense.

Pi is a useful constant, but it's chief role is in cycles/frequencies and circles. Not half-circles. It is perfectly ok to disagree - but I'm one of those people to find the concepts behind pi start making much more sense when thinking of tau as the constant, and half-tau (pi) as the special case.

Maybe it's because I always hate having logic and math concepts waved away as "that's the way it is" when there obviously is some pattern or explanation that's being hidden or lost. I'm no good at rote calculation, and with tau a lot of things that just look odd and "special" unify quite nicely.

It may very well be that for higher dimensions than two (or three) tau doesn't make much more sense than pi - but I found the "tau manifesto" examples plenty convincing.

It was easier for me to grasp, and I believe it would be a lot easier to teach.
On the note about the social issue: I recognize the primary obstacle is the social stigma we attach to "people on benefits" or "the welfare queens" and all that other nonsense, it doesn't make the situation any less clear. We spend vast amounts of money subsidizing through inefficient programs the people who are either incapable or unwilling to take care of themselves. We're going to pay for it either way, either by just giving them what they need to live a relatively healthy lifestyle, or by forcing them to live an incredibly unhealthy one and then subsidize the prisons to hold them or the hospitals to keep them on the edge of life.

The question we need to answer as a society is whether the latter option which is much, much more expensive is worthwhile to do just to keep this imagined requirement going. Frankly I think if all the counter arguments boil down to "that's just the way we are" I would reply with "that's not good enough for me, because we can change."
That's why such a provision would have to be enshrined in law.
This ties into "ħ" vs. "h" as well:

E = ħω

E = hf

I don't mean this as an argument for anything; I just felt like mentioning it.
That quoted voip paper isn't actually as damaging as it sounds. IIRC that 0.6 rating was for less than half of the words so if you're trying to listen to a conversation to get something meaningful, it's probably not going to happen.
Fewer Than 1000 Brits Googled “What Is the EU?” After Referendum
Phonotactic Reconstruction of Encrypted VoIP Conversations [pdf]
At least you can actually debug it.
I'm saying this comment should be far less contentious than my comments that somehow cite Heidegger or Deleuze.
Do you have enemies? Does a typical person have enemies?
Because we have social lives? It's where events are organized, photos are posted, current issues discussed, and friends stay in touch. It's really not that hard to understand.
The physical world always has implementation difficulties. It is a messy, noisy, uncontrolled place. On top of that, many implementers will avoid going full-ass when half-ass will do. No protocol will ever fix these issues.
Express, Koa or Hapi for today’s node newbies?
Today, to somebody new to Node and programming in general, which framework would you recommend learning, Express, Koa or Hapi? Express seemed to be the go to Node’s web framework a while back. Is it still the case these days?

Although I read several discussions supporting all of them I found opposing arguments some of which are:

- In spite of being extremely popular Express slowly getting obsolete, not being as much actively maintained as in the past and that implementing ES6 changes would be better done in a new framework. (As per Express site, version 4.14.0 supporting Node.js 6.x. was released on June 16, 2016)

- Not fond of Koa generators

- Hapi being too complex and requiring too much code for small projects
Path to a free self-taught education in Data Science
this difference is because your random text values are not random binary values.

you are trying to bring empirical evidence to an information theoretic fight :(
The leave voters are predominantly without a college education.

http://www.theatlantic.com/international/archive/2016/06/bre...
Try going from having bluetooth off on your phone to bluetooth being on in your car that has bluetooth capable device. It sucks. Every car I've been has trouble pairing if bluetooth wasn't on prior to me entering the car. For one car, I had to turn the engine off for it pair. WTF?
This is my thinking as well. I've watched them build these stores. Its a basic steel frame and lots of cinder block and sheet metal. They're made just like cheap warehouses, except they'll have spray insulation and drywall interiors. The tar covered flat roofs are cheap too. Everything about this contruction is cheap and requires significant maintenance going forward. Big box stores can afford this, but can it survive as a make-shift mall with such crappy construction? I imagine it just makes more sense to tear them down.
Special Processes in OTP
Abstract — In this work, we unveil new privacy threats against Voice-over-IP (VoIP) communications. Although prior work has shown that the interaction of variable bit-rate codecs and length-preserving stream ciphers leaks information, we show that the threat is more serious than previously thought. In particular, we derive approximate transcripts of encrypted VoIP conversations by segmenting an observed packet stream into subsequences representing individual phonemes and classifying those subsequences by the phonemes they encode. Drawing on insights from the computational linguistics and speech recognition communities, we apply novel techniques for unmasking parts of the conversation. We believe our ability to do so underscores the importance of designing secure (yet efficient) ways to protect the confidentiality of VoIP conversations.

via https://news.ycombinator.com/item?id=11994286

This is pretty fascinating... the jist is that they were able to extract the conversation from an encrypted VoIP stream from the lengths of the encrypted packets and knowledge of the underlying voice encoding:

The approach we pursue in this paper leverages the correlation between voiced sounds and the size of encrypted packets observed over the wire. Specifically, we show that one can segment a sequence of packet sizes into subsequences corresponding to individual phonemes and then classify these subsequences by the specific phonemes they represent. We then show that one can segment such a phonetic transcript on word boundaries to recover subsequences of phonemes corresponding to individual words and map those subsequences to words, thereby providing a hypothesized transcript of the conversation.
What's actually going to happen is that we leave the EU, but move to the EEA keeping trade and free movement.
I really like how this brings up the issue of where you are when you would want to bookmark or remember something.

"...the reality of remembering: when, how, what you were doing when visited the link".

Having that kind of meta data would be helpful with any kind of bookmarking tool.
IBM Openblockchain
Congrats on the launch, Cliff!
There's an interesting one here:

http://macbeth.cs.ucdavis.edu/lang_study.pdf

TL.DR. Looks like FP reduces bugs, and static typed FP reduces them a bit more, but there isn't enough data for the more interesting fine-granied conclusions.

Also Perl results are interesting (unsettling?).
In C, valid_user and valid_data might just be macros and then the short circuiting would work just fine.
How we can open checking account in SVB? They rejected to open account for us saying that we are not tech vc-backed startup, but we are! Or any other possibilities?
Will it learn from ducks?
So, worst conditions than now
How about a future where AI fighter pilots fight against other AI fighter pilots?

Maybe one day war will be less about killing people, and more of a battle between countries' best engineers.

Maybe I'm just optimistic, but I think robot wars would be a hell of a lot better than real wars.
Our basic human rights already protect us against that sort of thing though. Basic income implemented well (as just literally giving people money to survive) has no control-ability attached to it. Compare that to our current system where food stamps can only be used for certain kinds of food, or where rent subsidies are only available in certain kinds of housing. I would argue a basic income would increase personal freedom, not decrease it.
The nice thing about the JVM is that it's contained and has excellent monitoring and profiling tools.

Anyway: What about kotlin [0]?

* 100% java compatible
* can compile to the JVM and javascript, so you should be able to run it with node.

[0]: https://kotlinlang.org/

Googling found this: https://jonninja.github.io/node.kt/
The brain drain depends on what policies are implemented. I have mixed feelings about BoJo but he's the front-runner for next PM and he's signalled he wants to remain open to immigration.

The UK has tons of smart Indian and Chinese students coming here to study. It's one of the top 3 locations for wealthy Russians to emigrate to (along with Germany and the US). The Qataris built a half billion dollar glass pyramid in London. I hear London has no real contender for a European tech hub (Berlin has much less available talent from what I gather). If a pro-international Brexit happens, we're in OK shape (big if, granted). I was planning to leave before Brexit, but I'm now more confident about the UK's direction and I'm planning to stay (yes I know this is a rare position heh).
Python: cherrypy -- avoid django and flask as much as possible.
A bit breathless for my taste; "Just one 20-ounce soda increases your risk of a heart attack by about 30 percent."

How did that sentence survive editing? Is that per hour, per day? I assume they are trying to say '65g of added sugar to your daily intake' -- note the recommended daily intake is about 35g of added sugar.

As mentioned in TFA, this brings up an interesting bug in our nutritional labeling. Sugars are grouped under carbs for calculating the percent of recommended daily intake, and there's no differentiation between natural and added sugar. So 39g of sugar in a can of coke shows up as "13%" instead of "111%". Fixing the label would be a good first step...
After all this time it's still interesting to see how much hate there is out there for JavaScript even though it has proven itself a more that capable language across multiple platforms.
The larger the random file the _less_ likely you are the successfully compress it.

Everyone here is telling you that you are wrong, and have even clearly demonstrated this through both mathematical reasoning and empirical tests. Quit digging :-)
That's not encrypted with AES256, that's encrypted with AES256 and then encoded with base64.

Do you understand the difference between base64 and binary data? Base64 only uses six bits per byte. It's designed to allow data to transit cleanly through places which only allow text, such as JSON. Binary data is eight bits per byte. Binary data is what encryption and compression algorithms output. Naturally, if you take data which only uses six bits per byte, and run it through a compression algorithm which is able to use eight bits per byte, you can achieve good compression. But this is illusory, because you expanded the original by 33% when you applied base64 in the first place! All your attempts at compression can be beaten by simply decoding the base64 into the original binary data.

It doesn't matter what magnitude of compression you specified. Random data cannot be compressed at all on average. This is a simple mathematical certainty with a straightforward proof. Encrypted data looks and acts like random data. If you find a way to reliably compress the output of a modern, secure encryption algorithm (not the base64 encoding, but the original binary) then you'll have found a massive security hole in it which will make you famous.
That doesn't mean the facts and predictions from economic experts should have been ignored in this vote. This was an issue with some pretty clear ramifications.
D3 v4.0.0 released
Surely the easiest solution is to simply retain most EU law and regulation as they are intact. Government would then have the oppurtunity to weaken, or even strengthen those laws and regulations in the future. Suddenly abandoning things like product safety standards or environmental protection could be hugely contentious and not actually neccessary to appease the Brexit voters. The race to the bottom can happen after future elections where government can make promises.
Brexit’s Impact on London’s Tech Startup Sector
Maybe. No one knows.
That's why you delete dead code at head (keeping archive of history) , and you have dev branches and release branches
If you have Chrome for Android (only browser/device I've tested this on) you can check request desktop site for https://m.facebook.com. You'll stay on the mobile version, maintain all of the mobile functionality of the website plus access to messages without the download redirect.