213 Matching Annotations
  1. 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

    1. I feel that the current design area should be a key part of the workflow on any work item, not just type of designs. As a PM I don't schedule designs independently. It's odd to open and close a design issue when it doesn't deliver value to the customer.
  2. Dec 2023
    1. Whatever one thinks of Sultan Al Jaber, one statement he’s made repeatedly makes perfect sense: “We cannot unplug the world from the current energy system before we build a new energy system.” The focus, then, has to shift.
      • for: quote - Sultan Al Jabber, quote - energy replacement instead of phase out, key point - focus on energy transition instead of just fossil fuel phase out

      • quote

        • Whatever one thinks of Sultan Al Jaber, one statement he’s made repeatedly makes perfect sense: “We cannot unplug the world from the current energy system before we build a new energy system.”
        • The focus, then, has to shift.
          • Instead of focusing on dismantling the incumbent system,
          • we need to focus on accelerating the deployment of the new system that will replace it
      • author: Nafeez Ahmed
      • date : Dec 6, 2023

      • key point

        • we must focus on the energy shift instead of just the phase out or down of the old energy system
  3. Nov 2023
    1. Roger Hardy erklärt in diesem Artikel über die von ihm in Großbritannien gegründete Organisation Round our Way, dass Arbeiterklassen-Communities von der globalen Erhitzung und ihren Folgen besonders stark betroffen sind und das auch wissen. Nur eine Klimabewegung für "ordinary people" könne das Fundament für einen gesellschaftlichen Konsens über Klimaschutz herstellen. https://www.theguardian.com/environment/commentisfree/2023/nov/21/working-class-people-climate-crisis-policy

    1. Ausführliche Berichte thematisieren die großen Hindernisse, die in Frankreich für die just transition zu einem nachhaltigen Leben bestehen. Die Klimakrise wird in allen Schichten als Bedrohung wahrgenommen, aber in den ärmeren Gruppen sieht man viel weniger Handlungsmöglichkeiten. https://www.liberation.fr/idees-et-debats/fin-du-monde-ou-fin-de-mois-quels-sont-les-freins-a-la-conversion-ecologique-des-classes-populaires-20231118_72LRGBQFONDVFJJY26JU5X2JQY/

      Bericht des Wirtschafts-, Sozial- und Umweltrates: https://www.lecese.fr/sites/default/files/pdf/Avis/2023/2023_24_RAEF.pdf

      Bericht des Wirtschaftsinstituts für das Klima: https://www.i4ce.org/publication/transition-est-elle-accessible-a-tous-les-menages-climat/

    1. That’s paid for by the state from a $40 million fund approved by the legislature.

      Per the #JustPowers clause of The Declaration of Independence, people can't grant powers they don't have to Gov, including legislators.

      Since I can't justly extort my neighbors to fund things I want, like training for local police, the legislature cannot justly do this either.

      The alternative would be to fund police training voluntarily through donations to a "training fund". Then the police funding would depend on what the local community is willing to support - not the whims of politicians.

      "Law enforcers" are mercenaries hired to impose political edicts on the masses, and they are funded with money extorted unjustly from the populace.

      They are predators on the people, not protectors as they are portrayed in media propaganda. Their only job is to keep the political racketeers tax slaves in-line.

  4. Sep 2023
      • for: climate financing, JETP, Just Energy Transition Partnerships
      • summary
        • Just Energy Transition Partnerships (JETP) are happening in South Africa and also Indonesia, Vietnam, Senegal and possibly India.
        • Will these actually happen? Will they be enough to avoid the highest risk of planetary tipping points?
    1. Ramalope says they also don’t go far enough. “I think the weakness of JETPs is that they’re not encouraging 1.5 [degrees] Celsius,”
      • for: 1.5 Deg target, JETP, JETP ambitions
      • comment
        • the JETPs do not go far enough. This is dangerous as it still allows significant amounts of fossil fuel emissions that will breach 1.5 Deg C and increase chances of breaching severe planetary tipping points
    2. Just Energy Transition Partnerships, or JETPs, an attempt to catalyze global finance for emerging economies looking to shift energy reliance away from fossil fuels in a way that doesn’t leave certain people and communities behind.
      • for: Just transition, Just Energy Transition, Just Energy Transition partnerships, JETP
      • Question

        • How does JETP fit into the global transition in terms of:

          • speed
          • climate justice
          • decolonialism
        • Is net zero enough?

  5. Aug 2023
  6. Jul 2023
      • for: safe and just boundaries, earth system justice, planetary boundaries
    1. this is now quantifying this this safe space but for the first time also doing it for justice so measuring the maximum allowed 00:15:33 of significant harm to people and the key take home here is the following in the outer ring here the red and green you see the safe boundary definitions 00:15:45 the blue lines are the assessment of justice so not surprisingly if we care about people the safe bound is about the stability of the planet but if we care about avoiding significant harm to hundreds of millions of people across 00:15:58 the world the climate boundary shrinks from 1.5 down to one degree
      • for: earth system boundaries, planetary boundaries, safe and just boundaries, earth system justice, just boundaries
      • key finding
        • if we include justice in the planetary boundaries, then the 1.5 Deg C target becomes 1.0 Deg C.
        • In other words, we have already breached the safe and just boundary!
      • Title
        • Eat Just To Scale Up Cultured Meat Production On Gaining New Regulatory Approval In Singapore
      • Author
        • Douglas Yu
      • Publication
        • Forbes
      • Date

        • Jan 18, 2023
      • Description

        • This story updates what is happening in the lab brown meat industry.
      • Comment

        • What progress traps might present themselves here?
        • Immediately, one presents itself
          • Centralization of global meat production to a few technological silos
          • Significant job loss in the meat industry
  7. Jun 2023
  8. Apr 2023
  9. Mar 2023
    1. Within the Earth Commission, we aim to propose ‘safe and just Earth system boundaries’ (ESBs) that go beyond planetary boundaries as they also include a justice perspective and suggest transformations to achieve them3.
      • The = Earth Commission,
      • proposes ‘safe and just Earth system boundaries’ (ESBs)
      • that go beyond planetary boundaries as
        • they also include a justice perspective
        • suggest transformations to achieve them.
      • Safe and just ESBs aim to:

        • stabilize the Earth system,
        • protect species and ecosystems,
        • avoid tipping points,
        • minimize ‘significant harm’ to people while ensuring access to resources for a dignified life and escape from poverty.
      • If justice is not considered,

      • the biophysical limits may not be adequate
      • to protect current generations from significant harm

      • Comment

      • Similar to aims of doughnut economics
    2. The above proposals for just ends need to be subject to wide discussion to further refine our proposals and better meet principles of procedural justice and to analyse the transformations that will achieve this. Just means include ensuring that different knowledge systems are represented in assessments and collective action that challenges dominant sociocultural norms and assumptions about misrecognized groups.
      • Paraphrase
      • Comment
      • For such an unprecedented rapid whole system change, we will need inclusive, participatory debate at every level of society!
      • Transformation has to be applied to all drivers including:
        • values
        • governance
        • inequality
        • population and demographics
        • technology
        • consumption
        • accumulation
        • biophysical processes
    3. Since minimum access levels for the poor cannot be met within the ESBs without substantial reallocation of resources, we propose minimum access levels for all people. These levels provide the floor or foundation of a corridor, while the ESBs constitute the ceiling (Fig. 6). If resources, responsibilities and risks are allocated in a just manner (Fig. 1), we consider this a ‘safe and just corridor’.
      • Second stage of characterizing the Safe and Just Corridor
      • Since minimum access levels for the poor cannot be met within the ESBs without substantial reallocation of resources,
      • minimum access levels for ALL people is proposed (Annotator's emphasis)
      • These levels provide the floor or foundation of a Safe and Just corridor (Fig. 6)
      • the ESBs constitute the ceiling of the Safe and Just corridor (Fig. 6).
    4. The black line in Fig. 5 shows that redistribution is not enough; if everyone’s emissions are equalized at escape from poverty levels, then we would still overshoot the climate boundaries
      • First stage of characterizing the Safe and Just Corridor
      • The black line in Fig. 5 shows that
      • redistribution is not enough
        • if everyone’s emissions are equalized at escape from poverty levels, then
        • we would STILL overshoot the climate boundaries (annotator's emphasis)
        • hypothetical pressure from 62% of humanity that is lacking humane access to resources is equal to the pressure exerted by 4% of the elits of humanity
    5. Preserving ecosystem area is sometimes critiqued as ‘fortress conservation’ by environmental justice scholars, limiting access for poor or Indigenous people68. An ecosystem area boundary therefore requires careful consideration and involvement of the local communities, for example by not demanding that intact areas preclude human inhabitation and sustainable use and/or recognizing the role of Indigenous peoples and local communities in already protecting these areas.
      • Comment
      • "Fortress conservation" is an example of approaching safe boundaries but not considering JUST boundaries.
    6. Safe and just ESBs aim to stabilize the Earth system, protect species and ecosystems and avoid tipping points, as well as minimize ‘significant harm’ to people while ensuring access to resources for a dignified life and escape from poverty. If justice is not considered, the biophysical limits may not be adequate to protect current generations from significant harm. However, strict biophysical limits, such as reducing emissions or setting aside land for nature, can, for example, reduce access to food and land for vulnerable people, and should be complemented by fair sharing and management of the remaining ecological space on Earth4.
      • The meaning of safe and JUST ESBs
      • Safe:
        • stabilize the Earth system,
        • protect species and ecosystems,
        • avoid tipping points
      • JUST:
        • minimize ‘significant harm’ to people
        • while ensuring access to resources for a dignified life and escape from poverty.
        • If JUSTice is not considered,
        • Strict biophysical limits, such as reducing emissions or setting aside land for nature,
          • may lead to intended consequences that reduce access to food and land for vulnerable people.
          • To mitigate this, biophysical limited should be complemented by fair sharing and management of the remaining ecological space on Earth.
    7. joint knowledge to identify safe and just ESBs
      • collaboration between natural and social scientists that uses joint knowledge to identify safe and just ESBs for:
        • blue water,
        • climate change,
        • biodiversity,
        • nutrients (nitrogen and phosporus),
        • air pollution
  10. Jan 2023
    1. we have committed to spend 6.2 billion dollars we've made that public to give ourselves real Zero by 2030.

      !- quotable : Andrew Forrest - Real zero by 2030 : not net zero by 2030

      !- question : just transition - can a clean energy transition be just when billionaires are involved in capital centralising investments?

    2. there are amazing people worldwide that are working to protect the local to Global Commons the next step is to involve businesses 00:11:44 countries cities and people worldwide to accept Earth system boundaries and the just Transformations we need to live within these boundaries

      !- required transformation : global movement to accept and live writing these boundaries

    3. can we quantify safe and just Earth 00:04:20 system boundaries or an earth system corridor in 2019 the Global Commons Alliance created the Earth commission to answer this question

      !- key question : can we quantify a safe and just corridor?

    4. we need in this Century a safe and just Corridor for all people to exit the danger zone but also to ensure that all people have access to basic needs rights 00:04:07 uh rights to a water food energy and infrastructure

      !- definition : safe and just corridor

    5. we're taking colossal risks with the future of civilization on Earth We're degrading life support system that we all depend on we're actually pushing 00:00:57 the entire Earth system to a point of destabilization pushing Earth outside of the state that has support civilization since we left the last ice age 10 000 years ago this requires a transformation to safe 00:01:11 and just Earth system boundaries for the whole world economy

      !- Title : Leading the charge through earth’s new normal !- speakers : Johan Rockstrom et al.

    1. DeWine said he has talked directly with the director and several members of the six-member Ohio Casino Control Commission, to which the legislature gave the job of regulating the fledgling industry.

      Since neither you nor I nor anyone else may dictate whether or not people bet on sports in Ohio, we couldn't have justly granted that authority to the legislature to hand off to the made-up "Ohio Casino Control Commission". We also couldn't have justly granted any authority to "Governor" Mike DeWine.

      This is simply corrupt racketeering by the most powerful gang in the state, and their "legions of enforcer" mercenaries to claim a right to impose their opinions on Ohioans when no one else can.

      For those confused, it's right there in the Just Powers clause of The Declaration of Independence.

      All just Gov power must be granted to it by individuals. They can't just wish power for themselves out of thin air, no matter how many legislators or voters "vote" for the wish to come true.

  11. Dec 2022
    1. 2030 (UNGA, 2015) provides a global consensus on key justice principles of access and a starting point for an analysis of a safe and just corridor that aims to ensure that “no one will be left behind.

      !- starting point : Agenda 2030, UNGA 2015

    2. By identifying safe and just target ranges, the question arises: How can we achieve these targets and live within the corridor? Transforming toward a “just” world may be a pre-condition for being able to achieve a “safe” world. Leverage points to achieve such transformations are essential for governing our commons.

      !- role : leverage points - Leverage points play a critical role to achieve transformation to a safe and just corridor

    3. We propose that the stricter of the safe and just target ranges for each variable should define the safe and just corridor (Figure 2). Furthermore, we propose to identify a spread of safe and just targets corresponding to different physical risk tolerances and different understandings of environmental justice.

      !- range : safe and just corridors - identify a range of safe and just corridors for society to choose - depending on different physical risk tolerances / environmental justice

    4. Second, a key question is how biophysically “safe” targets can be achieved while also meeting goals for human well-being and justice. For example, meeting the social goals of Agenda 2030 without widespread transformations may lead to crossing safe targets for the biophysical state of the Earth system (Sachs et al., 2019). Achieving biophysical targets, such as 1.5°C for climate or increasing ecosystem protection, can undermine well-being, if, for example, bioenergy competes with food production, or protected areas undermine local livelihoods (Hasegawa et al., 2020).

      !- safe and just : tradeoffs - something that is safe can still be unjust - ie. meeting Agenda 2030 for human wellbeing without widespread transformation may lead to violating safe biophysical targets

    5. First, an “unsafe” world is likely to increase inequality, so “safe” would seem a necessary pre-condition for “just”—but not always a sufficient one. A “safe” target from a biophysical perspective may not be adequate to prevent large-scale risks to humans in specific contexts. For example, there are large risks for many human populations even with a 1.5°C climate target (Hoegh-Guldberg et al., 2018).

      !- safe and just : tradeoffs - safe can still result in unjust

    6. Identifying safe ranges for these systems in isolation, for example as the planetary boundary framework has done (Rockström et al., 2009; Steffen, Richardson, et al., 2015), will not be enough to describe a safe corridor.

      !- limitations : planetary boundary framework - planetary boundary framework is insufficient to describe a safe corridor

    7. An integrated framework is needed that aligns safe and just Earth system variables while also accounting for sub-global scales and interactions between Earth system processes.

      !- identified need : integrated framework to align safe and just earth system variables while accounting for sub-global scales and interactions between earth system processes

    8. our goal of synthesizing a range of safe and just conditions rather than prescribing any specific solution.

      !- goal : safe and just corridor research - develop a range of safe and just conditions for civilization to choose from

    9. An integrated people and planet perspective is required to guide human development and use of the global commons We outline an approach to defining a safe and just corridor for a stable and resilient planet supporting human development A conceptual framework for linking safe and just Earth system targets is proposed

      !- key points: for a safe and just corridor - 1. Integrated people and planet strategy - 2. outline of an approach that defines safe and just corridor - 3. conceptual framework linking safe and just targets

    10. safe as primarily referring to a stable Earth system and just targets as being associated with meeting human needs and reducing exposure to risks.

      !- in other words : "safe" and "just" - thinking in terms of doughnut economics, safe refers to staying within biophysical constraints and just refers to staying within socio-economic constraints of human civilization to ensure wellbeing

    11. Keeping the Earth system in a stable and resilient state, to safeguard Earth's life support systems while ensuring that Earth's benefits, risks, and related responsibilities are equitably shared, constitutes the grand challenge for human development in the Anthropocene. Here, we describe a framework that the recently formed Earth Commission will use to define and quantify target ranges for a “safe and just corridor” that meets these goals.

      !- Earth Commission : framework for safe and just corridor

  12. Nov 2022
    1. the belief that citizens should have the right to come together to decide what’s best for their community

      What Klein overlooks is the Just Powers Clause in The Declaration of Independence.

      It explains that people may only justly delegate powers to Gov that they actually have.

      So one cannot, as in this case, "come together and decide" to infringe on the individual right to keep and bear arms because none of the individuals in Columbus have that power as an individual.

      They can't justly delegate this power to Gov because they don't have the power themselves.

    1. the container ship was simply becoming so large so unwieldy that much of the infrastructure around them is struggling to cope a lot of the decisions to build Supply chains were really based on

      Impact of cheap transportation

      production costs and transport costs

      With transportation costs so low and logistics assumed, manufactures chased cheaper production costs. They would outsource manufacturing to low-cost countries without considering the complexity risks.

  13. Oct 2022
    1. The problem is that the caller may write yield instead of block.call. The code I have given is possible caller's code. Extended method definition in my library can be simplified to my code above. Client provides block passed to define_method (body of a method), so he/she can write there anything. Especially yield. I can write in documentation that yield simply does not work, but I am trying to avoid that, and make my library 100% compatible with Ruby (alow to use any language syntax, not only a subset).

      An understandable concern/desire: compatibility

      Added new tag for this: allowing full syntax to be used, not just subset

  14. Sep 2022
    1. Learned right, which means understanding, which meansconnecting in a meaningful way to previous knowledge, informationalmost cannot be forgotten anymore and will be reliably retrieved iftriggered by the right cues.

      Of course this idea of "learned right" sounds a lot like the problems built into "just". He defines it as meaning "understanding" but there's more he's packing into the word. While his vein example is lovely, the bigger issue is contextualizing everything all the time, which is something that commonly isn't done or even done well over time by educators. This work takes time and effort to help students do this as they're not doing it for themselves until much later in life.

    Tags

    Annotators

    1. Just because you can create a plugin for any tool and manage its versions with asdf, does not mean that is the best course of action for that specific tool.
  15. Aug 2022
    1. I'm building a Rails API with a separate web frontend app as "just another API client" (various smartphone apps to follow as well). In the previous "monolithic" version of the service, where all the server side was rolled into one Rails app
  16. Jul 2022
    1. it falls within TACE

      Does it? Most jQuery is served minified. Even if not, the "full fat" version is not especially readable.

      There are bad reasons to despise jQuery (e.g. because it's old). But there are good reasons, too (because it's bloated and just not very good).

    1. 4.2 Meaningful work and meaningful relationships aren’t just nice things we chose for ourselves—they are genetically programmed into us.

      4.2 Meaningful work and meaningful relationships aren’t just nice things we chose for ourselves—they are genetically programmed into us.

  17. Jun 2022
    1. All this hoopla seems out of character for the sedate man who likes to say of his work: ''Whatever I did, there was always someone around who was better qualified. They just didn't bother to do it.''
    1. War assault weapons have no place except with military?

      It's strange how the same people who imagine a disarmed populace as a good thing are playing catch-up to arm Ukranian civilians against a military. I've lost count of the children massacred by militaries that are the only groups of people magically trustworthy enough to be armed apparently.

      If you left a murderer alone with a room full of kids and a knife for 77 minutes, you'd have the same result - and if you're a student of recent history, you'd know that's exactly the kind of attack that has happened time and again in gun-free victim zones around the world.

      To address this issue properly, citizens must understand the #JustPowers Clause of The Declaration of Independence, the foundation that the US Constitution is laid upon; and a universal document that recognizes the rights of ALL humans.

      Put simply, it states that neither you, nor I, nor anyone else may justly grant powers to others that we do not have.

      If you or I stole our neighbors' firearms, even if we claimed it was for "safety" or "the common good", we'd face criminal charges. We all know this, and the evidence is in our conduct.

      Instead, why not focus just powers such has holding adults responsible for the safety of others accountable for negligence?

  18. May 2022
    1. The security of the data (authentication, confidentiality, integrity and forward secrecy) is handled by the transport security protocol, BTP. The same protocol is used for all transports. BTP is an obfuscated protocol: to anyone except the intended sender and recipient, all data is indistinguishable from random. So BTP's first job is to let the recipient know who sent the data, so the recipient can use the right key to authenticate and decrypt it.

      crypto protocol

  19. Apr 2022
    1. could a few carefully-placed lines of jQuery

      Look, jQuery is not lightweight.* It's how we got into this mess.

      * Does it require half a gigabyte of dev dependencies and regular dependencies to create a Hello, World application? No, but it's still not lightweight.

  20. Mar 2022
  21. Feb 2022
    1. only jquery

      It would be nice if people would stop saying this—and saying it like this—as if it's a badge of honor. jQuery is a fuckin' beast. 10 years ago, the reason that the browser was being brought to a crawl on any given pages often came down to the fact that it was using jQuery. jQuery is the reason that bloated frameworks became normalized and brought us to where we are today. So, enough already with this just-a-little-jQuery stuff.

  22. Jan 2022
  23. notesfromasmallpress.substack.com notesfromasmallpress.substack.com
    1. If booksellers like to blame publishers for books not being available, publishers like to blame printers for being backed up. Who do printers blame? The paper mill, of course.

      The problem with capitalism is that in times of fecundity things can seem to magically work so incredibly well because so much of the system is hidden, yet when problems arise so much becomes much more obvious.

      Unseen during fecundity is the amount of waste and damage done to our environments and places we live. Unseen are the interconnections and the reliances we make on our environment and each other.

      There is certainly a longer essay hiding in this idea.

    1. Just Christoph Udenius, for example, sug-gested leaving thirty or forty blank pages at the end of a commonplace book to be filled in with a well-made subject index, or devoting a separate in-octavo booklet for this essential task;

      Just Christoph Udenius, Excerpendi ratio nova (Nordhausen, 1687), 62–3; Placcius, De arte excerpendi, 84–5; Drexel, Aurifodina, 135.

      What earlier suggestions might there have been for creating indices for commonplaces?

  24. Nov 2021
    1. Even if #foo is originally on the page and then removed and replaced with a #foo which contains baz after a short wait, Capybara will still figure this out.
    2. As long as you stick to the Capybara API, and have a basic grasp of how its waiting behaviour works, you should never have to use wait_until explicitly.
    3. Let’s make that really clear, Capybara is ridiculously good at waiting for content.
    4. apybara could have easily figured out how to wait for this content, without you muddying up your specs with tons of explicit calls to wait_until. Our developer could simply have done this: page.find("#foo").should have_content("login failed")
    1. Calling a software convention "pretty 90s" somewhat undermines your position. Quite a lot of well-designed software components are older than that. If something is problematic, it would be more useful to argue its faults. When someone cites age to justify change, I usually find that they're inexperienced and don't fully understand the issues or how their proposed change would impact other people.
  25. Oct 2021
    1. And on any given day, developing with Svelte and its reactive nature is simply a dream to use. You can tell Svelte to track state changes on practically anything using the $: directive. And it’s quite likely that your first reactive changes will produce all the expected UI results.
    1. DIRECTORY (in progress): This post is my directory. This post will be tagged with all tags I ever use (in chronological order). It allows people to see all my tags, not just the top 50. Additionally, this allows me to keep track. I plan on sorting tags in categories in reply to this comment.

      External links:

      Tags categories will be posted in comments of this post.

  26. Sep 2021
    1. Let's not get over-excited. Actually, we're only part-way there; you can compile this code with the TypeScript compiler.... But is that enough?I bundle my TypeScript with ts-loader and webpack. If I try and use my new exciting import statement above with my build system then disappointment is in my future. webpack will be all like "import whuuuuuuuut?"You see, webpack doesn't know what we told the TypeScript compiler in the tsconfig.json.
  27. Aug 2021
  28. Jul 2021
    1. Meanwhile, we remain trapped in two countries. Each one is split by two narratives—Smart and Just on one side, Free and Real on the other. Neither separation nor conquest is a tenable future. The tensions within each country will persist even as the cold civil war between them rages on.
    2. Just America is a narrative of the young and well educated, which is why it continually misreads or ignores the Black and Latino working classes.

      the participants of "Just America"

    3. In the same way that libertarian ideas had been lying around for Americans to pick up in the stagflated 1970s, young people coming of age in the disillusioned 2000s were handed powerful ideas about social justice to explain their world. The ideas came from different intellectual traditions: the Frankfurt School in 1920s Germany, French postmodernist thinkers of the 1960s and ’70s, radical feminism, Black studies. They converged and recombined in American university classrooms, where two generations of students were taught to think as critical theorists.

      Libertarian ideas being picked up in the 1970s.in analogy with

      Frankfurt School in 1920s Germany and French postmodernist thinkers of the 1960s and 70s put into "Just America"

  29. Jun 2021
    1. '...ee' is usually paired with an '..er', isn't it? Employee/Employer, Trainee/Trainer. I wouldn't use Coachee because to me, it implies you're a Coacher, not a Coach.

      Just because "...ee" is usually paired with an "...er" word doesn't mean it can never be paired with a non-"-er", non-"-or" word.

      I'm sure there are many examples of inconsistencies in English that we could point at to make that point...

  30. May 2021
    1. “You can’t use HTML5 or CSS3 in email.” Due to their “limited” support, the idea that using HTML5 and CSS3 in email is “impossible” remains a commonly-held notion throughout the email design industry. However, we’re calling it a complete myth.
    1. Just because there can be issues with CSS in HTML emails doesn’t mean you should abandon efforts to use it. It all comes down to determining which codes are absolutely needed and how to style them so they can be rendered by email platforms.
  31. Apr 2021
    1. (Yes, I realize from a technical, end-user perspective this really doesn't matter.)

      The word "technical" in this sentence doesn't seem to belong or to clarify anything. I think it would be clearer without it.

      But I think I understand what he's saying, which is that technical details don't matter to the end user. They only know/see/care if it works or not.

    1. Although echo "$@" prints the arguments with spaces in between, that's due to echo: it prints its arguments with spaces as separators.

      due to echo adding the spaces, not due to the spaces already being present

      Tag: not so much:

      whose responsibility is it? but more: what handles this / where does it come from? (how exactly should I word it?)

    1. unsuspecting childlikeness

      I'd also add [learned helplessness] (https://www.britannica.com/science/learned-helplessness) - the constant need for entertainment is definitely a problem, but if we take a deterministic view of these broader design trends the long-term ramifications are even more disturbing - the rise of Web 2.0 has seen a massive shift towards user-friendly platforms, but in addition to cultural infantilization we are seeing a significant decrease in tech literacy - and sometimes these trends manifest simultaneously. For instance, I'm writing this annotation in Chrome, but if I lose internet access my browser tab would allow me to play the endlessly addictive "Chrome Dino" browser game until my connection was restored - this is a fairly innocuous little easter egg (not coincidentally a term also used by Yelp UI designer Yoni De Beule in one of the articles I linked to above), but it does raise some broader questions about the amount of tech literacy and user autonomy these companies want us to have - features like these suggest that passivity is their preferred state for consumers, which is troubling.

    1. # +devise_for+ is meant to play nicely with other routes methods. For example, # by calling +devise_for+ inside a namespace, it automatically nests your devise # controllers: # # namespace :publisher do # devise_for :account # end
  32. Mar 2021
    1. Following on the IndieWeb's "just" conversation, this illustration is a good example of the idea, though step 5 doesn't include the words "just" or "simply". It can reflect the problems of leaving these words out without providing the additional context they're papering over.

    1. The beauty of hypertext is that we’re able to quickly add much-needed context helpful for n00bs but easy enough for those already in-the-know to scan over. And making documentation more human-readable benefits everyone.

      It would be cool to make developers and writers document all the missing information in their documents every time they use the word "[[just]]".

    1. Svelte is there when I need it with useful APIs, but fades into the background as I put my app together.
    2. One part of React that I've always championed is how it's just JavaScript. I like that in React you don't use a distinct template syntax and instead embed JavaScript, compared to Svelte's templating language
    3. I will always find React's approach easier - at least in my head - and I think more friendly to people familiar with JavaScript who are learning a library.
    1. Another important MicroJS attribute is independence. Ember, Backbone—even Bootstrap to a degree–have hard dependencies on other libraries. For example, all three rely on jQuery. A good MicroJS library stands by itself with no dependencies. There are exceptions to the rule, but in general, any dependency is another small MicrojJS library.
    1. Last week, I shared how to check if an input is empty with CSS. Today, let’s talk about the same thing, but with JavaScript.
    1. You can do and impressive amount of form validation with just HTML attributes. You can make the user experience pretty clean and clear with CSS selectors.
    1. the client form validation is the one I like a lot, because, for example, by adding required attribute to an input, I don’t need to write any additional JavaScript to warn a user, when the user submits a form without filling out the required fields
    1. There’s no additional logic from Trailblazer happening here. The function returns a well-defined hash which is passed as an argument to step.
  33. Feb 2021
    1. Keyword arguments allow to define particular parameters as required. Should the parameter be missing, they also provide a way to set a default value. This is all done with pure Ruby.
    1. This is failing CI because CI is testing against Rails < 6. I think the appropriate next steps are: Open a separate PR to add Rails 6 to the CI matrix Update this PR to only run CSP-related test code for Rails >= 6.0.0 Can you help with either or both of those?
    1. which entails computer programming (process of writing and maintaining the source code), but also encompasses a planned and structured process from the conception of the desired software to its final manifestation
    1. Operations define the flow of their logic using the DSL and implement the particular steps with pure Ruby.
    1. And honestly, most people prefer the no hassle, especially after wasting too much time dabbling with distros that are "for advanced users" troubleshooting all kinds of dumbass problems that just worked out of the box in many other distros.