324 Matching Annotations
  1. Nov 2020
  2. Oct 2020
    1. The primary motivation behind virtual-dom is to allow us to write code independent of previous state. So when our application state changes we will generate a new VTree. The diff function creates a set of DOM patches that, based on the difference between the previous VTree and the current VTree, will update the previous DOM tree to match the new VTree.

      annotation meta: may need new tag: for: "code independent of previous state."

      annotation meta: may need new tag: for: diffs other than source/text code diffs (in this case diffs between virtual DOM trees)

    2. Manual DOM manipulation is messy and keeping track of the previous DOM state is hard. A solution to this problem is to write your code as if you were recreating the entire DOM whenever state changes. Of course, if you actually recreated the entire DOM every time your application state changed, your app would be very slow and your input fields would lose focus.
  3. mdxjs.com mdxjs.com
  4. Sep 2020
    1. I think Svelte's approach where it replaces component instances with the component markup is vastly superior to Angular and the other frameworks. It gives the developer more control over what the DOM structure looks like at runtime—which means better performance and fewer CSS headaches, and also allows the developer to create very powerful recursive components.
    1. Nic Fildes in London and Javier Espinoza in Brussels April 8 2020 Jump to comments section Print this page Be the first to know about every new Coronavirus story Get instant email alerts When the World Health Organization launched a 2007 initiative to eliminate malaria on Zanzibar, it turned to an unusual source to track the spread of the disease between the island and mainland Africa: mobile phones sold by Tanzania’s telecoms groups including Vodafone, the UK mobile operator.Working together with researchers at Southampton university, Vodafone began compiling sets of location data from mobile phones in the areas where cases of the disease had been recorded. Mapping how populations move between locations has proved invaluable in tracking and responding to epidemics. The Zanzibar project has been replicated by academics across the continent to monitor other deadly diseases, including Ebola in west Africa.“Diseases don’t respect national borders,” says Andy Tatem, an epidemiologist at Southampton who has worked with Vodafone in Africa. “Understanding how diseases and pathogens flow through populations using mobile phone data is vital.”
      the best way to track the spread of the pandemic is to use heatmaps built on data of multiple phones which, if overlaid with medical data, can predict how the virus will spread and determine whether government measures are working.
      
    1. Please focus on explaining the motivation so that if this RFC is not accepted, the motivation could be used to develop alternative solutions. In other words, enumerate the constraints you are trying to solve without coupling them too closely to the solution you have in mind.
    1. Hi Arthurp,We are not able to reproduce the issue at our end.Could you please try the following steps:-Open Task Manager and kill the process "Adobe Collaboration Synchronizer"-Delete the folder "Synchronizer" located at: C:\Users\arviyada\AppData\LocalLow\Adobe\Acrobat\DC\Acrobat\ Please let us know it helps. Regards,Arvind

      Suggested solution to problem with Adobe Document Cloud (ADC) synchronising comments with shared reviews from Adobe Acrobat.

  5. Aug 2020
  6. Jul 2020
    1. Pas de pensée sans mémoire biologique

      La part de la solution proposée ci-dessous. La mémoire est surtout un mécanisme biologique avec ses propres lois: la non-utilisation entraîne une atrophie. Il en va de même pour la mémoire.

    2. Surtout, le travail de la mémoire est le terreau de la pensée. Un savoir n’est acquis et fertile que s’il est intériorisé.

      La solution plus claire et très simple à la problématiqu et son explication. Il faut faire la mémoire travailler: mémorisation, récitation, répétion, textes par coeur. Sans l'interiorisation du savoir on manque non seulement une capacité large de réfléxion mais aussi une mémoire psychique ou épisodique.

    3. Enfin, mémoriser des chansons, des poèmes, etc., nourrit le partage et la solidarité, renforce le lien social, améliore la qualité du vivre ensemble. »

      Deux réponses aux problèmes. Elles ne sont pas explicites mais assez claires: il faut parfois laissez tomber les nouvelles techniques et plutôt utiliser les "old-school" façons d'enseignement et et de vivre pour équilibrer les effets négatifs du Web.

  7. Jun 2020
    1. Au Canada, des audits qui incluent les enjeux de discriminations sont obligatoires pour les institutions publiques depuis le 1er avril 2020 et le Gouvernement fédéral a mis en place une plateforme, l’IEA (Évaluation de l’incidence algorithmique) pour accompagner les administrations dans ces analyses d’impact32. Une telle obligation pourrait être introduite en France sur le modèle de l’Aanalyse d’impact relative à la protection des données (AIPD) déjà prévue par l’article 35 du RGPD
  8. May 2020
  9. Apr 2020
    1. C’est ainsi qu’en février 2014 la branche professionnelle Syntec a signé un accord pour un droit à la déconnexion le soir et le week-end.


      Nous avons ici la première solution pour éviter la surcharge de travail aux employés. En effet, avec cette accord, les employés n'ont pas à ramener du travail supplémentaire chez eux le soir et le weekend, cela permet donc une déconnexion. Ils ne peuvent donc plus être contacté par leurs collègues et leur employeur. Cela évite la dispersion familiale, élément qui n'est pas abordé dans cet article.

  10. Mar 2020
    1. However imagine we are creating a format string in a separate file, commonly because we would like to internationalize it and we rewrite it as: <?php$format = 'The %s contains %d monkeys';echo sprintf($format, $num, $location);?> We now have a problem. The order of the placeholders in the format string does not match the order of the arguments in the code. We would like to leave the code as is and simply indicate in the format string which arguments the placeholders refer to. We would write the format string like this instead: <?php$format = 'The %2$s contains %1$d monkeys';echo sprintf($format, $num, $location);?> An added benefit is that placeholders can be repeated without adding more arguments in the code.
    1. Poedit and other tools can scan your .php files for references of __(), _e(), _n() and so on, and grab those strings for translation, which is awesome, because otherwise you’d have to manually add every single string. Now, when these tools come across _n() in our sources, they know it’s a plural thing, because of a special keyword setting which looks something like _n:1,2, meaning _n() takes at least two arguments, where the first argument is the singular, and the second argument is a the plural, so it grabs both strings. Let’s take a look at how Poedit and other tools will parse our function above: Hello there _n() on line 3! I’m supposed to grab two of your arguments because I have this smart keyword setting, but none of these arguments are strings, so I’ll just skip to the next match
  11. Feb 2020
    1. Nix helps you make sure that package dependency specifications are complete. In general, when you’re making a package for a package management system like RPM, you have to specify for each package what its dependencies are, but there are no guarantees that this specification is complete. If you forget a dependency, then the component will build and work correctly on your machine if you have the dependency installed, but not on the end user's machine if it's not there.
  12. Jan 2020
  13. Dec 2019
    1. Sometimes cronjobs fail to run successfully because a required server (like a database or ftp server) is temporarily unavailable due to power failures, hardware failures, software failures, network outages, choice of operating system, pilot error, and the like. Typically, this results in someone being forced to examine crontabs and error reports, determine which cronjobs really need to be run, and then run them manually. This happened to me twice in one week. I don't want it to happen again. Cronjobs are meant to be automated and I want them to stay that way. This is the rationale for noexcuses.
    1. An ssh public key in a ~/.ssh/authorized_keys file can have a command="" option which forces a particular command to be executed when the key is used to authenticate an ssh connection. This is a security control that mitigates against private key compromise. This is great when you only need to execute a single command. But if you need to perform multiple tasks, you would normally need to create and install a separate key pair for each command, or just not bother making use of forced commands and allow the key to be used to execute any command.
    1. However, these benefits only accrue to outbound connections made from the local system to ssh servers elsewhere: once logged into a remote server, connecting from there to yet a third server requires either password access, or setting up the user's private key on the intermediate system to pass to the third. Having agent support on the local system is certainly an improvement, but many of us working remotely often must copy files from one remote system to another. Without installing and initializing an agent on the first remote system, the scp operation will require a password or passphrase every time. In a sense, this just pushes the tedium back one link down the ssh chain.
    1. Regarding the type declaration emittion, I do this by activating the typescript complier api after webpack has finished compiling. I detect webpack is done compiling using hooks. This allows to live without the special tsconfig.

      Solution to previously mentioned workaround/problem:

      Sadly, generating .d.ts files isn't supported by the webpack integration (not sure if this is planned), and due to microsoft/TypeScript#29490 it requires a separate tsconfig.json file to make it all work:

  14. Nov 2019
    1. However, again you would have to lift state up to the App component in order to pass the amount to the currency components. As you can see, the component composition on its own doesn't help us to solve the problem. That's the point where React's render props pattern comes into play which enhances React's component composition with an important ingredient: a render function.
    1. To submit a proposal, a user must bond a set num-ber of Audius tokens (denotedBGP) in the governancesystem, which remain bonded for the duration of theirproposal. Before a proposal's e ective date, the origi-nal submitter can also choose to withdraw the proposalif they so choose, returning their bonded tokens. Thisbond is required as an anti-spam measure and to ensurethat proposers to have a sucient stake in the Audiusprotocol to make changes to it. At the proposal's res-olution (successful, failed, or withdrawn), the bond isreturned to proposal submitter.
    1. “The broader issue is clearing space for your transit to get through congestion, and most of that congestion is from private cars, not [ride-hail],” says Ben Fried, the group’s communications head. “Cities need to make transit fast, affordable, convenient." Truly attractive transit has to do that better than private cars.

      problem with transit/possible solution to the problem

  15. Oct 2019
  16. Jul 2019
  17. May 2019
    1. Teck officials say the safety and stability of HVC’s tailings damn was not affected in any way and there was no environmental impacts as a result of the incident.

      there was no pollution caused because of the mines safety measures.

  18. Mar 2019
  19. Feb 2019
  20. Oct 2018
  21. Jun 2018
    1. There are two routes to achieving this. One is to reallocate the resources from unproductive to productive uses, the secret of all entrepreneurs down the ages. Find a round hole for a round peg, a square hole for a square peg, and a perfect fit for any shape in between. Experience suggests that every resource has its ideal arena, where the resource can be tens or hundreds of times more effective than in most other arenas. The other route to progress—the method of scientists, doctors, preachers, computer systems designers, educationalists and trainers—is to find ways to make the unproductive resources more effective, even in their existing applications; to make the weak resources behave as though they were their more productive cousins; to mimic, if necessary by intricate rote-learning procedures, the highly productive resources. The few things that work fantastically well should be identified, cultivated, nurtured and multiplied. At the same time, the waste—the majority of things that will always prove to be of low value to man and beast—should be abandoned or severely cut back.
    1. The combination of human expertise and automated analysis can exist in multiple overlays. Climate scientists, economists, political analysts, and automated fact checkers might converge on a single sentence in a story on climate change. Nothing depends on any domain-specific vocabulary or schema. Annotation is simply the connective tissue that makes statements in web pages addressable, and binds those addresses to conversations, supporting documents, source data, or truth claims that bear on annotated statements.
    1. By requiring a lock up period for the DCR to obtain tickets, Decred hopes that only users invested in the long-term growth of the network will be involved in the consensus process. Short-term speculators and day traders of DCR will not be able to participate in consensus or governance without making their holdings illiquid.
  22. Mar 2017
  23. Jan 2017
    1. Cannot connect to the Docker daemon

      For Linux/Unix people, it may very well be that you did not add your username to the 'docker' group and as a consequence you cannot communicate with the docker daemon. I had just experienced this (while running Linux Mint 18.1, but the symptoms ought to be similar for Debian/Ubuntu as well).

      To fix it, I ran:

      sudo usermod -aG docker $(whoami)

      Log out and log back in. This ensures your user is running with the correct permissions.

      This will ensure that you do not need to sudo every time, when you interact with docker.

      There are instructions in the below link for Unix (MacOS) users as well.

      Source: http://stackoverflow.com/a/33596140