skysight-inc/HackerNews huggingface dataset:
Just clicked around and here's a note from the elastic/eui repo

" WARNING While open source, the intended consumers of this repository are Elastic products. Read the FAQ for details."

Doesn't instill confidence.
Agreed. To even submit content to the Go Blog requires a Google account. Ugh.
That's ok, it's a matter of preference and how emphasized the bullet lists need to be. I even mention this somewhere in the article.
Not in my experience. I see far more engineered overly complex solutions to simple problems than the opposite.
Gaussian integration.

You might have heard of "2nd order" or "4th order methods to calculate an integral. This means that the error drops off with the number of sampling points like N^-2 or N^-4, respectively. But Gaussian quadrature has spectral accuracy, which transcends this measure. Error goes down like an exponential of N.

Another neat feature is polynomials of degree 2N-1 or less are integrated exactly with this method. So if you have just 10 sampling points, you can calculate exactly the integral of a 19th order polynomial (times, perhaps, some known weighting function).
Sure, if it works now, it'll work ten years down the line as long as they're not doing anything nonstandard.

There's a big fear that projects that become unmaintained suddenly stop working; this isn't correct.

Besides, all webapps are rebuilt in a 3-5 year cycle anyway so it really doesn't matter.
Yeah, this is one of my absolute favorites as well. Such a neat idea. The analysis is also fun, where the complexity of operations is O(alpha(n)), where alpha(n) is the Inverse Ackermann Function. That function is just fun to contemplate.

You wanna flex your muscles with this data structure, this is a fun Project Euler problem: https://projecteuler.net/problem=186
Someone has to say it. If you’re letting your kid use YouTube or I’d even say the internet or smart phones unsupervised before their brain is well developed you are taking a tremendous risk on their mental development.

A few years back when my kids were toddlers I’d rather naively give them my phone with YouTube on it, and after ignoring them for just 15 mins they’d have switched from whatever edutainment programme I’d put on to a video of a burly pair of hands unwrapping toys - for 4 hours...there are no studies on the long term effects of YouTube on cognitive development in young brains but why wait? It’s not like it’s rocket science to infer that if you show growing minds poor quality content you’re going to get poor quality results.

I don’t feel comfortable leaving my kids to watch Netflix either. It’s too easy for them to binge watch a half season of Paw Patrol or Omizumi or other similarly lite content. As a kid I remember eagerly waiting for the next episode of He-Man or Ghostbusters but to have had several seasons of dozens of episodes on tap would have been too much to resist. With auto play on these services too it’s not like they have the interests of us or our kids at heart.

We need to be super careful here, this is new territory with early indicators showing declines in ability to concentrate in adults from these forms of distraction - god knows what it’s doing to our kids.
A modern-day "salon"? https://en.wikipedia.org/wiki/Salon_(gathering)

>
A salon is a gathering of people under the roof of an inspiring host, held partly to amuse one another and partly to refine the taste and increase the knowledge of the participants through conversation. These gatherings often consciously followed Horace's definition of the aims of poetry, "either to please or to educate" (Latin: aut delectare aut prodesse). Salons, commonly associated with French literary and philosophical movements of the 17th and 18th centuries, were carried on until as recently as the 1940s in urban settings.
To be clear, Uber and Lyft are in cash burn phase, still...
Yes, this is essentially still a free market economy but the prices of rides are largely subsidised to bring them to a point where they compete with public transport.

That said, public transport is often a last mile problem. How do you get to and from the node, with a baby, in bad weather etc.
Public transport is far from ideal and TNCs fill the gap willingly.

TNCs fill the gap so easily by piggybacking off the Auto Lobby. If we had more, denser public transport coupled with reliable safe bike lanes (heck sometimes the whole sidewalk is missing...) public would be much more attractive.
I don't know what this is except that it's something about optimization or bug finding or both and that it's wonderfully weird. How often do you see someone use up 96 gigs of RAM and rewrite instructions to AVX512, use a virtual MMU?
It wouldn't work in Paris, with the current infrastructure, there's a lot of places that can't be easily reached with a car. In addition, there's a lot traffic that goes through Paris from one subburb to another.
I noticed the sarcasm, but, Google Wave never got out of beta (iirc) so anyone seriously adopting it knew what they were getting into.

Same with gmail which was in beta for years for some reason - probably because they wanted to avoid liability for lost data etc.
This is actually a good chance for alternative app stores, because that and the browser are the only essential software you'd be missing from the package, and the browser can be replaced for free.

I hope we see Google Play vanish. Their pricing and the way it's ran are cancerous.

Competition would be good, even if it's from Amazon or another major company. Phones with Amazon Apps and Firefox instead of the whole Google software package? Yes, please.
Ask HN: A good bot for instagram?
I'm looking around for a Instagram bot easy to use.. any clue? thanks!
Interesting aside: My whole life people were ridiculing me a bit for having 2 desktop PCs and a server on my home LAN.

Now it's turned around, and in my flat (2 people) I have 2 desktop PCs, a handful of laptops (obv. only 0-2 in use at the same time), a NAS, 2 Kindles, and 2 Android phones. Oh, and one XBox 360 that's hardly in use.

Compared to this infographic or that study with the 13 devices per person.. Sure, I might own 13 devices with a mac address, but half of them are only switched on once per year...

As I don't use the Xbox for streaming, it might make sense to move it to the Guest Wifi, same as the Kindles. Maybe even the phones. But all in all, my devices are Windows, Linux and BSD boxes that are hopefully kept up to date.

TLDR: What's an IoT era? ;)
I think I can explain this. At some point in the past the interviewer has had to get to grips with OO programming. This isn’t easily for everyone, myself included. But eventually it all clicks. And it’s a great thing. Then you start learning about design patterns. You struggle to get to grips with these, you try to memorise them, you don’t quite feel comfortable with them; but one day, it all clicks. And they are great. And you feel a massive sense of accomplishment. In software development, everything moves so fast, but the feeling that you have actually learned something that is almost timeless and will outlast languages and frameworks that come and go every week is a rare feeling. And I really feel that knowledge is priceless. Try then telling them not to bother with all that and write 3 lines of code :-D

If someone has invested a lot of time trying to understand OO and design patterns like this, and had the feeling of accomplishment when it all comes together, then the are going to want to apply them where they can.

I think all that stuff is invaluable knowledge but people shouldn’t fall into the trap of doing something one way just because they have invested the most time in learning how to do it that way.

Also, many software professionals probably find simplicity boring. Simplicity should be taken more seriously as a goal in software development. Sigh.
AFAIU, the Social Security Trust Fund will stop soaking up deficits some time in 2019 as it transitions to a net outflow of cash. I can't find the numbers but presumably this means (and has meant for several years, now) that the public (non-intragovernmental) share of yearly deficit funding has been steadily growing and will really take off next year. That in turns means foreign buyers will have increasingly more leverage to effect interest rates.

Forget about the share of outstanding debt. That's money under the bridge. Think about the year-over-year change in the share of deficit spending funded by foreign buyers. Considering how explosive deficit spending will be over the next decade because of the tax cuts, compounded by higher interest rates, we could be in for a very bumpy ride.

What once were irrelevant swings in interest rates, current account deficits, domestic savings rates, etc, could quickly come to dominate the trajectory of the economy.

Sure, the Federal Reserve could soak up the deficit. But that would be much more likely lead to inflation than in previous periods.[1] Higher inflation means foreign buyers pull out, which leads to greater inflation and less capacity to purchase the imported goods that we're completely dependent on. It also means less profit on the international market for the high-margin services and industrial products we specialize in. Europe is doing a much better job than the U.S. at controlling deficit spending, and the Euro could easily become the new reserve currency.

[1] And don't forget, the Federal Reserve's mandate is low inflation and low unemployment. Congress may need to step in to change their mandate to de-prioritize low inflation, which would send a very nasty message to investors. Decades of easy money because of our current account deficit (aka trade imbalance) and strong domestic savings (via Social Security) has left people with a twisted perception of the consequences of budget deficits and inflationary monetary policy.
Huh! I have no idea how this passed me by. Shall have to have a watch, thanks!
Thank you, fixed it!

const mid = Math.floor(left + (right - left) / 2);

https://stackoverflow.com/q/27167943
Worth noting that "In an emergency" also relies on your MX records' TTL being set to a low value
Rails 5 already has webpack support and React support.

https://github.com/rails/webpacker
https://github.com/reactjs/react-rails

Can use it pretty much fully in place of the asset pipeline.

Can use standard ERB and spice it up with React using a simple tag with the component name and props as a hash.
What I don't get: Why is it just for React?
You'd think Youtube would put auto-translated subtitles everywhere by now, the technology is here. They have automatic text-to-speech for some videos too, which isn't perfect but if there's good French subtitles there's no reason to not use that for other languages. If only to get the gist of it.
How to be successful in life and business in 2018
> Sometimes you'll want to merge a bunch of class names so you use array-style

> Other times you have class names that have prop dependencies so you use object style

> merge in some always-on defaults so you have string style

There's some irony here -- all of this just to avoid dealing with string templates:

`${class1} ${class2} ${class3}`

> You'll often need to combine them

Need is definitely not the right word here. The classNames utility is a completely unnecessary abstraction.
Going out on a limb here, but if they are paying the bill, don't you think they have a pretty good idea what things cost? At the end of the day there are not that many things that cost $59,324.49 at Hospital X for example. So with a little deduction you could begin to ballpark the severity of illness
By far my favorite is Depth First Search (DFS).
It's almost a bread and butter algorithm for a lot of problems (at least for quick tests) with only a couple lines long in its recursive form.
Some example usage:
- combinations
- permutations
- generating sequences
- exploring tree structures
- finding paths
- solving pretty much any search space problem
and much more.
It's not the most efficient for the large majority of these cases but it allows you to throw 10-15 lines of code to quickly test an idea before actually working on it.
Gradient descent is quite amazing in its power and simplicity. If we can figure out a good loss function and a model architecture with enough parameters, calculus can basically take care of the rest.
The "FRAIG" algorithm is pretty cool. To find equivalent nodes in an And/Inverter graph (e.g., a hardware circuit), it operates by...
(1) simulating the graph on random numbers to identify nodes that might be equivalent (this can be done with huge parallelism by using wide, bitwise and/not operations)
(2) using SAT to determine if these candidates really are equivalent
(3) building a new network that canonicalizes all of the nodes you've found to be equivalent.

It can be a really effective pre-processing step for many kinds of circuit analysis.

https://people.eecs.berkeley.edu/~alanmi/courses/2005_290A/p...
Just because people care about one thing, it doesn't mean that they don't care about other things, or even that they care less about other things.
very interesting choice that you included He-Man, whose sole purpose was to sell its toys.
Vegetarians eat eggs.
I'm also a very infrequent user. I just checked my feed very carefully, making sure each photo was from someone I was following, and it was over 50 posts before I saw an ad.
> (Once, the interviewer followed up with "we're using algorithms)

Even though I do database / web app level programming most of the time, I usually find Linus' quote very relevant:

"Bad programmers worry about the code. Good programmers worry about data structures and their relationships."
Also you can go to Settings -> Privacy and turn off GET requests. With this done the search term is also not shown on the browsers title
Minimax search https://www.cs.cornell.edu/courses/cs312/2002sp/lectures/rec...
How knew that a couple of line of code could be used cause so many interesting behaviors like cooperation, betrayal etc.
It's worth noting that London has had a congestion zone for 15 years now and it wasn't particularly difficult technologically back then.
I'm not sure what you mean by "deep pockets" of the "Sécurité Sociale" (is it "deep" in the sense that it's seen as bottomless, has a rather big deficit for parts of it, and it kinda assumed to be bailed out by taxpayer ; or "deep" because someone keeps the money ?)

Also, we have to make one thing clear about the whole system in France, that's quite different from other places: your employer does not pay for your retirement and healthcase ; she pays for everyone's. Since you're most likely not retired when you have an employer (duh), and most likely not heavily sick, that's probably mostly "everyone else's".

Of course, the line gets more bluried if you happen to have kids (and get the "allocations familiales", or housing help, etc...) or sick relatives, or retired ancestors.

It's a long, heated, and complicated debate whether this is a good thing or not, and whether this is sustainable in the long-term, and whether the current generation of worker will be able to get the same "generosity" from the next generation.

It's also true that most people find some way to save money "for themselves", and that companies can benefit from systems where they save money directly for their employees.

And, guess what ? As usual, this is debated at the very moment we speak, so expect nothing except change :/
Parenting is hard. Not giving your child an iPad or Youtube is not.
AlphaAI: How to use advanced machine learning to predict the prices of stocks
The new Reddit design is often much slower loading the first time than the old one. It's performant after that, but that first load is annoying.
Doing hateful css typography work today. It's hard enough to make ordinary stuff march in formation - I'm hitting both ceiling and deadline, which somewhat spilled over into the harshness of my comment.
Thank you for the heads up. I'll check those tools out.
That's a worse analogy. The entire point of "bus factor" is that it assumes the person is dead afterwards, so there's no way to recover the knowledge and this eventuality needs to be planned for beforehand.

Whereas even someone who won the lottery will take a $100k/hr consulting gig, or might take pity on his ex-coworkers and explain his choices in a 1 hour phonecall while sipping margaritas on the beach.
But this would come to light quickly and mean that nobody installs updates any longer. I wouldn't. It would erode trust in software companies very quickly making everybody less safe.

Furthermore, for the case cited, this wouldn't help. For that you'd need a backdoor for at least installing software without being the device owner. With that, you'll be mugged for your iPhone again.
I'm not sure how credible this is but someone who work at one of the ride sharing company told me most of the cash burn happens in new markets for rapid growth and established markets like SF are profitable.
Ever heard the phrase "has more money than sense"?
> I get some judgy looks on the playground for studiously ignoring my kid and letting her play for three hours...

If you are watching your child for three hours on the playground then it is obvious you either do not have a regular job or only doing this on the weekends.

Check your privilege before you lecture others on how to parent. Also the hot cooking with 3 year olds is idiotic and dangerous even if it’s “just with butter” (??).
I think the article captures the problem even better than a similar one that was recently on the frontpage of HN: https://news.ycombinator.com/item?id=17850836

I can't remember a situation where undergeneralized code came back to bite me. I have however seen (and admittedly written some) prematurely generalized code that became messy legacy code.
It seems tautological that uber/lyft would increase congestion. The one and only way it would not be true is if every single person who used the service had a previous option that they were readily utilizing. Though even there nonpassenger driving hours would probably cause a net increase in congestion anyhow. But I think it goes without saying that there are countless people that end up 'driving' far many more miles thanks to uber/lyft, myself being one of them.

In other words as you make transport more desirable, available, and affordable - congestion will increase. The natural retort against this is public transport, but route/time restrictions as well as other passengers will always pose a limit on both the desirability and availability of public transport, though it certainly tends to nail the third criteria at least.
Is the syntax difference really that interesting? It's

mole -local 127.0.0.1:3306 -remote 127.0.0.1:3306 -server example@172.12.0.100

vs

ssh -L 3306:127.0.0.1:3306 example@172.12.0.100

With the extra installation of mole on top.
Successful Scrum Adoption or Leaving Your Habits Behind
Likely because it's clearly Go related?

"Announcing [some cloud]’s New Go 1.11 Runtime"

That being said, I have no idea how similar submissions of Go content from competing vendors would er... go. ;)
https://www.cliki.net/Prolog
Yepp, I said that much some time ago: https://news.ycombinator.com/item?id=18174532

Fairly downvoted, as expected.

In my head I see the typical HNer as a scared American, being comforted by the powers that be, that they will be able to retain and improve their quality of living by the imminent collapse of their "predatory enemy".

Relax. It's just another country, with a different system, which is managing to improve the quality of living of millions of people, within and outside China.
>do it one pass in O(n) time

Mind you, the “n” here is not the number of nodes!

More precisely, Dijkstra’s algorithm runs in O(E + V * log V) time (if the priority queue is implemented with a heap), where E is the number of edges and V is the number of nodes.

In the general case, E = O(V^2) (i.e. fully connected graph), so Dijkstra’s algorithm can calculate the shortest path to V nodes in O(V^2) time. It sounds less staggering this way.

And in a general graph where negative edge-weights are permitted, it’s actually impossible to find the shortest path between two nodes without finding the shortest path between the source node and every other node! It’s pretty easy to see why: you can’t be sure you’ve actually found the shortest path until you’ve covered all the edges, because there’s always the possibility of a very large negative edge to be visited.

Dijkstra’s algorithm improves on this general case by exploiting the fact that the edges must have positive weight.
Does it? The class-based solution looks very convenient to me for large projects. Let's say I am new to the project and I don't know what commands exist. I just ask the IDE to show me all sub classes of the command super class. That sounds much better than searching the functions implementing the different operations everywhere in the source code. Not everything that is easier to write is easier to read two years later (even if it has much less lines).
Wouldn't any of those fit the case if you just do tree-shaking?
That's very astute. You are right, there's nothing in those activities that command a higher pay. For product managers, it's the work that comes after doing all the above which commands the higher pay: Synthesizing all the information that was gathered to present a strategy which satisfy consumer needs and exploit competitor weak points. Creating a long term roadmap which gives direction to the work that the engineering department will do. And doing both convincingly enough that upper management buy into the strategy you are proposing. This is the no-right-answer, risky work that product managers are paid for.
One day my neighbor was trimming his tree and the topic of "tree trimmers" came up in conversation much more frequently than normal. Later that day I'm seeing tree trimmer ads on my feed. That's when I quit facebook. It's one thing to help people connect, but secretly listening to my conversations to sell me stuff is a bridge to far. Facebook needs to tread carefully, companies without real products historically fade with the fad and evidence indicates things could be turning quicker than expected
No, your test wouldn't fail because you wrote your code already being confident it is correct and went on. The bug would surface later in your team, somebody else in your team not familiar with your code would spent hours figuring out what is wrong, will consult you about your intentions when you wrote the code etc.
LibSSH Vuln: You Don’t Need to See My Authentication
Reality always comes back to snag you out of delusion. And reality is that France is not attractive. Without core modifications this kind of initiative will be close to useless.

(I'm one of many french engineers who left France to have a decent career)
I took a Master in Margarita class in college during my study abroad, with each class physically exploring a key Moscow scene from the novel. Our first class started at Патриаршие пруды (Patriarch's Pond), near where Anushka drops the oil:

https://en.wikipedia.org/wiki/Patriarch_Ponds

Now years later, I do data analysis to show how media can give us a skewed view of the world — and can be used to manipulate our beliefs:

How Media Fuels our Fear of Western Terrorism
https://www.nemil.com/s/part2-terrorism.html

Today’s biggest threat to democracy isn’t fake news—it’s selective facts
https://qz.com/1130094/todays-biggest-threat-to-democracy-is...

And write a media literacy guide on Github:

Hack the Media
https://github.com/nemild/hack-the-media/blob/master/README....
"do bullshit" is unethical and possibly illegal. More importantly, overpromise underdeliver is a sure way to fail.
what?? the solution set is infinite, how does it choose?