- Dec 2024
-
www.youtube.com www.youtube.com
-
we cannot create the so-called new without addressing the historical homes that have been created.
for - example of - meme - we cannot know where we are going - unless we know where we are from - redressing colonial harm - in order to create a viable future - Post Capitalist Philanthropy - Alnoor Ladha - Lynn Murphy - 2023
-
-
library.scholarcy.com library.scholarcy.com
-
he analysis reveals that media coverage is dominated by five themes: military justice, institutional structure, culture, gender/gender integration, and change. Gender is a relatively minor focus throughout media coverage, with attention to court cases dominating the majority of the coverage.
-
Institutional gaslighting includes political strategies to resist critiques of the institution or discredit evidence that undermines the authority or carefully crafted image of the institution.
-
Military exceptionalism is shaped by ideals of "good militaries" and "good soldiers," which are constructed as necessarily white, masculine, exclusive, and reproduced through the regulation of sex and the exclusion of women and racialized groups.
-
- Nov 2024
-
www.youtube.com www.youtube.com
-
the bodh SATA path is what is the structure and practice that allows the soul to become embodied
for - education - bodhisattva path - the soul becomes embodied - John and Nicole Churchill
-
what is our offering to this fourth turning because this is the you know the fourth training is a planetary process so it's not you know it's not us but what is our offering so essentially um you know it is a an education in in the the where psychology and spirituality meet
for - education - planetary process - where psychology meets spirituality - training - John and Nicole Churchill
-
- Oct 2024
-
www.carnegie.org www.carnegie.org
-
The Indians are today where civilized man then was.
for - quote / critique - The Indians are today where civilized man then was
quote / critique - The Indians are today where civilized man then was - Andrew Carnegie - The Gospel of Wealth - Carnegie starts off his essay with this statement, that is meant to contrast how far industrial mass production has progressed society compared to the the rate of progress before it - It is an unfortunate choice of comparison as it is tainted with the mass genocide brought about by Carnegie's colonialist ancestors - Human civilization progressed in nonuniform spurts, with some parts of the world advancing greater than other parts at different times of human history
-
-
library.scholarcy.com library.scholarcy.com
-
The regime's discourse was directed not only at domestic audiences but also at international ones, particularly in the West, where it sought to project its strength and legitimacy through civilizational language that focused on barbarizing the opposition.
militaristic discourse can connect countries across national borders
-
discourse of racial militarism to justify its brutal crackdown on opposition groups, particularly those with Islamic affiliations.
-
ecular militarism also plays a role in othering and excluding those who seek a greater role for religion in political and public life.
-
reinforce a masculinist nationalism through militarism
link to gender and military
-
Syria's militarist state has been shaped by its experience of colonization, and its militarism is directly connected to the country's anticolonialism
-
The ideal masculine identity was tied to militarism
military masculinity
-
Racial militarism played a significant role in shaping insider-outsider boundaries of national identity, with militarism performing an exclusionary function within the nation-state.
-
The construction of the "Other" was also racialized
othering connected to militarism, enacted through it and created by it
-
militarism, which was used to facilitate the transition from one epoch of human development to the next.
-
militarism is not only shaped by colonialism but also perpetuates racial hierarchies and civilizational anxiety.
militarism is entangled with race
-
-
www.youtube.com www.youtube.com
-
53:36 A community can set up a CONTRIBUTION which everyone agrees to pay in the currency issued by the community issuer 53:48 Therefore a Debt Free Currency System really means a COMMUNITY TRIBUTE money system where the debt is a contribution to the community, payable in the currency of the issuer 55:45 A community can set up its own CENTRAL BANK that sets the interest rate at zero for the money in the community
-
28:08 UMKC is one kilometre from our location in Kansas - literally at the end of 53rd street where we live :-)
Tags
- Therefore a Debt Free Currency System really means a COMMUNITY TRIBUTE money system where the debt is a contribution to the community, payable in the currency of the issuer
- A community can set up its own CENTRAL BANK that sets the interest rate at zero for the money in the community
- A community can set up a CONTRIBUTION which everyone agrees to pay in the currency issued by the community issuer
- It's really a FREE MONEY system - Stef Kuypers is right!!
- UMKC is one kilometre from our location in Kansas - literally at the end of 53rd street where we live :-)
Annotators
URL
-
-
www.youtube.com www.youtube.com
-
Globetrotting Boy Detective by [[Jerry Michalski]]
Also in this pantheon, though later, are Where in the World Is Carmen San Diego and Wild Kratts.
The Mad Scientists' Club was in the genre, but with less globetrotting.
-
- Sep 2024
-
blog.nodejitsu.com blog.nodejitsu.com
-
Want to really annoy an open-source maintainer? Then ignore any communication channels they have setup for support.
-
-
stackoverflow.com stackoverflow.com
-
Rails' observers were partly inspired by aspect-oriented programming -- they're about cross-cutting concerns. If you're putting business logic in observers that is tightly coupled to the models they're observing, you're doing it wrong IMO.
-
- Aug 2024
-
www.nytimes.com www.nytimes.com
-
Academic essays had always been my thing. So I thought: if I just studied good writing as hard as I was studying my A.P. Biology textbook, I’d absorb everything — ideas, words, syntax — by sheer rote. Like osmosis.
-
- Apr 2024
-
www.bilibili.com www.bilibili.com
-
WHERE必须在FROM后面
Tags
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
-
-
gitlab.com gitlab.com
-
You can see how the constant jumping between these two tools in the first scenario is super annoying, and also very risky as none of the changes you make in Figma are also automatically being updated in the same GitLab designs.
-
As a positive example of where this works well: Our VS Code GitLab Workflow extension allows users to not only see comments that were written inside the GitLab UI, but also allows these users to respond to these comments right from the IDE, the tool where they actually have to make these changes.
-
-
-
1:15 violence, rape, murder, ... executive order to dissolve chaz and restore order.<br /> too bad, murder is exactly where my fun starts. but this world is ruled by militant pacifists,<br /> who only replace serial murder with overpopulation and mass murder every 100 years, aka "war".<br /> they only replace death with accumulated "debt"... idiots. idiocracy is here and now.
-
-
docdrop.org docdrop.org
-
you don't start a feminist revolution by arguing with your dad. (Marjorie laughs) He might be the one who needs to change, but that doesn't mean that you start there. 00:22:55 You start by talking to each other. We need to come together. We need to have solidarity.
-
for: system change - where to start
-
paraphrase
- You don't start a feminist revolution by arguing with your dad. He might be the one who needs to change, but that doesn't mean that you start there.
- You start by talking to each other. We need to come together. We need to have solidarity.
- We need to have a common narrative and analysis and understanding of what's happening.
- And I think a common understanding of pathways of change and we need that core nucleus of people who really are working for system change.
- I think that's where we start. And hopefully, the narrative and the clarity that we can bring will be compelling enough that we will win more hearts and minds
-
comment
- cascading social tipping points
-
-
- Dec 2023
-
www.statista.com www.statista.com
-
- for: climate deniers - where they live
-
- Sep 2023
-
hypothes.is hypothes.is
-
"Surrendering" by Ocean Vuong
-
He moved into United State when he was age of five. He first came to United State when he started kindergarten. Seven of them live in the apartment one bedroom and bathroom to share the whole. He learned ABC song and alphabet. He knows the ABC that he forgot the letter is M comes before N.
-
He went to the library since he was on the recess. He was in the library hiding from the bully. The bully just came in the library doing the slight frame and soft voice in front of the kid where he sit. He left the library, he walked to the middle of the schoolyard started calling him the pansy and fairy. He knows the American flag that he recognize on the microphone against the backdrop.
-
Tags
- My family immigrated to the U.S. from Vietnam in 1990, when I was two. We lived, all seven of us, in a one-bedroom apartment in Hartford, Connecticut, and I spent my first five years in America surrounded, inundated, by the Vietnamese language. When I entered kindergarten, I was, in a sense, immigrating all over again, except this time into English. Like any American child, I quickly learned my ABCs, thanks to the age-old melody (one I still sing rapidly to myself when I forget whether “M” comes before “N”). Within a few years, I had become fluent—but only in speech, not in the written word.
- Weeks earlier, I’d been in the library. It was where I would hide during recess. Otherwise, because of my slight frame and soft voice, the boys would call me “pansy” and “fairy” and pull my shorts around my ankles in the middle of the schoolyard. I sat on the floor beside a tape player. From a box of cassettes, I chose one labelled “Great American Speeches.” I picked it because of the illustration, a microphone against a backdrop of the American flag. I picked it because the American flag was one of the few symbols I recognized.
Annotators
URL
-
- Jun 2023
-
www.soulcutter.com www.soulcutter.com
-
Let’s check out what the refinement approach looks like and why I consider it the best way to implement conversion wrappers.
-
- Apr 2023
-
www.blackpast.org www.blackpast.org
-
were almost wholly conducted by women;
Fredrick Douglas observed that the convention was ran by mostly women. He says depsite the different opinions and view points, these women maintained good decorum. He says their proceedings were marked by ability and dignity. At this convention, he would see these women read grievances and other documents setting forth the rights for women.
-
On July 19-20, 1848, 68 women and 32 men attended the First Women’s Rights Convention which was held in the upstate New York town of Seneca Falls
When- July 19-20th, 1848 Who- 100 people (32males/68females) Fredrick Douglas attended and wrote his impressions about the convention in a newspaper. Article named, The North Star What- Very first womens rights conventions. Article : The North Star Where- NewYork, Seneca Falls.
-
-
myd2l.lcc.edu myd2l.lcc.edu
-
Fredrick Douglas was one of one hundred people who attended the very first womens rights conevention. Located in New York, Seneca Falls. Frederick Douglas is the author of the article, The North Star. Dated July 28th, 1848. Article is about
-
- Mar 2023
-
docdrop.org docdrop.org
-
gaga's third question where are we going is what i want to address in these talks 00:05:26 it may seem unanswerable who can foretell the human course through time but i think we can answer it in broad strokes by answering the other two questions first 00:05:40 if we see clearly what we are and what we've done we can recognize human behaviors that persist through many times and cultures and knowing these can tell us what we 00:05:52 are likely to do and where we are likely to go from here
- Wright points out that answering the first two questions
- is the key to answering the third one
- Wright points out that answering the first two questions
-
the artist managed to harness his grief to produce a vast painting more a mural in conception than a canvas in which like the victorian age itself he demanded 00:04:31 new answers to the riddle of existence he wrote the title boldly on the image three childlike questions simple yet profound where do we come from 00:04:46 what are we where are we going the work is a sprawling panorama of enigmatic figures amid scenery
Paul Gauguin's painting: - Where Do We Come From? What Are We? Where Are We Going? - https://en.wikipedia.org/wiki/Where_Do_We_Come_From%3F_What_Are_We%3F_Where_Are_We_Going%3F#:~:text=Que%20sommes%2Dnous%20%3F,the%20themes%20of%20the%20Gospels%22. - Wright uses this painting as a appropriate introduction to his work tracing human progress because to answer the third question - where are we going? - requires answering the first two - where do we come from? - what are we?
-
- Dec 2022
-
Local file Local file
-
The next two questions are where to play and how to win. These twochoices, which are tightly bound up with one another, form the very heart ofstrategy and are the two most critical questions in strategy formulation.
The two most important questions in strategy formulation are: where to play and how to win. They define the specific activities of the organisation.
-
-
forum.audacityteam.org forum.audacityteam.org
-
I have yet to see a Snapd or Flatpak build of Audacity that I'm happy with. Those builds are beyond our control as they are made by 3rd parties. I do find it mildly annoying that Flatpak direct users that have problems with their builds to us.
annotation meta: may need new tag: the runaround?
-
- Jul 2022
-
drive.google.com drive.google.com
-
Many of the workers reported that first thing in themorning, or after any interruption in their thought(like a ‘phone call), they have the “where was 1?”problem in a complex and ill-defined space of ideas.The layout of physical materials on their desk givesthem powerful and immediate contextual cues torecover a complex set of threads without difilcultyand delay, “this is my whole context, these are mypersonal piles”
Following interruptions by colleagues or phone calls at work, people may frequently ask themselves "where was I?" more frequently than "what was I doing?" This colloquialism isn't surprising as our memories for visual items and location are much stronger than actions. Knowledge workers will look around at their environments for contextual clues for what they were doing and find them in piles of paper on their desks, tabs in their computer browser, or even documents (physical or virtual) on their desktops.
-
- Jun 2022
-
hybridpedagogy.org hybridpedagogy.org
-
For Jerome Bruner, the place to begin is clear: “One starts somewhere—where the learner is.”
One starts education with where the student is. But mustn't we also inventory what tools and attitudes the student brings? What tools beyond basic literacy do they have? (Usually we presume literacy, but rarely go beyond this and the lack of literacy is too often viewed as failure, particularly as students get older.) Do they have motion, orality, song, visualization, memory? How can we focus on also utilizing these tools and modalities for learning.
Link to the idea that Donald Trump, a person who managed to function as a business owner and president of the United States, was less than literate, yet still managed to function in modern life as an example. In fact, perhaps his focus on oral modes of communication, and the blurrable lines in oral communicative meaning (see [[technobabble]]) was a major strength in his communication style as a means of rising to power?
Just as the populace has lost non-literacy based learning and teaching techniques so that we now consider the illiterate dumb, stupid, or lesser than, Western culture has done this en masse for entire populations and cultures.
Even well-meaning educators in the edtech space that are trying to now center care and well-being are completely missing this piece of the picture. There are much older and specifically non-literate teaching methods that we have lost in our educational toolbelts that would seem wholly odd and out of place in a modern college classroom. How can we center these "missing tools" as educational technology in a modern age? How might we frame Indigenous pedagogical methods as part of the emerging third archive?
Link to: - educational article by Tyson Yunkaporta about medical school songlines - Scott Young article "You should pay for Tutors"
aside on serendipity
As I was writing this note I had a toaster pop up notification in my email client with the arrival of an email by Scott Young with the title "You should pay for Tutors" which prompted me to add a link to this note. It reminds me of a related idea that Indigenous cultures likely used information and knowledge transfer as a means of payment (Lynne Kelly, Knowledge and Power). I have commented previously on the serendipity of things like auto correct or sparks of ideas while reading as a means of interlinking knowledge, but I don't recall experiencing this sort of serendipity leading to combinatorial creativity as a means of linking ideas,
Tags
- idea links
- combinatorial creativity
- information as currency
- indigenous knowledge
- attitudes
- Jerome Bruner
- Indigenous pedagogy
- Tyson Yunkaporta
- orality vs. literacy
- Indigenous knowledge as educational technology
- orality
- location
- where
- technobabble
- literacy isn't everything
- linguistics
- educational substrates
- arts in education
- modality shifts
- Donald J. Trump
- third archive
- educational tools
- tutors
- inventories
- quotes
- toaster notifications
Annotators
URL
-
- May 2022
-
relishapp.com relishapp.com
-
Where around hooks shine is when you want to run an example within a block. For instance, if your database library offers a transaction method that receives a block, you can use an around to cleanly open and close the transaction around the example.
-
- Mar 2022
-
kiriska.com kiriska.com
-
And it’s easier to share a personal story when you’re composing it 280 characters at a time and publishing it as you go, without thinking about or knowing where the end may be. It’s at least easier than staring down a blank text editor with no limit and having to decide later how much of a 2,500 word rant is worth sharing, anyway.
Ideas fill their spaces.
When writing it can be daunting to see a long blank screen and feel like you've got to fill it up with ideas de novo.
From the other perspective if you're starting with a smaller space like a Twitter input box or index card you may find that you write too much and require the ability to edit things down to fit the sparse space.
I do quite like the small space provided by Hypothes.is which has the ability to expand and scroll as you write so that it has the Goldilocks feel of not too small, not too big, but "just right".
Micro.blog has a feature that starts with a box that can grow with the content. Once going past 280 characters it also adds an optional input box to give the post a title if one wants it to be an article rather than a simple note.
Link to idea of Occamy from the movie Fantastic Beasts and Where to Find Them that can grow or shrink to fit the available space: https://harrypotter.fandom.com/wiki/Occamy
-
- Oct 2021
-
archive.nytimes.com archive.nytimes.com
-
Employees were ‘free’ to negotiate a work contract to their liking within the context of accepting the ‘prerogatives’ of managers to organised and remunerate their efforts as they saw fit (Fox, 1974).
Tags
Annotators
URL
-
- Sep 2021
-
blog.sindresorhus.com blog.sindresorhus.com
-
Users think every Webpack tool/config problem is a problem with a specific package and opens an issue asking for support on the package instead of Webpack. In the past year alone, I’ve had to deal with hundreds of Webpack issues on my repos.
-
- Jul 2021
-
blog.appsignal.com blog.appsignal.com
-
This works nicely wherever we show authors, but after we deploy to production, the folks from other parts of the world won’t get notified anymore about their songs. Mistakes like these are easy to make when using concerns.
-
- Jun 2021
-
github.com github.com
-
Whether you agree or not, to me there's nothing in this world that is entirely apolitical - when there are people there is politics. You don't have to agree with my views, nor do I expect you to. Diversity and disagreement is what drives mankind forward.
-
-
stackoverflow.com stackoverflow.com
-
Thanks, this was just what I was looking for! This is a perfect appropriate use of instance_eval. I do not understand the nay-sayers. If you already have your array in a variable, then sure, a.reduce(:+) / a.size.to_f is pretty reasonable. But if you want to "in line" find the mean of an array literal or an array that is returned from a function/expression — without duplicating the entire expression ([0,4,8].reduce(:+) / [0,4,8].length.to_f, for example, is abhorrent) or being required to assign to a local, then instance_eval option is a beautiful, elegant, idiomatic solution!!
-
-
-
A litmus test on whether an option belongs to adapter config or kit config, would be to ask whether the option becomes irrelevant when you switch the adapter to static.
-
- May 2021
-
hashnode.com hashnode.com
-
So even if it works for you, you won't know where it breaks.
-
- Apr 2021
-
stackoverflow.com stackoverflow.com
-
CSS seems like the right place to put visual information. On the other hand, few would argue that image "src" should not be specified as an attribute and the height/width seem as tied to the binary image data as the "src" is.
-
-
www.kickstarter.com www.kickstarter.com
-
We are are continuing our commitment to creating our games that are free and widely accessible anyone that is curious by making our game files available under Creative Commons license BY–NC–SA 4.0. That means we will continue offering a full, free print-and-play kit for Pax Pamir, and later this campaign, John Company! Anyone can use, remix, and share the game, so long as they do not use it for commercial purposes.
-
-
css-tricks.com css-tricks.com
-
stackoverflow.com stackoverflow.com
-
however, if this is relevant to just one spec, you don't necessarily need to include devise helpers to all your controllers specs, you can just explicitly include those helpers in that one controller describe block: require 'spec_helper' describe MyCoolController include Devise::TestHelpers it { } end
-
-
github.com github.com
-
Wasn't sure if this belonged as an issue in Devise or Rails though.
-
-
stackoverflow.com stackoverflow.com
-
This is a great application for using route constraints.
-
- Mar 2021
-
web.cs.iastate.edu web.cs.iastate.edu
-
Application: 3-D Shape RegistrationAn important problem in model-based recognition is to find the transformation of a set of datapoints that yields the best match of these points against a shape model. The process is oftenreferred to asdata registration. The data points are typically measured on a real object by rangesensors, touch sensors, etc., and given in Cartesian coordinates. The quality of a match is oftendescribed as the total squared distance from the data pointsto the model. When multiple shapemodels are possible, the one that results in the least total distance is then recognized as the shapeof the object.Quaternions are very effective in solving the above least-squares-based registration problem.
-
-
gitlab.gnome.org gitlab.gnome.org
-
It sounds like a gnome-open (or the equivalent library call) bug. Reassigning.
-
-
github.com github.com
-
I'm kinda stuck at the moment, going around in circles. Everything is really heavily coupled. I would like to get to the point where no load is called from within processors, but i'm not sure if that's possible. Currently the API and the caching strategies are fighting me at every step of the way. I have a branch where i'm hacking through some refactoring, no light at the end of the tunnel yet though :(
-
-
-
it's super hard to test master because i have no idea which gems need to be updated. is there a guide on how to take a rails 4.2 project to master sprockets without everything mysteriously exploding? ill try to make a repro case but its hard to tell where to even start
-
-
github.com github.com
-
Is there a PR to... something? sassc-rails? That would make the patch not necessary? (I don't know if there's any good way to monkey-patch that in, I think you have to fork? So some change seems required...) Should the defaults be different somehow? This is very difficult to figure out.
-
Is there a PR to... something? sassc-rails?
-
-
trailblazer.to trailblazer.to
-
Please note that the I/O DSL is only providing the most-used requirements. Feel free to use the low-level taskWrap API to build your own variable mapping with different scoping techniques.
-
-
trailblazer.to trailblazer.to
-
Knowing about the wiring mechanics in Trailblazer is one thing. However, the real fun starts with nesting activities. That’s when the ideas of encapsulation, interfaces and reducing dependencies really come into play.
-
- Feb 2021
-
trailblazer.to trailblazer.to
-
Whether this is the life-cycle of a <user> entity or just a sign-up function, it has to be defined and coded somewhere.
-
-
github.com github.com
-
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.
-
-
github.com github.com
-
ActiveInteraction plays nicely with Rails. You can use interactions to handle your business logic instead of models or controllers.
-
Why is all this interaction code better? Two reasons: One, you can reuse the FindAccount interaction in other places, like your API controller or a Resque task. And two, if you want to change how accounts are found, you only have to change one place.
Pretty weak arguments though...
- We could just as easily used a plain object or module to extract this for easy reuse and having it in only one place (avoiding duplication).
-
-
github.com github.com
-
I'm sure there will be a few other people out there who eventually want something like this, since Interactions are actually a great fit for enforcing consistency in data structures when working with a schemaless NoSQL store, but obviously it's still a bit of a niche audience.
-
-
www.quora.com www.quora.com
-
The non-determinism is why cache invalidation — and that other hard problem, naming things — are uniquely and intractably hard problems in computer science. Computers can perfectly solve deterministic problems. But they can’t predict when to invalidate a cache because, ultimately, we, the humans who design and build computational processes, can’t agree on when a cache needs to be invalidated.
-
-
copyheart.org copyheart.org
-
Creating more legally binding licenses and contracts just perpetuates the problem of law – a.k.a. state force – intruding where it doesn’t belong.
-
-
jakearchibald.com jakearchibald.com
-
This nav bar by Chris Coyier is a great example of something that makes more sense as a flexbox than grid.
-
Flexbox's strength is in its content-driven model. It doesn't need to know the content up-front. You can distribute items based on their content, allow boxes to wrap which is really handy for responsive design, you can even control the distribution of negative space separately to positive space.
-
- Jan 2021
-
ubuntu.com ubuntu.com
-
Ubuntu also supports ‘snap’ packages which are more suited for third-party applications and tools which evolve at their own speed, independently of Ubuntu. If you want to install a high-profile app like Skype or a toolchain like the latest version of Golang, you probably want the snap because it will give you fresher versions and more control of the specific major versions you want to track.
-
-
stackoverflow.com stackoverflow.com
-
Great, I can use vw to scale text so it doesn't look puny on a desktop! Perfect... Oh. Huh, now the text is too small to read when viewed on a phone. Okay, well I can just use "max(x,y)" to make sure it doesn't get shrunk beyond a minimum size. Perfect... Oh. Hmm. Looks like "max" isn't supported properly by Chrome. Okay, well guess I'll just use "px" again.
-
-
developer.mozilla.org developer.mozilla.org
-
CSS Grid Layout excels at dividing a page into major regions or defining the relationship in terms of size, position, and layer, between parts of a control built from HTML primitives.
-
-
css-tricks.com css-tricks.com
-
Making literal grids. Like X columns with Y gap between them homegrown framework stuff. grid-gap is wonderful, as gutters are the main pain point of grid systems.
-
-
svelte.dev svelte.dev
-
It must be called during the component's initialisation (but doesn't need to live inside the component; it can be called from an external module).
-
- Dec 2020
-
chem.libretexts.org chem.libretexts.org
-
Nodes A wave function node occurs at points where the wave function is zero and changes signs. The electron has zero probability of being located at a node.
Nodes
Tags
Annotators
URL
-
- Nov 2020
-
stackoverflow.com stackoverflow.com
-
The main reason to use these lower-level components is if you need to customize your form input in some way that isn't supported using TextField.
-
-
stackoverflow.com stackoverflow.com
-
In my opinion, deleting a user is not a function executed by an item on itself but is a function done by the holder of the array. So in your case you would be better of moving the deleteUser up to App.
-
-
css-tricks.com css-tricks.com
-
When you use a function like color(). it’s impossible to know exactly where it was defined. Which @import does it come from?
-
-
prettier.io prettier.io
-
Prettier’s printWidth option does not work the same way. It is not the hard upper allowed line length limit. It is a way to say to Prettier roughly how long you’d like lines to be. Prettier will make both shorter and longer lines, but generally strive to meet the specified printWidth. Remember, computers are dumb. You need to explicitly tell them what to do, while humans can make their own (implicit) judgements, for example on when to break a line. In other words, don’t try to use printWidth as if it was ESLint’s max-len – they’re not the same. max-len just says what the maximum allowed line length is, but not what the generally preferred length is – which is what printWidth specifies.
-
-
github.com github.com
-
I'm not sure what's the best solution, but it could be a good idea to print the full path only at the end of the line, since it takes a lot of space, or to move it to a separate line.
-
- Oct 2020
-
-
Yeah I see what you're saying. In my case, I had a group of classes that relied on each other but they were all part of one conceptual "module" so I made a new file that imports and exposes all of them. In that new file I put the imports in the right order and made sure no code accesses the classes except through the new interface.
-
-
-
it also allows for more divergence in how people write there code and where they put their logic, making different svelte codebases potentially even more different due to fewer constraints. This last point is actually something I really value, I read a lot of Svelte code by a lot of different people and broadly speaking things look the same and are in the same places.
Tags
- uniformity
- programming: multiple ways to do the same thing
- convention
- consistency
- idiomatic code style (programming languages)
- strong conventions resulting in code from different code bases/developers looking very similar
- software development: code organization: where does this code belong?
- idiomatic pattern (in library/framework)
Annotators
URL
-
-
dylanvann.com dylanvann.com
-
Keep the local state isolated.Think about which state is local to a particular UI representation — and don’t hoist that state higher than necessary.
-
-
stackoverflow.blog stackoverflow.blog
-
He says that he sees the combination of long form pieces and Q&A as a new level of support. “We used to have level one, which was sending a ticket to the help desk, and it was something we could easily resolve for you. Level two was a more complex problem that maybe required an engineer or specialist from a certain team to figure out. I look at this new system as a level zero.” Before sending us a ticket, folks can search Teams. If they find a question that solves the problem, great. If they need more details, they can follow links to in-depth articles or collections that bring together Q&A and article with the same tags.“
-
- Sep 2020
-
github.com github.com
-
I took the same approach with _layout.svelte and not just for the svelte-apollo client. Except I put all of that setup into another module (setup.js) and imported from _layout. I just couldn't stomach having all that code actually in my _layout file. It's for layout, supposedly, but it's the only component that is a parent to the whole app.
-
I got this working by using _layout.svelte as the point to initialise and set the Client we can then use getClient in each route that uses this layout.
-
-
css-tricks.com css-tricks.com
-
there is one major weakness to this approach and to scoped CSS: organization gets very hard – you end up with styles everywhere!
-
Keeping the CSS with the HTML for organization may have value however.
-
-
github.com github.com
-
but adding logic to the <script> is unfortunate
-
-
www.americanyawp.com www.americanyawp.com
-
I think this is such a fantastic viewpoint. Sometimes in order to reach our overall goal, we have to "cast down our bucket" in compromise or be the first to extend the olive branch. I like that he used this same analogy for the white southerners as well. We all have to compromise to some degree to reach progress.
-
-
github.com github.com
-
require 'minitest/autorun' class BugTest < Minitest::Test
-
- May 2020
-
about.gitlab.com about.gitlab.com
-
Technical and general support for those using our free options is “Community First”. Like many other free SaaS products, users are first directed to find support in community sources such as the following:
-
-
-
For general questions, use cases, or anything else that does not fit into one of the above cases, please post in the GitLab Forum or on a third-party help site.
-
If you're in a paid tier on GitLab.com or GitLab Self-managed, you're entitled to Support. Please open a support ticket after reviewing our Statement of Support
-
If you're a free user on GitLab.com and are having one of the following specific issues please file a support ticket after reviewing the Free Plan Users Section in our Statement of Support
-
-
about.gitlab.com about.gitlab.com
-
Account Support If you haven't received your confirmation email, you can request to resend your confirmation instructions via our confirmation page.
This Account Support section only includes one possible problem related to account support
If you haven't received your confirmation email, you can request to resend your confirmation instructions via our confirmation page.
What about if you have any other issue with your account? How would you get support then? This would be a good opportunity/place to describe what to do in that case.
Presumably the answer is to submit support requests at <del>https://gitlab.com/gitlab-com/support-forum</del> (to be shut down) or in the community forums.
-
-
gitlab.com gitlab.com
-
We're closing the Support Forum issue tracker in favor of the Community Forum and support channels. We recognize that the Support Forum issue tracker has not received much attention in the last few months, and want to redirect our community members to locations that are regularly monitored by GitLab staff. As a result, this issue will be moved to the GitLab product issue tracker and triaged there.
-
- Dec 2019
-
serverfault.com serverfault.com
-
Types of questions and where to ask: How do I? -- ask on Server Fault (tell them what tags to use -- your product tag at minimum) I got this error, why? -- ask on Server Fault I got this error and I'm sure it's a bug -- report it on your own site I have an idea/request -- report it on your own site Why do you? -- ask in your own community (support forum, etc) When will you? -- ask in your own community
-
-
hypothes.is hypothes.is
-
Her eyes had mockery in them, and she laughed
-
- Dec 2015
-
www.resourcecontracts.org www.resourcecontracts.org
-
This is our front page
-