skysight-inc/HackerNews huggingface dataset:
Modeling needs to get easier, especially for such simple replacement parts tasks.

Any suggestions regarding tools for_capturing_ 3D (or at least 2D) models from photos or videos of existing objects? I imagine if there are multiple reference objects (of known size and shape) visible in the scene together with the object-to-capture, the photogrammetry should be tractable.

A good start would be an app able to produce a 2D CAD file from a prototype shape (e. g. cut from cardboard) photographed on a background of squared paper. Does such a beast perhaps already exist?
Literature survey for practical TSX lock elision applications
Also his "code review" slides: https://macton.smugmug.com/Other/2008-07-15-by-Eye-Fi/n-xmKD...
Show HN: X11Color Java enum
Just a note: I wouldn't assume these stats say anything about the given ethnicities, as opposed to the demographic make-up of America.

For example, WE can cherry-pick some of the most successful Indians from India, and many are likely to want to move to America.

Many of the Europeans however, may just as easily find success in their respective countries, and their populations are smaller.
Not everyone can live everywhere. But the people living in the most desirable places (thus excluding someone else from living there) should probably pay society for that privilege.
If you are using a Bayesian approach then all new evidence does is adjust the probability of your belief being true. Only those impervious to new information have beliefs with 0 or 1 probabilities.
Just names and rgb values. Created from wikipedia entry on web colors with some copy-and-past and some regexps. Googled for something like this, but could not find. Needed it, now it exists and could be usefull for others as well, so posted it as a gist.
Why won't they just implement a land tax, and reform zoning?

(Of course, because these two sensible policies would not be in favour of landowners. Subsidies demand is.)
>> Unit tests are mostly useless

The speed difference though, integration tests just take too long to be able to completely replace unit tests.
It's also about the compiler guaranteeing to enumerate every code path in and out of every function. A human writing tests is limited by what they think will happen, but the compiler knows.
What it desperately needs is a normal linux-kernel, not this shitty branch. For example DVB TV-sticks do not work, because Google has removed those particular modules from the kernel. Sometimes Google adds some modules afterwards, like USB-serial PL2303-module. This was because Arduino did not work and it was popular in schools, but even this simple "improvement" took years.
Feature Release: May 2016
> A very high percentage of unit tests in a dynamic language are written to catch type errors.

Absolutly not.

If you do it you are doing it wrong.

Check this out: https://github.com/Tygs/tygs/blob/master/tests/test_componen...

The type checks are "isinstance". It's 10% of the checks, and most of the time I don't even have those, my colleague insisted.

The rest are the most important tests: they test behavior, not types.

Do not assert a dynamic language means testing types, it's just not true. Bad testers test types.
Why are so many people saying that if some developers write bad unit tests, then all unit tests are pointless and a waste of time?

Yes, I've seen thousand line files of boilerplate unittests that don't actually say anything useful about the system. I've also written unit tests that tell me in 2 minutes rather than in 3 weeks that somebody has broken my code.

If your standard for a system of testing is that it guarantees that people can only write good code, you're insane.
A couple reasons off the top of my head: It's usually easier to read and reason about code that has fewer possible control flows. Exceptions are an alternative control flow outside of the normal one, and you have to deal with them at any level of a call stack that can trigger them somewhere further down, maybe wrap things in try/catch/finally to make sure that this alternative control flow does not break the normal cleanup (resource release, etc.) that your code does. Or in the case of checked exceptions, at the very least add 'throws' clauses, which unfortunately in some cases leads to a leaking of implementation detail - e.g. it's not uncommon to have low level code that throws exceptions (e.g. IOException if the hard drive blows up) and high level code that is where you actually deal with it (show the user a popup to tell them that their hard drive blew up) - a checked exception forces any intermediate layer of code to also deal with the fact of this exception, even if all they do is to add a throws statement - refactoring the low level in a way that adds or removes a checked exception now involves trudging through every layer of the call chain to deal with this, even if there's only really one layer at the top that actually cares. Making the exception unchecked means this isn't forced, but the alternative control flow might still mess things up. An algebraic data type like a Maybe or Option (or other 'nillable'), unlike an exception, follows the normal control flow, is explicit about the fact that the value might be missing (similar to when an exception is checked), but it's up to each layer of intermediate code to decide if that should be considered exceptional or not (like an unchecked exception) - if all they do is pass the value on, then they can be written exactly the same.

TL;DR: Unlike a checked exception, an Option type doesn't break the normal control flow (easier to reason about, not as prone to not cleaning things up) and allows each layer of code in a call chain to do as much or as little error-handling as it deems appropriate.
The ones you write: this month I'm working on medical data, we got tests where we scramble the database to test the reaction of our software of course. Error reporting, cleaning, logging. You mean you don't do that ?
Very insightful, and much less alienating than most articles I've read of a similar nature.

Come to think of it, this was very well written - it had a nice flow to it, building up to some profound observation, and then starting over with some different viewpoint. My only complaint is over those weird "repeat myself in giant text surrounded by quotation marks" things scattered throughout the article, but that seems to have become an acceptable/recommended practice?... (Really, when did this become a thing? I'm really curious on the history of it, but I don't know which term to search for).

I will say that I used to read only nonfiction texts because I enjoy learning about history and the sciences, and these subjects seemed more important than what can be found in fictional stories. But then I began reading more stories, especially slice-of-life type things, and I realized that I was wrong. Reading these stories lends me insight into my own social life - how to be a better friend, etc - and really makes me contemplate which values I want to live by and how I can uphold those in my day to day life.

I liken this to the distinction between classroom schooling and life learning. There's a decent-sized class of subjects that are more effectively taught through experience and self-discovery than via instruction. Interestingly, this class of subjects seems to be the most foundational, as they tend to lend insights into things like what makes an individual feel fulfilled, whereas the subjects taught in school are usually more along the lines of tools (that could potentially be applied to the former). But what use is it to learn a tool if you have no sense of what to apply it to? Engagement increases when a student is seeking knowledge of their own accord, usually to satisfy some goal, curiosity or creative drive - none of which are likely to be conceived within a classroom. Certainly some balance is needed.
France rules out deal with Google over back taxes
WashPo's clickbait head, bury-the-lede copy, is getting beyond annoying.
WebSocket Client and Server Example – Open Source Embedded Web Server
If they are overloaded.

Do C++ assumes that i++ and ++i same for overloaded operators?

edit: same if they are same in the case of primitives
"Throw away tests that haven’t failed in a year" What a load of crap. We have a test that asserts creating a new user doesnt fail, it hasnt failed for over a year, but the day it does..
90kg is not that heavy for a squat or deadlift. You need hardly any (visible) muscles for that (unless you are a very small woman).

I hope you keep up your progress! There's lots of it left.
Yes, you should and the choice exists, like the root comment mentioned. There are other services which allow you to communicate with people without having to associate your phone number with the service.
The Mariel numbers were around 150,000 people, a small fraction of the 2 million or so Cubans who emigrated. In the upper middle class circles I traveled in in South Florida, my Cuban friends from the emigree generation and the generation that grew up in South Florida very much fit the mold of leaving comfort to start over with nothing.
Negative values escape Nodejs range protection
It is also the rate of sea level rise. If sea level rises faster than the coral platforms can keep up, then they will drown. See the figure here [1] for a summary of reef responses to sea level rise.

Also, if the corals die, then they stop calcifying, and then the platform starts to erode, making life harder for the organisms that are still alive...

Coral reefs are a complex system of feedbacks.

[1] http://www.sepmstrata.org/page.aspx?pageid=345
Human beings are the best general purpose machines in the universe. We can handle an egg, and in the next moment power-lift 500 lbs, we can walk up a mountain, or slide down a hill, we can swim the bottom of the ocean or jump out of a plane.

I think exos shine in one-off situations, where it is too costly to build a specialized machine; or where many abilities and specialized machines are needed to accomplish the task.

Simple, repetitive actions will almost always be better handled by machines.

The use-cases exos will be good for are likely not any that are currently solved by individual machines. They will be for new actions previously not feasible, or to replace a set of actions being accomplished with a bunch of machines, for cheaper.
> If anything, it's a lack of rigour

More specifically, some people do a poor job following basic best practices to reduce and manage complexity, such as encapsulation and the tried and true separation of concerns, and then proceed to pin the result of their own failures on abstract concepts, such as programming paradigms.

There's that saying that goes something like "a bad workman blames his tools"... Well, a programmer bitching about basic programming paradigms is just that.
https://twitter.com/ajlobster/status/735240869859753985

:-)
Currently in some (well, unfortunately many) languages. C++ references have always been non-nullable, and in Scala the only way you should get nulls is from Java libraries.
Oh.

Well if it's a daemon type tool, write an init file - either a shell script for sysvinit or a service file for systemd.
See Eben Moglen's "Invisible Barbeque".

http://emoglen.law.columbia.edu/publications/barbecue.html
I see a uncredible difference in the architecture quality in projects with unit tests. People test forces people to think about interface, forces them to use their code, torture it, break it, knowing it in and out and see the limits. Just for the intellectual tool UT are, they are valuable.

Now they have a cost, and sometimes they are not worth it, but they are certainly not useless.
Apologies, I stand corrected. All I've ever heard is it being explained as Apple's implementation of TrustZone, which conceivably could be modded so far as to be put on a separate coprocessor.
Exactly, I can agree completely with this kind of statement and I'm also one expecting to see more ML-family languages being used for what they are good at.
Because the key advantage of an eagle over something like a microwave gun would be retrieval vs the drone dropping out of the sky on whatever happens to be underneath.

Also, grabbing is just what these birds happen to do. Try to teach a dog to run after a ball to drop a net on it instead of catching...
A high degree of impulse control is not linked to success? I thought that was one of the oldest and most well proved success requirements, also sometimes called "delaying reward".

Also if you say "my group succeeded because we believe in our group" then you need to not analyse one generation but several generations together, because that statement is not about a single generation. E.g. the question is not why is the Jew John Doe successful, but why are Jews on average more successful now despite having faced a lot of trouble in the past?

While this article seems logical in itself, to me it actually gave the idea that the book may very well have a point, exactly because of common sense.
How do people formulate their beliefs?
I think that's mostly a function of handling identification of the sending party. iMessage tied to an AppleID can still be controlled pretty well when it comes to spam even if it would use a completely open protocol and was open sourced.

Similarly if you'd only accept cryptographically signed mail by default the spam problem would go away as a bye product.
Which in itself is not very interesting but might be in the context of building an AI. Apart from a NN, what else do you need for an AI? Perhaps you need mechanisms such as "cognitive dissonance" in order to acheive "effective learning" through coping with that dissonance. What we have today are clever NNs. Nothing close to a talking bear (you know, the one from A.I. Artificial Intelligence).
To be, or not to be- that is the question: Automated Backlink Building Software
I really can't stand most FPS games. So it does happen.

Actual ships at sea far much less so.
Yes, I was the bit of a shock the first time I realized how misleading coverage was. Being executed doesn't mean tested. Tested doesn't mean it works. Working doesn't mean it does what you want. Doing what you want doesn't mean it will do what the client wants. Doing what's the client want now doens't mean it will do keep doing it in the future.

But anybody who edited a 100 000 lines long project, ran the unit test, and saw red lines, fixed them, ran it again and then saw green now the feeling : it's great. You are way more confident.
Tabs. Obviously.

You can set pretty much any editor to display tabs as whatever amount of indent you want. Harder to do that with spaces.

Also spaces = tons of unnecessary button pushing.
It appears my account is ok, so I am guessing my domain has been blocked.
Some people have done similar things using the XBox Kinect, see for example http://makezine.com/projects/from-kinect-to-makerbot/

It's still not easy though!
The only option is whatever contact method listed on the profile page of the person you want to contact, if any.
Exoskeletons will be huge, huge, huge as the baby boomer generation get older and more frail. This is why Japan is already far ahead in this.
Happy Ambition
A cursory google search gives the number 170dB as potentially fatal. [0]

[0] https://www.reddit.com/r/NoStupidQuestions/comments/30xga2/i...
https://en.wikipedia.org/wiki/Sixth_normal_form

Not something I'd like to use.
We often see criticism against unit testing that is based on facts such as tests are badly written, unmaintainable, incomprehensive, and they drag development down.

Which may very well be true! But I am amazed at the conclusion: That because tests are badly written, writing tests is a bad thing. No! Any code can be badly written, it doesn't mean that writing code is a bad thing. Tests, like any other piece of code, also need to be designed and implemented well. And this is something you need to learn and get experience with.

As to whether well-written unit tests are worth it, I cannot imagine how someone could efficiently maintain a codebase of any size without unit tests. Every little code change is a candidate to break the whole system without them, especially in dynamic languages.
When I turn on showdead in my profile settings I can see your post marked as [dead]. So it is a problem with the domain.

See this post for details: https://news.ycombinator.com/item?id=1691145
Adidas to make shoes in Germany again – but using robots
Auth0's big feature that isn't provided by open source platforms at the moment is being able to request an OAuth token for third party services the user has authenticated with, so for example you can trade in an auth token that was issued when you logged in the user for a Facebook token.
Soviet apologist on HN, I regret answering to you. Bye.
I regret my decision to go to graduate school, advice?
I just finished my first two semesters of a PhD program in computational biology. I was excited by the prestige of going to a PhD program at an ivy league university, but now that that has worn off I am being bombarded by anxiety that I have made the wrong choice and that I will struggle to find a decent job after I graduate in several years.

I have previous industry experience, how might I go about transitioning back to a software development position?
To provide the Android hardware-backed keystore [1]

If it's present, this is used by apps like 'Google Authenticator' and 'Symantec Vip access' to store credentials in such a way that they can't be copied off the device or backed up.

When this technology works perfectly, the idea is if you have a short passcode and someone steals your phone, they can't extract the encrypted data and brute-force the passcode without an electron microscope and a team of engineers.

Unfortunately, it can also be used for user-hostile applications like providing DRM and preventing backups and rooting.

[1] https://source.android.com/security/keystore/
No, it's not exaggerated. Housing prices on the peninsula (PA/MW in particular) are so far outside of the distribution for the rest of the country, it's not even funny. And it's not just the housing that is significantly more expensive. Schools, daycare, anything that involves kids is easily 2x as expensive around Palo Alto.

Saying that middle class in PA starts at $250K sounds about right. It is very difficult to have a family in the area for less than that.

Source: I recently moved from Mountain View to the Midwest (family of 4). My wife and I have talked a lot about moving back, but we decided that a minimum salary level would likely need to be above $250K for us to even consider it.
You may hate the tech industry for recklessly destroying other people's jobs, but just know that we're working hard to build a next generation AI that will destroy our jobs too.
"We are occupied a great deal with the study of psychochemistry. The Subtle World helps in this research because it is replete with the subtlest chemical activities, which facilitate distant communications and create the circumstances for sensitive discrimination. Everyone can begin such experiments by observing why he feels attracted to or repelled by certain objects. In time, this type of experiment will be taken up by chemical laboratories, but even now careful observation will help to analyze such phenomena, and the effect of psychochemical reactions on the most elementary substances will be discovered."

http://agniyoga.org/ay_frame.html?app_id=SUPM1
I use Gammu to forward received SMS messages from a USB 3G modem to iMessage (which then appears on all my devices) -- https://gist.github.com/rcoup/93460ea39b05e957e884

Unless it's been disabled with 10.11.5 it's still working :)
> This is... an interesting generational thing, I think.

Totally. Not too long ago, pets, and livestock, would be fed table scraps and glad of it.

Like we've been taught - actually shamed - into using soap, deodorant and sundry other 'essentials' to the soap manufacturers well-being, so with pet care.

Curious about what else they'll come up with next to mop up wealth and productivity. It's bound to be amusing.
I think the nastiest thing to parse in RSS feeds these days is code highlighting. To a surprising degree, people who should know better use blogging software that chops up code into tables, divs, and spans, and styles them with CSS that is not included in the feed. You either have to either reconstruct the underlying plain-text code as best you can, or try to recognize and support a zoo of different highlighting libraries.
Thanks for checking. So it's really been blocked!

It could have been my friend, or a anyone else -- in our case there are (pro-gun) people who are hostile toward our project as well.

This is really unfortunate, if it's so easy for anyone to sabotage your domain or project.
Note that TrustZone is not a Qualcomm technology, but rather an ARM technology. Apple could have gone with TrustZone in their SOC.

(But yes, he is a troll and this whole case has nothing to do with Apple).
OAuth is super simple, you only need two endpoints for an OAuth provider. It only took a few hours to write the WakaTime OAuth provider implementation[1]. No offense and serious question: why would you need a library for this? Isn't it more trouble to integrate an external OAuth provider with an existing api than to just write two api endpoints yourself?

[1] https://wakatime.com/api
Parent means something closer to pointers (in C++) when they say "reference type". In other words, if a type contains null, then we must always check locally that values of that type are not null before it is safe to use them (or manually maintain contracts).

With option types, we check whether it is empty once, and if it is not, we unwrap it and use it as if it were never nullable. Any function that uses the unwrapped value downstream is oblivious to the fact.
Viatges en Grup
Microservices Weekly (Issue #27): Game On
You don't need middleware to use JWT with Falcon - just import and use a jwt library.
The link is down?
To build on that - the point of these proposals isn't to cover the teacher who has been in the district for 30 years though. It's to cover the young teacher they have to hire when the older one retires. They are likely having issues hiring anyone that can actually afford to live in Palo Alto. Because of housing costs, it's next to impossible for anyone to move there and establish roots in the area (read: buy a house). This means that you're going to see more volatility in the labor market for traditionally middle class government jobs (teachers, police, etc). That will be important to try and balance in the future.
Running .NET Core on Docker
"But in good news for tourists and the tourism industry, only 5% of coral has died on reefs south of Cairns."

Great news everyone! We destroyed most of that other reef but this one is 95% ok! Ready you fins!
Reddit removes “Respect anonimity and privacy” from values list
Seems to be working, albeit a bit slow.
As someone who got to a 90kg squat (and 100kg deadlift) in three months while still having the skinniest legs possible, I am amazed at how efficient muscles are while being tethered at the very end of a 1 meter lever.

I'm pretty sure that our quadriceps could lift a one-ton weight, if attached to it, if only a few cm. That's amazing to me.
Yes, do it! Shoot me an issue should something go wrong! :) I hope with the help of clang this will be manageable :)
Evolution and terminology
iPhones do not use Qualcomm chipsets, so you're wrong.
If TrustZone itself has a bug, that would require a hardware patch. Luckily it seems that this bug was an issue with the code running on the chip.

With TrustZone, some code is running in the secure domain and can read or write to both secure and non-secure memory. You need to find some bug in the secure code to "trick" the secure code into copying data from secure memory to non-secure memory.