skysight-inc/HackerNews huggingface dataset:
Teach concepts before code.

For example, if I'm teaching kids what variables are I bring out a bunch of boxes with labels on them. The boxes represent the computer memory. I can put numbers in the boxes. I can put other things in boxes, strings and so on.

I find a lot of people get confused by the difference between a variable name and its value. This isn't helped by the the fact that almost all programming languages use equals for assignment.

Only after showing them the concept thoroughly do I introduce code. I treat code as "telling the computer what I want to do" and the activity as "what I want to do".
I am simply building a Python container with about ~15 dependencies installed via pip and some ~50 MB of static assets added to the container. The base image comes from Docker Hub (hosted on S3/AWS CF).

If the final destination of your Docker image is GCR, it is really fast. You're basically not waiting for your build box to start up. Based on my experience the build starts almost right away after you push to the source control system, whereas CI systems like TravisCI/CircleCI spend quite some time preparing the build env (i.e. container) and running some preliminary commands, collecting artifacts/logs etc. Google Container Builder is looks like it is designed to build containers (not to run tests) and it does that quite fast.
“Sexual Harassment Doesn’t Happen at My Company”
The war on drugs doesn’t work, certainly not in the US:

https://en.m.wikipedia.org/wiki/War_on_Drugs
It's not really a double standard. A share of stock and an option to buy such share of stock are two distinct products, priced differently.

E.g. MSFT share price today is $64.27, a contract allowing you to buy a share of MSFT on March 17, 2017 for $64 is 83c.

Investors buy their shares in full, cash-on-delivery, so to speak. Would investors like to be able to buy call options in the companies at pre-specified valuations for just 1.5% of the price and complete freedom to exercise (as well as forfeit) those options four years down the road? You betcha.

Not only do they need to pay significantly less to participate, they can spread those bets around and cover roughly 60x more companies, if they choose. Or double or triple down on this one specific company. Or just sell their option down the road in case it's the next FB or Uber without ever needing to put up cash.

Both investors and employees get to buy their shares for cash. Employees though do get the luxury of time, and can not only benefit immensely from stock's rise, but also save their hard-earned money in case of a dud. Investors do not get the latter option. Therefore they seek compensation elsewhere, usually in the liquidation preference department (which is moot anyways if the liquidation value is $0).
Make Customers Happier with Better Designed Mobile App
Very similar to an index fund, except this one is indexed in stock of this company.
Thank you, this made my day. Figure 1 is a classic.
No mention of how efficient a storage method, but certainly a simple solution and potentially cheap.

One interesting aspect that is not mentioned, as wind is a shift in air pressures, then if there is a low to high shift, the efficiency will be slightly lower than a high to low shift. Presuming the air is pumped down during the former air pressure. Not sure of the effect upon storage capacity and maybe negligible or balances out. But still a factor.
Relationship Hacks: An Allowance System for Adults
How does it work for monorepos with multiple docker images?
I actually think there is room for a "human-assisted collaborative captioning" effort. You'd start with the results of automated speech recognition, and then you'd add in Google Docs-style collaborative editing of the closed captioning / fan subs.

Imagine if you could save a video by watching it and correcting the typos in the existing transcript.

But there's no way it'd be a viable business. (That's Rev, and it costs $1/minute, and it doesn't even give you a .srt file that you can upload to YouTube.)

Plus, you'd have to deal with spam/abuse, and creative uses of captions (e.g. niconico).

I tried building a prototype of this in college, but I couldn't figure out how to make it work financially, so I had to take a paid summer internship at YouTube.
"collective goal"? What's that, and what collective do you represent here?
Regular Circle CI. I do not have access to the v2 beta. For comparison here is the same Dockerfile built with Circle CI, it took 3m30s: https://cl.ly/0U1c2Q1n2S20/Image%202017-03-06%20at%209.50.31... and Google Cloud Container Builder: https://cl.ly/3E1c3l1L2Q3o/Image%202017-03-06%20at%209.52.01... although Cloud Container Builder does not list how long each step it takes, it totals 1m10s.
I tried setting up Docker deploys to K8S today on CircleCi v2 beta. I had a horribly difficult time getting it to work because running docker in the docker runtime is nearly impossible to do in a way that is compatible with Bazel.io. I ended up having to use the VM mode and it just felt like Circle v1.
It's good when it gives a name to what you're doing.

connection = establish_connection_given_these_conditions(cond1, cond2)

Vs the many lines of checking, creating the ConnectionFactory, passing in the the conditions to the ConnectionConditionFactory, and generally having a new statement every time you want to blow your nose. What were we doing again? I dunno.

I've used it. I'll defend it. It's better than comments when done properly as above.
spellcheck? I have no need for this, I am not a witch.
What If Donald Trump and Hillary Clinton Had Swapped Genders?
That is useful, but how do you manage to remember the mappings? I want to know what random string corresponds to what service without having to search my password manager.

The best of both worlds would be random local part + a Chrome extension that manages the mappings. The Chrome extension can then replace the local part in Google Inbox with the corresponding site name.
This Reddit thread reveals why the algorithm works: https://www.reddit.com/r/golang/comments/5xrjh0/got_lucky_im...
Sounds like a scheme to improve enrollments for lower quality schools.
From the original press release [0]:

> “As a global integrator of container logistics with the ambition to digitize global trade, we are excited about this cooperation and its potential to bring substantial efficiency and productivity gains to global supply chains, while decreasing fraud and increasing security,” said Ibrahim Gokcen, chief digital officer, Maersk.

> This promotes sustainable transport by integrating shipping processes and partners, and establishing evaluation frameworks through increased transparency and trusted access.

Seems like the benefits are a) transparency, and b) distributed. This is Maersk leading the effort, but it seems the plan is to get the entire chain onto the same system, which basically requires decentralisation.

Edit: The New York Times article [1] lays out more details in their reporting too.

[0]: http://www-03.ibm.com/press/us/en/pressrelease/51712.wss
[1]: https://www.nytimes.com/2017/03/04/business/dealbook/blockch...
Book linked in the thread.
We just open sourced our monorepo which uses Bazel - https://GitHub.com/staffjoy/v2

It has some major speed benefits. But it's not turnkey. Setting it up is hard. Its dep management in Go isn't compatible with lint, vet, etc. We never got node modules installing with Bazel.
I like it.

Where did you get the prompts?
Or did you create them yourself?
How do you judge which content then is released uncaptioned because it was impossibly expensive, and which because the creator prefers to keep their money? How many venues or historical buildings would have wheelchair ramps and lifts if they didn't have to or because it came down only to whether they could justify the cost?
I always wonder how these "five conditions ANDed together in an if" make it past code review in general (i know thats not where the actual bug was). I don't care how brilliant a programmer you are, but mistakes in those are very difficult to grasp.
Sorry to harp on about design, but:

1/3 [0] of the real estate needs to be covered by a banner, really?

[0] http://imgur.com/sk95RPB
The problem is that it's tough to push code and have it just start running on a server. Docker makes packaging and running easy. Google has docker hosting. There's still a missing intermediary of building and registering the container, and this seems to solve that need.
Good question, I actually hit this problem. In one of my projects, I build 3 microservices out of a single GitHub repository. So I had 3 different Dockerfiles. What didn't work out for me was that Cloud Container Builder does not let you specify the Dockerfile name (but it lets you specify the Dockerfile directory, so if your dockerfiles are in separate dirs, you're good; however it's not very helpful if you need to host all your dockerfiles in the repo root.). If you think providing a custom Dockerfile name would be a useful feature, please let the folks know here. I am sure they would be interested in your feedback.

That said, I was easily able to unblock myself because Cloud Container Builder does not actually rely on Dockerfile. You can in fact specify build steps arbitrarily, like Travis CI (or other CI services) by writing a json/yaml file. See https://cloud.google.com/container-builder/docs/api/build-re... and https://cloud.google.com/container-builder/docs/api/build-st.... In that file, you can specify what you want to build and how you want to build it. It is quite flexible.
I would agree with the statement that "Sexual harassment and "microaggressions" are not systemic problems for the tech industry. They don’t happen to the women at my company. Diversity is also not systemic because I see a lot of women at my company." What I assume is being perceived as "microaggressions" is just real life happening to young persons that have been coddled up until joining the work force. The reason women complain about it more than men is that men receive no sympathy and so learn quite young how to deal with other people.
As someone who now professionally uses go on a range of mips devices, I, for one, do care about any binary size increases!
The complaint that Cal got said that the autogenerated Youtube captions were inaccurate enough to be considered discriminatory.
Why were they (Prenda) caught? Did they try shake down someone powerful?
The Most Attractive Cities to Move to for Work
Hello Moderator
I need a contact id on which I submit my vulnerability report.....
Any C++ static analyzer worth its salt would catch this. I don't think this is so much of a C++ language issue, but more of an issue with C++ environments/compilers not doing static analyzing by default, and/or the authors of this software not being aware of the fact that they need to use static analyzers.
By coincidence, I was viewing this today:

http://bestfunny-videos.com/video.php?vid=ObZDipKRH0c&13-558...

My understanding of court procedure is limited, but it is pretty clear that the appellants are making some pretty incredible decisions that surprise the judges, including insisting that the proceedings are a criminal case with the possible outcome that the appellants would face life imprisonment for criminal contempt (17:11 - 17:45). I gather this is high comedy for lawyers.
That is actually common to all Mesa descendants, not only Oberon.
What's the advantage to having these under water? Aesthetics? It's gotta be way more expensive to have them under water.
I see my friends leaking out of Facebook, mostly into Snap. It is free from the dead weight of the past problem that plagues Facebook.
Obligatory reference to https://cryptome.org/ap.htm
You don't, that's why it's tough. I truly feel bad for those who need these accessibility options and don't get them, but I also feel bad for those who need this content and don't get it. It's really a no-win situation.
By all means, if crowdsourcing can work in this case, that would be a great positive example of community taking responsibility.
You're right. My contention is that the language itself should no longer accept such code, it shouldn't be relegated to an ignorable warning or a 3rd party tool that isn't run.
Bureaucracy and profit-maximization drive what was academia away from archivism and towards digital impermanence (linkrot).

Plus, the whole "old equals bad" consumerism rationalizations.
Atomwise (YC W15) Is Hiring Infrastructure Engineers to Design Medicine with AI
Plinkett is saying that my brain noticed that the animation correctly accounted for the movement of the lamp. That is not an argument against not bumping the lamp in the first place.

I'll bet dollars to donuts that Howard the Duck, Waterworld, and every other big budget bomb you can think of has a lamp bumping in it. They were wastes of money in those movies, and if those movies had been successful like Who Framed Roger Rabbit, they still would have been wastes of money.
A collection of awesome browser-side JavaScript libraries, resources and things
Yes, major improvements could be made by changing the defaults of the tools that beginners use. I edited my original comment to be more clear on this as well.
The phonebook was a paper-based system, with significant costs to look up and act on information at scale. You needed the books, the researchers, and the time to find and act on specific numbers.

The numbers weren't widely cross-referenced across multiple other identifier databases: shopping, driving, voting, location to 1m accuracy and 30s time precision.

Every household, small business, mafioso, or political operative didn't have a full copy of the archive, and the ability to deploy it at a moment's notice.

Or in short: scale and costs matter. In fact they dominate all other effects.

Your objection is both meaningless and betrays a profound failure of undrestanding and sympathy.
Speaking from Australia, I find the Singapore solution barbaric and totalitarian, no better than the new Philippines president.
It likely is a problem given that shipping is often a many to many relationship between multiple providers -- which one do you trust to provide data lineage of the entire shipment? Nobody - use a blockchain
That is one of them! :) To be honest, I bought "Authority" but never got around to reading it - I am not an ebook author myself so just put it aside until one day I decide to write a book.

The other books of his that I found very useful (and inspirational) are "The App Design Handbook" and "Designing Web Applications". They are here: http://nathanbarry.com/books/
I hope someone has said this:
"Perhaps it is a biased sample? Defective missiles are being sent to the "known" sites to make you underestimate their capabilities."
Well then that's doubly ironic, because most startup employees would probably much prefer to have shares over options. I know I would.
Keen.io secretly laid off a large amount of staff recently across-the-board. They provided severance in exchange for fresh confidentiality agreements. Here are some examples of the various people and departments affected by the lay-off and all let-go simultaneously:

Director, People Operations & Facilities

VP Engineering

Sales

Tech Writing and Dev Engagement
I'd argue that any pre-allocation should be seen as a bug and so the number of bugs on average is about 1 higher in those cases.
> junk mail

Back in the day, junk mail often had "Return Service Requested", and senders had to pay return postage. So we would tape address labels to cardboard-wrapped bricks, and mark them as "moved with no forwarding address". But that doesn't work anymore.
I did a ctrl+f for 'environment' and didn't see anything.

So, this is me replying to say that government regulation might be seen as good or evil depending on your point of view and the context, but I hope members from both sides would agree that the health of the environment is rarely a consideration in businesses.

Not being able to repair something sucks for the environment, because people will throw the whole thing away (like a phone), when just a small part is broken (for example, the microphone!). Sometimes an external (not-naturally-market-occuring) stimulus is required to incentivize things like repair.
> You still run afoul of countless computer security laws

Only if you're citizen of/doing it in a country with such laws.
> If employees are rational and well-informed [...]

That's a biiiiiig if. In my experience, this is definitely not the case for the vast majority of startup employees I know.
Super annoying, I've been getting many of the Marriott calls from a local number (408) lately. Not sure what I can do besides not pick up unknown local calls.
This has existed for years: http://amara.org/
How would that work? A forked/execed subprocess somehow forcing chdir() in it's parent?

Guessing it isn't terribly useful.
Nice idea, but I'm afraid those who are too lazy to structure their code are not likely to give Vim a chance either. A plugin for a popular IDE would be more beneficial.
The thing about business/education/training books is that they don't have to be priced like conventional non-fiction books. You sell them on the value they provide.

If you give me a system that will help me become a full-time programmer in 12 months, making $75/hour, then I'll gladly give you hundreds of dollars for the book.

Out of 100, at least 3 people will see that value. If you charge $50/month for the book/course, and have a list of 3,000 people, you are effectively looking at a full-time income
That's the equivalent of a 32 branch switch statement in one line.

So only 31 other cases to test for, now let's hope they did all those tests.
Safari popped up a dialog that said "This page has been blocked from automatically composing an email." with an option to allow it anyway
But you can frontload all the "income" and taxes upfront. That's what an 83(b) election is: "Hi IRS, I'd like to pay/recognize this taxable event all right now, even before it vests".

So you get 1000 shares x $1/share = $1000 of income, and you pay taxes on it.
Actually p-values are used way less often in Bayesian statistics than frequentist ones. The latter rely on statistical tests more.

Bayesian stats tend to use likelihood ratios or Bayes factors instead of p-values for hypothesis testing.

The trick in all cases is that you're comparing to expected results given some prior distribution. Most people use a dumb prior (e.g. Gaussian) and then they're confused when the numbers make no sense as data is multimodal or heavy tailed, thus mismodelled.
You don't need a mountain
Hahah! I didn't notice that!
Three years of a relationship
As per HN Guidelines:

"Please don't post on HN to ask or tell us something (e.g. to ask us questions about Y Combinator, or to ask or complain about moderation). If you want to say something to us, please send it to hn@ycombinator.com."

https://news.ycombinator.com/newsguidelines.html
IIRC, a John Doe defendant got a young aggressive lawyer hoping to make a name for himself to defend him pro bono. The lawyer started digging hard, refused to just accept a dismissal, and went on a counter-attack that eventually dug up enough for other parties to join in.

Huh. Phrased like that, it sounds like a John Grisham novel.
You want a USPS form 1500 (https://about.usps.com/forms/ps1500.pdf). The intended use is for reporting obscene mail but the decision about whether something is objectionable is left up to the addressee (Rowan v. United States Post Office Department - https://www.law.cornell.edu/supremecourt/text/397/728).
Huh, I hadn't thought of it quite that way before. Something to ponder. Most ETFs seem to just vote the default, but I think maybe some pass through proxies.
You're absolutely right (to my surprise), it gives:

test.cpp: In function ‘int main()’:
test.cpp:13:11: warning: statement has no effect [-Wunused-value]
a == b;
^

But only after enabling a warning that is not on by default. -Wall and -Werror should be the default.
Yes, you're correct. But it's best to walk away from companies who try to own you to that level. If a good company respects and wants you, they are completely OK with giving up some of their leverage in order to gain your trust as well as they can.
This makes no sense if you want the missiles to work as a deterrent. I'm quite sure North Korea isn't actually planning on going to war (and winning it); they just want to give the impression that going to war would be too costly for their enemies. Giving the impression that their missiles don't work is counter-productive in this context.
Location: India

Remote: Yes

Willing to relocate: Yes

Technologies: React, Node.JS, Python, Ruby, Android, C++, gRPC, SQL, MongoDB, Java, CSS, Javascript

Resume: https://drive.google.com/file/d/0BxKnnfKOek1IdkFINk5tZXpsWU0/view?usp=sharing

Email: harshvd95@gmail.com

I am willing to learn new things.
If a company really believes that, they're free to back-load their grants and vesting. The reason they generally don't do this is because "dead equity" isn't a real problem. I'm nearly certain most employee options go unexercised. For one thing, most employees don't vest their full grant before they move on. And those that do often can't afford to buy it anyway.

The one exception might be the handful of employees that joined before the first big round, who might still be able to exercise at a negligible strike price. Again, I don't think it's a real problem in the grand scheme of things.
When the option arises, it is nice to run the test vectors against the diversity of generated output, C, Ruby, Etc. One of those backends could have very well alerted on the error.
I'd like to see the other two lists: where to retire if decamegabuckionaire and where to retire as a middle-class pensioner.
It uses the site title versus a URL/domain. Which tends to favor shady sources.

And, it's often below the fold.
John Ford is the only four Academy Award director. He didn't win those awards by making unnecessary work. He focused on what mattered.
I think we're going to have to disagree. It isn't just an issue for beginner code. Experts make such mistakes, too. Expecting them to not make mistakes is unrealistic, and sending them back for more training isn't going to work, either.

I can't think of a reason any modern language should accept such code.

If you're interested, I recommend the series "Air Disasters" on TV. Each episode analyzes one crash, where investigators determine the cause of the accident, and what the corrective action should be taken. Often, it comes down to "how could a pilot with 10,000 hours experience make such a mistake". While it would be easy for investigators to blame the pilot, often they find that the mistake was just too easy to make, and they recommend changing the design or procedures or both.
And 14 hours ago:

UCBerkeley Will Delete Online Content (insidehighered.com)

https://news.ycombinator.com/item?id=13803564

72 points | 77 comments
You can finish the same work in a short time because of your experiences, you don't need to work longer hours, 40 is not old, it's the beginning of getting old, just keep moving.
No. Zcoin implementation != Zerocoin. Also, I wouldn't say that Green is a "mastermind behind Zcash". He is one of the team members. Zooko Wilcox is generally seen as the "main guy" in the Zcash team.
Galaxy S7 Photo Recovery
Yeah, that's just weird. Paid time off is part of the total compensation package; it would be strange if a candidate didn't ask about it.
You are getting attacked for poor wording.
It's reasonable (and there is precedent) for something like a blockchain fork that voids the value of bad coins. You'd need some implementation of majority vote, though (a jury of your peers, weighted by hashrate?)
Outlier results come only from methodically searching for, taking chances on, embracing, and building on outliers.

Search for the things that no one else sees or has the vision or boldness to turn into an outlandish success.

Take a chance. Live a little. Dig deep down for your inner crazy.
Build a game or something he/she likes together, that's what I'm doing, and very smoothly.
New time zone converter with Zoom.US integrated (iOS)