skysight-inc/HackerNews huggingface dataset:
What's the `err` being returned here? I didn't think JavaScript was big on error returning, as might typically be used by a `returnif` keyword.

This, funny enough, reminds me of Go. We've been having debates about how to improve syntax of `if err != nil { return err }`, and many of us (myself included) disliked helpers to immediately return or hide an error value.

The reason is that `if err != nil { return err }` is actually somewhat non-idiomatic. It returns the error value with no additional context of where the error occurred, what is wrong, etc. So something like `returnif` in Go, I think is bad. For reference, this is a more idiomatic example: `if err != nil { return fmt.Errorf("foo bar: %v",err) }` where `foo bar` adds context about the thing returning the error.

So perhaps my Go logic doesn't apply here in JS land, but it seems like a bad keyword, if it's similar to Go.
I leaned quite a bit but unfortunately I can’t say any of it has been specifically useful. I guess I could say I learned to work very very hard and to teach myself whatever I needed to know. Perhaps the price I paid was that was years before I could sit still and enjoy myself for five minutes without feeling like I was shirking.
Also, please don’t conflate paid software with proprietary software. You can pay for either, but only proprietary software is the issue.
Are you familiar with "worse is better"? Sometimes what makes a technology a pain to use is also what makes it competitive.
I appreciate the summary, but it's still a bit unclear to me. What do you mean by "for each website"? Certainly that doesn't mean every website in existence, so there must be some process by which a new website is registered with the hardware and the key communicated to the site?

But if so, I don't see how that solves the problem of "user goes to site X for the first time, mistakenly thinking it's Github." That registers a new entry for the site and sends different credentials/signatures than it would send to Github. But site X doesn't care that they're invalid, and logs you in anyway, hoping you will pass on some secret information.

Am I missing something?
I understand that, but it isn't it still better to store it in 1Password than not have TPOP at all? At least you're still protected against other attacks, right?
100 pages doesn't seem like a waste of paper to you?
Show HN: Convert your annual salary into an hourly rate
Index funds go well with a dollar cost averaging strategy. If it goes down, keep buying the same amount every month so you endup acquiring more at a lower cost... which means when (and not if) it goes back up, you amplify your original gains.

Honestly within the next 20-30 years, if the US economy goes down, it’ll most likely recover. If not, we’re talking asteroid or major natural disasters.
Ask HN: If the laws of nature apply to human brains, how can there be free will?
If consciousness arises from the electricity flows in our neurons and if these electricity flows obey the laws of physics, isn't free will impossible?
The duck.com thing is definitely shitty and needs a solution, but they should be (in both cases, Android and Chrome) able to do whatever they want with their software as long as they don't hurt anyone, and I mean actually hurt, not win over in business competition with their superior resources, services, planning, management, marketing and software - winning over your competitors is the whole point of business and is what we call "business risk" to the other side; are we really using the government to reduce business risk of a competing party and saying it's OK and desirable?

No one has (or should have) right to tell Google how should they color their house. Chrome is there to help with using Google products, that's it, why should they support their competitors for free? Everyone is free to download Firefox and you can even use it to use (free!) Google services. You can even use their source code to build your competing browser. We should be thankful.

I know I will be downvoted. Sad. The respect for private property is totally gone. It'd be nice to have a discussion, but I guess it's easier to downvote than to say "yes, it's OK to demand huge amounts of money at [implicit] gunpoint just for winning in business with a product, not unlike the one I'm making, that never hurt anyone".

Think of yourself, you're making a product and someone comes and says "hey, you need to support your competition, and also pay this huge fine even though you did nothing wrong except for fulfilling your legal duties to your shareholders". Tell me: Are you pointing your CRM SaaS customers to Salesforce? I guess not.

A local company in the Czech Republic (Seznam.cz) has a browser that is dozens of times more uncompetitive. Why aren't they fined? Because they're not as successful? Are we really going to punish businessmen for success? What happened to the "everyone is treated equally" principle?

Why aren't craft breweries fined for selling only their beer and no Pilsner?

P.S. duckduckgo.com is my main search engine.
I tried and failed to find a quality git gui for linux, (coming from SourceTree on OSX). I tried a number and they either had awful UI, lacked functionality, or were too buggy.

In the end I ended up paying for a license to GitKraken and am quite happy.
I'd say that not all censorship is technically bad.

If I start a forum for discussing a particular subject, then disallowing discussion of other subjects is technically censorship but not bad per se, because it keeps the focus of the forum where it should be.
I worked much, much harder as a graduate student than I ever have as a developer, even at startups. At the lab I worked in putting in anything less than 70 hours a week was considered malingering.
No, you were reading the suggested dose off the packet and taking 10-20x the medically recommended dose.
Sophos lleva la tecnología anti-exploit y la IA al campo de batalla digital
If the drug has a non trivial chance of making you lose your mind, and no way to identify that it will do that without losing your mind, it might not be appropriate to ever use it, even if it works well for some people.
I think the issue is that residents of Flint cannot possibly drink water from their pipes that is clean. The low levels could be explained by people being required to drink bottled water (which presumably does not have any lead in it).
Not OP but it absolutely depends on the sub-field, the most glaring difference being between exclusively computational/theoretical research vs "wet" lab, and even withing sub-subfields it can vary a _lot_.

Depending on the PhD program you can be required to take as low as 1 PhD level course per year. The "real" learning takes place by reading papers + lab work.

The transferable knowledge might not be the specific capacities developed (e.g. how to properly plan and manage a multi-step organic synthesis, how to write an SCF routine, etc) but rather to be able to sit down long enough and reason about the world to make hypotheses and test them. That in general is very useful and a skill most workers in the workforce simply lack. I do not say this to be condescending, it is simply my experience that there is a clear divide in the mental processes of people who went through at the very least a Bachelors' vs people who did not. It's not better or worse, it's different.

PS: Anecdotally, I have not completed my graduate degree for reasons of lack of funding. I really enjoyed what I did but TAing 2-3 courses per semester while working a part-time job (or two) to make sure I could get some vacation time once a year, pay the bills and go to the restaurant with my SO just wasn't worth it. As others have commented, money in academia is most definitely a winner takes all game. Experience showed me that in a cohort, it's mostly the top 5 or so students with excellent grades that will get the scholarships. Then you get maybe a dozen or two who live on ~1k a month and the rest well, fend for yourself (even if you have an advisor). I happened to be in a sub-field where professors were broke, so that was it. I eventually quit due to being absorbed in other (boring but paying) work, with now realising it was a mistake but a mistake that brought food on the table. Today I regret and want to go back, but you can't feed a family with $10k a year can you?
It’s a specious argument on its face. “We know that lead is a powerful neurotoxicant, that there is no safe level,” and then go on doctorsplain us why the kids are safe.

And they try to define the length of exposure to when the water source was changed. That might be true but they can’t know that. And it’s likely not true, a water system with lead pipes will have specified an acceptable lead level that can be present in safety samples. Even though there is no safe level.
Language as a Window into Human Nature
Being in the free market is very freeing!
I have another friend that just switched from being an associate professor in chemistry to working as a developer for a bioinformatics lab. He loves it and doesn’t regret making the switch at all.
Then you still have a soiled car to clean.
What are you talking about? This is a static, column-like entry.

Why would a static content need pull-to-refresh? Or comments? Or a slider?

Mobile-friendly is perfectly fine with CSS resolution rules. Or with sticking to the basics and letting content flow within boundaries.

Basic analytics can be done on server side, or, by sending a single request with resolution, etc. as POST or GET params, or even by parsing web server logs. It won't give you that much, but it will give you basics for certain. (See awstats and webalizer from the old days.)

Don't overcomplicate things, none of what you're talking about is needed for an article.
Harmful is wanting to be paid for their work while expecting others to give their work for free.

It is plain impossible to live from selling desktop software with source code available, without having others in the first week come around and re-bundle it, Sourceforge style.
Absolutely not. ISO 8601 exists to facilitate international information transfer, and if you are working in any context which remotely requires that, it should be your first and only choice.
The Tale of FTP at Travis CI
Yes, many people will tell you that, including Jobs:

https://thenextweb.com/apple/2010/06/02/steve-jobs-90-days/
If poisoned is analogous to murdered then the children of Flint are victims of negligent homicide. Either way, there is a very long thread connecting the events of Flint to other decisions made by government officials which probably would not have been made if the area(s) most likely to be impacted where majority white.
Lowering regulated safe levels doesn't make equivalent levels more toxic, however. It's just as bad, but no worse, as it ever was.
Google Brain has been pretty awesome for academia: https://ai.google/research/pubs/?team=brain
"For consistencies sake" (or more likely, to make the numbers look better) the stats have been compiled the same way for a century or more with criteria relevant to an economy mostly employing unskilled manual laborers for factory work and ag work. Because unskilled laborers can find a job if they want in less than a year, they drop off the unemployement rolls after a year. Of course its trivial if you have an esoteric degree and decades of experience to end up in a situation where there are no skilled jobs in your field... at all... regardless how "hot" the economy might be for other people with other skills, and in a year it won't matter anyway as you drop off the list of unemployed and onto NEET or similar status. That is the situation with almost every person in the linked article, they have 2020 skills and experience, no jobs exist for those skills, and they'll will only appear for a short time in unemployment stats designed to track unskilled manual laborers working at a Ford plant a century ago.
With some limitations, at least in iOS 11:

“Besides the fact that the NFC Reader interface can only be fired up from an app, Core NFC [in iOS 11] does not allow for write operations that are required for authentication protocols like FIDO U2F. ...

However, because NFC tag reading is supported, it allows developers to build apps, including consumer facing or purpose-built enterprise applications, with one-time passcode (OTP) support.”

Which is what ‘smiley1437’ and others have effectively stated in other parts of this thread.

edit: added last sentence
Thanks for the link.

Are you sure the details you're seeing in the jpg aren't just artifacts? There's only one thing I see in the middle wall that I am confident is supposed to be there in the jpg.

The nature of lossy compression is that you need to decide where the losses will be. I think BPG is making the right choices.
This is a very entitled and selfish statement.

It doesn't take a huge imagination to realise the unexpected could happen, especially at that age. If you have had a reasonable career in a well paying job then it is irresponsible not to put something away for a rainy day.
> It's not dissimilar to why some (many?) people do a 4-year stint in the military - GI Bill and the prestige of being a veteran after.

I dunno about “prestige”, but the in-law hiring preferences for veterans don't hurt.
> JUUL is like any other nicotine alternative (e.g. gum)

Not exactly so, a distinguishing feature of Juul is that the nicotine provided is formulated as a salt rather than as a free base.
Pet dogs can do it to, if they have a reason to (like their owner taking too long to get them to the dog park: http://komonews.com/news/local/seattle-dogs-rush-hour-ride-o...)
Faculty interviews questions I asked and got asked
It's not a bug, it's a feature: how misclassification impacts bug prediction
When I was a young entrepreneur I started out believing all the advice I was given - big mistake.

I learned eventually to listen to advice and consider it and form my own opinion about whether or not it is correct for me and my circumstances.
Google's guide to text classification
further throwaway comment about lack of reading comprehension and basic empathy education in STEM goes here
Dilbert creator’s ever-worsening P.R. crisis (2011)
And after you do that, the answer is yes, they do get banned.
You can order it on a library computer with a Visa debit card you bought at a grocery store you don't usually go to with cash, and ship it to another address than your own.
Very true. I'm just tired of being called the bad guy.

We might not see eye-to-eye on this issue. I think it's about 90% the fault of those who've lived here for decades and 10% the fault of new people like me (7 years here so far).

I think this is reflective of a more general problem with policymaking in the Bay Area, namely, people do what feels good, and ignore what actually works. I'm somewhere in the middle politically but this puts me way right of most bay area people. And what upsets me is that people just think they can make up their own outcomes here. There are certain issues like rent control, where every mainstream economist agrees it makes the problem worse (stifles development and divides an area into a two-tiered systems of "haves" and "have nots" for the controlled units) and yet we just ignore them here, preferring to vote with our hearts, or as you put it "empathize".

I'm trying to empathize but I'm also trying to solve the problem, you know?
Thank you for all the effort you put in this comment! That's definitely an interesting path methodology you've laid out. I will give it a try. Would you be willing to talk more as I go through the process?
If I eat a crappy sandwich and get diarrhea from it, have I been poisoned? Certainly. Can I reasonably compare my experience with that of Alexander Litvinenko? No. Degree matters. The crappy day I have is on a totally different level from life-threatening injury.

The numbers matter. Our units today are grams of lead per liter of blood. These children had an increased blood-lead content of 1.2 x 10^-7. One study I found[1] cites a IQ loss of 1.5 points for each 5 x 10^-6. Only the extreme outliers - a percentage point of children - passed that level. That's not nothing, but I would bet (without evidence) that concussions/head injuries from High School Football causes greater IQ loss on average.

Lots of factors, fair and unfair, affect how our lives turn out. This one was unfair. It sucked. There are far bigger fish to fry.

[1]https://today.duke.edu/2017/03/lead-exposure-childhood-linke...
I’m not telling people what is good for them. I’m describing the reasons for the creation of the GNU/Linux operating system.

What proprietary software is being used on servers? I believe most Android users don’t know about user freedom, and those that do would greatly prefer a more generic, “pure” Android experience vs the poor quality applications installed by default on most non-Google phones.

You’re confusing the initial ideas that were attributed to open source — seperating the software from the campaign for user freedom — with the free software community. Open source and free software are different movements with common results. The GNU/Linux operating system was built long before open source was a thing, and those founding principles of user freedom are attacked by proprietary software.
If you are offline, how do you transmit the TOTP value-of-the-moment to the location where the protected resource is?
The Milky Way's long-lost sibling finally found ... inside Andromeda
Many “jobs” today won’t even cover cost of living in their areas, making UNDER-employment a valid issue that is too easily ignored in statistics that show lots of people “employed”.

Also, being forced to take on a massive amount of debt just to have a chance to get a certain job makes that job less valuable overall. A company can still boot you out in less time than it takes to pay off debts so you’re really trying to find continued employment to justify an investment such as having to move or obtaining a degree. And of course you might acquire new debts while paying off the older ones.

These situations tie the hands of so many, and that’s not a “strong” economy. If there’s no truly disposable income, you’re essentially expecting people to set aside their basic needs to raise your stock price.
On any given day tiny comets and asteroid deliver to earth many tons of water. The big ones we see a shooting stars. The giant ones are called asteroids. Only the real monsters actually touch the ground. Most burn up in the atmosphere, delivering their water as steam. So, no. Powering all of our rockets with water will not deplete the planet.

I'd be far more worried about the gold, platinum and other expensive stuff that satellites are built from. We aren't getting those back nearly as quickly.
Engine exhaust is full of carcinogens. Given this, it is entirely fair to fine polluters in proportion to the level of harm they cause. Outsourcing the enforcement to citizens is a bit strange, but it is important work and someone should be paid to enforce the law.
I think CS PhD programs in particular can be a little strange. I decided to go back to school to pursue a CS PhD after chatting with a retired mathematician about his PhD. He was talking about how he took classes for two years to explore different areas of mathematics and to pass the general exams, then he decided on a branch of mathematics (topology) and approached a professor in that area to be his advisor. After working through a few textbooks together, this person posed a question to his advisor, spent a few more years working to answer the question, eventually answered it and published the result in his dissertation.

This seemed to be what a PhD was all about, but it's not what I've experienced. I've just completed the first year of grad school, and while the classes have been interesting, the expectation is that you already have an advisor when you arrive (or at the latest at the end of your first year) and you hit the ground running pumping out papers. There seems to be little opportunity to explore computer science as a whole or to work towards one singular result. I recently had the pleasure of chatting with Peter Sarnak about CS graduate education. He said that CS is in a weird spot between traditional engineering disciplines and the liberal arts, and that the need for grant funding causes departments to encourage students to work on whatever projects the professors are leading. But even he seemed a little surprised when I told him that our department's general exam is basically a presentation on the research you've accomplished so far.

I think this is unfortunate. First, because it goes against what I wanted out of a PhD. But also because it makes the PhD not much different than working in industry. If in either case I have to write code for some boss and satisfy my curiosities on the nights and weekends, why would I choose to do it for much less money and worse career prospects? I imagine this is causing the best and brightest to avoid academia in computer science, which seems bad for research and technological progress in general.
Financial Constraints Attack China – Pakistan Corridor
Ask HN: Any of you bad at math and went on to do a bachelors in CS
and went on to have a successful career in Software Development or Academia?
No sensible person is going to be mad with you for asking them to reproduce their issue without local customizations applied if they want you to help them with it.

Write it into your support contracts. Maybe offer smarter customers to review and sign off on their modifications in exchange for a reasonable fee.

These problems can be solved.
If it's invariant then I find it even more disturbing.
Just went to juul.com - it clearly states in a pop-up it's an alternative not to "quit": JUUL Labs’ mission is to eliminate cigarettes. JUUL is intended for adult smokers who want to switch from combustible cigarettes.

Further, it's peppered all around their site: Warning: This product contains nicotine. Nicotine is an addictive chemical.

I don't vape, but I feel like this case is bull.
The 157 gigabytes of exposed data (Ford/Tesla/Toyota)
The 157 gigabytes of exposed data include over 10 years of assembly line schematics, factory floor plans and layouts, robotic configurations and documentation, ID badge request forms, VPN access request forms, and ironically, non-disclosure agreements, detailing the sensitivity of the exposed information. Not all types of information were discovered for all customers, but each customer contained some data of these kinds. Also included are personal details of some Level One employees, including scans of driver’s licenses and passports, and Level One business data, including invoices, contracts, and bank account details.

https://www.upguard.com/breaches/short-circuit-how-a-robotics-vendor-exposed-confidential-data-for-major-manufacturing-companies
Just like the first one. Most U2F web sites let you register multiple keys.

Any one gives you access. So you take one with you and put one in a drawer at home.
In this case I think some people are culpable and should be held responsible. In order to save money, the city made decisions that caused above-average levels of lead to be present in the drinking water. And when confronted they made false claims to reassure the public and underestimate the threat.

I'm gladly, genuinely, that this will not result in a "lost generation," but there is indeed no safe level of lead exposure.
I know blockchain gets a lot of hate on HN, but democratizing fundraising via crypto tokens and taking some power away from Silicon Valley VCs is a massive shift.

The merit of the projects themselves can be debated, but the fact that technology entrepreneurs all over the world have easier access to capital has got to be a net positive.
Gitem tiger!

I wish we could go past idling and start mandating some serious emissions controls, especially on diesel truck and heavy equipment engines in urban areas, but also on all the rest of the emitters.