skysight-inc/HackerNews huggingface dataset:
IF you don't ask this question then you won't become any good. ;-)
There might be easier ways to differentiate individual hands if necrotic flesh is your threat model. :)
Should be easier if we can assume that the vehicle is powered because the landing stage is not moving.
>For example, the entire error thing is absurd. Anders Hejlsberg got this right many years ago: 9 out of 10 errors are "handled" by a central error handler (log + "sorry, try again").

You are correct that this is how it's often done - 9 out of 10 errors probably ARE "handled" by a central error handler. But this is an incorrect approach if the goal is a reduction of catastrophic errors.

In the following paper, "Simple Testing Can Prevent Most Critical Failures" (OSDI '14). the authors discuss how some catastrophic errors occur in distributed systems that they test (Cassandra, HBase, Redis, HDFS, MapReduce).

http://www.eecg.toronto.edu/~yuan/papers/failure_analysis_os...

Notably section 4.1: Trivial Mistakes in Error Handlers:

"""

Figure 5 further breaks down the mistakes into three categories: (i) the error handler ignores explicit errors; (ii) the error handler over-catches an exception and aborts the system; and (iii) the error handler contains “TODO” or “FIXME” in the comment.

25% of the catastrophic failures were caused by ignoring explicit errors (an error handler that only logs the error is also considered as ignoring the error). For systems written in Java, the exceptions were all explicitly thrown, whereas in Redis they were system call error returns.

"""

I haven't used Go much but I personally much prefer Rust's error handling which appears to be largely similar.
Salary cannot exceed the value provided, but otherwise it often does not reflect value. Take for example cleaners, without whom no company could exist (i.e. they provide a lot of value), and yet, because of s&d, they're paid minimum wage.
Wow, that's fascinating -- do you have a reference for that? I'd love to learn more, especially as to why -- it seems like that would just result in ugly typography. Or is it solely about the bar of the initial "f" connecting to the next letter?
There were likely elements within Turkey that either funded ISIS directly or provided indirect assistance to them as they've seen ISIS as a useful tool in the fight against the Kurds.

ISIS basically tied the hands of Syrian and Iraqi Kurds and prevented them from being able to exert any political or military pressure on Turkey and other contested territories.

For Tureky it's a win win, either ISIS crushes the Kurds or creates enough mess for Turkey to get involved and hen it can bomb the Kurds just as much as they bomb ISIS if not more.

People don't have visibility into that conflict as much as they do in others since Turkey seems to be able to keep a much better lid on the media and there seem to be far fewer Kurdish lobbies in the west than for some other groups.
"Screen time" is also a great motivator to learn any language, if the fancy entertainment on the screen you'd like to understand is in a language you don't yet understand. (Similar effects apply to the written communication, of course.)

However, this is coming from my "learning a new language as a teenager / adult" experience than "raising bilingual kid" viewpoint, but it seems sensible that it would be also a powerful incentive for small kids, too.
Out of curiosity, what is the use case for immutable structs? (asking as I'm a ruby/js/go dev and as such I've never used such idiom)
I guess a lot of people have heard of it, they had an email campaign going where you would get an echo if you signed up, if I remember correctly
If you think the answer to this question is yes, you are not good.
except for the fact that you shouldn't have to write your own server?
Of course the problem he has is that it doesn't follow the hot new immutability fad, and of course he doesn't explain what he needs it for, just links to a stack exchange question which essentially says that it might be useful for some cases.

It seems a lot of these articles, and programming language theory in general, is just complaining about features without any thought as to why they matter. What is this "problem" stopping him from doing? Why does it matter? And why should I abandon a language that has served me very well just because some edge-case feature is not supported?
The US has invasion plans for every country on the planet.
Iraq was invaded on March 20th 2003 not the following Tuesday.
I share your concerns, however we already have assets with deflationary values like gold. I'm wondering why hasn't every saver already put all his money into gold? Is it just because you can't use it to pay small amounts (like rent and food)? Or is it because other investments like bonds and stocks have better returns? If the latter is true then I wouldn't worry too much about bitcoin.

If a cryptocurrency is too deflationary then most people will only lend it at very high rates. This leads to hoarding rather than investing. Consequently such a cryptocurrency will not find much usage for transactions which in turn will decrease its value. I think this will naturally lead to the adoption of currencies with stable values, where the supply is adjusted for demand - ie. the system which is supposed to be in place today.

However central banks have recently gone out of their way to flood the markets with cheap money without inflation increasing notably while at the same time punishing lots of savers with ever lower interest rates. Cryptocurrencies like bitcoin might serve as an important protection against such extreme monetary policies and simply limit a central banks ability to implement monetary policies. This is why I view cryptocurrencies not as an asset which in the future will dominate all other currencies but as a defense for savers against overzealous central banks (or governments for that matter).
Yes, humanrebar is really grasping at straws. :)

I would also mention that using mutable and const_cast is frowned upon and it can be trivially searched for and forbidden.

Their comment about const iterators also misses the mark. Yes, the designers of the C++ standard library did a bit more work and now everyone has a high-quality type-safe dictionary implementation available. That's how it's supposed to work...
I had to reread some bits to figure out that they are talking about email addresses which MailChimp fails on if they contain non-ASCII UTF-8 characters in the user part of the address, not the actual email message.

For some reason this person calls an email address an email.
There are 2 types of “good” programmers, who both think the other type is useless.

The first is the “rockstar” developer type who is great at prototyping, hitting deadlines no matter what and delivering functionality, albeit full of bugs. They will write 80% of the code and will drive the support team up the wall by breaking the build, causing customer issues in production, security holes and basically seriously degrading the code base. But their boss will love them because they deliver the shiny when required.

The second type are the ones who can sort out the mess created by the first type without making things even worse. They tend to be less visible, less well paid and less in demand but every company needs them.

The whizz kids and the grown-ups basically. Companies who only have the first will burn bright but not be able to scale. Companies who have only the second type tend to move too slowly to get to market or pivot.

So ideally there is a symbiotic relationship between the two types and someone who is a combination of the two is very rare indeed, because the first either needs an ability to place limitations on awareness of the big picture (and it’s very difficult to create a blind spot on demand once you have experience) or they need to be incredible at both analysis and full stack execution. Those people are few and far between so a process that gets the best out of the two types is, in my experience, the way that most companies work.
EURUSD: Bullish, Remains on the Offensive
An even blunter instrument that I’ve found very useful for weight and health is “mass in, mass out”.

That is, in a First Law sense, you can’t gain more than the mass of what you eat & drink, and you will always lose a certain amount of mass each day through breathing (metabolism, exercise) and excreting (waste, sweat).

So for example I lose 1–2 pounds a day with my metabolism, activity level, and diet, so I eat a bit more than that per day and try to make sure that those foods are healthy most of the time. For me, “healthy” means mostly plant-based, high in fiber, balanced in nutrients, and so on. I joke that my diet consists of vegan food and cheeseburgers, but it’s pretty close to the truth.

I think this should be the first step that most people take toward changing their dietary habits, because it’s dead simple: look at the weight on the package of the stuff you’re putting in your face, and get a cheap kitchen scale if you want to be particular about it. Then incorporate calories as you begin to get an intuitive sense of how caloric density affects the answer to “How much of this can I eat if I want to maintain/lose/gain weight?” and then incorporate other details like macronutrients.

Even before all this, the zeroth step is to document your habits by just writing them down. It might just be how my mind works, but if I want to fix something about what I’m doing—eating, sleeping, taking drugs—then it’s way easier to think about it in terms of adjusting a graph than all the details of the actual problem at hand.
Most modern dynamic languages have strong types. In Python you will get a TypeError if you try to add a string and an int or use > on a tuple and a dict.

As for data validation, the hard part of it is not checking type but that the value is safe and coherent. And dynamic languages excel at that because they make complex declarative schema descriptions easy while powerful.

See marshmallow for Python: https://marshmallow.readthedocs.io/en/latest/

It will validate everything, including nested recursive data with cross references in fields and a need for sanitation and casting. But you don't need a lot of code to do so.

Static languages are good to enforce safe practices at scale . That's why they are popular in big IT structures. Dynamic languages are fantastic when you have a lot of external data manipulations. Hence their popularity for the Web, banking, biology, geography, etc.
Interactive Mind Map to Learn Deep Learning
One of my current favorite things: categorification of linear algebra via higher category theory: https://qchu.wordpress.com/2016/05/31/higher-linear-algebra/
Yes, I hate seeing code any way except precisely tuned emacs. I like small sized characters, but most of fonts looks ugly, you'll need use antialiasing to preserve shape, but some chars becomes unreadable with antialiasing. Except of font choosing I'd like to see familiar color theme. And when I see code in someone's else editor its hard to read.

But, you know, others didn't like my emacs setup, they says that its hard to read in such small sizes, and my color theme with dark background is bad for their eyes. Strange people, what on earth make them think, that I should be considering their eyes health while choosing font and color theme for myself?
RingTheory makes rings that can access the MBTA (mass transit) in Boston. The product is the "Sesame Ring" and they have partnered with the MBTA on this.
http://www.ringtheory.com/#home
Sometimes it doesn't cost much if anything to add a feature which improves (type) safety. Now that Python has some type annotation support, it could make sense to also add a const annotation.

Go should have had it from the beginning IMO, immutability can help avoid some coding mistakes and also makes it easier to reason about code. It'a nice match for a language with static typing.
An HN discussion from a while ago, https://news.ycombinator.com/item?id=9454829
A particular group of Muslim population integrated pretty well in China: https://en.wikipedia.org/wiki/Hui_people

They enjoy a wide spectrum of what Americans call affirmative action. How do I know? I grew up with a few friends who are Hui people.
Yeah that threw me off as well. Had to do a little reading on [Boerhaave Syndrome](http://emedicine.medscape.com/article/171683-overview) to have it make a little more sense. The rupturing is caused by forced vomiting, of which the hot pepper in this case was the catalyst.
Depends on the app. In GUI, yes, why not, display an error message and you are done. In infrastructure software, OTOH, you want to handle errors in thoughtful manner. If you can't it's often better to crash the application than to continue with broken state.
> If online is cheaper then online can not pay higher wages when selling the same volume of goods in the long run. It is that simple.

Real estate, profit, and salaries/bonuses to executives are all diminishing the wage/quantity of workers in retail and can more easily be cut in online markets where independent merchants need low capital. So independent merchants might be making more money from their own direct labor than the corresponding retail workers.
I'm a distance runner and personally find I enjoy a high fat diet for balancing weight, performance (how I feel more than time), and physique (entirely ego driven, but can't over look the real effect of thoughts/beliefs on health).

That said I have personally run on high fat (even in ketosis, and seperately eating animal products and vegan); high protein/more fairly a body builder bulking macro(including dairy protein: whey and casein); and high carb. And we all know we can find athletes of the highest level in every sport practicing various mixtures of those diets to great success. So I don't think it is fair to say people are doing it wrong by burning primarily glucose as opposed to fat.

I think the most successful diets (no matter the macro nutrient philosophy) have the following in common:

1. Hydration/absorption: obviously no matter what cells must be properly hydrated and absorb micro/macro nutrients.

2. Anti-inflammatory foods: inflammation is linked to every chronic disease there is and even at the highest levels of performance do you want your cells combating inflammation or involved in the krebs cycle.

3. Anti-toxin: toxins can be eliminated from the body through the pores or excretion. Not all toxins can be sweated out and not all will naturally be excreated but certain foods can bind to toxins. So foods promoting removal of toxins from the body are important, but outside diet, exercise is important, abstaining from toxins like cigarettes is important, and probably because of the level of toxins on the modern western diet practices like juice cleanses and fastings could be important tools toward anti toxin cellular health.

4. Anti oxidants: as cells oxidize free radical can spread around the body, it's important to eliminate or isolate free radicals which can be potential causes of diseases like cancer.

5. Micro/macro nutrient: someone else mentioned maximizing micro nutrient intake to calorie ratio, that's probably a good way to put it. As I mentioned I'm starting to see macros as a personal choice based on the individual, that said I have very strong opinions to support my high fat preference (not keto though) and think so long as a person has achieved cellular health through 1-4 they too can experiment with their macros to suite their personal desire and needs.

6. Microbiome: I don't even pretend to understand what's going on here, but often hear this refered to as the second brain. While a neat phrase I'll just point to a study in equatorial Africa on twins, where it's not uncommon to have identical twins on the same diet 1 malnurished and the other not with the only difference to be found in their microbiome.
The Rust team decided to promote Rust as a "systems programming" language. And even though it can obviously do much more, and the bindings for most popular libraries are available [1], this label somehow attracts programmers who are more systems oriented and I think the language will continue to develop in this way, whereas Go/D/Nim will tend to try to be more general.
[1] Imagine how surprised I was the other day to find Rust bindings to Allegro, a venerable game programming library from the old days of DOS and DJGPP...
Same reason people buy diamond rings, gendered deodorant, banned nonwhites from boxing, etc.

Culture rules. People are not far-sighted logical market agents.

Consider the opposite: If sharing your salary is so inoffensive, why do companies go to great lengths to stop you from doing it, necessitating enshrined legal protections (that most people are unaware about)?
I always wonder if the Go error issues could be handled more cleanly by using the suture library. I haven't seen widespread use but it's supposed to give a supervisor pattern to Go.
Depends how you define good. Some define good as getting the job done in a quick and efficient manner and making the client (or company) happy with the result, however code quality may suffer in this instance and it could be hard to maintain. Others define good as writing the highest quality code with high test coverage, deployment procedures, writing detailed JIRA tickets, great documentation, training other developers in the team on the system, making the front end pixel perfect, recommending and implementing better features and improvements into the project, etc etc. As you can tell these people may suffer from inability to meet deadlines and getting things out the door.

Ideally you walk the line between them both. Personally, I'm in the former camp, but I'm more a business owner than a coder, so deliverables are more important than the best programming methodologies. It depends on what the priority of the business/department/team is.
Understanding my bioenergetic self
One thing I've thought about but never had the chance to put into practice would be to randomize CSS classes and IDs. Most web scraping relies on these to identify the content they are looking for.

Imagine if everyday they changed? It would make things a lot more difficult.

There would be disadvantages to actual users with this method like caching wouldn't work very well but maybe this alternative site could be displayed only to bots.

The crawler could get smart about it and only use xpaths like the 6th div on the page so maybe in the daily update you could throw in some random useless empty divs and spans in various locations.

It's a lot of work to setup but I think you would make scraping almost impossible.
Have there been independent assessments of sea food safety in Japan? Not that I don't absolutely trust the government on this...

EDIT: Linked at the bottom of the article - http://www.bbc.com/news/av/world-asia-39140871/checking-radi...

Also from that video: https://blog.safecast.org
Seems like you got work done by altering the stdlib because it was approachable enough to alter. I don't see what the complaint is here.
You will create accessibility issues for users if you do this. The bias you'd encode in this idea of "human" behavior doesn't consider assistive software at all.

I don't click text inputs when my form-filling plugin enters my personal information on a payment screen. And even if I did, you wouldn't know it if I had JavaScript disabled.
> const std::set<int> s // This is immutable.

> Foo() : s(helper()) {} // This is a move, not a copy.

First, I'll point out that the data of s is not immutable. The fact that you can const_cast away the const and change the value makes that clear. If people do things like that (or corrupt memory or have race conditions in the code), C++ doesn't necessarily give you clear exceptions or compiler errors. Many of the ways to break things result in "undefined behavior", which might involve data corruption and crashes. I've seen both happen to 'const' objects in production code.

You have a fair point about the move. But not all projects are using C++11 yet. And your use of a 'helper()' builder was actually part of my point as well. The article complained about all the extra code needed in Go to do immutable maps. But it's not true that in C++ you can just add 'const' to a few spots and move on.

I'll also point out that having the 'const' member in 'Foo' likely makes it impossible to implement assignment operators and possibly a move constructor, depending on what you are doing. It's likely if you want to have read-only semantics in your data in C++, you'll have to be aggressive using unique_ptr and shared_ptr so that you can have things like proper move semantics. And that means you'll likely need to be checking for null data.

Point being, you can achieve read-only semantics in C++. But it's not foolproof and it's not as clean as the article seems to imply.
Please make sure to honor accessibility features and select applications that do. I need dark themes because my eyes become red without. It is painful to use apps that do not honor theme colors and do not provide their own means to change colors either.
You are not taking into account the cost of maintenance.
They'd probably take a lot of flak from an ethical perspective though (scandal level). I suspect people would not be too excited to know Twitter straight up sells their content
So it's a legitimate concern that this software will be some sort of honeypot to hack and monitor those who have the technical skills to evade typical monitoring, who have a moral code that doesn't align with the federal government, and who probably have a general distrust in the federal government in the first place. It's not a secret at this point that the US government has an incredibly powerful intelligence gathering and spying apparatus, and there have been many signs that they are very willing to spy on those with questionable morals, regardless of whether or not there's any proof they're doing anything wrong.
I really like Mango for two reasons: it has Québécois French (since I'm in Montreal now) and it has a feature where you can compare your pronunciation to a native speaker. It's really helped me learn the unvoiced consonants that lurk at the end of French words.
I think the tone of that comment is completely unjustifiable in any polite context. Also, bile obscures text: adding invective just lowers the SNR of your speech.

Your comment is an example of virtue signaling, which is equally boring.
Looks like a reasonable overview of applications of dense linear algebra operations, with very specific applications in mind.

I feel like iterative Krylov subspace methods should be around somewhere, but to be honest I'm not sure what the applications space for linear inverse problems looks like in the deep learning domain. So maybe that wouldn't quite fit (despite me finding it to be pretty cool, and these methods sort of eating the lunch of most other inverse methods).

I'd round out the course maybe with a read through of Trefethen-Bau, “Numerical Linear Algebra” for those new to the topic area.
The least MIT could have done was to give the award to Aaron Swartz. Why is it so hard for MIT to accept that they fucked up? The internet does not forget, so until you acknowledge that you fucked up in handling Aaron's case, a big fuck you to MIT.
Did I strike a nerve or something? The personal insult makes you look defensive.

And no, that's not what I'm saying.

What I am saying is self evident. Large companies have more resources to spend, and they do. Smaller companies have less to spend, which results in experiences like OP's, as they have to pick and chose their battles more selectively. MSFT has laid off more sales staff in the last year than Twilio employs.
Spoken like a fresh programmer
Hm.
documentation, readability, maintainability?

in general you cannot even prove, whether a program does the right thing...
Realized I left out a recommendation for Baby Signing Time.

Anecdata-ly, speech may be delayed since sign language becomes sufficient for minimal communication.

Also, the following tool has been specifically recommended for teaching toddlers to read English: https://amzn.com/dp/0671631985/