skysight-inc/HackerNews huggingface dataset:
Ask HN: How to remove sabotaging mental models?
There are many healthy models (new functions) that we can insert to our code like in this post https://news.ycombinator.com/item?id=18588727 or in this post https://fs.blog/mental-models/
But we all have some unhealthy models which sabotage us from reaching the goal that we desire. These unhealthy models (code) is usually implemented when we were a child. Back then, it was a way to cope with the situation, but now the world has changed and so have we, thus instead of helping, those models actually hurt us.

There are 2 parts to this.

1. Identifying how we are sabotaging ourselves 2. Removing the bad code

I'm fairly confident that I can remove the bad code once I identify it but I often fail to find the bad code or have a firewall preventing me from reaching the bad code.

Is there a systematic way I can do this? How have you done it?
> they are just keen to buy/cheat/steal

Nationalistic swipes are not ok on HN. Please don't post like this again.

https://news.ycombinator.com/newsguidelines.html

Edit: looks like we've had to warn you about this before. We ban accounts that do this repeatedly, so can you please take the spirit of this site to heart more? Obviously we can't have people slurring other countries or peoples and have this forum remain civil and substantive.
ECC is useless until it is not.
Just like insurance, backups, etc.
The problem with billionaires guessing what lowly commuters want is that they focus on speed and comfort instead of the more mundane issues as "bum with distinct urine smell", "person who ate several garlic cloves the evening before" and "menacing group of youths".
The issue with such an app is not the fact that it is being hosted but rather the fact it was created. Going after amazon will not change the fact that the Sauds think this app is moral. In fact it only distracts from the issue. Amazon is a company and wants profit. Saudi arabia is a sovereign country, which means it is the only entity involved that can truly enforce its morality. That anyone would think to first criticize Amazon is somewhat ridiculous in this context
If we start getting more recalls and lawsuits due to CVEs, things will change.
While I agree with you; I believe this is non-reversible. If it's not this company, 10 others will be launching their products in the next few months. Humans have become hackable and unfortunately our strength to innovate is the one that's becoming our bane. As Yuval Harari points out; in the short future companies like Google, FB will know more about us than we do.
I think the parent poster’s point is that that’s a very western perspective of morality. Imagine if the tables were turned, and the apprent promiscuity promoted by apps like Tinder was deemed immoral by a country that’s more conservative. Should that app be pulled globally as a result?

To them the fact that we allow so much casually dating could be (and in middle eastern cultures often is) viewed as “wrong”.
Amazon cares a little about physical location and a lot about network bandwidth for this stuff.

So, they are building a location in South Africa that will cover southern Africa, but their locations in Brazil and Europe actually have good coverage for Africa already and only recently has the demand approached the point to be worth the investment.

The reason for the is under sea Cables provided most of Africa’s backhaul capacity, which relates a little or geography and a lot of economic development.
"If you want nutrients, eat vegetables." meanwhile fruits are bad. Are you supposing me to assume that he meant "vegetables and bacon, but keep off fruits"? That would essentially make keto only not-bad diet.

You cant sustain on carrots and beetroot. You just cant, caloric density is too low. You would have to eat too much volume of it. But, go ahead and try that. Eat only them and no nuts, no oil, etc. Observe how much active and performing you are after few days. Vegetarians don't live off vegetables only either.

Vegetables are very low on calories. That is literally why they are recommended for diet - but eat a lot of vegetables advice is not nearly the same as as "everything else is bad, eat vegetables".
Large parts of Unity (everything C#) are source-available as well.
Please don't cross into incivility.
Personal attacks aren't ok here, even when another comment crosses into incivility. In order for HN to be the kind of forum we're hoping for, it's necessary that we all have the patience to wait out the first surge of anger that comes up when somebody posts something unfair. Believe me I know it's not easy.

https://news.ycombinator.com/newsguidelines.html
> Smartphones are now essential, so you can't completely avoid doing business with at least Google xor Apple...

What? Why?

Smartphones are convenient, but essential? Phone calls and SMS/MMS still work without a smartphone.
You also have the matter of the Gadgetbahn advocate convienently neglecting to mention that most of the cost of a typical subway system goes into the cavernous stations. They pretend the costs of a modern subway station is purely the cost per mile of tunnel, and that's the number they compare their pure cost per mile number to.

So the subway cost per mile includes stations, while the Gadgetbahn cost per mile doesn't include anything other than tunnel boring. Certainly not the costs of each ludicrous car elevator.
Thanks, this is incredibly useful, I use everything in this package! It also doesn't deviate from the spirit of Redux or abstract too much, like rematch for example. Without something like this, I find that many people structure their entire Redux code based on simple tutorials. They typically only read the docs or worry about best practices and complexity after they encounter problems. This kit will have them start off on the right foot.
Since for SemVer "to work, you first need to declare a public API" maybe tools should require a file VERSIONING (or SEMVER?) containing something like "<PRODUCT> follows SemVer 2.0.0.0 <https://semver.org/spec/v2.0.0.html>. The public API of <PRODUCT> consists of ... We pledge to change the major version when we make incompatible changes to this public API. ... We consider the following as incompatible changes to the public API: ... We do not consider the following as incompatible changes to the public API: ..."
The problem is that sanctions have to be enforced, and the current US government is... severely lacking in that aspect: https://www.bloomberg.com/news/articles/2018-09-28/the-trump...
”but I can understand how someone could think that might be a worthy addition to the piece.”

I can understand that, too, but if, as telesilla did, you write ”How can an entire article about Babbage and the Jacquard loom not mention Ada Lovelace even once?”, I and, I guess, many others, don’t read that as ‘might be a worthy addition’.

And I don’t know greglindahl, either, but their comment that I replied to argued that, a) the article wasn’t about the loom, but about general computing, and b) because of that, and because Lovelace wrote about the jacquard loom, she should have been mentioned the moment Babbage got mentioned. That’s the only place I know where greglindahl writes about the loom.
It’s not that Amazon is primarily culpable, it is that a person in the US has more leverage, however minimal, over Amazon than over the Saudi king.
What do you think of companies that used slave labour legally or use child labour legally? They want profit, and it’s legal. Does that make it ok?
Show HN: Templates build without code
That's a US problem more or less endemic to how the industry works. You can complain about it, but the best recourse is never using those companies again. Eventually, we'll all hopefully come to this conclusion and every cesspool of dark patterns will die somewhere we don't have to see it.
I hardly use C++ since 2006, only when I am forced to step outside Java/.NET or happen to actually do some hobby projects in C++.

Meanwhile at work, a couple of C++ servers have been replaced by managed ones across a couple of projects.

Even with the current stacks, not every business needs the ultimate performance across all stack, as an example Siemens and Zeiss use .NET on their digital imagining solutions, with native code only in the hotspots.
I mentioned Typescript as an example of language where I could do this, so... Yes?

Typescript is not a language I would say has a verbose type system.
> If we’re going to continue to allow these companies to enjoy as much power, money, and influence as entire nations

FAANG have more money than entire nations' GDP or outstanding debt. Apple with its 250B cash reserve could buy over half of Greece's outstanding debt.
With limited livable space on the Earth, "rights over their community" is not a tenable position. If every person had significant rights over a large area of land beyond where they explicitly own, there'd be no space left for other people.
Withings Pulse HR vs. Fitbit Charge 3 Compared
They talk about Content Management, why not do some development on Google Sites finally. It seems like it's been idle for 10 years.
I would like to see some love for Google Sites so small businesses could use it make a proper looking website where content management would be over Google Docs.
This reminds me about the supposed irrationality of emotion. An old popular view pits rationality against emotion: The more rational you are, the less emotion rules decisions, the better. The fallacy I see in this is that a rational human would acknowledge her/his humanity, and judge in agreement with empirical evidence that systematically suppressing emotion leads to certain psychoses and emotional disorders that will, ultimately, make her/him less rational. That is, to be more rational, one must allow herself to be a little irrational once in a while.

In agreement, the cognitive cost of being rational all the time is too high, and is, after all is done, irrational.
Yes, which is a great wait to reveal someone who does it to make themselves feel better vs the actual welfare of the animal.
We have to have a line somewhere. Google and Apple aren't IBM helping the Nazi's.
Exactly. We seem to forget that our parents lived just fine and even happily without most of these instant-gratification and convenience services. It is possible, if we try.
> China (and others) can also simply intercept all udp traffic to port 53.

Which is why DNSSEC (to prevent MITM tampering) and DNS encryption technologies such as DNScrypt or DNS-over-TLS/HTTPS become ever more important to be widely deployed.
Well, China isn't our only market, far far from it. It's extremely niche in fact - but users have asked us to make a Chinese version of some of our products, so we did. Alternatively, we could have said to those users that we won't provide a localised Chinese version of the product because of political reasons. At the end of the day, I don't make these decisions - I'm just a programmer writing code.
Serious question: Where do you start and where do you end then with majority opinions? If this app is a clear case, how about Erdogan‘s secret police app? So if Islamism isn‘t okay, what about Zionism? Just Israel’s right to defend itself or not so sure anymore?

Who holds Googles and Facebooks feet to the fire for collaborating with PRISM, giving your nude selfies to NSA personnel? [1]

Is there a majority opinion this is okay if some amount of terrorism or "terrorism" (depending who you ask) is thwarted?

IMHO, the answer here is there‘s simply no easy answers here, and if there‘s just one thing to learn, it‘s that the world is a place with a lit of different opinions and values.

[1] https://www.dailydot.com/layer8/snowden-nude-sexually-compro...
There are countries which still have conscription. In many of those countries, people can choose to do civil rather than military service. For example, Denmark:

https://en.wikipedia.org/wiki/Conscription_in_Denmark#Milita...

I am certainly not a fan of conscription (and two-thirds of Danes aren't either), but this doesn't seem to be a huge problem in practice.
If you need a proper mobile front-end. Hit me up!
No, it is not full or none, that is ridiculous. You are allowed to have a line that you will not cross.
Yeah I must've been 14 and had no idea how Linux worked, so I never figured it out LOL at least I got to try Knoppix over the years.
Microsoft is a big C++ shop, we would all be running AOT compiled .NET code post Windows Longhorn if it wasn't for the political wars between DevDiv and WinDiv.

Just notice that on current desktop and mobile OS SDKs, Windows is the only one where C++ still gets a place at the GUI table. Everywhere else it just got pushed down the stack.

So while some divisions would like a world of purely .NET (AOT/JIT compiled), others would rather that it did not exist.
Fira Code[1] because I really enjoy its aesthetic (especially the ligatures).

For general purposes, I like Open Sans[2].

[1] https://github.com/tonsky/FiraCode

[2] https://fonts.google.com/specimen/Open+Sans
Paris sues AirBnB for $14M
>>Odds are OP will never make this much money again.

I hope these kind of things are taught to people early. Somewhere in school, or may be at a level of a social value system. The default every day mode for most people is to work very hard and fail. In fact you are lucky to achieve mediocre success even after working insanely hard.

>>The best thing I ever did for the family budget is work out a plan ahead of time for windfall money.

Yes the best thing to do in case of a windfall period is to take all the money and put it into some kind of an investment. So that when the gravy train stops, you have something to fall back on.

>>Spending like this is the new normal is how rock stars and athletes end up broke at 40. You have to get out ahead of it.

It isn't just rock stars and athletes, its your every day cousins and uncles, who have some career run, spend like no tomorrow, when the gravy train stops, they realize they have their best years behind them, all their money is gone, and nothing that they can do will help them even get by, let alone take them back to their past glory.

>>$150k a year with young kids (they haven’t begun to get expensive yet) in Seattle is pretty high. Getting that down is a good deal of effort that will distract from running the business.

A lot of people will be willing to show sympathy to you if you met with an accident and bad things happened to you beyond you control. But if you threw away a perfectly fine opportunity and asked them to settle for less, they would be asking why should they even be doing it at all.
My values don’t contain anything about Taiwan. I’ll call whatever you want because I don’t think I have nearly enough contextual knowledge to know who is “right” and “wrong” in that conflict.
I think the more important question is: whose "modern political opinion" is the decisive one. Notice that even relatively politically close countries have diverting understanding of important cultural issues.

Think about sex-related subcultures in Japan and, say, US.
This appears to be an ethical issue, not a moral one.
So your point about gdp isn't relevant?
China is also feeling the effect. In Thailand right now there are entire villages / neighborhoods full of Chinese immigrants who have migrated away from China. Once they tasted freedom going back to live just isn’t feasible anymore. So much do the that now the Chinese government have stopped people from moving large amounts of cash out of the country to buy real estate outside of China. They are definitely feeling the effect.

I also know a lot of foreigners who have been operating businesses in China for the past 7 years and are now moving out because they feel their civil / organizational liberties are being invaded.

People find ways of revolting without being killed. Freedom is a powerful force. Blocking and controlling is like a game of whack a mole. There is one of you and billions of moles, the Chinese government and Russian government are fighting a losing battle. Of course none of this is reported because of censorship. But if you read the news and you understand what’s going on on the ground level it all makes sense.
Well, that's no surprise. Their plan was essentially to hold a televised execution while lacking the budget to build the scaffold.

Here's a technical assessment of the viability of their plan: https://scienceblogs.com/startswithabang/2014/01/18/ask-etha...
The NPM approach does not have that specific downside indeed, but like you said. What are you going to do when both return a different version of a Type to the "main" code?

It's not a Java/Maven problem. Rubygems, Pip and Cabal have the same restriction, and that's only the ones I know that have it.
The profit motive is exactly why such regulations are useless. The dealer will harass every honest customer in case one of them are the type to report them for not checking, and then pay pennies on the dollar for the copper pipes ripped out of a building which they know were stolen because both parties to the transaction are aware they're profiting from participating in criminal activity.

And the dealer may not even need to be in on it. If the thief lies and says the material was found in a dumpster at a construction site, or that it has been collecting dust in their basement for twenty years, and there isn't any way to trace a generic pile of metal back to where it actually came from, what does it matter that you take their name?

Which is why cities like Detroit are full of buildings that have had their pipes stripped out. The deterrent isn't the scrap metal dealers, it's that the thief goes to jail if caught in the act, so it only happens in places where people reach a level of desperation that isn't present in most other places.

And regulating pawn shops is even sillier, because the thief could just sell the stolen goods on Craigslist or at a swap meet or a hundred other alternatives.

These types of criminals are most commonly caught directly by the victims -- because they're the ones with the best incentive to actually do the catching. The people with the second best incentive are law enforcement. Deputizing disinterested third parties, much less ones with an active conflict of interest, is largely useless and generally does more harm than good.
I look forward to the Netflix documentary.
right, actually one of the topics were i stopped on my first readings.

https://mitpress.mit.edu/sites/default/files/sicp/full-text/...
Constant firewall cost is too high. It's much easier just to abrupt external network several times to show that foreign services are not reliable. As for me, rather government that does this is not reliable, but that's unlikely that protests will be strong enough. Yes it will be a "test", but a lot of small companies will be worried and will need to find a way to keep their operations up.
CVE-2019-5736: runc container breakout (all versions)
This is exactly what a strike is. It sometimes works.
Even though you can still screw up as as a programmer in a better tool, you should still pick that tool if that reduces the security risk by a number of percent over another tool. (as a swede would say "Think of the percentage")

So why doesn't everyone go with the better tool? Large problem is that experienced programmers encourages new programmers to use the older & less secure tools. I guess in a way to stay relevant.

Just this past week it has been an article about C programming almost everyday on the top list here at Hacker News.
What genocide? America has funded many proxy wars (the mess in the middle east and fuels the constant with aid to both sides of the israeli/palestinian conflict) and China is actually modernizing africa instead of putting in banana republics. It is no more moral than China.
What's unhinged about that?

Threat of retaliation has been a defensive doctrine since forever. I'm sure they'd love to add Washington, NYC etc to the list, but Iran doesn't have the capabilities, so they just target Israel instead, knowing that Tel Aviv and Haifa aren't far behind DC/NYC in concerns for the US govt.
Automate your workflow using GitHub actions
Poverty entails non-optimal choices.

It is more efficient to go to the gas station and fill you tank all the way. If you do, you are less likely to accidentally run out of fuel somewhere, you can choose better where you fill up for the best price, you do not waste time that could be devoted to other profitable endeavors.

So why is it rational for the poor to only put in a few dollars at a time? It is not often the case that they don't have enough money to fill the tank; No, they don't fill it all the way up because come end of the month, gasoline in the tank is not as liquid as cash, and other needs may arise. Filling your tank is a statement about the predictability of your financial needs and the availability of credit to offset hard needs.
> It's always bugged me when behavioral economists start going on about "irrational human behavior." Using your precious energy on too many system 2 calculations will not help you live a good life. So compromises are made. Thinking is hard work. It is entirely reasonable to minimize hard work.

I think you're missing the value in finding that some things are irrational. Of course no one assumes people make perfect decisions 100% of the time, and of course there are cases where making the better decisions isn't worth it - but it's incredibly useful to know in which cases people usually make "wrong" decisions, in order to, when necessary, find antidotes. Wrong is a synonym for irrational here, and is a placeholder for "contrary to what the person would have chosen to do, had they had all the information".

Take the "planning fallacy" - a pretty well known bias in which people underestimate how long things projects will take. Knowing that it exists is what leads people who want to get the correct answer to use "tricks" to get a more real answer (like taking the so-called "outside view", and estimating how long a project will take based on how long similar projects took in the past).
Show HN: Ahoy – Twitter for Your Neighbourhood
Ask HN: What is your failure story?
We hear success story all the time. That is good but I think failure stories can give more learning.

What is your business or startup or carrer failure story?
Regarding the ruby example, thinking about the performance of such a (non-)feature makes my head spin. Not to mention the possibility of side-effects wrecking the program state and the complexity of debugging code like that without making Rubys error handling aware of such a construct.

All in all, this seems like a fun hack, but a catastrophically bad idea in practice.
I understand completely the parent's point of view, because I am confronted with hundreds of people like that on a daily basis. To be honest? I am tired of justifying insanity, despite the legal point of view, and despite the fact that tables are not turned. I am not a lawyer and I am not sitting at a round table, and I have opinions. And my opinion is that due to this "oh, by law, or by religion" we are throwing away every sort of freedom and respect our parents and grandparents fought so hard so that we could today give them for granted.

Tell me one woman in this world that likes to be treated less than a car to rent (take a look at the website, you even have to justify where to go and for how long. Basically with car2go a car is treated with more respect than a human being). But as someone might argue, it's not up to me to judge. Thankfully I live in a country that treats everyone with respect.
Im surprised, ever and ever again, how well this works on mobile.
Are We Automata? (1879)
Great, Google gets 5 more years from its technical women while the kids are raised by government mouth breathers. No thanks
No, because they are short range and require stations on earth to provide internet locally. As far as I know. But I know very little about starlink.
Announcing Open Web Component Recommendations