I sometimes admin. But usually not.

  • 0 Posts
  • 12 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle

  • The FDA regulation on Net Weight is found in 21 CFR 101.105. In this regulation FDA makes allowance for reasonable variations caused by loss or gain of moisture during the course of good distribution practice or by unavoidable deviations in good manufacturing practice. FDA states that variations from the stated quantity of contents should not be unreasonably large.

    While FDA does not provide a specific allowable tolerance for Net Weight, this matter could come under FTC jurisdiction. FTC has proposed regulations that would unify USDA and FDA Net Contents labeling and incorporate information found in the National Institute of Standards & Technology (NIST) Handbook 133.

    NIST Handbook 133 specifies that the average net quantity of contents in a lot must at least equal the net quantity declared on the label. Plus or minus deviation is permitted when caused by unavoidable variation in weighing and measuring that occur in good manufacturing practice. The maximum allowable variance for a package with a net weight declaration of 5 oz is 5/16 oz. Packages under-filled by more than this amount are considered non-compliant.

    http://www.foodconsulting.com/q&a.htm



  • Depending on whether this code is in a hotpath (and considering how “elementary” it is, I figure that’s a possibility), this could very well be a significant speed improvement.

    Though I’d say that only excuses it if it’s truly an elementary function (and not one line as part of a larger function), as otherwise it’s unreadable garbage. But on its own it:

    • has a clear purpose
    • (presumably) isn’t reimplementing functionality
    • is easily tested
    • can be modified with no side effects (besides breaking your calendar, but that’s beside the point)


  • To add onto this:

    Home Assistant isn’t “yet another” service. It’s not trying to do vendor lock in: you can think of Home Assistant kinda like a “glue” framework.

    It’s meant to let you systemically attach devices/software across any number of mediums, and pre-existing services, and let them play nice.

    So if you’ve already gone and set up your Google Home, or Alexa, or Apple Homekit, you don’t have to abandon them to use Home Assistant.

    Sometimes you can’t even get away from it: the thermostat that came with our rental basically only has a useful Samsung Smartthings integration, but we can still use it with Home Assistant.