skysight-inc/HackerNews huggingface dataset:
'It gets scary': Neighbors say these Bay Area ghost kitchens are out of control
The main things you need to know:

- "Eat whole food, not too much, (maybe) mostly plants". Do some form of exercise for some time at least 5/7 days.

- Listen to your body and do what makes you feel best (e.g. types of foods, meal timing and # of meals per day, types of exercises and amounts). I really believe that people's bodies work differently enough that even excluding extreme cases, no one diet is best for everyone

- Genetics, some people are just unlucky or lucky

Also for cancer, 99% of things have increase your risk by some amount; including every food, because simply metabolizing causes chemical reactions which (when unlucky) cause cancer. The important things to watch out for are those which carry a very noticeable, substantial increase, like benzene and radiation; studies show that red meat and nitrites correlate with increased risk, but it's ambiguous how significant they are especially with the other correlated factors (like bad eating in general).
Also I pointed out an issue in my comment that C# got wrong, then fixed -- closures created in loops
Thanks. Most things I have seen have the US/perhaps Anglo-Saxon countries stand stand out (e.g., https://www.psychologytoday.com/us/blog/the-resistance-hypot...), but could indeed by evolving.

That makes putting it on social media alone much more tenuous, though.
Yes, sorry. This is a Firefox bug and not user error.

On my Linux system, this works with any other browser I try. It only fails with Firefox. If this is user error, it seems every other browser handles user errors much better.

- Firefox: First window is open, running `firefox URL` from the other terminal hangs for 15-20 seconds and then shows the popup "Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile.". No new tabs or windows are spawned.

- Chromium: First window is open, running a `chromium URL` command from the other terminal opens a new tab on the existing window.

- Microsoft Edge: First window is open, running a `microsoft-edge-stable URL` command from the other terminal opens a new tab on the existing window.

- Ladybird: First window is open, running `ladybird` in the other terminal opens a new ladybird window.

- Emacs/eww: First window is open, running `emacs --eval '(eww "example.com")'` on another terminal opens a new browser window.

- Netsurf: First window is open, running `netsurf URL` from the other terminal opens a new netsurf window.

- Dillo: First window is open, running `dillo URL` from the other terminal opens a new dillo window.

- Links/XLinks: First window is open, running `xlinks -G URL` from the other terminal opens a new links window.

You can see a clear pattern. Got any other browsers that refuse to run with a message like that? Or is this not a fault of Firefox, and something super extra that everything from other mainstream browsers to more obscure ones somehow handle for the user?
Wait, I'm not following. IPA gives you user mappings but kills disk or network I/O?
I'd guess a significant proportion of OSS maintainers _are_ in it for some combination of ego-trip, or a misguided belief that it will make them rich. Both outcomes may seem less likely if you're just fixing somebody else's software for free.
Do you see the main issues inherent to Lemmy as likely to be remediable?
You are right, doesn't matter much. Tried gnome prompt with empty custom prompt for gpt-4v https://dalle.party/?party=nvzzZXYs.
Then used a custom prompt to return short descriptions which resulted in https://dalle.party/?party=Qcd8ljJp

Another attempt: https://dalle.party/?party=k4eeMQ6I

Realized just now that the dropdown on top of the page shows the prompt used by GPT-4V.
Covid-19 3rd leading cause of death among Canadians in 2022
I would hope my post wasn't so unclear that a reasonable person would believe a valid answer to be "der iPhone?".
This is the example from the article, and pretty common practice for web components. As far as an IDE is concerned this is just a string of text (it doesn't know/care that it is html). This makes it more error prone as the IDE can't catch syntax errors in the html.

connectedCallback() {
this.shadow.innerHTML = `
<p>Hello from a web component!</p>
<style>
p {
color: pink;
font-weight: bold;
padding: 1rem;
border: 4px solid pink;
}
</style>
`;
}
Like the others said, Prettier isn't foundational.

That said, it brings in _much_ more value than $1.5k/mo. It has eliminated styling arguments on teams that adopt it. The amount of time saved in PRs/reduction of bikeshedding is very valuable.
I think you missed the point.

> why people use front end tech to make native apps today

Even when you have to deal with IT security losers to get apps installed, implementing it w/ web tech is extremely popular.

E.g. the #1 IDE by popularity [1] is a desktop app developed with web tech. (And yes, it was later ported to browsers, but it didn't start there.)

[1] https://survey.stackoverflow.co/2022#section-most-popular-te...
I've been using Web Components in production for years with great success.

My guiding principles:

- Avoid shadow dom unless it's a library. Stick with the light DOM and css system of your choice.

- Use lit-html or similar for rendering

- Use class properties for reactivity (add a render() call to setters, as needed)

- Ignore attributes entirely. Just use properties.

- Don't bother with composable components and slots. You generally don't need them

- Use a nice router like vaadin or ionic or similar to hoist components and support deep linking

- Let components maintain their own state. Structure the dom so that it's easy to grab state from a component with querySelector. If this doesn't work, I have a little state lib called ApplicationState[1] that works great.

- Really think about what needs to be a component vs normal html. Don't overdo it with components.

- Structure the app with high level "scene" components that map to URL deep links, and app components that you use to build the scenes. Scenes are targets of the router.

[1] https://claytongulick.github.io/applicationstate/
I suppose it's not too clear to me what you mean then, but of course this is an abstract topic so that's to be understood.

A size just by itself is meaningless, if I said I have Aleph_0 units of happiness well for all you know I could be depressed, even if I said I have 2^Aleph_0 units of happiness I could still be depressed. It's only if you can compare what those units of happiness are to things you are familiar with, like how many units of happiness is eating chocolate, or being able to rest after a hard and productive day at work, that you would be able to get a sense of how happy (or depressed) I am.

So sure, just knowing the size of the real numbers on its own without comparing it to anything doesn't change its significance in and of itself because it's meaningless. But if we could begin to identify certain sets that were smaller than the size of the reals (and larger than the naturals), and we could identify properties of these sets that gave us a sense of their expressive power, their reasoning power, etc... then we might start to appreciate just how large the real numbers are.

We know categorically that Aleph_1 is the size of the set of the first uncountable ordinal number w_1, so any ordinal less than w_1 is countable. If the size of the continuum is Aleph_1 then that would have rather unintuitive implications involving the types of functions that are possible to define and reason about along with their relationship to probabilities and randomly choosing real numbers within the interval [0, 1] depending on whether the size of the real numbers is Aleph_1 or bigger. Probably one of the more accessible arguments for why this is is linked below [1].

[1] https://en.wikipedia.org/wiki/Freiling%27s_axiom_of_symmetry
Meanwhile, Zelda 2 used a combination of whole tiles, and a single moving sprite to show a partial value for Life and Magic. In order to hide that there was a moving solid 8x8 block, they added labels to the left of the Life and Magic meter (the little "L" and "M" block), and this label was opaque, and the 8x8 block was drawn behind the background, so it would hide the moving block sprite.

Now back to Street Fighter II. That game has a big "KO" sprite in the center of the life meters, which could cover up any moving sprites if drawn at a higher priority. If the devs wanted to minimize the number of different tiles needed for a life meter, they could have also used whole tiles combined with a moving box sprite. This would require drawing two more sprites than the solution in game, but would have required only two graphics tiles rather than the 16 tiles the game uses.
ChatGPT, How Do I Survive a Nuclear Attack?
Is it just me, or is the nutrivore website unbearably slow? It's taking several seconds to render on each chunk of page scrolling, and I'm on a maxed out m2
> can we not imagine an universe that is very different from ours, that outright contradicts our logic?

Can you give an example?

If you can't, doesn't that in itself answer your question?
Pretty much just proposing giving people some options. Right now they have few.

Right now in North America on an enormous amount of routes there's pretty much no real alternative to driving or flying and on many others where a train does exist it's so poor in quality that few use it.

If rail was a real option then more people would use it, and that would be transferring people from a relatively much higher CO2 emission form of transport to a lower emission one. That's a win.

Every where I look I see data that shows that the CO2 emissions per user are dramatically lower for train than air travel.

Now clearly on some big routes flying is a must and train would be so incredibly lengthly that it would be a misery, but there's tons and tons of shorter routes where train would work really well, competing well against car/bus and air travel.

If one wanted to get aggressive about it, once the infrastructure as in place, one could do what France has done and to ban short haul flights.
I don't really do FE anymore, but I've worked in that realm long enough to see several frameworks come and go - as well as see the JS ecosystem scale far beyond the limits of its organizing principles.

In my opinion, the community is lacking foundations, structure, and principles - something that would otherwise be instilled by formal education. JS is fantastic for exploring how programming works, it makes it easy to stitch things together, and the barrier to entry is basically zero; all you need is a text editor and a browser.

The flipside is that people regularly reinvent things, same sets of ideas get formed and re-formed, fall into and out of vogue over and over again. It is true that there is great complexity to be dealt with in this domain, but it feels like whenever the current set of tools and practices matures enough to face some of the hard problems, the instinct in the community is to "start from scratch" and before long some new shiny exciting thing appears. It shows a lot of potential, it's nowhere near facing the hard problems, people jump on the bandwagon, time passes, and the new set of tools and practices arrives at precisely the same place.

Web components have been in the works for a long, long time. The inherent competition between the major frameworks divides people into camps, which doesn't help. But, seeing the slow but steady progress in the web components realm indicates to me that they're apart from the patterns I was ragging on in the previous paragraph. They increasingly seem to deliver on the promise of creating advanced building blocks - perhaps one day a developer won't have to choose between a React Table, a Vue Table, a Gobagool Table, etc, but use a plain vanilla standard issue web component table to display their CSVs.
My personal Internet connection is a bit too slow to wait for re-uploading all the data and my vserver doesn't have enough disk space to temporarily store all the data so I pretty much do everything in a streaming fashion: I use a Firefox extension that gives me the wget command (which includes cookies, etc.) when triggering a local download from Google Takeout, then I patch that command to stream to stdout, this first (tee-)pipes to a Python script that decompresses the data on the fly and dumps the hashes for each file into a log, and it also goes to "age" for encryption, and then to s3cmd for uploading the encrypted data to Wasabi.

For the comparison I pretty much only use the logged hashes which allow me to figure out if any hashes (and associated files) are missing in the new version of the backup. This isn't a perfect solution yet as a few things aren't detected. For example Google Takeout bundles mails in mbox files and I currently don't check for missing mails. It would be better to convert the mbox files to a Maildir first so that the comparison can be done on a per-mail basis.
Love it!

From the error message it seems that too many HN users are trying it out right now. I will come back later.
I work at a big org and we use Stencil to produce UI kits using web components.
In my experience and the anecdotal experience of the people in adjacent orgs that work with web components too: Its still a shit show.
I don't understand the hate for "kilometer-long" lines (say in the 120-200 char range). My screen is much wider than it is long, so having longer lines allows me to fit more code onto the screen at once (which is fantastic for readability). Also, sometimes the extra content is uninteresting. And it makes sense to hide it away where it's only sometimes seen.
I had forgotten about modem compression. Back in the BBS days when you had to upload files to get new files, you usually had a ratio (20 bytes download for every byte you uploaded). I would always use the PKZIP no compression option for the archive to upload because Z-Modem would take care of compression over the wire. So I didn't burn my daily time limit by uploading a large file and I got more credit for my download ratios.

I was a silly kid.
The biggest problem of web component is that it don't support most state injection(for things that rely on contexts, for example: tabs) and template instantiation(render function of react or scoped slot in vue for example), which literally every current popular web framework does. You may pass string or number as string to it. But anything more complicate that can't be easily serialized? Good luck.

You may add another layer of abstraction on the top of it. But that only make you another framework (like polymer) instead of actually using web components.

In other word. Web component is useful to encapsulate an 'app' (for example: a interactive map viewer that accept an address) inside another app. But is mostly useless to encapsulate anything other than a simple ui/input component. There is basically 0 functionality to inter-blend between parent and child components of different frameworks.
Yes, Prettier largely won by not having many competitors strictly focused on formatting in a simple to consume package.

I don't think many people who are serious about high "signal to noise" code formatting are supportive of the design decisions prettier makes. e.g. the staggered import lines, left-shifting and up-shifting of implementation details, not allowing trailing comments on the same line

We can have consistent formatting and also avoid tons of visual noise that prettier produces... I've wanted to build a competing solution for awhile, but never made the time for it. Perhaps Anthony's project achieves that... I'll give it a try!
This feels like an overly complex response to a statement that's intentionally simple though.

The whole point of Pollan's statement is to have simple guidelines that ignore optimizations in favor of directionally good flexibility, which makes me feel like Lustig either misses Pollan's point, or just believes in a completely different philosophy.
I was actually just looking at that after posting this (lit is new to me). That's a pretty cool solution. I'd still prefer an option to have the html in its own file, but that is just my taste. I know a lot of people feel exactly the opposite.
2 decade ago, I used to love Scheme-like languages, they seemed so elegant.

But after struggling hard trying to introduce them into companies, I gave up. In contrast, I introduced Go into 3 companies and numerous teams so far and it was so easy for it to gain adoption.
In a world where everything is procedurally generated and people’s property stolen there is no benefit of using the internet for anything else but e-commerce or porn. Perhaps a few communities here and there populated by sane people otherwise it will be filled with dubious content.
First, this will not be decided by the tingsrätt, second, the context is wider than this single issue. The “performative” is why doesn’t Tesla just sign a union agreement, that is performative.
How profitable is handing off ones token? I mean we see this with influencers as it is already. MLMs infect humans much like a virus infects computers.
Always go free and open source like Jellyfin for any long term personal consumption. Anything else can be changed and you would have to change your long term habits.
lol - my friend once marked a paper from an Indian student about ethics... they wrote that ethics should be the sole concern of the ethics department because "everyone is too busy and nobody has time to do ethics".
100 is OK. But better to wager for 80, so people complain about their preferred 120+, and ending up with an acceptable 100 as a middle ground.

On my screen with 1920x1080, 2 side-by-side panels can fit 100 chars, but only if the sidebar is hidden (project layout, list of open files, that kind of stuff).

On my laptop, 2 side-by-side files won't fit if they exceed 90 chars.

I just don't want to concede to those devs who use a single editor pane with an ultrawide monitor, and believe that everybody must work like they do.
Yeah, but if you increase the lineWidth then it will make all your lines that long, even if you don't want them to be. There is no possibility for variability of line lengths depending on the code at hand.
I think when you ask what the difference between two phrases is, people will really dig down to try and find a difference.

IMO in this context it is basically shorthand for “things I learned/lessons learned while tuning LLM…,” and either would be fine. It is sort of an informal list of stuff the author learned.

In my experience (nothing special, just another native speaker) “lessons from <event>” is the more typical American (at least) English phrase. But it is sort of close to “Lessons on.” “Lessons on” would imply more refined material that is more narrowly focused on teaching. So I wonder if the author decided they just didn’t want to worry about any confusion, or the possibility that they might misuse a phrase.
I guess that’s one way to solve the tiny screen problem.
There is no large long-term double-blind controlled study comparing a vegetarian/vegan diet to some omnivore diet - and there never will be.

The only diet studies are observational, and they are unreliable in all kinds of ways. The famous Blue Zones book has about the validity of Rich Dad Poor Dad or The Millionaire Next Door. But the book continues to sell, and at a macro level, its advice is not terrible, but it's also not "the only way."

Surprisingly (to me), there is some evidence that some people are genetically better disposed to eating a vegetarian diet than others.
Precisely. I have been told I have a knack for reading other people’s code. Turns out it was years of reverse engineering as a hobby in my youth that gave me the skills to sit down and understand someone else’s code very quickly. A hobby that gives useful real-world skills.
That’s the key problem though, in the face of alternative hypothesis they fail to even acknowledge they may be wrong. Coupled with the intense lobbying
I think it confers credibility on the topic. It is what you would expect if they actually believe it has therapeutic potential.

I would be more skeptical if they made claims about benefit but we're taking no Acton to commercialize or protect it
Probably not in the way you're thinking.

But with cloud systems you can always lose your files when a hacker gets access to your root account and holds it hostage, or you lose the phone with the 2fa secret on, or your payment doesn't go through and you miss the reminders, or your account is wrongly closed for abuse by a malfunctioning bot.
No, because they weren't right to do so.

Well, I'll soften that a bit. Not having a headphone jack is something that doesn't work well for me, personally. Bluetooth is not a good replacement for it.
Wow the empty prompt does much better than I'd have guessed
Java boilerplate is way worse AND hidden behind annotations and so many level of abstractions!
> ... but not in a specially useful way ...

It can be very useful: https://github.com/google/crfs#introducing-stargz
The reality is that as long as your style is consistent, very few people actually care what that style is.

I can imagine smaller teams/single individuals being very picky about how their code looks and there is nothing wrong with that. Once you have larger teams that becomes a waste of time since you'll likely have much larger problems to solve.
Ah, yeah I'm familiar with it - a PoW scheme, where the work is memory cell wear. I feel for anyone who missed the incredibly short period of time where bitcoin gpu mining pools were anything but distributed space heaters... but I don't see a future in trying to chase that dragon. At least it isn't a mindless hardfork cash grab, or an unintentional joke like that time that communist redditors came out with a coin that would randomly delete balances at rest.
They said things should be better than they are, not that we should go back to the 90s or even use it as inspiration.
It should put more weight on the length that the author has original authored it as. So between "always break" and "always expand" there should be an area of "leave it however it already is".
It’s a misremembering of history. The point of all the “pure functional” discussion was that rendering the UI now shouldn’t depend on how the UI was rendered earlier. The idea was to move away from the “create then update” paradigm to just “render”. React would be responsible for which elements need to be created and which can be updated in place.

To achieve that, it doesn’t matter whether the state is local to a component or global across the application.
Would your life as you know it disappear if Facebook disappeared tomorrow?

Facebook is a cancer to our society. Luckily it looks like most people moved on an now it's a ghost town.
I don't have any experience with it myself, but you can provide your ADS-B data to ADS-B exchange. https://www.adsbexchange.com/ways-to-join-the-exchange/
> Eight year olds are quite smart; he knows exactly what is going on here and finds it entertaining.

I'm betting there's more to this, subconsciously, than we know.

We instinctively ascribe agency to objects that move in a non-inertial frame. We anthropomorphize both living and non-living things. I suspect there are deep subconscious instincts being "tickled" by this application of technology. Giving it the voice of a parent is probably touching some adjacent instincts relating to parental recognition, too.

Aside: Have you talked to him about how an LLM is chaining words together through a statistical model versus actually "thinking" and understanding what it's "saying"? I recently walked my 10 y/o daughter thru a simple Markov model text generator example to give her a very basic understanding of how computers and be programmed and trained to give output that appears to be generated by a thinking process.

My sense is that lay-people believe that these LLMs really are "thinking" and I wanted to provide her with some inoculation against that perception when she inevitably runs into it.