skysight-inc/HackerNews huggingface dataset:
I think that’s probably taking a bit far to be honest. If someone really wants to develop for the Apple platform you can pick up a perfectly serviceable used Apple computer either used or refurbished for a reasonable price that is good enough, like a used Mac mini or iMac. It might not be the latest and greatest, but neither is a $400 windows machine either.
Today, mobile phones are super powerful, always-on and almost always connected. We should be able to run mail completely on the mobile device? There could be blind relay mailboxes in between to help store/forward the mails until they are retrieved by mobile phone app.. and of course there's end to end encryption with no metadata leakage in the relay.

Possible? Already exists - app? relay?
That's the beauty of gradually typed systems like sorbet. You only define types where you need to. Plus, it's really only one extra line of code per method. And that extra LOC gives you a lot.

So many of the production bugs I've encountered in my rails career (probably around 2/3rds) would immediately go away with a type system. Now, that's not to say that I won't encounter other issues, but type systems provide other benefits as well. Typescript annotations make JS seem pretty sane, and editor integrations like VSCode's support for TS is amazing. You get go-to-source functionality that isn't based on heuristics, compile-time error reporting as opposed to runtime error reporting.

Sure, it might not make sense in your situation. But every single job I've had in my career would've been much easier with a type system, and depending on how solid sorbet turns out to be, working in ruby might look quite a bit different in the next few years.
The key ingredient in most of these trade success stories is not trade per se but working their asses off to build a scalable business. It is a blue collar startup story.

I have a relative who worked construction after high school. Today he is "owns beautiful houses in exclusive neighborhoods around the globe" style wealthy. Yes he worked in the trades, but so did the hundreds of other guys he was working with when he first started out and I doubt any of them did nearly as well. His success wasn't due to him being in the trades, it was his ability to operate an efficient business that narrowly targeted a large business segment that had previously been under-served by generalist businesses, to consistently exceed customer expectations even under adversity, to build trusted business relationships, and to make all of this scale in practice. Which is a fair description of what a tech startup actually entails.

Most trade career success stories have a strong element of entrepreneurial effort and ambition such that I wonder if we are misattributing whence that success is largely derived.
The solution isn't to tune properties of the university to make it more efficient in the market. The university is not very compatible with markets. Professors and researchers are employed to study specific areas of research, typically independent of their market values, for decades. Of course it's all really important, that research feeds into a framework of tools that societies and corporations utilize.

The solution more likely involves making life easier for people who don't want to continue education. The high cost of college represents a fear that if you don't go to college, you're more likely to end up poor. From this perspective a lot of people are attending college that wouldn't if they felt they had other options. It's not hard to understand why people have this fear. 40% of American households don't have $400 to spend on an emergency. Unless we address the fear that opportunity is increasingly scarce the cost of opportunity will continue to rise.
Just add `,0.0.0.0/0` to AllowedIPs on the central server, and `,0.0.0.0/0` on the peer definition for the central server on all the clients.

I'll add an example to the docs as well.
Seconded.

Just the other day I helped some colleagues clean up a text file using an awk one-liner. It seemed like magic to them.

(Even though the one-liner turned out to be a bit more difficult to write than I thought at first due to '\r' characters in the input file)
The main website is here: http://lwc.dev
Some examples here: https://github.com/trailheadapps/lwc-recipes-oss

More coming soon :)
Automatic dev team metrics sounds like a great thing. Gitlab has something integrated along those lines.

I doubt tho in non-FOSS tool given that such metrics must be extensible - you simply do not know all the things I want to measure productivity.
Don't airplanes have an equivalent of 'power steering' like we have in cars? It seems strange that pilots have to use actual physical force to move the control surfaces, and that there is a point where the physical force of a human is not enough anymore to move them. I get that Boeing wants to give pilots feedback of what is going on in and around the airplane. But putting pilots into a situation where they can't command the airplane even if they want to is a bit extreme.
> DJI offered a bounty for researchers to uncover bugs in its drones

I'm not sure they understand how bug bounties are supposed to work...

https://arstechnica.com/information-technology/2017/11/dji-l...
They probably refer to how it has the top-level as

<line-condition> { <code> }

That's unusual enough among programming languages to call it odd. Being able to do stuff like

if (/some-pattern/) { ...

and have the regex be evaluated like a condition where it matches with the current line implicitly is also pretty unique.
Is getting a Uber/Taxi an inalienable right? While the process is new, it's entirely possible they could have banned your account previous to this.
Do you worry about your gadgets catching fire? (Mine did.)
Last night we had a scare. Our house filled with smoke and we couldn't find the source. Eventually we tracked it down to a pair of headphones: https://ibb.co/N1L9zB2

Question: Do HNers protect against this? How? Buy only expensive gadgets? Buy only expensive cables? I don't know what caused this or how to reasonably prevent it. But if we hadn't been home, or awake, our house might have gone up in flames.

(My fire alarms also failed, which is a whole other troubling issue.)
> I don't think anyone is arguing that these burgers are healthier than eating salmon and broccoli. Just healthier and more environmentally friendly than ground beef.

I can't speak for environmental friendliness, but I doubt these burgers are "healthier" than ground beef (especially from humanely raised cattle), which I eat on daily basis. Come meet me in person and tell me that I look unhealthier.
Search engines work like databases - Too vague but arguably yes in the abstract.

Search can be considered an additional feature just like any other - Yes? How do you falsify this?

Search can be added as a well performing feature to your existing product quickly - Yes if you're using a CMS with search already there like Drupal, or you can use that thing where your search uses/directs to Google.
Only because people in rural areas tend to do more dangerous, outdoor work. Also, that study includes things like poisonings (i.e. drug overdoses) and suicides.
Use Noise then:

https://noiseprotocol.org/

https://github.com/mcginty/snow
They could do something like Microsoft has with Azure where you have an Enterprise Agreement whereby you pay some licensing fee and then they allow companies to route through their own payment gateways to make for a better user experience.

People say Apple care about the user, but they don't, they care only insofar as ensuring lock in. They don't care if you hate Apple, just so long as you keep giving them your money. As long as you don't hate them enough to leave, they've done enough.

The only way to fix it is if enough companies make their user experience so much better on Android that having an Android device is a more attractive offering than an Apple one and enough users flee Apple for alternatives... but companies don't give a shit if you want Android or Apple, what they care about is how much they have to pay developers to win your money and your eyeballs on their products.

I've worked on a number of high value development teams for these types of apps across mobile platforms and this attitude has been common across all of them: If they can still win your money through a crippled user experience that it costs them a minimal amount to maintain across both platforms, that's what they do. They want Apple's market. They want Android's market. They don't want to maintain two applications and two development teams because that increases costs and they want similar user experiences on each device because brand fragmentation hurts their image. So in this sense Apple is also hurting Android and it's evidence they don't really give much of a fuck about the user as long as they're getting your money.

I say this as someone who has experience on the inside of development teams that provide the apps you love on the devices you love, and I say this as someone who loves my Apple devices but am by no means an iFanboy.
Fisking Martin Wolf on modern monetary theory
> In my experience working at Facebook, not a single thing you said was true.

Well good for you. Either one of us has had an anomalous experience, or...

> People plan and think before they code.

"Planning and thinking" != design process. Of course people plan and think. I plan and think before I go to the grocery or hardware store. Of course it's only for a moment, and the typical process I've seen at FB is a lot closer to that than to the design processes I've seen elsewhere in nearly thirty years producing software.

> People are rewarded for impact, not for landing useless code.

Again, you're playing extremes against the middle to paint a picture more favorable than accurate. Very little code is totally useless. However, I've seen plenty of "impact" awarded for code that made a very tiny increment in functionality, far outweighed by the missing/misleading metrics or spurious alarms or outright bugs in something even the author knows will be replaced next half. Every day I encounter stuff that's broken as a result. This morning it was a distcc script that nuked a build, because someone's desperate to get their impact in before the end of the half. I can't count the number of times I've followed the trail back from an incident to a diff with "test in prod LOL" or some such for its test plan. So "carefully designed and tested" just isn't true in general. The common case is very far from that.
These vague "The Chinese are up to something but we cannot reveal what" isn't really helpful, particularly given the current trade tensions

This is exacerbated by the very poor levels of security in these devices in general: DEF CON 23 - Robinson and Mitchell - Knocking my neighbors kids cruddy drone offline

https://www.youtube.com/watch?v=5CzURm7OpAA

However, to put things into perspective, purpose built security cameras -- even expensive ones from well reputed industry brands -- have had similar very poor levels of very poor security for many years.

https://www.youtube.com/watch?v=B8DjTcANBx0

It's not really a problem of drones. It's a problem with the poor levels of security in consumer devices in general. It's "as if" the situation has been engineered to let bad actors do lots of spying.
As long as the government insures student loans, this will be a problem.
Posteo has no custom domains. I currently use Gmail to SPAM filter and forward to Posteo. This at least removes Gmail at-rest-mails.
I believe it was a third pilot who just so happened to be in the plane who noticed the trim wheels spinning. From the pilot or copilot seats the trim wheels are not that noticable, especially when there was no indication or reason to believe the plane was trimming.
> And stop forking OpenSSL; you’re just making things worse.

Yeah no. OpenBSD developers did a really good job by improving the codebase of OpenSSL. See also some of their presentations: https://www.libressl.org/papers.html
Yes but violent deaths include things like accidents, etc. Not surprising since rural areas see more vehicle use.

From your article: Findings from the study support prior work showing that overall homicide rates are lower in rural areas than urban areas.
bhphotovideo.com observes the sabbath
Howdy. Author here. Really cool to see so much good discussion on this. I want to turn several of them into blog posts on their own with explanations/stories/what-have-you. Taking votes for what you'd like to see first. For the record, my fave is "Languages don’t change".
> there is only one country in the world systematically spying, bombing and manipulating friend AND enemies alike

Your premise is clearly wrong.

NATO bombed Libya. Every member of NATO is guilty. There are 29 nations in NATO. Here they are:

Belgium, Canada, Denmark, France, Iceland, Italy, Luxembourg, the Netherlands, Norway, Portugal, the United Kingdom the United States, Greece, Turkey, Germany, Spain, Czech, Hungary, Poland, Bulgaria, Estonia, Latvia, Lithuania, Romania, Slovakia, Slovenia, Albania, Croatia, and Montenegro.

Those nations are all very happy to have the US as their superpower shield to be pointed at a target when it's convenient (see the recent past: Kosovo; the US rapidly stopped a genocide the Europeans couldn't or wouldn't deal with in their own backyard).

France aggressively lobbied the US to stay in the military conflict in Syria. In fact, Macron's lobbying is the only thing that kept the US involved as long as it was.

South Korea and Japan are mostly happy every day that the US has its military present - and nuclear shield - to protect them from China and North Korea.

Besides that, Russia was quite happy to put its military to use in Syria for its self-interest.

When it comes to spying, the five eyes are all obviously guilty. Beyond that, every country of consequence spies to the extent it's able to. The European powers are all guilty of it.
Aren't the producers of Beyond Burger also motivated by profit and therefore just as suspect?
That might actually be a worthwhile article that helps programmers communicate effectively with non-programmers.

One that tripped me up a few years ago: non-programmers think that 'strings' are long fiberous things that cats play with. The connection between the word 'string' and the concept of text is not intuitively obvious to people who don't already know the lingo. Seems obvious now, in retrospect.
You could conceivably have a situation where a 21-year-old exits the bar, slips his ID to his similar looking 19-year-old brother or cousin, and gets him into the bar.

I'm sure this happens, but I doubt it's really a major problem.
In the US, at least, they don’t have to be a monopoly to be held to non-discrimination standards. And unless there’s a huge investment in “Uber due process”, this is one-click cloud-powered discrimination.
The addendum does not categorically say that ProtonMail does not voluntarily offer real-time logging. The prosecutor correction says he didn’t disclose that at that event. He could have disclosed it anywhere else, he might know it happens but hasn’t disclosed yet. The quoted correction is worded in a way the prosecutor could have certain knowledge they do do that and is not refuting it.

// EDIT (moved word categorically) per comment below.
Oh man when I was into photography I remember that.

It also gave some character to the site, making it clear that people were behind it. Of course they are, but the site too then felt a bit more personal.
Graph Representations for Higher-Order Logic and Theorem Proving
Taxi companies provided a horrible customer experience, routinely discriminated, and often defrauded their customers. I know because I suffered from it long before Uber ever existed.
If you are presented with two candidates that both are pro killing, you have no free choice, it's a managed democracy.
Lawsuit alleges Tesla Model X pinned woman against garage wall, breaking bones
> If you have a giant pile of money in the bank, earning interest, it might not be worth your while to spend it on that.

But that's the case either way. If the technology was public domain, somebody would still have to pay to build the reactors, and then it's even harder to raise capital because with more competition there is less profit.

> If your goal is to make money, the answer is "as much as you can".

But "as much as you can" really means "just under what existing alternatives cost" -- because getting people to switch is how you make money. You don't make money by losing customers to competitors.
If current social security isn't going to be fully paying out in the future, where does the money come for universal health care?
Depends on the implementation, but I believe grep actually builds a Finite State Machine from its input regular expression. More complicated (non 'regular' regex) engines don't use this approach, but in theory the two are equivalent.

This equivalence is one of the fundamental findings of CS, and exposure to this concept is pretty much mandatory for acquiring a degree in the field. Sadly, this perspective is not often shared in the bootcamps and autodidacts, even though it's moderately documented in https://en.wikipedia.org/wiki/Regular_expression#Deciding_eq...

But the more mindblowing aspect is that you can use nondeterministic Finite Automata for the same purpose.
Either way the RAM needs to be powered so just cache anything you can.
Depends on what you think college does.

Bryan Caplan argues it's about signaling: https://jakeseliger.com/2018/03/12/the-case-against-educatio.... Bizarrely, none of these articles cite his work.

If so, then the signal is getting weaker, as more people acquire it.

Seeing buyer's remorse is consistent with Caplan's work.
Ah you don't know abut the pressure licencing bodies and local politicians can put on land lords.

One pub I used to goto was well know as the only pub in town that did not have bouncers at the weekend.
Weaving the Contract for the Web – The journey so far
Based off your comment, I'll assume that you are a male. Based on this assumption, there is a possbility that gender is at play.
> My last car had the check engine light on from years 3 to 15, when I sold it. The reason was a faulty sensor but the actual mechanics were sound

Some Nissan models used to have a fun version of this where the check engine light came on to notify you about a problem with... the check engine light. It was a bug, obviously, but not a sensor wrongly detecting a fault. Rather, the car's only way of saying "if something goes wrong the check engine light might not activate" was to activate the check engine light.

Whatever the underlying issue, I assume software, replacing sensors didn't work and resetting the light would only last for a few hundred miles. It was effectively impossible to keep the light working, so the mechanic-recommended fix was to just disable it.
Does ProtonMail perform real-time surveillance of users?
Yes or No?
Very cool! Kudos to the dev(s)
> putting pilots into a situation where they can't command the airplane even if they want to is a bit extreme.

I agree, this is the main issue. In both cases if pilots had a clear option to just switch off MCAS we would have not lost over 500 lives.
Show HN: A Better Cookie Banner
Algorithms do not create racism out of thin air, all the racial preferences are in the data. This didn't stop a bunch of projects from becoming crucified in the media recently.
The first point is definitely a positive point for typing.

The second I feel is by design. A runtime exception is better than undefined behavior, which was the other option when many of these more abstract languages started taking hold. We're just reaching a point where languages with undefined behavior are being competed against by projects like Rust which offer similar performance without the same risks. Runtime exceptions become less attractive when you can avoid them and avoid undefined behavior with more comprehensive solutions.
This is a really bad article. I like how the claim is "a cancer risk can't be ruled out". By definition, anything not tested for cancer risk "can't be ruled out".

Maybe the headline should be "BREAKING: You can't prove a negative!"
Why Is Stream Processing Hard? Ft. Michael Drogalis [audio]
My wife and I started watching HBO's new mini-series "Chernobyl", and she's now terrified of nuclear power plants despite my reassurances. I'll have to show this to her, but based on this anecdote, I suspect more voters who see this TV show will also be biased against nuclear power.

Anyone else hear friends/family talking about this show as "terrifying" or "concerning"?
I'm not trying to excuse Uber but taxi companies in some places also routinely broke the law by refusing to travel to certain areas, pick up some minority passengers, or accept credit cards. In theory they were accountable to local taxi commissions but in practice that was totally ineffective in forcing drivers to obey the law.
I was once at TJ Maxx looking for a lightning charging cable. Rather than no-name, I went with a braided nylon Duracell cable. After a week of light use, the part of the cable near the lightning head that is usually known for structural fraying developed a small red ember when plugged in and you could see smoke rising from the cable jacket (melting fabric). I emailed Duracell twice about this through two separate support channels and never heard back from them.
This is the most amusing comment I've seen on HN all year.
They said commission. As in, they receive no commission from those apps from Apple offering support, hosting, and distribution. Which makes absolute sense because they are Reader apps and have no way to generate money inside the app to Apple (hence, no commission).

It’s $99.
That last statement is extremely patronizing towards airline pilots, and also self-defeating: the more Boeing says telling pilots would have added "significantly more technical data", the less defensible is its position that no additional training was needed. The alternative to telling pilots in advance was to blindside them with unexpected and inexplicable aircraft behavior when the system failed.
This hypothetical hipster’s alternative to living in downtown Portland isn’t to live in some meth-overrun rural county in eastern Oregon. I’m thinking more like Beaverton.
No, the discussion is about food, not wholesome food. And the argument is around saving time not nutritional value.
They still didn't address Spotify's main complaint: That Apple Music can charge less because they don't have to pay a 30% commission to Apple. So they have an unfair advantage of being able to charge 30% less even if their costs are identical.

Also Apple's use of private APIs gives them an unfair advantage. So sure, there are competing apps in each category, but they can't ever be as good as the Apple app.
Official source: https://hexdocs.pm/phoenix/contexts.html

A video: https://elixircasts.io/phoenix-contexts
They think they're acting genuinely but their perspective in this creates an inherent slant which ensures that what they put out is propaganda regardless of their intent.

To help balance my own view here I would like to say I enjoy the effort they put into their review process. As a developer I'm too spooked by the one-sided agreement you have to sign to bother with the platform though.