37 Matching Annotations
  1. Jun 2024
    1. This means containers created by the inner Docker will reside on your host system, alongside the Docker container itself. All containers will exist as siblings, even if it feels like the nested Docker is a child of the parent.
  2. Apr 2023
    1. You can indeed prolong moderns Li-Ion batteries lifespan by keeping them at a lower charge. If you never ever use it disconnected, you should keep it at 40%. E.g. Uber driver cellphone always-on in travels. However for daily light usage, 60% is considered the 'sweet spot' for practicality, and 80% gives you more freedom. 100% is when the battery is at its peak 'stress' level, and thus wear faster.
    1. Exposing the battery to high temperature and dwelling in a full state-of-charge for an extended time can be more stressful than cycling.
    1. This tool makes it possible to keep a chronically plugged in Apple Silicon Macbook at 80% battery, since that will prolong the longevity of the battery.
  3. Mar 2023
    1. Conversations are collections of messages that all have the same Subject. When "conversation mode" is on, searches return entire conversations as results. So what should gmail search do if a conversation contains both a message that matches, and a message that does not match your search? You are probably expecting it to return conversations only if all messages in that conversation match. But that is not correct. Instead, Gmail search will return conversations even if only a single message in that conversation matches. So that means that if you do the same search above with "conversation mode" on, the results are likely to include messages that do not match your search!
  4. Feb 2023
  5. Oct 2022
  6. May 2022
    1. Some people have expressed surprise end even doubt that it could be faster to read the files twice than reading them just once. Perhaps I didn't manage to explain very clearly what I was doing. I am talking about cache pre-loading, in order to have the files in disk cache when later accessing them in a way that would be slow to do on the physical disk drive. Here is a web page where I have tried to explain more in detail, with pictures, C code and measurements.
  7. Mar 2022
    1. I found this counterintuitive because usually I try to make all my passwords, etc. different for each environment I have. I thought I would need to create a different master key for my production environment. No, I need to not create a different master key.
  8. Feb 2022
    1. Read for Understanding

      Ahrens goes through a variety of research on teaching and learning as they relate to active reading, escaping cognitive biases, creating understanding, progressive summarization, elaboration, revision, etc. as a means of showing and summarizing how these all dovetail nicely into a fruitful long term practice of using a slip box as a note taking method. This makes the zettelkasten not only a great conversation partner but an active teaching and learning partner as well. (Though he doesn't mention the first part in this chapter or make this last part explicit.)

    2. Even without any feedback, we will be better off ifwe try to remember something ourselves (Jang et al. 2012).
    3. If we put effort into the attempt of retrievinginformation, we are much more likely to remember it in the long run,even if we fail to retrieve it without help in the end (Roediger andKarpicke 2006)
    4. When we try to answer a question before we know how to, we willlater remember the answer better, even if our attempt failed (Arnoldand McDermott 2013)
  9. Jun 2021
  10. May 2021
    1. or simply install the package to devDependencies rather than dependencies, which will cause it to get bundled (and therefore compiled) with your app:
  11. 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. Note that the :task option for step configures this element as a low-level circuit interface, or in other words, it will skip the wrapping with the task interface.

      This bit me because I didn't realize that. Was getting error:

      TypeError: no implicit conversion of Symbol into Integer
      

      Finally checked ctx and found it was an array...

      At least this is documented here.

  12. Feb 2021
  13. Jan 2021
    1. Perhaps counterintuitively, the existential therapist’s goal is not necessarily to decrease anxiety or depression,

      counterintuitive: contrary to what one would intuitively expect

  14. Sep 2020
    1. let:hovering={active}

      It seems like it should be the other way around:

      let:active={hovering}
      

      to make it look like a regular let assignment.

      It's only when you consider what/how let:hovering on its own means/works that it makes a bit more sense that it is the way it is. When it's on its own, it's a little clearer that it's saying to "make use of" an available slot prop having the given name. (Very much like bind, where the LHS is also the name of the prop we're getting the data from.) Obviously we have to identify which prop we're wanting to use/pull data from, so that seems like the most essential/main/only thing the name could be referring to. (Of course, as a shortcut (in this shorthand version), and for consistency, it also names the local variable with the same name, but it wouldn't have to.)

      Another even simpler way to remember / look at it:

      1. Everything on the left hand of an prop/attribute [arg] corresponds to something in the component/element that you're passing the [arg] to. Usually it's a prop that you're passing in, but in this case (and in the case of bind:) it's more like a prop that you're pulling out of that component, and attaching to. Either way, the name on the LHS always corresponds to an export let inside that named component.
      2. Everything on the right side corresponds to a name/variable in the local scope. Usually it passes the value of that variable, but in the case of a let: or bind: it actually "passes the variable by reference" (not the value) and associates that local variable with the LHS (the "remote" side).

      Another example is bind: You're actually binding the RHS to the value of the exported prop named on the LHS, but when you read it (until you get used to it?) it can look like it's saying bind a variable named LHS to the prop on the RHS.

    1. It seems very counterintuitive at first, and frankly, kind of a pain.
    2. This is probably one of the biggest things to get used to in React – this flow where data goes out and then back in.
  15. May 2020
    1. It is often assumed that if we want to deploy software more frequently, we must accept lower levels of stability and reliability in our systems. In fact, peer-reviewed research shows that this is not the case—high performance teams consistently deliver services faster and more reliably than their low performing competition.
    1. the behavior of optional chaining (?.) with the non-null assertion operator (!) is extremely counter-intuitive
  16. Apr 2020
    1. It might be contrary to traditional thinking, but writing unique passwords down in a book and keeping them inside your physically locked house is a damn sight better than reusing the same one all over the web. Just think about it - you go from your "threat actors" (people wanting to get their hands on your accounts) being anyone with an internet connection and the ability to download a broadly circulating list Collection #1, to people who can break into your house - and they want your TV, not your notebook!
    1. Want to keep your users? Just make it easy for them to leave.
    2. We've found that an incredibly effective—although certainly counterintuitive—way to earn and maintain user trust is to make it easy for users to leave your product with their data in tow. This not only prevents lock-in and engenders trust, but also forces your team to innovate and compete on technical merit. We call this data liberation.
  17. Jun 2018
    1. In this kind of situation one might well ask: why continue to make the 80 per cent of products that only generate 20 per cent of profits? Companies rarely ask these questions, perhaps because to answer them would mean very radical action: to stop doing four-fifths of what you are doing is not a trivial change.

      Relevant on larger scale of global economies.

    2. George Bernard Shaw put it well: ‘The reasonable man adapts himself to the world. The unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.
    3. The reason that the 80/20 Principle is so valuable is that it is counterintuitive. We tend to expect that all causes will have roughly the same significance. That all customers are equally valuable. That every bit of business, every product and every dollar of sales revenue is as good as another. That all employees in a particular category have roughly equivalent value. That each day or week or year we spend has the same significance. That all our friends have roughly equal value to us. That all enquiries or phone calls should be treated in the same way. That one university is as good as another. That all problems have a large number of causes, so that it is not worth isolating a few key causes. That all opportunities are of roughly equal value, so that we treat them all equally. We tend to assume that 50 per cent of causes or inputs will account for 50 per cent of results or outputs. There seems to be a natural, almost democratic, expectation that causes and results are generally equally balanced. And, of course, sometimes they are. But this ‘50/50 fallacy’ is one of the most inaccurate and harmful, as well as the most deeply rooted, of our mental maps.
    1. Thus mass collaboration is more refined and complex in its process and production on the level of collective engagement.
    1. Most people think of loyalty programs as an airline that gives miles to frequent fliers, a hotel that gives points toward a stay or a restaurant that offers a punch card incentive. While these may be called loyalty programs, I’ll argue that they are actually marketing programs disguised as loyalty programs. And while I don’t have a problem with this concept, we need to have a clear understanding of the differences between loyalty and marketing.
  18. Mar 2018
    1. the more I live, the more I dread death, even while I abhor life

      I don't know if this counts as a chiasmus, but regardless the contrasting ideas are interesting!

  19. Jan 2017