skysight-inc/HackerNews huggingface dataset:
For me I mostly just try to log the high macro and/or calorie items. Like if I make a Caesar dressing I’m mostly counting the oil and if I’m being really meticulous I’ll measure the Parmesan and anchovy content. But I’ll ignore the 2tbsp lemon juice, garlic, mustard, etc. since it’s counting so little towards the totals I care about.

If you’re trying to measure your vitamin intake this may not work for you, though.
A good retrospect on how Pioneer got here [0] and a 'feature' overview of CDJs pre/post buyout[1].

[0]: https://youtu.be/LcbKcmfFCc4

[1]: https://youtu.be/-4DZ47HCYWA
Yes, but then those languages usually implement only unchecked exception, as propagating error types up the call tree is seen as annoying. And then, because there are good reasons you may want to have typed error values (instead of just "any"), there is now pressure to use result types (aka. "expected", "maybe") instead - turning your return type Foo into Result<Foo, ErrorType>.

And all that it does is making you spell out the entire exception handling mechanism explicitly in your code - not just propagating the types up the call tree, but also making every function explicitly wrapping, unwrapping and branching on Result types. The latter is so annoying that people invent new syntax to hide it - like tacking ? at the end of the function, or whatever.

This becomes even worse than checked exception, but it's apparently what you're supposed to be doing these days, so ¯\_(ツ)_/¯.
I find sleep tracking to be really useful.

One thing that surprised me has been seeing the affects of either alcohol or caffeine on the type and quality of the sleep I get.

Even if the absolute numbers aren't 100% accurate the watch definitely spots when I've had even 1 beer during the evening.

I also find heart rate variability interesting. I can't put much spin on the absolute numbers but after either heavy exercise or if I've been unwell I can see the variability rate really drop.
Why would that be a problem for reporting relative results if everyone is under-reporting things they're embarrassed about and over-reporting the opposite?
Booze, cigarettes, gas (and car ownership costs) and all-night diners used to be affordable across the US.

These days, what's cheap? Internet access, social media, music/podcast/video services, certain games, fast fashion hauls.

An actual night out with friends these days? Not cheap at all. It's a rational economic decision.
You reject the notion that people making up a corporation can control it but then expect people from outside it to be able to do that?

At the very leaset everyone inside the coporation can choose to quit. Yes that may not be an easy choice but that doesn't mean there isn't a choice. More often than not the choice is not nearly as costly as people want to pretend. And yes we should hold individuals accountable for making immoral choices just like "I was just following orders" should never be a valid excuse.
(this tip works with finances too)

You can give yourself an ability akin to time travel by writing things down first.

If I write down the calories afterwards, I get the "oh, I shouldn't have done that" feeling at times. I'd like a little time travel button that takes me back to before I did, and let me adjust my behaviour and run through the situation again. If I write it down first I get to have the "oh, that's not worth it" feeling up front and decide to do something else.

This made a big difference for me, both lowering what I was eating and making me happier about the choices I made.
Why would that be a problem for reporting relative results if the entire population is doing that?

If everyone is under-reporting their alcohol consumption, that seems fine. The absolute numbers will be way off, the relative numbers to their peers won't.
I don't like Elon. But I think it's pretty clear he was awkward (same as the weird jump he did months ago)
I've previously had a 70B Q2 wedged into a 4090. Not much space for context but it runs...
Bruh I've seen videos of people being arrested for merely insulting other people in Britain, or for carrying simple knives. Perhaps it is you that has very wrong ideas about the degree of freedom you actually have in Britain.
Tracking and weighing everything is a massive waste of time and energy. There are no obese animals (humans included) in the wild. Just stop eating the wrong things.

I maintain a muscular 225 by eating dairy, eggs, and meat. If I want to drop down to 215, I drop dairy.
I never knew how easy it was to setup role assuming for AWS/GHA. It’s much easier than managing the access/secret.

I wrote a little about it in this blog post: https://joshstrange.com/2024/04/26/nightly-postgres-backups-...
Ask HN: Organize local communities without Facebook?
I want to move our local communities off Facebook and onto our own platform. Is there a off-the-shelf solution or any collaborators I can join to move something along?

EDIT: I live in a more rural community (moved from a big city). We have 5-6 small (~50k people) towns, all well connected. Everything happens on Facebook. I would like to move to a different platforms. Plus points for self-hosted, federated.
While far from being a potential silver bullet, I do wonder if continuous glucose monitoring could help with this. Your food log shows you didn't eat anything between noon and six in the evening but the glucose monitor shows a spike at 2PM? Your diet app could ask if you forgot to log something around that time. Maybe you want for a long walk aside while it was cold and that was the cause. Unless the question is asked, the tracking data for that time period will be questionable.
Mentioned this to people at lunch and it's already been "corrected".
I bought myself a food weight to have at the kitchen but just like you I struggled with all the minor things that gets added in rapid succession. The trick is to get good enough at estimating within reason, and focus on one aspect such as calories.

Figure out what one table spoon of oil contains, and when you make a sauce use a table spoon while pouring to count roughly how much oil you are putting in.

For shared meals, or self-restricted portions, I just add the entire meal upfront to my book-keeping, and then after are are done eating I subtract what I didn't eat.

You don't need to keep track of the family history of your cucumbers.
Fwiw this is kinda what I meant with "for the EU to get their shit together"
Unfortunately, the company preferred to hire experienced ex-FAANG managers for those roles.
This is why sleep studies are conducted in clinics, not left to patients to self-report. they want accurate data? They will need to conduct a real study, portion the meals out themselves, give people a schedule.
Until they track absolutely everything including each trial subject microbiome, hormone profile, &co over time, I still feel it just won't cut it.

Plus it doesn't even matter what is true for the statistical average, given the infinite amount of variables and outcomes one glass of wine might be statistically beneficial but absolutely terrible for your own health because you have one specific gene combination or one specific microbiome mix. Which means you'd have to go through the same regimen of analysing and tracking all the parameters for yourself for it to be applicable
I mean yeah kinda. But the skills for a startup map poorly to big companies.

Startup: you look at something, plan, execute, learn skills as you go. Big company: here is x, do as I say. You must use these things from these teams, don't make it yourself.

Coping with the step down in responsibility is hard. Going from owning the entire stack to not even having a real decision in planning is very hard to deal with, especially if you've done that $thing before, and have to mount effectively an election campaign to change direction.
First thanks for mentioning tach, I wished this tool existed for a long time and I'm happy to give in a try in the following days!

For typechecker, I also vouch for Pyright which is what we use for all our django backends at work.

Just be aware that you will have hard time to typecheck part of your code where you rely heavily on django's magic (magic strings, auto-generated properties/methods, etc...).

In these cases, it's sometimes better to avoid these features entirely or accept that some part of your code will not be typechecked.
Out of curiosity, which variant did you run?
I had recently run into an embedded problem where when switching the order of two functions in the source code, one of them would refuse to work. I tried a number of things without identifying the real error, and finally had to add a comment warning any later parties not to do this.
I even checked the assembly and they seem to be consistent. But when I upload to firmware, the error keeps coming back over and over again.
Scaling up a business, for one. By the time "scaling up" is actually computationally relevant, the founders are no longer coding.

Also general coding practices for large teams or multiple intersecting teams.
> EDIT: why is this down voted?

Because you're posting pure flamebait and saying Jews control everything isn't even novel antisemitism. Jewish space lasers, not _that's_ something at least interesting.
I would assume that those side-effects aren't quite as bad, or else why are Denmark and the UK allowing sales without any prescription or doctor's visit? Someone from France could legally drive up to Denmark, buy the stuff, and drive back home. (about 9 hours per direction)
In 2018 the UK had not officially completed the process of leaving, so I found a spare room in Berlin, got on a plane and flew, did the initial paperwork for registering with the various things that need to be registered in Germany, and went job hunting.

Just before the actual cut-off date for customs controls, I had the stuff that had been in storage (loft of family house) shipped over.
Ultimately I charge my phone (almost) every day, so I'm sure I could charge my watch every day as well. But it's still another habit I have to build, another way I have to adjust my routine to accommodate the things that are supposed to make my life easier.

The other thing is, battery life degrades over time, which is relevant if you don't want to be buying new devices every couple of years. When I got my Garmin it probably held a charge for 6-7 days. After four years, that is probably closer to 4 days, which is still pretty good. If less than a day is the starting point, I can imagine that after 3+ years the battery life will be poor enough that you regularly end up wearing a paperweight on your wrist for some portion of the day.
Macros are pretty stable though. A week old veggie has less vitamins than a fresh one, but the carbs are pretty unchanged. Trying to measure and weigh for micro nutrients seems doomed though.

As a way of life, weighing and counting macros also seems pretty doomed to because it's just so much work, but it's very doable for a few days to realign your view of what an appropriate amount of food is, if you're diligent and mindful enough to not have a soda or a snack without thinking
I'm not convinced calorimetry is particularly useful for any nuanced diet planning.

We can't eat wood (or coal) but they're very calorific when measured via bomb calorimetry.
They are arguing that doing something that is illegal if being done by humans is ok because it is on computers running a blockchain.

You are arguing that doing something that is legal if being done by humans is not ok if it is done on computers running an LLM.
Another way to look at it is that tracking what you eat is very difficult. Currently trying to lose a few pounds and doing calorie tracking. Practically carry a scale and a calorie tracking app with me. About once a day there's still some "estimation" involved due to the fact that all the ingredients are mixed together.
And even more: Every object you can see with the naked eye in the sky is within our milky way, except for the Andromeda galaxy and a handful of other galayies. If you know exactly where to look, you can see it as a little cloud with the naked eye.

https://en.wikipedia.org/wiki/List_of_galaxies#Naked-eye_gal...
Running fine-tuned models on Workers AI with LoRAs
There is less than zero commonality between the situation today and those Swedish peasants. "Ordinary people" in the US are nowhere near desperate enough to sacrifice themselves in a rebellion - and who exactly would they even rebel against, much less how would they rebel? Pile into a bunch of minivans and storm the local State Farm branch office? Maybe try to capture the local police precinct a-la John Rambo?
> But if you are using a (costly) managed service it's because you don't want the hurdle of managing the service.

On the other hand part of the trade offs of using such services is that you have no control of when they will become unavailable. Its not just normal, its expected.
Why have you read The Great Gatsby but not The Ex-Wife?
thats a problem for research that relies on food questionaires and thats been known for a while, and probably why there's even a thing called 'the french paradox' and so on.

but i get it

it's expensive to do properly, and so its not really done that often, and when it happens there's usually only a few participants.
There's a difference: I wear my watch, and I expect it to always work, and be accessible even at night
adjusting seasoning/tasting as you go seems like it would complicate matters too, especially if you're in the heat of it and don't have time to stop and weigh that extra pinch of salt etc
Musk isn't satisfied with being an oligarch. He wants to be a dictator.
> This is why calorie counting is ballparking to get us a general idea, and not a precise science.

This is true, because of "caloric availability".[1] If you took that into account, you would have a better idea of how many calories your body is absorbing.

[1]: https://x.com/gilesyeo/status/1084463469997555717
All of those headlines are based on meta-studies putting together 100 junk studies, based on bad data, which then informs actual medicine and health trends and American X Association and...

For your specific example - "morning coffee" could be anything from plain espresso shot to full 600+ calorie starbucks "coffee" but the meta-study-machine will lump them together.

It's kind of like feeding all of reddit's comments into chatgpt, asking it about stuff, and trusting its answers at a society-level with your health on the line.
Often much of such 'change' in similar considerations comes from yourself – you are older, maybe more risk averse, and hence much more biased in your assessment of the landscape.
It is visible to the naked eye in good locations and conditions, actually.
This really just goes back to the fact that it's a private net work and they can do what they want. Even if it is censored, what can you do about?
For vitamins are probably easier to start in the other end and have a blood test to check how you're doing. I have no idea if that would involve selling your first born in the US though
Seems like this might be the same as the current popular disdain for experts and being educated.
That's really key. I've had great success with calorie tracking, but the first few weeks always sucks until I have my regulars figured out, then it becomes a lot easier. Afterwards, it's just a matter of repetition and measuring.
Improving Code Safety in C++26: Managers and Dangling References
I think you're confusing soft power with hard power.
Impresive that xwax still gets updated.
Std: Format Extension
Sure it's mangled, but it's clearly a dash (–) and not a minus (-).
In React animations shouldn't run through reconciler, variables for JS animation should use `refs` which are mutable variables outside of React state. React supported `refs` for cases like this long before hooks were introduced.
I've done that for weight loss, so I focussed on calories only. That was pretty easy:

- while cooking, you weigh every ingredient. Either I just take photos of the scale with my phone, or I write it on a sheet of paper.

- when cooking is done, you weigh the total food (easiest if you know the weight of your pots)

- when eating, you weigh your portions

After some time, you realise that you need to be precise for some things (oil, butter) but can just guess or ignore some things (eg. onions and miso have so little calories that you really don't need to weigh them).

If it's a dish like Lasagna, you don't even need to weigh it at the end, just estimate what fraction of the dish your serving is.
> why in the hell are “magnifier” and “scan + ocr document to pdf” not in the camera app?

Because a lot of people intuitively think a camera is different to a magnifying glass or a scanner.
Can't this be solved with camera plus AI? I'd be surprised if some startup isn't already working on it.
Mastodon is federated, like email so censorship is more difficult as you can switch servers.
> If you join early, got plenty of stock options and the startup turns into a unicorn, those millions are totally possible.

lets take this bit by bit.

First, you need to have a decent % of the company. At each raise your share of the company will dilute. So you might have 1% at join, but by series d its been diluted in % as well as seniority.

You reach unicorn status,but the company isn't making money. So it might take on debt.

Eventually you then IPO. You either have your options converted to real stock (for a fee) and a covenant saying that if you leave before x, you'll have to hand back those shares. or if you are lucky you might be able to sell after say 6 months (super rare)

so after n years, you are able to sell your 10k in ordinary shares.

But in 2024 there were 21 IPOs. The chances of IPO are vanishingly small.
There is no problem with dietary research. The 'problem' is by design.

Both people doing the research and people funding the research know very well that what the flaw of this approach is, but just chose to do the shoddy job that they do because it brings in money. If it's not by design then there is a worse conclusion - the researchers/funders are incompetent. It's most likely a mix of incompetence/corruption.
No, individual assessment can fix that.

Just change default NO to default YES, BUT..
Well, by weighing and logging everything. You are correct that it takes a lot longer when you do that. That's the cost of keeping track of your caloric intake. I also do not account for any nutrient loss or divergence from different cooking times, leftovers, or from different species.

I only weigh everything I eat when I am actively trying to lose weight, however, and when I am doing so I deliberately restrict my diet to meals where I won't waste a lot of time weighing everything. If I'm trying to maintain or gain weight, I don't really bother with it.
How do you calculate calories?
Lock is has been a problem for a long time, but I think the lock in is stronger. You have dependencies between multiple systems, dependencies between systems, data that is no longer stored locally on machines you control, etc.
Show HN: I Built a QA Agent to Detect Broken Web App Flows – E2E Test/Regression
Hi everyone!

I’m Jose, the solo founder of AlertDown, an automated user flow monitoring tool for web apps. It notifies you when something breaks—before your users do.

Imagine end-to-end tests with real-time monitoring, catching regressions and silent failures without:

• Writing a single line of code
• Installing any dependencies

Just add your URL, and AlertDown will:
1. Extract all possible user actions (clicks, inputs, dropdowns, etc.)
2. Automatically test each flow, branching out dynamically
3. Detect silent issues like:

• Missing dropdowns
• Unresponsive buttons
• Third-party API failures

Unlike tools like Sentry or Datadog, these errors often don’t show up as obvious failures, which can lead to lost revenue.

Why I built this:

While working at a cash-constrained startup (not mine), we lost $1,347 in revenue due to a misconfigured feature flag at step 7 of our onboarding. We didn’t realize it until 3 days later—after a user reported it. :(

I’ve seen this issue repeatedly over the years:

• “Non-breaking” code silently causing regressions
• Third-party services failing unexpectedly
• Testing fatigue—running the same flows over and over manually

I thought an automated solution like this wasn’t possible, but after an initial POC and 5 months of work, it’s finally live and working!

Tech Stack:
• Remix, TypeScript, Vite
• Supabase
• Docker on Google Cloud Run & Compute Engine
Temporal.io for orchestration

What’s Next:

I’d love your feedback and ideas as I continue improving:
• Handling login screens
• Slack integrations for alerts
• Custom viewport testing

Try it out now (for free)!
I'm looking for some early adopters that would like to pilot the product.

You can access without paying (just head to the login page)—it’s currently in public testing!

Looking forward to your thoughts and feedback.

P.S:
And if you are part of a company or building your SaaS, I want to work close with you to craft a unique experience.
I dislike the incorrect usage of "prehistoric". The Roman-era is not prehistoric.
My preferred alarm clock is the vibration from my fitness band. I wanted something extremely light with a long battery.
Unfortunately, no modern fitness bands target this functionality. The vibration is weak, band is heavier, and the use large display. The best ones I used are probably 6-10 years old now.
Very nifty idea! And cute, simple visuals
The Hunt for Error -22
I am very diligent, and the truth is that it is hard and it changes how you eat to be more countable. On a cut, it matters more. On maintenance, it matters less.

But most of it is a guessing game and making an assumption that it will all even out later. Ignore spices - you can assume 25 calories a day and it’ll still be too much.

Be diligent about oils. 9 calories a gram bites you quickly.

But ultimately, if you miss 100 calories a day, and are in a 500 calorie deficit recorded, you are still going to lose .8 pounds a week. And if that is consistent, adjust your portions and be fine with how you record.

And that’s the key - we know nutrition is variable. You won’t get it perfect. You just have to adjust for the imperfections.
As a veteran of a large scala project (which was re-written in go, so I'm not unbiased), no. I was generally not happy.

This was scala 2, so implicit resolution lookup was a big chunk of the problem. There's nothing at the call site that tells you what is happening. But even when it wasn't hidden in a companion object somewhere, it was still difficult because every import change had to be scrutinized as it could cause large changes in behavior (this caused a non-zero number of production issues).

They work well for anything you would use environment variables for, but a chunk of the ecosystem likes to use them for handlers (the signature being a Functor generally), which was painful
> "morning coffee" could be anything from plain espresso shot to full 600+ calorie starbucks "coffee" but the meta-study-machine will lump them together.

You're inadvertently proving my point, though.

If morning caffeine is correlated with longevity, regardless of the vehicle/extra sugar/etc and controlling for the easy usual circumstances like income, that's pretty useful information!
It's really just focused on a keto diet, but using the app at https://www.carbmanager.com you can look up low-carb foods really well and enter units in all kinds of ways. I know someone who successfully used it for about 2 months a while ago, but then they went off keto and the app DB didn't have many non-carb heavy foods.
Ideally we should find where in the brain is the calorie counter and just expose its value through an endpoint and have an app to call it.
Same on the continent. They were a dutch company, so i guess they didnt have time to really expand much in the US until they got killed by smartphones.