MurphyA/hacker-news huggingface dataset:
by alanfranz | 2025-04-23 02:11:39+00:00
I suppose you’re a casual cyclist and you don’t commute on a daily basis.

If you commute on a daily basis, a hub dynamo and light system is a bliss. Just hop on the bike and go. I have used bikes with Shimano, SP and Son for thousands of kms in all kind of weather and never really experienced a fault. It’s as simple as car lights - you just take them for granted.

With battery powered lights you need to take them off and put them back; recharge them; remember to bring them with you and not lose them. A spare battery pack is not enough (front and rear) and may not work during cycling (not all lights can be charged while turned on). And, low quality battery powered lights tend to quickly break (2-3 years) while I now realize one of my b+m systems is 10y old already. Good battery powered lights will probably last more, but they’re as expensive as dynamo powered ones.

So yeah, battery is ok and cheap for casual cycling, but very suboptimal if you want reliable lights every day throughout the year.
by sophiebits | 2025-04-23 02:12:17+00:00
Nothing about the RSC format is privileged in the React client (i.e., react + react-dom). You can always make your own serialization format as long as it can represent React elements and promises somehow. You can of course also use the RSC wire format and pin to a specific client version (or vendor/fork it) but it’s not a stable format today because it’s not clear if many people would use one and we want to leave room to improve the format as new optimization opportunities arise.

Though you do lose a lot of the magic if you don’t have JS on the server at all. Part of the core proposition of RSC is that it’s easy to move logic across the boundary as your app evolves. What goes over the wire can be a performance decision instead of a “that’s too much of a pain to move to the other side I’ll just leave it” decision. For that reason I’d generally make a thin “backend for frontend” in JS that talks to an Erlang/Rust/etc backend. It’s conceptually part of the frontend but runs on your server.
by stevenAthompson | 2025-04-23 02:12:22+00:00
It's been a very long time since I studied it, but... The founders of the US (including Paine) took most/much of their inspiration from the works of Locke who popularized a lot of the ideas about inalienable/natural rights coming from God and governing requiring the consent of the governed.

I'm fairly certain that Locke adapted ideas from some some older source, but Locke's work is considered foundational to the US Constitution and the Declaration of Independence and some of his phrasings found their way into both documents.

Definitely worth reading more about it if you're into that sort of thing. Especially in the current political climate where everything that doesn't fit the agenda is fast being swept beneath the rug of history.
by modeless | 2025-04-23 02:12:23+00:00
The alternatives are designed to replace the function of third party cookies for Google's competitors to address their antitrust concerns and unblock removing third party cookies in Chrome which, as I said, Google wanted to do. Obviously the effort was unsuccessful.

Google was attacked on both sides, on the one hand by adtech who objected to being forced by Google to use something less powerful than third party cookies, and on the other hand by other browser vendors who objected to adding adtech features and certainly didn't have any interest in helping Google avoid their antitrust problem, regardless of the fact that enabling Google to turn off third party cookies would be the better privacy outcome for users of Chrome. They had no interest in helping Chrome users; they preferred to promote alternatives instead.
by skissane | 2025-04-23 02:12:51+00:00
> The laws I’m complaining about don’t do anything remotely similar yet. They would if the fundamentalists had their way.

I don't know who you are calling "fundamentalists" – I personally think the term should be restricted to the historical fundamentalist movement in American Protestantism, and those Protestants who view themselves as heirs of that movement today – but I think the vast majority of people you are labelling that aren't theonomists, and have zero interest in emulating Islamic Sharia by replacing secular courts with tribunals of Christian clergy, or modifying evidence laws to make the word of a Christian worth more than that of a non-Christian. Nobody is asking for anything remotely resembling that, except for a very tiny movement on the fringes of Reformed Protestantism – which the vast majority of Reformed (even conservative Reformed) reject, and I've never heard of a Catholic or Anglican or Methodist or Lutheran or Eastern Orthodox or whatever supporting it.

From a Catholic perspective, replacing secular law with "Christian Sharia" is clearly a heresy – never officially condemned because no Catholic of significance has ever proposed it – but if it ever did become a serious issue I'm sure the Church would waste no time in doing so, since it is just so blatantly contrary to the Catholic tradition. And the Eastern Orthodox Church, and the vast majority of Protestant churches (even otherwise very conservative ones), would say more or less the same thing – the details of their reasons would likely differ, but the conclusion wouldn't.
by noodletheworld | 2025-04-23 02:14:21+00:00
I mean, is it worse than having it:

- in excel

- in a confluence document

- in a text file on your desktop

The use case this addresses is 'adhoc activites must be performed without being totally chaotic'.

Obviously a nice one-click/trigger based CI/CD deployment pipeline is lovely, but uh, this is the real world. There are plenty of cases where that's simply either not possible, or not worth the effort to setup.

I think this is great; if I have one suggestion it would just be integrated logging so there's an immutable shared record of what was actually done as well. I would love to be able to see that Bob started the 'recover user profile because db sync error' runbook but didn't finish running it, and exactly when that happened.

If you think it's a terrible idea, then uh, what's your suggestion?

I'm pretty tired of copy-pasting commands from confluence. I think that's, I dunno, unambiguously terrible, and depressingly common.

One time scripts that are executed in a privileged remote container also works, but at the end of that day, those script tend to be specific and have to be invoked with custom arguments, which, guess what, usually turn up as a sequence of operations in a runbook; query db for user id (copy-paste SQL) -> run script with id (copy paste to terminal) -> query db to check it worked (copy paste SQL) -> trigger notification workflow with user id if it did (login to X and click on button Y), etc.
by grandempire | 2025-04-23 02:15:48+00:00
> Horner's method or another representation of your polynomial might start to become important.

Horner's is the default way to evaluate a polynomial - and I think you're overstating the cost of evaluation.

> what the author is doing isn't much different than a Taylor approximation

Yes it is. The Taylor approximation is only valid around a point - and it's based on matching the nth order derivative. There are no error metrics. And it requires differentiation to find it.
by busterarm | 2025-04-23 02:16:30+00:00
"Really bad at conducting war" is demonstrably untrue if meatwave tactics are effective.

Technological and tactical superiority can help you win a war but you're making the mistake of thinking that war is something other than what it is. Ultimately it's about how much death and chaos your population can tolerate vs the other guy. Russia habitually proves that their appetite for it is enormous.

Even when they lose it's only a few years that go by before they're waging war again.
by dpifke | 2025-04-23 02:16:53+00:00
Adaptive Charging on Pixel devices gets most of the way there: it will learn how long it's typically on the charger each day, and automatically slow the rate of charge to match, so that it finishes approximately an hour before you usually unplug it.

There's a manual option to turn it off (charge at full rate this time only), but not to manually turn it on (such as giving it a target time to be fully charged). Older Pixels used what time the alarm was set as the target time to finish charging, which I preferred as someone who doesn't wake up at the same time every day; I'm not sure why they took that away.
by ryandrake | 2025-04-23 02:17:49+00:00
I'm thinking that removing the smarts from "smart" devices may become a lucrative cottage industry in the next 25 years, as devices become orphaned and useless when their manufacturers disappear or go out of business. Bonus service: Pre-dumbing a smart device to increase its usefulness prior to purchase. Store sells a "Smart Dishwasher" for $400? I'll unlock it and un-app it and sell it to you for $500 instead.
by jtuple | 2025-04-23 02:18:13+00:00
> I'm saying the market for what TRU provided had disappeared

The market still exists, doesn't it?

Kids still exist, kids still play with toys.

People simply buy toys from Amazon now, not TRU.

Just like people buy electronics from Amazon, not Best Buy/Circuit City.

And shoes from Amazon/Zappos, not Payless.

Seems like most retail markets still exist, they've just been cornered by the giant "Everything Store".

IMO, physical toy stores should be competitive to e-commerce with the right strategy. Simply going to the store could be an exciting adventure into itself, with higher fidelity discovery than a screen provides. Esp. post-COVID where people are opting more for analog/offline options after online/lockdown burnout.

Claiming TRU's market disappeared feels similar to claiming the bookstore market disappeared, yet Barnes and Noble had a well documented and surprising comeback by shifting strategy:

https://news.ycombinator.com/item?id=34165960
by numpad0 | 2025-04-23 02:18:56+00:00
SMR drives work like SSD: writes are buffered to CMR zone, consolidated into an SMR track data, copied into onboard cache RAM and written to SMR zone. SMR tracks has sizes of 128MB or so, and can be written or erased in track-at-once manners by the head half-overwriting data like moving a broad whiteboard marker slowly outward on a pottery wheel, rather than giving each rings of data enough separation. This works because the heads has higher resolution in radial direction in reads than writes; the marker tip is broader than what the disk's eyes can see.

This copy operation is done either while the disk is idling, or forced by stop responding to read and write operations if CMR buffer zone is depleted and data has to be moved off. RAID softwares cannot handle the latter scenarios, and consider the disk faulty.

You can probably corner a disk into this depleted state to expose a drive being SMR based, but I don't know if that works reliably or if it's the right solution. This is roughly all I know on technical side of this problem anyway.
by fknorangesite | 2025-04-23 02:19:06+00:00
You're factually wrong, as described in the linked case study and a million other similar ones - whether they're about Toys R Us specifically or otherwise.

Toys R Us still exists where I live (Canada). I admit I don't go in often outside of holiday shopping, but it's still the same Toys R Us it's always been, natural shifts in toy inventory notwithstanding, of course.

I'm not sure why you're riding for the predatory PE firms, here. "That's why they don't exist"? My brother in Christ, they still do - and still would if it weren't for this aggressive bullshit.
by skissane | 2025-04-23 02:22:10+00:00
Pretty much, although it also depends on your mind's reasons.

If you start from the assumption that Christianity is true, and some people know this, and others don't – you have to ask why the people who don't know it, don't know it. And this is where Catholic theology distinguishes between "vincible" and "invincible" ignorance - "vincible" means the ignorance is your own fault, "invincible" means your ignorance is through no fault of your own.

How to distinguish the two? Ultimately, it is up to God to decide – nobody else knows for sure what's going on in your head. At best, theologians would give some examples of hypothetical situations which could be said to be one or the other – but the real world is often much messier than any such hypothetical can capture.

Which is part of why, the traditional Catholic teaching, is that (with rare exceptions) you can't actually know where people are going to end up. The idea is that if you make it to heaven, you might be surprised to find a lot of people there you weren't expecting, and also maybe some people you were sure would be there aren't.
by johnQdeveloper | 2025-04-23 02:22:25+00:00
Well, what is the purpose of deployments being built in ansible or deployer or whatever tooling as a general rule? And then packaging, say, extra python scripts to perform common tasks then dumping it all in a git repo?

Some people just like a particular workflow or tooling flow and build it really. Maybe it works for enough people to have a viable market, maybe not.

I am just using a PHP deployment process for no reason other than feeling like it for personal projects and it handles 60% of the work without me needing to do anything. But any runbooks for it are tasks built into the tool and in the same git repo for the entire server deployment. I'm not gonna put it in some random place or a shell script that I need to remember separate commands for.

Code, for programmers, is inherently self-documenting if you keep a simple functional style without any complexity with comments on the occasional section that isn't just "Create a MySQL user, roll the MySQL user's password, update the related services with the new password/user combination, remove the old user that the fired employee has credentials to on the off chance we failed to block them at the VPN" kind of stuff.
by californical | 2025-04-23 02:22:33+00:00
I mean a healthy diet is a variety of fruits and vegetables, with a decent supplement of whole grains and occasional lean meats and eggs. Minimally processed as much as possible - whole ingredients should be the majority of calories.

The details don’t matter so much, as long as you get a variety and generally stick to the above guidelines.

I think you can judge how healthy a diet is by how many people get diseases, malnutrition or premature death as a result of a diet, and almost nobody is going to suffer because of that diet plan above.
by leeoniya | 2025-04-23 02:23:09+00:00
i'm personally a fan of ivi-js.

it has blindingly fast perf (edges out Solid by a bit), top-down data flow, with fine-grained diffing, tagged template syntax, real closure state without rules-of-hooks weirdness and waste, super efficient mem use, and no special reactive primitives like signals/observables/proxies to get that performance, so you could use it with complex serialized/able state over wire (which is not something you can do with reactive primitives).

https://github.com/localvoid/ivi
by adfm | 2025-04-23 02:24:45+00:00
PE is a crude tool for crude extraction. Honestly, the last time I found myself in a TRU, I had to leave because the off gassing was overwhelming. So no, not 1991, but likely something very 2025. If they still sell sugar water and cereal boxes at the grocery store, there's a market for TRU. pew pew.
by TruffleLabs | 2025-04-23 02:24:48+00:00
Art of Digital Design: An Introduction to Top-Down Design - Prosser & Winkel, I took their graduate class in 1990 at IU Bloomington.

In this class I & my lab partner designed and built a PDP-8 out of PALs on a wire wrapped board. And we loaded code from old paper tape sources as part of the testing. It was a fun class :)
by craftkiller | 2025-04-23 02:25:45+00:00
You can still play that way if you want. Just open your browser's dev tools and edit the CSS rules inside the dev tools. Once you have them overlapping, you just need to do something to trigger the victory check which can be accomplished by doing basically anything (resize the window, click on a circle, type something, I haven't found any action that doesn't trigger the victory check yet).
by TankeJosh | 2025-04-23 02:25:57+00:00
Thanks for sharing, this is really helpful info!

In its current form, infra.new would probably be most helpful when setting up new projects or migrating any old apps to this single monorepo setup, but it also sounds like Terraform isn't a huge pain point for your team.

I am interested to learn if we can help with these 2am pages though. Are those set up by you? Or the developers? Would an agent that helps improve observability / alerts configuration be interesting to you?
by fouric | 2025-04-23 02:27:42+00:00
Forget handwriting - I rarely see anything with as much care and effort put into it as this project.

I like to think that I put a lot of ~~craftmanship~~ into my code, but the effort put into every single letter of a roughly fifteen-thousand-word book (to say nothing of the letter at the beginning of the chapters or the illustrations) is on another level.
by atonse | 2025-04-23 02:30:14+00:00
I believe you may have it slightly backwards.

I think Apple and Google released their implementations when they did exactly because the US credit card companies moved over to EMV (tap and pay) standard.

There was a “liability shift” [1] that happened nearly a decade ago after many high profile card database leakage events (target retail stores being one).

The shift was that instead of credit card companies always accepting the liability for stolen cards, the policies were changed so that retailers that still used magnetic stripes would have to accept liability (because with magnetic stripes, the same card number is used everywhere). Or they could avoid it by moving to chip and wireless readers, since these protocols used a different virtual card number for every transaction.

As card holders, we all started getting our banks sending us new chip and wireless cards before Apple Pay came out.

1: https://squareup.com/us/en/the-bottom-line/operating-your-bu...
by alephnan | 2025-04-23 02:31:15+00:00
I dislike the CCP and their recent wave of propaganda as much as the next person

But I find it inconsistent to call China out for this instead of Japan. HackerNews has a tendency to jump through mental gymnastics to justify that Japan is perfect and can do no wrong. I say this after just leaving a Japanese museum 30 minutes ago that had blackface figures on exhibit

Either don’t call any country out for whaling or start by calling the countries typically deemed as more developed, advanced and progressive first. In other words, be moral relativist or if you should to be a moral absolutist then don’t pick and choose countries to exempt
by manquer | 2025-04-23 02:32:23+00:00
You are mixing build time reproduction with run time ones.

Docker images (not files) help with the run time consistency .

Docker (files) barely scratch the surface of build reproducibility. Most applications depend on the distribution package manager ( apt, apk etc) and language package manager (npm, cargo, etc), both sets of them have various challenges in consistent dependency resolution.

In addition build steps might have ordering challenges RPC calls to remote services no longer running and so on.

Anyone trying to to build a docker image from 10 years back experiences this problem
by godelski | 2025-04-23 02:32:24+00:00
This is awesome!

Is there uv support?[0]

One of my biggest gripes about brew is how they manage dependencies. The devs have a conflicting philosophy that creates bloat. Package maintainers must define settings, settings should always use the latest Python version. It makes no sense. Maintainers won't update unless things break so you got a bunch of Python versions running around. And it won't use system Python!

Uv seems to provide an elegant solution for this. You can build a venv for each package and rust version will only have the specified deps. Since uv finds all your Python instances (and packages) and soft links them you have way less bloat and venvs become really useful. You can also use run and other tools to handle executables

Plus is also rust so good synergy ;)

[0] https://astral.sh/blog/uv
by btown | 2025-04-23 02:32:27+00:00
That's fair, though IMHO some marketing from Vercel does make it difficult for someone not versed in the internals to understand what is "privileged in the React client" and what is not. That's their prerogative as a leading maintainer, of course.

And completely understand that freezing a format causes all kinds of difficulties, and semver alone doesn't solve for the resulting community frustration. So I understand why the decisions were made - it's just all a bit foreign to me compared to the groundbreaking simplicity of React's APIs in its earliest days, where if you understood a render cycle the entire world was your oyster. The internals of the renderer were always fine to be "off limits" - but wire formats just feel quite different to me.

(Also, just want to say you're an absolute hero of mine, and my hopefully-gentle nudging on this is because I love everything the React team has created, and I want React to see its full potential!)
by gus_massa | 2025-04-23 02:33:14+00:00
A long time ago, I was a math T.A. in the university and the main T.A. of my course was blind. He used a screen reader for everything, and wrote LaTeX and had a paper versions of the courser exercises in Braile+LaTeX (IIRC).

> a PDF alternative for the blind

I'm not sure what it means. It's a PDF reader? It's another format that is similar PDF but more screen reader friendly?

> Google Maps/navigation for the blind in my city

Do you know https://www.openstreetmap.org/ The data is open, so it may be useful to build an easier to use client, so you don't have to collect all the info.

> I am concerned about parasitic big corporations taking the code and putting it behind a paywall

Probably AGPL is better for your intentions.

> Not only would I be inviting disorganized, poorly constructed code,

There is no obligation as a maintainer to merge all PR. But remember to be nice.
by numpad0 | 2025-04-23 02:33:53+00:00
Typical non-hub dynamo lasts like 30 years parked outside, and nice ones cost like $10 on Amazon. You smack it and they start whining at you. They are only barely more complicated than a stew pan.

Hub dynamos seem a bit more fragile, with a wire extending into the lightbulb, but never heard reliability is a concern with it...
by alganet | 2025-04-23 02:35:01+00:00
I always found the conceptual intersection between cats and laptops to be full of coincidences.

Humans sometimes place cats on their laps. The same happens with laptops (hence the name).

Cats and laptops are often seen inside boxes.

Cats and laptops are known to reproduce sounds that are similar to humans but not quite the same.

Future historians will be so confused.
by musicale | 2025-04-23 02:36:53+00:00
The self-teaching guide is impressive. The programmed instruction format is a great way to learn, and it works both in print and online. I wish there were entire curricula available this way.

Edit: It seems that Wiley has published a number of books in the self-teaching guide series:

https://www.amazon.com/Wiley-Self-Teaching-Guides-17-book-se...