skysight-inc/HackerNews huggingface dataset:
I have a few problems with React hooks.

1. I’m not sure what they have in common with each other. What exactly is a React hook. Nearly every hook is its own thing, with its own purpose, use, etc. With the new “use” hook, even the original hooks rules don’t apply anymore.

2. Related to the above, every hook is an entirely new concept. Learning react you would think once you learn “hooks” you will be able to understand basically what they did. Much like once I learn “classes” or “functions” I can figure out what they are. But every hook is its own concept, with its own rules, and gotchas, etc. Sometimes I wonder if the reason they’re called hooks is to present them as a single
Concept, otherwise it would be too obvious that React replaced a few concepts, state, and component lifecycle, with about 3-5 concepts in the library in the early versions, and many more now, with an infinite possibility of concepts through custom hooks.

3. No one in the React world seems to have a clear mental model of what hooks are. useEffect is the most egregious here, but the name (and the original React docs) indicated it was for side-effects. But then it’s also used for lifecycle management. Finally, it appears that now the React devs have started pushing the idea that it’s to keep “components in sync with an external system”. And useEffect is probably the most used hook outside useState.

To be fair, usually descriptions of concepts can change with time. But with useEffect it’s not just the description that’s changing. It’s the entire mental model, which makes it seem that the React devs themselves are not clear what useEffect is supposed to be.

Fundamentally, hooks seem to be a bunch of ad-hoc solutions that React devs use to solve specific problems they notice in the wild. But there doesn’t appear to be any fundamental consistency to what they really are.
That makes no sense, that's like saying the costs of oil are rooted in Saudi Arabia, Oman, UAE, Russia etc. and all the benefits go to other countries. Those countries have immensely benefited from selling oil to the world. How is solar power different?
The new normal is sadly neutering problematic products.

Like sydney/bing or chatgpt
There are very real concerns but a whole lot of people talking about them have pretty shallow knowledge and just sort of jump on anything that sounds right. This is a problem with many issues that attract activists.

Lousy activists shouldn’t invalidate the issues that inspired them.
I believed the strike was under £100 and cost overruns were to be paid by EDF?

Was there a contract change?
Or it matches their search needs?
I just read a New York Times article from Noam Chomsky because it was linked on HN in this same HN browsing session where he says the same sentiment about this "new normal" of AI developers restricting their systems from producing interesting output in order to prevent them from offending anyone, and mentions it at least goes back to 2016 Microsoft taybot, so I don't think its that far off base.
A "narrow bank" could work, but the Fed currently denies them banking licenses, since (presumably) the social function of banks lending out deposits is considered useful.
well. python has ALOT of stuff but alot of it is garbage compared to how they should be done. like python's lambda, you literally have to write the word lambda. it's ugly af

i bet the python macros will be ugly af too.

also walrus operator = bdfl no more.
Is it known if Diana was waxed and/or boosted?
I was fully up to date when I got my first covid and it still took a serious toll on me. Hope she recovers :(
not in a system without state or capital.
Nine Mile Point starts supplying hydrogen
> I cannot take it seriously because it comes across as an indictment of tolerance and an endorsement of intolerance as a moral imperative.

It's a very simple concept, described by Karl Popper in a single straightforward paragraph, commonly referred to as the Paradox of Tolerance. It's one of those lessons that came out of the aftermath of the Holocaust, which for some reason people go through great pains to refuse to comprehend.

That's fine - should you ever find yourself as part of a demographic that some other group wants eradicated, feel free to defend to the death their right to organize and recruit and argue for that, and tolerate their hatred as much as you like. In fact, just out of principle, make sure they have access to as many platforms as they want and can gather as much political power as possible. Maybe even try to engage them in debate, despite the unequal power dynamic between truth and lies (particularly in the modern ecosystem of engagement-driven social media and manufactured reality) - sunlight is the best disinfectant after all.

I'm sure it'll all work out OK.
I disagree: I think it would be better to keep public servants from living anywhere near these places that they can't afford.

Let's see how all these NIMBYs like not having any teachers or firefighters. If public servants can't afford to live anywhere near a neighborhood, why should that neighborhood have any public servants at all?
OpenAI released a tool for this. If you are just curious, research burtiness and perplexity.

https://www.searchenginejournal.com/openai-releases-tool-to-...
not overestimate. i think they know of the challenges and stickiness of python die hards.

but there's a better way, there's a better way.

like python used to be less popular than perl but look at where perl is now vs python. things do take time to change though
Cool and thank you for the kind words! And, really thanks for looking. If you decide to try it check out this

https://openmetal.io/programs/education-and-training/

and right now from this discussion I am adding a link to that page from the Guiding Principles page. Seriously, thanks!
SVB has taken a major impairment due to rising rates already. They might not have to mark the remaining assets to market, but if they have to sell they will take losses, even if these are liquid.

His statement didn't project confidence. My "we are adequately capitalized" shirt is raising questions answered by my shirt is the meme way of expressing it. The right move would be to find a recapitalization transaction and complete it, which they tried to do but issued the press release right after a crypto-focused bank went into receivership due to falling account levels. That did not help matters.
"Everything is Cool and Normal (TM)"
It actually depends on the setup. Some entities do sweeps into multiple banks, theoretically allowing a higher than 250k limit. I'm not sure if Robinhood still does that or not, they've had multiple 'cash' offerings and I haven't kept up.
So did Louisiana banks issue loans?
Nord Stream Blast Probe in Germany Centers on Sailboat, Crew
Why would customers be pulling deposits unless you are offering lower than market interest rate? If T-bills are 3%, they can pay depositors 2% now and so whatever condition kept the customers there at -1% risk premium would still keep them there. No run on the bank. And given they are T-bills, duration is minimal, so $1000 might be worth $990 even before coupons. Whoop-de-doo!

There would only be a problem if the bank's credit deteriorated in its risky assets, enough to freak depositors out.
>In return, they get a permanent job that it is very difficult to be fired from, and "get" to work with kids.

That's not a plus, it's a big minus. Go check out /r/Teachers on reddit; American kids are so horribly behaved these days that it's driving a lot of people out of the profession. They should be paying teachers 5x as much for dealing with these monsters.
Is the use of a rare earth element really functionally necessary here or are they actually doing it purely for marketing value?
The cash registers at Stewart's locations in New York all play the ding noise from Windows 98.
We are processing about 50 million words per day for about 12 languages. I can tell from experience that google translate is giving the best results. It similarly prices to deepl. We explored the idea of using chatgpt, but its extremely expensive compared to google/deepl 500.000 words for +-20 dollars versus a lot more with chatgpt.
"Kinda wild" that they're attributing a change over 8 years to the last 6-9 months of that period.
Interesting.

There’s this conspiracy that there was this civilization of the “Tartarians” that had technology to pull electricity from the air and many old churches and temples were actually electricity generators. These buildings were converted into religious buildings after a kind of reset. It’s a fun conspiracy to delve into (imho).

And I believe Nikola Tesla claimed it was possible to extract electricity from the air as well. He might even have had some prototypes.
> the locations of the Nord Stream 1 explosions are in some of the deepest water in the area directly surrounding Bornholm. Why would a non-state actor operating off a 50 foot yacht decide to place the explosives at the most difficult and time-consuming location? The vessel was relatively small and not equipped with active AIS, so there would be hundreds of more accessible locations along the pipes for the saboteurs to place the explosive charges. On top of this, blowing the pipeline towards the deepest point in the area reduces the amount of the pipeline that is flooded and as a result makes it easier and cheaper to repair. The group chose the most difficult area to perform the dive where the damage would be the easiest to repair.

Wow. I never knew this. This is the closest Oliver Alexander came to state that the only logical perpetrator of the sabotage were the Russians.

Here, let me spell it out:

- if you are an enemy of Russia, you want to inflict as much damage as possible, with as little effort as possible. You don't pick a deep point to sabotage just because

- if you are Russia, you want to keep your options open. You blow up a part of the pipe that makes subsequent repairs as cheap as possible, so you are ok with performing a more difficult mission to do that.
This still generates the same false positive for me, in all of the previous repos I tested on.
i basically disagree with the point that the phone is more important than the personal computer. The phone you have eveywhere, yes, but it is a worse experience, and the main thing keeping them "dominant" is the business interest in preventing you from using adblock.

In a well regulated regime, I cant imagine people using a phone when you are at home and have access to an actual computer.
more details in today's German coverage again: https://www.spiegel.de/panorama/justiz/nord-stream-explosion...

>Fahnder rekonstruieren Kurs der Segeljacht »Andromeda«

>Die Sprengsätze für die Nord-Stream-Explosionen sollen auf einer Jacht transportiert worden sein, die über eine Charterfirma auf Rügen vermietet wurde.
> instead they chose a realistic looking mock camera. I wonder why.

For it to look better? Not everything has to be a generic plastic cover.
Sure, but I think you forget: we aren't the first industry to have amnesia.
Oh come on. The author never harassed her caused any harm or did anything she refused. He was a suitor and had a crush.

Stalker is a word better used more carefully in my opinion, for bad people. Not hopeless romantics perusing hopeless relationships.
Repeating for a third time so you can hopefully read it and actually respond when you hit ‘reply’:

Claiming things that aren’t violent are violent steals resources - not just awareness but potentially money, police time and medical attention from victims of domestic violence

I’m not responsible for all of humanity: you should want a clear definition and separation of violent and non violent abuse so why don’t you handle this yourself rather than asking me?

“get with the times” is ridiculous. vague legislation is bad whether it’s new or old. Likewise a lot of progress has obviously been bad much like other progress has been good.

I’m actually not really interested in your replies any more, since you’re not actually responding.
Biomilq and the New Science of Artificial Breast Milk
No FDIC insured account has ever lost a penny, despite bank failures happening.
The first wiring map of an insect's brain hints at incredible complexity
>The FDIC insures deposits up to $250k

Per depositor, per insured bank, per account category.

It’s not that difficult to keep significant excess deposits insured.
I dunno what to tell ya, I see pods come and go from Prometheus all the time, including those from newly added Service objects with Prometheus annotations. I'm using kubernetes_sd_configs.
Are all of these really the same? Some examples look quite different
A Montenegrin Gang Used Open-Source Intelligence to Kill
The link from '2muchcoffeeman shows a dramatic increase in March 2020–January 2021 rates after Covid among a 36,005,294 cohort group with 1.45M Covid cases.

Which is fun, since 200,000 is a LOT of people and would normally (assuming independence and randomness) be seen as more than enough, but there's probably not a lot of true randomness/independence in cohorts of people who got Covid in that period. Probably a lot of shared characteristics.

In any case, the sample that's 7 times longer is probably the one to go with.

So the express article talks about risk increases of 75% and 557% (Pfizer/Moderna). The COVID cohort in the March 2020-January 2021 US study is a 16x increase. So quite likely several multiples worse to get "original" Covid unvaccinated, also a lot of unknowns around new variants and immune response, of course, but...

It's all pretty straightforward, no? Vaccine causes similar effects to a real infection intentionally, to stimulate the immune system. Sometimes this has side effect. The actual virus - which is much more, ahem, viral - hits the body even harder, the immune system produces much larger effects, including more frequent instances of the same side effects.

And these numbers all around are still infrequent, and viral infection has caused myocarditits for a long time pre-Covid too, so the hysteria seems like confirmation bias (either of "Covid is the source of all my problems" or "vaccines are bad" reactionary silliness.)

How frequently you do or don't get boosters should depend on disease prevalence, patient history, risk factors, etc, but.... the idea that people are commonly dropping dead from these vaccines or this disease super frequently, and worringly more than the whole world full of previous diseases? I'm unconvinced. And that it's "mRNA specific" vs "immune system stimulation" related? Seems to be zero reason to jump to that conclusion.
Whiles it’s difficult to spot AI generated content, more steps should be taken in order to…
A christian ministry's API is ranked higher than Coinbase? You guys are nuts.
I've been doing this manually for years. It's nice to see as a feature in my daily driver browser. It's kind of tricky manually when it looks like the GUID at the end of a URL is a tracking link when it's actually the id of the article despite part of the headline being in the URL.
Want to read crazy conspiracy theories about CIA coverups and lizard people blowing up the pipeline? Completely free, go for it.

Want to read actual reporting on the facts of the matter? Gotta pay before you can read.
The general use-case is quite simple and readable. Now if you’re seeing YouTubers or Twitter users selling courses and you feel that you’re missing out, that’s marketing.
Take some time to check some popular open source projects in Typescript.
‘Unscrupulous’: Man sues Coinbase in San Francisco after scammers take $96,000
I work in healthcare and could make more money doing other jobs I am qualified for but prefer to work in in-home healthcare because I don't hate it. Cleaning up human waste is preferable to working a higher-income soulless job. I have also been a volunteer firefighter for a part of my life and that didn't just not pay me, it also cost me.

Not everyone is a cynical monster who would only ever do anything that benefitted themselves personally.
I just received an email from one of our investors, sent to all portfolio companies, advising everyone to transfer all of their money out of SVB at 8:30am tomorrow morning.

Investment/VC funds are doing the same (we’re talking many, many billions of deposits lost in a span of a few days).

There is a chance SVB will freeze assets while they deal w liquidity crunch which may impact startup ability to pay bills, pay salaries, etc.

If you use SVB, transfer your money out now (as in Friday morning at 8:30am), even if it’s to your personal account while you set up a business account elsewhere.

This is a serious issue and may result in wide ranging damage to the entire tech industry.

SVB is the most commonly used bank by startups and investors. This isn’t media trying to hype a story for clicks, this is a real an major issue.
For me (coming from C++) being able to easily union and intersect types, and being able to specify certain values (not sure the right name for this). For example:

type ServerResponse = {success:true, response:JSON} | {success:false, error:string};

In C++ I would probably have to type success:boolean, and make response and error optionals, but the TS type is more expressive.

if success==true, then response must exist.
if success==false, then error must exist.

const sr: ServerResponse = {success:true, error:"moo"); // won't compile, doesn't match

TS understands this type really well, and type narrowing makes it easy to work with.

// NOT LEGAL; error might not exist
console.log(sr.error);

// IS LEGAL; we test for success first, which narrows the type.
if(sr.success){
console.log(sr.response);
} else {
console.log(sr.error);
}
That’s true. The actual process of granting a pod access to edit route53 TXT records is pretty easy.

The problem is duplication of functionality within the cluster and increased complexity in the configuration of deployments. I want to configure a certificate acquisition process once, and plug those certificates into pods using a generic process based on annotations. I don’t want to configure it 6 times because each operator does things slightly differently. Each CRD introduces new complexity to the cluster. More opportunities for things to break. More stuff to read and learn about.

I think CRDs should be used to extend the platform functionality, not as a tool to simplify deployments. It feels a little like reworking the plumbing in your house to make the sink easier to install instead of using a wrench.
Something should be pointed out to outsiders looking at typescript, otherwise they might get the wrong idea about the language.

In practice there seems to two different sides of typescript code.

1. Regular projects: tend to have rather easy to understand/write/maintain code.

2. Dependency code: tends to have code-golfed metaprogramming that the IDE uses to auto-magically autocomplete and highlight issues in regular project code.
I'm not criticising anyone in particular, but I thought HN might be more open to a discussion about it. I would be interested in what mechanisms HN has chosen for blocking and why @dang if you know?
Discussed at the time:

Systems design explains the world: volume 1 - https://news.ycombinator.com/item?id=25552267 - Dec 2020 (152 comments)
Has the generative AI pricing collapse already started?
You're right about the instruments being different, but I'm just pointing out that the US military has, in the past, set up all-new civilian governments in places after bluntly overthrowing the existing governments. In some cases it ended up working out rather well, certainly better than what was there before. So it is absolutely possible, as proven by experience, to use a military power to conquer a place, and then set up a better, democratic, civilian government. Even better, all the places where the military has done this (except Afghanistan) now have much better governments than LA. (Even Afghanistan was better until its government fell because it couldn't defend itself.)
No comment is almost worse if someone is asking about your bank’s liquidity.
it is text to speech. its purely for people who are writing articles and stuff.

right_speech : speak only selection

full_speak : read aloud the whole file.
> Paragraphs and paragraphs about pedophilia when you could just have chosen another analogy to make your point. Apologies for the late edit (which I made without having seen your comment), but I hope you can see what I'm getting at here. There has to be a better way to make your point than this.

Except if you read ANY of the paragraphs you'll see that it's relevant. Many Catholics view homosexuals in the same way they view pedophilia (with disgust) and don't want homosexuals in leadership positions. I'm sorry this analogy is apt and you know it from your other comments. Live with it.

>I have no interest in 'getting you banned', by the way.

Then don't accuse me of not commenting on good faith. Don't point fingers. Accusations and attacks on someones character as if they're in violation of the rules here can get people banned.

>I think perhaps we are now seeing your true point of view.

What view? That homosexuals are the same as regular human beings with ulterior motives and incentives? What? you think I should just assume that if someone is gay then he's a paragon of moral goodness? If a man who loves sushi goes to a place that exclusively sell sushi it is reasonable to assume he wants sushi. It is reasonable to question that act.

If that man went to a food court that happens to have sushi then it's reasonable to assume otherwise. But such is not the case when a gay man becomes the leader of a boy scout troop. He may have good intentions, but it is highly highly reasonable to assume he does not.

>Edit: On closer reading, I am surprised to find this sentence in a comment from someone who earlier claimed to be a supporter of gay rights:

I support gay rights in the same way I support human rights. I don't give you or gay people special treatment. If a gay person commits a crime he's a criminal. Your statement here is trying to put me in a box. It's like you're saying that If someone can even just assume that a gay person could have the proclivity of doing something unethical then how could that person be a supporter of gay rights? Impossible!
Systek (sp?)
and yeah, im fixing the code. Thanks for the suggestion.
Yeah, c920 + a flattering angle + decent lighting = absolutely fine.

Honestly, laptop webcam + flattering angle + decent lighting = also absolutely fine, but it's harder to get a nice angle with something built into the laptop.

IMO a DSLR would only be useful if you're going for a filmlike look of softly blurred backgrounds, or maybe low light shooting made possible by the bigger lens and sensor. At that point it's probably bordering on ostentatious.

At my last company the CEO had something like that, but he also used that setup for calls with investors and news outlets and such, so it made a lot of sense.
You’re welcome. Good luck :)
The claim that if you used React for the past 6 years meant you used a single library is almost certainly false.

Because what React is as a library today, with functional components+hooks is completely different from what React was when it first came out, with class components.

React is quite clearly a name that incorporates at least 2 distinct libraries which are supposed to be fully compatible but they’re not…try using a ref for a functional component.

The existence of these 2 libraries under the same name means thst documentation is also increasingly confusing. It also
means that both libraries are probably making compromises
So they’re still compatible with each other on the surface.