skysight-inc/HackerNews huggingface dataset:
How frustrating that it took so long to get a proper diagnosis and treatment for the child in the article, even though he had multiple diagnoses saying it was PTSD. This is pretty clear that psychology is largely haphazard, which is my own experience with it. It's definitely not as scientific as one would hope, and with such poor funding for mental health issues it only exacerbates the issue.
Show HN: PerfectDad – Discord Bot for Dad Jokes
First submission so I might have goofed up, but I’m not the one this happened to. I did think that the social aspect was interesting though.
Good thing I'm on Windows :)
Vendoring is terrible for security.

Distribution maintainers, developers and system engineers have to either unvendorize everything or go through all vendorized dependencies every time a vulnerability comes out and patch them.

Most live systems cannot receive a full upgrade every time a patch is published.

Use dynamic linking on languages that support it and don't vendorize things.
> It certainly did not improve sales.

It was a free download for decades before being open sourced. From what I heard, it increased support contract sales quite a bit, letting companies feel that that weren't necessarily tied to Sun for Solaris, but knowing that Sun was the best outfit to support it.

> I bet no one that downloaded it has spent a dime to Sun.

You would lose that bet hard. They made their money on hardware sales and support contracts.

A family member of mine was the head of Federal Sales for Sun at the time.
I like UI animations but don't like when they're too complicated or vary too much because it's distracting. Some examples I always remember from in Material are the ripple effects when you click a button (it lasts too long and varies depending where you tap) and the loading spinner (instead of a simple shape rotating at a steady speed, the shape path varies in length and it slows down and speeds up continually).
I remember when I was at college it was the same, and it doesn't make any sense. I can't recall any instances where I've needed to convert an iterative solution into a resursive one, but there have been countless times I've done the reverse. I belive that the mindless emphasis on resursive programming in college courses has lead to poor practices, where people are using recursion to just make their code more elegant where an iterative solution wouldn't much more complicated but a lot more robust. The result? Down the track, an unforseen use cases resulting in max stack size exceeded errors, causing needless headaches.
Unusual is a strange qualifier here. Removing a dereference leading to a speedup is probably one of the few almost universal optimizations.
I've seen 2 non-trivial rewrites of the mainline software at 2 companies. Non-trivial = 10-100M in yearly revenue.

In both cases:

- it was promised to take 6-9 months, and ended up taking 3-4 years

- it never really finished, the old software had to remain in production (along with the new "rewrite")

- in some form or the other, while the rewrite was happening, the company lost its customer focus and/or its ability to innovate

- good people left

Instead of rewrites, make incremental changes. The eng. team should never be off doing its own thing.

Also, a good lesson from Facebook: instead of rewriting their PHP codebase, they extended the language by creating the "PHP++" language Hack (along with the HHVM runtime), and incrementally changed their codebase to take advantage of Hack:

http://bytepawn.com/hack-hhvm-second-system-effect.html
I sometimes wish I could directly write a plan for my query instead of relying on the db to come up with something that matches it (OLAP). The other 90% percent I’m happy that it just works.
I was saying "canned", not "boxed" or "containerized". It's a lot easier to write the little things yourself. (And there are good benefits to be had from writing specialized code yourself, instead of relying on big fat generalized tankers.)
They cause motion sickness for some people.
As you are a family man/woman I would say either get a new job or professional help. I burdened my own partner with unhappiness for a time and wish I had of dealt with things sooner.

There are enough suggestions already as to how you might make progress.
One practical use that has been studied (only a little) is to use Esperanto as a stepping stone to learning other languages. Essentially the idea is that you can first spend a few months learning Esperanto and that might actually speed up the total time for learning a "third" language. I believe school systems in both the UK and France have experimented with this, both with promising results.
The author is describing mindfulness[1] in that quote. The author also produces no evidence Einstein ever practised or espoused it, besides Einstein saying cruises are conducive to uninterrupted thought and work. The violin example sounds apocryphal, and even if true, it is also not an example of "doing nothing".

Clickbait.

[1] https://en.wikipedia.org/wiki/Mindfulness
Unless of course you are rewriting an aging desktop application to a web application.
The question isn't so much whether life will move on. I agree with you that it will. The point is that it will be a top 5 problem. All the stuff that you say will almost undoubtedly be a massive impediment in the face of the kind of "I'm not sure what I'm looking for, but I'll know it when I see it" types of research that PhD often involves.
Except Warsaw metro has 1.5 line, 32 stations, compared to Paris 16 lines and 300 stations
That works until you need your own implementation of ++p;. Now wiring up that implementation to a generic library is already more work than just doing it all yourself. Not even considering the integration costs of the library into the sources and the build.

And you cannot really do transformation instead of only matching with RE. Those are needed already in simple cases like string and number literals. Now your code will look more like

%{
#include "y.tab.h"
int num_lines = 1;
int comment_mode=0;
int stack =0;
%}
digit ([0-9])
integer ({digit}+)
float_num ({digit}+\.{digit}+)
%%
{integer} { //deal with integer
printf("#%d: NUM:",num_lines); ECHO;printf("\n");
yylval.Integer = atoi(yytext);
return INT;
}
{float_num} {// deal with float
printf("#%d: NUM:",num_lines);ECHO;printf("\n");
yylval.Float = atof(yytext);
return FLOAT;
}
\n { ++num_lines; }
. if(strcmp(yytext," "))ECHO;
%%
int yywrap() {
return 1;
}

(copied from stackoverflow). And that's before preprocessing. Yeah. Thanks, but no thanks.
(Off topic) In case anyone is intrigued by the post /How to Build a Probability Microscope/ linked from the article, I created a JavaScript/Python-based simulation:

The linked article: http://nautil.us/issue/44/luck/-how-to-build-a-probability-m...

The simulation: https://www.speicherleck.de/iblech/zufall-im-browser/index.e... (select the bottommost example)
> How do you describe a license that let's you run, modify, fork, and redistribute the code and do virtually anything other than offer a competing SaaS offering of the product?

A proprietary software license. Let's not forget the infamous "don't be evil" clause.

> The "open source companies are all failing"-meme isn't factually correct.

Several of the companies you have mentioned (including yourselves) are no longer "open source companies" since you now develop proprietary software. You might not consider this a failure (maybe a "pivot"), but you are no longer an "open source company".

Don't get me wrong, I completely believe that there is a financial problem caused by cloud providers not paying you for your development work. And I understand the frustration and lack of fairness in such a dynamic. But that doesn't change that you now develop proprietary software.

> I don't think the current crop of licenses was handed down from the mountain on Stone Tablets by our elders to be revered and not questioned.

Nobody is claiming that, and those licenses have changed over the years. But the changes have always come from the community. MPLv2 was written so that it could be integrated with GPL code. The GPLv3 was written to deal with concerns about locked-down hardware. The AGPLv3 was based on a community fork of GPLv2.

The new proprietary licenses are coming from companies that wish to protect their businesses. This is clearly a different dynamic, and I think it's quite unfair to paint your critics with the brush of being unquestioningly reverent of our elders -- when in fact we are seeing that the existing, gradual evolution of licenses by the community has been co-opted by companies wishing to protect their own interests.
>just as capitalism can

I disagree with that statement, because capitalism is just a market and markets arise and behave the exact same way whenever and wherever they are allowed to. "Implementing capitalism" isn't a thing you do: it means that you stop doing something (suppressing market activity).
PCs have “alt codes”, which is a combo of alt+numbers to represent some (most?) Unicode characters. I believe the German characters are in the alt+0250 (+-10) zone
Trill: high-performance in-memory streaming analytics engine
I cannot possibly imagine how timeframe and team size are considered irrelevant to success.

Business needs still matter. Time and money is still a thing.
Santa Cruz
Problem is that your token string is going to be quite large. Is there a built-in solution for when tokens are just single chars?
You can't. What parent tries to explain is your predictions is no different than regular fluctuations, so you can't use it to get an edge.
Hey! I take exception to that. I've been writing shellcode all week. C is uncomfortably high level for writing low level routines!
A genetically augmented future
Oops. Marissa.
What do you mean by mild? I did a study and had an AHI of 28, my doctors put me on CPAP. I'm not overweight and the machine is set to give hardly any pressure but it still seems to eliminate the issue, at least according to the machine's own counts. If I could fix it with just some nose strips and a neti pot, that would be amazing.
How to Dominate Continuous Integration with These 18 Tools
>> Just because something got done eventually at a great cost doesn't make it successful

> Are you arguing that success is in the eye of the stakeholder? Sounded to me like it was a success.

I think a lot of these stories make sense if you replace software re-write with a home construction project gone overbudget, one where the overage comes out of your pocket.

I'd say that something that gets done eventually at a great cost is not successful if the case made for doing the project was an overly rosy story of how easy/inexpensive it would be to do. It really hurts when you pay for it, and that is the perspective to take.

As for success being in the eye of the stakeholder, sort of -- in my analogy, the construction company might consider it a success all the way to the bank. That project owner may consider it a success to save face. The project sponsor would likely not.
Sometimes I think something gets talked about in science fiction and then it gets stuck in people's heads.

Harry Harrison talked about Esperanto in the "Stainless Steel Rat" books and that is why it is so much better known than Interlingua

https://en.wikipedia.org/wiki/Interlingua

which is really a cleaned-up Latin that you might already know how to read if you've been exposed to Romance languages much at all.
WEwLC is excellent.
IIRC, its definition of "legacy code" is "untested code".

End to end tests are great for providing confidence that the code does what it says on the box.
Though end to end tests are slower than unit tests, and it can be tricky to track down why an end to end test failed.

A "Test Pyramid" seems a good idea to me.
(Unit tests can be quick, but don't cover much of the system.
E2E tests cover a lot of the system, but aren't quick.
"Test Pyramid" suggests it's better to have more unit tests relative to E2E tests).
"Only unit tests" or "only end to end tests" don't seem like practical things to aim for.
Get a partner ;)
We've asked you more than once to please follow the guidelines and stop posting uncivil and/or unsubstantive comments, so we've banned the account. We're happy to unban accounts if you email us at hn@ycombinator.coma and we believe you'll start using the site as intended.
You can find the fee information under "How Does it Work?" on this page: https://iglu.net/join/

Iglu takes 30% of your total invoices. I think ~20% is for your Thailand income tax and social welfare, and the Iglu fee is around ~10%. There's also a minimum of $2,500 USD per month. So you're paying Iglu about $250 per month.

I think it's a pretty good deal. It's one of the only legal ways to live in Thailand long-term if you're working as a web developer or startup founder. The other options are:

* Marry a Thai person and get a marriage visa

* Get a retirement visa if you are over 50

* Buy a 5 year Thailand Elite visa [1] for 500,000 baht ($15,000 USD) -- This also works out to $250 per month. However, it's technically a tourist visa, so you're not legally allowed to work. You also have to file your own taxes, and I don't think you're eligible for the social security system.

[1] https://nomadcapitalist.com/2018/01/22/thai-elite-visa/
"The best case for nuclear in the future" will be off Earth (I hope). High density portable energy sources are a godsend for solar system colonization. Solar and wind on Mars are much worse energy sources than on Earth, especially if you factor in the cost of transport. For a long time the most powerful system per kg is the one to use.
See my response above to the comment you are replying to. It is MUCH MUCH MUCH worse than that. The government had tasks force with snipers ready to eliminate the leaders "if deemed necessary". FBI refused to disclose who those snipers were, but since no arrests were made it is quite obvious the snipers are not some local criminal gang. This has been going on since the early 20th century and has to do with money. Not race, and not human rights. Money, and only money. Class warfare of the purest kind.
Both MLK and Kennedy are probably the most notable examples of people who were quickly killed when they tried to change the system and enfranchise the poor. You probably think of MLK as a racial rights leader, but that's only 10% of the story. The other 90% are his efforts to end the oligarchy that rules America and as soon as he started talking about poor vs. rich instead of black vs. white, he was promptly killed.
I am not even sure why we are even having these discussions, as not much can be done about it. The world is basically an international fascist regime, and the presence of separate countries is largely meaningless. We are all ruled by a handful of multi-national corporations that obey no laws, and are accountable to nobody. See the recent news about J&J knowingly selling for decades baby powder contaminated with asbestos.
https://news.ycombinator.com/item?id=18684384

If something so horrible (knowingly killing babies) can happen so habitually and be concealed for decades, then who the hell cares about freedom of speech or your civil rights?!? Seriously, wake the fk up!
Over 40 percent of Americans say no to flu vaccinations
I think this is a pretty reasonable set of counter points, even if I don't agree with them.

Being part of team incremental rewrite, myself, I'd say that you're overestimating the cost of the incremental rewrite and underestimating the cost of the rewrite.

For your first 2 points especially, I'd argue if you can't even begin to incrementally rewrite a system, you're in no position to begin to plan a full rewrite.
"No, my friend, we will not live long enough to see communism, but our children will!"
Ask HN: What is your backup plan for laptop if you have windows 10 laptop?
I have a windows 10 laptop and am pretty concerned the unstable updates will one day break my laptop

I want to have some backup plan

Like Alternate OS
Any CD or Pendrive which can just boot into a OS when windows breaks?

But i don't see a clear plan available for this. Because when i had a alternate OS installed my previous windows update ruined it and made it inaccessible.

Given its a 1000$ device i really want to keep my laptop functional with or without windows. What do you guys do to prevent your laptop from going waste.
I made Aliyah, but work visas are also possible(I think) Actually there is a huge shortage of tech talent. It's so bad the government is trying hard to encourage arabs and ultra-orthodox jews into tech.
This is interesting - do you have a source for this?
Reminded me of the https://usesthis.com
Can use a better design in my opinion, but always love these kind of websites. Maybe its a little like usesthis for developers.
GraphQL Stitching 101
It is a project I am thinking about myself and have made some progress on.

One angle is something like "Lotus Notes" based on modern document databases and with some document classifier capability for automation.

Another angle is IOT, controlling lights and music, using sensors, having weather radar maps already downloaded and instantly visible.

If I could eliminate web browsers from the mix I would but it will be a while... Right now I am looking for a UI framework that never blocks.
Most pictures are from Poland which was relatively better off than USSR at the time. My childhood memories from USSR are way grimmer than these pictures.
maybe klingon is more to your liking then.
How did you do #4? What other cities came up high in this algorithm?
It is unpopular opinion, but not all code can be cost-effectively validated by unittests at all.
I have been maintaining codebases where the customer would come and change his requirements on a weekly basis. While I could set up unittests to validate the code that implemented these requirements, doing so would demand significantly more effort than the code itself. I'm talking about some 3d graphics, game logic code. Instead setting up a simple ui (with imgui) to play with the state of the game scene provided much more confidence per man hour.
Jerusalem is a very international city. Lots of students, artists and tourists from all over the world. Locals are used to and friendly friendly to foreigners
>That was your original question. It contains, as everyone is aware, your original statement that stars work by converting gravitational potential energy into light and/or heat through fusion. This claim is patently incorrect. It is false. It is misleading. It is a red herring, and a canard. You seem susceptible to it, for some reason. My only advice is to just set it down, over there, and don't play with it. The only winning move is not to play.

That was a gross simplification but technically correct, without the constant force of gravity which confines the gas there is no sustainable fusion reaction in stars.

On earth we replace gravity with magnetic confinement.

>Sigh. There is no "confinement energy." This is a physics-sounding phrase that you seem to have coined. Set "confinement energy" down over there next to your original question. It's poison.

If I phrase it as the energy required to maintain the magnetic confinement field in a fusion reactor in order to maintain the fusion reaction would it be better? Because now you are arguing semantics.

>Which fusion reaction? Where? So, you can set a solar panel up to do "extraction of energy" from the Sun. Experimentally, this has not shut down fusion in the Sun. So, yes? We have a model? Further, there's no way to not "extract energy" from a fusion reaction, whether or not that "extraction" shuts it down. You, and I, generally exist at a lower temperature than fusion reactions. Ergo, we are extracting energy via radiation from every fusion reaction in the Universe, via heat transfer.

Which is exactly my point the, what confines the nuclear reaction in the sun is a complex process which involves the inward pull of gravity this is what prevents the sun from blowing out until it cools down, you constantly keep ignoring this fact.

On earth we use magnetic fields those magnetic fields require power now I agree that in a reaction that is an equilibrium there is no work between the field and the plasma as both of them are opposing and equal but we still need to power that field if we power it by the excess heat from the fusion reaction the question is then is there any other excess heat that can be used to generate electricity in addition to what is required to power the magnetic field, and this is with a hypothetical 100% efficient model.
> A universal shared language for international communication?

That is a very good idea. But in order to be successful such a language needs to be spoken by a large share of people internationally.
The best language we have for this is English. It's not perfect, because in large parts of the world, particularly in Asia, many people don't speak it. But it's far better suited than Esperanto in almost every imaginable way.
There is a trick to rewrites: start by writing a full suite of end to end tests. Once done you'll discover that you can easily stabilize your old code and make changes with this security harness.

Sometimes, but it's not always that simple. Useful software tends to interact with external systems, which might not be amenable to that sort of automated end-to-end testing. Also, the objectives of a rewrite might include enabling new integrations and/or user interfaces, which deliberately don't work as drop-in replacements for what was there before so wouldn't expect to pass the same end-to-end test suite. Automated testing is useful in the right context, but IME it's rarely the whole story and there are often data migration exercises and new integration tests to be done as well.
No. People deploying code must be able to manage vulnerabilities in dependencies by updating them.
Well, African Americans were enslaved, but were also taught valuable skills in cotton agriculture. Having carefully weighed the pros and cons of the two, we've concluded that slavery in the United States was a net wash, and, if we were to repeat the experiment again, slaveowners should not owe their slaves any reparations.

> infrastructure

Infrastructure that was paid for, and built by the people of India.

> medicine

Then why did life expectancy in British India go down during the colonial period? And why were millions of people dying in famines, all the while British India was a net exporter of food, to the rest of the empire?

> industry

How did countries that did not get colonised ever manage to industrialize?

> language

What, did Indians communicate with eachother through chest-thumping, and grunts, before someone had the bright idea of teaching them how to speak English? Christ on crutches... This reads a bit like satire.
Confluent continues to fund the development of quite a lot of Apache 2.0 code and that is a huge part of our business and strategy. Perhaps your point is that if a company produces any non-open source code they are not an open source company?