MurphyA/hacker-news huggingface dataset:
by zelphirkalt | 2025-04-27 11:50:11+00:00
The thing is, when you are doing CSS properly, you will "anchor" your selectors appropriately. What I mean is the following: Ltes say you got some "component" or whatever you want to call it, and have a button in it, that is special in some way. Of course you are not gonna write "button a {someproperty: specialvalue}". You should be writing the selector as specific for that component in this case, for example "my-special-component button a {...}". If the design is implemented thoughtfully, then most of the problems people claim to have with CSS are simply non-existent.

Like "side-effect" you mention. That can only happen, if the design is implemented reusing parts of other design definitions, where they are not meant to be reused. Any other side effect would be intentional. For example button text color and paragraph text color. If one wants them both to change, when one of them is changed, then one reuses the style definition, but probably in most cases one does not, and therefore has separate definitions and therefore has no silly side effects, even after a few months not looking at the project.
by qrobit | 2025-04-27 11:50:26+00:00
As a rule of thumb I always make paths absolute when handling files in scripts. But then sometimes I need to copy a directory tree relative to $CWD somewhere else, so I convert them back to relative

Fish, being a great shell, provides this via `path` command[0]

[0]: https://fishshell.com/docs/current/cmds/path.html
by flir | 2025-04-27 11:50:40+00:00
Our current architectures are complex, mostly because of DRY and a natural human tendency to abstract things. But that's a decision, not a fundamental property of code. At core, most web stuff is "take it out of the database, put it on the screen. Accept it from the user, put it in the database."

If everything was written PHP3 style (add_item.php, delete_item.php, etc), with minimal includes, a chatbot might be rather good at managing that single page.

I'm saying code architected to take advantage of human skills, and code architected to take advantage of chatbot skills might be very different.
by bonzini | 2025-04-27 11:51:14+00:00
> When config files were written not to be easy to parse, but to make it easier for human beings to configure software

Config files have always been a variant of key-value or section-key-value, except that we used to have ad hoc (and probably buggy, inconsistent, incomplete or all three) rules for quoting; array items separated by a mix of spaces, commas or something else; comments (semicolon, percent, sharp) different for each program. Case sensitivity was also a crap shoot, sometimes different between keys and values.

These days TOML (which more or less just works) just works. I have mixed feelings about YAML but certainly I would not swap it with endless variants of sendmail's m4 madness.
by 90s_dev | 2025-04-27 11:51:29+00:00
Not to mention that early on, CSS was very lacking compared to today. We didn't even have `border-radius` until something like 2011! Consider that this relatively simple site design[1] takes about 420 lines of modern CSS[2]. And that's even using nesting, and liberal use of :has, which is a game changer. I remember having to restructure both my CSS and my HTML to achieve appearances which were otherwise impossible to create in the intuitive way, all because of inherent limitations to CSS at the time.

[1] https://90s.dev/

[2] https://90s.dev/style.css
by KronisLV | 2025-04-27 11:52:05+00:00
I mean surely there’s a difference between outright scams where you deliver nothing that works vs what a lot of consulting orgs do where you at least deliver something functional, even if not exactly what the customer wants. One of those is more likely to get you charges than the other.

> Customers who say they spent their life savings without receiving a viable product - they told the BBC they received products from ConvrtX which didn't work or match what they had paid for

An MVP would have sufficed, though they couldn’t be bothered to at least do that. Of course, they should have also said no to the downright unreasonable ideas that some of the customers had for their budget (e.g. accessing all of the phone data remotely, on a startup budget).

But it’s pretty obvious that they had no love for the craft nor even the most basic respect for their customers and just cared about the money.
by LetMeLogin | 2025-04-27 11:52:24+00:00
I was there about 12 years ago, and in all honesty, I wasn't impressed.

The air pollution was absolutely horrific, for whole I was there I wasn't able to see the sun at all due to air or lack of it.

"Green" trees were just... grey, covered with all the dust.

And good luck if you want to grab a taxi and you have long hair :)

The food was great, though.
by dt_ | 2025-04-27 11:52:30+00:00
> I applied to NGI Zero in December 2024, because it was promoted on European Union websites, and my application was rejected by the NLnet Foundation in April 2025. > After FOUR MONTHS instead of one as supposed. Without a decent explanation.

Same for me! I spent lots time to make a presentation for my project. It was my first attempt. And if you look to the awarded projects, most of them are poor, uninteresting (for me at least) or have no link to project website. Seems unprofessional. I'm glad is not only my opinion.

Anyway, my project will continue without their support and I hope to release it open-source soon. Fortunately, for now I can sustain it by myself (from my time/money).
by goku12 | 2025-04-27 11:53:01+00:00
The kindness, sincerity and honestly that you attribute to his words are distinctly not there. Otherwise, he wouldn't be pitching pseudo-scientific views after ignoring and firing career professionals in the field. You have an autistic kid. Weren't you still able to recognize the dozen or so absolute falsehoods about autism that he spouted in that half an hour? What's even worse it that his tone and behavior has a very familiar and dreadful analogue from the past. Read your GP's top-level comment. At this point, people are simply ignoring the dozen flashing red lights. Do you really believe that he cares more about people's health than all the researchers who were working on several topics like this, whom he fired?

> The challenges a level 1 autistic person faces are well recognized and good for network TV.

Those level 2 and 3 people you seem to be so worried about are the ones who are going to suffer the most. At least we know how to mask it in public.
by throw0101b | 2025-04-27 11:53:02+00:00
> ICE is gearing up to be the Gestapo.

It should be noted that the Nazis took a lot of US policies from 1920/30s and ran with them just a little bit further. The Nazis were famous for eugenics, but it was quite big in the US as well, see for example:

* https://www.npr.org/sections/health-shots/2016/03/07/4694780...

* https://en.wikipedia.org/wiki/Buck_v._Bell

Their initial treatment/segregation of the Jews wasn't much different than treatment of blacks in the US.
by joegibbs | 2025-04-27 11:53:18+00:00
I don’t think it should be used for therapy. It’s too obsequious. Every idea you have is genius to it, none of your problems are ever your fault. It’s too easy to convince it that it’s wrong about 2+2=4, all you need is a little nudge in the right direction with a slightly leading prompt and it’ll agree with anything.

And a lot of people think it’s infallible - so if it agrees with them they must be right.
by rs186 | 2025-04-27 11:53:35+00:00
From what I hear, Amazon was losing money for many years, and they got to use tax laws to offset those previous losses. And that was quite a few years ago, and they have been paying a decent amount of taxes for a while. Of course, they can utilize all sorts of credits as allowed by the law.

If you have a problem with the law, call your senator, instead of ranting on a forum.

(I have nothing to do with Amazon other than being a shopper there and own some stocks via VOO.)
by dailykoder | 2025-04-27 11:54:17+00:00
// QEMU UART registers - these addresses are for QEMU's 16550A UART #define UART_BASE 0x10000000 #define UART_THR (*(volatile char *)(UART_BASE + 0x00)) // Transmit Holding Register #define UART_RBR (*(volatile char *)(UART_BASE + 0x00)) // Receive Buffer Register #define UART_LSR (*(volatile char *)(UART_BASE + 0x05)) // Line Status Register

This looks odd. Why are receive and transmit buffer the same and why would you use such a weird offset? Iirc RISC-V allows that, but my gut says I'd still align this to the word size.
by autoexec | 2025-04-27 11:54:29+00:00
It's one of the many private data sources they were planning to use to track and collect data on autistic people for their database. https://people.com/rfk-jr-to-launch-autism-registry-using-pr...

Autistic or not, giving that kind of health information to private for-profit companies who collect that data to use it against you or sell to third parties was never a good idea even before the government wanted to take it for themselves.
by casey2 | 2025-04-27 11:54:43+00:00
Why do you go on the internet at lie? Anybody can look up fast food employement rates in california and see that you are just bullshiting. California has more fast food jobs now than at any point in it's history. Mcdonalds has already recovered from it's fool's day blip.

I just don't understand why Americans want a race to the bottom on their food/food service quality. Apparently at the expense of growth.
by grafmax | 2025-04-27 11:55:11+00:00
A cadre of billionaires appears determined to institute fascism in the United States; there’s a very real chance they will succeed. Meanwhile, the climate crisis threatens the long-term survival of our species, yet efforts to steer us away from self-destruction are being actively sabotaged by the fossil fuel industry. This is to say nothing of the warmongering with China, another nuclear power.

The concentration of wealth (and by extension, power) really has become an existential threat to humanity.
by csomar | 2025-04-27 11:55:50+00:00
They should replace this with a density metric. If a city is big enough, it becomes just "cities" next to each other. The difference is in central density and time from the extremities to the center. In this case, Chongqing, HongKong and Paris are denser than say Los Angeles; even though the Los Angeles metro area has a comparable/higher number of people.
by kypro | 2025-04-27 11:57:15+00:00
Most senior SWEs, no. But most technical people in software do a lot of what the parent commenter describes in my experience. At my last company there was a team of about 5 people whose job was just to make small design changes (HTML/CSS) to the website. Many technical people I've worked with over the years were focused on managing and configuring things in CMSs and CRMs which often require a bit of technical and coding experince. At the place I currently work we have a team of people writing simple python and node scripts for client integrations.

There's a lot of variety in technical work, with many modern technical jobs involving a bit of code, but not at the same complexity and novelty as the types of problems a senior SWE might be working on. HN is full of very senior SWEs. It's really no surprise people here still find LLMs to be lacking. Outside of HN I find people are far more impressed/worried by the amount of their job an LLM can do.
by AIPedant | 2025-04-27 11:57:39+00:00
IMO the most relevant point is that, even with all that data, Waymos are backed up by a large team of humans that can help guide the cars through "difficult" common-sense situations that AI is simply not capable of handling, both because artificial neural networks are very primitive and stupid compared to vertebrate brains, and because it is practically impossible to collect enough data for the dumb ANNs to learn from. Self-driving companies are very cagey about this.
by mathverse | 2025-04-27 11:59:35+00:00
I am totally uninterested in China mainly due to them being so hostile to foreigners. Yes cities are impressive, technology and culture as well. But you are not welcome. At all.

You are sometimes not even tolerated.

And because of that your time in that country will be always limited. If China was to become like BKK or other SEA countries ....

That's another story.
by commandersaki | 2025-04-27 11:59:49+00:00
I like the Australian model of government subsidised loans that are indexed by CPI and repayments are garnished from earnings after meeting a certain income threshold. There's no federal scholarship program or any of that sort of thing (though there are meagre scholarships people can apply for at each university), and there's no such thing as a educational loan from banks and private lenders.
by thrance | 2025-04-27 12:01:45+00:00
"Actually, it's good they're registering every autistic persons in the country in a national database, under a president who is overtly eugenicist [1]."

No it's not. At minimum this is a horrible invasion of privacy, that I can't believe anyone on HN would defend. At worst this is straight Nazi shit, preparing the ground for extermination.

[1] https://time.com/7002003/donald-trump-disabled-americans-all...
by eqvinox | 2025-04-27 12:02:04+00:00
My sweet summer child… this is backwards compatibility to the I/O register set of NatSemi/Intel's 8250 UART chip…

…from 1978.

https://en.m.wikipedia.org/wiki/8250_UART

The definitions are correct, look up an 16550 datasheet if you want to lose some sanity :)
by paulcole | 2025-04-27 12:02:21+00:00
I was kidding… Of course you and your friends share some demographics and interests—- making it unsurprising that you’d get similar ads.

> The question is, have you found a horrid ad yet? Side note, this was in the UK

The question is, why does it have to be a horrid ad? Does the phone only listen for things about horrid ads to show you?

You have to know that your phone isn’t listening to you right? That it’s just a coincidence and that when you’re told to be on the lookout for an earwax ad that you’re more likely to see one, right?
by begemotz | 2025-04-27 12:02:57+00:00
From the perspective of education at least, I see a use case in requiring students to complete all work within this app; similar to other tools for online test-taking. Of course there are always ways to game the system, but creating enough friction would decrease the ease and frequency of AI generated assignments and papers. I find this very interesting given that my institution officially forbids faculty from using any form of AI detection systems to detect academic fraud.
by SamPatt | 2025-04-27 12:03:14+00:00
I used Anki for years, not for Geoguessr, but I've been a fan of spaced repetition for a long time.

It worked well and has a great community, but I found the process for creating cards was outside my main note taking flow, and when I became more and more integrated into Obsidian I eventually investigated how to switch. As soon as I did, I've never needed Anki, although there have been a few times I wished I could use their pre-made decks.

I know there are integrations that go both ways. I built a custom tool to take Anki decks and modify them to work with my Obsidian Spaced Repetition plugin. I don't have a need to go the other way at the moment but I've seen other tools that do that.
by lazide | 2025-04-27 12:03:38+00:00
They’re ‘boring’ because we’re used to them, not because other cultures wouldn’t look on in horror.

Every culture has their variant of this.

For example, Indians would never tolerate the level of alcohol consumption that is essentially mandatory to hold office jobs in SK and Japan.

And SK and Japan wouldn’t (to my knowledge) tolerate the level of societal control over marriages/sex/personal identity that Indian culture considers normal. And definitely wouldn’t tolerate the lack of civic sense.

Chibi was an indirect reference to what western cultures refer to as CSAM (in not-as-uncommon-as-outsiders assume cases). Too subtle eh?

Do you want me to get more specific? It’s not like Akiba and several other nearby distracts are actually about just maid cafes (actual-what-they-purport-to-be ones anyway) and cheap electronics, eh?

Every culture has things like this, yes. And the bizarre (to the reader) and outrageous (to the reader) articles get clicks.
by A4ET8a8uTh0_v2 | 2025-04-27 12:03:45+00:00
I feel for you, because I am not sure how I would fare in that circumstance. That said, the opinion piece is in itself a frustrating.

<< Autism has become an identity, a different way of thinking and existing.

I think, this sentence, more than anything else in that article aggravates me the most and I am not entirely certain why. It is not some sort of rhetorical question. I simply struggle to understand the obsession US denizens have with identity. Everyone is 2% cherokee indian, 2/5 italian and maybe a little dutch on non-pagan holidays. And this does not spare the parents. They are X parents. Puppy parents. Teenager parents. Autist parents. All in an attempt to establish some sort of identity that can be displayed to the society at large.

<< Children with autism have a right to an appropriate education, to accommodations, changes in the classroom to help them succeed; we have sensory-friendly days at the zoo.

Sure, but at the expense of the non-autistic kids? What does that statement actually mean?

<< I don’t care if my child ever pays taxes

In case there is any kind of doubt, the society does. If the registry is not intended as an intentionally bad thing(tm) by RFK jr himself, you can rest assured it is absolutely seen as a way to ensure that more taxpayers exist ( and this is the charitable parsing of that registry ).

<< She did not destroy my family,

This is an interesting one. There are people who do derive meaning from service such as this, but they do not strike me as a majority of the population. At best, it puts a heavy strain on the familial ties.. and for a very obvious reason.. it is not a light cross to bear. And we do like easy mode. But to actively deny that it is a strain is silly.. because while it did not break the author, the same issue definitely took some families down.

<< I want to know why regressive autism happens

I think most of us on this forum can agree that knowledge can be useful.
by anonylizard | 2025-04-27 12:04:18+00:00
Why not?

Zuckerburg has already realized that local social networks will be utterly replaced by AI chatbots, which are superior in like 99% of cases.

It doesn't matter if others find "Facebook" icky, because the people who would find it icky, don't use facebook anyways. The critical factor is getting a new group of users onboard, to form a sustainable core of users.
by tialaramex | 2025-04-27 12:04:20+00:00
It's also helpful shorthand. One of the reason there is no RSA KEX† in TLS 1.3 is that under BCP 188 obviously aiding bulk surveillance technology isn't acceptable, so when you have a liaison from the ACLU saying yes, get rid of RSA KEX and a representation from EDCO (Enterprise Data Center Operators, basically big old financial companies) saying it'll cost them too much money to lose RSA KEX so it should be reinstated in the late drafts for the RFC, there was no need to re-explain in great detail why the ACLU are right here because there's already a document explaining to anybody who is new to this.

† The RSA Key Exchange goes like this: We get the public key of a server from their certificate which they sent us, we pick a symmetric key at random and we encrypt our chosen key using that public key with the RSA algorithm, so that only the legitimate owner of the certificate can decrypt it, then we send that encrypted key to the server. Because they know the Private Key corresponding to the public key in the certificate they can decrypt the symmetric key we sent. This symmetric key is used for all further communication. This means if say, the Mad King's Secret Police obtain a copy of the RSA private key for the server at any time the Secret Police can decrypt every communication, even if the communications they're decrypting happened weeks, months or years before they obtain the key.
by teamonkey | 2025-04-27 12:05:24+00:00
They own a lot of UK property and land, both directly and through trusts. And given the statistic that the top 50 families control half of the UK’s total wealth, I’m not sure how you can say it wouldn’t have an impact on either tax revenues or property prices. A land tax of 0.1% would have a staggering impact on tax revenues.
by dns_snek | 2025-04-27 12:06:50+00:00
> We label everything now though

Are "quirky" and "odd" not labels? How about "weirdo" and "creep", are those not labels?

These romanticized ideas of what autism is (or used to be) hit a brick wall when you consider that 2/3 of people with autism have contemplated suicide and 1/3 of people with autism have attempted it. Most of it could probably be attributed to social rejection, exclusion, and isolation perpetuated by people who don't suffer from these disorders.
by yorwba | 2025-04-27 12:06:57+00:00
The strong state capacity collects the resources of large areas and concentrates them into large-scale construction projects in a handful of places. China has a small number of megacities with large, wealthy, modern urban cores and a very large population that lives somewhere else. There are about a hundred cities with more than a million inhabitants but only 47 have urban rail transit: https://en.wikipedia.org/wiki/Urban_rail_transit_in_China That's inequality.
by einpoklum | 2025-04-27 12:07:00+00:00
> You edit the source code. That's the customisation?

I meant, customization where you don't have to write the customized code yourself, just choose some build options, or at most set preprocessor variables.

> First, it is customary etiquette to indicate when linking your own code/work.

You're right, although I was only linking to the table of CMake options. And it's only partially my code, since I'm the maintainer rather than the original author

> You're bringing in your own printf. Just adapt it to your own I/O backend, like libc has FILE.

One can always do that, but - with the output callback - you can bring in an already-compiled object, which is sometimes convenient.

> If you use your own printf, you probably need a bunch of other custom stuff anyway.

My personal use case (and the reason I adopted the library) was printf deficiencies in CUDA GPU kernels. And - I really needed nothing other than printf functions. Other people just use sprintf to format output of their mostly, or wholly, self-contained functions which write output to buffers and such. Different strokes for different folks etc.

But - I will definitely check out the link.

> Second, that is not a POSIX compatible printf, it lacks support for '%n$' (which is used primarily for localisation).*

That is true. But C99 printf and C++ printf do not support that either. ATM, the aim is completing C99 printf support (when I actually work on the library, which is not that often). So, my priority would be FP denormals and binary FP (with "%a"), before other things.

> * Arguably can make sense to omit for tiny embedded platforms - but then why is there FP support?*

It's there because people wanted it / needed it; and so far, there's not been any demand for numbered position specification.
by dangus | 2025-04-27 12:07:28+00:00
I'm confused at what you're claiming here. Yes, the submissions are rather random, but TikTok definitely figures out what type of content you like and what advertisements are most effective.

Your feed is almost certainly personalized up to the individual post, but I think if we are making an analogy to human curation it's certainly not working the same way behind the scenes.
by begemotz | 2025-04-27 12:07:44+00:00
I think you have a great idea here and I would keep at it. There are very few, if any, good solutions to combating the influx of AI generated work in academia. For many, I think your solution would be welcomed - even if imperfect- it gives administrations something they can point to when asked what they are doing to combat academic integrity associated with AI. I am happy to talk more if it would be useful -- I can think of a few longer term features that would potentially be useful.