324 Matching Annotations
  1. Last 7 days
  2. Feb 2021
    1. Aknin, L., Neve, J.-E. D., Dunn, E., Fancourt, D., Goldberg, E., Helliwell, J., Jones, S. P., Karam, E., Layard, R., Lyubomirsky, S., Rzepa, A., Saxena, S., Thornton, E., VanderWeele, T., Whillans, A., Zaki, J., Caman, O. K., & Amour, Y. B. (2021). A Review and Response to the Early Mental Health and Neurological Consequences of the COVID-19 Pandemic. PsyArXiv. https://doi.org/10.31234/osf.io/zw93g

    1. ReconfigBehSci. (2021, February 18). @ErikAngner I thought I joined the ‘conversation’ at the top- did I miss part of a prior thread? Post I responded to seemed to be the beginning of a thread...ie. ‘regular reminder that...’ [Tweet]. @SciBeh. https://twitter.com/SciBeh/status/1362385973603168257

  3. Jan 2021
    1. ReconfigBehSci on Twitter: ‘RT @NatureNews: COVID curbed carbon emissions in 2020—But not by much, and new data show global CO2 emissions have rebounded: Https://t.c…’ / Twitter. (n.d.). Retrieved 20 January 2021, from https://twitter.com/SciBeh/status/1351840770823757824

    1. Ball. P. (2020) Pandemic science and politics.. Retrieved from: chrome-extension://bjfhmglciegochdpefhhlphglcehbmek/pdfjs/web/viewer.html?file=https%3A%2F%2Fwww.thelancet.com%2Faction%2FshowPdf%3Fpii%3DS0140-6736%252820%252931594-4

  4. Dec 2020
    1. This is the accepted way to handle problems related to authentication, because user data has a couple of important characteristics: You really don't want to accidentally leak it between two sessions on the same server, and generating the store on a per-request basis makes that very unlikely It's often used in lots of different places in your app, so a global store makes sense.
    2. But Svelte 3 doesn't have global stores that are passed around in quite the same way.
    3. Just realised this doesn't actually work. If store is just something exported by the app, there's no way to prevent leakage. Instead, it needs to be tied to rendering, which means we need to use the context API. Sapper needs to provide a top level component that sets the store as context for the rest of the app. You would therefore only be able to access it during initialisation, which means you couldn't do it inside a setTimeout and get someone else's session by accident:
  5. Nov 2020
    1. According to the World Economic Forum’s Global Risks Report 2020, the interconnectedness of our global business supply chains has made the world more vulnerable to societal and economic disruption from local infectious-disease outbreaks.
  6. Oct 2020
    1. All containers without a --network specified, are attached to the default bridge network. This can be a risk, as unrelated stacks/services/containers are then able to communicate.
    1. In a browser, deep-diff defines a global variable DeepDiff. If there is a conflict in the global namespace you can restore the conflicting definition and assign deep-diff to another variable like this: var deep = DeepDiff.noConflict();.
    1. Polyfills are naughty as they patch native APIs, while ponyfills are pure and don't affect the environment.
    2. How are ponyfills better than polyfills? A polyfill is code that adds missing functionality by monkey patching an API. Unfortunately, it usually globally patches built-ins, which affects all code running in the environment. This is especially problematic when a polyfill is not fully spec compliant (which in some cases is impossible), as it could cause very hard to debug bugs and inconsistencies. Or when the spec for a new feature changes and your code depends on behavior that a module somewhere else in the dependency tree polyfills differently. In general, you should not modify API's you don't own.