- Aug 2024
-
journals.sagepub.com journals.sagepub.com
-
for - question - can cities save the planet? - a critical analysis
-
- Jul 2024
-
www.versobooks.com www.versobooks.com
-
for - transition - renewable energy - won't work - because - the price is wrong! - Brett Christopher - green energy - the price is wrong - transition - alternative to capitalism - book - The Price is Wrong: Why Capitalism won't Save the Planet - Brett Christopher
summary - This book provides rationale for why capitalism won't scale renewable energy, but a public sector government approach might - What about the alternative of community-owned or cooperative-owned energy infrastructure? A pipe dream? - Is renewable energy just not profitable and therefore has to be subsidized? - Perhaps it could be seen as a stopgap to buy us time until fusion, deep geothermal or other viable, scalable options become widespread?
from - Planet Critical podcast - 6th Mass Extinction - interview with paleontologist Peter Brennan - https://hyp.is/3ss3Vj9vEe-iDX-3vRVlFw/docdrop.org/video/cP8FXbPrEiI/
Tags
- adjacency - question - transition - renewable energy - subsidized - stopgap - until fusion or deep geothermal is viable
- green energy - the price is wrong
- book - The Price is Wrong: Why Capitalism won't Save the Planet - Brett Christopher
- renewable energy - publicly funded
- transition - renewable energy - won't work - because - the price is wrong! - Brett Christopher
- renewable energy - government funded
- from - lanet Critical podcast - 6th Mass Extinction - interview with paleontologist Peter Brennan
Annotators
URL
-
-
-
book that's sort of making its rounds in the climate World these days um by this author Brett Christopher I foret what it's called 00:31:25 um oh what is it called oh the price is wrong yeah about how Renewables yeah they're cheaper than ever which people always point at those graphs but just because of the way that you know utilities are set up and the energy system works they're not profitable and 00:31:38 they won't be in the near term
for - book - The Price is Wrong: Why Capitalism won't Save the Planet - Brett Christopher
to - book - The Price is Wrong: Why Capitalism won't Save the Planet - Brett Christopher - https://hyp.is/h01Tyj9uEe-rEhuQgFWRuQ/www.versobooks.com/en-gb/products/3069-the-price-is-wrong
-
- Jun 2024
-
www.theguardian.com www.theguardian.com
-
"No artist has ethical sympathies," Oscar Wilde once wrote. "An ethical sympathy in an artist is an unpardonable mannerism of style. All art is quite useless."
-
-
www.earthday.org www.earthday.org
-
To address climate change, we need to change culture.
-
- Mar 2024
-
www.nytimes.com www.nytimes.com
-
Über 25 Städte haben sich inzwischen dem plant based treaty angeschlossen, darunter Edinburgh Amsterdam und Los Angeles und eine Reihe indischer Städte. Viel ist nicht die völlige Eliminierung von Fleisch und Milch aus der lokalen Küche sondern ihre Klima- und gesundheitsfreundliche konsequente Reduzierung. Vorbild ist die Initiative für den fossil fuel non poliforation pretty. .https://www.nytimes.com/2024/02/28/climate/plant-based-treaty-climate.html
Tags
- Vegans, vegetarians, fish-eaters and meat-eaters in the UK show discrepant environmental impacts
- by: Cara Buckley
- New York
- Los Angeles
- Amsterdam
- Anita Krajnc
- cities
- Fossil Fuel Non-Proliferation Treaty Initiative
- alimentation
- Animal Save Movement
- Edinburgh
- 2024-02-28
- Plant Based Treaty
Annotators
URL
-
- 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
-
www.allwecansave.earth www.allwecansave.earth
Tags
Annotators
URL
-
- Jan 2023
-
docdrop.org docdrop.org
-
how to save our planet the facts
!- Title : How to save our planet, the facts !- Author : Professor Mark Maslin
-
-
www.wired.com www.wired.com
-
Storytelling Will Save the EarthEmotional resonance, not cold statistics, will bring home the scale of the climate crisis—and the need for action.
!- Title : Storytelling Will Save the Earth Emotional resonance, not cold statistics, will bring home the scale of the climate crisis—and the need for action. - See related story: Brian Eno – "We need the creative industry to help inspire climate action" https://hyp.is/go?url=https%3A%2F%2Fwww.imperial.ac.uk%2Fnews%2F241832%2Fbrian-eno-we-need-creative-industry%2F&group=world
-
-
www.imperial.ac.uk www.imperial.ac.uk
-
We know the information. But information is not changing our minds. Most people make decisions on the basis of feelings, including the most important decisions in life – what football team you support, who you marry, which house you live in. That is how we make choices.” “Thought is at the basis of our feelings, and before we have ideas we have feelings that lead to those ideas. So how do we change minds? A change in feelings changes minds.”
!- "So how do we change minds? A change in feeling changes minds" : Comment - Brian Eno's comment is very well aligned with Deep Humanity praxis, which can be summed up as: The heart feels, the mind thinks, the body acts, an impact appears in our shared reality. - Also see the related story: - Storytelling will save the Earth: https://hyp.is/go?url=https%3A%2F%2Fwww.wired.com%2Fstory%2Fenvironment-climate-change-storytelling%2F&group=world
-
- Dec 2022
-
www.wired.com www.wired.com
-
Now picture Timothy, who lives with his grandchildren in Walande Island, a small dot of land off the east coast of South Malaita Island, part of the Solomon Islands. Since 2002, the 1,200 inhabitants of Walande have abandoned their homes and moved away from the island. Only one house remains: Timothy’s. When his former neighbors are asked about Timothy’s motives they shrug indifferently. “He’s stubborn,” one says. “He won’t listen to us,” says another. Every morning his four young grandchildren take the canoe to the mainland, where they go to school, while Timothy spends the day adding rocks to the wall around his house, trying to hold off the water for a bit longer. “If I move to the mainland, I can’t see anything through the trees. I won’t even see the water. I want to have this spot where I can look around me. Because I’m part of this place,” he says. His is a story that powerfully conveys the loneliness and loss that 1.1 degrees of anthropogenic warming is already causing.
!- example : storytelling to save the earth
-
- Feb 2022
-
www.theverge.com www.theverge.com
-
What tabs would be particularly useful for is new music discovery, like an album you’ve been wanting to get around to hearing but haven’t yet had the time. I bump into this problem quite a bit. Adding a new album to my “Liked” songs on Spotify shuffles it in with all of my favorite stuff, and decluttering that playlist later is a hassle. Making a new album a playlist almost assures that it’ll be forgotten about. My decrepit, goldfish memory doesn’t have the space to remember to return to a playlist of an album two weeks later. As my colleague Victoria notes, she’s always “forgetting what I’m supposed to listen to next.” You know what would help with that? Tabs.
-
- Oct 2021
-
conscienhealth.org conscienhealth.org
-
For Teens with Obesity, COVID Vaccines Save Lives. (2021, October 21). ConscienHealth. https://conscienhealth.org/2021/10/for-teens-with-obesity-covid-vaccines-save-lives/
-
- Jul 2021
-
yourairyourutah.org yourairyourutah.org
-
For every mile we don't drive, our air gets a little bit cleaner. There are many ways to drive less- walking, biking, taking transit, telecommuting, carpooling, and more. Driving less can also save you money and improve your emotional and physical health. Working from home has been gaining popularity and may offer other benefits such as improved productivity.
For every mile we don't drive, our air gets a little bit cleaner. There are many ways to drive less- walking, biking, taking transit, telecommuting, carpooling, and more. Driving less can also save you money and improve your emotional and physical health. Working from home has been gaining popularity and may offer other benefits such as improved productivity.
-
- Jun 2020
-
psyarxiv.com psyarxiv.com
-
Chung, S. (2020). Development of the Stress and Anxiety to Viral Epidemics-9 (SAVE-9) scale for assessing work-related stress and anxiety in healthcare workers in response to viral epidemics [Preprint]. PsyArXiv. https://doi.org/10.31234/osf.io/a52b4
-
- May 2018
-
serverfault.com serverfault.com
-
You can pull the image on a computer that have access to the internet.
sudo docker pull ubuntu Then you can save this image to a file
sudo docker save -o ubuntu_image.docker ubuntu Transfer the file on the offline computer (USB/CD/whatever) and load the image from the file:
sudo docker load ubuntu_image.docker
-
- Jun 2017
-
www.swamirara.com www.swamirara.com
- Feb 2016
-
razoesparaacreditar.com razoesparaacreditar.com
-
Com esta invenção é possível zerar sua conta de luz
-
- May 2015
-
ideasintosoftware.com ideasintosoftware.com
-
Save Work On Focus Lost This feature works best in combo with infinite undo. The idea here is that everytime you leave your Vim window, all your open files are automatically saved. I find this to be extremely helpful, for example when I’m working on a laptop and continuously run unit tests in terminal. My laptop is 13'' so I prefer to run Vim full screen and with this feature, I don’t have to explicitly save my source code file; I just cmd+tab to the terminal, Vim saves the file for me and my unit tests watcher re-runs the suite. If you save unwanted changes by accident you can easily remedy that with undo. To turn autosaving on, add: :au FocusLost * silent! wa to your .vimrc. The silent! flag prevents Vim from complaining when you have open unititled buffers (see this article for details).
-