skysight-inc/HackerNews huggingface dataset:
Application consists of components. One component need to talk to another. You either use some kind of global repository or IoC. Repository is easier to use without framework, but with framework support IoC is as easy to use and provides better incapsulation, easier testing.
It's not just about road wear. Just installing and maintaining the support infrastructure (traffic lights, road signs, cameras, etc.) and planning the whole system would also count for a big chunk of expenses.
I bought the wrong size $250 Zinus mattress from amazon and tried to return it. They refunded my money and told me to just keep the mattress.
There have been a lot of discussions on HackerNews in the past about EEGs and other potential input devices, but these non-invasive devices lack the required throughput to be used as a full keyboard replacement. EEGs, for example may allow you to transfer on the order of a few bits per second. I have always been interested in the potential of humans to "learn" (with the help of some sort of feedback training) how to control these macroscopic oscillations in a way that gives them a higher bit rate.

Most people conclude that it's not possible and that in-vivo solutions (e.g. invasive BCIs) are required for anything interesting. IIRC, there is research out there that suggests humans, with practice, can learn to "control" the amplitudes of certain large scale oscillations (alpha, theta, etc.). I think this has been done in certain ADHD studies, but it's been a while since I read about it.
Does anyone else 100% disagree with the claim that this "lambda version is more concise and expresses its intent effectively"?

public static List generate(int series) {
return Stream.iterate(new int[]{0, 1}, s -> new int[]{s[1], s[0] + s[1]})
.limit(series)
.map(n -> n[0])
.collect(toList());
}

as opposed to this:

public int fib(int n) {
int x = 0, y = 1, z = 1;
for (int i = 0; i < n; i++) {
x = y;
y = z;
z = x + y;
}
return x;
}
> In fact, in this kind of architecture, a little-used service is actually likely to be penalized in terms of performance because it's spread so thin that it loses cache efficiency

This is exactly what I'm seeing with the small amount of testing I'm doing against google to compare vs cloudflare.

Sometimes google will respond in 30ms (cache hit), more often than not it has to do at least a partial lookup (160ms), and sometimes even go further to (400ms.)

The worst I'm encountering on 1.1.1.1 is around 200ms for a cache miss.

Basically, what it looks like is that google is load balancing my queries and I'm getting poor performance because of it - I'm guessing they simply need to kill some of their capacity to see increased cache hits.

Anecdotally I'm at least seeing better performance out of 1.1.1.1 than my ISP's (internode) which has consistently done better than 8.8.8.8 in the past.

Also anecdotally, my short 1-2 month trial of using systemd-resolved is now coming to a failed conclusion, I suspect I'll be going back to my pdnsd setup because it just works better.
Human attention vs low probably events is a known and solved problem. I've heard the TSA does this. You simply introduce fake events into the system at a frequency judged to cause human operators to stay alert, and responsive.
Really sad to see Autopilot is a joke and nothing more than adaptive cruise control found in common cars, despite Musk claming it was a year ago [1]

Any one who owns Autopilot knows the warning at :20 is NOT a crash warning at all and is just the usual warning every minute to jiggle the wheel if you don't hold the wheel firmly enough when it can't detect you holding it.

1. https://twitter.com/elonmusk/status/823632597284691969 "
Yes, safety should improve significantly due to autonomy features, even if regs disallow no driver present
23 Jan 2017"
There are employees there who probably buy the idea that it's motivated by speed, but the project wasn't created primarily for speed, just like Chrome wasn't primarily motivated by the need to make a better browser. (Both are about advertising.)
Ya, I noticed that also. Actually, the basic recursive version would be functional and concise, why did they go with the functional origami version instead?
I'm surprised that Columbia (just the orbiter by itself) was 40% heavier than Skylab.
Thats like saying Linux is a useless project because of giant security holes that stay hidden for decades. I prefer to live in the real world, which is a lot more nuanced, and my question still stands.
Maybe give it a password to a honeypot network of yours?

I realize it's a bad solution, but that might work…unless it's "smart" enough to realize it has no connection and try other networks regardless…
If you'd like to see some more tools for dealing with structured text take a look, https://github.com/dbohdan/structured-text-tools a pretty nice list.
Ask HN: What's next with mobile photogrammetry?
Agisoft seems to be the major player in professional photogrammetry but what about for mobile? For example, using your phone to take a picture, build a model in an app, and allowing the user to georeference locations within the app.

Is there a free app that does this?
Why the crypto-backdoor side is morally corrupt
I find jq very useful for tasks like this. But it's more awk for JSON than grep for JSON.
Yes, also the author is wrong — in FP the direct equivalent of a loop are tail recursive functions (i.e. you can take any loop and transform it into a tail recursion) and not "list processing". Here's Scala:

def fib(n: Int, a: Int, b: Int): Int = {
if (n > 0)
fib(n - 1, b, a + b)
else
a
}

Unfortunately Java cannot express self tail recursive functions and Scala too can't express mutual tail recursive functions, as that would require runtime support.

But you know what? That mutable loop is totally fine, because any mutation it has is encapsulated, the function itself being pure.
A Garage Sale Find of Rare Beatles Photos Took Collector on Magical Mystery Tour
From Tokyo, Japan:

$ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=58 time=111.781 ms
64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=102.982 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=58 time=102.206 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=58 time=110.135 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=58 time=110.085 ms

$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=58 time=6.886 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=58 time=5.475 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=58 time=5.674 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=58 time=5.557 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=58 time=7.066 ms

$ ping 9.9.9.9
PING 9.9.9.9 (9.9.9.9): 56 data bytes
64 bytes from 9.9.9.9: icmp_seq=0 ttl=58 time=5.880 ms
64 bytes from 9.9.9.9: icmp_seq=1 ttl=58 time=5.534 ms
64 bytes from 9.9.9.9: icmp_seq=2 ttl=58 time=5.251 ms
64 bytes from 9.9.9.9: icmp_seq=3 ttl=58 time=5.194 ms
64 bytes from 9.9.9.9: icmp_seq=4 ttl=58 time=5.698 ms
It sounds like you feel happiness only occurs when you have money. That will be true if your happiness can be purchased. Happiness is not the sole domain of billionaires (I'd almost assume the opposite). Regardless of income or financial standing, we all have the same amount of time in the present - spend it more on the things that you value most.
> Fast page loads means a better UX on the web.

Not necessarily. AMP has terrible usability. For people who block 3rd party JS from loading, AMP pages take 8 seconds to load.

AMP will hurt publishers in the long run:

- giant back button to take users back to Google Search instead of deeper into your site

- broken referrers

- bad inbound links (that point to google.com)

- someone else dictates your monetization strategy

- someone else limits how you publish online

- not faster than DIY optimization

- etc. https://www.google.com/search?num=100&q=amp+sucks
Ran a comparison between all major DNS resolvers (including CloudFlare, Google, OpenDNS, etc):

https://medium.com/@nykolas.z/dns-resolvers-performance-comp...
> Why are you trying to build up objects and pass them into places?

Maybe something like the mediator pattern? There's definitely use cases for it, but I think a lot of the time the cure isn't any better than the disease.
Cool, a fellow PROMYS alum! The only application I can think of is to use the patterns to generate fractals graphics e.g. http://demonstrations.wolfram.com/NumberSystemsUsingAComplex...
A lot of reasons, here's a simple example: If you have a "product" which had a CRUD interface to make and users who add it to the card, deleting it would cause relationships to fail - as in if users who already purchased the item or added it to their cart would no longer be able to see it.
Some previous study on the space with an APNIC loan:

https://www.youtube.com/watch?v=RBOPcLpQZ8w
The most interesting thing I read recently about brain plasticity is that, the brain recycles connections formed in earlier memories when you learn something new. So you will lose the ability to easily recall old memories if tasked to learn new tricks.
That's called a Twin Film in show business and had been happening for a long time.

https://en.wikipedia.org/wiki/Twin_films
Degree of (and physio mechanisms regulating) plasticity are brain-region specific.

Motor cortex is using a plasticity framework that supports 'procedural' memory formation. This type of learning is relatively slow and relies on small incremental changes (for ML people, maybe this is similar to having your nn regularization parameter cranked way up).

Other areas of cortex can support 'declarative' memory formation. For example you can learn things like the definition of a new word (lang), features of a novel object (vis), where you parked your car outside your new apartment (spatial/episodic), within just a few seconds.

For the control of prosthetic limbs, there is perhaps no better brain-computer interface than motor cortex. Despite its relatively laborious procedural-type learning framework, limb movement is precisely what PMC has been optimized for. Since we've been digging around PMC for a while and have managed to make these electronic prosthetics work well, it's only natural to see what other tasks we can perform with those PMC-embedded electrodes. We should however keep in mind, though, the human brain has a wondrous variety of subregions optimized via evolution to perform all manner of computations, to support some subtype of behavior or mental capacity, with varying degrees of task-specificity. All I'm really saying is that... we will likely find out that a PMC-computer interface is garbage at doing some of the things we imagine should be possible, like typing words into a text box using thoughts. While it's likely possible (motor cortex could think about moving virtual fingers typing on a keyboard, and the computer interface could pick up on these signal patterns), there is another set of brain regions better suited for this task that could be tapped-into. But yes, "Some Brain Regions Cling to Old Habits When Learning New Tricks".
How is it not referentially transparent and how does it use mutable state?
Not sure if serious or trolling.

1. CDI has no testing story, this is the biggest point, everything else pales to this. Arquilian is a joke compared to Spring TestContext Framework and strictly speaking not part of CDI.

2. CDI is in general lacking what Spring calls "enterprise integration", convenience layers over a lot of the a bit annoying to use Java EE layers like JDBC.

3. CDI is in general hampered by the Java EE / JCP release model. Spring can in general and does roll out new features quickly. For example we got new functionality into 5.0.4 within a few weeks without having to wait three years for a specification to be perfect and another three years for a supported application server to ship.

4. CDI/Java EE has still no caching story, even in 2018.

5. CDI has no MVC story.
Yeah at that point I had to scroll up and check if the article was posted on April 1, but apparently it's not a joke.
It’s still a couple of orders of magnitude or more better (in terms of half life of the byproducts).
So if anyone knowingly compares fission waste and fusion waste putting them on the same plane is simply lying.
Why there are so many online mattress-in-a-box companies?
HN mods really don't like when you paste comments, FYI. The best way to refer to something you already wrote is a link to that comment.

Personally I think Tesla should bear some responsibility for the name. People don't know what aeronautical autopilots do and don't do. Laypeople think autopilot does the driving for you.
It's not even an apples to apples comparison. One of them returns a list, one doesn't, and one of them has a descriptive name, the other not so much.
If you use jq[0] and are wondering why Gron, the answer is at the very bottom of the readme:

jq is awesome, and a lot more powerful than gron, but with that power comes complexity. gron aims to make it easier to use the tools you already know, like grep and sed. gron's primary purpose is to make it easy to find the path to a value in a deeply nested JSON blob when you don't already know the structure; much of jq's power is unlocked only once you know that structure.

[0] - https://stedolan.github.io/jq/
It seems like the dash cam video released is very misleading there's been a couple people who've driven through the same area at night and it is well lit. [0] From the Uber cam it seems like the light is still on because there's a bright glow about where streetlights are in the other videos. It's kind of shocking just how bad the dash cam of the incident actually is unless the lights were recently (because there's still the glow) off for some reason before dawn (poorly implemented scheduling maybe?).

The difference between the Uber dash cam [1] and the one posted to youtube is stark [2]. It's certainly darker where she comes from but no where near impossible. Source the ArsTechnica article [3]

[0] https://youtu.be/CRW0q8i3u6E?t=32

[1] https://cdn.arstechnica.net/wp-content/uploads/2018/03/Scree...

[2] https://cdn.arstechnica.net/wp-content/uploads/2018/03/kaufm...

[3] https://arstechnica.com/cars/2018/03/police-chief-said-uber-...
This is not true. BMW 5 and 7 series have adaptive cruise control and lane centering. I had a Tesla and now have a 5 series and the 5 series Lane centering is on par with Tesla’s autopilot. The only thing it lacks in the US is auto lane change (but it works in other countries).
Look Who Goes to Business School and Where They Will End Up
The same could have been (and was) said about the personal computer in the 70s! While this exact wristband may not replace keyboards, I think biological interfaces are definitely worth researching. All it takes is a kid creating a beautiful painting or piece of music with a new tool to start the snowball effect.

That said, the theremin was a new musical interface and didn't ever take off because it produced a strange sound quality and did not map well to preexisting human motions. Furthermore, music creation was already well understood.

Indeed, machines need to be built for the human, not the other way around. I think it's a trade off between two terms: how easy the interface is to learn and what it enables us to do. For (a contrived) example, an interface which allows humans to teleport will be learned regardless of how steep the learning curve is. Teleportation is a "zero to one" technology, it more or less competes with nothing. A new kind of keyboard on the other hand, must compete with the existing solution for keyboards, so it must be easy to learn, otherwise there would be no incentive to switch.
Yep. Drive pilot on Mercedes and The driver assistant plus packages on BMWs are just about as good as AP1 on Teslas
Unless they're doing something special I haven't read about, that was the investigation by police. They don't spend a long time on every accident in my experience. What happened in our case was the driver turning left was cited for failure to yield. Case closed, next.

And I think a lot of people here don't have much experience driving these roads at night. More lights don't really help, there are too many lights on some level, you can see stoplights and such a good mile away, and pedestrians are moving shadows at night.

I had to train myself to notice them more after some weird experiences like the strange, uncoordinated bicyclist driving circles in the middle of a road for no reason in the middle of the night.

I'm sure there are things Uber and the safety driver could've done better, but I fully believe they really didn't notice them. That's right near an overpass and moving between lit and shadowed places also screws with your vision.

And FWIW, I've driven extensively here at night and I know that stretch of Mill Ave. rather well. I used to drive from Mill Ave to Van Buran, going through Papago park.
If I could I would nominate you and your descendants up to the nth generation as a willing custodian of all the toxic waste that we have today since you are so keen in increasing it rather than stopping this aberration.
Honestly it’s really shameful to see such short sighted comments here of all the places...
Why we rewrote Lua in JS (2017)
Syntax matters. What I really like about Haskell is how much care has been given to the syntax to make functional idioms easy to read and write. One can just say,

fib = 0:1:zipWith (+) fib (drop 1 fib)

[I know that `drop 1` is just `tail`, but this one makes the intent clearer for those who may not know Haskell].
Submit a Guest Post &ndash; Think to Share
Yep. That was scary. You can feel the panic. And even after prompt intervention, that car came pretty close to the median!
No wonder, its hard to teach async programming to old time programmers :)
Almost Perfect (2009)
Life is lived in every minute you're alive not in how you try to choose and partition it. Be present in every moment of your life and you will never be wasting time.

Setting goals or being motivated out of fear that you're wasting your life is totally missing the forest for the trees.
Simple systems to organize your business
I imagine it's a combination of things being more specialized and the fact that we have honestly solved a tonne of problems and made a lot of... things. There is probably already a thing for whatever alternative use you come up with design specifically to achieve the task.
Is it open-sourced ?
Go to freecodecamp.org and complete it. It will take you only one day to get started if you have any prior programming experience.
After that, you will be pointed to different JS projects. Work on them and finish them and tada you know JS.
Wow, very interesting article. Thanks for posting. There’s something that makes you feel a little sad, seeing the site of “King Arthur’s Son’s grave” just a parking lot and a gas station.
> random accidents by random people is not narrative-inspiring but for self-driving vehicles all accidents will be the fault of The Corporation

I think we can conclude, absent conditions of wilful neglect, that this hypothesis is false. I thought this, too. But people are reacting reasonably to Tesla and Uber’s, erm, faux pas.
Human Y-chromosome DNA haplogroup
This video is from a highway in Illinois. 2000+ miles away from the 3/23/2018 crash. 41.7779557,-87.6309277
I often fall into ruminations of this kind. Currently in my late fifties, as a boy I have no doubt met people who in their turn have met someone born in the late seventeen hundreds. My own grandfather is a candidate. We had a couple of long generations - he was born in 1885, and could easily have known people in their nineties in his childhood.

And less than ten of my lifetimes take us back to Columbus. Less than twenty to my viking ancestors.

And oh yes, my teens were barely yesterday.
The term only has become muddled in the minds of those that don't want to learn, but have an interest in using it for marketing purposes — just like how people tried to redefine what Open Source means.

Functional Programming is programming with mathematical functions (aka pure functions).

And an FP language is one that has features, but also a culture that encourage FP as the main paradigm for solving problems.

Examples of FP languages: Haskell, SML, OCaml, Scala and Clojure.

Common Lisp, Emacs Lisp interestingly are not. Python, Java and C# are not. JavaScript is not, although it has a cultural shift in progress with pretty good results. Go at this point is actually anti-FP, if such a thing was possible.
nope :( unlike him I haven’t built anything that’s had a big impact... yet
How do we know they are not lying (or forced to lie, they are a US company after all)?
Adjusted for an equivalent tech job in another city, $200k/year in San Fancisco would still probably put you in the uppermost tax brackets in a place with cheaper housing.
Tesla this month pushed out an update which makes autopilot disengage a lot less than it used to. People have been making videos all month showing much improved performance [1], but this overconfident behavior may be a side effect of the same change.

[1] https://electrek.co/2018/03/08/tesla-autopilot-update-on-off...
Try https://1.0.0.1/
Well, unless you're renting the home and your landlord evicts you to make room for a condo building. This would be an uncommon situation, but evicting low-income tenants of low-density apartments to make room for higher-end high-density condos is a related, and legitimate, concern. The bill should probably continue to be amended to make sure this doesn't happen.

Note that this concern is basically irrelevant to all the Bay Area suburbs like Palo Alto that have virtually no low-income tenants to begin with, as well as San Francisco, which is essentially completely gentrified at this point.
Why pay for static generator or hosting when you can use eg. GitHub Pages and Publii CMS (https://getpublii.com)?
Does it matter? Do cars act differently depending on which state they are in? Seems like a similar situation to the crash in California.
The funny thing about this whole discussion is that invasive BCIs are also quite low-bandwidth. Even a Utah array under ideal circumstances recording 50ish neurons is still much worse than a mouse or a keyboard.

People seem to assume that it’s possible to get a higher bandwidth connection by tapping into neural activity directly, but it’s not obvious to me that should be true. After all, our whole nervous system is optimized for controlling our bodies. I’m not saying it’s impossible to build a neural interface that’s better than the one already plugged into your brain (your body), but I am saying nobody has come close yet.
Even better for the validity of the reproduction of the bug.