skysight-inc/HackerNews huggingface dataset:
Using Core ML and Natural Language for Sentiment Analysis on iOS
An example of the best resignation letter I ever received
FYI, the google style guide (or maybe the internal only version) suggests to avoid initialize-then-assign in favor of single assignment form:

unclear_type_thing = ...
if isinstance(unclear_type_thing, list):
group_keys = unclear_type_thing
else:
group_keys = [unclear_type_thing]

statically avoids this problem. In general, prefer immutable variables where possible. Single-assignment form is nice for a lot of reasons, not the least of which is that it avoids this particular gotcha.

And I should add that the "right" way to do this would be to factor this out to a function:

group_keys = coerce_to_list(...)

is much clearer than either block, and avoids the possibility of the issue.
Check out my collection of essays "From the Diaries of John Henry". It's not exclusively about neural networks, also covers ground like quantum computing and complexity theory. Book 3 goes into detail about the development of the Automunge platform for preparing data for machine learning.
More at:
http://turingsquared.com
You’ll need (probably) at least:
-Database connection
-An ORM
-Middleware against attacks / rate limiting
-Caching
-Jobs / workers
-A rendering engine for email and maybe pdf
-Some sort of admin/backend
-Logging
-Validation

I’ve written an API once from scratch. Actually twice. First time in Modena, because it was all the hype, but it was arcane. Then Sinatra, where I ended up creating all of the above. Rails is excellent for APIs.

Rust is nice, but I’m not sure if I’d like it for all of an API. I don’t like go. Crystal seems great, because it’s typed and it’s also super fast.
The best, offline, free business card scanner – follow up emails
The hypersane are among us, if only we are prepared to look
4. Pass the incoming continuation as an explicit parameter to the async function and, as long as it never escapes the function (which is equivalent to the async keyword case) or (recursively[1]) any inline child function, the CPS transformation can be performed without full whole program analysis. If the continuation escapes beyond the ability of the compiler to track it, fall back to 3. Annotations can be used to guarantee the 0 overhead optimization.

[1] true non-tail recursion is a problem of course, but it is ok for the compiler to give up if it can't statically prove that the recursion depth is less than a documented maximum.

edit: rewording
Only if you're an immigrant. If you're a US citizen, you don't need to provide any proof.
I think the people criticizing it are, like me, coming from other languages where blocking on async doesn't make your function sync. The asyncness still ends up propagating to the caller function in such languages.
IMO this is an elitist point of view. Taxing will only serve to make travel a luxury for the elite, as it once was.

The only reason tourism has increased so much is because it's become affordable to the middle class.

The economy will adapt. There will be more tourist destinations to cancel out the increased crowds, with time.

Flying is a great way to travel in an environmentally friendly way. It's far less wasteful per mile than driving.
pip-compile added support for pinning hashes in 1.8.0 (in 2016) and support for non-editable URL dependencies in 3.7.0 (in May).
If you hate python, just write whatever your hearts desires. There is no use in saying "oh python does not let me know when a variable I expect to be list is string", well yes, it is a dynamically typed language, please learn the difference between dynamically and statically typed languages before hating on any language. As a bonus, you can check if a value is list or string and throw your own error, python is versatile, although it probably would be an antipattern and you should go back to writing C.
If you love the good old days of Fortran, then I am sure many Financial Institutions and Aerospace industry or old school mathematicians would love to have you.
patio11 has a great writeup on how to deal with these sorts of problems should they ever happen to you. It is a very good writeup.

https://www.kalzumeus.com/2017/09/09/identity-theft-credit-r...

Short summary:

- do everything in writing instead of over the phone so there is a paper trail

- make sure you are writing to the right people on the other end

- present professionalism

- be calm and persistent. it can be a pain but you can definitely get this stuff fixed.
Optimus Ride’s autonomous system makes self-driving vehicles a reality
Nestle kind of goes above and beyond in this regard... Messing with access to potable water is certainly relevant to climate change

https://en.wikipedia.org/wiki/Nestl%C3%A9#Controversy_and_cr...
People respond to incentives. Currently there are no negative consequences for bad behavior, so people behave badly. It’s pointless to put up a “keep off the grass” or “clean up your dog’s poo” sign if nobody enforces it. I used to live in kind of a touristy spot and there were signs everywhere telling people what not to do, but nobody cared. Police have more important work to do, and regular citizens are too timid and confrontation-averse to correct people’s behavior, so everything just gets disregarded.
There seems to be an increasing problem with automated content filtering systems that filter out legitimate actors. This seems like a very broad problem that is hard to generalize, but perhaps I'm wrong. It also seems like the problem will only get worse as the Internet grows even larger. I wonder what the end result will look like, if this will just magnify the effect of walled gardens.
Did you just generalize all American tourists?

I think people here expect better discussion than this.
Facebook denies its execs gave contradictory evidence to UK government committee
Can you change your Social Security number in USA?
As an aspiring entrepreneur, I have also small side projects which are waiting to be discovered or better to put it trying to see what's worth before I leave my job.

I think you did well about decision time if you have some responsibilities as I do. It's better to wait for a good time.

I consider your story is a success even from the beginning because of your attitude towards accountability and desire to make more games.
I see a couple of contributors from Omnition, so obviously, this company is dedicating [some] resources to OpenCensus. But their website [1] says "We're still in stealth." Am wondering if this is what they are up to or there is more? Anyways, good work everyone!

[1]: https://omnition.io/
It’s faster than python. And crystal is often faster than go.
Do not try this at home. This is so superficial and disrespectful of developers. This is like the alpha/beta personalities or the "eight personality types"...
Serious question: If you are writting unit tests to check types, why not just use a language that has a compiler that does that for you? And if you are writing python with type hints, why not just use a language that uses the types you spend time adding to make your program faster.

Python is great for sharing ideas / concepts, but under some circumstances it seems irresponsible to choose it over other viable options like Go (if you use Python because it's easy), or C# (If you use Python because it's a 'safe' enterprise choice). (Ecosystem specific things aside at least)
Can clean-electric cars and planes help with this? A world-wide hyperloop network, perhaps?

Not sure if "just add more taxes" is the solution to everything.
They are bland and it's not due to lack of salt. I've had slightly better luck lately pre-sauteing the stuff I want to add to the eggs, but nothing that I'm terribly happy with so far.

What are you putting in yours?
If you're giving your SSN to your doctor you're doing it wrong. Just leave the field blank. End of story. You don't need to give them your SSN and the practice has been largely phased out due to HIPAA.
I got slated not long ago for saying that mass tourism has ruined travel for me. Seems it's ruined it for other people also.
This recalled me a joke on monads: "A monad is just a monoid in the category of endofunctors, what's the problem?" [0]

[0]: http://james-iry.blogspot.com/2009/05/brief-incomplete-and-m..., 1990 Haskell entry
Because They Can: The Horror of the Sciences
Wish all the work from deceased-authors would be digitized and available for free. There’s very minimal cost involved and it helps spread their impact on society.
The legacy of this one guy and his cult of personality is pretty amazing. I think this would make a fascinating Paul Thomas Anderson movie.
> Are theses landmines to keep people on the trail or are they left over from the war in the 80's

The idea that someone would deploy land mines to keep people from straying off of a nature trail is a bit dystopian, no?
How to make your fitness tracker count steps more accurately
The German SSN is also trivial to query (if you don't have it at hand your employer can just phone the pension insurance) and is somewhat predictable. It's also only used for tax/pension purposes; if you steal mine you can basically only gift me money.

The closer equivalent in Germany is probably the Personalausweisnummer (ID card number). Basically everyone has an ID card, and sometimes the number of the ID card is used as age verification or is written down as part of identity verification at a bank or similar. Assuming you verified that the ID card is genuine it's a good unique identifier that survives name changes; however its usefulness doesn't come from secrecy but the forgery-proof piece of plastic it's printed on. Also you can change it at any time within a few weeks by just getting a new ID card, and it naturally expires every ten years or so.

I think a fundamental problem in the US is the requirement to verify identity via phone. In Germany that's just assumed to be impossible without a prearranged passphrase; when opening a bank account you verify identity by showing ID at the bank or a postal station or by waving your ID in front of a webcam during a live call.
The phrase doesn't mean that masculinity itself toxic. It means that our culture's expectations for men hurt them and others. For example, the masculine ideal we hold men to is an expectation of stoic emotionlessness and self-sufficiency. As a result, many men feel a pressure to push through emotional difficulties, and feel a deep shame when they have trouble doing so. Some might even feel a deeper shame for seeking out help when they can't do it on their own, so they avoid involving loved ones and professionals that could help them. Men commit suicide nearly 4x as much as women do.

Toxic expectations for masculine traits permeate throughout society, too. A lack of sensitivity and tenderness is one such expectation, along with aggressive sexual promiscuity. This might lead some to view men as questionable caregivers, especially to children. Some men feel a pressure to avoid careers involving children, like teaching, which robs children of positive male role models. One can even argue that it robs children of fathers when courts prefer giving custody of children to their mothers.
I imagine Instagram in particular has really changed the destinations that people choose to go to over the last few years. I'd be curious if the problem is more concentrated at the top e.g. the most "Instagrammable" destinations have become ever more crowded and are attracting a larger share of leisure $.
But you force them to compete with you. And this kills people as well:

France does not have as much available land as the US does, we cannot squander it away. We can't afford a spill like the one in WV from a few year back, it would kill hundreds of people. and destroy a high percentage of our lands. I'm pretty sure the spill have never made to the national headline: that's how much land you have. In France we would talk about this for years.

Our farms are way closer from the cities than yours, we cannot afford to feed our beefs and chickens with antibiotics and just hope for the best and pray it will have no impact.

Please understand that we don't have the same population concentration, nor the same money to hide/fix the issues caused by the farming industry.
But at that point why not get something for they time you spend adding types and just use a different language?
> the almost infinite patience

Well, not that much, the protests in question could probably be far more peaceful if the CRS had a a lighter hand on the tear gas grenades, the flash ball guns, the sticks and everything.

Just to illustrate, the last year protests saw the reappearance of the "Voltigeurs" (cops on motorcycles with sticks and flash ball guns), these units were disbanded in the 80ies after the death of a student.

And the casualties list is pretty significant, 2 deaths, several hundreds injured (including a few lost eyes and hands).

Are these protests borderline riots? yes. But the Police response is also quite bad. I'm personally wondering if it's a conscientious political decision to have an heavy hand to breed violence in order to then 1) discourage other people from protesting 2) discredit a movement.

Granted, France is not yet at the level of China, we don't see opponents to Macron being jailed or disappearing (even if some developments are quite worrisome).

The State has a legitimacy for violence through its police and military forces that individual citizen don't have, and that's a good thing. But it also mean that the State must be extremely cautious about its use of violence to keep a moral high ground, specially in the context of a Democracy.

Lastly, History is generally not very kind on violent repression of protests and riots, even when at the time, the vast majority agreed with said repression.
Well, your(and my) parents would download an .exe file to play Farmville and run it with admin privileges by clicking yes on the user account control popup. So, maybe a web browser is not the safest place for parents...
I guess managed bug bounty programs
For reference: I do about 7GB of image traffic/day for placekitten (a similar service) for about the same cost ($6/mo). I do resize images.
> why in the world is Wells Fargo not liable for damages?

Surely the identity thief, the actual criminal who committed fraud, should be liable?
There is a saying that the difference between poetry and math is that poetry is about giving different names to the same thing, and math is about giving the same name to different things.

Grokking monads really requires the adoption of the mathematical mindset of finding commonalities in things that at a first glance appear completely different. Tell an average OO programmer that lists, exceptions, dependency injection, and asynchronous execution all share a common structure, and they will probably give you a blank stare.

Of course, just the fact that abstracting over those things is possible doesn’t mean it is useful. In a pure FP language it might be necessary, but why should I bother with weird mathy things in my imperative language that has side effects and global state? You really have to start by explaining why composability is such a nice thing to have, and that gives the motivation for various FP patterns that are, fundamentally, all about composability.
To fully electric.

As the article says, both companies produced these as regulatory compliance vehicles. Now they're shifted that effort over to electric because the incentives are better for them.

The only companies trying to make hybrids for real are Toyota and Honda. Everyone else is just pumping out low effort compliance vehicles. It is hardly surprising that these vehicles haven't been hugely successful.

I'd love to buy an electric vehicle. Unfortunately prices remain impractical ($30K+ for a sedan) and the federal tax incentive is both expiring and regressive (the richer you are the more you'll get back up to $7.2K, after the new standard deduction ($25K) I'd need to earn near $90K with two dependants to get the full amount).

They're great for those living in California or similar. Our state offers no incentives and actually stabbed people who installed solar in the back (decreased the buy-back amount to almost nothing).
Part of the reason gambling is particularly regulated is because the random nature of payouts can make fraud undetectable to the victim.

It's not like I could play the Powerball lottery enough times to prove jackpots pay out at the advertised rates. If the draw was conducted on some opaque, unauditable remote server, they could fiddle the draw so jackpots over half a billion dollars all went to the CEO, and it'd be undetectable.
In Ukraine this Person-nr is private data.
What form would that assistance take? Kicking bad politicians out? Rewriting bad laws? Investigating crimes, arresting and prosecuting criminals? Picking up the trash?

No, that would just eleminate the idea of a local government. The only thing they can really do is throw money around, or some glorified variation thereof.

Centralizing power is risky (a lot of things can go wrong), ineffective, and promotes division.

Imagine Congress deciding on one kind of car for everyone in the country -- people in manhattan don't want any car, people in the suburbs want a sedan, outdoor people want a truck, etc. It would be a huge argument dividing everyone in the country into factions and nobody would be happy. It sounds ridiculous, but that's what happens to a small extent with each new federal law that gives more power to the central government. And look what's happening.
The concept of identity theft is a massive scam that not only let's financial institutions shift losses to other people, but then then they get to double dip by selling ID theft prevention solutions.
There is research suggesting that "sin" or "vice" stocks outperform, as many people refuse to touch them, therefor creating an artificially lower demand which corrects itself by those who don't have the ethical dilemmas being able to pick up greater amounts of undervalued shares.

https://www.robeco.com/en/insights/2017/09/research-reveals-...
The interesting question this article poses is whether there's a system in place for the government to revoke vanity plates it's already approved. Can they force him to change the plate?
NULL strikes again, this time IRL!
> I dislike how this stuff "infect" all your code calls

Unlike in JS, it really doesn't. In Rust, at any point you have the option to run a Future returned from an async function to completion in a sync function (which blocks the thread) and stop the spread of async.
There already aren't! I've been trying to book something at the Grand Canyon and can never get lodging there. It is unprecedented what is going on. Forgetting summer, you used to be reasonably able to book something in the Fall.
Cultural Factors Are Affecting Older Chinese Americans' Health
> Later, [GM] found some success with the Chevy Volt, a plug-in hybrid that runs on electric power but also has a backup gas engine. The car was too expensive, though...

As a happy Volt owner (I've yet to met one who didn't love theirs), I can't help but wonder if "expensive" is code for "lost service revenue because the thing is too dang low maintenance and reliable". ;)
IMHO, people should not suggest books they have not personally read as it creates a bias trend towards books which names people have heard somewhere (mostly books by a bigshot author or from a big university/company). So, if you are suggesting a book, please at least mention if you have read it or not.
This is funny. I wonder what would happen if you could put a 'NOT ' in front of your plate number... would everyone but you get a ticket?
> For nearly 2 years I spent every night after work coding and designing it.
Seems to me if you want to say that touristing has a point of diminishing returns, there's nothing wrong with providing a first-hand account.
> For static type systems, you sometimes need to bend backward
> to make it accept your code and it's not very useful before
> the code grows large enough.

How large need a program to become, before the advantage of being allowed to write fishy code is counter-balanced by the types becoming untractable and the code impossible to refactor in any meaningful way?

This is a serious question. Some years ago, apparently Guido Van Rossum though 200 lines would be already quite an achievement [0].
Based on my own experience, I feel that 99 out of 100 errors thrown at me at compile time are valid and would have caused a crash at runtime (ie. when I do not expect it and have lost all the context of the code change). And I get about 50 such compilation errors in a day of work, so I guess I could write without the compiler safety net for about 10 minutes. That's my limit.

One could object that a 10 minutes program written in python can accomplish much more than a 10 minutes program written in Java. That's much certain! But then we are no longer comparing the merits of compile time vs runtime type checking, but two completely different languages. Of course it is easier to write a powerful/abstract language with runtime type checks, while writing a compiler for a powerful language is much harder. Still, since (and even before) python/perl/php were invented many powerful compiled languages have appeared thanks to PL research, that are almost as expressive as script languages. So it would be unfair to equate runtime type checking with lack of expressive power.

Now of course tests are important too. Compile time type checking does not contradict testing, like you made it sound somewhat in your message. Actually, if anything, it helps to test (because of test case generators based on type knowledge to exercice corner cases).

I'm sorry if all this sounds condescending. I am yet to decide whether I should allow myself to sound condescending as the only benefit of age :)
But I'd not want to sound like I'm upset against anyone. Actually, I'm happy people have been using script languages since the 90s, for the same reason I have been happy that many smart people used Windows: my taste for independence gave me by chance a head start that I'm afraid would have been much tougher to get based on my intelligence alone.

And now that static type checking is fashionable again I'm both relieved and worried.

[0]: https://www.artima.com/intv/pyscaleP.html
or matatus in east africa.
Seems like a brilliant idea to me, hopefully it forces them to fix their shitty software. I would chip in to crowdfund this guy's battle for sure.
But that onus is on the OS, not the browser.
When I was a foolhardy college student I figured out that if the cited vehicle make on my city parking ticket didn’t match my registration, I could get appeal the ticket via a web form very easily and succeed every time.

Naturally I removed the badges from my car and put on different badges from another manufacturer. After a while they started to cite me as “other” and the trick no longer worked.
> How was the ad not “false advertising“?

It was, literally, but the US mostly doesn't prohibit false advertising and the claim at issue wasn't false advertising but breach of contract.

Whether something is false advertising and whether it forms a offer that can be accepted to form a legally binding contract are two different questions, and the case illustrates that contract law is not a substitute for regulation of false advertising.
I just installed 18.04 on a new machine and ended up being greeted by an Amazon shopping icon that restores itself for every new account made.
Where are you located? The Chevy Bolt is being offered with pretty good incentives. Between those prices, gas savings, etc. Getting a Bolt might make sense.
It's based on research work on building an extensible interpreter [1]. It should be... well, extensible. Though I'm not sure what was changed in lua between 2.5 and 5.3, maybe it's not that simple.

[1] https://www.cs.tufts.edu/~nr/pubs/maniaws-abstract.html
> all kinds of morons have kids, and they're fine

So, so true.