212 Matching Annotations
  1. Last 7 days
    1. accepting an answer doesn't mean it is the best one. For me it is interesting how argumentation of some users is reduced to "Hey, the editor has 5000+ edits. Do not ever think that a particular edit was wrong."
  2. Feb 2024
    1. for - 2nd Trump term - 2nd Trump presidency - 2024 U.S. election - existential threat for climate crisis - Title:Trump 2.0: The climate cannot survive another Trump term - Author: Michael Mann - Date: Nov 5, 2023

      Summary - Michael Mann repeats a similiar warning he made before the 2020 U.S. elections. Now the urgency is even greater. - Trump's "Project 2025" fossil-fuel -friendly plan would be a victory for the fossil fuel industry. It would - defund renewable energy research and rollout - decimate the EPA, - encourage drilling and - defund the Loss and Damage Fund, so vital for bringing the rest of the world onboard for rapid decarbonization. - Whoever wins the next U.S. election will be leading the U.S. in the most critical period of the human history because our remaining carbon budget stands at 5 years and 172 days at the current rate we are burning fossil fuels. Most of this time window overlaps with the next term of the U.S. presidency. - While Mann points out that the Inflation Reduction Act only takes us to 40% rather than Paris Climate Agreement 60% less emissions by 2030, it is still a big step in the right direction. - Trump would most definitely take a giant step in the wrong direction. - So Trump could singlehandedly set human civilization on a course of irreversible global devastation.

  3. Jan 2024
    1. In the next presidential election, 40.8 million members of Gen Z (ages 18-27 in 2024) will be eligible to vote,

      for - Gen Z influence on 2024 US election - Trump 2024 win - an existential threat to humanity - stats - Gen Z - 2024 U.S. election

      comment - Gen Z can play a role in determining the future of human civilization. How? Their vote in the upcoming 2024 U.S. election. If Donald Trump wins, it can pose an existential threat to human civilization - https://hyp.is/mwqwpsA-Ee6bAd9C2MLeKg/www.msnbc.com/opinion/msnbc-opinion/trump-2024-presidency-climate-change-rcna131928

      stats - Gen Z - 2024 U.S. election

      • In the next presidential election, 40.8 million members of Gen Z (ages 18-27 in 2024) will be eligible to vote,
        • including 8.3 million newly eligible youth (ages 18-19 in 2024)
        • who will have aged into the electorate since the 2022 midterm election.
      • These young people have tremendous potential to
        • influence elections and to
        • spur action on issues they care about
      • if they are adequately reached and supported by parties, campaigns, and organizations.
    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

    1. Einer Analye des Handelsblatt Research Institute zufolge sind 1,1 Billionen Euro Investitionen in die Infrastruktur nötig um in Deutschland bis 2045 klimaneutralität zu erreichen. Dieser Betrag ist 65 mal so groß wie die haushaltslücke, die nach dem aktuellen Urteil des Bundesverfassungsgerichts gefüllt werden muss. Die Analyse stützt sich auf vorhandene Studien die unter anderem massive Investitionen in Gaskraftwerke fordern. https://www.handelsblatt.com/unternehmen/energie/energiewende-das-billionenprojekt-so-teuer-ist-die-infrastruktur-der-zukunft/100002597.html

    1. the canonical unit, the NCU supports natural capital accounting, currency source, calculating and accounting for ecosystem services, and influences how a variety of governance issues are resolved
      • for: canonical unit, collaborative commons - missing part - open learning commons, question - process trap - natural capital

      • comment

        • in this context, indyweb and Indranet are not the canonical unit, but then, it seems the model is fundamentally missing the functionality provided but the Indyweb and Indranet, which is and open learning system.
        • without such an open learning system that captures the essence of his humans learn, the activity of problem-solving cannot be properly contextualised, along with all of limitations leading to progress traps.
        • The entire approach of posing a problem, then solving it is inherently limited due to the fractal intertwingularity of reality.
      • question: progress trap - natural capital

        • It is important to be aware that there is a real potential for a progress trap to emerge here, as any metric is liable to be abused
  4. Dec 2023
    1. 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

  5. Nov 2023
    1. Die englische Regierung hat in der letzten Oktoberwoche 27 Lizenzen zur Öl- und Gasförderung in der Nordsee vergeben. George Monbiot konfrontiert diese Entscheidung mit aktuellen Erkenntnissen zum sechsten Massenaussterben und dem drohenden Zusammenbruch lebensunterstützender Systeme des Planeten https://www.theguardian.com/commentisfree/2023/oct/31/flickering-earth-systems-warning-act-now-rishi-sunak-north-sea

    1. In der Repubblica stellt Jaime d'Alessandro fest, dass Italien dabei ist, den Kampf um ein neues Energiesystem und damit auch eine Erneuerung der Wirtschaft zu verlieren. Seit den 90ern befinde sich das Land im Stillstand. D'Alessandro beruft sich auf Studien zur besonderen Betroffenheit des Mittelmeerraums von der globalen Erhitzung und zur schon bald bevorstehenden Eisfreiheit der Arktis. https://www.repubblica.it/green-and-blue/2023/11/01/news/decarbonizzazione_greenblue_novembre-418935623/

      Studie zur eisfreien Arktis: https://www.nature.com/articles/s41467-023-38511-8

      Studie zur Erhitzung in Europa: doi:10.2760/93257

  6. Oct 2023
    1. Morgan, Robert R. “Opinion | Hard-Pressed Teachers Don’t Have a Choice on Multiple Choice.” The New York Times, October 22, 1988, sec. Opinion. https://www.nytimes.com/1988/10/22/opinion/l-hard-pressed-teachers-don-t-have-a-choice-on-multiple-choice-563988.html.

      https://web.archive.org/web/20150525091818/https://www.nytimes.com/1988/10/22/opinion/l-hard-pressed-teachers-don-t-have-a-choice-on-multiple-choice-563988.html. Internet Archive.

      Example of a teacher pressed into multiple-choice tests for evaluation for time constraints on grading.

      He falls prey to the teacher's guilt of feeling they need to grade every single essay written. This may be possible at the higher paid levels of university teaching with incredibly low student to teacher ratios, but not at the mass production level of public education.

      While we'd like to have education match the mass production assembly lines of the industrial revolution, this is sadly nowhere near the case with current technology. Why fall prey to the logical trap?

  7. Sep 2023
    1. 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.

  8. Aug 2023
    1. ****Những Món Ăn Tuyệt Vời Kết Hợp Với Rượu Vang 1. Món ăn Kết hợp với Rượu Vang Đỏ Rượu vang đỏ thường có hương vị mạnh mẽ, phức tạp và cấu trúc tannin đặc trưng. Điều này tạo nên một cơ sở lý tưởng để kết hợp với các món ăn đậm đà và nhiều mùi vị như thịt đỏ, phô mai, món ăn ý 2. Món ăn Kết hợp với Rượu Vang Trắng Rượu vang trắng có xu hướng nhẹ nhàng, tươi mát và tinh tế, tạo nên một lớp vị dễ chịu trên đầu lưỡi kết hợp với món ăn như hải sản, rau và salad, món ăn Á-Âu như sushi pad thai và bánh mì 3. Món ăn Kết hợp với Rượu Vang Ngọt một số gợi ý món ăn kết hợp với rượu vang ngọt: Bánh tart, Crème brûlée, trái cây tươi 4. Món ăn Kết hợp với Rượu Vang Nổ Rượu vang nổ, còn được gọi là rượu sủi bọt, là một loại rượu đặc biệt với hàm lượng carbonic cao, tạo ra hiệu ứng nổ khi mở nút chai nên kết hợp với 1 số món ăn như Sushi, món trái cây, món hải sản Rượu vang là một nguồn cảm hứng vô tận để khám phá và tận hưởng các món ăn tuyệt vời. Kết hợp đúng loại rượu vang với món ăn phù hợp có thể mang đến một trải nghiệm thưởng thức tuyệt vời cho vị giác. Bạn có thể tìm thêm nhiều loại rượu vang tuyệt vời tại ruoungon247.comshopruou247.com để trải nghiệm những món ăn kết hợp với rượu vang độc đáo.

    1. The story that they are telling is of a grand transition that occurred about fifty thousand years ago, when the driving force of evolution changed from biology to culture, and the direction changed from diversification to unification of species. The understanding of this story can perhaps help us to deal more wisely with our responsibilities as stewards of our planet.
      • for: cumulative cultural evolution, speed of cultural evolution
      • paraphrase
        • The story that they are telling
        • is of a grand transition that occurred about fifty thousand years ago,
        • when the driving force of evolution changed
          • from biology
          • to culture,
        • and the direction changed
          • from diversification
          • to unification of species.
        • The understanding of this story can perhaps help us to deal more wisely with our responsibilities as stewards of our planet.
  9. Jul 2023
  10. Jun 2023
    1. A and an are two different forms of the same word: the indefinite article a that is used before noun phrases. Use a when the noun or adjective that comes next begins with a consonant sound. Use an when the noun or adjective that comes next begins with a vowel sound.

      Use a when next word begins with consonant, an when it begins with a vowel.

  11. May 2023
    1. Bond

      A bond is a fixed-income instrument that represents a loan made by an investor to a borrower (typically corporate or governmental). A bond could be thought of as an I.O.U. between the lender and borrower that includes the details of the loan and its payments. Bonds are used by companies, municipalities, states, and sovereign governments to finance projects and operations. Owners of bonds are debtholders, or creditors, of the issuer.

  12. Mar 2023
    1. If we assume students want to learn - and I do - we should show our interest in their learning, rather than their performance.
    2. Value the process, rather than the product.

      Good writing is often about practices and process to arrive at an end product and not just the end product itself.

      Writing is a means to an end, but most don't have the means to begin with.

      Writing with a card index, zettelkasten, commonplace book or other related tools can dramatically help almost any writer because it provides them with a means from the start rather than facing a blank page and having to produce whole cloth in bulk.

  13. Feb 2023
    1. This Vast Southern Empire explores the international vision and strategic operations of these southerners at the commanding heights of American politics.

      How does this book speak with respect to Immerwahr's How to Hide an Empire?

    1. A sequence of Folgezetteln notes in the filenames of the Zettelns can from this perspective be considered a hardcoded outline and should be avoided, however convenient it seems.

      And here he says it out loud... see https://hypothes.is/a/Gl5ferPsEe2Yf5P83a3wUg

    1. I like how on the main page, the "schedule an appointment" button stands out and it is easily accessible. If I am going on a clinic's website, I do not want to be looking around to figure out where I can book an appointment.

    1. Bateson defines schismogenesis as a “creation of division.”

      Definition of = schismogenesis

      • Gregory Bateson defines this in his book Steps to an Ecology of Mind,
      • defines schismogenesis as = a “creation of division.”
      • The term derives from the Greek words σχίσμα skhisma, “cleft,” (borrowed into English as schism), and γένεσις genesis, “generation” or “creation.”
      • Bateson claimed that we human beings define ourselves and each other through schismogenesis.
  14. Jan 2023
    1. In the Pirandello play, "Six Characters in Search of an Author", the six characters come on stage, one after another, each of them pushing the story in a different unexpected direction. I use Pirandello's title as a metaphor for the pioneers in our understanding of the concept of evolution over the last two centuries. Here are my six characters with their six themes. 1. Charles Darwin (1809-1882): The Diversity Paradox. 2. Motoo Kimura (1924-1994): Smaller Populations Evolve Faster. 3. Ursula Goodenough (1943- ): Nature Plays a High-Risk Game. 4. Herbert Wells (1866-1946): Varieties of Human Experience. 5. Richard Dawkins (1941- ): Genes and Memes. 6. Svante Pääbo (1955- ): Cousins in the Cave. The story that they are telling is of a grand transition that occurred about fifty thousand years ago, when the driving force of evolution changed from biology to culture, and the direction changed from diversification to unification of species. The understanding of this story can perhaps help us to deal more wisely with our responsibilities as stewards of our planet.

      !- Pirandello’s play Six Characters in Search of an Author : vehicle for exploring cultural evolution over the last 50,000 years

    2. Biological and Cultural Evolution Six Characters in Search of an Author

      !- Title : Biological and Cultural Evolution Six Characters in Search of an Author !- Author : Freeman Dyson !- Date : 2019

    1. ‘An Inconvenient  Apocalypse - The Environmental Collapse,   Climate Crisis and the Fate of Humanity',

      !- Title : ‘An Inconvenient Apocalypse - The Environmental Collapse, Climate Crisis and the Fate of Humanity', !- Authors : Wes Jackson, Robert Jensen

  15. Dec 2022
  16. Nov 2022
  17. Sep 2022
    1. A workaround you can use is to move additionalProperties to the extending schema and redeclare the properties from the extended schema.
    2. Because additionalProperties only recognizes properties declared in the same subschema, it considers anything other than “street_address”, “city”, and “state” to be additional. Combining the schemas with allOf doesn’t change that.
    3. It’s important to note that additionalProperties only recognizes properties declared in the same subschema as itself. So, additionalProperties can restrict you from “extending” a schema using Schema Composition keywords such as allOf. In the following example, we can see how the additionalProperties can cause attempts to extend the address schema example to fail.
    1. In your scenario, which many, many people encounter, you expect that properties defined in schema1 will be known to schema2; but this is not the case and will never be.
    2. When you do: "allOf": [ { "schema1": "here" }, { "schema2": "here" } ] schema1 and schema2 have no knowledge of one another; they are evaluated in their own context.
    1. This hasn't yet been scheduled, but we're tracking it on our backlog as something we want to do this year. A few months ago, we arranged for additional capacity to address items like this that have waited for so long. Now that additional capacity is available, it's just a matter of scheduling based on relative priority. We're anxious to get this one done, and I hope to soon have a clearer date to post here.
    1. Right? You said... No, no, bullshit. Let's write it all down and we can go check it. Let's not argue about what was said. We've got this thing called writing. And once we do that, that means we can make an argument out of a much larger body of evidence than you can ever do in an oral society. It starts killing off stories, because stories don't refer back that much. And so anyway, a key book for people who are wary of McLuhan, to understand this, or one of the key books is by Elizabeth Eisenstein. It's a mighty tome. It's a two volume tome, called the "Printing Press as an Agent of Change." And this is kind of the way to think about it as a kind of catalyst. Because it happened. The printing press did not make the Renaissance happen. The Renaissance was already starting to happen, but it was a huge accelerant for what had already started happening and what Kenneth Clark called Big Thaw.

      !- for : difference between oral and written tradition - writing is an external memory, much larger than the small one humans are endowed with. Hence, it allowed for orders of magnitude more reasoning.

  18. Jul 2022
    1. a biological i call it an intrinsic purpose but like from evolution by being the fact that we are a part of life we have a purpose because 01:28:53 all organisms making capability casual power causal powers and the intrinsic purpose of an organism is to achieve and maintain vitality a sustainable flourishing of self which 01:29:09 can include that extended self and we do that by sensing and evaluating states of the world and ourselves and implementing appropriate actions that that are based on anticipation we 01:29:21 we anticipate what will happen if we do or don't take an action and we choose if we're for functional we choose those actions that can serve our intrinsic intrinsic purpose of of 01:29:33 remaining vital into the future so anticipating vitality and that obviously implies some kind of modeling of the world anticipation implies some kind of modeling in the world so that's an organism's intrinsic 01:29:45 purpose

      Individual organism's intrinsic purpose is to maintain vitality and sustain a flourishing of itself, including its extended self (ie. the environment) through sensing, evaluating states and take actions based on anticipation through models of reality.

  19. May 2022
  20. Apr 2022
    1. I agree about documenting everything. But for me docs are a last resort (the actual text, anything beyond skimming through code examples) when things already went wrong and I need to figure out why. But we can do much better. During dev when we see _method and methodOverride is disabled we can tell the developer that it needs to be enabled. Same if we see _method with something other than POST. Same for all other cases that are currently silently ignored. If the method is not in allowedMethods arguable it should even return a 400 in production. Or at the very least during dev it should tell you. We have the knowledge, let's not make the user run into unexpected behavior (e.g. silently ignoring _method for GET). Instead let's fail as loud as possible so they don't need to open their browser to actually read the docs or search though /issues. Let them stay in the zone and be like "oh, I need to set enabled: true, gotcha, thanks friendly error message".
    1. Here, we’ll talk about how much time you need to invest for the successful development of an app. This blog addresses three questions: “How long does it take to construct an app?”, “how to create an app from scratch?” and “how to speed up the process?”. This post is for you if you want to try your hand at app development for your business.
  21. Mar 2022
    1. the war in Ukraine now, it’s not a natural disaster. It’s a man-made disaster, and a single man. It's not the Russian people who want this war. There's really just a single person who, by his decisions, created this tragedy.

      Technology is an amplifier and as Ronald Wright observed so presciently, our rapid cultural evolution has created advanced cognition in humans, and is like allowing modern software to run on 50,000 year old hardware. Amidst the exponential rate of technological development, biological evolution cannot keep up. So our propensity for violence, with more and more powerful technological weapons at our disposal has resulted in one man, Putin, having the capability to destroy an entire civilization with the press of one finger.

      Unless we can understand this, we will not resolve the predicament civilization finds itself in.

  22. Feb 2022
  23. Nov 2021
    1. In your Svelte component, you can then use your store with the special $ prefix syntax, to access the value of the store ('cause the temperature variable is a reference to the store itself, it's just a mean to our end, the result we need is the value):
  24. Oct 2021
  25. Sep 2021
    1. Installing a sanitary tee and wye drain, or any multi-outlet drainage fitting requires basic plumbing knowledge. Once you know the basics, it is easy to install this kind of piping system without hiring outside assistance.
  26. Aug 2021
    1. With no experience or formal education in UX Design, Wilson relied on YouTube and blogs to learn the ropes. She spent an entire summer watching tutorials to develop her portfolio

      I'm surprise that she self taught herself into UX Design by learning it on YouTube. Learning UX Design in general is already hard, but consider Wilson to self taught her self online which is truly smart and I admire her for that.

  27. Jul 2021
  28. datatracker.ietf.org datatracker.ietf.org
    1. When an endpoint is to interpret a byte stream as UTF-8 but finds that the byte stream is not, in fact, a valid UTF-8 stream, that endpoint MUST _Fail the WebSocket Connection_. This rule applies both during the opening handshake and during subsequent data exchange.
  29. Jun 2021
    1. "Although in the United States it is common to use the term multiculturalism to refer to both liberal forms of multiculturalism and to describe critical multicultural pedagogies, in Canada, Great Britain, Australia, and other areas,anti-racism refers to those enactments of multiculturalism grounded in critical theory and pedagogy. The term anti-racism makes a greater distinction, in my opinion, between the liberal and critical paradigms of multiculturalism, and is one of the reasons I find the anti-racism literature useful for analyzing multiculturalism in music education."

    1. However, the cookie containing the CSRF-TOKEN is only used by the client to set the X-XSRF-TOKEN header. So passing a compromised CSRF-TOKEN cookie to the Rails app won't have any negative effect.
    1. Your attempt should work. There is a mismatch in column name in your query though. The query uses col2 but the table is defined with col1.

      I would actually lean towards making this a comment, at least the typo fix part. But if you remove the typo fix part, all that's left is "should work", which I guess should be a comment too since it's too short to be an answer.

    1. But, supposing all these conjectures to be false, you cannot contest the inestimable benefit which I shall confer on all mankind to the last generation, by discovering a passage near the pole to those countries, to reach which at present so many months are requisite; or by ascertaining the secret of the magnet, which, if at all possible, can only be effected by an undertaking such as mine.

      Finally (in this second paragraph), we again have insight into the political and scientific issues of the day: the search for the famed "Northwest Passage" (big, big deal) and the awareness of a major source of danger for polar navigation: the distortion produced in magnetic equipment as one came nearer to the source, at the pole.

      It is obvious, is it not?, that most people are motivated by social goods: fame, power, money, and prestige. Because that is the world we live in.

      It's all about the Benjamins! Then and now!

  30. May 2021
  31. Apr 2021
    1. Events AAA and BBB are mutually exclusive (cannot both occur at once) if they have no elements in common.

      Events \(A\) and \(B\) are mutually exclusive (cannot both occur at once) if they have no elements in common.


      Events \(A\) and \(B\) are mutually exclusive if: $$P(A∩B)=0$$

    2. The complement of an event AAA in a sample space SSS, denoted AcAcA^c, is the collection of all outcomes in SSS that are not elements of the set AAA. It corresponds to negating any description in words of the event AAA.

      The complement of an event \(A\) in a sample space \(S\), denoted \(A^c\), is the collection of all outcomes in \(S\) that are not elements of the set \(A\). It corresponds to negating any description in words of the event \(A\).


      The complement of an event \(A\) consists of all outcomes of the experiment that do not result in event \(A\).

      Complement formula:

      $$P(A^c)=1-P(A)$$

    1. “Who cares? Let’s just go with the style-guide” — to which my response is that caring about the details is in the heart of much of our doings. Yes, this is not a major issue; def self.method is not even a code smell. Actually, that whole debate is on the verge of being incidental. Yet the learning process and the gained knowledge involved in understanding each choice is alone worth the discussion. Furthermore, I believe that the class << self notation echoes a better, more stable understanding of Ruby and Object Orientation in Ruby. Lastly, remember that style-guides may change or be altered (carefully, though!).
  32. Mar 2021
    1. Whenever majorities trample upon the rights of minorities—when men are denied even the privilege of having their causes of complaint examined into—when measures, which they deem for their relief, are rejected by the despotism of a silent majority at a second reading—when such become the rules of our legislation, the Congress of this Union will no longer justly represent a republican people.
    1. Occasionally, like with search engines, #2 occurs because the incumbents gain massive economies of scale (classic Microeconomics), where by virtue of their being large, the cost to produce each incremental good or service at scale becomes much lower.
    1. Better yet, send them a link to this page to help them understand why and how to make an example app:
    2. An example app is an application that is designed to reproduce a bug or demonstrate an issue.
    3. Before a bug can be fixed, it has to be understood and reproduced. For every issue, a maintainer gets, they have to decipher what was supposed to happen and then spend minutes or hours piecing together their reproduction. Usually, they can’t get it right, so they have to ask for clarification. This back-and-forth process takes lots of energy and wastes everyone’s time. Instead, it’s better to provide an example app from the beginning. At the end of the day, would you rather maintainers spend their time making example apps or fixing issues?
    1. There are myriads of platformers around, it's an oversaturated market, and just like industrial designer Karim Rashid said about there being no excuse by this point to make an uncomfortable chair, there's no excuse by this point to make a boring patformer.
    1. Fibar bi jàngal na taawan bu góor ni ñuy dagge reeni aloom.

      Le guérisseur a appris à son fils aîné comment on coupe les racines du Diospyros.

      fibar -- (fibar bi? the healer? as in feebar / fièvre / fever? -- used as a general term for sickness).

      bi -- the (indicates nearness).

      jàngal v. -- to teach (something to someone), to learn (something from someone) -- compare with jàng (as in janga wolof) and jàngale.

      na -- pr. circ. way, defined, distant. How? 'Or' What. function indicator. As.

      taaw+an (taaw) bi -- first child, eldest. (taawan -- his eldest).

      bu -- the (indicates relativeness).

      góor gi -- man; male.

      ni -- pr. circ. way, defined, distant. How? 'Or' What. function indicator. As.

      ñuy -- they (?).

      dagg+e (dagg) v. -- cut; to cut.

      reen+i (reen) bi -- root, taproot, support.

      aloom gi -- Diospyros mespiliformis, EBENACEA (tree).

      https://www.youtube.com/watch?v=BryN2nVE3jY

  33. Feb 2021
    1. Trailblazer extends the conventional MVC stack in Rails. Keep in mind that adding layers doesn't necessarily mean adding more code and complexity. The opposite is the case: Controller, view and model become lean endpoints for HTTP, rendering and persistence. Redundant code gets eliminated by putting very little application code into the right layer.
    2. While Trailblazer offers you abstraction layers for all aspects of Ruby On Rails, it does not missionize you. Wherever you want, you may fall back to the "Rails Way" with fat models, monolithic controllers, global helpers, etc. This is not a bad thing, but allows you to step-wise introduce Trailblazer's encapsulation in your app without having to rewrite it.
    3. Trailblazer is no "complex web of objects and indirection". It solves many problems that have been around for years with a cleanly layered architecture.
    1. multiple learned and generalized affectional responses are formed.

      Love can be instinctual but is it a learned behavior if the affectional response is towards someone that you share at least one intimate moment?

    1. In object-oriented programming, information hiding (by way of nesting of types) reduces software development risk by shifting the code's dependency on an uncertain implementation (design decision) onto a well-defined interface. Clients of the interface perform operations purely through it so if the implementation changes, the clients do not have to change.
    1. The more important point comes from a program design perspective. Here, "programming to an interface" means focusing your design on what the code is doing, not how it does it. This is a vital distinction that pushes your design towards correctness and flexibility.
    2. My understanding of "programming to an interface" is different than what the question or the other answers suggest. Which is not to say that my understanding is correct, or that the things in the other answers aren't good ideas, just that they're not what I think of when I hear that term.
    3. Programming to an interface means that when you are presented with some programming interface (be it a class library, a set of functions, a network protocol or anything else) that you keep to using only things guaranteed by the interface. You may have knowledge about the underlying implementation (you may have written it), but you should not ever use that knowledge.
    4. If the program was important enough, Microsoft might actually go ahead and add some hack to their implementation so the the program would continue to work, but the cost of that is increased complexity (with all the ensuing problems) of the Windows code. It also makes life extra-hard for the Wine people, because they try to implement the WinAPI as well, but they can only refer to the documentation for how to do this, which leads to many programs not working as they should because they (accidentally or intentionally) rely on some implementation detail.
    5. Abstract myself from the how it does and get focus on what to do.
    6. Say you have software to keep track of your grocery list. In the 80's, this software would work against a command line and some flat files on floppy disk. Then you got a UI. Then you maybe put the list in the database. Later on it maybe moved to the cloud or mobile phones or facebook integration. If you designed your code specifically around the implementation (floppy disks and command lines) you would be ill-prepared for changes. If you designed your code around the interface (manipulating a grocery list) then the implementation is free to change.
    7. It's more like providing an Employee object rather than the set of linked tables you use to store an Employee record. Or providing an interface to iterate through songs, and not caring if those songs are shuffled, or on a CD, or streaming from the internet. They're just a sequence of songs.