Hacker News new | past | comments | ask | show | jobs | submit | blacksmith_tb's comments login

Don't we already have that basically, with HTML5 form validation[1]? Often just using the pattern attribute is enough to make sure you don't get a phone number in your email field etc.

1: https://developer.mozilla.org/en-US/docs/Learn_web_developme...


Yes, but it's user agent UI which is not really good in any of them.

Good error messaging is important and having styleable semantic elements would be helpful. It's tricky because you often need more than one error message per input, not just "required" but too big, too small, wrong format, etc.


Right. You can use browser validation and extract the error messages with JavaScript (to style them yourself, e.g. [1]), but there’s no solution without JS yet.

[1]: https://github.com/notpushkin/evilmartians-exercise-auth/blo...


I see iFixit[1] rates the storage swap for the M4 Mini as "moderate", I remember thinking that popping RAM in my old 2018 Intel Mini was harder than most laptop repairs I have done... I think I will probably settle for an external nVME enclosure when I get one.

1: https://www.ifixit.com/Guide/How+to+Replace+the+SSD+in+your+...


Not so surprising that now that the Saudis have built infrastructure to support tourism, more people are visiting? I would go, who doesn't like stunning ruins built by cursed vegetarians?

> I would go, who doesn't like stunning ruins built by cursed vegetarians?

They should honestly steal this pitch, I found myself curious for the first time.


When I took Arabic as an undergrad I remembered thinking it was pretty odd that to say "I'm a vegetarian" is to say "I'm a Nabatean"... long cultural memory.

I drink a lot of tea, and I do think there's pretty good research on its health benefits (flavonoids and catechins, e.g.) but it's always funny to realize that its number one health benefit is that it requires boiling water (or almost boiling) before drinking it (not such a plus in the developed world, but for most of the history of tea drinking, quite significant).

I'd be curious to see how much metal adsorption we're talking, but Sci-Hub doesn't have this one yet...


https://news.northwestern.edu/stories/2025/02/brewing-tea-re...

Far more info, though it does lead back to the above link for downloading the paper


Thanks, that is a much better overview!


That only works if there's a single code? I would think many keypad systems assign a code to each apartment (so the one written on the side is not a master key, just Joe in #303).


I've definitely worked somewhere they tell all the users they have individual codes, not to share them, and if there is unauthorized access it can be traced who leaked their code. Everyone gets told the same story and given the same code.


Reminds me of H.L. Mencken's "There is always a well-known solution to every human problem — neat, plausible, and wrong."

1: https://en.wikiquote.org/wiki/H._L._Mencken#1910s


What’s the “well-known solution” to cancer?


Hard to multiply without a host.


https://xkcd.com/1217 aka "just remove the cancer"


How is that “neat, plausible”?

I’ve never heard of any “solution” to cancer, well known or not, that was neat and plausible.


I think you're about to understand the quote.


I think I already understood the quote at the time of writing the previous comment…

Hence why I quoted the exact words.

Do you understand it?


Not sure why you're being confrontational? I'm not the OP but it's clear there's some misunderstanding

The quote is: - neat - plausible - wrong

"Just get rid of the cancer" is - neat because it sounds obvious and tidy - plausible because we can and do cut out cancer - wrong because it ignores the nuance that cutting into a patient's body can have massive impacts on long term health. It can also be wrong because certain cancers have no tumor sites.


No, I don’t think there’s a misunderstanding, unless the parent has literally never seen anyone on HN quote exact words before.

They’re likely being dumb and/or intentionally misleading.


The quote is meant as a type of sarcasm/humor. Meaning if a presented solution is neat and plausible it's likely going to be wrong.


I know… that’s why I wrote I’ve never seen such a solution for cancer presented as if it where both neat and plausible simultaneously.

If anyone offers an example that could have plausibly fooled the median HN reader at the time of reading, then I will change my mind.


I think Ryobi and HDX tools sold at Home Depot need to be one-time unlocked at purchase[1], or they remain brightly-colored paperweights.

1: https://hackaday.com/2021/08/02/home-depot-is-selling-power-...


thanks for the heads up. I know theft is an issue, but cmon.

apparently they haven't seen proof that this is a thing inside the tools (per that article at least) but if i was tasked with this i'd use programmable fuses on the mCU. Battery pack in, hit the trigger twice or something, put it on the activation thing, the mCU nukes the "deactivated" fuses, and it will permanently be enabled.

what do you want to bet it isn't that? btw it could be, i just thought of the first thing that would guarantee the purchaser always had their tool that they had purchased. anything that requires some mechanical linkage to move (a relay was mentioned) will break the first time you drop the tool on its nuts.

Also if your phone breaks on a job you get to go home because "none of my tools work anymore, sorry"

edit: it took me a minute but the theft numbers are like 0.8% and i bet most places would love to have shrink that low.

as a comparison 17% of minimum wage earners have experienced losses averaging a quarter of their gross paychecks. All theft except wage theft in the US (larceny, grand, robbery, fraud) is ~35% of just the recovered wages (in 2012 i am looking at).

0.8% shrink, lol

[0] i got my data from https://www.epi.org/publication/wage-theft-bigger-problem-fo... for this post but i knew what to look for because there was a nice graphic showing the ratios of all theft and wage theft is easily 3x as large as the rest i saw a year or two ago.


There are also options like Carbonyl[1] and Browsh[2] which do images and js in the terminal.

1: https://github.com/fathyb/carbonyl

2: https://github.com/browsh-org/browsh


Another option I'm working on: https://sr.ht/~bptato/chawan

Chawan also renders CSS + images, but unlike the above two, it comes with its own browser engine (from scratch). It also does JS with QuickJS - if you're lucky :P (Lately I got Transmission's web UI to load, quite happy about that.)


Not that I don't think there's a lot of potential in this approach, but the leukemia example seemed at least poorly-worded, "the suggested drugs inhibit tumor viability" reads oddly given that blood cancers don't form tumors?


Lots of blood cancers form solid tumors (e.g., in lymph nodes)


Health professionals often refer to leukemia and lymphoma as "liquid tumors"


Pacific Power does too, though it isn't too specific, no boundaries on the regions, just a hazy overall number[1]

1: https://www.pacificpower.net/outages-safety.html


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: