MurphyA/hacker-news huggingface dataset:
by kmeisthax | 2025-04-10 20:30:16+00:00
The funny thing about this is that Europe is chock full of even loonier fascists than the MAGA hats.

The far-right is, ironically, very globalist. Almost like a rainbow coalition of fascists. The problem is that they all think fucking over each other is going to make them #1. You can't have a world where "America First", "Germany First", "Islam First", "Japan First", "Korea First", "Korea First", "China First", and "India First" all[0] coexist. They're far too egotistical to be satisfied with a tie. Someone has to be second.

We're seeing a lot of Europe and Canada rally around the current liberal establishment, because Trump started the global race war before every country was actually committed to it, and the fascists are realizing they might wind up on the losing end of it. But let's also remember that a year ago, the AfD was talking about deporting German citizens, and had even hoodwinked the liberal establishment into supporting shit like holding refugee claimants in Rwanda. Europe looked like it was about to fall to fascists that are smarter and more well-connected than the American equivalent.

The divide, of course, is not "European" vs. "liberal American" vs. "MAGA hat". It's "those who show humanity to others" vs. "those who see others as a tool to be consumed".

[0] If you're wondering, these correspond roughly to the MAGA wing of the GOP, the AfD, ISIS, all those idiots in Japan with sound trucks, Kim Jong-Un, , Xi Jinping, and Narendra Modi.

For context, Xi Jinping is very, very ethnonationalist, despite running a nominally Communist party.
by primernestris | 2025-04-10 20:31:43+00:00
Hey Tetris community, I’m college senior studying CS and I wanted to share something I’ve been building for all of us who love Classic Tetris. It’s called nestris.org, and it’s designed to revolutionize how we play and compete. For the first time in 30 years, you can queue for a ranked classic match with a single click and play against anyone, anywhere — no need to deal with setup or Discord DMs. And if you win enough, you’ll rise up the leaderboard and challenge top players like game-crasher Blue Scuti.

What makes nestris.org stand out? You can plug in your console, controller, or just play directly on the site with your keyboard. There’s also puzzle mode (over 100,000 puzzles to solve!) and tools like Stackrabbit AI to analyze your game and help you improve. It’s built to be a one-stop shop for competitive and casual players alike.

If you're curious, nestris.org went live just yesterday! I’d love for you to check it out and join the journey to help make this the best Classic Tetris platform out there.

Join the discord community! https://discord.gg/4xkBHvGtzp Watch the promo video! https://www.youtube.com/watch?v=o6VH6RQ5k6w&ab_channel=ITZsh...
by pton_xd | 2025-04-10 20:31:44+00:00
> If you actually wanted to bring manufacturing back to the US you'd figure out which industries you wanted to develop, probably subsidise them, communicate very clearly what you were going to do and then ratchet up the tariffs on those specific finishes products, whilst being sure to maintain access to raw materials and components you still needed.

I'm not here to defend the current approach, but what you're describing sounds like a centrally planned communist / state-directed economy or something. Is that really the way forward?
by kazinator | 2025-04-10 20:31:59+00:00
Null de facto works, and it's almost certainly due to a consequence of the kernel treating the result of extracting the argument as a C string. For instance, it might actually be scanning past the NUL and earnestly finding the newline. Even if that entire datum is copied into the argument vector and passed to the interpreter. the interpreter will only see the argument up to the null terminator, due to it being a C string.

About the only way it could break would be if the kernel used a string function to look for the newline, like a range-limited form of strchr, and then aborted the hash bang dispatch with an error upon not finding the newline, rather than accepting that the argument is delimited by a null.

I tested it on various platforms like MacOS, Solaris, some BSDs, Cygwin, Linux. Far from exhaustive but a good coverage of the modern desktop and server landscape.

The null byte would have fixed your Perl script without having to convert the line endings; the argument would have been delimited, in spite of the line ending in <CR><LF>.
by cogman10 | 2025-04-10 20:32:39+00:00
> which industries you wanted to develop

yup

> probably subsidise them

yup

> communicate very clearly what you were going to do

Probably not. At least, not until right before the ratchet up. You'd want to first subsidize then once industries are starting to build up, you'd want to start the ratchet up. You probably also wouldn't want to say "We are doing this because we want to be better competitors" or whatever. It'd be better if you said something like "We believe country x is doing terrible thing y and for the safety of our country and others we are going to apply a tariff on good z until x stops doing y".

But yeah, universal tariffs are the dumbest idea in the world. We've essentially sanctioned every single nation which is going to massively damage us and manufacturing. Going to be real hard to unwind this.
by tymscar | 2025-04-10 20:32:59+00:00
That's how I've done it when it did not work. I did, however, go easier, one by one. I first made a simple countdown. Then I made it count down from 10 minutes to 0. Then I created 2 of them. Then I put them side by side. Then I did the logic, one counterstarting each other. Every step of the way, it was filled with loads of errors and loops out of which the ai couldnt get out, to the point where I would need to go there and fix it myself. Errors ranged from logical, to super simple syntax issues, such as missing colons, or brackets.
by weinzierl | 2025-04-10 20:33:28+00:00
It was a good idea for Google but it was never a good idea for the user. We should have used the 15 years to raise awareness about phishing risks and I believe it would have been a lot easier to educate users about two distinct fields than teaching them why it may be OK to enter a half remembered fragment of a name to get some entertainment but that it is very risky if you do it with the name of your bank.
by palmotea | 2025-04-10 20:33:40+00:00
> There's also Frank Herbert. Who saw AI as ruinous to humanity and it's evolution and saw a future where humanity had to fight a war against it resulting in it being banished from the entire universe.

Did he though? Or was the Butlerian Jihad backstory whose function was allow him to believably center human characters in his stories, given sci-fi expectations of the time?

I like Herbert's work, but ultimately he (and Asimov) were producers of stories to entertain people, so entertainment always would take priority over truth (and then there's the entirely different problem of accurately predicting the future).
by int_19h | 2025-04-10 20:34:04+00:00
Thing is, that's exactly what security and privacy reviews are for.

If there was no review, that's negligence.

If there was a review, one of the first questions that would be asked is, "what kind of tracking or telemetry do you have"? And there are tools that will scan code and flag things like that for you that large companies normally use.
by ivraatiems | 2025-04-10 20:34:16+00:00
That is simply not true. Anecdotally, three people in my family including myself have sleep apnea. I am the only overweight one. The others are a normal or even low BMI. Also, I had sleep apnea when I wasn't overweight.

Studies show that non-overweight or obese people with sleep apnea are extremely common and make up between 20 and 40% of all apnea sufferers:

1. https://pmc.ncbi.nlm.nih.gov/articles/PMC5181619/

2. https://www.nature.com/articles/s41440-024-01669-9

3. https://pmc.ncbi.nlm.nih.gov/articles/PMC9130173/#:~:text=Ap...

4. https://ejo.springeropen.com/articles/10.1186/s43163-024-006...

5. https://home.liebertpub.com/publications/respiratory-care/68...

"Nasal breathing exercises" cannot overcome physiology and cannot help you if you are sleeping and have no conscious control over your muscles. Apnea is caused by physiology and while it can be made worse by weight, weight loss alone does not fix it. It may bring some people's apneas down to an acceptable level, but that is not the case for all or even most patients.

Your advice is roughly the same as telling people to skip their flu or COVID shots and hope their diet and exercise keeps them from getting sick. It's not that diet and exercise are bad for you, but they aren't the same as an exact treatment for the problem you have.
by notahacker | 2025-04-10 20:35:20+00:00
If you're spending 3.5 years trying to "renegotiate a deal", you don't have a strategy to bring manufacturing back. If you change your policy multiple times in a week you don't even have a strategy.

Easier to onshore manufacturing with multi-year timelines, but you don't need multi-year timelines to impose tariffs on carefully selected industries, not penguins and your existing industries' key suppliers.
by jjr8 | 2025-04-10 20:36:21+00:00
There is also https://www.rplumber.io/, which lets you turn R functions into REST APIs. Calling R from Python this way will not be as flexible as using rpy2, but it keeps R in its own process, which can be advantageous if you have certain concerns relating to threading or stability. Also, if you're running on Windows, rpy2 is not officially supported and can be hard to get working.
by hk__2 | 2025-04-10 20:37:05+00:00
From what I read [1] this habit of eating cheese as part of the meal is a tradition in France since at least the Middle Age, although until the end of the XIXth century it was eaten after the dessert instead of before. However I can’t find why this happens in France and not in other cheese-loving countries like Switzerland or Italy.

[1]: https://ericbirlouez.fr/index.php/activites/articles/42-une-... (fr)
by buu700 | 2025-04-10 20:37:38+00:00
* Lower corporate income tax to the global minimum of 15%

* Reshoring incentives

* Regulatory reform to remove barriers to building things

* Strict export controls around AI, robotics, and fusion

* Massive subsides for production of useful humanoid robots and deployment of useful fusion power generation

To the extent that tariffs are considered at all, it should only be if they're implemented with bipartisan support, selective with specific strategic goals in mind, gradually phased in, and explicitly long-term policy. Extreme tariffs without clear staying power are just disruptive for no good reason. They won't change business behavior; they'll just temporarily jack up costs, create an unnecessary customs backlog, and roadblock some commercial activities entirely.

Even if implemented carefully, I would argue that tariffs in general are counterproductive in the long run. If a domestic industry isn't internationally competitive, the goal should be to fix that, not insulate it from competition.
by lbotos | 2025-04-10 20:37:46+00:00
If you do this to the entire economy, yes sure, fair. If you decide that you want Americans to eat American garlic and you give garlic farmers a tax break or grants to buy seed and fertilizer I wouldn't call that central planning. More "strategic investment".

Replace garlic with whatever industry it is that the gov wants to strategically invest in: semiconductors, automobiles, aerospace, weapons, renewable energy.
by reneherse | 2025-04-10 20:37:59+00:00
Check out the Village Homes subdivision in Davis, CA.

It was designed with narrow streets and off street parking so that trees could more effectively shade the pavement. Also, the paved streets alternate with bike and walking paths between rows of houses.

One result of the shaded streets and increased greenery is ambient summer temperature that is noticably cooler compared to other nearby neighborhoods.

The original planners worked with the local FD to make sure their trucks could turn around in the cul de sacs.

https://maps.apple.com/?address=Village%20Homes,%20Davis,%20...
by wcarss | 2025-04-10 20:38:18+00:00
You guys are all talking about a national average number of unhealthy fine particulate pollution days like it's a) the only metric of pollution and b) driven directly and deterministically by just US federal policy. You're also all acting like COVID was just a giant switch that turned on and then off again.

None of this is valid analysis. None of this is meaningful -- this is just a pile of snide bullshitting on the back of a random article.

What about forest fires in the years measured? Hurricane activity? Humidity and wind patterns? What was the data like in Chicago vs Seattle vs Houston, what were the state and municipal policies?

You're just posturing for your team here.
by robocat | 2025-04-10 20:38:29+00:00
At 2:39 he talks about camera orientation and says that he has a solution.

What he is doing isn't long-baseline stereo imagery? And clearly is not aligning the cameras: I'm guessing he is ensuring they don't wobble and he is solving the camera orientation outside of the code you can see (maybe using reference objects - sun or daytime moon?).

I enjoyed his ponderings on bird-strike avoidance - maybe commercialisable. The asteroid detection seemed way more farfetched (light gathering is hard).
by bluefirebrand | 2025-04-10 20:38:29+00:00
> I have different expectations depending on whether you worked 10 or 40 hours

If I can meet your 40 hours expectations in 10 hours, then what?

You adjust your expectations upwards

You want my maximum efficiency for what you think you're paying me for, which is 40 hours

But if I know I'm going to do 40 hours minimum either way, what is my incentive to work harder and get more done?

"That's your job, it's what I pay you for, it is your contract" you say.

But you pay me either way and as long as you're happy with my output then it doesn't matter if I actually worked 10 hours or 80
by settrans | 2025-04-10 20:39:03+00:00
If the protests about Israel were largely about their treatment of Palestinians, why did the world erupt in protest against Israel, largely in unison, mere hours after they were invaded by Hamas terrorists on October 7th?

On October 8th, 2023 in Times Square while the blood was still fresh on the ground from the massacres in Israel, protesters chanted "Long live the intifada" and "Smash the settler Zionist state". Visibly Jewish people were followed and had "Hamas should have killed more of you" shouted at them. All only hours after the invasion.

Harvard's Palestine Solidarity Committee (in)famously issued a memorandum right after the attack "hold[ing] the Israeli regime entirely responsible for allunfolding violence."

On October 9th at the Sydney Opera House, hundreds of protesters chanted "F** the Jews" (and allegedly "Gas the Jews").

In Grand Central on October 9th, protestors marched for the "resistance" (i.e. Hamas) and "right of return" (i.e. banishment of Jews from Israel).

All of this happened weeks before the ground invasion in Gaza began on October 27th. Two days later, dozens of travelers were injured as hundreds of protesters stormed a flight from Tel Aviv landing in Dagestan, Russia, as they sought to harrass "Jewish refugees" (i.e. Israelis). Of course, the global antisemitism only continued to climb, with 10,000 incidents recorded in the 11 months following 10/7.

Even this week, a pro-Hamas group organized a shutdown of Grand Central Terminal, while in the real Gaza, protests are sweeping the strip _against_ Hamas. If the mission is solidarity with Gazans, why not protest in favor of the issue that Gazans themselves are risking their lives to advocate for: the removal of Hamas?
by dceddia | 2025-04-10 20:39:59+00:00
It's very reliable, but only on ONE of my fastmail addresses. My Google account predates the fastmail one by a long time.

I had a theory that maybe at some point I set up iCloud with both of these accounts (fastmail + gmail) and it's somehow intercepting these and rewriting them. It's not a super strong theory. Another thought is maybe it's a DNS setting somewhere?
by timewizard | 2025-04-10 20:40:11+00:00
> based on flawed economics

It's a simple formula based on balance of trade.

> tariffs with no warning

Some Hacker News types like to bury their head in the sand when inconvenient political news occurs but to say this happened without warning simply flags you as part of this group.

> on some of the weakest nations you trade with (e.g. Laos, Vietnam).

There is room for these countries to buy more American goods. These two countries also rebadge and ship out a lot of Chinese goods to evade tariffs.

> changing trade policy radically every few days and announcing it on social media?

So, do you want warnings, or not?

> Not crashing the stock market, announcing a reverse on your social media platform, then boasting about how much money your billionaire friends made?

If you didn't make any trades during this period how was your portfolio actually impacted? I would assume this is the majority of non billionaire investors. So the only ones who lost in the crash were the same billionaires.

> calling one of your largest trading partners peasants and the then very clever, alternating between insults and praise like a two-bit mobster?

Does that trading partner also act like a two bit mobster? If so, wouldn't this just be turnabout, or why is deference to hostile economic partners justified?

> has made America a laughing stock

That's an absurdly biased point of view.

> I don’t think many Americans realise just how much trust has been burned with allies since ‘liberation day’.

Not much. They didn't actually "trust" us before. I'm not sure how you'd measure that anyways. From my reading of foreign news they're mostly taking it in stride, having seen this coming since last year, and not being particularly surprised by it. This zeitgeist only exists in half of America right now.
by mercutio2 | 2025-04-10 20:40:26+00:00
WebDAV is pretty darn simple.

It just builds on actual HTTP, i.e. you have to actually think about the transport layer in a way that’s out of fashion now.

And some people don’t like XML.

It’s certainly true that CalDAV specifically is complicated, but… multi user calendaring is intrinsically very complicated.

Other systems are not less complicated, they just tend to be more vendor specific.
by cogman10 | 2025-04-10 20:41:03+00:00
Its why China is technologically eating everyone else's lunch when it comes to renewables and battery tech. Their government dumped massive amounts of money into R&D and building out manufacturing and mining infrastructure.

Heck, it's why the US has been (not for long) a leader in medicine. We've historically dumped huge amounts of money into medical research through the NIH.

Biomedical companies don't like research, they like making money. Research is expensive and by its nature filled with deadends. A biomedical companies would much rather take and run with cheap (to them) NIH research.
by Joker_vD | 2025-04-10 20:41:22+00:00
Yeah, there are all sorts of nifty little tricks about compressing the enums, Appel dedicates a huge chunk of section "4.1. Data representation" on it in his "Compiling with Continuations" book about the internals of the SML/NJ compiler for the Standard ML, and ultimately concludes that the returns are quickly getting really diminishing with those, and since datatypes can actually be abstract in ML (in pretty much the same way they can be in Rust), the applicability of those tricks is generally restricted to unexported, intramodular datatypes.
by troupo | 2025-04-10 20:41:34+00:00
Note that we're talking about embedding them in a Rails app.

- all SSRed custom components are framework/library specific and cannot be rendered outside of javascript runtimes

- you need a JS call to initialize each custom component (though this is likely provided by the bundled JS)

- since when providing an id in a server-rendered HTML become an insurmountable challenge?

- and they have many additional issues. Example in the sibling comment: https://news.ycombinator.com/item?id=43641081

> Anyway, you have an axe to grind,

I don't have an axe to grind. I correct the magical wishful thinking that exists around custom components
by cjs_ac | 2025-04-10 20:41:55+00:00
I'm doing this with the SaaS I'm building (outside of my day job). My URL endpoint functions were directly executing SQL on the database until I decided that I couldn't go on like this, and only then did I write some classes to represent the business logic objects. It sounds ridiculous, but it gave me the flexibility to experiment with what those objects should do before imposing a formalism on them, and I found that very valuable.

At my day job, I'm expected to use TDD, and I don't like it. It's not that I don't like tests - I don't like writing them, but I like it when they're there, so I write them while feeling a bit grumpy. My problem with TDD is that I'm a big picture thinker, and I start from the inputs and work incrementally towards the outputs, without having a good outline of how I'm going to get there, so I can't write unit tests before writing any actual code, because I don't know what the units are going to be yet.

I also find my colleagues' code to be factored in a slightly unnatural way, because it reads like they've structured the code to match the tests, rather than written tests to test aspects of the code.

Maybe I should just be a hermit-programmer.
by sim04ful | 2025-04-10 20:42:51+00:00
Welcome!

So what I did was have setup a proxy server in cloudflare workers.

proxy.yourdomain.com?url=websitetocrawl

Now in the worker, I replaced all the external resources of a html (CSS URLs, scripts) via regex to also go through the proxy.

Since the proxy is under the same cross-origin you're able to do whatever you want. And even if it was a different domain, window.postMessage has a domain argument that allows you communicate explicitly with the parent window.
by os2warpman | 2025-04-10 20:42:55+00:00
>There are plenty of sources in that article though?

There are no mentions of the fire department in that article except one in the last paragraph.

>“We’d love to talk to the fire and police departments and figure out a way to address safety concerns while keeping this corner a permanent fixture of the city,”

There are no other easily findable references on the internet.

All of this ignores the fact that the narrator of the video implied that the pedestrian mall was removed due to fire department interference, when it obviously wasn't and this conversation thread will not stray into any tangents and will focus on the fact that the narrator implied that the pedestrian mall was removed due to fire department interference, and that was a lie.
by settrans | 2025-04-10 20:43:15+00:00
Criticizing Israel is not antisemitism, and nobody is arguing that.

Holding Israel to a double standard or denying Jews the right to self-determination is however broadly considered antisemitism[0][1]. "Today, it is used by over 1,000 other governments, universities, NGOs, and other key institutions, demonstrating a clear international consensus."[2]

[0] https://holocaustremembrance.com/resources/working-definitio... [1] https://www.ajc.org/use-of-the-working-definition-in-the-us [2] https://www.adl.org/resources/backgrounder/about-ihra-workin...
by s1mon | 2025-04-10 20:43:31+00:00
If you're ever in Shenzhen, I recommend going to the Shenzhen Museum. It's pretty amazing to see how quickly it grew (~40 years), and the level of stuff that they were making early on vs now.

Another big take away for me was that they highlighted who had been the chief customs officer over time. Controlling the flow of goods in and out is matter of pride for Shenzhen and China.