653 Matching Annotations
  1. Apr 2021
    1. What I dislike from the achievements is the "Dialogue Skipper". I really don't like it because you are encouraging people just to skim or even skip it at all and not get interested with the story. I earned this achievement on a 2nd run but I had a friend who just skipped it all on her 1st try.What devs should encourage is for the gamers to have a lot of playing time on their game so they would recommend it to others and not just do it for the cards and uninstalling it afterwards.
    1. Rather than rewarding the player for discovering a well-thought-out or ideal solution (by picking up coins), the developer tacked on a timer to a game with non-fluid controls. The player feels rushed to discover an elaborate solution.
    1. It's strange to me that the text returned is in all caps (how it's styled after CSS), but the matcher is actually testing against the text in the unstyled HTML. I spent a while digging through the source code and I still can't figure out why this works.
  2. Mar 2021
    1. If you change a form value to '', Final Form will set the value in its state to undefined. This can be counterintutive, because '' !== undefined in javascript.
    1. Chapman, G. B., & Coups, E. J. (2006). Emotions and preventive health behavior: Worry, regret, and influenza vaccination. Health Psychology: Official Journal of the Division of Health Psychology, American Psychological Association, 25(1), 82–90. https://doi.org/10.1037/0278-6133.25.1.82

    1. Kniffin, K. M., Narayanan, J., Anseel, F., Antonakis, J., Ashford, S., Bakker, A. B., Bamberger, P., Bapuji, H., Bhave, D. P., Choi, V. K., Creary, S. J., Demerouti, E., Flynn, F., Gelfand, Mi., Greer, L., Johns, G., Kesebir, S., Klein, P. G., Lee, S. Y., … van vugt, mark. (2020). COVID-19 and the Workplace: Implications, Issues, and Insights for Future Research and Action [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/gkwme

    1. People diagnosed with REM sleep behaviour syndrome have an increased risk of developing Parkinson's disease.

      According to this statement, those who are diagnosed with RME sleep behavior syndrome have an increased risk of developing Parkinson’s disease. A number of questions arise from this statement.

      • What are the characteristics of REM sleep behavior syndrome? How does it manifest itself? How often does it manifest itself? Do those individuals in which it manifests itself more frequently have an increased chance of developing Parkinson’s disease?
      • What is the neurological mechanism that is causing REM sleep behavior syndrome? Is the mechanism that is causing this the actual cause of the reduction of dopamine production that is characteristic of Parkinson’s disease?
    1. This creates what is essentially an evolution process for the program, causing it to depart from the original engineered design. As a consequence of this and a changing environment, assumptions made by the original designers may be invalidated, introducing bugs.
    1. But we're definitely sticking with the source map idea rather than the current (Rails 3/4) behavior of including all JS and CSS files separately while in development?
  3. Feb 2021
    1. Record filters allow you to require an instance of a particular class (or one of its subclasses) or a value that can be used to locate an instance of the object. If the value does not match, it will call find on the class of the record. This is particularly useful when working with ActiveRecord objects.
    1. My only concern with this approach is that if someone calls #valid? on the form object afterwards, it would under the hood currently delete the existing errors on the form object and revalidate. The could have unexpected side effects where the errors added by the models passed in or the service called will be lost.
    2. My concern with this approach is still that it's somewhat brittle with the current implementation of valid? because whilst valid? appears to be a predicate and should have no side effects, this is not the case and could remove the errors applied by one of the steps above.
    3. Another problem I found with Reform is the synchronisation with models. The object you passed in argument to reform does not have the same value than the form.
  4. Jan 2021
    1. For example, the notion of the workplace as a family is a refrain in offices but it is most explicit for nannies.

      Too often corporations use the idea that the workplace is a "family", but when times get tough, we don't abandon our families the same way that corporations will summarily fire their employees to try to survive themselves without any real thought about their supposed "family members".

    1. It seems like this should be one of the easiest things to understand in CSS. If you want a block-level element to fill any remaining space inside of its parent, then it’s simple — just add width: 100% in your CSS declaration for that element, and your problem is solved. Not so fast. It’s not quite that easy. I’m sure CSS developers of all skill levels have attempted something similar to what I’ve just described, with bizarre results ultimately leading to head scratching and shruggingly resorting to experimenting with absolute widths until we find just the right fit. This is just one of those things in CSS that seems easy to understand (and really, it should be), but it’s sometimes not — because of the way that percentages work in CSS.
    1. min-width: 0;

      Wouldn't expect the solution to "width grows too wide" to be to assign a (seemingly meaningless, since how could it be less than 0) a minimum width of 0.

      I would have expected to solve this by applying a max-width to the problem element or one of its ancestors.

    1. Weingarten. E., Chen. Q., McAdams., Yi. J., (2016). From Primed Concepts to Action: A Meta-Analysis of the BehavioralEffects of Incidentally Presented Words. Psychological Bulletin 2016 (142) pp 472-497.

    1. I don't know what I'd expect this to do, if not create an infinite loop. You're asking Svelte to do something before every update, and one of the things you're asking it to do is to flush any pending changes and trigger an update.
  5. Dec 2020
    1. Eyal describes the theory called The Fogg Behavior Model which states that for a behavior (B) to occur, three things must be present at the same time: motivation (M), ability (A), and a trigger (T). More succinctly, B = MAT.

      Fogg Behavior Model says that for a Behavior (B) to occur 3 things have to be present at the same time:

      1. Motivation (M)
      2. Ability (A)
      3. Trigger (T)

      B = MAT

    1. Stuaert Rtchie [@StuartJRitchie] (2020) This encapsulates the problem nicely. Sure, there’s a paper. But actually read it & what do you find? p-values mostly juuuust under .05 (a red flag) and a sample size that’s FAR less than “25m”. If you think this is in any way compelling evidence, you’ve totally been sold a pup. Twitter. Retrieved from:https://twitter.com/StuartJRitchie/status/1305963050302877697

  6. Nov 2020
    1. This mirrors how classes already work and avoids the issues with introducing an unexpected DOM node.
  7. Oct 2020
    1. I debugged docker-compose and docker-py and figured out that you should either use environment variables or options in command. You should not mix these . If you even specify --tls in command then you will have to specify all the options as the TLSConfig object, as now TLSConfig object is created completely from the command options and operide the TFSConfig object created from the environment variable.
    1. docker --tlsverify ps executes just fine, while docker-compose --tlsverify up -d --force-recreate gives me an error: SSL error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
    2. I only have one set of certs. And I can't see how they can be different because docker commands work using the endpoint. It's just the docker-compose command that fails
    3. docker-compose command you can not mix environment variable and command option. You can specify setting in env variable and then just use docker-compose ps. The connection will be secured with TLS protocol if DOCKER_TLS_VERIFY variable is set.
    4. You dont need to pass --tls or --tlsverify option in the docker-config path as the task already sets DOCKER_TSL_VERIFY environment varaible. I debugged docker-compose and docker-py library and verified that if you pass any flag --tls or --tlsverify flag it tries to create tslConfig object out of options and not from environment
    1. I debugged docker-compose and docker-py and figured out that you should either use environment variables or options in command. You should not mix these . If you even specify --tls in command then you will have to specify all the options as the TLSConfig object, as now TLSConfig object is created completely from the command options and operide the TFSConfig object created from the environment variable.
    1. My version of https://svelte.dev/repl/9c7d12357a15457bb914705702f156d1?version=3.19.2 from https://github.com/sveltejs/svelte/issues/4586

      to try to simplify and help me understand it better.

      So the lack of synchronousness is only noticed inside handleClick.

      By the time the DOM gets updated, it has a consistent/correct state.

      In other words, the console.log shows wrong value, but template shows correct value. So this might not be an actual problem for many/most use cases.

    1. I too have been confused by behavior like this. Perhaps a clearly defined way to isolate atomic units with synchronous reactivity would help those of us still working through the idiosyncrasies of reactivity.
    2. For performance reasons, $: reactive blocks are batched up and run in the next microtask. This is the expected behavior. This is one of the things that we should talk about when we figure out how and where we want to have a section in the docs that goes into more details about reactivity. If you want something that updates synchronously and depends on another value, you can use a derived store:
    1. One would expect the display to be updated, but it is not... WHY is it updated the 2nd time you enter something? What is different?
    1. vague

      The word 'vague' seems to repeat quite a lot in descriptions of Constantia's gestures and behaviors. She reminds me of Laura from the Garden Party, having her own inner world nobody knows of. But she's more reserved and reticent, which might stem from her insecurity and dependence on her older sister's views.

    1. Landi, F., Marzetti, E., Sanguinetti, M., Ciciarello, F., Tritto, M., Benvenuto, F., Bramato, G., Brandi, V., Carfì, A., D’Angelo, E., Fusco, D., Lo Monaco, M. R., Martone, A. M., Pagano, F., Rocchi, S., Rota, E., Russo, A., Salerno, A., Cattani, P., … Bernabei, on behalf of the G. A. C.-19 G. T. (n.d.). Should face masks be worn to contain the spread of COVID-19 in the postlockdown phase? Transactions of The Royal Society of Tropical Medicine and Hygiene. https://doi.org/10.1093/trstmh/traa085

    1. If the user now clicks Back again, the URL bar will display https://www.mozilla.org/foo.html, and totally bypass bar.html.
    1. I never noticed her.

      Well, at least he's honest about that. it's incredible to me how self-centered Mr. Franklin could be. Up to that point, he barely even recognizes the excruciating pain she must've endured, being treated as non-existent by him; he doesn't exhibit any empathy or sympathy (which is hilarious given that he's chasing Rachel so desperately), as if it is so inexplicable and absurd that she's had feelings for a person so above her societal rank, that it can simply be disregarded. Notice how the entire time he's reading the letter, all he cares about is finding a clue for the Moonstone, or his own ostensible guilt.

      However, he's surely endeavoring to justify himself here, not to be seen to the reader as a supercilious, ill-mannered man!

  8. Sep 2020
    1. I sowed the good seed, in spite of him, by throwing a second tract in at the window of the cab.

      It's just mind-blowing how satisfied she gets from distributing her tracts among random people who could not be clearer about their reluctance to receive them. Clack, much like Betteredge, assumes she knows the depths of people and is so judgmental of the unconventional (e.g., Rachel) but completely fails to recognize that her own behavior is far from being desired, and is, to all eyes, the unconventional and deplorable one.

      I wonder if this is Collins' way to humorously ridicule this phenomenon. More broadly, I wonder if Collins' use of extreme and blatantly hypocritical narrators who inspire hatred (e.g., Clack and Betteredge), is his calling for moderation in society.

    1. Basically, the idea is that a train tried to start with the caboose brakes stuck on. After releasing the caboose, the train still could not start. The problem was that when the train attempted to start with the caboose brake on, it stretched all the inter-car couplings so that the whole train was just like one big car. At this point, the friction from the engine train wheels was not enough to get the whole thing going. Instead, you need to just get one car moving at a time - this is why there is space between the couplings.
    1. Most simple example: <script> import ChildComponent from './Child.svelte'; </script> <style> .class-to-add { background-color: tomato; } </style> <ChildComponent class="class-to-add" /> ...compiles to CSS without the class-to-add declaration, as svelte currently does not recognize the class name as being used. I'd expect class-to-add is bundled with all nested style declarations class-to-add is passed to ChildComponent as class-to-add svelte-HASH This looks like a bug / missing feature to me.
    1. Svelte will not offer a generic way to support style customizing via contextual class overrides (as we'd do it in plain HTML). Instead we'll invent something new that is entirely different. If a child component is provided and does not anticipate some contextual usage scenario (style wise) you'd need to copy it or hack around that via :global hacks.
    1. It's fashionable to dislike CSS. There are lots of reasons why that's the case, but it boils down to this: CSS is unpredictable. If you've never had the experience of tweaking a style rule and accidentally breaking some layout that you thought was completely unrelated — usually when you're trying to ship — then you're either new at this or you're a much better programmer than the rest of us.
    1. Over time we tend to develop confirmation bias, forever seeking evidence that reinforces what we already believe, and downplaying or dismissing what doesn’t. We’re also designed, both genetically and instinctively, to put our own safety first, and to avoid taking too much risk. Rather than using our capacity for critical thinking to assess new possibilities, we often co-opt our prefrontal cortex to rationalize choices that were actually driven by our emotions.
  9. Aug 2020