- Last 7 days
-
www.youtube.com www.youtube.com
-
we think of kindness and compassion in a way that's very similar to the way scci other scientists think about language
for - comparison / key insight - compassion is like language (and also like genetics) - every infant has the biological capacity for these - Youtube - Tukdam talk - An Overview Of CHM’s Work On “Well-Being And Tukdam” - Prof. Richard J. Davidson
comparison / key insight - compassion is like language (and also like genetics) - compassion, like language and genetics is intrinsic to our human nature. Every newborn comes into the world with the biological capacity for kindness/compassion, language and for genetic expression. However, - how we actually turn out as adults depends on what variables exist in our environment - If we have a compassionate mOTHER, our Most significant OTHER, she will teach us compassion - just like a child raised in a community of other language speakers in the environment will enable the child to cultivate the language capacity and - without a community of language speakers, a feral infant will grow up not understanding language at all - a healthy environment triggers beneficial epigenetic processes - Again, the chinese saying is salient: (hu)man on earth, good at birth. The same nature, varies on nurture
to - feral children - Youtube - https://hyp.is/go?url=http%3A%2F%2Fdocdrop.org%2Fvideo%2FTKaS1RdAfrg%2F&group=world - Chinese saying: (hu)man on earth, good at birth. The same nature, varies on nurture - https://hyp.is/TWOEYrlUEe-Mxx_LHYIpMg/medium.com/postgrowth/rediscovering-harmony-how-chinese-philosophy-offers-pathways-to-a-regenerative-future-07a097b237a0
-
it confirms something found in the Buddhist tradition uh which is this notion of innate basic goodness that all human beings are born with Buddha nature we all have the seeds of kindness within us and scientific research strongly confirms that this is true
for - everyone is sacred - everyone has Buddha Nature - different ways of saying - Youtube - Tukdam talk - An Overview Of CHM’s Work On “Well-Being And Tukdam” - Prof. Richard J. Davidson - poverty mentality - Chinese saying: (hu)man on earth, good at birth. The same nature, varies on nurture
everyone is sacred - different ways of saying it - We are all born with Buddha nature - We are all born with innate goodness - Chinese saying: (hu)man on earth, good at birth. The same nature, varies on nurture - Not seeing this, we fall into poverty mentality, and all the associated forms of suffering it brings
to - Chinese saying: (hu)man on earth, good at birth. The same nature, varies on nurture - https://hyp.is/TWOEYrlUEe-Mxx_LHYIpMg/medium.com/postgrowth/rediscovering-harmony-how-chinese-philosophy-offers-pathways-to-a-regenerative-future-07a097b237a0
Tags
- to - Chinese saying: (hu)man on earth, good at birth. The same nature, varies on nurture
- everyone is sacred - everyone has Buddha Nature - different ways of saying - Youtube - Tukdam talk - An Overview Of CHM’s Work On “Well-Being And Tukdam” - Prof. Richard J. Davidson
- poverty mentality
- comparison / key insight - compassion is like language (and also like genetics) - every infant has the biological capacity for these - Youtube - Tukdam talk - An Overview Of CHM’s Work On “Well-Being And Tukdam” - Prof. Richard J. Davidson
- to - feral children - Youtube
- Chinese saying: (hu)man on earth, good at birth. The same nature, varies on nurture
Annotators
URL
-
- Dec 2024
-
www.youtube.com www.youtube.com
-
integration is what people are seeking that's why they're coming to you um they want they often people will seek me out because nothing else seems to have helped all the talk therapy all the Psychotherapy all the things that they've tried not that they are still in being influenced by the patterns that are affecting them uh so we we call this notion the integration imperative
for - definition - integration imperative - people seek integration - talk therapy - psychotherapy has not helped - patterns still there and affecting them - Youtube - Pre and Perinatal healing happens in layers - Kate White
-
-
medium.com medium.com
-
for - climate crisis - Medium article - climate communication - how climate change is framed to disempower you - Joe Brewer - 2024, Dec 4 - from - post - LinkedIn - climate crisis - climate communication - climate change discourse has been framed to disempower us - changing the story - so that grassroots, bottom-up initiatives can restore health to ecosystems - Joe Brewer, 2024, Dec 4 - from - Resilience article - A 'Transcender Manifesto" for a world beyond capitalism. A seed.
summary - A good article that offers an explanation of how language has potentially led the public to rely on top down actors to provide solutions to the climate crisis - Joe Brewer draws on his background as a frame analyst to analyse the role language and cognitive linguistics has played in framing the discourse on the climate crisis - He claims that this has led the public to look to elite top down actors to provide the solutions - This had led to a disempowerment of the public in actively participating in contributing too solutions - Indeed it could be why we have a sleeping giant - Reframing the story could have the opposite effect of inspiring people's to wake up and take action to regenerate nature within and surrounding the communities where people live.
from - post - LinkedIn - climate crisis - climate communication - climate change discourse has been framed to disempower us - changing the story - so that grassroots, bottom-up initiatives can restore health to ecosystems - Joe Brewer, 2024, Dec 4 - https://hyp.is/yvHstLfVEe-cyRN4sq09Ow/www.linkedin.com/posts/joe-brewer-4957925_earlier-this-week-i-lived-into-an-important-activity-7270035170328494080-E7Cq/ - from - Resilience article - A 'Transcender Manifesto" for a world beyond capitalism. A seed. - https://hyp.is/0NOdtLiREe--pwPfB1SmdA/www.resilience.org/stories/2024-04-18/a-transcender-manifesto-for-a-world-beyond-capitalism-a-seed/
-
there’s an idea that dealing with climate change is an issue for our institutions. Whereas you can see by clear evidence that our institutions have a track record of completely failing to address climate change at all levels throughout the entire history of the climate discourse.
for - quote - framing element - media frames climate crisis as issue for the elites to solve - but it has been a complete failure - Joe Brewer
Tags
- from - post - LinkedIn - climate crisis - climate communication - climate change discourse has been framed to disempower us - changing the story - so that grassroots, bottom-up initiatives can restore health to ecosystems - Joe Brewer, 2024, Dec 4
- from - Resilience article - A 'Transcender Manifesto" for a world beyond capitalism. A seed.
- climate crisis - Medium article - climate communication - how climate change is framed to disempower you - Joe Brewer - 2024, Dec 4
- quote - framing element - media frames climate crisis as issue for the elites to solve - but it has been a complete failure - Joe Brewer
Annotators
URL
-
-
www.linkedin.com www.linkedin.com
-
What I did this week was sit down and record a video explaining how the climate change discourse has been framed to disempower us -- and what we can do about it by focusing on grassroots organizing to restore health to our local ecosystems
for - post - LinkedIn - climate crisis - climate communication - climate change discourse has been framed to disempower us - changing the story - so that grassroots, bottom-up initiatives can restore health to ecosystems - Joe Brewer, 2024, Dec 4 - to - Medium article - How Climate Change is framed to Disempower you - Joe Brewer - 2024, Dec 4
to - Medium article - How Climate Change is framed to Disempower you - Joe Brewer - 2024, Dec 4 - https://hyp.is/XoQoRLfVEe-ZMIMjZheLLA/medium.com/@joe_brewer/how-climate-change-is-framed-to-disempower-you-01d871413487
Tags
- to - Medium article - How Climate Change is framed to Disempower you - Joe Brewer - 2024, Dec 4
- post - LinkedIn - climate crisis - climate communication - climate change discourse has been framed to disempower us - changing the story - so that grassroots, bottom-up initiatives can restore health to ecosystems - Joe Brewer, 2024, Dec 4
Annotators
URL
-
-
www.youtube.com www.youtube.com
-
in my view it's absolutely clear that even talking about this now I'm not saying we shouldn't talk about it and this is a bit dilemma but even talking about it this will already be feeding into Delayed Action elsewhere in the same way that negative emission Technologies sucking CO2 out the air has actually undermined the need for Action that has undermined the scale of the challenge that the climate scientists the academics the experts have said is now necessary
for - climate crisis - plan B - always has tendency to undermine Plan A and cause delayed action - ie. Negative Emissions Technologies - Kevin Anderson
-
- Nov 2024
-
www.nature.com www.nature.com
-
Behavioral change is a key mitigation strategy since demand-side options have a high mitigation potential7. Yet, it has only recently started being discussed in the literature, compared to traditionally studied supply-side solutions.
for - key insight - behavioral change is a key demand-side mitigation strategy yet has only been recently discussed - supply side solutions have been the main focus - Pizziol & Tavoni, 2024
-
-
www.youtube.com www.youtube.com
-
the reason why the United States is so hegemonic why it can afford to be the big bully around the world is because of the Monopoly of the payment system
for - quote - the US is hegemonic and the world bully because it has a monopoly on the payment system - it is the world's reserve currency - Yanis Varoufakis
-
- Oct 2024
-
www.youtube.com www.youtube.com
-
50:32 Currency is the governments I.O.U. 52:04 When the government gets its tax, it no longer has the debt so it burns the currency which was an I.O.U.
-
46:45 Money is an ACCOUNTING DEVICE and it always has two sides
Tags
- When tax is paid
- Money is an ACCOUNTING DEVICE and it always has two sides
- The dollar bill is a debt of the federal reserve
- Federal Reserves are on the Liability side of its balance sheet
- it no longer has teh debt
- The currency itself is the governments debt
- When the government gets its tax, it no longer has the debt so it burns the currency which was an I.O.U.
- The US Dollar is a US Tax Credit
- Currency is the governments I.O.U.
Annotators
URL
-
- Sep 2024
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
Here's example code which works around the lack of a ??= operator in the wild:
-
-
github.com github.com
-
However, this idiom is only an approximation, and introduces subtle bugs when we try to allow false values:
-
false is a perfectly non-nil object, and you're excluding it out of convenience!
-
-
www.youtube.com www.youtube.com
-
it has to be taken as a postulate
for - answer - It has to be taken as a postulate - Federico Faggin - to question - how can we test that consciousness is the foundation of reality?
-
- Aug 2024
-
www.youtube.com www.youtube.com
-
the words know thyself were carved above the entrance of the temple temple of apollo in delphi and stand as such at the dawn of western civilization and i would suggest that at this hour of our civilization this recognition of the essential nature of our self and therefore the recognition of the essential nature of all people all animals and all things has perhaps never been more important than it is now
for - quote - know thyself - recognizing our true nature - has never been more important than at this hour of our civilization - Rupert Spira - Deep Humanity - know thyself - rekindling wonder - awakening to our true nature - Rupert Spira
quote - know thyself - recognizing our true nature - has never been more important than at this hour of our civilization - Rupert Spira - (see below) - The words "know thyself" were carved above the entrance of the temple temple of apollo in delphi and stand as such at the dawn of western civilization and - I would suggest that at this hour of our civilization, - this recognition of the essential nature of our self and therefore - the recognition of the essential nature of - all people - all animals and - all things - has perhaps never been more important than it is now
-
- May 2024
-
docdrop.org docdrop.org
-
le programme BARKLEY fait partie des recommandations de bonnes pratiques de la HAS, donc Haute Autorité de Santé parce qu’il a été mis au point dans les années 50, 00:02:46 si tu veux, on a un certain recul, ça fait un petit moment qu'il existe, donc on a pu le tester
-
-
suu.instructure.com suu.instructure.com
-
Failure to assemble an appropriate IEP team:
Tags
Annotators
URL
-
-
-
what formed the basis all the way from the 1950s to now so over a period 00:25:25 of over 70 years has really to be undone it has to be revised fundamentally root and Branch there can't be compromises about it
for - quote - 70 years of evolutionary biology has to be undone
-
-
-
a more holistic approach to the organism rather than a reductionist one I'm afraid we have to because 00:26:36 reductionism has failed
for - quote - reductionism has failed - Denis Noble
-
- Feb 2024
-
docdrop.org docdrop.org
-
Résumé de la vidéo [00:00:03][^1^][1] - [00:23:44][^2^][2] : Ce webinaire présente le guide d'évaluation pour les enfants en danger ou risque de danger, élaboré par la Haute Autorité de Santé en France. Il explique l'importance d'une approche pluridisciplinaire et interactive dans l'évaluation, en mettant l'accent sur les besoins fondamentaux de l'enfant et la capacité des parents à y répondre.
Points forts : + [00:00:03][^3^][3] Introduction du webinaire * Présentation des intervenants et du sujet + [00:01:31][^4^][4] Contexte de l'élaboration du guide * Réponse aux difficultés identifiées dans divers rapports + [00:02:09][^5^][5] Objectifs du guide * Améliorer la qualité des évaluations et harmoniser les pratiques + [00:03:02][^6^][6] Structure du guide * Trois livres avec un préambule et une boîte à outils + [00:04:23][^7^][7] Le Livre 3 : Guide d'accompagnement à l'évaluation * Destiné aux professionnels évaluant la situation d'un enfant + [00:18:12][^8^][8] Construction de la conclusion * Caractérisation de la situation et établissement des préconisations Résumé de la vidéo [00:23:47][^1^][1] - [00:50:32][^2^][2]:
Cette partie de la vidéo aborde le guide d'évaluation pour les enfants en danger ou risque de danger, soulignant l'importance des formations, l'application des recommandations et la collaboration entre professionnels pour une évaluation efficace.
Points clés: + [00:24:01][^3^][3] Formation et appropriation * Importance des formations continues * Appropriation des recommandations par les professionnels + [00:25:00][^4^][4] Guide d'évaluation et loi * Distinction entre recommandations et obligations légales * Les recommandations visent à accompagner les professionnels + [00:26:24][^5^][5] Santé et évaluation * La santé est centrale dans l'évaluation * Recommandation d'une approche binôme avec un professionnel de santé + [00:31:01][^6^][6] Antécédents et situation familiale * Évaluation globale incluant les antécédents familiaux * Importance des événements passés dans l'évaluation actuelle + [00:37:23][^7^][7] Compétences parentales * Définition et exemples de compétences parentales * Impact des compétences sur les besoins fondamentaux de l'enfant + [00:39:27][^8^][8] Organisation de l'évaluation * Gestion des situations avec parents résidant dans différents départements * Stratégies pour une évaluation coordonnée et efficace Résumé de la vidéo [00:50:35][^1^][1] - [00:58:51][^2^][2]: La vidéo aborde l'évaluation des enfants en danger ou à risque, en mettant l'accent sur la collaboration interdisciplinaire et l'importance de l'implication des acteurs territoriaux. Elle souligne également l'accessibilité du guide d'évaluation pour tous les professionnels et la nécessité de l'accord parental pour échanger avec l'enfant.
Points forts: + [00:50:35][^3^][3] Évaluation des enfants * Importance de la collaboration * Implication des acteurs territoriaux + [00:53:18][^4^][4] Accessibilité du guide * Utile pour tous les professionnels * Accord parental nécessaire + [00:57:31][^5^][5] Suivi et retours d'expérience * Comité de suivi pour le cadre de référence * Retour d'expérience prévu dans 18 mois
-
-
docdrop.org docdrop.org
-
Résumé vidéo [00:00:03][^1^][1] - [00:22:59][^2^][2]:
Ce webinaire se concentre sur le soutien à la scolarité des enfants en situation de handicap ou protégés, en présentant des recommandations pour les professionnels du secteur social et médico-social.
Points forts: + [00:00:03][^3^][3] Introduction * Présentation des intervenants et objectifs du webinaire + [00:01:07][^4^][4] Principes généraux * Importance du droit à l'éducation et des défis rencontrés + [00:04:21][^5^][5] Participation de l'enfant * Encourager l'enfant à être acteur de sa scolarité + [00:08:00][^6^][6] Préparation aux réunions * Comment préparer et impliquer l'enfant dans les réunions scolaires + [00:17:19][^7^][7] Implication des parents * L'importance du rôle des parents dans la scolarité de l'enfant + [00:21:06][^8^][8] Exemples concrets * Propositions pour soutenir l'implication des parents et des enfants Résumé de la vidéo [00:23:00][^1^][1] - [00:46:10][^2^][2]: La vidéo aborde le soutien à la scolarité des enfants handicapés et en protection de l'enfance. Elle souligne l'importance de l'implication des jeunes, des parents, et des établissements dans le parcours scolaire. Elle recommande une approche collaborative avec la communauté éducative pour répondre aux besoins spécifiques des enfants et favoriser leur bien-être et réussite scolaire.
Points clés: + [00:23:00][^3^][3] Anticipation et adaptation * Importance de l'anticipation * Définition des modalités d'accompagnement + [00:23:59][^4^][4] Rôle des établissements * Diagnostic des ressources internes * Organisation des ressources pour la scolarité + [00:26:02][^5^][5] Inscription dans le projet institutionnel * Scolarité comme axe essentiel * Objectifs et ressources précisés + [00:27:01][^6^][6] Suivi individuel * Importance du référent scolaire * Coordination avec la communauté éducative + [00:28:00][^7^][7] Communauté éducative élargie * Inclusion de divers acteurs éducatifs * Coopération et partenariats solides + [00:31:57][^8^][8] Mission d'appui ressources * Partage d'expertise * Sensibilisation et anticipation des problématiques Résumé de la vidéo [00:46:12][^1^][1] - [01:08:17][^2^][2] : Ce segment du webinaire aborde le rôle crucial du référent scolarité dans le soutien à la scolarité des enfants handicapés. Il souligne l'importance de la coordination entre les différents acteurs et la nécessité d'une communication claire pour éviter la confusion et soutenir efficacement les parcours scolaires.
Points forts : + [00:46:12][^3^][3] Rôle du référent scolarité * Coordination et sensibilisation * Suivi des parcours scolaires + [00:48:01][^4^][4] Questions et réponses * Clarification des missions * Importance de la communication + [00:49:15][^5^][5] Différences entre les rôles * Référent scolarité vs enseignant référent * Facilitation des liens entre écoles et établissements + [00:51:06][^6^][6] Transmission d'informations * Importance de la pertinence et de la confidentialité * Respect des données personnelles + [00:57:01][^7^][7] Implication des parents * Importance cruciale dans la scolarité * Prévention et partenariat dès le début + [01:07:56][^8^][8] Travail avec les familles * Alliance avec les familles pour la réussite scolaire * Importance de l'approche positive et du partenariat Résumé de la vidéo [01:08:19][^1^][1] - [01:25:26][^2^][2]: La vidéo aborde le soutien à la scolarité des enfants handicapés, en mettant l'accent sur la collaboration entre les familles, les éducateurs et les institutions. Elle souligne l'importance de comprendre les défis, de fixer des objectifs communs et de travailler ensemble pour surmonter les difficultés.
Points forts: + [01:08:19][^3^][3] Collaboration essentielle * Importance de l'alliance avec les partenaires * Comprendre les stratégies de défense des familles + [01:09:06][^4^][4] Rassurer et accompagner * Sécuriser les familles pendant les périodes difficiles * Travailler sur des objectifs communs + [01:10:16][^5^][5] Gestion des émotions et comportements * Thème commun entre enseignants et éducateurs * Travailler ensemble sur des problématiques spécifiques + [01:13:10][^6^][6] Rôle de la communauté éducative * Chaque acteur a un rôle dans la scolarité de l'enfant * Importance de la communication entre tous les acteurs + [01:17:01][^7^][7] Évaluation et prévention de l'absentéisme * Importance de l'évaluation pour comprendre l'absentéisme * Agir dès les premiers signes pour éviter l'installation de l'absentéisme + [01:20:57][^8^][8] Utilisation d'outils pour le suivi * Nécessité d'outils adaptés pour les parents et les élèves * Diagnostic pour identifier les besoins et soutenir la scolarité
-
-
docdrop.org docdrop.org
-
Résumé de la vidéo [00:00:01][^1^][1] - [00:22:57][^2^][2]: Ce webinaire aborde la détection et la compréhension des violences conjugales. Il présente des stratégies pour identifier et aider les victimes, soulignant l'importance de la formation des professionnels de santé.
Points forts: + [00:00:01][^3^][3] Introduction du webinaire * Objectif de sensibilisation * Importance de la formation + [00:03:16][^4^][4] Cycle de la violence * Stratégie de l'agresseur * Impact sur les victimes + [00:11:17][^5^][5] Mécanisme d'emprise * Contrôle coercitif * Conséquences psychologiques + [00:20:11][^6^][6] Expérience d'un médecin * Importance du dépistage * Signes d'alerte Résumé de la vidéo [00:22:59][^1^][1] - [00:48:26][^2^][2]:
Cette partie du webinaire aborde la détection et l'accompagnement des victimes de violences conjugales, en mettant l'accent sur l'importance de la communication bienveillante et du respect des décisions des patientes par les professionnels de santé. Il souligne également le rôle crucial des soins primaires dans le repérage des victimes et la nécessité d'une prise en charge pluridisciplinaire.
Points clés: + [00:23:01][^3^][3] Détection des violences * Importance du dépistage systématique + [00:23:24][^4^][4] Impact sur les enfants * Enfants témoins sont aussi victimes + [00:24:14][^5^][5] Techniques de communication * Entretien motivationnel comme outil d'accompagnement + [00:25:22][^6^][6] Ressources pour les professionnels * Clés pour comprendre et accompagner les victimes + [00:27:08][^7^][7] Responsabilités médicales * Déontologie du médecin généraliste dans le repérage et l'accompagnement + [00:33:14][^8^][8] Engagement sociétal * Violence conjugale comme pathologie sociétale Résumé de la vidéo 00:48:28 - 00:57:04 : La partie 3 de la vidéo aborde les stratégies pour identifier et gérer les cas de violences conjugales, en particulier pendant la grossesse. Les experts discutent de l'importance de la délicatesse lors de l'interrogation des victimes, de la nécessité de reconnaître les signes de violence psychologique et économique, et de l'importance des certificats médicaux dans les procédures judiciaires.
Points forts : + [00:48:28][^1^][1] Identification des violences * Importance de la confidentialité * Reconnaissance des signes subtils + [00:49:01][^2^][2] Comportement du conjoint * Gentillesse excessive peut être un signe * Nécessité d'éloigner le conjoint intrusif + [00:50:19][^3^][3] Évolution des agresseurs * Difficulté à changer les comportements * Besoin de temps et de thérapie + [00:51:36][^4^][4] Questions juridiques * Violences psychiques et plaintes * Signalements obligatoires durant la grossesse + [00:54:33][^5^][5] Certificats médicaux * Obligation de fournir sur demande * Importance de la neutralité et précision + [00:56:22][^6^][6] Retrait des plaintes * Comprendre le cycle de violence * Accepter les décisions des victimes
-
-
has-sante.fr has-sante.fr
-
Feuille de route santé-environnement Renforcer l’implication de la HAS sur les enjeux environnementaux dans le cadre de ses missions
-
-
michaelmann.net michaelmann.net
-
- for: annotate, Michael Mann - critique of James Hansen 2023 paper, climate crisis - James Hansen - Michael Mann, suggestion - debate - james hansen - michael mann, question - has Hansen responded to Mann yet?
suggestion - can we arrange an online debate between James Hansen and Michael Mann?
-
- Jan 2024
-
mongoosejs.com mongoosejs.com
-
Instance methods Instances of Models are documents. Documents have many of their own built-in instance methods. We may also define our own custom document instance methods. // define a schema const animalSchema = new Schema({ name: String, type: String }, { // Assign a function to the "methods" object of our animalSchema through schema options. // By following this approach, there is no need to create a separate TS type to define the type of the instance functions. methods: { findSimilarTypes(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); } } }); // Or, assign a function to the "methods" object of our animalSchema animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); }; Now all of our animal instances have a findSimilarTypes method available to them. const Animal = mongoose.model('Animal', animalSchema); const dog = new Animal({ type: 'dog' }); dog.findSimilarTypes((err, dogs) => { console.log(dogs); // woof }); Overwriting a default mongoose document method may lead to unpredictable results. See this for more details. The example above uses the Schema.methods object directly to save an instance method. You can also use the Schema.method() helper as described here. Do not declare methods using ES6 arrow functions (=>). Arrow functions explicitly prevent binding this, so your method will not have access to the document and the above examples will not work.
Certainly! Let's break down the provided code snippets:
1. What is it and why is it used?
In Mongoose, a schema is a blueprint for defining the structure of documents within a collection. When you define a schema, you can also attach methods to it. These methods become instance methods, meaning they are available on the individual documents (instances) created from that schema.
Instance methods are useful for encapsulating functionality related to a specific document or model instance. They allow you to define custom behavior that can be executed on a specific document. In the given example, the
findSimilarTypes
method is added to instances of theAnimal
model, making it easy to find other animals of the same type.2. Syntax:
Using
methods
object directly in the schema options:javascript const animalSchema = new Schema( { name: String, type: String }, { methods: { findSimilarTypes(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); } } } );
Using
methods
object directly in the schema:javascript animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); };
Using
Schema.method()
helper:javascript animalSchema.method('findSimilarTypes', function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); });
3. Explanation in Simple Words with Examples:
Why it's Used:
Imagine you have a collection of animals in your database, and you want to find other animals of the same type. Instead of writing the same logic repeatedly, you can define a method that can be called on each animal instance to find similar types. This helps in keeping your code DRY (Don't Repeat Yourself) and makes it easier to maintain.
Example:
```javascript const mongoose = require('mongoose'); const { Schema } = mongoose;
// Define a schema with a custom instance method const animalSchema = new Schema({ name: String, type: String });
// Add a custom instance method to find similar types animalSchema.methods.findSimilarTypes = function(cb) { return mongoose.model('Animal').find({ type: this.type }, cb); };
// Create the Animal model using the schema const Animal = mongoose.model('Animal', animalSchema);
// Create an instance of Animal const dog = new Animal({ type: 'dog', name: 'Buddy' });
// Use the custom method to find similar types dog.findSimilarTypes((err, similarAnimals) => { console.log(similarAnimals); }); ```
In this example,
findSimilarTypes
is a custom instance method added to theAnimal
schema. When you create an instance of theAnimal
model (e.g., a dog), you can then callfindSimilarTypes
on that instance to find other animals with the same type. The method uses thethis.type
property, which refers to the type of the current animal instance. This allows you to easily reuse the logic for finding similar types across different instances of theAnimal
model.
Tags
Annotators
URL
-
- Dec 2023
-
developers.google.com developers.google.com
-
A personalized button gives users a quick indication of the session status, both on Google's side and on your website, before they click the button. This is especially helpful to end users who visit your website only occasionally. They may forget whether an account has been created or not, and in which way. A personalized button reminds them that Sign In With Google has been used before. Thus, it helps to prevent unnecessary duplicate account creation on your website.
first sighting: sign-in: problem: forgetting whether an account has been created or not, and in which way
-
- Nov 2023
-
elifesciences.org elifesciences.org
-
- Sep 2023
-
-
This allows reading your email offline without the need for your mail reader (MUA) to support IMAP operations. Need an attachment from a message without internet connection? No problem, the message is still there.
-
-
www.ncbi.nlm.nih.gov www.ncbi.nlm.nih.gov
-
Recent work has revealed several new and significant aspects of the dynamics of theory change. First, statistical information, information about the probabilistic contingencies between events, plays a particularly important role in theory-formation both in science and in childhood. In the last fifteen years we’ve discovered the power of early statistical learning.
The data of the past is congruent with the current psychological trends that face the education system of today. Developmentalists have charted how children construct and revise intuitive theories. In turn, a variety of theories have developed because of the greater use of statistical information that supports probabilistic contingencies that help to better inform us of causal models and their distinctive cognitive functions. These studies investigate the physical, psychological, and social domains. In the case of intuitive psychology, or "theory of mind," developmentalism has traced a progression from an early understanding of emotion and action to an understanding of intentions and simple aspects of perception, to an understanding of knowledge vs. ignorance, and finally to a representational and then an interpretive theory of mind.
The mechanisms by which life evolved—from chemical beginnings to cognizing human beings—are central to understanding the psychological basis of learning. We are the product of an evolutionary process and it is the mechanisms inherent in this process that offer the most probable explanations to how we think and learn.
Bada, & Olusegun, S. (2015). Constructivism Learning Theory : A Paradigm for Teaching and Learning.
Tags
Annotators
URL
-
-
www.sciencedirect.com www.sciencedirect.com
-
Bacteriophages are virus that can infect bacteria host. Phages were used to treat infectious disease
-
- May 2023
- Mar 2023
-
-
We're going to define a has-many relationship for a user's second factors, to be able to support multiple second factor types, e.g. TOTP, backup codes, or hardware keys.
-
- Jan 2023
-
hypothes.is hypothes.is
-
Just as the wealthiest 1 percent of Americans gobble up a disproportionate share of the nation’s economic resources and rejigger our institutions to funnel them benefits and power, so too do our educational 1 percent suck up a disproportionate share of academic
opportunities, and threaten to reconfigure academic culture so that it both mimics and serves their values
-
-
-
High Country News, Rebecca Nagle reported that for every dollar the U.S. government spent on eradicating Native languages in past centuries, it has spent less than 7 cents on revitalizing them in the 21st century.
!- United States indigenous language : ststistic - US Govt spent less than 7 cents for every dolloar spent eradicating indigenous language in the past - Citation : report by Rebecca Nagle in the High Country News: https://www.hcn.org/issues/51.21-22/indigenous-affairs-the-u-s-has-spent-more-money-erasing-native-languages-than-saving-them
-
- Jul 2022
-
catamphetamine.github.io catamphetamine.github.io
-
Windows 10 currently (01.01.2020) doesn't support Unicode country flags, and displays two-letter country codes instead of emoji flag images.
-
- Feb 2022
-
www.bloomberg.com www.bloomberg.com
-
This would appear to be a case of the emperor has no clothes, but in reality it's a useless, and overly expensive hat—one which she's sold to herself.
-
- Nov 2021
- Aug 2021
-
softwareengineering.stackexchange.com softwareengineering.stackexchange.com
-
Someone could mean to say different thing by each of them, but there's hardly any common agreement.
-
- Jun 2021
-
hypothes.is hypothes.is
-
Giving peers permission to engage in dialogue about race and holding a lofty expectation that they will stay engaged in these conversations throughout the semester or year is the first of the four agreements for courageous conversation. While initially, some participants may be eager to enter into these conversations, our experience indicates that the more personal and thus risky these topics get, the more difficult it is for participants to stay committed and engaged." Singleton and Hays
-
"In Colormute, Pollock(2004) makes specific suggestions for addressing the fear of talking about race: “In all conversations about race, I think, educators should be prepared to do three things:ask provocative questions, navigate predictable debates,and talkmore about talking”(p. 221, italics in original)"
-
"I am also concerned that despite the best of intentions many of us have not considered adequately what social justice means and entails. I worry that social justice may become simply a “topic du jour” in music education, a phrase easily cited and repeated without careful examination of the assumptions and actions it implicates. That can lead to serious misunderstandings."
Tags
- Having explicit and concise rules for the conversation is important to create a safe space for more participation in the tougher questions. The facilitator has to be consistently doing this.
- This is exactly why I'm taking this class. The phrase Social Justice along with Multiculturalism has changed SO MUCH
- "navigate predictable debates" has been a helpful tool to me when talking to my own students about race.
Annotators
URL
-
-
twitter.com twitter.com
-
2021-02-19
-
-
twitter.com twitter.com
-
2021-02-07
-
-
www.channel4.com www.channel4.com
-
evilmartians.com evilmartians.com
-
Disclaimer: This article is being regularly updated with the best recommendations up to date, take a look at a Changelog section.
-
- May 2021
-
stackoverflow.com stackoverflow.com
-
[gripe]Email is supposed to be a text-only medium. I can concede a need for rich text - the occasional bold or italic - but background pictures are just needless bloat.[/gripe]
-
-
hashnode.com hashnode.com
-
Why are there so many programming languages and frameworks? Everyone has their own opinion on how something should be done. Some of these systems, like AOL, Yahoo, etc... have been around for a decade, and probably not updated much.
-
- Apr 2021
-
store.steampowered.com store.steampowered.com
-
That should make for interesting puzzles, except they're timed, your guys never stop moving (why not?), and the camera and controls mean it's very hard to translate intent into the game world.
-
-
store.steampowered.com store.steampowered.com
-
Game Saves After completion of each level
The things that are important / worth mentioning to different people. I agree with this one.
-
-
stackoverflow.com stackoverflow.com
-
That's true although it depends on intentions. My approach is to always create a unique and timestamped log file. The other is to append. Both ways are 'logrotateable'. I prefer separate files which require less parsing but as I said, whatever makes your boat floating :)
-
-
-
Certainly, if for some reason Python doesn't suit you either you can install, let us say, PHP language. Well, I think you realize that the searching of suitable solution can go on for a long time and may be only MS Visual Basic will be lacking in the list of results. So, I believe the time has already approached to put it all aside and come to to the Point.
-
-
www.kickstarter.com www.kickstarter.com
-
#2 Non-real-time variant - What about groups who don't like that real-time part of the game? We really think that is the best way to play, but we realize it isn't a fun or even possible option for everyone. We're including an alternative rule that removes all the speed elements and is still fun (in a different way).
-
-
boardgamegeek.com boardgamegeek.com
-
I strongly prefer this over Carcassonne. It plays faster (I don't want a tile laying game to go for more than 30 mins or so) and I happen to like the limited options. Carcassonne just gets on my nerves because I just don't view selecting between so many placement options to be that interesting. Obviously, YMMV. Ditto the previous statement, it's different than Carcassonne. And that's why I like it.
-
-
www.metacritic.com www.metacritic.com
-
Taken as a whole it disappoints, which is a shame as, beneath the adorable exterior, the concept has far more potential than what has been achieved.
-
-
careerfoundry.com careerfoundry.com
-
While there are certain things most users will anticipate with any interface, there may be expected affordances that are unique to your users and the cohort they represent
-
-
stackoverflow.com stackoverflow.com
-
I respectfully disagree with your assessment. You are referencing the quote "It's not appropriate to use the aside element just for parentheticals, since those are part of the main flow of the document." However the OP specifically said that they are looking for a semantic element for "a note that may be useful to read at a given point of a tutorial, but is not part of the main tutorial flow". That is what "aside" is for. It's not part of the main content flow.
That's a tough one. I can see it both ways.
-
-
store.steampowered.com store.steampowered.com
-
I would be really proud to show it off it was "my baby", but as a player, it's incredibly boring.
-
-
store.steampowered.com store.steampowered.com
-
I must say I am quite surprised by so many negative reviews. To me this little game is pure genius. There's something about it you just can't put your finger on... something strange, hard to define. The premise is utterly simple - roll left or right - but the game keeps adding new possibilities every level. And it doesn't make a fuzz about it. "Here's something completely new, it's there, who cares". The mechanics and physics are spot on and the game explores them brilliantly. Visually it's beautiful and the characters you interact with are strange and fascinating. A feeling of novelty and discovery permeates the game from start to finish.Here's my suggestion: watch some videos of the gameplay and see if it bothers you. If not, go for it, for you've barely seen the tip of the iceberg.
-
- Mar 2021
-
github.com github.com
-
ProMotion is a RubyMotion gem that makes iOS development more like Ruby and less like Objective-C.
-
-
store.steampowered.com store.steampowered.com
-
This is gonna be an uphill slog and I'm really excited for it. If you know that's what you're getting into (a long slow grind on puzzles that may not fit well together), this could be great - especially if you're invested in both the work and the community (posting on here helps loads with games like this!) Your mileage may vary!
-
-
stackoverflow.com stackoverflow.com
-
As to why both is_a? and kind_of? exist: I suppose it's part of Ruby's design philosophy. Python would say there should only be one way to do something; Ruby often has synonymous methods so you can use the one that sounds better. It's a matter of preference.
-
-
trailblazer.to trailblazer.to
-
With all this “monetization” happening around Trailblazer, we will also make sure that all free and paid parts of the project grow adult and maintan an LTS - or long-term support - status. Those are good news to all you users out there having been scared to use gems of this project, not knowing whether or not they’re being maintained, breaking code in the future or making your developers addicted to and then cutting off the supply chain. Trailblazer 2.1 onwards is LTS, and the last 1 ½ years of collaboration have proven that.
-
-
dry-rb.org dry-rb.org
-
Dry::Types::Undefined
Cool! I workaround for the fact that Ruby has no undefined type distinct from nil.
-
-
www.chevtek.io www.chevtek.io
-
Of course how each developer interprets and applies these very generalized guidelines is subjective and will vary from person to person.
-
-
www.sitepoint.com www.sitepoint.com
-
Again, this is all opinion-based, and due to the sheer number of developers who rely on this technology as their bread and butter, sub-communities and religiousness forms around patterns, anti-patterns, practices, de-facto standards, micro-packages, polyfills, frameworks, build-tools, etc.
-
For instance, those who prefer classical inheritance may enjoy the addition of the class keyword, while others may reject it as conflicting with the idea of a prototypical inheritance model.
-
JavaScript, as a language, has some fundamental shortcomings — I think the majority of us agree on that much. But everyone has a different opinion on what precisely the shortcomings are.
-
-
As to opinions about the shortcomings of the language itself, or the standard run-times, it’s important to realize that every developer has a different background, different experience, different needs, temperament, values, and a slew of other cultural motivations and concerns — individual opinions will always be largely personal and, to some degree, non-technical in nature.
Tags
- fragmented community
- software trends
- micropackages
- what is important/necessary for one person may not be for another
- JavaScript ecosystem
- everyone has different opinions
- microlibraries
- good point
- runtime environment
- annotation meta: may need new tag
- +0.9
- software project created to address shortcomings in another project
- de facto
- JavaScript
- object-oriented programming: prototypical inheritance
- disadvantages/drawbacks/cons
- reaction / reacting to
- de facto standard
- object-oriented programming
- rejecting an idea
- anti-pattern
- polyfill
- object-oriented programming: classical inheritance
- JavaScript: flaws/shortcomings/cons
- non-technical reasons
- everyone has different background/culture/experience
- culture
- software preferences are personal
- everyone has different preferences
Annotators
URL
-
-
jangawolof.org jangawolof.orgPhrases4
-
Am na ñetti doom.
am v. -- to exist, to have.
na -- 1. pr. circ. so, defined distant. How? 'Or' What. 2. function indicator. As.
ñett+i -- three. 3️⃣
doom ji -- child by descent; doll. 👶🏽
-
Faatu aj na laytanam.
Faatu a placé sa calebasse en haut.
faatu -- a feminine name of Arabic origin. 👩🏽
aj v. -- place on top 🔝, perch.
na -- her (?).
laytan+am (laytan) gi -- small calabash (to have).
-
Aju ren gi tàng na lool.
Le pèlerinage de cette année a été très pénible.
aj+u (aj) gi -- pilgrimage to Mecca. 🕋
ren ji -- current year; this year. 🗓
gi -- the.
tàng v. -- be hot 🥵; be cranky, be snappy 😡.
na -- has been (?).
lool adv. -- very, much, too much.
-
Ab paaka la yore.
Il a un couteau sur lui.
ab -- a.
paaka bi -- (Portuguese) knife. 🔪
la -- he (?).
yore v. -- to have under his dependence, to have in his charge, to have in the hands.
-
-
github.com github.com
-
Responders don't use valid? to check for errors in models to figure out if the request was successful or not, and relies on your controllers to call save or create to trigger the validations.
-
- Feb 2021
-
cherrycreekschools.instructure.com cherrycreekschools.instructure.com
-
why don't the teachers look at this and see that the cause is racism?
Tags
Annotators
URL
-
-
github.com github.com
-
Any idea @AaronLasseigne if this is mergeable?
-
-
en.wikipedia.org en.wikipedia.org
-
For the usage in society, see Second-class citizen.
Ironic that this reference is ostensibly about the usage of "first-class citizen" in society, yet it links to a seemingly-mismatched (by name only, that is) article, entitled "second-class citizen".
Ironic that the first-class (unqualified) article is about the figurative meaning of "citizen" used in computer science, and that the page describing first-class and second-class status of the more literal citizens in society is relegated to what I kind of think is a second-class position in the encyclopedia (because it takes the #2 position numerically, even though it is (at least as is implied in this reference) also about first-class citizens (though the word "first-class" does not appear a single time in that article, so maybe this reference is the one that is more ironic/incorrect).
-
-
en.wikipedia.org en.wikipedia.org
-
The spelling "internet" has become often used, as the word almost always refers to the global network; the generic sense of the word has become rare in non-technical writings.
rare to see "internet" used to mean an internetwork in the general sense
-
-
-
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.
-
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.
-
- Dec 2020
-
github.com github.com
-
Can this be merged please, this fixes a problem I have
-
-
github.com github.com
-
May I ask what is holding this back?
-
- Nov 2020
-
uxdesign.cc uxdesign.cc
-
Secondary buttons are the alternative we give users to the primary action.
-
-
github.com github.com
-
@monkeythedev can your work be used already? I would suggest not yet, i'm still doing core changes every day
-
-
opinionatedgamers.com opinionatedgamers.com
-
Ultimately, I’m an “are there tough decisions?” kind of gamer, and on that matter I’m torn. There are some turns and some positions and some situations that will play themselves. Sometimes obviously so, and sometimes after you think it out.
-
-
github.com github.com
-
I see this issue has 2 open PR's is this going to be finalized anytime soon?
-
-
github.com github.com
-
github.com github.com
-
Furthermore, how come there's a PR open since 3 months, at what seems to be the authoritative repo for Svelte?
-
-
github.com github.com
- Oct 2020
-
www.merriam-webster.com www.merriam-webster.com
-
medium.com medium.com
-
I know that it is the matter of taste and a debatable thing, I find JSX and regular javascript flow operators a lot more readable than any sort of {#blocks} and directives.
-
-
-
Although I'm starting to regret even posting this because I feel like it cheapens what we've accomplished.
-
- Sep 2020
-
medium.com medium.com
-
I think I know why: it’s because the small modules philosophy favours library authors (like Sindre) at the ultimate expense of library users.
-
-
www.bbc.co.uk www.bbc.co.uk
-
-
2020-09-21
Tags
Annotators
URL
-
-
www.nature.com www.nature.com
-
journals.plos.org journals.plos.org
-
2020-09-21
Tags
Annotators
URL
-
-
www.nature.com www.nature.com
-
2020-09-21
Tags
Annotators
URL
-
-
www.huffingtonpost.co.uk www.huffingtonpost.co.uk
-
psyarxiv.com psyarxiv.com
-
2020-09-21
-
-
psyarxiv.com psyarxiv.com
-
2020-09-22
-
-
psyarxiv.com psyarxiv.com
-
2020-09-22
-
-
psyarxiv.com psyarxiv.com
-
2020-09-22
-
-
twitter.com twitter.com
-
2020-09-22
Tags
Annotators
URL
-
-
twitter.com twitter.com
-
2020-09-22
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
or (again, matter of preference)
-
-
www.youtube.com www.youtube.com
-
2020-07-15
-
Tags
Annotators
URL
-
-
www.youtube.com www.youtube.com
-
2020-07-23
-
Tags
Annotators
URL
-
-
www.nytimes.com www.nytimes.com
-
elemental.medium.com elemental.medium.com
-
80000hours.org 80000hours.org
-
codechips.me codechips.me
-
Form validation is hard. That's why there are so many different form handling libraries for the popular web frameworks. It's usually not something that is built-it, because everyone has a different need and there is no one-fit-all solution.
-
-
-
many organizations have been burned by the high churn in JavaScript tooling, which sadly moves projects backwards as a part of moving the web forward
-
- Aug 2020
-
english.stackexchange.com english.stackexchange.com
-
I don't doubt that we will soon treat the process of logging in as a figurative point of entry, meaning that log into will make full conceptual sense (cf you don't physically delve into a problem or pile into an argument, yet both are correct grammatically because they are semantically [i.e. figuratively])
-
- Jul 2020
-
www.zoho.com www.zoho.com
-
Writer OfflineWriter now works without a connection, so you can take your laptop or iPad on a train or a long flight, and keep writing uninterrupted.
Tags
Annotators
URL
-
- May 2020
-
hypothes.is hypothes.is
-
jakearchibald.github.io jakearchibald.github.io
Tags
Annotators
URL
-
-
www.merriam-webster.com www.merriam-webster.com
-
to remove the force or effectiveness of
-
-
www.chromestatus.com www.chromestatus.com
- Apr 2020
-
ell.stackexchange.com ell.stackexchange.com
-
Despite their awarded diplomas in the art of writing, you'd be surprised at how many editors and journalists in the United States make English mistakes. For instance, "an" is still often coupled with words that begin with an "H" sound, even though this is improper. I'd advise against treating material from news sources as if it were error-free or even a higher authority on grammar.
-
- Aug 2019
-
2014.jsconf.eu 2014.jsconf.eu
- Apr 2019
-
hypothes.is hypothes.is
-
The music we listen to highly impacts our decision making, especially as adolescents. Adolescents are extremely impressionable, and the music they listen to has a great impact on how they decide to live their day to day lives. Popular musicians are seen as role models by the people who idolize them, and adolescents may try to represents the songs in which they favor through their actions every day.
Recent studies have found that adolescents who listen to music that supports substance abuse and violence have a greater chance to act upon what they listen to. What young adults and teenagers listen to through music and popular media will affect their decision making process. Specifically with substance abuse, and there is a direct uptake in use of illegal substances by adolescents who listen to music that promotes such activities. This can cause a whole societal problem considering most of todays popular music among adolescents touches upon substance abuse and violence. Adolescents are extremely impressionable and the music they listen can shape how a person tries to act, or represent themselves.
-
- Jan 2019
-
static1.squarespace.com static1.squarespace.com
-
symmetrical faith in our access to representationsover things
"Language has been given too much power."
I'm finding it helpful to repeat that phrase when I don't understand what she means.
-
- Jun 2018
-
hypothes.is hypothes.is
-
Bi-Lingual, Bi-Cultural able to slip from "How's life?" to "Me'stan volviendo loca"
-
- Apr 2018
-
hypothes.is hypothes.is
-
The fraught United States presidential election cycle of 2016 has revealed a country divided along geographical and ideological lines. It has also bolstered a narrative of haves and have-nots, pitting the so-called coastal elites against “heartland” America.
-
- Aug 2016
-
rbms.info rbms.info
-
VISITS
I'm not sure exactly where this would fit in, but some way to reporting total service hours (per week or other time period) would be useful, esp as we start gauging traffic, volume, usage against number of service hours. In our reporting for the Univ of California, we have to report on services hours for all public service points.
Likewise, it may be helpful to have a standard way to report staffing levels re: coverage of public service points? or in department? or who work on public services?
-
- Jun 2016
-
www.seethingbrains.com www.seethingbrains.comBook 21
-
But then his father finally said a resounding “No,” and nothing more would be spoken about it.
https://www.youtube.com/watch?v=8vpDIobFALk Jeremy Werner Anja Glumicic Hawken Paul Mark Chipollo
-