MurphyA/hacker-news huggingface dataset:
by hirvi74 | 2025-05-04 01:33:58+00:00
> they just need partial HTML swaps.

Been a web dev for over a decade, and I still use plain JS. I have somehow managed to avoid learning all the SPAs and hyped JS frameworks. I used HTMX for once project, but I prefer plain JS still.

I was a JQuery fan back in the day, but plain JS is nothing to scoff at these days. You are right though, in my experiences at least, I do not need anything I write to all happen on a single page, and I am typically just updating something a chunk at a time. A couple of event listeners and some async HTTP requests can accomplish more than I think a lot of people realize.

However, if I am being honest, I must admit one downfall. Any moderately complex logic or large project can mud-ball rather quickly -- one must be well organized and diligent.
by fuzztester | 2025-05-04 01:34:31+00:00
You said, in a previous comment in this thread:

>India lacks even the most basic manufacturing.

"lacks even the most basic" implies that we don't have the higher stuff too. That in turn implies that we don't have any. All of which is false, based on the earlier links that I provided. Are you saying that those are lies? (Also anyone can google that info for themselves.) Then be open about it, and say so directly.

That was such a global, wide-ranging and patently false and pretty insulting statement (even if ignorantly done) that you made about Indian manufacturing.

Many top Indian multi-hundred-crore-or-multi-thousand-crore turnover (in rupees) industrialists or groups like the Tatas, Birlas, Bajajs, Singhanias, Thapars, Godrejs, TVS group, TTK group, Munjals, Ambanis, Premjis, and many more, may like to have a word with you, or rather, would smile and giggle at your ignorance.

And now you try to weasel your way out of it by saying, in the comment above that I am replying to:

>I never said we don't manufacture.

Those two statements are clearly quite contradictory.

Laughable.

Even your first paragraph above is wrong.

I have had enough of your false arguments. If I feel like it, I may point out what is wrong with that, later, otherwise not.

And about this:

>There are few notable industries that we are decent at and export it as well:

Maybe check out the difference between "few" and "a few", which have opposite meanings (a mistake that Indians often make), and at the same time, improve your English grammar generally.

”it" is used for singular, not plural nouns.
by TuringNYC | 2025-05-04 01:37:37+00:00
>> They should report it to the New York Attorney General's office, especially with damning evidence like the insurance company being refused contact.

Does this work outside high-profile cases? A condo I lived in faced dozens of serious offenses from the builder (e.g., live electrical wires left dangling open in living areas during a construction dispute.) The lawyers filed complaints with the NY AG but were told it mostly adds to some aggregate and real action is taken when the aggregate is huge. Also, we were told that most AG attention is focused on Manhattan and not the outer-boroughs.
by tomhow | 2025-05-04 01:38:27+00:00
Eschew flamebait. Avoid generic tangents. Omit internet tropes.

Please don't use Hacker News for political or ideological battle. It tramples curiosity.

Please don't pick the most provocative thing in an article or post to complain about in the thread. Find something interesting to respond to instead.

https://news.ycombinator.com/newsguidelines.html
by falcor84 | 2025-05-04 01:39:23+00:00
Maybe it's just me, but while I have an issue with text slop, GenAI images never bothered me. My experience is that they're only really used where the alternative would have been a lazy stock photo or clipart image. And in these cases, it seems to me that writing a prompt is actually more of an artistic expression than the even more minimal effort that they likely would have spent on taking the first image they would have found on google.
by barbazoo | 2025-05-04 01:42:06+00:00
> The researchers used microphones to record healthy and stressed tomato and tobacco plants, first in a soundproofed acoustic chamber and then in a noisier greenhouse environment. They stressed the plants via two methods: by not watering them for several days and by cutting their stems. After recording the plants, the researchers trained a machine-learning algorithm to differentiate between unstressed plants, thirsty plants, and cut plants.

This is interesting but obviously very different from the suffering that animals are experiencing.
by orwin | 2025-05-04 01:42:34+00:00
Our poultry didn't last more than a year either, and we weren't factory farming. We bought 15 chicken every year, 3 male to eat before they were fertile early spring, 12 female that we ate during the next winter. And half a dozen rabbits too. Then my grandparents grew too tired and started to travel instead of farming/taking care of poultry.

The animals might have been happy (or, at least happier than in a factory farm), but clearly their life were short.
by tw04 | 2025-05-04 01:43:43+00:00
I will say that his pragmatism seemed to fall apart pretty quickly when the rubber met the road - unless I’m misinformed (which I may be).

Berkshire was a key player in the rail workers strike of 2022 and Warren didn’t seem to want to give an inch to the working man when given the opportunity to do so.

https://en.m.wikipedia.org/wiki/2022_United_States_railroad_...
by _heimdall | 2025-05-04 01:44:17+00:00
If that's the metric, sure we have gotten very good at producing more pounds of food per human hour of labor.

Two things worth noting though, pounds of food say little about the nutritional value to consumers. I don't have hood links handy so I won't make any specific claims, just worth considering if weight is the right metric.

As far as human labor hours goes, we've gotten very good at outsourcing those costs. Farm labor hours ignores all the hours put in to their off-farm inputs (machinery, pesticides and fertilizers, seed production, etc). We also leverage an astronomical amount of (mostly) diesel fuel to power all of it. The human labor hours are small, but I've seen estimates of a single barrel of oil being comparable to 25,000 hours of human labor or 12.5 years of full employment. I'd be interested to do the math now, but I expect we have seen a fraction of that 25,000x multiplier materialize in the reduction of farm hours worked over the last century (or back to the industrial revolution).
by para_parolu | 2025-05-04 01:46:15+00:00
I can't say about surge. Haven't seen or contributed to it. But I can share my very recent experience.

A few months ago I left a large company for a fast‑growing startup that uses Next.js for several front‑end projects. I had never touched Next.js and knew little about it. After reading the documentation I felt optimistic; I scaffolded a new service quickly and everything went smoothly for the first month or two.

Then the oddities surfaced and I had to discover them the hard way.

Server Actions run sequentially, which makes no sense. When someone reported serialized requests I didn’t believe it at first. I stopped using them.

The App Router feels broken. Every route change triggers a backend request. A prefetch hack exists but doesn’t cover every case, and complex routing turns into trial‑and‑error. I eventually wrote my own routing.

The upgrade from 14 to 15 was billed as easy with codemods, yet I soon hit issues like reactMaxHeadersLength increasing header size and forcing reverse‑proxy changes. The migration guide never mentioned it. Next.js also bundles its own library versions, producing counter‑intuitive behavior you have to uncover yourself.

The use client / use server split is a mess. One side allows async components, the other doesn’t, so many developers just add use client everywhere to avoid surprises.

Environment variables are another headache: process.env shows different values from the real environment because Next.js overrides standard Node APIs.

My current task is to remove Next.js entirely because we can’t keep paying this complexity tax.

It’s a rant, I know, but Next.js has cost me a lot of time. For someone with minimal front‑end experience who needs a simple site quickly, I might still recommend it. For a complex or long‑term project maintained by experienced developers, I’d say stay away.
by skissane | 2025-05-04 01:46:15+00:00
Two factors I think: (1) obsessives have a higher likelihood to follow their obsession into immigration-a factor which works to the advantage of certain parts of the US, to the detriment of most of the rest of the world; (2) Australian investors tend to have a more risk-averse attitude, they will offer less money and demand a bigger stake for it, many of them will prefer later stage startups to the truly early stage ones

Lots of factors involved, some more regulatory others more cultural. One is that Australia’s property market has been so hot for so long it sucks up a lot of investment; the US market, while recently being quite hot as well, has historically been much more mixed (the US had a big price drop around the time of the GFC, Australia saw some declines but they were a lot smaller). Another is the US legal system tends to be more borrower-friendly in bankruptcy, foreclosures, etc, making people more willing to take out loans to fund their business ideas
by tzury | 2025-05-04 01:46:29+00:00
Vertex by example:

creds = service_account.Credentials.from_service_account_file( SA_FILE, scopes=[ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/generative-language", ] ) google.genai.Client( vertexai=True, project=PROJECT_ID, location=LOCATION, http_options={"api_version": "v1beta1"}, credentials=sa_creds, )

That `vertexai=True` does the trick - you can use same code without this option, and you will not be using "Vertex".

Also, note, with Vertex, I am providing service account rather than API key, which should improve security and performance.

For me, the main aspect of "using Vertex", as in this example is the fact Start AI Cloud Credit ($350K) are only useable under Vertex. That is, one must use this platform to benefit from this generous credit.

Feels like the "Anthos" days for me, when Google now pushing their Enterprise Grade ML Ops platform, but all in all I am grateful for their generosity and the great Gemini model.
by tgma | 2025-05-04 01:47:20+00:00
I don't have any details, but on their public website, they highlight LLNL (ELI5: US nuclear weapons research lab founded by Edward Teller) as a customer. I am not 100% certain they require airgapping, but it is totally conceivable that them or similar customers in that vein do. Oxide business probably selects for a biased sample of such customers (the customers that don't have esoteric requirements also have public cloud options AWS/GCP/Azure to choose from).
by fc417fc802 | 2025-05-04 01:47:26+00:00
Yeah I was being a bit snarky. I didn't mean to imply that mainstream browsers are anywhere near phasing that ability out (at least yet). However consider Firefox policies regarding extension signing (specifically code review), or major mobile platform policies regarding user access to app data. Or a certain Google policy regarding add blockers, err sorry I mean protecting user data from malicious extensions. I think there's a pretty clear theme that the end user is to be regarded as an adversary and his behavior controlled.
by subscribed | 2025-05-04 01:49:08+00:00
I ordered by new sofa in February. I expect it in May.

It's just stuff you can or can't get. How would I know I can't get sofa? How much does assembling the furniture take? Do I book someone to help me with that or so I just pay for assembly? How much is the new mattress and why waste the old one, expensive and now destined to the skip?

How much is going to cost me the living room equipment? Not much, two gaming consoles, TV, 7+2 setup with a decent, 8k, flexible AVR.

Do I take the hit on buying the new motorcycle? Old, perfectly fine but a bit beaten bicycles will have to be thrown out as they look quite nasty (even though they ride well, in my currently 5th house), so it's a few grand on bicycles as well.

Do I need to throw out my network equipment as well? I mean, I could probably sell it on ebay for a fraction of the value and buy new for 20 times what I'll get from my old one, then just get through the pain of setting new software anew...

Etc, etc. I'm glad it works for you but it's laughable to offer your solution as a "best way to love" to everyone without knowing their circumstances.
by ziddoap | 2025-05-04 01:51:58+00:00
Minimum wage is barely (in many cases not even barely) enough to live on. Raising minimum wage is a herculean task that rarely succeeds. Federal minimum wage hasn't been raised in 16 years. But we'll have not only a livable UBI in 20 years, but one that's enough to "retire to a life of leisure"?

Doubt.
by gen220 | 2025-05-04 01:52:46+00:00
He was asked by Schwarzenegger for advice on California economic policy. Warren did his research, and astutely suggested they should try to scrap Proposition 13 (IMO it's among California's worst policies, but it's a political third rail). I don't think he was asked for economic policy advice ever again :)

I'm sure he's full of good ideas. I think they were just a bit more ambitious than the last 40 years of politicians were willing to stomach or advocate for.
by nandomrumber | 2025-05-04 01:53:08+00:00
With the distinct difference that driving isn’t at all like flying for very obvious reasons.

Miscalculating range in a ground vehicle typically has the somewhat less than fatal outcome of being at least somewhat embarrassing.

Misjudging driving ability is largely a characteristic attributed to male drivers under the age of 25, and the overwhelming majority of incidents are more costly and ego injuring than fatal.

Last time I checked, the average driver can expect to be involved in a fatal car accident every 200 million kilometres or so (Australian data).

While general aviation appears to have a fatality rate of around 10 per million flight hours.

Average speed in a car is typically well under 100 kilometres per hour, making general aviation fatality rate 10 to 20 times higher.

Having said that, the law of small numbers informs that the average general aviation pilot can expect to be involved in a fatal incident approximately never.
by skissane | 2025-05-04 01:53:36+00:00
> Possibly, arguably this is why the LNP lost but mostly I think, Trump cost them the election.

While I agree that Trump and nuclear were factors, I think a bigger factor was charisma - Albanese doesn’t have a lot of it, but at least he’s still above zero, Dutton is a fair way below zero.

Another factor was the anti-work-from-home policy for public servants: not just the policy itself, but abandoning it half way through the campaign was rather damaging to Dutton’s credibility.
by musicale | 2025-05-04 01:54:28+00:00
> they can re-release it for every new system as a "remastered" variant

Nintendo's strategy seems to be working. For example, I seem to have purchased Super Mario Bros 3 multiple times, in physical and digital form, for multiple systems (Wii, 3DS, Wii U ...), and I'm also renting it as part of Nintendo Switch Online.

On the up side, I don't have any problem emulating it. Actually all of those versions are emulated, come to think of it.
by Retric | 2025-05-04 01:54:56+00:00
> The human labor hours are small, but I've seen estimates of a single barrel of oil being comparable to 25,000 hours of human labor

That’s just wildly wrong by several orders of magnitude, to the point I question your judgment to even consider it a valid possibility.

Not only would the price be inherently much higher but if everyone including infants working 50 hours per week we’d still would produce less than 1/30th the current world’s output of oil and going back we’ve been extracting oil at industrial scale for over 100 years.

To get even close to those numbers you’d need to assume 100% of human labor going back into prehistory was devoted purely to oil extraction.
by aquova | 2025-05-04 01:55:37+00:00
I 100% agree with the sentiment of this article. For my personal website, I write pretty much every page by hand, and I have a header and a footer on most of those pages. I certainly don't want to have to update every single page everytime I want to add a new navigation button to the top of the page. For a while I used PHP, but I was running a PHP server literally for only this feature. I eventually switched to JavaScript, but likewise, on a majority of my pages, this was the only JavaScript I had, and I wanted to have a "pure" HTML page for a multitude of reasons.

In the end, I settled on using a Caddy directive to do it. It still feels like a tacked on solution, but this is about as pure as I can get to just automatically "pasting" in the code, as described in the article.
by fuzztester | 2025-05-04 01:57:48+00:00
I have to post another comment, even though I said I would not in my previous one, because your comment is so ignorant;

>There are few notable industries that we are decent at and export it as well: two wheelers, pharma. But we manufacture only teeny tiny bit of mass-manufactured goods, especially electronics

Note highlighted words and compare them with what I say below, people.

Check the result of this Google search that I just did:

>highest selling 100 cc motorcycle in the world

And an excerpt from the results:

>The Hero Splendor is the highest-selling 100 cc motorcycle in the world. It is a popular commuter bike in India and is known for its fuel efficiency and low maintenance. The Splendor consistently leads the 100 cc segment in sales, and Hero MotoCorp, its manufacturer, is the world's largest two-wheeler manufacturer by volume.

If that is not a mass manufactured good, I don't know what is.

>Self-reliance makes no sense when you're trying to one component out of hundreds involved.

What the heck does "trying to one component" mean? Ungrammatical again.

Overall, your comments are full of falsehoods and crap.

Definitely not worth following up on.
by Merad | 2025-05-04 01:57:50+00:00
Yeah, something important to file away in your book of life lessons is that you should _never_ schedule a move on the day you have to be out. Not unless you're backed into a corner with no alternative. Sometimes life throws you curveballs - for example in 2020 I had purchased a house and was scheduled to move, but my mom passed away around 6 PM the day before the move. Thankfully it was just an across-town move, and I had about 10 days to play with before the lease on my condo ended, and the moving company was able to reschedule for a week later.
by menturi | 2025-05-04 01:58:09+00:00
Legislation would certainly require political will, which we don't have now for tackling anything on such a time scale. To tackle the problem through laws and government enforcement, it would have to become politically tenable at some point, but how would we go from where we are now to something that is closer to this? It's difficult to say with any confidence. But I do know politicians are still human, influenced by their biases and beliefs inherited through biology and life experiences. If our future politicians are to grow up in an environment in which a larger (than today) proportion of people care about problems on a longer time scale, they are more likely to care as well. Consequently, a larger proportion of individuals getting into politics will care about these types of problems, increasing the likelihood of them being addressed.

In parallel but as a separate point, fewer people will be willing to use products or services provided by organizations that they believe are doing wrong or harm by contributing to such problems, thus making it less profitable within capitalism. We already see this to some degree today (Harry Potter comes to mind). Even if the reduction in customers and profit is small, it would decrease compounding and ever so slightly disincentivize the company from making such a pursuit.

It's impressive how adaptive humans are, I must admit. We are quite good at tackling problems we see right in front of us if we set our minds to it. But that doesn't mean we should dismiss problems that are not causing an issue right here and now. We shouldn't wait until it becomes an actual problem because there could be irreversible consequences (or rather, we cannot reverse on reasonable timescale).
by gen220 | 2025-05-04 01:58:22+00:00
I think the right way to think about Berkshire Hathaway these days is that it's a highly decentralized, minimum viable civilization. They do everything from freight locomotives, to furniture-making, shoes, petroleum, chocolates and more. Then there's a layer of financialization on top of it all (insurance, re-insurance, loan issuance, market-making etc.).

If the U.S. became a failed state tomorrow, there's a genuine chance that Berkshire businesses would keep on operating and trading with each other, on Berkshire rails. It's like a hive of cockroaches -- businesses which are individually strong, that when woven together are un-killable.
by autoexec | 2025-05-04 01:58:42+00:00
With all the surveillance we live under, pretty much none of it benefits you in any way. I'd love to have access to all the data that's collected about me by the state and by corporations (including the inferences and assumptions they make by evaluating that data). I'd never need to keep a journal. They don't want to give you that data. They'd rather you don't think about it at all.
by aaronbrethorst | 2025-05-04 01:59:08+00:00
Hubris. It seems similar, at least externally, to what happened at Microsoft in the late 90s/early 00s. I am convinced that a split-up of Microsoft would have been invigorating for the spin-offs, and the tech industry in general would have been better for it.

Maybe we’ll get a do-over with Google.
by thunky | 2025-05-04 01:59:32+00:00
I like WB as much as the next guy and while he was wildly successfully at making money, he hasn't really done anything else. His main motivation has always been to make money for himself and his shareholders, so why would we expect anything else?

Some of his biggest investments are in things like candy, soda, beer. Not exactly great for society overall and not really enabling anything other than diabetes.

He was already an massively wealthy in 2008 and just having a huge pile of cash and using it to make more deals is not some great achievement to be celebrated.

Yes he made billions off of his 2011 bofa investment, so good for him and brk but what did this do for anyone else?

If BH didn't exist would it really matter? I don't think so.
by SEJeff | 2025-05-04 02:01:49+00:00
US military gps is encrypted and heavily used FHSS. It is jam resistant, and can’t be jammed without significant expertise and know how.

Russia has some of the best EW chops in the world (after the NSA perhaps), and they struggled to successfully jam Starlink after some defensive work was carried out by SpaceX. They use Starlink in the “sea baby” USVs that attacked Crimea just last night.

https://tech.yahoo.com/general/articles/spacex-spends-signif...
by c-smile | 2025-05-04 02:01:56+00:00
> "Includes" functionality is considered to be server-side

Exactly! Include makes perfect sense on server-side.

But client-side include means that the client should be able to modify original DOM at unknown moment of time. Options are

1. at HTML parse time (before even DOM is generated). This requires synchronous request to server for the inclusion. Not desirable.

2. after DOM creation: <include src=""> (or whatever) needs to appear in the DOM, chunk loaded asynchronously and then the <include> DOM element(sic!) needs to be replaced(or how?) by external fragment. This disables any existing DOM structure validation mechanism.

Having said that...

I've implemented <include> in my Sciter engine using strategy #1. It works there as HTML in Sciter usually comes from local app resources / file system where price of issuing additional "get chunk" request is negligible.

See: https://docs.sciter.com/docs/HTML/html-include