319 Matching Annotations
  1. Oct 2020
    1. We could broadcast a warning if we find the variable to be set in the environment, but that is more likely than not to annoy people who intentionally set it.

      New tag?: warnings that may annoy people who intentionally do something. (Need a way to selectively silence certain warnings?)

    1. for (var member in myObject) delete myObject[member]; ...would seem to be pretty effective in cleaning the object in one line of code

      But checking hasOwnProperty is probably better/safer idea:

      for (var prop in obj) { if (obj.hasOwnProperty(prop)) { delete obj[prop]; } }
      
    1. I don't want Svelte to go out of its way to try to catch all these edge cases. It would require lots of fragile heuristics in the compiler. I want a solid compiler I can trust, not something magic but often out of service. I want it the simplest possible.
    1. In the many projects I have maintained so far, sooner or later I always run into the same issue: circular module dependencies. Although there are many strategies and best practices on how to avoid circular dependencies. There is very little on how to fix them in a consistent and predictable way.
    2. This is how I solve circular dependency issues nowadays.
    3. Examples of this include: requiring base classes or reading from imported variables that have not been initialized yet.
    4. as soon as you have a (indirect) circular dependency, you might be interacting with a half loaded module in your code.
    1. Perhaps we should detect URLSearchParams objects differently (using duck typing detection instead of instanceof window.URLSearchParams, for example) but the solution isn't adding a specific polyfill to Axios (as it'd increase the bundle size and still won't work with other polyfills).
    1. You can see that behaviour in this example. Select a range of text and hit the tab key. Because the <textarea> value changes, the current selection is cleared and the cursor jumps, annoyingly, to the end.
    1. Just like elements can have children... <div> <p>I'm a child of the div</p> </div>...so can components. Before a component can accept children, though, it needs to know where to put them. We do this with the <slot> element.
    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.
    1. As we've briefly seen already, you can listen to any event on an element with the on: directive:
  2. mdxjs.com mdxjs.com
    1. Before MDX, some of the benefits of writing Markdown were lost when integrating with JSX. Implementations were often template string-based which required lots of escaping and cumbersome syntax.
    1. But this is starting to become rather verbose at what could be a much simpler and more elegant solution if only there were another template helper that could do variable assignment.
  3. 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.
    2. A huge part of the value on an RFC is defining the problem clearly, collecting use cases, showing how others have solved a problem, etc.
    3. An RFC can provide tremendous value without the design described in it being accepted.
    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.

  4. Aug 2020
  5. 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.

  6. 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
  7. May 2020
    1. If you update your pages and push to github, people revisiting the pages who have already got cached copies will not get the new pages without actually cleaning their browser cache. How can a script running in a page determine that it is stale and force an update?
    1. Though GDPR is primarily a legal challenge, a technological response was also necessary to meet the transparency and control requirements that arise as a result of GDPR implementation.
    1. This kind of cookie-based data collection happens elsewhere on the internet. Giant companies use it as a way to assess where their users go as they surf the web, which can then be tied into providing better targeted advertising.
    2. For instance, Google’s reCaptcha cookie follows the same logic of the Facebook “like” button when it’s embedded in other websites—it gives that site some social media functionality, but it also lets Facebook know that you’re there.
  8. 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.

  9. 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.
    2. $format = 'There are %d monkeys in the %s';

      Compared to below:

      $format = 'The %s contains %d monkeys'
      
    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
  10. 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.
  11. Jan 2020
    1. You might be thinking––"a tool that allows me to write semantic and reusable queries? Sounds like Active Record". It's absolutley true that Active Record already provides a powerful query tool kit. But what happens when even simple queries stretch the bounds of Active Record's capabilities?
    1. Such verbose. Much code. Very bloat. Wow. We've lost all the awesome association introspection that ActiveRecord would otherwise have given us.
    1. I understand this is a relational division type problem, involving having and count. These posts describe what I want to do, but I can't figure out how to apply the examples to the particular case above:
    1. University of Pennsylvania has designed a new, cost-effective approach to recycle Yttrium.

      can be recycled.

    1. That's the problem with therapy: The people who really need help are often the onesnot trusting others (as a result of bad experiences)not recognizing they have a problem in the first placebeing too scared to open up (or leave the house)being too exhausted to goless likely to be able to afford it. (That's only an issue in countries without a proper health care system.)
    1. The strategy would focus on vigorous range management, soil and water conservation including tree-planting, limiting over-grazing and preventing deforestation. Improving water availability would also require additional construction of surface dams during rainy seasons and deep wells.

      solutions

    1. Rehabilitation and restoration approaches can help restore ecosystem services that have been lost due to desertification.

      desertification - prevention and restoration

  12. Dec 2019
    1. But it's not easy to open todo.txt, make a change, and save it—especially on your touchscreen device and at the command line. Todo.txt apps solve that problem.
    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:

  13. Nov 2019
    1. You might want developers building projects with this CMS to be able to change the behaviour of some UIs, or to be able to provide new components that can be consumed by the CMS. Those components can't easily be included in the JS bundle for the CMS, as it would require recompiling the shipped code with outside references.
    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

  14. Oct 2019
  15. Jul 2019
  16. 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.

    1. The governments of Ethiopia and Russia are set to expand business ties on multiple frontiers, ranging from nuclear energy development to Russians investment in mining in Ethiopia.

      That's interesting!

  17. Mar 2019
    1. It’s clear that we need to make the switch to clean, reliable sources of renewable energy like solar and wind. Unlike fossil fuels, renewables don’t add greenhouse gases to our atmosphere.

      We need to change to renewable energy

  18. Feb 2019
    1. Ecoaxis introduced industrial IoT solution for plastic processing machines which help to improve efficiency, productivity and quality. Our IoT (Internet of Things) gateway helps connect your various plastic processing machines and utilities to capture and securely transfer accurate data to the cloud for advanced analytics.

  19. Oct 2018
    1. if rich countries address the growing inequality of recent decades and manage the transition to the automated economy.”
  20. 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. To address the problems of serialized aggregation of input among large-scale groups, recent advancements collective intelligence have worked to replace serialized votes, polls, and markets, with parallel systems such as "human swarms" modeled after synchronous swarms in nature.
    1. Hierarchical classification systems can be slow to change, and are rooted in the culture and era that created them; in contrast, the flexibility of tagging allows users to classify their collections of items in the ways that they find useful,
    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.
    2. The annotated web embodies that pattern. Systems that embrace it will tend to work well with one another. Their outputs will be available to mine, crosslink, and remix, and those activities will drive collective improvement.
    3. The web we know is an information fabric woven of linked resources. By increasing the thread count of that fabric, the annotated web enables a new class of application for which selections in documents are first-class resources.
    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.
    1. The Web is distributed, with different systems working together to provide access to content. Annotations can be used to link those resources together, being referenced as the Body and Target
  21. Mar 2017
    1. Check out

      Some other problems can be found in the quoted works section, for this paper/web page. For example, have a look here.

  22. 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