skysight-inc/HackerNews huggingface dataset:
> validating the format of an email address

That's input validation. If your database offers an email type, use it. Otherwise, this kind of validation happens mostly in the UI (or API layer) and only lightly elsewhere.

If you're using a strongly-typed language, consider an "email" class instead of a string. You can safely pass around an "email" object and know that it's a valid email address.

> No DB validating the price of a product can't be negative

Does your database have an unsigned int type? Does it have a currency type? Use it if you can, otherwise, you'll need to enforce it in code.

Remember that you still need to validate your input! If you're relying on your database to validate your input, you'll either send arcane and cryptic errors to the user, or misinterpret unrelated database errors as user errors.

> How would you define the line between them

It's all based on what's reasonable. If I have to invent weirdo gymnastics in my database to enforce something, it's probably best to do in code.

What schemas do is provide guarantees about data that can be enforced, especially through upgrades. IE: This value isn't null, and never will be null. This object (row) always has values in columns A, B, and C. This relationship between these rows is always valid because there's a foreign key relationship. These values then get enforced through schema changes. It's harder for edge cases to sneak in. (Compared with schemaless databases, where your code will need to handle data in outdated formats, or will need lots of edge cases for missing values.)

This allows your data to be predictable, so you don't have to resort to lots of heuristics in your business logic about edge cases.

> What are your favorite readings/resoucres on this topic?

Experience. Hopefully you can discuss this with a more experienced team member.
If you are willing and able to spend an entire team for a quarter, I think you'd be better off for quite a while to just license Cloudability (now maybe Apptio). Its face value isn't "cheap", but for most companies, I think it's going to be cheaper than a team for a quarter plus the on-going maintenance of that tech.

(We're a long-time Cloudability customer; no other connection/conflict of interest here.)
I agree it's obvious that they are trying to get money from it. I still think it's valuable to have articles that point this out because it's important for people to realize that something is lost when a for-profit company takes over something previously open. In some very vague way it's like software companies (microsoft) embracing open source. We need to remember it's not altruistic and one way or another the goal is to extract money from society and so it's important to keep a close eye on them, even if they're just doing what you'd expect a company to do
I work for an education company… and an instructor said “I think that.” The teacher had her audio garble a bit when saying “think” but to a human it was pretty clear.

Otter completely messed up and transcribed it as “I Fuck That” (not kidding) within Zoom.

And that’s pretty bad when it’s a bunch of Middle Schoolers…
If you fall into a routine CICO isn't that difficult in practice. First, while sleep/stress definitely impact the equation unless you are at an unusual life crisis, the ups and downs mostly balance out over time. Second, I don't recommend counting calories, at least not in the traditional way.

Instead, eat a fairly standardized diet at least on a weekly basis, so roughly the same meals (doesn't have to be exact). Eat a quantity of food such that you neither gain nor lose weight over a period of time (a couple of weeks with daily weigh ins is sufficient to ensure a flat line on a chart). Adjust intake until the line is flat if you start seeing a trend up or down. Now, to lose weight simple subtract 500 calories per day from what you eat (if you eat packaged foods, assume an extra 20% from the calories on the label). You should now have near exactly 1 lbs. per week weight loss. The reverse also works if you want to put on some weight. I do each of these once per year as a "mini-bulk" and a "mini-cut". I track my weigh ins on my Fitbit - it is a near perfect diagonal trend line over the 2-3 month period I do this.

NOTE: It is important to weigh in daily (at same time - I recommend first thing in morning after flushing the system) precisely because your weight fluctuates on a day to day basis by 2-3lbs. It takes a few days of weigh ins to see a trend change on the graph and you need to be able to adjust your intake if you are off.
and make it seem like Firefox has less market share? sounds like a good way to kill Firefox even faster, my 2 cents.
I really enjoy browsing through other people's creative work, as in the list in this thread, and the many awesome lists on Github, but I struggle to keep track of updates to these awesome lists, so I made a tool to use git's commit logs to analyze updates to each awesome list, and eventually generate daily updates for each awesome project a static web page [0]. It's free and provides email subscriptions and RSS feeds, so I'm very comfortable using it myself, and I hope it can help people with similar needs.

[0]: https://www.trackawesomelist.com/
I am up reading this in bed. Also watching my 11 year old’s BGL slide down under 80. I’m about to go wake him and make him drink some milk.

Diabetes is a shit autoimmune disease. But the tech gives us some hope. And I treasure every day, no matter how hard, I get with my kid.

Hang in there. It gets easier to manage as they get older and more involved in their care.
https://www.pnas.org/content/102/21/7618

Thank you for reminding me of my favorite evo bio article of all time. In this particular species, females preferentially mate with the largest penis they can find, which applies strong selective pressure to hang dong. Unfortunately they're fish, so it's harder to swim if they're packing heat, making them more likely to get eaten by predators.
Show HN: Pincase – Free Pinterest Video Downloader
Ummm, I think it's probably spoiled from context and connection alone, right?
I have the same question as well. Dare say it seems to be anti-go to package such niche capabilities in the stdlib, but maybe their direction is changing?
A few hours on my bike can be 2,000-3,000 additional calories over base metabolic rate. That's not based on made-up calories but actual work from a power meter on the bike.

"You can't exercise your way out of a bad diet" - literally not true for a fuckton of endurance-sport athletes for whom the challenge is eating enough calories.

It's 100% true for people who think exercising for 30 min means license to eat whatever.

> So a good diet: takes less time than exercise, reduces calories more, and can save money

Yes, but endurance exercise over an hour or two brings its own advantages health-wise.

The real takeaway is that there are no absolutes.
I think everyone is talking past each other here. From the article:

> As the athletes’ ran more and more over weeks or months, their metabolic engines cut back elsewhere to make room for the extra exercise costs

You clearly burn extra calories when exercising, but the thesis of the article is that it doesn't matter in terms of weight loss because your body will adjust to burn the mean level of calories. The obvious exception are athletes whose energy expenditures simply can't be averaged away.

This leads to the conclusion that it's not just exercise that drives weight loss, but diet and exercise (shocking!) that makes a difference, as you have to run at a net loss over the day.

Most people who want to lose weight (aka mostly unfit/untrained) are not going to be able to exercise the amount would take to truly force a calorie deficit.
Will you email when a message is sent to my account?
> The complaints listed include numerous accounts of mistreatment, excessive force, and due process violations. They also include an alleged miscarriage by a Salvadoran woman experiencing a high risk pregnancy (see row 7 of the document), a detainee death—its cause not explained—aboard a deportation flight to Honduras (row 20), and a suicide in an Egyptian airport holding area by a deportee en route to Eritrea (row 76).

None of this is torture, it's deplorable for sure, but it's not torture.

> "For the purposes of this Convention, the term “torture” means any
act by which severe pain or suffering, whether physical or mental, is
intentionally inflicted on a person for such purposes as obtaining
from him or a third person information or a confession, punishing
him for an act he or a third person has committed or is suspected of
having committed, or intimidating or coercing him or a third person,
or for any reason based on discrimination of any kind, when such
pain or suffering is inflicted by or at the instigation of or with the
consent or acquiescence of a public official or other person acting in
an official capacity. It does not include pain or suffering arising only
from, inherent in or incidental to lawful sanctions."

From "Definition of Torture Under 18 U.S.C. §§ 2340–2340A"

The last sentence is the most important part, but the whole thing is relevant. Torture implies:

- That a public official is consenting to the infliction of pain and suffering
- The act is done to obtain information or a confession
- The act is done outside of lawful sanction

So no, none of the complaints "could fall under the definition of torture". Words with legal meaning such as torture are often thrown around to get an emotional response, but it detracts from the horror that is actual torture. Waterboarding a 16 years old Afghan kid on expectation that is working with the Talibans is torture. Using force in the context of deportation is not torture.
I admit I just skimmed the full report, so I may be missing something, but I think just looking at patents may not be a great proxy for "inventors". Not sure if it's the same in Finland, but at least in the US, patents would likely be a better proxy for "what kind of company you work for and what kind of job you have". I am the author on several patents, and to be honest I think a lot of them are semi-BS, but my company had a program to acquire patents.

Thus, I wouldn't be surprised at all that my job (software engineer at a big tech company) is correlated with familial income.
Discuss most of this with your manager (or mentor.) (Everything except the quitting part.)

Chances are, it's normal and expected.

> I'm working on a ticket that should take me a day to finish but it has taken me almost a week

20 years into my career, that also happens to me when I start a new job. You're working with an unfamiliar codebase. It takes time to learn; especially if your assumptions are different than the assumptions made in the code.
In a commodity device, I think that would make sense. A steering wheel is life critical. No system is ever fault proof, and in the case of failure, you'll definitely want a backup here, unlike in a commodity good or service where a failure doesn't matter that much.
Why are you selling an app instead of running a hedge fund if you can accurately predict stock directions?
Yeah, for a few years in my 20s I was bike commuting 24 miles/day and running 6-10 miles/day on top of that, with longer runs or hikes on the weekends.

I was in the best shape of my life, felt great and ate whatever I wanted without thinking about it. BUT I was spending 4 hours per day exercising.

Now I have a 6 week old baby and WFH... I manage a 30 minute Peloton a few times a week. Maybe. Even though I try to pay attention the pounds have crept on because there's so little margin for error on 1500 calories/day.

Calorie counting is no way to live, IMO. I miss the days of a long run and guilt-free cheese and beer after :)
I mean, yes... but at least for me exercise also makes me crave healthier foods. As a result I end up sometimes eating more volume but less calories. Like, when I'm cycling regularly it's hard not to lose weight.
On my benchmarking of some consumer HDD's, back in 2013 or so, the flush time was always what you'd expect based on the drive's RPM. I got no evidence the drive was lying to me. These were all 2.5" drives.

My understanding was, the capacitor thing on HDD's is to ensure it completely writes out a whole sector, so it passes the checksum. I only heard the flush cache thing with respect to enterprise SSD's. But I haven't been staying on top of things.
Right, the current crop of Tokamak designs getting the lion's share of funding would cost much more than 10x, per watt out, than fission, and the reactors would cost that much more to build, besides. Since fission is uncompetitive, that kind of fusion is completely impractical.

Such reactors would also quickly destroy themselves, so would have no opportunity to pay back the investment.

The only hope for useful fusion is if work on existing designs turns out to be applicable to actually practical, aneutronic forms. Current spending on those is negligible.
no, touche, i did not read any of the actual article i just looked at the pictures
Where are you getting those numbers for Everest climbers? I have a very hard time believing them.

High altitude suppresses appetite in general and your body does not get enough oxygen to meaningfully process food above about 25,000 feet. Everest summit day via the South Col starts at about that altitude.

Plus it’s freezing cold and everything takes forever to do. I don’t think there is much eating at all on Everest summit day, let alone 20,000 calories.
I hate the text editor. Sometimes, it just doesn’t work, so I don’t rely on it for advanced WYSIWYG features.

Worst of all, it will open all links in edge, unless you configure Edge to Not do it. WTF? Why is this even possible?
Software engineers are a foolhardy bunch (I say this as a developer myself), but the one place every dev knows they're beat is law. If you intend to make a product like this, you're likely going to spend more time foolproofing your liability clause than you will spend writing the code itself.
I would really like to see raw data because it feels like the story being told can’t possibly be complete.

This in particular feels really hand wavy: “After weeks of training, they barely burned more energy per day when they were running 40 kilometers per week than before they started to train.”

What does “barely” mean? 40km/week isn’t that much in terms of calorie burn. The 100 calories/mile rule of thumb says this would imply ~350 calories/day. And this article says a woman would have a daily calorie expenditure of 2400 already (seems high, though). So this is only 15%. But anyway, this drops after adaptation seemingly, so does “barely more” mean 50 calories/day? Or does it mean 300? Because those are very different. And to where is the difference attributable? Because someone going from sedentary to trained runner is going to get a lot more efficient at running. “Less energy on inflammation” is really hard to swallow as the primary source of adaptation, especially when this is presented as conjecture.
I wouldn't necessarily advise someone to diet without starting exercise. Exercise encourages healthier eating in a few physical ways, and for many the two are part of a mental lifestyle self-image which admittedly shouldn't exist but can still motivate.

I'm also skeptical of that balance theory. A exercised body would produce more reliable eating and satiation signals to aid in balance, if 'balance' is even how the new diet is calibrated.
I want you to sign up! :)
In a word, no.

Fission is already not competitive, so a technology much more expensive to build and operate is even less so. In ten years, solar and wind will be even cheaper than today, and will be supplying most of our energy needs.
Yep - working on notifications soon! (configurable, so you can opt-out and in)
We only ever see him question a single suspect, but he's constantly alluding to things he's done offscreen
Thanks for the feedback! Yes definitely, will fix and implement those immediately!
They hire. I interviewed for a role once, they were looking for C++ expertise.
If being able to transact with your peers is a fundamental right, what do you do when people sit in trucks and prevent you from doing exactly that?
YMMV, but I'm absolutely not giving my phone number to a service of dubious providence because my employer told me to. I'd suggest federated login ASAP.
A lot of an initial 10 pounds of weight loss can be dehydration and less food in the process of digestion.
https://www.spacex.com/careers/

Plenty of places for SWE - embedded, enterprise software, flight software, etc. No prior knowledge on rockets needed.
> When most people think about exercise for weight loss, they imagine long exhausting sessions on the treadmill, dripping with sweat

This is a major education/communication issue. When I switched to weightlifting, I started seeing rapid and significant results. And I don't even really sweat from it (except on leg day)
Yes. My tips for this

* Say yes first. Acknowledge everything and say what you agree with.

* Use the phrase "tell me more." Use this to get context in a nonconfrontational way (as opposed to "why" which can get people in defensive mode).

* Avoid using "but". People don't like to hear it and it makes them forget the past before it. Everytime you want to use but, see if you can use "and" or "at the same time", or nothing, and almost always the result is better.
Of course, my examples run counter to the "Hindu exceptionalism" idea you have been pushing. Great to see confirmation bias in action.

Nawab == Muslim. Hence must be a terrible person. I understand that sentiment, it's practically a religious doctrine amongst Indian right wingers.
maybe makes it credibly too early, but not uncredible
Jack Dorsey – TechCrunch Real-Time Stream Crunchup – 2009
A young Jack Dorsey
Looks at wahoo kickr in corner

Hello old friend, we meet again.
That’s more than fine. But banks don’t de-platform because they personally disagree with their views. They do so because of government pressure, regulation, and compliance.

I guarantee you there’s a banker in the world somewhere willing to take your money no matter how heinous your views are. It’s the regulators that are the problem.
I would add that taxes are now a higher proportion of fuel costs - and will probably continue to become so as more carbon and emissions taxes are passed. Of course, this is assuming oil prices don't go parabolic, which they may given our self-destructive energy policies.

Wikimedia has an awesome chart with 2022 data for each US state's tax burden on gas prices for example: https://upload.wikimedia.org/wikipedia/commons/e/e9/Gasoline...
Nothing. Anything else is a mistake.
"much faster" is ambiguous here. Ride 150 miles a day every day for a week, don't over-eat, and you will lose much more weight than you ever could from HIIT. On the other hand, that's a lot of hours, and HIIT will easily win in terms of weight-loss per unit time.
If this is a general Teams gripe session now how about there not being any debounce on mobile notifications?

I have many colleagues who for some infuriating reason send small sentences one after another rapid fire. I get a vibration on my watch for Every. Single. Message. It’s incredibly stressful and makes me think something is on fire, especially if I accidentally turn off personal focus after hours and suddenly get a deluge of messages. I can’t turn off notifications entirely because they aren’t always reliable on the desktop client.

Adding a debounce to notifications was a very popular suggestion on Microsoft user voice but I can’t find it on the site that replaced user voice.
> RP1 deposits too much coke in the engines to allow reuse

Falcon 9's Merlin engines use RP1 and are re-used.
I've read a decent number of books about climbing big peaks. In all of them they said they were so nauseous on summit day from being in the death zone, they could barely force down a protein bar.
It also stomps on the .mimeapps.list file every time it starts (in Linux) up even if its already in the list. Annoying for me because mine is a symlink into the read only nix store in NixOS.
A situation where the corporation is engaged in embarrassing or illegal shit and they're using Slack so they can do all the above-board, non-embarassing stuff via email that would show up in discovery.

5 day retention is so wildly impractical, it's a tacit admission the corp is up to something. Gives legal time to drag anything out in court until it's all gone. By the time the other party learns they have the 5-day retention, it's too late.
Microsoft granted patent for rANS - used e.g. by JPEG XL
All the lawyers I know use Word with change tracking turned on.
Recently granted patent: https://patents.google.com/patent/US11234023B2/en

Describing rANS used e.g. in JPEG XL: https://en.wikipedia.org/wiki/Asymmetric_numeral_systems

And many others: https://encode.su/threads/2078-List-of-Asymmetric-Numeral-Sy...
So the 3 and Y don't have the yoke, and not one Model X with the yoke has been delivered, but this...

> Tesla Inc’s new “yoke” steering wheel installed in Model S sedans and Model X sport utility vehicles is so difficult to use that it dropped the most valuable automaker’s position in the Consumer Reports annual car brand rankings by seven spots to 23rd place - below average, the independent testing organization said on Thursday.
I think they shut down that app.
Higher fuel and energy costs are some of the worst kind of regressive taxes, because it’s a tax you can’t even avoid.

Energy is the fundamental underpinning of modern society. Today a large part of that energy comes from oil, but not really for much longer.

So maybe better late than never?
In the USA, Mazda is at mazdausa.com, not mazda.com. There are eight cars on the front page.
I can gain or lose on the order of 15lbs in a single day when switching to/from a ketogenic diet due to water retention.
Interesting history Scott. Make a lot of sense.
I like how Lumen's original system had built in spaced repetition while knowing that some bits and bobs of data would be lost.
An interesting technical problem would be figuring a way to obsfucate audio such that it could be transcribed, but the transcribed text isn’t actually really what was said.

Then you could take the text and put it through the same process that distorted the audio and get the original text.
Look, it's just logic. There's a couple pages in cache. It has to flush them. Finding them and doing that doesn't take 10MB/s of memory traffic and 20ms unless you're doing something stupid. If it were a hardware problem with the underlying storage it wouldn't be eating DRAM bandwidth. The fact that it's doing that means it's doing something with the data in the DRAM carveout (cache) which is much larger/more complicated than what a good data structure would require to find the data to flush. The bandwidth should be .3MB/s plus a negligible bit of overhead for the data structure parts, which is the bandwidth of the data being written (and what you get if you do normal writes without flushing at the same rate). Anything above 1MB/s is suspicious, nevermind 10MB/s.
Hey Jeremy, I was hoping to send you an email based on the email in your profile (jeremy@ideal.com) and received an "address not found". Would there be a better way to reach you?
I don't think we can really say for sure why any business does anything, only that they should be allowed to do what they decide, with some exceptions.
> exercise suppresses my appetite to some extent

This is my experience as well. I also had a trainer confirm this.

I used to eat before and after a workout because I bought into the idea of the body needing fuel to power the workout and fuel to recover. I ended up eating when I wasn’t hungry and feeling heavy or sluggish.

She said the appetite suppression after a workout could last 30-120min and to only eat when I felt hungry. I felt much better after adjusting my eating habits.