1,572 Matching Annotations
  1. Jun 2022
  2. May 2022
    1. 1/ It fits into existing spec based testing infrastructure nicely, including running on travis, code coverage using SimpleCov, switching between generating a profile (RubyProf), a benchmark (Benchmark::IPS) or normal test run. 2/ Some of my benchmarks do have expect clauses to validate that things are working before invoking the benchmark.

      Answering the question:

      I don't understand the point of putting it in a spec. What does that gain you over using benchmark-ips the normal way?

    1. DICER1 syndrome is an autosomal-dominant,pleiotropic, tumor-predisposition disorder arisingfrom pathogenic germline variants in DICER1, whichencodes an endoribonuclease integral to processingmicroRNAs

      DICER1 is the gene name. PubMed ID, HGCNCID, and Variant: I can't find Inheritance Pattern: autosomal-dominant The disease entity: DICER1 syndrome The type of mutation: germline. Zygosity: not known. Family Information: a family was used, DICER1 carriers, and non DICER1 variant used, some of the family members had tumors from DICER1 Case Information: mean age is 34, the range of age is 18.6 to 43 years, male, and female used, ethnicity can't find Case Presenting HPO: cancer testing, chemotherapy, radiotherapy gnomeAD: 9.2,8.3.2 Mutation type: Pleiotropic, loss of function, missense

  3. Apr 2022
    1. Let's imagine your project talks to databases, supports several, and has adapters for each one of them. Those adapters may have top-level require calls that load their respective drivers: # my_gem/db_adapters/postgresql.rb require "pg" but you don't want your users to install them all, only the one they are going to use.
    1. To drive this point home:

      I sometimes get people who balk at my characterization of GitHub-style anti-wikis as being inferior to, you know, actual wikis. "You can just use the GitHub UI to edit the files", they'll sometimes say.

      A case study: a couple days ago, I noticed that the lone link in the current README for Jeff Zucker's solid-rest project is a 404. I made a note of it. Just now, I reset my GitLab password, logged in to solid/chat, and notified Jeff https://gitter.im/solid/chat?at=611976c009a1c273827b3bd1. Jeff's response was, "I'll change it".

      This case is rich with examples of what makes unwikis so goddamn inefficient to work with. First, my thought upon finding the broken link was to take note of it (i.e. so that it can eventually be taken care of) rather than fixing it immediately, as would have been the case with a wiki. More on this in a bit. Secondly, my eventual action was still not something that directly addressed the problem—it was to notify someone else† of the problem so that it might be fixed by them, due to the unwiki nature of piles of Git-managed markdown. Thirdly, even Jeff's reflex is not to immediately change it—much like my reaction, his is to note the need for a fix himself and then to tell me he's going to change it, which he will presumably eventually do. Tons of rigamarole just to get a link fixed‡ that remains broken even after having gone through all this.

      † Any attempt to point the finger at me here (i.e. coming up short from having taken the wrong action—notifying somebody rather than doing it myself) would be getting it wrong. First, the fact that I can't just make an edit without taking into account the myriad privacy issues that GitHub presents is materially relevant! Secondly, even if I had been willing to ignore that thorn (or jump through the necessary hoops to work around it) and had used the GitHub web UI as prescribed, it still would have ended up as a request for someone else to actually take action on, because I don't control the project.

      ‡ Any attempt to quibble here that I'm talking about changing a README and not (what GitHub considers) a wiki page gets it wrong. We're here precisely because GitHub's unwikis are a bunch of files of markdown. The experience of changing an unwiki page would be rife with the same problems as encountered here.

    1. This would work if your transaction only wraps a single model's save operation. I need to wrap at least Node + Version + Attachment

      looking for a callback that you can register to happen after current transaction is committed, not just after_commit of model -- though actually, that might fire precisely when current transaction is committed, too (except that it might only get triggered for nested transactions, not the top-most transaction), so it could maybe go there ... but I think the problem is just that it doesn't belong there, because it's not specific to the model...

      I guess the OP said it best:

      I am not looking for model based after commits on update/create/etc, I want to be able to dynamically define a block that will be executed only if the current (top-most) transaction passes:

    1. Making one Comment query per Post is too expensive; it’s N+1 queries (one to fetch the posts, N to fetch the comments). You could use includes to preload all the comments for all the posts, but that requires hydrating hundreds of thousands of records, even though you only need a few hundred for your front page. What you want is some kind of GROUP BY with a LIMIT on each group — but that doesn’t exist, either in Activerecord nor even in postgres. Postgres has a different solution for this problem: the LATERAL JOIN.
    1. When a web page is viewed on a screen with a large physical size (assuming a maximised browser window), the author might wish to include some less relevant parts surrounding the critical part of the image. When the same web page is viewed on a screen with a small physical size, the author might wish to show only the critical part of the image.
  4. Mar 2022
    1. This has cropped up in particular when trying to create a copy of a store object when the store changes (which is a common use case with forms where you don't want to mutate the global store until the form is saved).

      Exactly! This is more or less the same kind of use case I tend to have: intentionally having/wanting a stale/out-of-date copy of a (reactive) object.

  5. Feb 2022
    1. Deepti Gurdasani. (2022, January 29). Going to say this again because it’s important. Case-control studies to determine prevalence of long COVID are completely flawed science, but are often presented as being scientifically robust. This is not how we can define clinical syndromes or their prevalence! A thread. [Tweet]. @dgurdasani1. https://twitter.com/dgurdasani1/status/1487366920508694529

  6. Jan 2022
    1. Olson, S. M., Newhams, M. M., Halasa, N. B., Price, A. M., Boom, J. A., Sahni, L. C., Pannaraj, P. S., Irby, K., Walker, T. C., Schwartz, S. P., Maddux, A. B., Mack, E. H., Bradford, T. T., Schuster, J. E., Nofziger, R. A., Cameron, M. A., Chiotos, K., Cullimore, M. L., Gertz, S. J., … Randolph, A. G. (2022). Effectiveness of BNT162b2 Vaccine against Critical Covid-19 in Adolescents. New England Journal of Medicine, 0(0), null. https://doi.org/10.1056/NEJMoa2117995

    1. My case is that I have a component which takes an object as a prop. As the user changes the object's values, they can either Save or Cancel. So in the component I have two variables: value and valueUnsaved. It's similar to the example on my comment above. To avoid mutating the original object directly, I assign valueUnsaved as a deep clone of value. If value is changed outside of the component, valueUnsaved should be updated.
    1. Thunderbird provides the ability to archive messages - that is, to move them from the default folders to archive folders without deleting the messages altogether. This makes it easy to organize archives or move them to a backup device, and keep the Inbox clean. Messages can only be archived manually, not automatically.
  7. Dec 2021
    1. Green computing, or green information technology, is the practice of environmentally sustainable computing. In this article we take a closer look at: * Greening the workplace. * A green workplace business case. * Opportunities to make Data Centers greener by: - ​​Other IT equipment. - The cooling of IT spaces. - The data center buildings.

      Green computing : Workplace and data center, a real business case https://en.itpedia.nl/2021/12/11/green-computing-werkplek-datacenter-business-case/ Green computing, or green information technology, is the practice of environmentally sustainable computing. In this article we take a closer look at: Greening the workplace. A green workplace business case. * Opportunities to make Data Centers greener by: - ​​Other IT equipment. - The cooling of IT spaces. - The data center buildings.

    Tags

    Annotators

    1. Thiruvengadam, R., Awasthi, A., Medigeshi, G., Bhattacharya, S., Mani, S., Sivasubbu, S., Shrivastava, T., Samal, S., Rathna Murugesan, D., Koundinya Desiraju, B., Kshetrapal, P., Pandey, R., Scaria, V., Kumar Malik, P., Taneja, J., Binayke, A., Vohra, T., Zaheer, A., Rathore, D., … Garg, P. K. (2021). Effectiveness of ChAdOx1 nCoV-19 vaccine against SARS-CoV-2 infection during the delta (B.1.617.2) variant surge in India: A test-negative, case-control study and a mechanistic study of post-vaccination immune responses. The Lancet Infectious Diseases, S1473309921006800. https://doi.org/10.1016/S1473-3099(21)00680-0

  8. Nov 2021
    1. Thiruvengadam, R., Awasthi, A., Medigeshi, G., Bhattacharya, S., Mani, S., Sivasubbu, S., Shrivastava, T., Samal, S., Murugesan, D. R., Desiraju, B. K., Kshetrapal, P., Pandey, R., Scaria, V., Malik, P. K., Taneja, J., Binayke, A., Vohra, T., Zaheer, A., Rathore, D., … Garg, P. K. (2021). Effectiveness of ChAdOx1 nCoV-19 vaccine against SARS-CoV-2 infection during the delta (B.1.617.2) variant surge in India: A test-negative, case-control study and a mechanistic study of post-vaccination immune responses. The Lancet Infectious Diseases, 0(0). https://doi.org/10.1016/S1473-3099(21)00680-0

    1. McNamara, L. A., Wiegand, R. E., Burke, R. M., Sharma, A. J., Sheppard, M., Adjemian, J., Ahmad, F. B., Anderson, R. N., Barbour, K. E., Binder, A. M., Dasgupta, S., Dee, D. L., Jones, E. S., Kriss, J. L., Lyons, B. C., McMorrow, M., Payne, D. C., Reses, H. E., Rodgers, L. E., … Schrag, S. J. (2021). Estimating the early impact of the US COVID-19 vaccination programme on COVID-19 cases, emergency department visits, hospital admissions, and deaths among adults aged 65 years and older: An ecological analysis of national surveillance data. The Lancet, 0(0). https://doi.org/10.1016/S0140-6736(21)02226-1

  9. Oct 2021
    1. mirtazapine is used to treat akathisia probably because of its antagonistic property at H1 postsynaptic receptors and dopaminergic action in the frontal cortex.

      That's an interesting hypothesis. I wouldn't have thought histamine was involved. Though, histamine being a stimulant, it also makes some sense. I'd have thought the primary mechanism is serotonin blockade, which would work in part by dopamine dis-inhibition as mentioned here.

    1. This function allows you to modify (or replace) a fetch request for an external resource that happens inside a load function that runs on the server (or during pre-rendering). For example, your load function might make a request to a public URL like https://api.yourapp.com when the user performs a client-side navigation to the respective page, but during SSR it might make sense to hit the API directly (bypassing whatever proxies and load balancers sit between it and the public internet).
    1. Coronavirus Pandemic Data Explorer. (n.d.). Our World in Data. Retrieved March 3, 2021, from https://ourworldindata.org/coronavirus-data-explorer

      is:webpage lang:en COVID-19 graph case death Germany Sweden UK Afghanistan Africa Albania Algeria Andorra Angola Anguilla Antigua Barbuda Argentina Armenia Asia Australia Austria Azerbaijan Bahamas Bahrain Bangladesh Barbados Belarus Belgium Belize Benin Bermuda Bhutan Bolivia Bosnia Herzegovina Botswana Brazil Bulgaria Burkina Faso Burundi Cambodia Cameroon Canada Cape Verde Cayman Islands Central African Republic Chad Chile China Colombia Comoros Congo Costa Rica Cote d'ivoire Croatia Cuba Cyprus Czechia Democratic Republic of Congo Denmark Djobouti Dominica Dominician Republic Ecuador Egypt El Salvador Equatorial Guinea Eritrea Estonia Eswatini Ethiopia Europe Europian Union Faeroe Islands Falkland Islands Fiji Finland France Gabon Gambia Georgia Ghana Gibraltar Greece Greenland Grenada Guatemala Guernsey Guinea Guinea-Bissau Guyana Haiti Honduras Hong Kong Hungary Iceland India Indonesia Iran Iraq Ireland Isle of Man Israel Italy Jamaica Japan Jersey Jordan Kazakhstan Kenya Kosovo Kuwait Kyrgyzstan Laos Latvia Lebanon Lesotho Liberia Libya Liechtenstein Lithuania Luxembourg Macao Madagascar Malawi Malaysia Maldives Mali Malta Mashall Islands Mauritania Mauritius Mexico Micronesia Moldova Monaco Mongolia Montenegro Morocco Mozambique Myanmar Namibia Nepal Netherlands New Zealand Nicaragua Niger Nigeria North America North Macedonia Northern Cyprus Norway Oceania Oman Pakistan Palestine Panama Papua New Guinea Paraguay Peru Philipines Poland Portugal Qatar Romania Russia Rwanda Saint Helena Saint Kitts and Nevis Saint Lucia Saint Vincent Grenadines Samoa San Marino Sao Tome and Principe Saudi Arabia Senegal Serbia Seychelles Sierra Leone Singapore Slovakia Slovenia Solomon Islands Somalia South Africa South America South Korea South Sudan Spain Sri Lanka Sudan Suriname Switzerland Syria Taiwan Tajikistan Tanzania Thailand Timor Togo Trinidad Tobago Tunisia Turkey Turks and Caicos Islands Uganda Ukraine United Arab Emirates USA Uruguay Uzbekistan Vanuatu Vatican Venezuela Vietnam World Yemen Zambia Zimbabwe test vaccine chart map table data case fatality rate mortality

    Tags

    Annotators

    URL

  10. Sep 2021
  11. learn-eu-central-1-prod-fleet01-xythos.s3.eu-central-1.amazonaws.com learn-eu-central-1-prod-fleet01-xythos.s3.eu-central-1.amazonaws.com
  12. Aug 2021
    1. Craig Spencer MD MPH. (2021, August 6). Even with Delta, the likelihood of severe illness if you’re fully immunized is still a small fraction of the likelihood for the unvaccinated. In other words, nearly every COVID-19-related death right now is preventable with vaccination. [Tweet]. @Craig_A_Spencer. https://twitter.com/Craig_A_Spencer/status/1423674337089949710

    1. (((Howard Forman))). (2021, August 7). Steep drop in UK cases is over. 7-day moving average now back to 26.7K/day and rising. To those who said that this was over, it is not. To those who said that lifting restrictions on July 19th would have no effect, it may well have had effect. Be humble. Too many unknowns. Https://t.co/y0b55gEKAB [Tweet]. @thehowie. https://twitter.com/thehowie/status/1424030928062623755

  13. Jul 2021
    1. ReconfigBehSci on Twitter: ‘@Professologue @sciam well it also gives references to documented cases. Why do you think uncertainty means we should not clean? And how is this different from debate (until very recently) about “airborne” nature, in your view?’ / Twitter. (n.d.). Retrieved 15 July 2021, from https://twitter.com/SciBeh/status/1415357732446633984

  14. Jun 2021

    Tags

    Annotators

    1. There is one very important reason for enabling job control to be useful inside scripts: the side-effect it has of placing background processes in their own process groups. This makes it much, much easier to send signels to them and their children with one simple command: kill -<signal> -$pgid. All other ways of dealing with signaling entire trees of processes either involve elaborate (sometimes even recursive) functions, which are often bugnests, or risk killing the parent in the process (no pun intended).
    1. I see a 'virtual attribute' as something we're forced to implement when using frameworks, ORMs and the like. Something that lets us inject our code into the path of whatever metaprogramming has been put in place for us. In a simple PORO like this, I don't see how it has meaning; it's just a method. :)

      Hmm, good point. Maybe so. Though I think I'm fine with calling it a virtual property here too. :shrug:

    1. Thanks, this was just what I was looking for! This is a perfect appropriate use of instance_eval. I do not understand the nay-sayers. If you already have your array in a variable, then sure, a.reduce(:+) / a.size.to_f is pretty reasonable. But if you want to "in line" find the mean of an array literal or an array that is returned from a function/expression — without duplicating the entire expression ([0,4,8].reduce(:+) / [0,4,8].length.to_f, for example, is abhorrent) or being required to assign to a local, then instance_eval option is a beautiful, elegant, idiomatic solution!!
  15. May 2021
    1. Ashish K. Jha, MD, MPH. (2020, December 1). There is something funny happening with COVID hospitalizations Proportion of COVID pts getting hospitalized falling A lot Just recently My theory? As hospitals fill up, bar for admission rising A patient who might have been admitted 4 weeks ago may get sent home now Thread [Tweet]. @ashishkjha. https://twitter.com/ashishkjha/status/1333636841271078912

    1. (((Howard Forman))). (2020, November 24). Truly good news out of #Italy. And we can all use it. Cases (23K), positive rate (12.3%), and hospitalizations all DOWN. ICU occupancy with smallest increase in months. Deaths (not surprisingly) the one exception with 3rd highest total. Https://t.co/YFh5nd2AXX [Tweet]. @thehowie. https://twitter.com/thehowie/status/1331311384626388994

  16. Apr 2021
    1. With Stack Overflow for Teams being a flexible platform, we’ve seen customers use it for a wide variety of use cases: A platform to help onboard new employees A self-serve help center to reduce support tickets Collaboration and documentation to drive innersource initiatives Breaking down silos and driving org wide transformation like cloud migration efforts A direct customer support platform Enable people who are working towards a common goal, whether a startup or a side project, to develop a collective knowledge base
  17. Mar 2021
    1. Application: 3-D Shape RegistrationAn important problem in model-based recognition is to find the transformation of a set of datapoints that yields the best match of these points against a shape model. The process is oftenreferred to asdata registration. The data points are typically measured on a real object by rangesensors, touch sensors, etc., and given in Cartesian coordinates. The quality of a match is oftendescribed as the total squared distance from the data pointsto the model. When multiple shapemodels are possible, the one that results in the least total distance is then recognized as the shapeof the object.Quaternions are very effective in solving the above least-squares-based registration problem.