skysight-inc/HackerNews huggingface dataset:
C++ still cannot compete with proper high level languages in this area.

C++ is precisely useful because it's a better C: it has a C-like subset, and works directly with C data structures and function call interfaces. Plus it has features to do that kind of programming in a safer, more managed way.

I would absolutely not use C++ for anything that isn't in the area of "this should be ideally written in C, but that would bring in undue difficulties, risks and time".

The more C++ moves away from its focus of being a language for writing low-levelish systems middleware, the more it loses its relevance.

> Also, you have a ref counted pointer thread safe pointer!

Had those in 1997 using draft ISO C++, thanks.
So in other words, he's dangling a carrot that's about two months away?

BTW, if you're dealing with "contracts" (implying a consultant/independent contractor relationship), then he's not your boss, he's your client. That's a big difference.

The main thing here is that he's asking you to commit to something that he's not willing to commit to himself. To me, a measured, non-commital response would be in order. Keep it polite and let him know that you'd be happy to discuss a contract for the summer once he's able to commit to one.

No point in aggravating the client but this is a business deal (selling your time and expertise). Treat it as such.
>do you really think those jobs will return given the cheapness now of solar and natural gas?

In the county and state where I live (Somerset County, PA) the majority of coal production is metallurgical, so we are more sensitive to the demand for steel than to the price of natural gas.

That demand is on an uptick, so there are 4 new mines planned for PA (2 in my county)[1]. But there was a similar spike in demand back in 2008, which didn't end up making much of an impact on employment. For example, PBS coals, whose headquarters I drive past every day, had ~600 employees in 2008 when they were bought by Severstal (a Russian steel company), who planned on adding ~150 more jobs.[2] In 2014 they were acquired by Corsa Coals (from Canada), who laid off about 130 miners in 2015.[3]

TLDR: no I don't think those jobs will return.

[1] http://www.coalage.com/news/latest/5510-4-new-met-mines-plan...

[2] http://www.redorbit.com/news/business/1531216/russian_steelm...

[3] http://triblive.com/business/headlines/7530395-74/mines-coal...
We are definitely cheaper! I don't know if you compared to the Shapeways PLA option, but that's actually us doing the fulfillment ;)

We're cheaper than other 3D printing services because we took a different approach and use lower-end commoditized 3D printers, rather than commercial or industrial machines. The machines we use are cheaper, and use cheaper (open) materials, and require cheaper maintenance and repairs. We're also optimized for volume and cost-reduction as a company, where as Shapeways is more optimized for variety and low-volume orders.
>"But the business objective may call for 'a quick iteration for demonstrative purposes'."

Most developers I've worked with are smart enough to know quick hacks are fine in small doses, but if they become the norm you end up with a great deal of technical debt, which can ultimately cripple the productivity of a company.

From the perspective of managers who aren't familiar with technical debt, the 'quick win' is always going to seem like the best option. It's up to the development team to strike a balance between 'the quick way' and 'the right way', and whilst some managers may get frustrated on the occasions when 'the right way' wins out, in the mid to long term they benefit too, though they may not understand why.
Agreed. My last two jobs had no line length limit on commit messages (or code) and it was great. But culturally, C# developers don't live in an 80-column terminal window, either.
Yes it is! It replaced hundreds of billios of meaningful social connections with trillions of shallow connections that most people would be better off keeping at arms length. Not that there's anything wrong with staying in touch with your highschool buddies, but seriously, do you need to laugh at every joke and fawn at every selfie they post?

There's a good reason why friendships would either grow stronger or grow appart over the years. It is called Dumbar Number.
I can think of at least one edge case where things might be different.

Emergency re-entry, time to put on your suit, but everyone else is dead.

But anyway, I'm just saying it would be interesting to know why certain design decisions were made, what trade-offs were considered, requirement constraints.

Saying something like you reckon they didn't think of that doesn't add to the conversation.
Definitely! Not all of what Theranos did is public, so I can only share from what I know, but our approach is highly focused on trained computer vision algorithms - whereas a lot of previous approaches have relied on coulter counting (mentioned in the post). You can check out how we performed in the data section http://Athelas.com/data
You don't need blinding for cancer trials
I think SSL certificates need to be replaced. Security can NOT be designed with the 'good guy' in mind. if it can be broken at all we need an alternative.
The article says it uses computer vision to detect parasitical cells like Malaria or Trypanosoma. No black magic, they explain their techniques in detail. I think the difference between them and Theranos is that Athelas is detecting things in extremity blood which is valid to test for, whereas Theranos was looking for things that needed rich heart blood from veins.
Or anyone who wasn't born a citizen. My wife came here when she was 2 but that makes her less of an American than someone who chose to be born here, apparently.
Ah thanks, I missed that.
Thank you. It is exactly what I have asked for.

The Python best practice: you do not need "correct directory structure" to start programming in Python--there is no boilerplate structure to create (and that would require a tool): REPL, Jupyter notebook in a browser, a single file (module) is enough in a simple case.

There is no single "correct directory structure" for more complex cases either e.g., a Django web app and Ubuntu's Appindicator would probably have different structures and it is likely that there are tools that create corresponding project skeletons such as "django-admin startproject mysite".

Usually, the packaging/deploying are not nice & neat and differ depending on your project, chosen platform--either you follow an example or you have to study a never ending list of incomplete/contradicting standards/semi-documented rules & conventions--it is unrelated to Python (even if tools such as Ansible, Salt are implemented in Python). Naturally, there are things that can be improved.

btw, reStructuredText is a great text format for documenting Python projects (it scales from a simple README.rst to a whole book). You can always convert README.md written in your favorite Markdown flavour using pandoc or a similar tool. Markdown is great for a short human-generated plaintext content common on Github, Stack Overflow.
Good questions. My non-expert understanding of the situation is:

(1) There are no great tests for it. (For women, pap smears can detect pre-cancerous growths, but don't generally test asymptomatic infection or identify the strain, I think. And there is no available test for men. More specialized testing does exist, and is used in medical studies, but is not available to the public. I'm not sure of their cost or accuracy.)

(2) Vaccinations are expensive. (I think on the order of a few hundred dollars, not even counting patient time.)
"On my Facebook feed most of it has centered on the idea that it is "okay" to punch neo-nazis now."

This is especially disturbing because the epithets "nazi" and "fascist" have increasingly become synonymous with "somebody I really don't agree with", rather than a description of somebody who admires the tenets of National Socialism.

That isn't progressive; it's Jacobin.
Definitely a different thing. This is a HTTP 2 frame, sent by a client
Reframe Your Way to a Happier Workplace
Huh...? There are standard treatment protocols.
It's probably faster, easier on the battery, and seems to follow the macOS UI guidelines.
It says it is a clinical trial, but I can't find the actual study, only another press release:

https://www.sciencedaily.com/releases/2016/09/160914095610.h...

We really need to wait until the clinical trial publishes its results to know whether or not the treatment works. This person might have recovered naturally without any treatment.
Hi HN! Athelas cofounder Tanay here. Happy to share any more stories/answer questions about the post.
Anecdotally, I see much commercial and personal use of Haskell. Have you looked at the other comments in this thread?

Alternatively, why do you think there aren't small fun toys and/or commercial usage of Haskell?
A lot of the licensing systems I've encountered cause problems if you're selling to big corporations because they don't work well in locked down environments. Whatever you use needs to have an alternative way.

The other question is the ease of integration and the cost of the software - if you spend weeks integrating and troubleshooting it, I'd be tempted to forego it for anything but a high-value product.

Keep in mind that troubleshooting it will be an ongoing process when some paranoid BOFH has locked down the user's machine to the extent that they can't do anything, including their job.
To keep riff-raff like you and me out, of course.
This is also the default in Rails with the asset pipeline since 4.0.
The negative effect isn't of protesting policies like this. It is of doing so in a way that is not fair to Mr Trump, and which allows other people to dismiss your protest as the whining of a not particularly sophisticated child.
Though I don't agree with how you're saying what you're saying, I am curious how this issue is planning to be addressed.

As a SF resident, let's say I took a bike home to hayes valley. I'd say there's a 90% chance your bike will get stripped/stolen each night (assuming it's locked well with a good lock) in this area. Would I be liable for this as a user?

Also I can't imagine this would be profitable if there isn't a revolutionary change in theft-prevention. Perhaps it's the GPS component will help discourage thieves?
An exceedingly clean code
Going from the minimum 5+ people at a time staffing a McDonalds to 1 is going to be a big difference.

Eatsa is sort of illustrative on the customer service side; they have a single person out front to open & close the restaurant, monitor the restaurant and clean up as necessary.

I think that getting rid of the last person will be tricky with anywhere that has a dining area, but I could imagine a drive-through McDonalds with no employees, or a McDonald's vending machine.
I have no love for most the major CAs I've interacted with, but this feels wrong, though I can't quite pin point why.

Perhaps just a general feeling that all the internet eggs are being put, one by one, in one single alphabet basket.
What a mess, but perhaps a happy ending. I made two other comments prior to this one in this thread, but then I read the Bugzilla thread [1] opened by Facebook that laid out the issue and Mozilla's defense. It's a highly enlightening read; I can't recommend it enough.

To summarize, the issue is that Facebook was seeing a higher rate of cache validation requests than they'd expect, and looked into it. Chrome produced an updated chart documenting different refresh behaviors [2], which is the spiritual successor of this now-outdated stackoverflow answer from 2010 [3], and in response to Facebook's requests, and have re-evaluated some of their refresh logic.

In this thread, Firefox was being asked to do the same, but they pushed back on adding yet another heuristic and in turn proposed a cache-control extension. Meanwhile, Facebook proposed the same thing on the IETF httpbis list, where the response not enthusiastic [4], largely feeling that that this is metadata about the content and not a prescriptive cache behavior, and that the HTTP spec already accounted for freshness with age. One of Mark Nottingham's responses [5]:

(...) From time to time, we've had people ask for "Cache-Control: Infinity-I-really-will-never-change-this." I suspect that often they don't understand how caches work, and that assigning a one-year lifetime is more than adequate for this purpose, but nevertheless, we could define that so that it worked and gave you the semantics you want too.

To keep it backwards compatible, you'd need something like:

Cache-Control: max-age=31536000, static

(or whatever we call it)

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1267474
[2] https://docs.google.com/document/d/1vwx8WiUASKyC2I-j2smNhaJa...
[3] http://stackoverflow.com/questions/385367/what-requests-do-b...
[4] https://www.ietf.org/mail-archive/web/httpbisa/current/msg25...
[5] https://www.ietf.org/mail-archive/web/httpbisa/current/msg25...
How do you deal with bike rebalancing?
"If you are building products that intends to connect to a Google property moving forward you need to at a minimum include the above Root Certificates."

The foundation of a more secure web apparently requires you to trust Google with the entire internet, using their properties as leverage to force it to be so.
An issue like embryonic stem cell research is inherently political in the US, both because it often requires government funding, and it contradicts the religious beliefs of many people. I don't think it is a stretch to assert that attention is being called to these kinds of advances right now at least in part because people are concerned about the future of such a politically controversial area of research under a new, somewhat unpredictable administration.

So this was not an attempt to "atttibute everything to overt politics". Embryonic stem cells, however, are an overtly political issue in the US.
How did evil evolve, and why did it persist
[Kickoff Talks] Udacity AI Nanodegree: Bharath Ramsundar, Frank Chen
We have CVS, SVN, a legacy internal tool for managing git repos and most recently, Bitbucket. And some of these repos go back years. So companies do migrate version control systems.
I'm kind of curious now, I can't read in anyway that sounds sarcastic. Can you explain?
We're just doing FDM today, but in the future we plan on expanding to other 3D printing technologies (i.e. SLA, SLS, etc), and eventually even non 3D printing tech like milling or laser cutting.

If you don't want to submit a form on our website, feel free to either email me at jonathan@voodoomfg.com.

Exactly, today's cine we'r eonly manufacturing plastic parts, most hardware companies use us to make enclosures, brackets, and other internal and external components. And then prototypes of course as well.

We definitely do one off projects. If you want, you can just upload files to our website Direct Print service and checkout. Those orders leave our factory next business day: https://voodoomfg.com/direct-print
The risk you run by using a third party licensing solution is that they are more attractive targets to crackers. Generally, once a system has been compromised, all of the software using that system become vulnerable. Rolling your own solution takes time and effort and there's no guarantee that it won't be broken but you can also change and update it as needed. In the end you're really only affecting honest customers so keep the system as unobtrusive as possible and put more focus on selling more software and that quality of what you're putting out there - that will more than make up for any shortfalls due to piracy.
We've already asked you to stop abusing the site with primarily racial ideology, so we've banned the account. We're happy to unban accounts if you email us at hn@ycombinator.com and we believe you'll post within the guidelines in the future.
I don't want Android on my RaspberryPi...
It's up to the client to decide based on Last-Modified (if previously sent by the server) and its own implementation. But I guess browsers are going to be a tad bit aggressive especially if Last-Modified is absent. Hence the overly aggressive 304s.
Been a few years but I ran into a coder that bragged to me about working 14 hours straight - regularly - on Adderall. This was during an interview, yeah I passed on that job for some reason.
This analysis leaves out a critical factor, which is that the distributed system will start re-replicating each partition once nodes are declared to be lost. Clearly, if this can be completed before any other nodes fail, no data will be lost. This is the reason why you want more partitions-- not less as this essay recommends. With more, smaller partitions, you can re-replicate quicker.

In practice though, it's not uncommon for multiple machines to fail at once: maybe you lose power to a rack, or a network switch dies. In this case your partitioning scheme really does matter if you want to minimize the odds of data loss. Using a smaller number of larger partitions can decrease the odds of data loss (though, at the expense of losing a larger amount of data if/when you do lose all N replicas of a partition).

Using many smaller partitions can indeed speed recovery, and sometimes this is the right tradeoff to make. But, suppose any amount of data loss means you have to take your cluster offline and rebuild your entire dataset from scratch: in this case, you may be better off with a small number of partitions per node.
Add a speaker and media player, and you could have DJ Barista!
Ask HN: WiFi issues with new MacBook when USB-C hub plugged in – anyone else?
When I plug an USB-C hub (Satechi Slim Aluminum Type-C Multi-Port Adapter with HDMI) into my shiny 2016 MacBook Pro (13 inch, "Escape"), the (2.4 GHz) WiFi performance drops precipitously (25 to 30 dB), sometimes making it unusable.

See this screenshot of the Wireless Diagnostic performance monitor: http://imgur.com/a/fe017

Noise (blue line) rises, signal-noise-ratio (red line) drops when I plug it in, reverts when I unplug.

There are some reports and rants ([1], [2]), but nothing widespread.

Notes:

* also happens when I plug in a plain-old-USB external hard drive with the original 9$ Apple USB-to-USB-C dongle, though less extreme. So it's not confined to this hub, or crappy cheap dongles.

* the problem/interference vanishes when you pull out the plug just a tiny bit.

* with the hub plugged in, AppleWatch unlock often doesn't work, so it seems to interfere with Bluetooth (also on 2.4 GHz), too.

An Apple FAQ [3] suggests to move the device, or plug it into the front or right ports ("you're plugging it in wrong" :-), but that doesn't seem to make a big difference for me. Alternatively it suggests to switch to 5 GHz WiFi, which obviously isn't possible everywhere.

Is anyone else seeing this? Is everyone using 5 GHz WiFi, or super strong WiFi, or not using USB-C hubs and dongles? Or is there something wrong with my machine?

Thanks, any input appreciated (check Wireless Diagnostics -> Window -> Performance :-)

[0] http://www.satechi.net/index.php/metallic-series/satechi-slim-aluminum-type-c-multi-port-adapter-with-type-c-charging-port-4k-hdmi-video-output-and-2-usb-3-0-ports-space-gray

[1] https://www.youtube.com/watch?v=_u3EBxuAPXQ

[2] http://forums.macrumors.com/threads/new-macbook-pro-wifi-drops-when-externals-connected.2012327/

[3] https://support.apple.com/en-us/HT201163#17
that's interesting! can you share any of those links? curious.
No, that's not the problem with SMS. The problem with SMS is that SMS is itself insecure; in fact, there are large parts of the world where it's overtly and directly state-controlled. You won't have to enter your SMS code; the attacker will do it for you.
The certificates are OK.
The issue is the way they are signed and distributed.

Lots of issues with the current PK infrastructure is limited by the certificate transparency.
I love that you can just buy a CA and devices will trust the new owner. That’s not messed up or anything.
You may want to look into certificate transparency and who's supporting it.
Nit: I'm not sure I would consider Cantor Diagonalization non-constructive. I wouldn't consider it constructive either, though. It's used to prove things like the uncountability of the reals: how do you constructively prove that no bijection exists between the naturals and the reals?
For normal loads, yes.

The problem people are trying to solve here is that users hit the relaod button. A lot. And if you hit the reload button, that will send If-Modified-Since for everything on the page, no matter what Expires says, because the user intent is to ignore Expires headers.

That's what the immutable thing is about: indicating that even in the reload scenario the Expires is authoritative and no If-Modified-Since request should be sent.
Found another one here: http://thejh.net/misc/website-terminal-copy-paste
You can also get a quote through direct print for low-volume runs without ever entering your email.
The material we use, PLA, is actually biodegradable! It would take a while naturally, but can be done easily with industrial equipment. We also recycle all of our scrap material back into filament :)
Thanks for the ELI5!
Raspberry Pi expansion boards support up to 40-Pi clusters
Coming on Sunday =). Any thoughts of new upcoming topics you want to watch?
As a product geek, I love this. It's an awesome application of computer vision to solve an ancient and expensive problem in a new way. Just building the product and getting enough labeled data to a level when you can demonstrate proof of concept must have been a monumental achievement. Kudos!
>That's not a solution to anything.

I'm not sure what scenario you're imagining where you absolutely have to read code in commit messages on an unreasonably narrow screen, and you can't wait until you have an appropriate machine. But if a scenario occurred where that were important, I'm sure you'd manage to read some wrapped code, it's not that hard.

>Truncated code is visibly truncated

Unless it's not, because there's ` + someExtraStuff` just off the end.

>So you're saying git should embed a markdown renderer and text layout engine?

If you really want pristinely formatted commit messages that badly then yes.
The Entrepreneur Life
I'm confused. You've submitted a 510K, you call the device "pre cleared", and you're distributing? Please elaborate.
Let's hope they stick to publishing all certificates into the certificate transparency list (Merkle tree).
* unless you're a legal un-person in which case we'll exclude you from the political process as much as possible.
bash(0)> pwd
Internal Server Error
Lower Than a Snake’s Belly in a Wagon Rut: Extreme Low-Level Flying
I've been taking 400mg of Magnesium Glycinate two times a day along with 200mg of Theanine (also twice a day) with my usual two cups of coffee.

I feel fantastically focused without the jittery edge that accompanies caffeine alone.
It blurs the line between science and bullshit. For example in

Scientifics say the Doomsday clock is 2:30 minutes before Midnight

Scientifics say this wall painting is 40.000 years old

Which one is reliable? Which one should a young Earth creationist believe? Are 40.000 years real years or some kind of metaphor? Is that number reliable?
I've written code in over 50 different programming languages at this point (though only about a dozen or so professionally, including Python), and the only languages where I've ever been asked or required to work with a subset in lieu of the full language have been C++ and Perl. I've never worked on a project or for a company that allowed unrestricted use of all of C++.