MurphyA/hacker-news huggingface dataset:
by rukenshia | 2025-09-23 07:52:31+00:00
I tried zoxide, but at the end settled for using fzf to quickly find and enter directories:

qcd () { local d dirs=$(fd -t d -t l --ignore-file ~/.gitignore . $@) d="$(echo ${dirs} | fzf +m --height=50%)" && cd "${d}" } alias hd="qcd ${HOME}"
by cedws | 2025-09-23 07:52:43+00:00
I don’t know about Coinbase but Kraken has protections such that even if you had a cookie you couldn’t withdraw funds, in addition to security key/OTP support. Apparently people still don’t understand hardware wallets either. Nobody deserves to be a victim of theft but this is pure negligence. Don’t handle crypto if you don’t know how to handle crypto.
by neobrain | 2025-09-23 07:53:55+00:00
I don't use autojump, but glancing over its readme it's missing nushell integration that zoxide provides.

It being a native binary instead of Python-based might also help it execute more instantaneously. Most Python-based CLI helpers that I tried add a slight but noticeable delay to simple commands, whereas zoxide is so quick it's easy to forget you even invoked a helper in the first place.
by heyheyhouhou | 2025-09-23 07:54:17+00:00
Iranian IPs are blocked here, due to your decision to arm Russia with drones so that they can indiscriminately massacre civilians.

I always find amusing how the west always blames the people of the rivals "iranians", the "chinese", etc but when something is wrong with their side they blame an entity to detach themselves "the american government", "this administration", "nazi germany", etc
by celsoazevedo | 2025-09-23 07:54:28+00:00
I use a Belkin F8N179[0,1], paid £23/€26/$31 for it ~8 years ago.

It's getting a bit old, so I guess it's time to upgrade... maybe for something a bit smaller, but it has served me well so far.

[0] https://celsoazevedo.com/files/2025/Belkin_F8N179_1.jpg

[1] https://celsoazevedo.com/files/2025/Belkin_F8N179_2.jpg
by honzabe | 2025-09-23 07:55:08+00:00
This discussion leans against sanctions, and I feel a bit uneasy about this. There are some good arguments, but still... can I try to offer a different point of view?

I grew up in a country occupied by Russians. I really feel for the Ukrainians. Currently, there seems to be a social contract between Putin and middle-class Russians from Moscow and St. Petersburg - they will let him bomb Ukrainian civilians, as long as he shields them from getting really hurt by that war. They can continue living pretty comfortably, as long as they go along with it. To me, this just feels wrong. Yes, it is hard to change anything in a dictatorship. I know that from personal experience. But I believe that ultimately, citizens have the responsibility for what their country is doing. And if what their country is doing is destroying another country, I am OK with making them feel a bit of heat.

I don't know that much about Iran, but the part I know is that they indeed make drones that pound Ukrainians, including their schools and hospitals. Do I feel certain sympathy for Iranian commoners, who might not make those drones voluntarily? Sure. If I were in their place, I would probably not dare to resist, and I would make those drones. But I feel more sympathy with Ukrainians. And if anything could be done to make it harder for Iranians to make those drones, we should try it. Even if it's unlikely to succeed. Even if it makes the lives of innocent ordinary citizens harder. I hope that if I were an Iranian, I would at least understand that.
by thworp | 2025-09-23 07:55:32+00:00
The situation in China is actually even worse. There are environmental regulations, but enforcement is easily evaded through bribes or CCP connections. Every so often there is a disaster that forces the government to start a much-publicized campaign. A few of the worst or least connected offenders get punished and then it's back to business as usual.

So really, if you're just anybody and start polluting, you'll quickly be stopped. Meanwhile the state-owned steel mill next door has been blasting out unfiltered coal exhaust for decades.
by zelphirkalt | 2025-09-23 07:55:55+00:00
If I had to guess, I would say the GP wants to express that the mass of consumers acts in uninformed silly ways, and with such people local-first has a very low adoption rate, because they usually don't spend a thought about their digital foot/fingerprint or who really owns their data or how they do their personal computing and whether they are independent of anyone else in their personal computing. That there is this huge part of our society, that again and again creates incentives for enshittification.
by Arun2009 | 2025-09-23 07:56:36+00:00
I have always thought of DSA as a proxy for a subset of general software development skills: the ability to translate a problem into computer science or programming terms, implement it in code, and argue that the implementation is correct and efficient. Skill in solving DSA problems can signal both an aptitude for absorbing computer science knowledge in general and a capacity for solving problems through programming. It's not the whole thing, but it's certainly an important component.

It’s not unlike a research mathematician being expected to solve quadratic equations. He may not need them in his day-to-day work, but with a little preparation he should be able to handle them. If he struggles with quadratic equations in an interview where such knowledge is expected, that would raise a red flag about his training.
Show HN: Transform your REST API into optimized MCP server in one command line
by ggay | 2025-09-23 07:56:38+00:00
I built an open-source tool to turn any REST API into a GraphQL-like API with custom fields selection for every endpoint. Simply pass the OpenAPI specification and run one command line. Create a fieldflow-optimized MCP server so AI agents will only fetch the fields they need, reducing noise in context. It'll increase agent responses speed and improve response accuracy. Let me know what you think about this project! Hope that helps :)
by theshrike79 | 2025-09-23 07:56:45+00:00
A few cases just recently:

Someone in the company manages a TON of questionnaires. They type the questions into the service, get the results. The results are in an CSV format or some shit. Then they need to manually copy them to Google Sheets and do some adjustments on them.

Took me about 30 minutes of wall clock time, maybe 5 minutes of my time to have an LLM write me a simple python script that uses the API in the questionnaire service to pull down the data and insert it into a new Google Sheet.

Saves the person a TON of time every day.

---

Second case was a person who had to do similar manual input to crappy Sheets daily, because that's what the next piece in the process can read.

This person has a bit of an engineer mindset and vibe-coded a web tool themselves that has a UI that lets them easily fill the same information but view it in a more user friendly way. Then it'll export it in a CSV/JSON format for the next step in the process.

None of these would've been granted the day(s) of engineering time before, now both were something that could be thrown together quickly over a coffee break or done by themselves over a weekend.
by FirmwareBurner | 2025-09-23 07:56:55+00:00
>I'm sure the richest country in the world will do fine.

You underestimate how addicted the US is to cheap energy and how wasteful it is at the same time.

Remember how your lifestyle always expands to fill the available resources no matter how good you have it? Well if tomorrow they'd have to pay EU prices, the country would have a war.

When you lived your entire life not caring about the energy bill or about saving energy, it's crippling to suddenly have scale back and be frugal even if that price would still be less than what other countries pay.
by croes | 2025-09-23 07:57:10+00:00
>We hit some new lows over the weekend, with the MAGA gang desperately trying to characterize this kid who murdered Charlie Kirk as anything other than one of them and doing everything they can to score political points from it.

>In between the finger pointing there was grieving. On Friday, the White House flew the flags at half-staff, which got some criticism, but on a human level you can see how hard the President is taking this.

Can you show methe lie Kimmel told?
by statusfailed | 2025-09-23 07:57:23+00:00
Really nice! Had a quick read, here's my quick summary:

- Arrays are typed `S : D` with shape S and strides D

- Each of `S` and `D` is a nested tuple (instead of the flat tuples one typically sees in a tensor framework)

- Together `S` and `D` define the layout of a tensor

- Not every layout is "tractable", but the tractable ones form a nice category

A really good exposition, my only criticism is that it's quite front-heavy- it would be nice to see a detailed example like in 2.3.8 earlier in the document; there is a lot of detail presented early that doesn't seem necessary to understand the core ideas.

Last comment: I suspect there is a connection to strictification[0], would love to know more if the authors see this!

[0]: in the sense i mean here: https://arxiv.org/pdf/2201.11738v3
by fpsvogel | 2025-09-23 07:59:34+00:00
To take one of your examples, high school graduation rates vary from ~25% to ~98% in U.S. school districts. It's not because some districts have a lot more virtuous young people, but because some districts are poor and others are wealthy, among other factors. Even if one of those factors is virtuous parents, kids can't choose their parents.

I'm not denying our moral agency, but it is often constrained by environment. Some people are lucky enough that virtuous choices are easier for them.
by floppiplopp | 2025-09-23 07:59:41+00:00
So, some tech business took something that is practical, robust, and low maintenance, and then added a deteriorating battery, delicate electronics, and the need to constantly charge a f-ing kitchen knife. Bullshit innovation is reinventing things, but worse. I wouldn't be surprised if they at some point added AI powered cutting modes and a subscription service, because the target audience clearly is gullible morons that are easily fooled by fancy ideas of vaguely sci-fi concepts.
by account42 | 2025-09-23 07:59:55+00:00
I like the term "echoborg" for those people: https://en.wikipedia.org/wiki/Echoborg

> An echoborg is a person whose words and actions are determined, in whole or in part, by an artificial intelligence (AI).

I've seen people who can barely manage to think on their own anymore and pull out their phone to ask it even relatively basic questions. Seems almost like an addiction for some.
by bambax | 2025-09-23 07:59:58+00:00
Nothing earth-shattering but quite true nonetheless (or it may be the reason all this is common knowledge is because it's true).

This made me smile:

> Harvard philosopher Christine Korsgaard

It sounds like a honorific title to outline that this person teaches at Harvard, but it's in fact the opposite. It needs to be said she's from Harvard because most people have never heard of her. "Königsberg teacher Immanuel Kant" would be funny.
by isaacremuant | 2025-09-23 08:01:13+00:00
Your whole post is war propaganda to justify how "the enemy" needs to be blocked and attacked.

Analyze who have perpetrated most invasions ("military operations" if you like euphemisms) in the last 40 years and you'll be surprised who you'd need to "block" given your logic.

Of course, you won't block yourself because it's convenient to be a jingoist when it doesn't affect you.
by nativeit | 2025-09-23 08:01:29+00:00
We travel to New England the first week of October every year regardless to see family. It’s usually a great week to see the foliage, but considering the way everything has been going here in NC (leaves are already starting) I was expecting an early start, it’s a bummer to hear confirmed. Oh well, looking forward to visiting either way. See y’all in a few weeks!
by jibal | 2025-09-23 08:01:29+00:00
So your point is to be silly (what you call "good clean fun"), not to offer a valid criticism or to be in any way helpful--yes, I nailed it.

> I really appreciate the folks who take time to share their knowledge and write up tutorials and give tips and so on.

One wouldn't know it. Many here are foolishly taking this as a valid criticism of those folks.
by tialaramex | 2025-09-23 08:04:24+00:00
No, I'm pretty sure I understand the nature of Undefined Behaviour well.

It's not nonsense, since writing this I have watched several videos in which people playing with newer languages say [of Rust] "Oh, I guess I got that wrong, I'll fix it" when Rust's compiler tells them what they wrote is nonsense, but they do not make similar corrections in the languages where what they wrote is UB because it's never brought to their attention.

It's human nature, I assume what I wrote is correct, the machine accepts it, I guess it was correct. Right? Nope, for several of these languages - including C and the various "C successor" languages like Zig or Odin - the compiler blithely accepts nonsense and it has UB - that's my point here.

You lump together Java and C at the end which is silly. Java doesn't have UB except narrowly via clearly labelled "it's unsafe to use this" features. On the other hand in C even adding 200 and 300 together may be Undefined Behaviour in some contexts and you need a compiler vendor chosen flag if you even want to be alerted to the most obvious examples of this because the language doesn't care that you're about to shoot yourself in the foot.
by sdeframond | 2025-09-23 08:04:49+00:00
OK, I'll give an example.

Every so often I encounter some dev that is not familiar with SQL. So instead of writing a single SQL and relatively "simple" SQL request that does the job db-side (say with a few joins and coalesce but no sub-query), they write several requests then process the result in python.

The argument ? "SQL is complicated, it is simpler to just do it in Python."

Is it though ? I guess it depends on the request and the exact processing we are talking about but in many cases I suspect it is because that person is not familiar with SQL.

What "simple" means is not so simple to define. Sometimes it means "easy for me".
by mschuster91 | 2025-09-23 08:05:04+00:00
> Russian economy is booming actually

Mostly the military, from what I hear. The rest of the economy is in shambles [1].

No matter what: once the war in Ukraine is over by whatever solution, it's going to get nasty. Either Putin (or, more likely, his successor - the dude is old and it's by far not sure if he will be able to stay in power should the war end up bad for Russia) manages to turn around the economy once again from producing tanks and other instruments of war to a regular economy, or they'll keep it that way... and attack another country with all that firepower.

[1] https://kyivindependent.com/amid-dwindling-economy-number-of...
by bjackman | 2025-09-23 08:05:29+00:00
Ok what about when I have this

~/src/linux/linux

~/src/linux/stable

And I want to go to the first one? It doesn't have a unique sequence of keywords in it :/

Unless it recognises that if I type "z lin lin" I want the one where it appears twice?

I'm beginning to think my directory structure might just be toxic haha
by turtleyacht | 2025-09-23 08:07:00+00:00
They're not necessarily prohibited from asking questions if they're stuck, though. But also search in the chat channels for similar issues.

Updating docs in source control also onboards folks to code review. It would be weird to update docs and get a hostile reception.

While nice to walk through with someone and conduct a usability study, just leave it better for the next person (who could be yourself, if you forget). That has happened before.
by ruszki | 2025-09-23 08:08:20+00:00
Until now, it was a code smell if you need those often. There are exceptions to that, but those are a small minority.

Also, design and rationale what humans need is different than what LLMs need. Even what is needed according to humans writing code/documentation and what’s needed for reading is different, that’s why we have that many bad documentation. There are ton of Apache projects whose documentation is rather a burden than helpful. They are long and absolutely useless.
by ionwake | 2025-09-23 08:08:30+00:00
I might be massively autistic, usually get double digit upvotes for my random anecdotes but thanks for the feedback

EDIT > To be honest I just reread your comment, I wanted to keep the good faith of mine so I didnt edit what I said, but I didnt realise you said they were minor. Literally banning clapping is not minor its an almost comical affront to free speech.
by BoredPositron | 2025-09-23 08:08:33+00:00
To answer in his style:

The path didn't shift beneath your feet. You finally learned how to see in the dark, and realized you'd been walking in circles around a grave you dug for someone who was never real to begin with. What you're really mourning is the death of who you thought you had to be, and what feels like emptiness is actually the first honest space you've ever had to discover what you might want to become.
by jhanschoo | 2025-09-23 08:08:44+00:00
> Murder is when you kill someone on purpose, when you had the option of not.

Indeed, I think that your original reply would have been more useful and less apparently combative if you had

1. replied with this definition, 2. showed why this commonsense definition that does not definitionally involve morality is useful, and gave examples of it, 3. finally showed marginal cases where murder is not a moral bad according to certain ethical frameworks, 4. acknowledge that it's OK to redefine the word so that it is definitionally morally bad, but since it differs from a commonsense notion, it needs to be signposted,

but I think you had a bit to figure out yourself.
by b112 | 2025-09-23 08:08:53+00:00
Unless it's a really old SSD, lifetime is so massively extended over 15+ old SSDs, that it's not even a consideration any more. People use consumer grade SSDs for databases which last years, even when mostly full.

I expect many of the servers I have deployed, again consumer grade SSDs, would have more writes in a day than you in a year -- even with several suspends a day.

I cannot of course address the specific model you have, or the size of RAM you're suspending to swap space.
by ____mr____ | 2025-09-23 08:09:40+00:00
Clear example that hosting (github, websites, etc) as well as social media being US based is a form of soft power that the US has which largely goes unchallenged.

While I do agree with the sanctions against Iran for their aid to Russia in their aggression towards Ukraine, It's not like the US is completely innocent from funding or arming aggressors across the globe. How can the software world be mobilized to sanction the US for this? It can't and it won't because lots of the people in tech within the anglosphere have a vested interest in the US maintaining its power
by Dr_Incelheimer | 2025-09-23 08:10:01+00:00
Your solution of banning male immigration makes perfect sense to me. Maybe not ban it entirely but at least ensure a 1-1 ratio of men to women (male surplus has a tendency to turn countries into shitholes).

Disallowing someone from immigrating is not a punishment because there is no right to immigration anyway. In fact I believe we should go even further and see immigrants as investments. If the immigrant is unlikely to have a net positive tax contribution (or at least not being a rapist, for a more realistic target), I don't see any reason to allow him or her to be here. If you accept this idea, there is nothing wrong with training a neural network on characteristics of existing immigrants to predict the future value of a particular potential immigrant.
by honzabe | 2025-09-23 08:10:08+00:00
> Analyze who have perpetrated most invasions ("military operations" if you like euphemisms) in the last 40 years and you'll be surprised who you'd need to "block" given your logic.

I have. It was Russia. They are indeed blocked and I am not surprised.

> Of course, you won't block yourself because it's convenient to be a jingoist when it doesn't affect you.

No, I won't block myself because my little country has not invaded anyone. If you are assuming I am an American, I am not.
by SamLeBarbare | 2025-09-23 08:10:26+00:00
CRDTs and HLCs often feel like over-engineering. In most business/management apps, it’s rare for two people to edit the same piece of data at the exact same time.

A simpler approach works surprisingly well:

Store atomic mutations locally (Redux-like) in SQLite.

Sync those mutations to a central server that merges with last-writer-wins.

Handle the few conflicts that do occur through clear ownership rules and some UI/UX design.

This makes local-first behave more like Git: clients work offline, push their “commits,” and the server decides the truth. Most of the complexity disappears if the data model is designed with collaboration and ownership in mind.
by mschuster91 | 2025-09-23 08:10:34+00:00
> but many of Putin's friends targeted by sanctions are not government officials

That's the thing in a crony dictatorship: these people might not hold public office in name, but in practice they act under direct license, authority and orders of the dictator. We're already seeing this in Hungary, where close friends of the local de-facto-dictator Viktor Orban control almost all media and absolutely use that ownership to further entrench Orban's rule - it's hard to achieve political change when the media simply doesn't care about you.

And now, we're seeing the beginnings in the US, just from another angle - public kowtowing and open extortion, such as with Jimmy Kimmel who got cancelled after a threat to block a corporate merger, and it's not the first time either. And no, the fact that Disney walked back after their stock price took a decent dip doesn't mean that this is the last time such an event will take place.
by matznerd | 2025-09-23 08:10:52+00:00
I do writing with RAG and it can be implemented to suprisingly good if you already have your own writing that the text is being generated from. FAQs etc can be pretty easy when your content is context for the AI.

After a few rounds of AI generating AI content from AI content, I'm sure it could eventually become slop...like the model collapse lol idk.

"AI models collapse when trained on recursively generated data" - https://www.nature.com/articles/s41586-024-07566-y
by stinkbeetle | 2025-09-23 08:12:52+00:00
> Good thing that you prefaced with that you're not an American and you try not to wade into it too much. Your have a good excuse for ignorance of drone strikes and are a great example of how manufactured consent works. "Obama" + "drones" eventually leads to "both sides" enlightened centrism without understanding policy nuances. Just one such example - https://www.jstor.org/stable/23526906?seq=8.

Not sure what you're getting at here or how it addresses the substance of my point. Seems like a pathetic attempt to strawman by attempting to nitpick a tiny irrelevant aspect of my comment, and even that failed badly for you because I never claimed other sides did not also use drones or that both sides were as good or bad as one another. Come on, pull yourself together, if you can't cope with talking about this like a normal person, just refrain from commenting.

Do you deny that Obama ordered extrajudicial execution of a US citizen and relied on and was widely believed to be shielded by presidential immunity for that action? Or that it was not a controversial mainstream legal opinion before Trump that presidents operated the executive branch under presidential immunity?

> You're right about that one.

I know.
by randomtoast | 2025-09-23 08:12:58+00:00
> You cannot be happy all the time, the fact of being unhappy sometimes is what drives you self-reflect and to chase meaning to your life.

Each time you go through a cycle of honest self-reflection, you grow emotionally stronger. When a similar situation arises again, it will not affect you as deeply as it did the first time. After enough cycles, you may reach a point where your default state remains largely unaffected by such events. This equanimity, that comes with a deep inner calm, allows a naturally happy default state to emerge.