skysight-inc/HackerNews huggingface dataset:
_The csv version returns an iterator over a closed file_

That's why method/function naming is critical and underestimated. Without having worked with python too much:

_json.load()_ is a load: implies the action is done on return. I understand there's nothing to do after it, other than use the return value.

_csv.reader()_ clearly returns an object that it's going to be used to traverse the underlying, so the underlying must remain open. Implies a stateful operation to me.

Besides, examples are clear:

https://docs.python.org/3.8/library/csv.html#examples

Classical problem of wanting to use The Perfect Abstraction.
PROBLEM:

I want to be told what book to read next.

SOLUTION:

A reddit like site but for books only and the order is based on votes and reviews.

How am I doing? https://AudioBookReviews.com
"The errors could cost the operator nearly a quarter-million dollars because of approximately 50 questionable wagers, "

$250k to Los Vegas betting industry is a pittance. I think this headline 'largest...in Vegas History' is silly.
It almost seems like for-profit health insurance is a bad idea.
Yeah, FPC can target an absurd collection of systems; can C# handle that level of portability?
There's hardly a shortage of liberal media outlets, does the world really need another one?
The point of his use of those statistics was to say that this phenomenon, while bad, is a small part of what the United States is. I didn't read it as minimizing the issue, as such. It's certainly one of the biggest issues we face today. And that's a great thing - that one of our biggest issues is such a small statistic. It certainly hasn't always been that way. Our biggest issues used to be much larger statistics. Slaves were more than half the population in some states. The point wasn't a dismissal of police violence as a non-issue, the point was that a reduction of the US to that fact is not a useful framing. Not for the victims, or for anyone else.
Protectionism by itself may not be a very bad thing - it was the top-down planning mechanism tacked on top of the protectionism that did India in. Every bloody aspect of industry was regulated by the government, which was counterproductive.

For example, Bajaj scooters could only manufacture a fixed number of scooters, and that number was decided by a bureaucrat with no idea of how much demand there was. The waiting list for these scooters stretched to 10 years at times! [source - interview with Chairman of Bajaj Group here https://www.hbs.edu/creating-emerging-markets/Documents/tran... ]
> Real name requirements deter dissidents and vulnerable people, not populist bullies.

That's where I'm coming from, for sure.
Density functional theory is still quantum mechanics, but operating on the expected electron density itself, rather than the many-body problem of all the electrons. It's pretty good, but not fast - around a CPU-minute for a medium-sized molecule.

I'm working on approximating the electron density using just the nuclei positions and some neural networks. The throughput is tens of thousands of times higher than for DFT. But since the model itself contains little or no physics, the training data has to be very clean and complete.
Delphi has those too, and with latest iteration (read May 2020) they added inline variable declaration (which on Free Pascal will raise a syntax error)
Have you read the Three Body Problem trilogy, by any chance? It talks about the dark forest theory, except in terms of alien civilizations.
I think your argument is legitimate, but I do think there's a distinction between naturally letting words fall out of favor and forcing it. Words naturally fall out of favor when people simply stop using them - this is a process as old as language itself. This is separate from a group of people unilaterally changing commonly accepted terminology and getting upset and censoring when people don't go along with it.

The former, nobody thinks about - see words like "tubular", "rad", "phat", etc. The latter is rather Orwellian, as it's about enforcing a behavioral change on people. People (at least the ones I know) generally hate this, especially in the West.
What I understood is that this like what TypeScript is to JavaScript (or to be more accurate Haxe to the few languages it transpiles to). It's a new language that will transpile to different SQL syntaxes instead of the method chaining approach of your typical ORM (that'll likely also include model abstractions over your tables and maybe also migration managing).
Its not an income tax, its introduced as a business tax on payroll. This is important as the WA state constitution prohibits non uniform taxation. This is what has preempted most of the previous passion based “tax the rich” schemes in Seattle.

Edit: A further clarification. A payroll tax, like B&O taxes, are paid directly by the business. They are not paid by the individual. This is a very important distinction because this tax would (presumably) be applied in the same manner to all business operating in the city of Seattle. It would not be a variable tax across individuals themselves.
By the Python standard library already does contain things that don't follow best practice. See: logging doesn't abide by PEP 8.
> Moreover, according to this best practice, it's impossible to write the csv version correctly.

No, it's not:

def load(filepath):
"""with a different file format"""
with open(filepath) as file:
return list(csv.reader(file))

This both uses csv.reader and fulfills the required contract correctly.

Yes, it's tricky to both follow the “assure a resource is closed” pattern and return a lazy iterator over the external resource which you open.

If you are going to lazily iterate over a resource and do the context manager pattern, you have to do the work within the context manager.
This is the same person whose story, "Restoring and MIDI-fying a Baby Grand Piano" made the front page of HN a couple weeks back:

https://news.ycombinator.com/item?id=23562784
South Korea’s 16-Year Fight for a Green Onion Breakfast Cereal
> Corporations are people too.

I think it is more accurate to qualify this. Corporations have been ruled by the US Supreme Court to hold many of the same rights as people. It's also important to give that decision some context. Polls since Citizens United have shown a majority of people in the US oppose the Court's decision in that case. Just a couple I found quickly poking around:

- https://www.bloomberg.com/news/articles/2015-09-28/bloomberg...

- https://assets.documentcloud.org/documents/4455238/campaignf...
> How can filtering infringe free speech? People can say whatever they want, but why should I have to hear them?

Simple. There's people agitating for free speech on idealistic terms, and then there's people agitating for free speech because they have an agenda and want a captive audience.

You can even see it in this comment thread. Take a look around and see if you can find any greyed-out comments that are arguing against the pro free-speech crowd. Down-voting is censorship via mob rule, so that should be twice as distasteful, but yet you see greyed out comments. The folks doing that are the latter, and not the former.
So what if livestreaming ecommerce is hot?
You should take a look at SingPass[1], which is the Singapore government’s version of this. Most people[2] with a valid Singaporean ID card can register for it, and we use it for all kinds of stuff - signing in to government websites, opening bank accounts, checking in for covid contact tracing, etc.

1. https://www.singpass.gov.sg/

2. As far as I know, people on migrant worker visas aren’t allowed to use SingPass.
No the risk takers are taking all of that into account and dismissing it as acceptable.

It is a difference in values. You are arguing as if presented with same data that you have there is only one obvious and rational conclusion, but that is simply not the case. If someone has different values they can come to a very different conclusion.
Awesome! I've seen hackathon implementations of this idea, but yours is the best I've found so far. I'm curious about automatic activity recognition. Will be interesting to train a classifier on head and hand pose to count sit ups or pushups automatically. Might hack around with this later in the month. Thanks for MIT licensing it!!!
It's trivially easy to do if you run something like:

git rebase --exec "test_command"

where test_command is one or more commands that you run to test the code for that commit. I typically do this for unit tests and integration tests.

If the tests fail for some reason, you can amend the commit to fix the test and then run

git rebase --continue

to test the next commit.
No the risk takers are taking all of that into account and dismissing it as acceptable.

It is a difference in values. You are arguing as if presented with same data that you have there is only one obvious and rational conclusion, but that is simply not the case. If someone has different values they can come to a very different conclusion.

Take Sweden for example, many people view it as a success and the higher than the rest of the EU death rate perfectly acceptable.

Life isn’t life to some if you can’t live it.

The data isn’t black and white. Of course you are comfortable forcing people to behave, Canada is fairly totalitarian in policing of speech, etc. Would never fly in the US.
Doesn't go nearly far enough. Most other types of insurance other than health insurance can discriminate based on genetic data.
I'll add a couple other notes...

It's interesting to see GT's experience here get picked up specifically and I think partially its just randomness, partially the other issues in Georgia, partially the particular failures of GT/the university system of Georgia.

Basically, GT is in the same boat as many other places...working on the assumption that students will pick the university with in person or take a gap year before doing online. So everyone, to some extent, is bluffing each other. Now it's a race to see who admits they were wrong first. You are starting to see it (or have already seen it) from private universities mostly because they have total control over their financial state and (in some cases) an immutable reputation that won't be damaged (think: MIT, Harvard, etc.) by being conservative. For everyone else, it's a crap shoot.
Even in places where concentrate is delivered, they add the sweetener (HFCS, sugar, fruit juice, etc depending on location and product) at the bottling plant.

Coke is about 10% by volume sugar, and the pre-mixed syrup with sweetener (like used in soda fountains) is usually prepared for a 5:1 dilution ratio in a soda fountain. The concentrate that goes to the bottling plants is basically straight phosphoric acid and caffeine with some secret 'natural flavors' that is usually diluted at more than 1:100 ratio with the sweetener.
Liberal here means classical liberalism, not just "left-wing":

https://en.wikipedia.org/wiki/Classical_liberalism
https://www.youtube.com/watch?v=SsoOG6ZeyUI&t=110s
> they're paid in stock?

In the US RSU grants are treated as income. They literally show up on the W2 for the full value of the grant.
Ask HN: How to Get Product Management to the Next Level?
I am an experienced Software Engineer. I have done a lot of PM work, but more from the engineering side. How can I get to be a world class Product Manager? Which courses should I take? Which books should I read?
For static websites you don't even need that. The OS disk cache kicks in and it becomes more about bandwidth than disk performance.
You should follow the rules when you're attempting to claim someone else is not following the rules.

> Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something.

> Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize. Assume good faith.
Chronicle Map: Replicate your Key Value Store across your network
The Coronavirus and Project Fear 3.0
Onelook Thesaurus with the Query “Bamboozle”
Every time I share this, someone shares some tool I haven't heard of, and I've researched and tried a lot. It lines up with my experience working at software companies where every 3 weeks or so there's a thread asking for diagramming tool recommendation, and every time it's dozens of mixed responses of "I've used X but caveat A,B,C".

Thanks for sharing! I'll check it out.
That's being a little pedantic IMO. From a practical, user-facing perspective, the CSV library Reader takes in files. And they know this, which is why the documentation specifically calls out gotchas related to passing in a file object and the example code shows how it should work with a file object [1].

[1] https://docs.python.org/3/library/csv.html#csv.reader
When people build their own platforms, the censorship minded mobs go after their upstream providers, like aws and visa. So this "you can always build your own" is not 100% true.

Also, mobs do go after you for your online speech, so the possibility of a platform that keeps your speech up does not preclude the possibility (and fact) of censorship
That's about sex discrimination being extended to transgenderism by Obama. Removing that is not at all what you said with "remove health care from the transgender". Exaggerating something to make it sound worse than it really is is dishonest if you know it's wrong or shows your opinions are misguided if you believe it's right.
Compiler optimizers are full of surprises going both ways: good and bad. And details like this can probably change from version to version and get affected by compiling options. I would also expect that performance is higher priority than code size, generally, so missed opportunities like this might go unnoticed and unaddressed a long time if they don't show up on performance benchmarks.
When [country] enacted protectionist polices, [protected industry] thrived!
Smokers die earlier, and die before incurring major costs from dying of old age. They are cheaper to insure than healthy people who live long lives.
I'm definitely against any tweets calling for the murder of anybody, I'll say that. But the "anti-harm" movement is not as benign as you think. For instance, see the firing of David Shor, who merely tweeted a study comparing the effectiveness of violent and nonviolent protests. There's an instance of someone who tweeted AGAINST harm, in that he was advocating for nonviolence. Yet he was still censored.

This article does a good job outlining some of the craziness: https://www.theatlantic.com/ideas/archive/2020/06/stop-firin...
Or -- we institute much stronger limits on advertising. We blame tech companies for being complicit, but they are following advertising dollars. Without advertising dollars, the whole thing dries up.
That's because the problem wasn't Uber or Lyft, but the ridesharing business model itself.
I was listening to an episode of Joe Rogan, and the guest considered himself a conservative.

Discussing the differences between a conservative and a liberal he used an analogy of a fence, where a liberal would want to take it down and a conservative would want to leave it up.

It got me thinking if this was true or not.

A little digging and I found this page:

https://en.wikipedia.org/wiki/Wikipedia:Chesterton%27s_fence

"Although the purpose of this fence is not obvious, there may be valid reasons for its presence."

(I'd like to think I'm in the mindful middle somewhere)
On my team, we will open a PR with a logical set of commits. As reviews are posted, we will address those comments by using fixup! or squash! commits (using the title of the commit we want to amend). fixup commits are used for code changes and squash commits are used for commit message changes.

In the end before merging, we'll run

git fetch orgiin

git rebase -i --autosquash --keep-empty origin/master

git log -p --reverse origin/master..

git diff @{u}..

The first command will update the remote tracking branches. The second one will start the interactive rebase and order the commits based on the fixup! and squash! tags we used during the review. The third one will show the commit messages and associated diffs for the branch so that we can check that things make sense. The last one is to verify that we didn't inadvertently introduce a change during the rebase (though we will see a diff if someone else merged a PR into master before this rebase).

will verify that no diff was introduced during the rebase compared to the upstream branch as referenced by the PR.
Similar to this?

https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing
I did not see it mentioned in the article but one reason delusions are so hard to treat is that they are an investment into a belief system and people are hesitant to discard that investment of time, effort, and credibility for fear of a loss with nothing to show for it. That line of thinking is a complete absence of objectivity due to sunk cost fallacy stemming from a behavior of loss aversion. Therefore new evidence, particularly conflicting evidence, are irrelevant.

https://en.m.wikipedia.org/wiki/Sunk_cost
Yeah, and you also see people being paid to direct the flow of human traffic at the super busy stations.
Problem statement : learning Front end web development frameworks is hard

Solution : Abstract the problems and automatically generate framework code.

Demo project : https://github.com/imvetri/ui-editor
Forecasting the Weather with Neural Odes
The guy has a single web app. Not sure using kubernetes would make it easier.
It will have the effect of increasing premiums for all participants, so I'm inclined to agree.
Particularly for insurance such as LTC, if you can determine (for yourself) definitive need for the insurance - you will absolutely buy it. But at that point you are not seeking insurance because you have certainty. Rather, you would be cheating everyone that has purchased "insurance". All other participants will soon cease opting for LTC insurance due to expense unless they too have knowledge of definitive need.... LTC companies pay operation costs, salaries, bonuses, become inslovent, file for bankruptcy, and no one else gets anything.
These aren't relevant to whether or not Trump is "extreme right." A politician who is more in line with them (like a Ted Cruz or Paul Ryan) would be more right-wing.

Ted Cruz and Paul Ryan both voted for the tax cut that reduced revenues but didn’t reduce spending - increasing the deficit.

He wanted to repeal Obamacare completely, but yes, that would include coverage for transgender people

It wasn’t just about repealing ObamaCare.

https://www.npr.org/sections/health-shots/2020/06/12/8680730...
That's great. Glad someone is having that experience.
This is a beautiful idea. A great way to cut through some of the fear and uncertainty that I know many new developers face.
You'll notice that this is people on both sides - only when it benefits them.

> It's mostly the same people who say "freedom of speech only applies to government censorship".

This is a different issue and is a lot trickier logically. But it essentially is true.
That and most developers are in Japan, where rollback doesn't show any real benefit because the infrastructure there is small and fast enough to make even the worst netcode viable.
Well, looks like I need to ditch the SD cards on my Pi4 based robot! Seems like this would improve reliability over SD cards too.
Did a Chinese Hack Kill Nortel?
Look up the limitless number of examples of government overregulation and failed policies for the past hundreds of years in every country in the world and you'll see why it isn't that obvious.
Yes, they've been doing this for at least 15 years, IIRC. They claim they have "really good security"!
The wild economy of tabletop board game funding
It loses the on-demand navigation, but my reasoning for deciding to support PPT is that when you're presenting, you'd want to present it sequentially anyway, instead of jumping around. The PDF versions are linked nicely, as an alternative.

I actually started this marketing it as "diagramming tool for systems". Talk about trying to be as generic as possible. I want to focus on one segment first, but totally, a side effect is that flowcharts enriched with data acting as a dashboard would be really beneficial to non-technical people to understand e.g. analytics funnel.

Thanks for the suggestion!
THE SITE IS BACK UP!
(I can't edit the title.)

Credit to the extremely kind Antoine Grondin @ Github for helping sort it out! You can find him here: https://twitter.com/antoinegrondin?lang=en to say thank you

Also thank you to everyone who reached out to try to help me with my server issues :)

P.S. If a mod sees this and could edit the title that would be great.
TIL: about the Demoscene[1], "an international computer art subculture focused on producing demos: self-contained, sometimes extremely small, computer programs that produce audio-visual presentations. The purpose of a demo is to show off programming, visual art, and musical skills. Demos and other demoscene productions are shared at festivals known as demoparties, voted on by those who attend, and released online."

[1] https://en.wikipedia.org/wiki/Demoscene
Sounds like a good idea.

(And just FYI, the pricing section isn't rendering properly on Firefox 77)
If you are interested, I can connect you with a consultant in the field who works with VCs and young biotechs. Really great to work with and if he can't help you out, I am sure he knows someone who can help you.
In fairness, I am unsure whether I could complete this challenge for Kansas, but I can for Taiwan.
Oh man, I've dreamed about something along these lines too. I'd kill for algebraic data types, including option types instead of weird ternary logic for nulls.
So removing discrimination with regards to health care discrimination wouldn’t be paramount to removing health care in a conservative state if a provider refused to treat someone who was transgender?
> Virtually all drugs come out of an NIH-funded lab, but so do a huge number of other drugs and therapies that don't work. The vast majority of things that come out of research labs have no hope at making it past a phase 1 trial.

None of this has anything to do with the fact that the government is footing this bill.

> The drug companies do a lot of R&D to validate the ideas of drug discovery teams and to test for side effects. They spend incredible amounts of money on this, much more than the labs that initially proposed the drug.

Yeah, they do a lot of that... with taxpayer money.
Coding Dojo Bootcamp Review
> So, yea, the CSV reader does a bad. But so what? That is a deficiency of the CSV library

No, it's not. It's a deficiency of the proposed use of the CSV library, which is just dumb.

Leaving a dangling external resource open isn't an irrelevant implementation detail.
@GithubStaff:
The new two columns design made my eyes sick. :(
Please bring back the simple one column design.
I'm on mobile...am I missing something?
I mean, those are both really important to remember - while society needs to find its balance and have respectful, intelligent conversation about tough issues, there is no obligation to give clearly bad people the benefit of the doubt within the community, nor is there an obligation to give objectively horrible people a social media platform with which to spread hate.
THE SITE IS BACK UP!

(I can't edit the title.)

Credit to the extremely kind Antoine Grondin @ Github for helping sort it out! You can find him here: https://twitter.com/antoinegrondin?lang=en to say thank you

Also thank you to everyone who reached out to try to help me with my server issues :)

P.S. If a mod sees this and could edit the title that would be great.
> It's obvious the company is making the call, it doesn't matter if it's through an intermediary.

Of course it's obvious, but with McKinsey called in, management can deflect blame and claim "it's the consultants that deemed your job being redundant, not us, we only called them in to cut costs"