skysight-inc/HackerNews huggingface dataset:
Lots of good points, but misses one thing. If I have to sell accessibility to my boss, then I need to justify it in terms of RoI for the business, not avoiding being called an "ableist" discriminator.

So lay it out: how much additional time should we expect to pay? If videos have to be close captioned how long will that take? What kind of skills does that require?

What is the typical cost of an ADA lawsuit? How many are filled a year?
Why bother? The comment is a waste of time. Performance profile it and go from there.

If you're doing anything other than using a performance profiling tool on real code with vaguely realistic data you're completely and utterly wasting your time taking stabs in the dark.

Leaving comments that will become obsolete and misleading as the code evolves seems just as bad as pre-optimizing code.

I've been working on a project at the moment where exactly what you've suggested was done, but they'd used todo comments. Last winter they'd had to up to an azure large SQL instance and it'd still max out DTU every now and again (DTU being MS's db performance measure on azure). Client was hoping I might fix a couple more problems as the volume is expected to triple or more this winter.

In 6 days of simply running a local profiler I found and fixed 3 major performance problems, none in any way related to the pointless comments claiming X method needed optimising, none of which were even 1/10000th of the program's execution time. One of those problems was even caused by a previous "optimisation". I confirmed the problem spots by checking the web logs and avg page response times to confirm production was having the same problems.

The site now potters along on a small SQL instance never going above 5% DTU, the worst pages are all being served 5 times faster.

Done the same thing to a site with slow rendering (js problems). Chrome's profiler is good enough.

If you don't know how to use your language's profiler, learn, now.
Sometimes the issue isn't time - it's money and access to schooling. Just because you've had the access, doesn't mean others do - and there are many, many who don't.
You guys are even closer to the russians, and have actually fought with them within the last 100 years...
What's inefficient about UNIX and Windows? I couldn't gleen it from the article.
Winner takes all: Who benefits from game shows and by how much?
These guys also have a cool saling drone which can self-right if it tips over in a storm http://www.automarinesys.com
Show HN: Comment Farmer – for those who only read comments
I am actually suggesting that current mathematical language is not sufficient to describe real world and the language itself has self-imposed structural problems preventing it from achieving higher precision in describing the real world in fewer symbols. Now with computers doing all the menial work we should be able to tackle on the challenge of improving the mathematical language itself stuck with over-simplistic mental models so popular at the beginning of 20th century.

Try to use mathematics to describe an artistic work. Or even precise muscular movement of a human arm in a ballet in its wholeness. Good luck with that!
"That might seem like a small shift (or just sound like sour grapes from an old geezer), but it has been a striking difference in who gets started. For a long time a lot of DJs fit a certain archetype of music nerds.. often the most introverted people at the nightclub."

I'm pretty new to DJing, but that's what I've seen too. The people I know who are hardcore music nerds, introverted, and have found some success doing performances are those who get good with FL Studio and write their own music or do complex premade mixes.
Be careful jumping into webpack and getting it to load everything (JSON, style sources, HTML partials (!)) with require/import. It can wreak havoc with your testing.
Or maybe 'cause the countries with rhinos are generally poor, while China is relatively filthy rich? (at least if you divide the wealth by the number of people with power, not by the "entire total").

When you have malaria, AIDS, racial wars, budget problems etc. it's kind of hard to prioritize endangered species.
The wave gliders are some awesome technology - I've been keeping an eye on their development for a while. Unfortunately they've only been hiring out of a very small pool and it's about impossible to get your foot in the door.
I recommend one dating coach, Doc Love [0]. Read a few of his articles, listen to a few podcasts (episode 12 is a radio interview and great introduction to his approach [1]), and listen to this week's radio show on Wednesday/Thursday (depending on your timezone). Call in if you have a specific question.

[0] http://doclove.com

[1] http://www.doclove.com/2016/07/02/dwp-012-doc-on-the-outlaw-...

Then think and decide for yourself if the way he speaks makes sense.

Also, the way you describe your situation is full of vagueness that makes it hard to give specific advice. This might also be revealing of a lack of clarity in your thinking. You might benefit from improving that. E.g. "trouble forming any sort of connection" -- any sort? You could slap a girl's butt, and there you go, instant connection right there.

But what you probably mean by 'connection' is mutual interest. So you like her, and she likes you. First, if you don't like her, then who cares? There's no problem for you to resolve here. You move on to the next one.

So the real problem is HER (lack of) interest in you. The problem of getting a girl to like you. Are you a likeable guy? Work on that. Two overlapping aspects to work on:

1. cultivating virtues that women find attractive
2. your sales pitch, your presentation, and getting yourself out there

Nothing worthwhile is easy.
Taking Inventory of Docker's Black Box
Previous related article and discussion:

https://news.ycombinator.com/item?id=12338817
in the sense that forth programmers are talking about: that they exist at all.
No worries at all. :)
Why call linear interpolation a "lock"?

It's amusing to see "calc" in CSS. You're only allowed the operators + - * /. No functions. Want to bet people start demanding user-defined functions?
That's because the CIA doesn't hire without a criminal record. And smoking weed alone is probably not enough of a criminal record for the CIA.
Several Project Euler problems require some mathematical nuggets and provide nice motivation to dive deeper (and provide an application right there, too).
From Wikipedia about the comet: "One of the most outstanding discoveries of the mission so far is the detection of large amounts of free molecular oxygen (O
2) gas surrounding the comet. Current solar system models suggest the molecular oxygen should have disappeared by the time 67P was created, about 4.6 billion years ago in a violent and hot process that would have caused the oxygen to react with hydrogen and form water. Molecular oxygen has never before been detected in cometary comas. In situ measurements indicate that the O
2/H
2O ratio is isotropic in the coma and does not change systematically with heliocentric distance, suggesting that primordial O
2 was incorporated into the nucleus during the comet's formation. Detection of molecular nitrogen (N
2) in the comet suggests that its cometary grains formed in low-temperature conditions below 30 K (−243.2 °C; −405.7 °F)." [1]

[1]: https://en.wikipedia.org/wiki/67P/Churyumov%E2%80%93Gerasime...
Haha good call. I guess its not the machinery at the gym that's the problem, but the culture, smell, and general atmosphere.

I have a (wobbly) pullup bar and a punching bag at home, though I'd need to install some bars in the yard to get an acceptable home setup.
Thanks. Preferring original sources, we've updated the link from https://www.wsws.org/en/articles/2016/09/05/encr-s05.html.
I think in those cases, it was a matter of a better-designed, clearer-headed product taking space from a not-so-well-designed product. That's not what would happen here, because Tesla is already the creme de la creme. In fact, Tesla executing so well is the only reason EVs have seen their recent "resurgence" in the first place. And remember that Tesla isn't the first company to make electric cars.

I also think people underestimate by a lot how hard making new things is. It's not just a matter of coming in with more money. It's almost deceptive on Tesla's part that the cars seem simple. But if it really were so simple the Model S would already have competition. And when you're talking about someone who has raised a company that lands rockets in the middle of the ocean, competitors are fooling themselves if they think even just a superficial copy is going to be easy. This is something they have to bring their A game to at all levels.
I launched Office Snapshots (https://officesnapshots.com) just over 9 years ago by telling a few friends, who then posted to twitter, who then posted to digg where it made the homepage several times.

Launching was much easier than the following 9 years spent creating and growing a real business out of what was essentially an internet curiosity.
Cross compile or build dependencies once and install binary tarball for testing.

Compiling on embedded devices is horribly slow, cross compiling is a much better work flow.
>It's typically 150 hours per class and it's not something you do after coming exhausted home from work either.

Assuming you can only invest, lets say, 5 hours on the weekend, it will be 30 weeks per class, summing up to ~1.5 classes per year year.
I'd say that if someone can keep that up for 10 years, theirs understanding of math will be far above the average population...
If you need to write that many tests for such a simple algorithm, you're going to be spending all your time writing tests and your programs will never be finished.

There are many ways of simplifying this. For example:

"You need 3 test cases for one of the numbers being 0. You need 3 test cases for one of the numbers being a negative. ... You need your null case (where all the inputs are 0’s)."

Or, you could just factor out that input validation into a single function, is_valid_length(), that you call on each of the three inputs to make sure that it's greater than or equal to zero. Then, you'd just need to test that function once.
Because the OS you care about on your smartphone isn't linux or ios, it's webkit/blink, and nobody on earth has the capital and the business case for porting a modern web stack to anything at all different. The BSDs are allowed to play because of POSIX, but only if they hop on the video driver treadmill.

In short, there's no money in it, which is the real takeaway from this article.
That is a really good point.

Assuming we are all spawned in our own reality, schizophrenia wouldn't be a problem at all assuming there was no observation made of us by a consensus majority.

As it is the CAP theorem (under the constraint of the fixed speed of light) mandates that there will never be a single truth, and all we can hope for is eventual consistency. Presumably under the constraints of the second law of thermodynamics eventual consistency will be an existential crisis at which point no further observation can occur.

okay time to re-read some of his classics I guess.
And this is the problem with choosing lesser evils.
I've forgotten about dual-clutch transmissions. The Bugatti Veyron, for example, uses a dual-clutch with a fully-automatic mode for performance. I think VW produces a dual-clutch with something like 8ms shift times.
Memory-hard proof-of-work: are they ASIC-resistant?
Now the burka is banned by ISIS
Ok, and then ten of your football hooligan buddies jump in. You are making a mistake in looking at it from a scenario based perspective - one can easily craft any scenario to fit their argument. Also, a ten cop dog pile could certainly kill someone.

> which country...

Any country in which overwhelming nonlethal police force is not unfailingly on hand everywhere... so every country. Consider it from the state's perspective: lose control of the population or kill an unsympathetic troublemaker? History shows us which option is most frequently selected. Good on England for showing restraint, but that doesn't change the fact that every command is suffixed with "... or else I'll kill you."
> Electricity in quite a few countries is effectively zero emission

Isn't the reality that that is the case with extremely few nations? I'm not aware of more than a few that can claim to be at zero emissions on electricity.
You comparison is valid ONLY IF Rhino lives in the area within China's jurisdictional control. Panda and Rhino are different cases. Don't compare apple with orange. Rhino could be saved if it was inside China.

Let me explain:
What BBC failed to mention is that Chinese government put death penalty[1] on Panda poachers. This is one of measures taken by government among others. It could be a human right's violation but it's not significant enough so BBC can choose to be blind.
However to execute anybody who dare to buy or sell Panda skin, it's going too far. Chinese government would not do that other than threatening to do so.Killing drug dealer is acceptable although controversial, killing drug consumer is not acceptable.

Go back to Panda vs Rhino: China have no control over poachers. Punishment on illegal trade alone is not effective enough.

[1]http://www.riel.whu.edu.cn/article.asp?id=26339
That's why I keep them written down in my safe!
This is hardly news: if anyone has dug the org-mode website hard enough, they would have found this: https://www.jstatsoft.org/article/view/v046i03

Link is: "A Multi-Language Computing Environment for Literate Programming and Reproducible Research" and it is basically an overview of org-mode for literate programming and paper writing.
Custom Menus in Google Apps
Ironically it exists in compile-to-JS languages. I think ClojureScript uses Closure (naming accident), but the PureScript compiler does dead-code analysis and removal. Elm doesn't yet, but it's on the roadmap and partially finished.
Given the quality of the software you want your cellphone to get from a network repository and run, a non-preemptive OS with shared resources would be worthless.

We tried the simple approach. It's a nightmare.

(Yes, on single application embedded CPUs simple is great. Those are disappearing faster than glaciers. Everything has different applications running in parallel nowadays.)
Scientifically speaking, a successful mission is one where you've gathered all the data for analysis and can work with it long after the mission is over.

It's like, if SpaceX launches a rocket and it explodes - a real failure would be if they captured no telemetry and had no idea what happened vs knowing everything that happened and being able to replay the mission after the fact. Often times the data is far more important than the outcome.
> and taking a few seconds to comment that this is a low hanging fruit if i need it has helped future-me at least once.

The problem with "fruit" like this is that it depends heavily on the exact version of the JS runtime being used. If the next iteration of V8 introduces an automatic optimization or (worse) de-optimization for your low-hanging fruit, you're left with sometimes odd-looking code for a behavior that no longer exists.

As we've learned from the history of C++, if you depend on undefined/undocumented behavior quirks of a compiler or runtime, you're going to have a bad time. It's better to bump micro-optimizations like this down to a lower-level language. At best, you're buying a constant factor in whatever scaling curve you're trying to beat.
Another way to look at this, is to ask yourself what your threat model is. For example, if your primary concern is losing your laptop while traveling, then writing down your pass phrase and keeping it with other important paperwork (tax returns, property deeds, birth certificate etc) in a home safe or a bank safety deposit box seems totally reasonable. If you have concerns about Protecting your data from law enforcement, then the pass phrase needs to be stored out of the reach of a warrant - a trickier proposition.
When you use the phrase "distinct lens flare", it actually makes me wonder if the lens flare is truely distinct in the manner that each telescope has a different lens flare "signature".

I wonder if it possible to identify telescopes used to take images from their lens flares to any degree if certainty, like profiling on a bullet can sometimes identify the type of gun it was fired from?
They stopped offering the "good" pension to people in 1987.
Scribbling the passwords in a notebook isn't a bad idea (although don't write "My Passwords" on the front cover). The security of physical things is well understood by most humans.
What do people think of this idea. Let's say you want to casually improve your maths knowledge in your spare time. Let's say you find it frustrating how you generally can't just google concepts as you come across them, because the material is usually presented so obtusely and you need to be able to ask questions and have things explained in different ways. Let's say you live in a university town. Let's say you pay a graduate student to just spend a couple hours per week answering your questions, on whatever concepts you're having difficulty with.

Do you think this would work well? Obviously it costs money but I'm guessing the rate wouldn't need to be too high to make it worth their time. They wouldn't need to do any preparation, just have a good grounding in the language of maths.
> Be civil. Don't say things you wouldn't say in a face-to-face conversation. Avoid gratuitous negativity.

This comment severely breaks the above guideline. Please revisit the HN guidelines and do not continue to post like that here.

https://news.ycombinator.com/newsguidelines.html
Yes, the final episode makes little if any sense.
Thanks for the list! I spent most of today's work hours looking for a suitable library to use in a project we are starting.
That was not my point either. It was just an anecdote showing that it's definitely possible to learn the foundations quickly. I have great respect for good DJs.
Don't get me wrong, I do use the profiler a ton, and it's the first thing i reach for when i start noticing issues, but having that little comment about why i did it that way lets me relax a bit. I'd never mark it as a TODO or something that would clutter a tool up with crap, but having it there could help.

A comment out of something I did recently where it's a loop that iterates over an array that's expected to be a few hundred long, and each iteration loops over the array again:

// This is O(n^2) out of pure laziness. Might cause issues if the array gets really big.

It's not hurting anyone, took like 10 seconds to write, and if it ever becomes a problem, the first thing i'll see is that in the function docblock which lets me (or someone else) know that there is no technical reason it needed to be O(n^2).
You could make a encrypted backup with a different password. That way if somebody compromises one drive they still have to work for the other.
I'm not talking about JIT tricks or JS engine quirks, but more like "Heads up, this function is O(n^2) because i'm lazy"
[PT-BR] Online free C# programming course for beginners
Previously: https://news.ycombinator.com/item?id=12426267

This isn't really newsworthy - many such incidents have been posted on HN before, including DMCA takedown requests for content residing on IP address 127.0.0.1.
> Oh, you mean like keeping the lead in sealed lead acid batteries? Or the mercury in fluorescent tubes? Or the radioactive elements in the nuclear reactor?

Misleading analogy. Chip packages are very different from batteries, fluorescent tubes, and nuclear reactors. The only trait those have in common is "contains hazardous materials", so they cannot be used to predict the behavior of chip packages.
Learn You an Elm by Miran Lipovača
> "First, we can reduce vulnerabilities. We in the government can equip you in the private sector to understand actors and cyber criminals and their techniques, their tactics, and their procedures." - From [1]

I realize the alphabet soup agencies don't have much communication between each other, but isn't the NSA hoarding vulnerabilities? Doesn't that go against this "let's work together" shtick?

> "We have gotten good at minimizing your disruption, minimizing disruption and pain to your employees, and protecting your privacy and your legitimate concerns about competitive advantage. We will not share your data about employees or operations. We will have adult conversations constantly with you to tell you what we’re going to do with the information you give us, so that you can make risk-benefit decisions about what information to give us. We will not allow you to be blindsided, because we understand that if we do that, you’re not going to talk to us anymore...We need to make sure you understand how important it is to your competitive advantage to integrate the FBI into your risk-assessment plan. You spend a lot of time, no matter where your facility is, making sure the fire department has a basic understanding of the layout your building, so that in the event of a disaster they can save lives. I suggest you do the same with respect to your cyber threat and your risk-assessment plan." - From [1]

This is absolutely nuts. Assuming they're even true about "minimizing your disruption" - which once they start they'll slam a gag order on you anyways so you can't even cry wolf about their "disruption" - the parallel to the fire department is completely unfit. The FBI's interests are not aligned with yours, he even admits as much in the article! Furthermore, the role of the fire department, in the case of a fire, is to save as many lives as possible. The FBI's role in response to an attack is to not save your data, nor is it to save your business, it's to find and punish the actors responsible. The fire department doesn't go after the arsonist, they're there for a fundamentally different reason. Giving the FBI "backdoor" access is akin to letting the FBI be the judge, jury, and executioner in your case.

> "We believe in the FBI that we need a conversation. If at the end of the day the American people say, “You know what, we’re okay with that portion of the room being dark. We’re okay with”—to use one example—“the FBI, in the first 10 months of this year, getting 5,000 devices from state and local law enforcement and asked for assistance in opening them, and in 650 of those devices being unable to open those devices.” That’s criminals not caught, that’s evidence not found, that’s sentences that are far, far shorter for pedophiles and others because judges can’t see the true scope of their activity." - From [1]

That could also easily be 650 regular American citizens who've done nothing wrong. The absence of evidence is not evidence, and this argument bears a striking similarity to the "nothing to hide" argument.

[1]: https://www.fbi.gov/news/speeches/the-fbis-approach-to-the-c...
I spent the second half of my childhood there. Haven't been back since. I'll note that quantity is different from density (e.g. per capita) of ownership.
Hand optimizing hot code paths is a completely different challenge than minimizing JS overhead for a web page.

Your complaint has very little to do with the content of the article. And, even if it did, it wouldn't make the tips in the post any less valid.
5 things that will make your UX design portfolio unique
'Hooligans' stage 'revolution against rich parasites' at festival
Generating Code Coverage with PHPUnit and Phpdbg
Fullerene Valley
Unless you use a hardware password mgr which can emulate a USB keyboard :)
Huh; Saturn is about 10 AU from the sun, so that would be like having a second star just past the orbit of Saturn.

https://en.wikipedia.org/wiki/Solar_System
There is something clearly very wrong with this data, since is suggests that California has less than 1/10th the per capita consumption of New York, and uses less fuel on an absolute basis than Connecticut. The dynamic range in fuel consumption differs only 2 fold for the top 46 (of 51) states, but then drops more than 5 fold. Those last 5 numbers must be on a different scale.