61 Matching Annotations
  1. Nov 2024
    1. if you go to like and if you go to the yoga studios where you see people who are like obsessing with their physical body and obsessing with their diets that's kind of Po people who are like First beginning that first initiation phase that's what's at play that's what's at play or they're doing that practice but some people just stay there they spend their whole life obsessed about their physical body and and the green juice

      for - spiritual seeking in modernity - initiation first stage body - John Churchill - meaning crisis - spiritual initiation - first stage - body - John Churchill - initiation - first stage - body - example - yoga and green juice - getting stuck here is possible - John Churchill - meaning crisis - spiritual initiation - first stage - body - John Churchill

  2. Sep 2024
  3. Mar 2024
    1. And then themedia giants find new crises and the nation’s inherited disregard for classreboots, as the subject recedes into the background again.

      The pushing of the attention economy broadly prevents society from facing its most important problems. We're constantly distracted and are ultimately unable to focus on what is really important.

  4. Jan 2024
    1. 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 the Animal 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 the Animal schema. When you create an instance of the Animal model (e.g., a dog), you can then call findSimilarTypes on that instance to find other animals with the same type. The method uses the this.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 the Animal model.

      Certainly! Let's go through each part and explain it in simple terms: ### 1. `this` in Mongoose: - **What is `this`?** In JavaScript, `this` refers to the current context or object. In Mongoose, particularly within methods and middleware functions, `this` represents the instance (document) the function is currently operating on. - **Why is it used?** `this` is used to access and modify the properties of the current document. For example, in a Mongoose method, `this` allows you to refer to the fields of the specific document the method is called on. ### 2. Example: Let's use the `userSchema.pre("save", ...)`, which is a Mongoose middleware, as an example: ```javascript userSchema.pre("save", async function (next) { if (!this.isModified("password")) { next(); } else { this.password = await bcrypt.hash(this.password, 10); next(); } }); ``` - **Explanation in Simple Words:** - Imagine you have a system where users can sign up and set their password. - Before saving a new user to the database, you want to ensure that the password is securely encrypted (hashed) using a library like `bcrypt`. - The `userSchema.pre("save", ...)` is a special function that runs automatically before saving a user to the database. - In this function: - `this.isModified("password")`: Checks if the password field of the current user has been changed. - If the password is not modified, it means the user is not updating their password, so it just moves on to the next operation (saving the user). - If the password is modified, it means a new password is set or the existing one is changed. In this case, it uses `bcrypt.hash` to encrypt (hash) the password before saving it to the database. - The use of `this` here is crucial because it allows you to refer to the specific user document that's being saved. It ensures that the correct password is hashed for the current user being processed. In summary, `this` in Mongoose is a way to refer to the current document or instance, and it's commonly used to access and modify the properties of that document, especially in middleware functions like the one demonstrated here for password encryption before saving to the database.

    Tags

    Annotators

    URL

  5. Dec 2023
    1. One of the advantages of this media extended plugin is that it can handle more than just YouTube videos. It can handle videos and also some audio notes as well. And I don't think I've tried it with anything else but really I just need YouTube videos.

      Video Title: Taking notes from YouTube videos in Obsidian

      Various ways and plugins to annotate or take notes on videos (e.g. YouTube) in Obsidian

      Audio notes? How?

  6. Sep 2023
    1. Even though I commented earlier i have to side with Chris. A ZK is best suited for argumentative and essay like work, not creative one like poetry.Maybe this is something that we need to discuss as a community as hole: it’s seems that a lot of people try to fit their needs to a system that (in my opinion) it’s neither intended or works for those kinds of projects.

      reply to Efficient_Eart_8773 at https://www.reddit.com/r/Zettelkasten/comments/16ad43u/comment/jzaas4l/?utm_source=reddit&utm_medium=web2x&context=3

      Though depending on your needs and desires, you can really do both to effectuate the outcomes you'd like to have. The secret is knowing which affordances, structures, and methods suit your desired outcomes. (Of course if you're going to dump your box out and do massive rearrangements or take large portions out and want to refile them for other needs, then you're going to have to give them numbers and do that re-filing work.)

      I've seen snippets of saved language in Thoreau's journal (commonplace) which were re-used in other parts of his journal which ultimately ended up in a published work. As he didn't seem to have a significant index, one can only guess that he used occasional browsing or random happenstance delving into it to have moved it from one place to another.

      As ever, what do you need and what will best get you there?


      Link to:<br /> What Got You Here Won't Get You There

  7. Aug 2023
  8. Jan 2023
  9. opentextbooks.library.arizona.edu opentextbooks.library.arizona.edu
    1. I have fallen short in many ways as I’ve worked towards the goals I have made in my life.

      It happened to me too, but as a young person, I understand that as a learning because my journey is still far from over.

  10. Sep 2022
  11. Jul 2022
    1. The place of the here and now IS the true reality and that can’t be described by any of the words above or by language.

      Hence, the here and now is actually indescribable. Also can be called the nameless but already therein is the contradiction. To name the nameless as "the nameless" already creates contradiction. Hence, contradictions will always persist in using language to point to the indescribable.

      And yet, the indescribable is all around, and language and concepts refer to things that are exactly in this space. Hence the inherent contradiction of using concepts and language...all words, all concepts essentially describe the indescribable. We can feel into this situation by applying Vervaeke's 4 P's.

  12. Apr 2022
    1. assistive technology

      We should place the definition of Assistive Technology here: Assistive Technology is technology used by individuals with disabilities in order to perform functions that might otherwise be difficult or impossible.

  13. Dec 2021
  14. Jul 2021
  15. Jun 2021
    1. Oversharing. Crying, disclosing intimate details, and telling long (unrelated and/or unsolicited) stories about one’s personal life may indicate the lack of an essential social work skill: personal boundaries.

      Testing out the annotate feature. Student 1 will highlight sections according to the prompts, as shown HERE.

      For example: "This is me during interviews. I say too much and veer off topic."

  16. Mar 2021
    1. Am sa caabi!

      Prends ta clé!

      am -- used in the imperative: "HERE!", etc. (it's the same word as "to have").

      sa -- your.

      caabi ji -- (Portuguese) key. 🔑

  17. Feb 2021
  18. Nov 2020
  19. Oct 2020
    1. Other frameworks, which use a template syntax built atop HTML — Svelte, Vue, Ractive, Glimmer etc — have historically been fragmented, meaning those tools need to be reinvented many times.
  20. Sep 2020
    1. The main rationale for this PR is that, in my hones opinion, Svelte needs a way to support style overrides in an intuitive and close to plain HTML/CSS way. What I regard as intuitive is: Looking at how customizing of styles is being done when applying a typical CSS component framework, and making that possible with Svelte.
    1. Why make another UI component kit when we already got Smelte and SMUI? What's so special about Svelta?
  21. Jul 2020
    1. Why did Rails team decide they need to implement their own "version" of Timecop?

      On the one hand, that's great to reduce dependencies, but on the other hand, small dependencies are great (and rails already has lots of them), it just bloats ActiveSupport more, and creates a needless "duplication" of an already popular de facto standard for this problem -- one which (unlike Timecop) can't be easily used outside of the Rails/ActiveSupport ecosystem. It doesn't seem different enough to warrant creating it...

      Timecop: Works with Rails and non-Rails

      ActiveSupport::Testing::TimeHelpers: for use outside rails, requires dependency on bigger gem, AS.

  22. Apr 2019
    1. There is no question that technology is becoming a part of our lives more every day. What we have to take a closer look at is the increasing dependency that children have on smart devices, which is taking over all other normal childhood activities, an important occurrence because it is interfering with normal childhood development and negatively impacting relationships between parents and children. Smartphones give young adults access to almost unlimited information and almost unlimited content that they may not yet be equipped to navigate. Every parent wants to know what is going on in their child's life, but with smartphones, this is highly suggested just to make sure the internet has not led them down a dark path. For example, an astonishing study found that 19% of young adults ages 13-19 sent sexually suggestive content online, and 31% had received this type of content. Smartphones make exposure to these things at an early age much easier, and preventing the exposure much harder. There are many restrictions and blocks that can be put in place to help guide children in the right parts of the internet, but there is still the issue of time management on devices. Smartphones and other smart devides have taken the place of activities that should be prioitized for a healthy lifestyle, such as homework and exercise. One aspect that has drawn many children into overuse of technology is online gaming. Online games often have interactions with other online players, which allows children to feel as if they are socializing without actually interacting with friends, especially for children who struggle with in person interaction.

      ​While this may be beneficial for short term socializing or motor skills, in the long-run, the children are choosing to sit and stare at a screen instead of interacting with people around them, or doing productive things such as homework, so the short-term benefits are outweighed by long-term consequences.

    2. Our culture is defined by the music we listen to, and the way it is portrayed in the media. Every culture around the world has a different style of song or dance that represents their traditions. Culture can not only be changed through popular songs, but is best represented through music. One of the best ways to understand a foreign culture is by listening to the music that is favorable among the people whose culture you are trying to understand. Music is one of the most powerful forms of art between cultures.

      Music has the power to redefine cultures. We can see this through generational differences between song preferences. For example, American country music back in the late 1900s has a much different feel and style compared to country music now in 2019. While keeping within the same genre, this style of music touches upon different subjects, and uses different instruments, sounds and lyrics. Even early hip-hop has evolved from its beginnings. Hip-hop music is considered the most popular music as of right now, but it has not always been that way. Each generation favors different types of genres of music, and it is clear which backgrounds over the years have favored certain genres of music. As much as music can differentiate cultures, and generations, music can bring people of completely different background together by its artistic flavor and general popularity throughout the mainstream media.

  23. Nov 2018
  24. Aug 2018
  25. edu522.networkedlearningcollaborative.com edu522.networkedlearningcollaborative.com
    1. Incessentaly correcting graamer

      This may be my favorite line of the entire code of conduct! I'm doing my best to resist....

  26. Apr 2018
    1. I SHALL not be content till this country can produce every single thing we need, even coffee, cocoa, and rubber, and so keep all our dollars at home. If we can do this and at the same time work up tourist traffic so that foreigners will come from every part of the world to see such remarkable wonders as the Grand Canyon, Glacier and Yellowstone etc. parks, the fine hotels of Chicago, & etc., thus leaving their money here, we shall have such a balance of trade as will go far to carry out my often-criticized yet completely sound idea of from $3000 to $5000 per year for every single family—that is, I mean every real American family. Such an aspiring Vision is what we want, and not all this nonsense of wasting our time at Geneva and talky-talk at Lugano, wherever that is. Zero Hour, Berzelius Windrip.
    2. that the average toiler would immediately receive $5000 a year.

      see Why The World is Ripping Itself Apart: Five Ways History’s Repeating Itself https://eand.co/five-ways-historys-repeating-itself-fed5721e225e

  27. Mar 2018
  28. Sep 2017
    1. English have fallen into their hands.

      When the English fall into the hands of those that they wish to conquer, kill, and exploit for resources? Can she really blame the natives for being a bit brutal and cruel?

  29. Jul 2017
  30. Mar 2017
    1. STEPHENS: I think very little of the news actually today is of practical value. For one thing, we don’t live in a society that has all that many threats encroaching upon us.

      Literally strike three. oh my god.

  31. Nov 2016
  32. Oct 2016
  33. Dec 2015
  34. Jan 2015
  35. dione.library.uvic.ca dione.library.uvic.ca
    2
    1
    1. M a y b e   t h e i r   d e v i c e s   g e t   a d d e d   t o   t h e   i n d e n t i f i c a t i o n   p r o c e s s .   L e t ’ s   s a y   t h e   l a p t o p   i s   t h e i r   p r i m a r y   d e v i c e .   W h e n   t h e i r   c e l l p h o n e   i s   p u t   i n t o   t h e   f i g u r i n g   i t   i s   t h e   s e c o n d   d e v i c e   t h a t   i s   a s s o c i a t e d   w i t h   t h e   u s e r :   U S 0 0 1 2 0 0 G H K 4 2 .   T h e   “ 2 ”   s t a n d s   f o r   t h a t   s e c o n d   d e v i c e .

      This is an entry