skysight-inc/HackerNews huggingface dataset:
Ask HN: Methods for Namespacing in CSS?
Here's a problem I've struggled with for years that just came back.

I exported a few hundred notes from Evernote, these have about 300k of CSS and SVG. I am displaying these through a web application that can compose HTML documents at the DOM level, so I can just insert some elements into the <head> and <body>. I am inserting a toolbar into the page that also pops up modal dialogs to let the user annotate text. Right now I am keeping the native CSS but I know there's some risk of namespace collisions between my CSS and their CSS particularly because I am using Bootstrap which uses bog common words for names.

I am facing something similar to work where we have a React application that sometimes gets loaded on our partners web pages so we always have some concern we might break each others CSS.

The pages from Evernote have no JS so I'd imagine in principle I could rewrite names in the style sheet and HTML. My UI is mostly HTMX but the back end has to know what things are called on the front end and there are small amounts of Javascript.

I think of Ted Nelson's ideas of "transclusion" and how it's a bit difficult to cut and paste a piece of one HTML page into another HTML page because of these namespace issues.

What solutions are out there for this sort of problem?
Increasing the cap on max transmit power. I compared the output of that card to other cards using my spectrum analyzer, and max tx on that card was extremely weak compared to the others.
Looks correct. They raised $200m from NVIDIA which I presume is in pure GPUs. https://news.crunchbase.com/ai-robotics/new-ai-unicorn-imbue...
16 clicks to get to the examples in the documentation. I think you could do a much better job of organizing and showcasing how this tool works before so much about how to install it on every platform.
The File object encapsulates a path. If you use it, e.g. to read contents, and the file doesn't exist, then it will fail with an appropriate error message.

Files come and go. References to them go stale. Every user and tool deals with this. This isn't a "validation" issue.
Great point. We should remove all the ramps too, to ensure we remain ideologically pure while having cheap, possibly allergenic bread.
I don’t think either of those things is in the spirit of the ADA. ADA requires reasonable accommodation. So if it would be unreasonable, the law says the accommodation isn’t necessary. What I see in those two instances is judicial overreach and a college not wanting to appear insensitive.

Some day if you find yourself with limited mobility you will be thankful the ADA requires the things it does, because you would find it challenging to live in society without it. The market of “disabled people wanting to shop in a store” is vanishingly small and totally unserved without at least some regulation. I’m sure it offends your free market principles, but the free market isn’t the best thing for all of us.
The Dead Privacy Theory says approximately all private data is not private; but rather is accessible on whim by any data scientist, SWE, analyst, or db admin with access to the database.

--/u/nomilk
> Best you can do is some level or radioactivity that we're fine with in animals but not in humans because we're hypocrites.

I don't know if this is the case, but if the life expectancy of rhinos is much less than humans, then there would be radiation levels that are safe for the rhino but harmful for humans. Tumors can take time to develop.
Interesting, but does this rise to the level of a crime? Only in Australia? What if I put a box that says fill out this card and be entered into a drawing to win a free car. Instead I steal the data. It sounds like fraud, but there's no exchange of money and the data itself would have diminutive value. Only when I use the data might it rise to the level of a crime.

Anyone with knowledge of Australia's legal system that could please explain how this is a crime?
The biggest take I got from my soylent journey was, it’s not Perfect, but better than a lot of what people eat. coke and a bag a chips vs a bottle of soylent? Soylent is going to be a much better take.

These emotional critique articles completely miss that.
There obliviously unaware of the state of most peoples diets across the classes.

Nothing beats some green veggies from your garden and some fish you caught with friends, but we don’t all have that luxury
It’s a mix of functional and imperative style. Most functional languages (other than Haskell) allow you to easily write code like this.
Private jets don't really fly at 50k that often but I'm sure there are some that can. 40-42k is pretty common though. There are a handful of reasons. In no particular order: 1) additional separation between recreational private flights and scheduled commercial flights 2) higher performance in small private jets with typically less than 1k lbs of people and cargo 3) winds are generally faster the higher you go so you'll usually go about at high as you're able, at least in one direction.

Most private jets aren't someone flying a billionaire around in a $60M Gulfstream, they're $3M toys being flown around by the owner to go to their ski trip.
It's stunning to me how Apple managed to convert a multi-decade legacy of being "the cool" company into "feels like Big Tobacco".

And it's not like one can distance oneself from their PR games. As a developer, one has to go to App Store Connect almost daily and deal with App Store Review. It just doesn't bring joy any more.
To catch some BS, sure. I wouldn't expect them to fall for obvious lies. I doubt a mechanic would be significantly educated metallurgy or production techniques to spot BS in part lifespans. Or to spot pseudoscience in air filters.

I would expect them to notice their repeat customers not getting the benefits. But keep in mind that doctors saw their patients appearing pain free and high functioning.
Having grown up in North FL, I've been on a few military ships for friends and family day. This is pretty much exactly what they do. You're only allowed where they tell you to be and they have people watching to make sure you follow the rules.

If anyone gets the chance to go out on a carrier, do so. Pretty neat stuff.
I'm flagging GP for being spam. The personal story is probably made up.
In Norwegian, “kan” may mean either “can” or “may” depending on context. That’s a source of confusion sometimes. Not sure about Danish, but I don’t think it can mean “must”.
Traffic separation. Since they can fly at those altitudes, it makes sense to put them there, away from other commercial airliners.
This is why I really wish Samsung did Android ereaders.
By that criteria Any price that includes some tax would be artificial. I suppose libertarians would be happy.

Artificial, organic, lab grown or otherwise - does the price of a good or service capture the cost of its production.
Isn't it detected by a cheap geiger counter ? in this case the horn will be just discarded after the rhino jas been killed
My RSS reader just showed me this: https://phys.org/news/2024-06-unpopular-political-affect-ele...
Right, by switching languages.
Studies have shown that number of lines of code is directly proportional to the number of bugs produced in that code, regardless of language or framework. Would it stand to reason then that a framework (yes, I said it) like React with its boilerplate is suboptimal, even with the new compiler?

As an old school web dev, to this day I cannot understand how multi-megabyte JavaScript code blobs (after gzipping!) became "normal" and acceptable.
The author totally mischaracterizes what's going on now. The far right are not in any rebellion against government or institutions: they actually want MORE government and institutions and MORE intrusions into your life: they want the government to put the 10 commandments in school, prohibit abortion and limit birth controls, do drug testing for welfare. They want more protectionism--which is government interfering in trade. They want a stronger military.

Its not a left-right thing anymore. Its authoritarian vs liberalism (classical). People want to give more powers to governments, because they've got problems they can't solve, and they want a government which is powerful enough to solve them.
Out of 8 billion people, God chose me! ;)
This does not seem to be borne out by the accident statistics, which apparently show no trend in turbulence related accidents. (https://www.ntsb.gov/safety/safety-studies/Documents/SS2101....)

I don't know if there are other factors which might be masking a rise in incidence of CAT from accident stats?
Show HN: Mappify – What if we could use ChatGPT like a mindmap?
Hello, guys!
This is the first project I am developing as an indie hacker. The idea actually came from my wife. As she works in the VC area, she often studies new things of different industries of course with the help of chatgpt and other ai tools.
One day she asked me:
"Is there a tool that like an infinite canvas where I can use chatgpt with different chat windows on it?"
After googling for a while, I got her nothing like that.
So she said: "OK, why don't you build one?"
Well, that sounds not that difficult. So I spent couple of days to build a demo and here it is.
The Mappify(https://app.mappify.net)
Experience an innovative approach to utilizing ChatGPT, akin to navigating through a mind map. This method allows you to engage with AI in a dynamic and flexible manner, granting you the liberty to generate numerous chat nodes according to your needs. Delve into various subjects through distinct yet organized conversations, enhancing your exploration and understanding.
Great repo, glad y'all are looking into this. So am I reading correctly that Intel has a 7B model that doesn't remarkably well with not hallucinating??
Ah yes those pesky billionaires putting the tropopause right below where all their private jets fly.
What happened to the idea we should take the most charitable interpretation of a post? I thought that was in the community guidelines here.
I tried this but got motion sickness, which I almost never get. I think having to focus on a monitor while walking in place is just not for me. Sometimes I'll use it if I'm just on meetings or something.
i use NPM at home. tested caddy a bit but i really liked NPMs convenience of having a Web-UI. allows me to do stuff remotely on my phone without having to dive into conf files.

anyways, what i liked about caddy was how easily it handles SSL-certs, for sure makes it easier to use! :) gonna have to look into how i can give a wildcard-cert to my rev-proxy.
why not use web components?
The problem is more with us than them.

We lap up all the open source and ideas that the FAANGs of the world put out and presume they are awesome because...it is hard to get hired there? People've heard of them? They pay a lot?

It's all political bullshit instead of actually doing the hard work of evaluating the idea and implementation.
Excellent! The scrolling could be better though. I love elixir - but the scrolling from the site a couple of days back was much snappier.
Lehto's Law discussed this
https://www.youtube.com/watch?v=Ntxd2jsszi0&pp=ygULbGVodG8nc...

The builder didn't help himself by suing everyone before trying to work it out.
Assuming OpenAI wants the tech to control desktop applications using AI, the tech should be able to automate browser operations as well.
No accounting for taste, I suppose. For me, class components were absolutely horrid and hooks simply made it less horrid by comparison. I guess anything can seem amazing after you've been stuck in knee-deep mud.
Scanning AWS IP ranges to discover SSL certs for ethical hacking
I think those are all the same on Swedish PC keyboards too, except $ -- yup, that was AltGr-4, not 5. And yeah, not lovely... Why have I put up with this for over 30 years?!?
You can still find documentation for Macos toolkit with Pascal bindings.

This is a bit of a nostalgia trip for me as I owned a copy of this book way back in the 90's

https://developer.apple.com/library/archive/documentation/ma...
So each factory is purpose built to its ingredients OR you pray you don't get thrown in jail because a crumb of sesame was missed in the deep clean and some dysgenic child had an asthma attack?

What's weird is you pretending your model of the world is tied to reality when all it is tied to is ideology. Make bullying legal again.
I think this has been tried before and there are issues with Constitutionality, qualified immunity, etc. but I am not an attorney. Better to make sure the penalties stay at the official level, but also to make sure the people in these jobs are elected and not appointed so there is real accountability.
They can operate a national ID system. For instance SSNs and passports. They can also force states to do things (like RealID).
Guess this is a similar mechanism to why brainfog is gone afer a powernap?
Lets hope that with enough research one can induce it for the people in need some day.
Precisely what China did yes.

To be precise I believe that China's requirements were mostly around using local datacenters and respecting censors, the US is actually going a step further even if only because it is ashamed of how much it needs to censors its warcrimes.

> Look up the law on foreign ownership of traditional media

The traditional media was an oligopoly and a very important gatekeeper of information. The internet is both of those things but in a less exclusive fashion.
Right, that's part of the problem. During the work hours the temporary population of Manhattan grows about threefold. They contribute to immense gridlock and then disappear to their suburbs in another state. Why must the residents bear the brunt of the externalized traffic impact? It is only fair to treat available street space as a limited resource.
That good, eh?

PS. Also looking into "Diaspora".-
Which seems to indicate that Democrats will face the heat for congestion pricing as long as it remains unpopular, right?

And again, my point is that it will remain unpopular until it’s implemented, but it will almost certainly become popular once it’s put in place.

All you’re saying is that they turned what would probably be a non-issue by the election into something that people will remember and be upset about. That seems like a horrible political strategy.

I know I for one am much more likely to vote for a democracy supporting Republican (if they exist at this point) because of shit like this, and you’re articles says they won’t even get benefit from cancelling it
> moving cars emit more sound and fumes than idling cars do

Per car, per minute? Sure.

Per car, per trip? Not clear, but probably not. Per block, per day? Also not clear, but probably not.
My God! It's full of leftpads
If the world wasn't such a prison, it wouldn't need cages to keep us in it.
[1] "The U.S. Centers for Disease Control and Prevention (CDC) reports that the prevalence of food allergies has increased by 50 percent since the 1990s, making it a serious public health concern."

The labeling and laws around them seem to be tricky business, however, it should be time to treat the disease and not just the symptoms. The above quote from the CDC tells me that medical advice to new parents and/or diet has created a monster, and it's time to undo the harm. I have 5 children from age 5 to 27 from two different women, and not one has food allergies. I realize it is anecdotal data, but I also don't recall there being so many people with various allergies growing up, and parents I have spoken to that seem to have done the same with doctors and dietary choices for their children don't have children with allergies. So, does this mean in my youth, either kids with allergies died, didn't have allergies, or avoided whatever allergens were out there and were such a small percentage it didn't register? Personally, we didn't give our children antibiotics every time they had cold-like symptoms, or go to the doctor often, and we introduced solids at a very early age along with nuts (in paste form - peanut butter, tahini when they were very young), and a diverse diet. There were families around us that had one of their kids on antibiotics once or more a year for years, and they wouldn't question it, and they were early on the gluten thing before it became a thing.

I think it would be horrific to have a life-threatening allergy to even being exposed to the trace amount of anything. On the other side, I am so tired of not being able to find "normal" food without warnings, and the trend-of-the-day nutrients overcrowding the shelves and displacing other choices. It seems in the US at least, if you say something is good for you, it winds up everywhere in massive quantities. Remember the initial Quinoa boom? Quinoa cereals, buns, drinks, tablets, in pasta, salads, etc. I know it's a grain like wheat is omnipresent, but one day the supermarket shelves get loaded with it until the next health trend comes along - Acai this, Acai that, Avocado this, that, Olive oil, Matcha, Gingko, Ginseng (80s!), Almonds (to the point of overcultivation), etc... Nothing in moderation or common sense, but marketing overload, and the public literally eats it up. I can't even find full-fat yogurt that easy now. My local ShopRite has almost 95% low-fat, no-fat, yogurts on the shelves with 5% or full-fat yogurt, and supposedly fat is good again, it's sugar that's the main culprit for obesity and diabetes and other related diseases in the US.

PS: Imagine trying to run a business in a litigious society where now 50% more people have food allergies to so many things that you need a mass spectrometer or other instrument to make bread to ensure it has what seems to be an undefined trace of one of many related food elements. Life has gotten ridiculous.

[1] https://irp.nih.gov/blog/post/2023/05/digging-up-the-roots-o...
It's very funny that The Register still calls Apple "the iGiant" and the "the iMaker".
OTOH, hitting Ctrl-C in gdb and looking at a backtrace a few times would show you the leaf function
thanks! it means so much to me that somebody even tried it and played all the way through
Surprised that the airline picked up the rogue network
> outperformed zero-shot GPT-4o

Cool stuff! Does this do RLHF or just pretraining? If the latter, how did you manage to beat GPT 4?
You are lucky that morons don't spare some time to insult you, but you are right that it's a problem that users that dislike your product just forget it instead of writing a report.

Have you tried showing it to friends or neighbours? It's important that you sit them in front of the computer and go back a few yards and look how they use the app without your feedback. Don't give them instructions, just see how they use it, where they get stuck, what they wish they can do.

Later they will lie and tell you the product is fantastic!!! Just hear the lies, smile, wave and thanks them. You are not interested in their oral feedback, just to see them using your product. (Some sugestions and wishes may be useful too.)
Well, just because it's not relevant to a regular user doesn't mean it's not relevant to me and people like me.

The regular user only installs software others have packaged.

I end up packaging software sometimes (maintain a few AUR packages) but my main use-case is being able to modify the packaging myself for private use, generally to apply custom patches or alter compiler flags etc.

Being able to do all of this easily without ending up with a pile of goop everywhere from `git clone thing && cd thing && make && sudo make install` is nice.
They might lose an extradition fight, but the extradition fight could stretch on for who knows how long leaving him in jail; still a win for the U.S. Taking the deal lets him out of jail.
I'm still laughing about the fact that JSX renders to XHTML, not the HTML5 that browsers actually use. 99% of the time they're the same and parsing occurs as expected. That last 1%, things get weird quick.
Long ago(I guess around 2006),I read this and was struck by the amazing ideas. I couldn't remember the author, though, just the title. Then I came across some of Greg Egan's other works a decade or so later and it felt similar, so I checked and sure enough, same author. Fantastic ideas, although his character development is a bit lacking in my opinion.
If you only had to look at a specific position or color in the graph, then a graph wouldn’t be needed at all. The offending function would just be printed.

But the flamegraph can’t color the offending function, or show it in a specific position, because what the offending function is depends on the context of what the program is trying to do and what the expected CPU usage for each function is. That’s information only you have.

So you only need to look at wide chunks and see if it’s expected for them to take so much share of the execution time or not, and if they can be optimized.
Hi, you make all excellent points. However they do sound more like comments from 2002, not 2024. With the complete takeover of the web, digital media, and digital photography, just where do you imagine all this cmyk stuff is still happening? Save for the last vestiges of print, it isn't. Most work today goes from rgb, to rgb, and then to rgb. Maybe throw in sRGB as well. So cmyk, nice to have, but not needed for most pro work today. FWIW, 40 years pro work at top NYC ad agencies and pub houses.
This is a good list, but why start there? We should start with the genocides in the Bible itself. There are so many, it's hard to pick just one, but I think my favorite is where David, a man after God's own heart, killed all the males in Edom. Who said that feminism has no place in the church? /s
Probably the microservices-based one for async video messaging (i.e. Slack for video) for workers in the field. Each service was small enough that we could do a blue-green deploy to prod in about 2 minutes running only the service's tests and a tiny (intentionally limited) set of about 8 system journey tests (can onboard a new user, user can create a contact/group, user can send a common content-type message, user can receive messages, user can react/respond to a message). Every commit to main/master automatically either deployed to prod or broke the CI/CD pipeline and needed to be fixed ASAP. Each service was also well-known by team members that it literally could be rewritten in a week or two if desired to change a key part of its design.
I've never seen a DoorDasher show up with a proper insulated bag. The pizzas are cold. They've been on who knows what route delivering orders from who knows how many restaurants. They slide around, aren't kept level.

I had an order where only 1 out of 5 pizzas showed up. The driver didn't speak English, but it wouldn't matter if he'd been able to. Because the driver isn't empowered to help in any way. They don't represent the restaurant, and everything has to go through DoorDash customer service.

Getting my refund took 4 phone calls, multiple online chats, and 30 days.
wordpress is being marketed, deployed and then abandoned without maintenance by seo experts and designers, not techs nor devs.
The big problem is that

- memoization sometimes crucial for performance.

- passing objects and functions around is common.

- you cannot compare objects and functions for semantic equality

If you wrote larger react apps you almost certainly had to useCallback at some point so that memoization worked, the compiler fixes that.

Whenever you construct an object or function the react compiler memoizes on their free variables so pointer equality is sufficient.

Though I do think the compiler caches too aggressively, even if there are no free variables and hoisting is sufficient or escape analysis shows it is unnecessary for semantics.
https://github.com/thomaspoignant/go-feature-flag

also can use GitHub
It's way too slow and per-task overhead is much higher than in compiled alternatives (Rust and .NET - BEAM performance is much worse than these, sometimes by a factor of 10).

Surely you're not asserting that other platforms that provide concurrency and parallelism primitives are designed by people who don't know what they're doing?