skysight-inc/HackerNews huggingface dataset:
I tried to address your type of reaction in my "If your initial reaction is(...)" sentence, but that failed.

The point is not that this code is good or bad. It's that it is possible to write such hard to predict code.

Remember this is a stripped down version of some code running in production.

Now to address your specific points anyway:
"There's no reason to reset again": in the non-stripped down version, the hooks rely on a third hook (let's call it "useToken") and needs to react accordingly to this change of token to fetch new data

"I'm not sure why you'd even consider putting the functions in the dependency array for the useEffect in usePets.": unfortunately react-hooks/exhaustive-deps is here to warn you. You can disable or ignore it but I guess you expose yourself to a real missing dependency? Genuinely very keen to hear if you use this rule in your projects and what you do in such cases (where you use a function in the useEffect but do not want to re-run the effect each time this fn changes). To me it's such a weird/unnatural thing to list functions as dependencies because almost all the time functions do not change.
> My biggest struggle has been finding good resources to learn the "proper" way to use it

Why stop at vi? Go all the way and re-orient your entire lifestyle around Unix text processing: vi, awk, sed, troff, and sh.

https://www.oreilly.com/openbook/utp/UnixTextProcessing.pdf
Postgraphile https://postgraphile.org/

Hasura https://hasura.io/

Examples of "batteries included" GraphQL. Combine with a type generator for the language of your choice (eg. https://the-guild.dev/graphql/codegen), and you've got your client interface to avoid any type errors. Each comes with a GraphiQL UI for access out of the box as well. It's more turnkey than any REST solutions I've seen, that's for sure.

For different environments, it's quite possible (even normal?) to generate your types and GraphQL schema ahead of time, before CI/CD build of the UI to catch errors early at compile time.

Now add in SvelteKit with KitQL (https://www.kitql.dev/), and you've got a very simple, flexible, and efficient end-to-end solution.

As for errors, because each resolver can generate errors and not all errors are considered fatal, the errors must necessarily be embedded with the response and treated by the network client as they see fit. It's definitely different from REST, but not inferior. It's a different set of tradeoffs. When using a schema generator like Postgraphile or Hasura, it's unlikely you'd get errors in practice. The endpoints are basically guaranteed to resolve, and the generated SQL is nigh certain to execute correctly. If you get one error, chances are the whole endpoint is down due to a database connectivity problem. (That has been my experience at any rate.)

Don't take my word for it. Bring up a Postgres database, put some data in, and point one of these tools at it. I think you'll be pleasantly surprised. You may still prefer REST (or gRPC), but I think we can both agree that "batteries included" is definitely an option with GraphQL.
Europe's First Spot Bitcoin ETF Now Listed on Euronext
I haven't tried self-hosting due to the hesitation around the general drab I've experienced in the past trying trying to host other ML models.

Find a repo. follow the install instructions. What is this weird error? A library issue..? Maybe it's my OS..?

It always seems to be tedious compared to open projects in other domains. Maybe that can't be solved.
I think this is awesome. I highly doubt Hashicorp will do the right thing, so I look forward to the new OpenTF foundation and their fork of Terraform.
Twitter's stupid rules are an institutional problem. It's not fair to blame individuals for acting in their best interest because if they don't, someone else will. Shame or other cultural tools are not effective for combating institutional problems.

Your response is not only divisive, it's also wasting energy and distracting from the actual problem.
As someone who’s only dabbled in “modern“ front end (mainly a small project built with web components, my bread and butter is native desktop/mobile), I can’t help but think what continues to hold the web back from achieving something like VB6 is its batteries-not-included nature.

As long as it’s necessary to re-invent wheels by building basic widgets from scratch, there’s going to be limits to how good the developer experience of front end web can be, as well as high churn because the common base that’s being built upon is so tiny. It’s like building a skyscraper atop of a food cart: technically possible, but all “solutions” are so stilted and full of trade-offs that there can be no consensus and inordinate amounts of energy get burned on constant re-engineering of the stilts.
Ask HN: Is it common for mentoring to feel like a waste of time?
I’m a senior dev with lots of industry experience, love to teach, and have been wanting to do something extra curricular in a way that helps others. Over the years I’ve volunteered to help people how to code, most recently thorough a non profit bootcamp. When I get in front of students I find it very rewarding and I get really positive response from students/mentees. However, it often feels like I’m pulling teeth to get people to reach out or follow through e.g. I might have a session where the mentee gushes about how useful it was, I mention that I’m happy to do another one in a couple of months, mentee says they would love that but then I never hear back. I’m willing to establish that initial connection/trust, but after that I need the other person to take the initiative.

I talked to a co-worker recently and she said she largely stopped mentoring because she founded it to be a waste of time.

I’ve been thinking about throwing in the towel, and I’m curious if others have faced similar challenges. If this is common, I’ll need to invest my time in something else.
> It was a time when science could have advanced rapidly but didn’t.

I don't think this is accepted anymore. The material conditions for the Industrial Revolution were pretty specific and didn't show up in the age of Rome, despite all their riches.
Which has ugly untax IMO
I have no opinion on the value of the study as a matter of changing practice, or patient outcomes. I referenced it to illustrate that AI algorithms for diagnosing LV function from ECGs are already in the field, being tested.
Maybe libgccjit, then? https://gcc.gnu.org/onlinedocs/jit/
This looks like one of the perfect application of wasm.

You could do ruleset -> C -> wasm and run the wasm in process with wasmer/wasmtime.

From my understanding wasmer might be easier to use.

It sounds like this should solve the immediate problem, the main downside I can see is that it might be a new significant dependency whose cost can be hard to judge.
> New approaches are needed, like more dynamic approaches using behavioural analysis

Does this set off alarm bells for anyone else? Of course the best way to know if a visitor is a human or a bot is to deeply analyze their behavior. But that's at odds with the right of us humans not to be analyzed by every website we visit. What happens if we do reach a standoff where the bots become good enough at mimicking human behavior that the only way to tell us apart is unacceptable and illegal behavioral analysis?
Sure, it's a cost center, but that doesn't mean it doesn't provide value. Infrastructure (real estate, utilities, etc.) are also costs--but without them there is no work that can be done. They provide value, and businesses pay for that value from revenue generated by the entire effort--cost centers and product makers alike.
Enter 4 spaces before the text to write it monospaced

[0, 1]
[1, 0]

┌ ┐
│ 1 4 │
│ 2 5 │
│ 3 6 │
└ ┘
Ask HN: What's the Status on LK-99?
The room temp superconductivity claim seems to have been debunked and people use the term "bad science" to describe the LK-99 paper[1].

Too bad for finding the miracle compound, but is there something to salvage from the research?

[1]: Video by Sixty Symbols: https://youtu.be/zl-AgmoZ5mo
Real communism is nothing more the state of being ruled by those who ostensibly pursue and aspire to achieving the state of communism (which is never and will never be real.)

He is right that the Soviets said that communism was the end goal they would inevitably achieve. But communism in that sense was never real. The real communism was being ruled by the people selling that aspirational fantasy.
Not true, I live there. The accelerators are mostly occupied by big companies hoping to convince their team they work for a startup. The number of high quality startups is low and they mostly either raise from the US (what we did) or just relocate there permanently. There's more Waterloo grads working on high quality startups in each of Miami, Austin, SF and New Year than there are here.
Show HN: 3,567 Sci-Fi Ideas
Sci-Fi Idea Bank of 3,567 sci-fi ideas from Technovelgy, plus whether they've been built, when, by whom, and what the product is.
Is that because four letters happen to pack into a word on most architectures or is there some other underlying reason? Also Sac and rament together already form a word so it's kind of logical have the final 'o' as a separate token.
Something to do with the spin rate and the stability of the accretion disk. I don't fully understand it, just something I picked up off wikipedia.
Mandrake was very good at marketing, they did Linux alot if good. Note Proxmox is now €100 per year that is possible even on tight budgets. I wonder how good their support is, at €500 - €1000 per year for remote ssh help that can really be worth it!
I mean, that was the consequence. The trigger was, I think, the greatest American loss of life on home soil since the Civil War. Imagine what America would have been like if Al-Qaeda had bombed all major cities on a daily basis for years, and the US had won with the help of Iran. I think pointing out reservations with the current regime there would be quite unpopular.
I think JSX was a mistake and just using hyperscript would have been better for the ecosystem. I think frameworks peaked with mithril and have been downhill ever since.
I love it. The list of "pledged companies" is literally just a list of all the offenders that Hashicorp are trying to shake off.
There is evidence that the data shown in the paper is fabricated: https://doi.org/10.1016/j.mrgentox.2010.01.010
Also, update from Spacelift, we believe that we are not in violation of the new license, you can find more details in our today's announcement[0].

We nevertheless support this initiative, though, as written in the article itself.

[0]: https://spacelift.io/blog/spacelift-latest-statement-on-hash...

Disclaimer: Work at Spacelift
This seems to be the case across most countries in the world except the US and China. The lack of such funding means the lack of any serious startup scene.
30Rock called it "trust fund kids disease".
(2005), and according to [0] the university published a press release saying that the data was fabricated.

[0]: https://www.sciencedirect.com/science/article/abs/pii/S13835...
Quarkus is built on Vertx so once that gets upgraded two will support it. https://github.com/vert-x3/vertx-virtual-threads-incubator Vertx is testing it
I own my LLM not because I need it now but having the luxury to fall back if openai ran out of money
I tried to register for twa^Hitter yesterday and couldn't fill in all the captcha it was throwing at me. First it was some innocent point a train to station a letter shown in picture on the left and after I barely completed that it was throwing at me 6 pictures of different string knots where I was supposed to point out which picture has two strings or maybe just one. Funny thing is that after first 5 it throws 20 more and after 40 or 50 filled in total I just gave up - no twitter for me I guess and that is probably for the best.
> The Shenanigans process begins right after the early check writers are too small to lead the next round and extend through the exit process.

I got my morning chuckle. It’s good to know there are still people out there thinking sophisticated thoughts based on naive assumptions.

As if the shenanigans phase doesn’t start the moment the founding engineers are being interviewed (or for some people, before the cofounder is selected. Self-delusion is still shenanigans).
Spacelift’s Latest Statement on HashiCorp’s BSL Adoption
A way to crowdsource patronage - everything/everybody seems to be asking for subscriptional support (Patreon or the like)

I would love to support a lot of the creators I know more personally ... but if I were to add-up even the $1/mo they each ask for, I'd be into the $100s a month easily ... so I live with the ads they have

Something a la Brave Browser's tokens, though, would be great - pitch, say, $50 into a "patronage bucket", and then pay a penny for every page/video/podcast/song/etc you read/watch/listen to OR allow the ads to load/display/stream
Really nice. Usually the data is accessible somewhere, but not all in one place in for free.
I know what it means, I was making a statement as to the actual time available for a solution to be developed. Everyone appears to be talking about how incremental improvements over time to the hull of the Titanic will somehow stave off the immediate sinking that’s going on.
To play devil's advocate:

(1) China is going to do it, so the United States is going to do it, so the EU is going to do it, ...

(2) Really the world should just enforce a carbon tax of $50-100 a ton and rebate it to make it revenue neutral. In that case market mechanisms would be harnessed to develop a post-fossil fuel economy. It's conceivable such a mechanism would be perceived as "fair" in one country but it would be so fraught when the global north and south would be involved. The global south would want to be paid reparations for colonization, whereas the north would see the money being stolen and pissed away by governments and well-positioned individuals in the south: the south doesn't have the institutions to be able to received such a windfall. It wouldn't get so far, however, with voters in the south, who would be opposed to such a thing on the basis of simple racism.

It is much more palatable therefore to promote decarbonization through random subsidization projects like the above despite all the problems they entail.
It's very achievable in small towns. I grew up in a small town and walked everywhere.
A friend and colleague of mine just tried this and the first results are quite promising.
Linux on the desktop was a viable thing circa 1998, with the publishing of Ximian Desktop. Office even worked great with Crossover. There was a lot of momentum. You could have taken any beige box, put RedHat, Ximian, and Crossover on it, and everything would "just work." Then Microsoft threw some of their loose change at Nat and Miguel, Ximian lost steam, and the Linux world wandered the wastes until Ubuntu sort of picked up where they left off.

Off all the underhanded things Microsoft did: paying the trade press to slag off on Linux, underwriting the SCO trial, rewriting large chunks of Office just to screw up Wine, and funding huge "supercomputer" projects to make it seem like Windows could compete as anything other than a file server, seducing Nat and Miguel was the hardest blow to widespread adoption of Linux on the desktop.

It's not a function of when the year of Linux on the desktop will happen. It happened in 1998, and Microsoft killed it, not RedHat. Don't get me wrong; I have nothing but love for Nat and Miguel. Everyone has a price, and I'm glad they got to do what interested them. But, yeah, I miss those days.
For a large feature you work off a design doc or an issue tracker issue (Jira ticket equivalent). If you're going to call the function tomorrow tell your reviewer you're going to call it tomorrow. We're all adults.

Re not that much to review, it's the exact opposite. When people get 400 line code reviews they tend to nitpick on style. When they get a 100 line CR, they critique on naming, organization, consistency.
Title should be suffixed with (2005)
For the life of me I cannot figure out what you're responding to. Certainly nothing in my posts. Why don't you relax and try reading?

> That is a crime of harrassment and other "You're being an ass to someone" crimes. A private person cannot violate the freedom of the press

A private person can violate the freedom of the press using the crime of harassment! If a private person goes around murdering journalists they don't like, that's an attack on the freedom of the press. How can you possibly be so myopic as to not see this?
The reason the highest-paid doctors are in the Dakotas
5 years ago I was the lead architect on a v2 rewrite project of about 30% of our app.

We considered React but the landscape was also full of Angular and Vue and a bunch of others I don't remember.

At the end of the day, we went with the latest version of our boring server side rendering library that the rest of the app used. A huge reason was the churn in front-end javascript libraries.

I've never once regretted that decision and the project was a big success.
Ontario automotive manufacturing only exists because of corporate welfare, so in that sense I think draining our resources is not the path to being sovereign.

I didn't say fund B2B SaaS instead, I said just don't do corporate welfare. B2B SaaS gets R&D credits here which doesn't make sense either.
I thought we were not supposed to do our own research and trust The Science.
I Googled "applescript loop through apple notes" and this was the first result: https://apple.stackexchange.com/questions/225938/notes-scrip.... Looks exactly like what ChatGPT came up with for you minus the dialog.

I then Googled "applescript print to console" and got this: https://stackoverflow.com/questions/13653358/how-to-log-obje... ; admittedly this answer took a few minutes to read through, but the second most upvoted answer recommended using log, which your ChatGPT-developed solution (eventually) used.

This all took me < 5 minutes.
> the tax exemptions and other financial support underscore that the Canadian state stands fully behind the profit-hungry car manufacturers

Canada doesn't have states...
> curtails the speech of people responding

What are you on about? Honestly. Violence and violent intimidation are not free speech, if violence against journalists is coming from any party other than the government, how is that not a threat to free speech simply by virtue of it coming from parties other than the government? Can you answer that without going off on wild tangents?

Reminder that I responded to a claim that only governments can threaten the freedom of the press. Do I need to explain to that non-governments are capable of murder, or do you understand at least this much?
https://archive.ph/iyvFb
As author already found: relicensing future versions is the only option.

Pick license for next releases more carefully, and move on.
I'm glad to see others say this. Canada is more or less a PR front for the tar sands.

That free college for enby First Nations students? The new Montreal REM? Don't ask how they're paid for.
> If men would behave decently the world would be decent.

Which in turn reminds me of Federalist No. 51:

"If men were angels, no government would be necessary. If angels were to govern men, neither external nor internal controls on government would be necessary. In framing a government which is to be administered by men over men, the great difficulty lies in this: you must first enable the government to control the governed; and in the next place oblige it to control itself. "
I want articles to get to the point quickly. I don’t want them to start with “What is FreeBSD?” I know people do it for Google SEO, but it’s messed up, please stop it.
> The closest we are to real “communism” I would say is in Switzerland

Most swiss people would probably disagree with this statement.
> there was a 60 Minutes or similar report recently on how the extra weight of the vehicles also makes them more dangerous to vehicles of similar sizes that are much less weight

IIRC, this is also a problem for multistorey car parks because they aren't engineered to sustain that amount of weight.
The 6502 was also a lot cheaper -- around $25 compared to around $100 for the 8080.
How the iMac Saved Apple
I'm starting to wonder if the real value prop of Twitter, subconsciously recognized and agreed by users, is that some suckers are paying out of pocket for it, as opposed to the community having tractions and such and such valuable aspects.
What are you smoking?

The web has developed immensely since the 90s.

If some UI you use is slow it's certainly not because of the excellent frontend/web technologies we have today.

There are certainly many things to complain about regarding the state of the web but the frontend technologies are not to blame.
Opinions: I have found that less serious mentees filter themselves out. The people who really want the mentorship are the ones that come back. As great as it is to mentor people, the ball is always in their court. I can't make somebody want to do something -- if they really want it, they'll ask for it, and they'll chase it down.

Those are the best students, anyway! Because things that are worth doing are often hard, and especially with programming, it takes lots of work to learn. You necessarily have to want it, and have to be taking it rather seriously. Then, the people who keep coming back for more are the ones who really want it.
State here means nation, which is what the US states originally were. It can also mean "the apparatus of state" - the government.
I’m curious why you think that? Is there a relationship in earth temperature and this kind of solar activity?

I’m far from knowledgeable in this area but I’ve never heard of a relationship before.
(ed)
If you can't afford your own home, that is a living standards problem. It can be improved while still having rising inequality. Indeed, the focus on inequality is a distraction from the large number of relatively normal people who own houses and want policies that push the price up.

Which is a problem, but the problem isn't the inequality. The problem is stupid housing policies that overemphasise debt and restrict construction.

> ... "rising tide lifts all boats" and "iTs NoT a ZeRO SuM GAme" ...

Using erratic camel case does not make an argument. It is obviously not a zero sum game or we'd all have Roman Empire era living standards.
Yes and No. They used to be much harder to solve but modern AI has made them much easier to solve in the last couple of years.

Profitability. That is what it comes down to. The price of solving these have plummeted in last couple of years.
> Google's implementation, reCAPTCHA, eventually did away with much of these shenanigans to make the browser identify low-risk human users in the background, but the image verification method still pops up occasionally if risk cannot be ascertained.

Can’t remember the last time I clicked reCAPTCHA and didn’t have to do the challenge, come to think of it - I can’t remember a single time, so if it has happened it is very rare, whereas the Cloudflare one always lets me through.
DIY Airtags: https://github.com/seemoo-lab/openhaystack
With components. Same thing as when isolating styles to a component in various frameworks (e.g. Single-File Components in Vue) but instead of its own style tags I just put the styling directly in the HTML.