91 Matching Annotations
  1. Feb 2024
  2. Nov 2023
  3. Sep 2023
    1. It seems that the method is a direct equivalent of a.fdiv(b).ceil, and as such, annoyingly unnecessary, but fdiv, due to floating point imprecision, might produce surprising results in edge cases
    1. As "module" is more generic concept than "class", the name misleadingly implies that either this method doesn't returns refined modules, or modules can't be refined. This is obviously not true and trivially disproved: module Refs refine Enumerable do def foo = puts 'foo' end end Refs.refinements[0].refined_class #=> Enumerable. Which is, well, not a class. # The refinement is usable, so it is not a mute concept: using Refs [1, 2, 3].foo # prints "foo" successfully I believe we refer to "modules" when some feature applies to modules and classes. Unless there is some deeper consideration for the current naming (I don't see justification in #12737, but I might miss something), the method should be renamed or aliased.
  4. Aug 2023
  5. May 2023
  6. Dec 2021
  7. Sep 2021
    1. All individual parameters (Items 1 to 8) were also significantly improved from baseline after 6 weeks of IQP-AO-101 intake. Analysis of variance with baseline values as covariates showed statistically significant improvements across all individual parameters for IQP-AO-101 when compared to placebo.

      That's quite impressive. It's worth noting that benefits accrued throughout the entire study duration. There's likely further benefits over longer durations. I take the benefit to be from antioxidants.

    1. After 30 days, PBB improved diary sleep quality (p = 0.008) and reduced insomnia severity (p = 0.044) when compared to placebo.

      This was achieved by a single size 0 capsule. The benefits would likely be proportionally greater with higher doses. Though, there is probably a cap depending on one's starting antioxidant status. I take it to be antioxidants that are providing the benefit.

  8. Aug 2021
    1. In both healthy and insomnia subjects, there was a significant improvement in the sleep parameters in the Ashwagandha root extract supplemented group. The improvement was found more significant in insomnia subjects than healthy subjects.

      Benefits accrued throughout the 8 weeks. I recall reading on Longecity forum that ashwagandha takes a month for benefits to kick in. This study demonstrates that benefits continue to increase over two months. I suspect they continue even further than that.

      Interestingly, this is pretty similar to the two placebo controlled studies on antioxidants for sleep. Thus, I wonder of the benefits of ashwaganha extract are largely antioxidant capacity. This would be a bit surprising because the ORAC of dried ashwaganda is just slightly above raw pinto beans. Based on the recommended doses, the extract isn't vastly more potent than the whole root. Though, this comment saying that the Withanolide/Withaferin A (edit: withaferin A is purportedly cytotoxic) reside mostly in the leaves has greatly confused me. Either the extract has more antioxidant activity than I realize (directly or indirectly), or the benefits come primarily from the purported mechanisms of ashwagandha (which include cortisol reduction and GABAergic activity). Edit: the full text mentions a 15 to 1 extract ratio, which is enough to put the antioxidant mechanism back on the table. It's probably a partial explanation, but after seeing the full text I think the benefits are too great to be simply from antioxidants.

      I see no mention of the time of day of administration. I'm assuming it was in the morning, which contrasts with the near bedtime dosing in the antioxidant studies. If I later find out that antioxidants in the morning don't help with sleep, then that will suggest ashwagandha works by other mechanisms. However, I expect antioxidants at any time of day help with sleep. Nonetheless, I'm not discounting that ashwagandha may work by other mechanisms.

    1. Conclusions: Chronic vitamin E administration improves the ratio of cardiac sympathetic to parasympathetic tone in patients with type 2 diabetes. Such an effect might be mediated by a decline in oxidative stress.

      This is plausibly the reason why antioxidants enhance sleep. Though it is likely that there are other mechanisms as well, such as reduced neuroinflammation. Come to think of it, given that ME/CFS appears to be caused by high sympathetic tone during sleep, antioxidants are the perfect treatment. Antioxidants are proven in placebo-controlled trials to help with sleep in healthy subjects and insomniacs alike. I doubt that antioxidants can cure ME/CFS, but I'm confident they will help.

    1. ConclusionContrary to the existing literature, shifting dinner timing from 5 hours before sleep to 1 hour before sleep in healthy volunteers did not result in significant adverse changes in overnight sleep architecture. In fact, LD was associated with deeper sleep in the beginning of the night and lighter sleep in the latter part of the night in healthy volunteers. This novel manifestation of postprandial hypersomnia may have therapeutic potential in patients with sleep disorders.

      This aligns with intuition. However, they only tested a single night in each condition. The harm of eating at night may be a zeitgeber effect, taking multiple days to accumulate.

      These results bring into question advice about avoiding food at night. Food quality likely plays a critical role. It remains unclear whether eating before bed is advisable, but this data gives reason to at least avoid making recommendations against it.

    1. The lower the level of selenium in the diet the more reports of anxiety, depression, and tiredness, decreased following 5 weeks of selenium therapy.

      Though the effect was stronger in those with lower intake, the effects on mood in those with higher intake were still quite substantial, (full text). That is to say, both groups benefited. Selenium improved anxiety only in the low intake group, (full text).

      Interestingly, the high and low intake groups had the same baseline scores. That is to say, it's not that selenium brought the low intake group up to normal, but rather that they were lifted above the high intake group. It's possible that they had adapted to their low intake, be it psychological or physiological adaptation. I recall a similar effect with creatine and cognitive performance in vegetarians.

      This raises the question: does the benefit disappear over time as one adapts to their new selenium levels? Perhaps, but I find it more likely that the benefit drops only slightly. That is, I think what may be occurring is a a positive feedback loop where better mood makes you more optimistic, thus improving your mood; I expect this psychological mechanism to fade, leaving the biological component intact.

      Of course, there is the possibility that this is a statistical fluke. Nonetheless, I'd expect the above mechanism to occur in general. If I learn more about statistics I could probably run a p-value test.

    1. ResultsImprovement (decline IRLS score >10) was significantly higher in selenium (50 and 200 μg) than placebo group.

      Not only was is significant, but it was impressive! The 200 μg dose cut the score over 50%, compared to 20-22% reductions in the placebo. Everyone with RLS should be given selenium.

      However, I disagree with the authors that this should be a replacement. Multiple treatments are likely necessary to achieve adequate relief.

  9. Jun 2021
  10. May 2021
  11. Apr 2021
    1. I can’t say Incredible Mandy is a bad game per se, but it is underwhelming and less than the sum of its parts
    2. nothing about the game is really offensive, but there’s just no hook that managed to keep me invested up to the end.
  12. Mar 2021
  13. Feb 2021
  14. Jan 2021
    1. The debate about whether a button or link should be used to download a file is a bit silly, as the whole purpose of a link has always been to download content. HTML is a file, and like all other files, it needs to be retrieved from a server and downloaded before it can be presented to a user. The difference between a Photoshop file, HTML, and other understood media files, is that a browser automatically displays the latter two. If one were to link to a Photoshop .psd file, the browser would initiate a document change to render the file, likely be all like, “lol wut?” and then just initiate the OS download prompt. The confusion seems to come from developers getting super literal with the “links go places, buttons perform actions.” Yes, that is true, but links don’t actually go anywhere. They retrieve information and download it. Buttons perform actions, but they don’t inherently “get” documents. While they can be used to get data, it’s often to change state of a current document, not to retrieve and render a new one. They can get data, in regards to the functionality of forms, but it continues to be within the context of updating a web document, not downloading an individual file. Long story short, the download attribute is unique to anchor links for a reason. download augments the inherent functionality of the link retrieving data. It side steps the attempt to render the file in the browser and instead says, “You know what? I’m just going to save this for later…”
  15. Dec 2020
    1. Making UIs with Svelte is a pleasure. Svelte’s aesthetics feel like a warm cozy blanket on the stormy web. This impacts everything — features, documentation, syntax, semantics, performance, framework internals, npm install size, the welcoming and helpful community attitude, and its collegial open development and RFCs — it all oozes good taste. Its API is tight, powerful, and good looking — I’d point to actions and stores to support this praise, but really, the whole is what feels so good. The aesthetics of underlying technologies have a way of leaking into the end user experience.
  16. Nov 2020
  17. Oct 2020
    1. Look at their Readme:

      Well we have had a great time adding field validations, but there are validations that are tied up to the whole record we are editing than to a given field, for instance let's face this scenario:
      
      - You are not allowed to transfer more than 1000 € to Switzerland using this form (for instance: you have to go through another form where some additional documentation is required).
      
      - The best place to fire this validation is at record level.
      
      - Record validation functions accept as input parameter that whole form record info, and return the result of the validation (it accepts both flavours sync and promise based), let's check the code for this validator:
      
      ...
      
  18. Sep 2020
  19. Aug 2020
  20. Jul 2020
  21. Jun 2020
  22. Apr 2020
    1. English tends to build new compound nouns by simply writing them as separate words with a blank. Once the compound is established (and the original parts somewhat "forgotten"), it's often written as one word or hyphenated. (Examples: shoelaces, aircraft...)
  23. Mar 2020
    1. Used By

      I like how they have indexed their core code base so they can show in both directions:

      • which other core functions a function uses
      • which other core functions use this function (references)
  24. Jan 2020
  25. Dec 2019
    1. COMMAND EXECUTE BASHRC -------------------------------- bash -c foo NO bash foo NO foo NO rsh machine ls YES (for rsh, which calls `bash -c') rsh machine foo YES (for shell started by rsh) NO (for foo!) echo ls | bash NO login NO bash YES
  26. Nov 2019
    1. JavaScriptReason const x = 5;let x = 5; var x = y;No equivalent (thankfully) let x = 5; x = x + 1;let x = ref(5); x := x^ + 1;
    1. The terms “controlled” and “uncontrolled” usually refer to form inputs, but they can also describe where any component’s data lives. Data passed in as props can be thought of as controlled (because the parent component controls that data). Data that exists only in internal state can be thought of as uncontrolled (because the parent can’t directly change it).
    1. Source code at:

      This example appears to use client-side data, so it doesn't demonstrate server-side row models at all.

      How did they color the monthly breakdown cells?

              cellClassRules: {
                  'good-score': 'typeof x === "number" && x > 50000',
                  'bad-score': 'typeof x === "number" && x < 10000'
              },
      
  27. Oct 2019
    1. When you do import '../src/application.css', you're telling webpack include application.css in the build. This does not mean it's going to be compiled into your javascript, only that webpack now knows that you want to compile this file. How that file compilation is handled is depending on how your loaders (css-loader, sass-loader, file-loader, etc.. ) are configured.
  28. Sep 2019
  29. Aug 2019
    1. Just by looking at the page you can see that it's not a normal check box. You are hiding the checkbox via CSS (opacity: 0) and replacing it with an image for styling reasons. Since the checkbox isn't visible Capybara can't find it. There are a couple of ways to deal with this, either find the element that contains the image being used as a replacement for the checkbox and click on that, or tell check/uncheck that it's allowed to click on the label if necessary to switch the checkbox
  30. Sep 2016
    1. Created a geocoder that returns social-economic data for a given location. Possibly usable to add social determinants to health records.

    1. Correlation analysis done on health outcomes and walkability in the community. Oregon counties ranked on a health index. Grouping analysis done on associated health outcomes.