skysight-inc/HackerNews huggingface dataset:
I do agree that things are getting better, but still:

- In 2011, 45% of pregnancies in the US were unintended (as you note this is down from 54% in 2008, though it generally hovers around 50%) [1]

- About half of the unintended pregnancies come from women that were attempting to use contraception. [2]

- In 2001, 44% of US unintended pregnancies resulted in births.

- It is estimated that more than half of US women have had an unintended pregnancy by age 45

This still seems like a huge drain on society. And, of course, this doesn't even begin to consider the eastern and developing worlds that are much farther behind.

Also, this is not to argue that every unplanned pregnancy becomes an unmitigated disaster, I know there are many wonderful people that came from accidents. But I still think it would be a great milestone for humanity to reach a point where by default these things generally didn't happen.

[1] https://www.guttmacher.org/fact-sheet/unintended-pregnancy-u...

[2] http://shriverreport.org/why-are-50-percent-of-pregnancies-i...

[3] https://en.wikipedia.org/wiki/Unintended_pregnancy
Documentary Reveals Ecological Impacts of Renewables
I'm not the OP, but my 82 year old dad has a server rack in his house.

It holds mostly telecom/network gear, but also has a simple NAS of some sort that he uses for backups (not sure what it is).

Also, most people with $1MM homes with integrated media systems piping through their house have a rack with telecom/network/media. A friend of mine has one in a house built 4 years ago.

So yeah, clearly this is a small minority, but still a bigger population than you might expect. And for reference, only one of the houses that I mentioned was over a million dollars. The other is about half than. And neither are geeks (one is a doctor, the other a retired manager).
We build models that predict P(payment charged back as 'fraudulent') and then let small random samples through in order to test the accuracy of our predictions. This calibration means that we can compute a pretty accurate "true" total from those we have blocked.
My response use Super Graph a GraphQL to SQL compiler in GO. https://twitter.com/dosco/status/1250878541849337856
> which definitely excludes the more space-intensive algorithms

No. A small area means a small download.
I like the idea behind this article, but a 62% increase in calls to phone hotline after an ad campaign doesn't sound that amazing to me. Ads are pretty effective in general; even just reminding someone that a hotline exists to quit smoking would cause an increase.
shoutout to [RipGrep](https://github.com/BurntSushi/ripgrep), which is generally faster, has more intelligent defaults (searches cwd by default, ignores files matching .gitignore), and can search through only certain text files (like your .java and .py files, say). Not affiliated, just found it worth the effort to learn some slightly different flags, though many are the same as normal grep.
In the US we tried a program called DARE that was focused on telling kids about the dangers of harder drugs to try to get them to stay away. That program was later discontinued because it was shown to have no impact. Part of the problem here is that we focus on the negatives of smoking as the reason for quitting. But nobody ever talks about how good it can feel to smoke a cigarette. It's relaxing. The nicotine creates this nice, peaceful feeling.

In my opinion if you want people to quit smoking you need to give them the tools to create that feeling without smoking. Otherwise people will seek that feeling out when they're trying to quit and the easiest way for them to get it is to light a cigarette.
FWIW, reading this I thought "Isn't that for fraud detection?" and then I got to the part where your agent says "it's for fraud detection"...

I'm normally against this sort of thing (even though everybody does it, it seems like) but in this case, it's clear that this really is "works as intended" at least to me, FWIW.
I managed to return to New Zealand recently (currently in mandatory quarantine) and it's amazing how different the job market looks after just one year in a bigger city (London).
Crypto firm Ripple sues YouTube over XRP giveaway scams
This but an Android launcher
Covid-19 will change the kids digital ecosystem
I'm fairly certain that neither Amazon nor Netflix promise you anything more than best effort on their streaming quality or delivery time.

You can always cancel your contract with them if you don't like it.
At least in part, it depends on what the program prioritizes. Mumbles prioritizes latency over sound quality. You start to sound bad sooner, but it's more snappy. For most gaming, that's the right choice to make. For normal phone conversations, you might value sound quality more.
How is that fair? Apple pays me for 8h a day, why can't I work another 4h a day for Google if I choose to do so?

Now, disclosing secrets, that's a different matter. If I go to Google to inform them of amazing killer project Apple wants to do within 5 years, that's called corporate espionage.

No reason why I couldn't work for multiple companies though. In fact, I don't even see a reason why I should even tell these companies I work for multiple companies.
Wait what? Is this enterprise where it was deleting old emails?
Such a tough conversation. I want to think that these firms should do this research out of the goodness of their hearts, but i know that their employees want to go on vacation and send their kids to college. I believe in the invisible hand, and honestly don’t know the solution to these healthcare problems. Maybe just raising taxes and paying for all research by the government, but then I worry about the inefficiencies therein.
A few others listed here: https://news.ycombinator.com/item?id=22937991
I think "correlates" already is the wrong way to look at this as it implies a kind linear model, but we know it's much more complicated than that. You can't look at a single policy in isolation, you have to look at it as part of a strategy. Then there is also flawed implementations of fundamentally sound ideas to take into account.
A language with four different pointer metatypes for memory management and (unrelatedly) four different pointer type meta-casts is not "simple".

The subdialect of features that you have settled on may be simple, but the language itself is a nightmare of random feature archaeology and creeping throw-it-against-the-wall-and-see-if-sticks extensions, which somehow still fails to provide clean simple tools for polymorphism.
https://en.wikipedia.org/wiki/Telephone_directory
> IIRC the grep heuristic only considers a short prefix of the file. If the garbage comes later, you lose. Unfortunately, this makes things seem a bit unpredictable.

This was changed about five years ago to just keep looking. Which makes things a bit unpredictable in a different way.
This sounds like spy training from Burn Notice. Like, you have to get the source code of this program, from a guy who isn't at home right now and the whole budget of the operation is a just enough to buy a mug from our gift shop. Good luck Dave!
Under GDPR, no. Fraud detection is the canonical Legitimate Interest, and the only one mentioned by name in the text of the law.

PECR is a different matter. That's more restrictive but I'm not sure about the exact contours of what's considered "essential."
this is from 2018
Their blog posts are great. They sometimes blog about really obscure parts of game development. It’s interesting to read even if you are not building games.
Hey this looks really helpful! I appreciate your commitment to privacy, that's a very important feature for me. Nonetheless, having been burned by Chrome extensions in the past [1], I'm worried about privacy and I'm wondering if you'd be willing to make it open source to allay those concerns.

[1] https://robertheaton.com/2018/07/02/stylish-browser-extensio...
It's not about logic at all.

Addiction makes you crave something in an irrational way.

Logic and thinking are not the proper tools to make you stop the craving.

Look at the 12 steps program of AA, there are no "thinking" or "logic" steps.

Recovering from addiction, as well as getting addicted, are mostly social and biological processes.

You might want to read about the Rat Park experiment, here's a quick link: https://www.psychiatrictimes.com/substance-use-disorder/what...
> "If it's so bad, why are you smoking?"

"I didn't say 'it's bad', I said 'it's bad for you'. Just because you're a little kid doesn't mean you get to move goal posts, so try again."

edit: that's my answer. If you say I must be impressed because those other people are, then you're wrong. Smoking is bad for kids an it's bad for adults, adults get to make choices that harm them, ask parents for details, case closed.
Compare that with the rules of equality of Clojure:

https://clojure.org/guides/equality
yes.

> when you cannot handle the error in the current code block and the function interface does not support returning enough information to the caller to detail what went wrong

Exceptions are, fundamentally, an alternate way to return from a function. That's why the general practice is to avoid using them for control flow - there's enough in the language already to support what you want to do, we don't need to instrument the entire stack when I could return a negative value to indicate the error.

The engineering problem to solve is deciding when to turn a void return into a boolean or enum. Just because there is space in the interface for an error code, doesn't mean it's the right choice. But likewise, just because exceptions are available, doesn't mean every error should be thrown.
It's kind of true. Routing algorithms like Contraction Hierarchies and Transit Node Routing don't precompute every possible A-B pair, but they do store so many "shortcuts" (i.e. the best route between common As and Bs) that a route lookup will quickly converge on one of these precomputed routes for all but its first and last sections.

It's similar to the way that we intuitively navigate by car - if you drive from (say) London to Glasgow, you don't bother weighing up the many options: rather, you take whatever local roads get you to the M1 fastest, then follow M1, M6, M74, and then whatever local roads get you to your exact destination.
The brain has already drained. The lead engineer is not there anymore, even if the body is present.

I suppose, though, the question is whether the brain is just gone temporarily, or permanently. If you think there's decent odds that it's only temporary, you might not want do anything hasty. But if it's permanent, you've already lost them. Cut your losses.
Is there still a shortage of qualified tech workers and do you know if they make exceptions for those that don't meet the required amount of points for immigration? I'm short by 5 points because I don't have a degree (but I have well over a decade of experience in software development).

EDIT: N/M looks like I can get in easily if I'm offered a job by an NZ employer listed as an "absolute skill shortage", so I guess I answered my own question. I'm using this tool for anyone curious: https://www.immigration.govt.nz/new-zealand-visas/apply-for-...
I have not written anything up about it yetas I'm still in very early stages. I've never used Lua before so am learning that as well (tho having used Ruby/Python/JS extensively it's amazing how readable Lua is, just need to learn the APIs).

If I get anything working tho, I'll put together a write-up to go along with the code :-)
Yup. I've solved many a perplexing problem over a five minute cigarette break. Now that I've quit, I find a brisk five minute walk is a suitable substitute, but not quite up to par with the nicotine. I consider it a good compromise though, considering the health risks.
FWIW, attacks like Javascript or SQL injection via logfiles are hardly unknown. Log files are plenty scary. ;-)
Yeah, I think it didn't take much to put two and two together, even without much familiarity with Japan:

https://twitter.com/davidnwelton/status/1241556680833298434
eats popcorn and installs PWA
I don't believe you're actually buying the items from Google but through a merchant linked into the program
I used to say, "I quit every night, just before bed."
Been using G Suite at various companies I’ve worked on for a decade and it’s not improved much at all. Docs, sheets and slides are still limited and the iOS app versions are a joke. All that’s happened is that Gmail gets slower with each redesign. One of the biggest boosts to my productivity was reverting back to the old html only version.
Your comment piqued my interest, so I decided to look it up and find out how much these cost. (I only have 1G, so thought it might be a chance to upgrade.) Plus, it's a chance to open up the conversation a bit...

This was the first non-ad link I found on Google when searching for "10G switch":

https://www.amazon.com/NETGEAR-Ethernet-Unmanaged-Rackmount-...

$349

Not dirt cheap, but less than I had thought. YMMV on "cheap" or "dirt-cheap", so just sharing for a more robust conversation.
The legacy of Kleiner Perkins' 2006 pandemic fund
The expensive part is not the filtering. Actually you can do hundred of thousands of road segments per second (maybe 10x less on a phone). The expensive part is the visited nodes from Dijkstra vs. the much less nodes from the query of a precomputed request. The speed difference can be 50x or 200x, depending on the route length.
There are more uses. I want an appliance for mass storage and light computing needs at home that is compact and uses an efficient processor. I manage enough servers during the day that I don't want to add another one at home to the list.

The processors from Synology and Qnap have stagnated. How much more would it really cost to add to the computing power?

I'd image an issue is price point and how to market these devices. SMBs were the target in the past, but with more infrastructure and more moving to cloud hosted solutions, that market may be drying up.
Project Yin-Yang for SMT Solver Testing
> In Rust, this destructor is perfectly fine:

Sort of; it's very rare. You don't really write free_memory, unless you're doing some very specific unsafe things.

> When that happens, `self.free_memory` will never be called, and memory will be leaked if `panic=unwind`, which is the default behavior.

It will be leaked if panic=unwind and if you use catch_panic. catch_panic is not used very much. Partially because panic=abort is also a valid semantic, and partially because if this Drop impl is called when panic happens, regardless of panic settings, you'll get an abort if self.cleanup() panics.

> Rust supports fallible destructors,

This isn't really true. Fallability in Rust is spelled "Result<T, E>", and drop does not return one. You're talking about a non-recoverable error, which, it is true, Rust does not give you tools to prevent, really. That's because it's very, very rarely used, because the whole intention is to end the current thread of execution.

> At least, I couldn't find any examples in the Rust book / reference / rust-by-example that show in which situations unwinding from a destructor is a good thing to do.

There isn't, which is why it isn't done, which is why your point confused me :)
i'd love some media humility as well. the self-righteous corona-panic bias of the media i tend to consume (npr, nytimes, etc.) is unwavering and nauseating.

the last couple months of experience tells us (imperfect) physical distancing has done the heavy lifting in flattening the curve, and yet the media orthodoxy is still that stepping one unsheathed toe outside your door is just asking for death. this morning an npr reporter openly mocked a governor for even suggesting a loosening of the lockdown. it's brainless.
I'm sorry to hear that! Feel free to email me (patrick@stripe.com) and I'll connect you with the team if you'd like us to do a deeper dive.

But, yes, part of the intent here is to enable us to achieve better ROC[1] in our models and to block more fraud while also encumbering fewer false positives. From our testing, it's very clear that these bot-detection techniques do substantially improve the accuracy when compared to other, coarser heuristics.

[1] https://en.wikipedia.org/wiki/Receiver_operating_characteris...
Well, they're nurses in one of the highest COL, highest taxed locations in the US (based on the "Cupertino" in his username) where median one-bedroom rent is over $3,000 and the "poverty line" is drawn at $100k per year income.
Hey HN, writer of the tweet here.

Although I did a good amount of googling, I'm almost certain that I missed a couple best practices. Anyone else know a few more good ones?

Using these to write an issue for my product newsletter.

Thanks in advance :)
Love the idea and the execution looks great too!

I'm the kind of person who will just keep selecting to view a bit longer so it wouldn't work for me (I need more rigid restrictions on things like Freedom and actual physical locks) but I'm super happy to see new approaches to this kind of thing emerge.
Main reason: C/C++ is compiled and can be faster than Java, basically because you control the memory, object lifetimes and there's no garbage collection.

If C/C++ speed/low-level management is not required, I'd rather go to Python or, if want static typing, C#, than Java. Python gives easy development and broad library support, and C# has more features than Java (one being way better metaprogramming support).
CCPA has a Right to Access like GDPR does, but it does not have a Right to Rectification.

Under both laws, if Stripe claims to be a Processor/Service Provider, then they have an obligation to facilitate sites using Stripe to respond to access requests. But they have no obligation to process those requests themselves. I think CCPA requires they direct you to the actual Controller, but that's one aspect of CCPA that has changed since December.
Even after C2x is finalized, people will be using C compilers that don't conform to C++20 and C2x for at least another decade, so you'll forgive me if I don't hold my breath =)
There's a difference between "an opportunity" and "every opportunity". Not all languages have the same amount of footguns.
It's not redundant at all. Admit it you have updated the title because Stripe is HN's company. I don't remember anyone ever editing posts concerning Google's tracking / privacy issues, for example.
> if the goal is to produce a version with a backdoor, they don't need the source to accomplish that

It certainly would make their job easier (and be a lot cheaper)!

> B: if that was the goal, they wouldn't want to give the original author any reason to know they were asking about it,

That's a good point - unless they were targeting a specific target.
You might be interested in a Chrome extension that allows you to view the source code of chrome extensions. https://chrome.google.com/webstore/detail/chrome-extension-s...
> This data has never been, would never be, and will never be sold/rented/etc. to advertisers.

Until it is.

Google once said their motto was "Don't be evil", look at where they are now.

Careful about those promises.
yes, it's very different.

the health impacts of coffee are significantly less than the health impacts of smoking. Coffee doesn't cause cancer or heart disease. ~480000 americans don't die every year of caffeine-related illnesses. being dependent on anything sucks, but a dependency on something that's not really even bad for you is a lot different than a dependency on something that has a decent chance of killing you.
OK thanks, that's helpful! It looks like a lot of the newer terminal rendering library use "diff" style of rendering like web frameworks, rather than something more stateful like curses?

Is that why you thought it would be easier? You just update the entire page on every action, and it takes care of the details of coming up with the minimal terminal codes?

----

This is only tangentially related, but for those interested in programming in obscure languages, I recently discovered ble.sh which is a 30K+ line TUI for bash written in pure bash! It does basically what the fish shell does, so it has a terminal rendering library, utf-8 decoder, terminal decoder, bash parser with an AST, etc. all in bash.

https://github.com/akinomyoga/ble.sh

Some details from the author on this wiki page:

https://github.com/oilshell/oil/wiki/How-Interactive-Shells-...

Other big shell programs:

https://github.com/oilshell/oil/wiki/The-Biggest-Shell-Progr...

Latest Oil release makes progress on running these:

http://www.oilshell.org/blog/2020/04/release-0.8.pre4.html
Is there any platform in which a service doesn't go down? I hesitate to run a web app in which an outage could happen on a regular occurrence or at moment's notice.

Any strategies?
Somehow it reads like a love letter to Go, but I bet he wouldn't like the Garbage Collector ;-)
That is one reason why each side and the court has a hand in selecting/disqualifying jurors.

Neither side is likely be in love with the jury they get, but adversarial process introduces the fairest outcome we could expect.
> However sed is perfect if you have spare time and want to write basic programs in unnecessarily complex way for fun.

There are certain things that are difficult to do in sed, but are much easier to do in ed. Though ed doesn't have the branch command and labels, having essentially random access throughout the file makes up for it.
> A negative doesn't tell us much (as she could still have it), but a positive is a strong indication that she should be avoiding patient interactions and likely self-isolating at home.

Doesn't it only tell you if you should now be immune once your sickness is over? Otherwise you have to act like you have it if you have the symptoms regardless of the test. Avoiding patient interactions and self isolating should happen regardless, shouldn't it?
Ask HN: Post-Covid tech we need when we reopen
I was thinking what we need when we reopen post covid SIP has been lifted.

1. Robot janitors and autonomous mobile foggers for schools, offices and working spaces.

2. Ag robotics. Guaranteed. This is my domain and I can make a whole long post about what we’d need.

3. Mobile groceries

4. Mobile farmers markets

5. 3 day work week?

6. 3 day school week?

7. Wearables that detect temperatures of people around you.

8. Contactless thermometers/body temperature readers.

9. New ways to create screen entertainment...like movies etc.

10. Virtual entertainment/tourism/seminars etc.

11. Sex bots.

Anything else?
Indeed -- although our business model is, I think, more closely aligned with our users. We serve only one kind of customer: businesses receiving payments with Stripe. Our revenue is a roughly linear function of that of our customers.
Ah my mistake, I made a bad assumption based on the pictures (I couldn't read the language and Google translate wouldn't work for some reason, probably because of stuff I do with uMatrix).

That said, still would have loved to see them use Mintest instead as a platform :-)
I tried to find the factors you controlled for. You wrote

> (including age, experience, hours worked, size of employer, programming languages, and more)

but the "and more" link didn't give me more insight into what controls you used. The interpretation here is super duper sensitive to what those were, so you have just a straight up list of what your controls were? (before & after feature selection)

I am most curious about geographic controls, which are going to be tricky, especially since you can't just one-hot encode them and throw them into double-LASSO. The association might be as simple as "remote workers more likely to be paid in USD" or something analogous, and I'm trying to determine whether/how you controlled for that.
This looks great. I just signed up for Freedom to solve this problem because it works across devices. I'll test your extension as well to see if it does the job as effectively.
Might be in my state, too. Most bikelanes here have a solid white stripe all of the way to the intersection, which would seem to forbid this.