- Dec 2024
-
www.youtube.com www.youtube.com
-
language is really the brain's invention to convert this rich, multi-dimensional thought on one hand into speech on the other hand.
for - key insight - ideas are multidimensional - speech is one dimensional - language is one dimensional - from TED Talk - YouTube - A word game to convey any language - Ajit Narayanan
-
-
www.youtube.com www.youtube.com
-
here can be life threat early life threat there can be fear and Terror in the 's body from things that they experience um so they arise as a collage of Sensations emotions and behaviors so they rise quickly and they're layered on top of each other
for - pre and perinatal trauma - fear and terror can happen to the baby inside the womb - later they arise as a collage of sensations, emotions and behaviors layered one on top of the other - Youtube - Prenatal and Perinatal Healing Happens in Layers - Kate White
Tags
Annotators
URL
-
-
www.youtube.com www.youtube.com
-
the first one is the paradox of pronouncement. And here we recognize that language is both incredibly useful for us and is evocative and helps us create and and see and be in this reciprocal exchange. And we also are trying to open to a non dual embodied cognition that is beyond the written word and beyond the hegemony of the written word, and indeed the hegemony of the English written word
for - paradoxes - first one - pronouncement - the written word - evocative - but also hegemonic - especially the English language - there are other oral traditions - try to open nondual embodied cognition using English - Post Capitalist Philanthropy Webinar 1 - Alnoor Ladna - Lynn Murphy - 2023
Tags
Annotators
URL
-
-
www.ordinarymind.com www.ordinarymind.com
-
When D. T. Suzuki came to this country later, he said he had a great realization contemplating the Japanese expression, “The elbow does not bend backwards.” The idea is that the elbow only bends inward, bends one way. Is that a limitation of the elbow? Is it a defect? That a really good elbow would bend both ways? Is it a design flaw that we’re stuck with? Instead, it’s a matter of seeing the particular irony in what we would think of as a limitation rather, as a definition, a part of what we intrinsically are, and freedom is not a question of being able to do something, to do anything whatsoever, but to fully function within our design and our capacity.
for - quote - The Elbow does not bend backwards - Dasietz Suzuki - contradiction - the finite and infinite in one being - meme - to be or not to be, that is the question - to be AND not to be, that is the answer
quote - The Elbow does not bend backwards - Dasietz Suzuki - Barry Magid - When D. T. Suzuki came to this country later, he said he had a great realization contemplating the Japanese expression, “The elbow does not bend backwards.” - The idea is that the elbow only bends inward, bends one way. Is that a limitation of the elbow? Is it a defect? That a really good elbow would bend both ways? Is it a design flaw that we’re stuck with? Instead, - it’s a matter of seeing the particular irony in - what we would think of as a limitation rather, as a definition, a part of what we intrinsically are, and - freedom is not a question of being able to do something, to do anything whatsoever, - but to fully function within our design and our capacity. - The full freedom of the functioning of the elbow takes place in bending inward, not outward.
comment - the contradiction of our life is that - the infinite and the finite exist in the same mortal coil - this consciousness which is capable of unlimited imagination - is housed in a fragile, time-limited body - Yet all life exists in the concrete form of living / dying individual's housed in bounded, albeit dynamic bodies - Each of us takes on a unique and specific morphological form, determined by the genetic material passed on to us intergenerationally - Each individual belongs to a unique species, a unique replicable template that is unique - And yet, all life derives from the same reality - So each species, and all individuals belonging to each species, have unique bounded bodies - While that universal wisdom articulates itself uniquely in each species and each individual of a species, it is nonetheless a universal wisdom behind it all - So the elbow does not bend backwards in the human - and the wings flutter only one way in birds - and the fins only project one way in fish - etc, etc.... - Can we trace ourselves from the perceived limited - all the way back to the unlimited infinite? - To be or not to be, that is the question - To be AND not to be, that is the answer
-
- Sep 2024
-
www.pewresearch.org www.pewresearch.org
-
54% of Wikipedia pages contain at least one link in their “References” section that points to a page that no longer exists.
for - stats - digital stats - 54% of Wikipedia pages contain at least one link in their “References” section that points to a page that no longer exists.
-
-
www.mikeperham.com www.mikeperham.com
-
Let your operating system handle daemons, respawning and logging while you focus on your application features and users.
-
-
hypothes.is hypothes.is
-
I tell you, Zeus with all his arrogance will be brought low. He is already 69 planning the marriage that will throw him from his omnipotence into oblivion. The curse his father, Kronos, spoke when he was driven from his ancient throne will be fulfilled then.
Tags
Annotators
URL
-
-
www.youtube.com www.youtube.com
-
One wants to know itself. The universe wants to know itself.
for - quote - ONE wants to know itself; the universe wants to know itself - Federico Faggin
quote - ONE wants to know itself; the universe wants to know itself - Federico Faggin - (see below) - ONE wants to know itself; the universe wants to know itself - and that adds the interiority to (living) nature. - This science says eliminate that by fiat. - They said<br /> - "there is no interiority" and - "consciousness is an epi-phenomena of the brain" - eliminated life, from everything. - What is our most precious thing that we have? - our humanity, our capacity - to understand - to comprehend - to have meaning - but - The meaning of life is completely thrown out the door by starting on the wrong foot. - That's all. So let's start with the right foot where we start.
-
- Aug 2024
-
www.youtube.com www.youtube.com
-
I want to figure out find out help find out ways in which we can have things where maybe at the most you need to dedicate a week of your life you know because you need to be in a special environment in order to have the the sort of the the conditions in which this can happen and can have those experiences and if say 30% of the people that claim to be ready actually have one of those experien that would be a marvelous objective to reach so that's what I'm thinking right now
for - Federico Faggin - high priority objective - find and implement ways to catalyze authentic awakening experiences in a short time - ie - one week
-
- Jul 2024
-
www.epi.org www.epi.org
-
Improving the living standards of all working-class Americans while closing racial disparities in employment and wages will depend on how well we seize opportunities to build multiracial, multigendered, and multigenerational coalitions to advance policies that achieve both of these goals
for - political polarization - challenge to building multi-racial coalition - to - Wired story - No one actually knows how AI will affect jobs
political polarization - building multi-racial coalitions - This is challenging to do when there is so much political polarization with far-right pouring gasoline on the polarization fire and obscuring the issue - There is a complex combination of factors leading to the erosion of working class power
automation - erosion of the working class - Ai is only the latest form of the automation trend, further eroding the working class - But Ai is also beginning to erode white collar jobs
to - Wired story - No one actually knows how AI will affect jobs - https://hyp.is/KsIWPDzoEe-3rR-gufTfiQ/www.wired.com/story/ai-impact-on-work-mary-daly-interview/
-
- Jun 2024
-
github.com github.com
-
(If you are a representative of an upstream for which there exists an image and you would like to get involved, please see the Maintainership section below!)
-
-
github.com github.com
-
we leave it up to each image maintainer to make the appropriate judgement on what's going to be the best representation / most supported solution for the upstream project they're representing
-
- May 2024
-
suu.instructure.com suu.instructure.com
-
Failure to assemble an appropriate IEP team:
Tags
Annotators
URL
-
- Feb 2024
-
hypothes.is hypothes.is
-
One of my inquiries was for anecdotes regarding mistakes made between the twins by their near relatives. The replies are numerous, but not very varied in character. When the twins are children, they are usually distinguished by ribbons tied round the wrist or neck; nevertheless the one is sometimes fed, physicked, and whipped by mistake for the other, and the description of these little domestic catastrophes was usually given by the mother, in a phraseology that is some- [p. 158] what touching by reason of its seriousness.
Tags
- We can see that mistaken one twin for another by spanking the wrong one could create a god complex in the twin that got away with bad behavior. while the twin who was unjustly spanked could feel inferior to the other twin even other people. Therefore nuture developing different traits based on parent's upbringing.
- The parental mistake highlights that even when twins are in the same house or even siblings in the same house can develop diffrent traits through parental mistakes. For instance
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
-
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.
-
- 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
- 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.
- 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.
Annotators
URL
-
- Mar 2023
-
-
We now take an opinionated stance on which second factor you should set up first – you'll no longer be asked to choose between SMS or setting up an authenticator app (known as TOTP), and instead see the TOTP setup screen immediately when first setting up 2FA.
-
-
-
We're going to define a has-many relationship for a user's second factors, to be able to support multiple second factor types, e.g. TOTP, backup codes, or hardware keys.
-
- Nov 2022
-
github.com github.com
-
highly recommended that the resulting image be just one concern per container; predominantly this means just one process per container, so there is no need for a full init system
container images: whether to use full init process: implied here: don't need to if only using for single process (which doesn't fork, etc.)
-
-
copyprogramming.com copyprogramming.com
-
Here is a method using the fontTools Python library (which you can install with something like pip install fonttools ):
-
- Oct 2022
-
stackoverflow.com stackoverflow.com
-
This breaks the TIMTOWTDI rule
-
-
bugs.python.org bugs.python.org
-
I'm afraid you missed the joke ;-) While you believe spaces are required on both sides of an em dash, there is no consensus on this point. For example, most (but not all) American authorities say /no/ spaces should be used. That's the joke. In writing a line about "only one way to do it", I used a device (em dash) for which at least two ways to do it (with spaces, without spaces) are commonly used, neither of which is obvious -- and deliberately picked a third way just to rub it in. This will never change ;-)
-
-
en.wikipedia.org en.wikipedia.org
-
The language was designed with this idea in mind, in that it “doesn't try to tell the programmer how to program.”
-
This motto has been very much discussed in the Perl community, and eventually extended to There’s more than one way to do it, but sometimes consistency is not a bad thing either (TIMTOWTDIBSCINABTE, pronounced Tim Toady Bicarbonate).[1] In contrast, part of the Zen of Python is, "There should be one— and preferably only one —obvious way to do it."
-
- Jul 2022
-
medium.com medium.com
-
In his interviews, he likes to emphasize that, in each book, he’s back to square one.
Where does Robert Greene specifically say this?
With a commonplace book repository, one is never really starting from square one. Anyone who says otherwise is missing the point.
-
- May 2022
-
wordpress.com wordpress.com
-
"To summarize, I am prepared to conquer all hurdles in my path to achieving the career of my dreams so that I may contribute to my society. I am a firm believer in the concept of dreams coming true."
-
-
wordpress.com wordpress.com
-
"I didn't fully understand it at the time, but throughout my time as a freshman at Boston College I've realized that I have the power to alter myself for the better and broaden my perspective on life. For most of my high school experience, I was holding to antiquated thoughts that had an impact on the majority of my daily interactions. Throughout my life, growing up as a single child has affected the way am in social interactions. This was evident in high school class discussions, as I did not yet have the confidence to be talkative and participate even up until the spring term of my senior year."
-
"Specifically, when one of my classmates stated how he was struggling with the concept and another one of my classmates took the initiative to clarify it, I realized that that individual possibilities vary greatly among students."
Tags
- Introduction p.1
- In this annotation, I choose to expand on my introduction. Before I explain why I chose the words I did, I should mention that my first draft failed to meet one of the assignment's primary requirements: a "Story like" structure. Finally, I decided to rework my introduction because my first draft did not begin with a clear beginning. Instead, I started by describing the fundamental context of the encounter before detailing my previous experiences. To improve my final edit, I made sure I described my experiences and/or how I felt before they occurred.
- This annotation consisted of me continuing to do what I've been doing, which is primarily adding more direct experiences. In my draft for this one, I outlined the scenario of the triangle theory, but I did not go into further detail. Therefore, I resolved to describe the actual circumstances in order to offer the readers a better insight into the experience.
- (Major Essay) Introduction paragraph
- (Major Essay) Climax paragraph. 3
Annotators
URL
-
- Apr 2022
-
www.pnas.org www.pnas.org
-
Bagheri, G., Thiede, B., Hejazi, B., Schlenczek, O., & Bodenschatz, E. (2021). An upper bound on one-to-one exposure to infectious human respiratory particles. Proceedings of the National Academy of Sciences, 118(49), e2110117118. https://doi.org/10.1073/pnas.2110117118
-
- Feb 2022
-
Local file Local file
-
his suggests that successful problem solvingmay be a function of flexible strategy application in relation to taskdemands.” (Vartanian 2009, 57)
Successful problem solving requires having the ability to adaptively and flexibly focus one's attention with respect to the demands of the work. Having a toolbelt of potential methods and combinatorially working through them can be incredibly helpful and we too often forget to explicitly think about doing or how to do that.
This is particularly important in mathematics where students forget to look over at their toolbox of methods. What are the different means of proof? Some mathematicians will use direct proof during the day and indirect forms of proof at night. Look for examples and counter-examples. Why not look at a problem from disparate areas of mathematical thought? If topology isn't revealing any results, why not look at an algebraic or combinatoric approach?
How can you put a problem into a different context and leverage that to your benefit?
-
- Sep 2021
-
-
Update API usage of the view helpers by changing javascript_packs_with_chunks_tag and stylesheet_packs_with_chunks_tag to javascript_pack_tag and stylesheet_pack_tag. Ensure that your layouts and views will only have at most one call to javascript_pack_tag or stylesheet_pack_tag. You can now pass multiple bundles to these view helper methods.
Good move. Rather than having 2 different methods, and requiring people to "go out of their way" to "opt in" to using chunks by using the longer-named
javascript_packs_with_chunks_tag
, they changed it to just use chunks by default, out of the box.Now they don't need 2 similar but separate methods that do nearly the same, which makes things simpler and easier to understand (no longer have to stop and ask oneself, which one should I use? what's the difference?).
You can't get it "wrong" now because there's only one option.
And by switching that method to use the shorter name, it makes it clearer that that is the usual/common/recommended way to go.
-
- Aug 2021
-
hcommons.org hcommons.org
-
To the people of 1833 it was new to have a photography museum today we have selfie museums what was new in 1833 is not new to us in 2021
-
- Jun 2021
-
stackoverflow.com stackoverflow.com
-
You particular circumstances may or may not warrant a way different from what lhunath (and other users) deem "best practices".
-
-
graphql-ruby.org graphql-ruby.org
-
This kind of error handling does express error state (either via HTTP 500 or by the top-level "errors" key), but it doesn’t take advantage of GraphQL’s type system and can only express one error at a time.
-
- May 2021
-
kit.svelte.dev kit.svelte.dev
-
To set multiple cookies in a single set of response headers, you can return an array:
-
- Apr 2021
-
-
Of course you must not use plain-text passwords and place them directly into scripts. You even must not use telnet protocol at all. And avoid ftp, too. I needn’t say why you should use ssh, instead, need I? And you also must not plug your fingers into 220 voltage AC-output. Telnet was chosen for examples as less harmless alternative, because it’s getting rare in real life, but it can show all basic functions of expect-like tools, even abilities to send passwords. BUT, you can use “Expect and Co” to do other things, I just show the direction.
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
Too new to comment on the specific answer
So you think it's better to make people post a new "answer" (as if it were actually a distinct, unrelated answer) instead of just letting them comment on the answer that they actually want to comment on? Yuck.
-
- Mar 2021
-
www.sitepoint.com www.sitepoint.com
-
The elimination of what is arguably the biggest monoculture in the history of software development would mean that we, the community, could finally take charge of both languages and run-times, and start to iterate and grow these independently of browser/server platforms, vendors, and organizations, all pulling in different directions, struggling for control of standards, and (perhaps most importantly) freeing the entire community of developers from the group pressure of One Language To Rule Them All.
-
As to opinions about the shortcomings of the language itself, or the standard run-times, it’s important to realize that every developer has a different background, different experience, different needs, temperament, values, and a slew of other cultural motivations and concerns — individual opinions will always be largely personal and, to some degree, non-technical in nature.
Tags
- runtime environment
- single responsibility
- non-technical reasons
- software project created to address shortcomings in another project
- reaction / reacting to
- everyone has different preferences
- separation of concerns
- software preferences are personal
- JavaScript
- related but independent projects that can be developed independently
- +0.9
- everyone has different background/culture/experience
- annotation meta: may need new tag
- independent release cycles among peer dependencies
- one size fits all mentality
- good point
- avoid giving partiality/advantage/bias to any specific option
- what is important/necessary for one person may not be for another
Annotators
URL
-
-
github.com github.com
-
This is a copy of the "AMD" document in the repo, kept here to maintain historical links. If this document differs from the one in the repo, the repo version is the correct one.
Why not just make this document empty (besides a link) and link/redirect to the canonical version?
That way it is impossible for them to disagree.
Tags
- make it impossible to get wrong/incorrect
- avoid duplication
- avoid duplication: impossible for them to disagree/diverge if there's only one version/copy
- I have a question about this
- maintaining redirect/copy at old URL in order to maintain historical links (broken links)
- canonical version
Annotators
URL
-
-
trailblazer.to trailblazer.to
-
Hey, that’s is an imaginary complication of our example - please don’t do this with every condition you have in your app.
-
- Feb 2021
-
trailblazer.to trailblazer.to
-
For branching out a separate path in an activity, use the Path() macro. It’s a convenient, simple way to declare alternative routes
Seems like this would be a very common need: once you switch to a custom failure track, you want it to stay on that track until the end!!!
The problem is that in a Railway, everything automatically has 2 outputs. But we really only need one (which is exactly what Path gives us). And you end up fighting the defaults when there are the automatic 2 outputs, because you have to remember to explicitly/verbosely redirect all of those outputs or they may end up going somewhere you don't want them to go.
The default behavior of everything going to the next defined step is not helpful for doing that, and in fact is quite frustrating because you don't want unrelated steps to accidentally end up on one of the tasks in your custom failure track.
And you can't use
fail
for custom-track steps becase that breaksmagnetic_to
for some reason.I was finding myself very in need of something like this, and was about to write my own DSL, but then I discovered this. I still think it needs a better DSL than this, but at least they provided a way to do this. Much needed.
For this example, I might write something like this:
step :decide_type, Output(Activity::Left, :credit_card) => Track(:with_credit_card) # Create the track, which would automatically create an implicit End with the same id. Track(:with_credit_card) do step :authorize step :charge end
I guess that's not much different than theirs. Main improvement is it avoids ugly need to specify end_id/end_task.
But that wouldn't actually be enough either in this example, because you would actually want to have a failure track there and a path doesn't have one ... so it sounds like Subprocess and a new self-contained ProcessCreditCard Railway would be the best solution for this particular example... Subprocess is the ultimate in flexibility and gives us all the flexibility we need)
But what if you had a path that you needed to direct to from 2 different tasks' outputs?
Example: I came up with this, but it takes a lot of effort to keep my custom path/track hidden/"isolated" and prevent other tasks from automatically/implicitly going into those steps:
class Example::ValidationErrorTrack < Trailblazer::Activity::Railway step :validate_model, Output(:failure) => Track(:validation_error) step :save, Output(:failure) => Track(:validation_error) # Can't use fail here or the magnetic_to won't work and Track(:validation_error) won't work step :log_validation_error, magnetic_to: :validation_error, Output(:success) => End(:validation_error), Output(:failure) => End(:validation_error) end
puts Trailblazer::Developer.render o Reloading... #<Start/:default> {Trailblazer::Activity::Right} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=validate_model> #<Trailblazer::Activity::TaskBuilder::Task user_proc=validate_model> {Trailblazer::Activity::Left} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error> {Trailblazer::Activity::Right} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=save> #<Trailblazer::Activity::TaskBuilder::Task user_proc=save> {Trailblazer::Activity::Left} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error> {Trailblazer::Activity::Right} => #<End/:success> #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error> {Trailblazer::Activity::Left} => #<End/:validation_error> {Trailblazer::Activity::Right} => #<End/:validation_error> #<End/:success> #<End/:validation_error> #<End/:failure>
Now attempt to do it with Path... Does the Path() have an ID we can reference? Or maybe we just keep a reference to the object and use it directly in 2 different places?
class Example::ValidationErrorTrack::VPathHelper1 < Trailblazer::Activity::Railway validation_error_path = Path(end_id: "End.validation_error", end_task: End(:validation_error)) do step :log_validation_error end step :validate_model, Output(:failure) => validation_error_path step :save, Output(:failure) => validation_error_path end
o=Example::ValidationErrorTrack::VPathHelper1; puts Trailblazer::Developer.render o Reloading... #<Start/:default> {Trailblazer::Activity::Right} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=validate_model> #<Trailblazer::Activity::TaskBuilder::Task user_proc=validate_model> {Trailblazer::Activity::Left} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error> {Trailblazer::Activity::Right} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=save> #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error> {Trailblazer::Activity::Right} => #<End/:validation_error> #<Trailblazer::Activity::TaskBuilder::Task user_proc=save> {Trailblazer::Activity::Left} => #<Trailblazer::Activity::TaskBuilder::Task user_proc=log_validation_error> {Trailblazer::Activity::Right} => #<End/:success> #<End/:success> #<End/:validation_error> #<End/:failure>
It's just too bad that:
- there's not a Railway helper in case you want multiple outputs, though we could probably create one pretty easily using Path as our template
- we can't "inline" a separate Railway acitivity (Subprocess "nests" it rather than "inlines")
-
step :direct_debit
I don't think we would/should really want to make this the "success" (Right) path and :credit_card be the "failure" (Left) track.
Maybe it's okay to repurpose Left and Right for something other than failure/success ... but only if we can actually change the default semantic of those signals/outputs. Is that possible? Maybe there's a way to override or delete the default outputs?
-
This connects the failure output to the previous task, which might create an infinity loop and waste your computing time - it is solely here for demonstrational purposes.
Tags
- I have a question about this
- tip
- concise
- helper functions
- flexibility
- verbose / noisy / too much boilerplate
- example: not how you would actually do it (does something wrong/bad/nonideal illustrating but we should overlook it because that's not the one thing the example is trying to illustrate/show us)
- semantics
- useful
- feels wrong
- trailblazer-activity
- example: in order to keep example concise/focused, may not implement all best practices (illustrates one thing only)
- powerful
Annotators
URL
-
-
trailblazer.to trailblazer.to
-
Yes, we could and should use Reform or Dry-validation here.
-
-
github.com github.com
-
The assert method is used by all the other assertions. It pushes the second parameter to the list of errors if the first parameter evaluates to false or nil.
Seems like these helper functions could be just as easily used in ActiveRecord models. Therefore, they should be in a separate gem, or at least module, that can be used in both these objects and ActiveRecord objects.
-
-
softwareengineering.stackexchange.com softwareengineering.stackexchange.com
-
My understanding of "programming to an interface" is different than what the question or the other answers suggest. Which is not to say that my understanding is correct, or that the things in the other answers aren't good ideas, just that they're not what I think of when I hear that term.
-
-
stackoverflow.com stackoverflow.com
-
You can write the query in this good old way to avoid error
-
Also there is always an option to use SQL: @items .joins(:orders) .where("orders.user_id = ? OR items.available = true", current_user.id)
-
-
github.com github.com
-
but if .or() throws an error then I'm back to the bad old days of using to_sql
-
-
stackoverflow.com stackoverflow.com
-
Although one thing you want to avoid is using frames in such a manner that the content of the site is in the frame and a menu is outside of the frame. Although this may seem convienient, all of your pages become unbookmarkable.
-
-
stackoverflow.com stackoverflow.com
-
Iframes can have similar issues as frames and inconsiderate use of XMLHttpRequest: They break the one-document-per-URL paradigm, which is essential for the proper functioning of the web (think bookmarks, deep-links, search engines, ...).
-
The most striking such issue is probably that of deep linking: It's true that iframes suffer from this to a lesser extent than frames, but if you allow your users to navigate between different pages in the iframe, it will be a problem.
-
- Jan 2021
-
stackoverflow.com stackoverflow.com
-
systemd has such huge documentation. systemd.unit Did you try searching for explanation yourself? What did you find?
-
-
blog.linuxmint.com blog.linuxmint.com
-
http://letmegooglethat.com/?q=How+to+change+the+default+search+engine+in+chromium&l=1
-
-
-
It's not impossible, but it's not likely I would accept someone I haven't worked with IRL or know on a personal level. That's because I want some form of creative control over the direction and I want to maintain the existing code style. If I know you I'm more likely to know that this will keep working the way I want it to.
-
Show me good PRs, bug triaging, documentation fixes, whatever and you're a candidate if you ask for it.
-
-
www.donielsmith.com www.donielsmith.com
-
Depending on what other component libraries you’ve used, you may be used to handling events by passing callback functions to component properties, or using a special event syntax – Svelte supports both, though one is usually more appropriate than the other depending on your situation. This post explains both ways.
-
-
atomiks.github.io atomiks.github.io
-
"Headless Tippy" refers to Tippy without any of the default element rendering or CSS. This allows you to create your own element from scratch and use Tippy for its logic only.
-
-
discourse.ubuntu.com discourse.ubuntu.com
-
While the very same software might be in a PPA and a snap, the fact that the snap is shown in Ubuntu Software is the point I’m making. Many people use that to install software. So making software appear there is beneficial for developers - their software is found, and beneficial for users - they discover new software.
-
The benefits for developers do reflect on benefits for users, with more software delivered faster and more securely.
-
- Dec 2020
-
github.com github.com
-
With some frameworks, you may find your needs at odds with the enterprise-level goals of a megacorp owner, and you may both benefit and sometimes suffer from their web-scale engineering. Svelte’s future does not depend on the continued delivery of business value to one company, and its direction is shaped in public by volunteers.
Tags
- business interests/needs overriding interests/needs of users
- balance of power
- organic
- open-source projects: allowing community (who are not on core team) to influence/affect/steer the direction of the project
- future of project depending on continued delivery of business value to one company
- more interested in their own interests
- conflict of interest
- at odds with
Annotators
URL
-
- Oct 2020
-
tech.ebayinc.com tech.ebayinc.com
-
Offsetting the rules of a logic-less template requires a lot of helper methods.
-
-
-
It was clear no one was interested in what I was working towards.
-
-
impedagogy.com impedagogy.com
-
Kevin's Response
How To Write This Poem
begin here …with TIME
where words
are layered with text
where the pen
etches into screen …
then go here … https://www.vialogues.com/vialogues/play/61205
... only to leap from one place to another, where my mind goes I hardly every know, only that it ventures forward ...
… heard by hearts, and scattered stars, where I see the sky fall, you find the debris …. https://nowcomment.com/documents/234044
Your thoughts?
-
- Sep 2020
-
www.theatlantic.com www.theatlantic.com
-
This dynamic is playing out during the pandemic among the many people who refuse to wear masks or practice social distancing.
people who are refusing not to wear a mask are not helping reduce transmission of coronavirus
-
-
github.com github.com
-
Svelte will not offer a generic way to support style customizing via contextual class overrides (as we'd do it in plain HTML). Instead we'll invent something new that is entirely different. If a child component is provided and does not anticipate some contextual usage scenario (style wise) you'd need to copy it or hack around that via :global hacks.
Tags
- ugly/kludgey
- workarounds
- maintenance burden to explicitly define/enumerate/hard-code possible options (explicit interface)
- trying to prevent one bad thing leading to people doing/choosing an even worse option
- forced to fork/copy and paste library code because it didn't provide enough customizability/extensibility / didn't foresee some specific prop/behavior that needed to be overridable/configurable (explicit interface)
- run-time dynamicness/generics vs. having to explicitly list/hard-code all options ahead of time
- Svelte: how to affect child component styles
- forking to add a desired missing feature/change
- component/library author can't consider/know ahead of time all of the ways users may want to use it
Annotators
URL
-
-
github.com github.com
-
The problem with working around the current limitations of Svelte style (:global, svelte:head, external styles or various wild card selectors) is that the API is uglier, bigger, harder to explain AND it loses one of the best features of Svelte IMO - contextual style encapsulation. I can understand that CSS classes are a bit uncontrollable, but this type of blocking will just push developers to work around it and create worse solutions.
Tags
- arbitrary limitations leading to less-than-ideal workarounds
- important point
- +0.9
- trying to prevent one bad thing leading to people doing/choosing an even worse option
- missing out on the benefits of something
- key point
- Svelte: how to affect child component styles
- Svelte: CSS encapsulation
Annotators
URL
-
-
github.com github.com
-
Even without going to that extreme, the constraint of having a single <style> can easily force component authors to resort to the kinds of classes-as-namespaces hacks that scoped styles are supposed to obviate.
-
-
www.codingwithjesse.com www.codingwithjesse.com
-
With Svelte, components and files have a one-to-one relationship. Every file is a component, and files can't have more than one component. This is generally a "best practice" when using most component frameworks.
-
- Jun 2020
-
-
Security agency frustration at the lack of lawful interception for encrypted messaging is understandable, but the problem with global over-the-top platforms is that once those weaknesses are inbuilt, they become potentially available to bad actors as well as good.
-
-
www.forbes.com www.forbes.com
-
They also argue that it cannot fall to them to determine good actors from bad—not all governments are forces for good, and who decides how each one should be treated.
-
- May 2020
-
intercom.help intercom.help
-
Sometimes plugins can conflict with a theme or with each other. Disable all your plugins and see if the problem persists. If everything is working once the plugins were disabled it means there's a conflict with a plugin or maybe even a set of plugins. Enable the plugins one by one to identify the one that is creating the conflict.
-
-
www.hostgator.com www.hostgator.com
-
Right click on the /wp-content/plugins folder and rename it plugins.old. This will deactivate all of the plugins. In most cases, this will also lock the WordPress admin area as well. You will still be able to perform these steps from within the File Manager.Reactivate the plugins folder by following the above instructions and renaming the folder plugins. This will allow you to reactivate each plugin individually to isolate the offending plugin and resolve the 500 Internal Server Error. This should also allow access to the WordPress Dashboard again. From the WordPress Dashboard: Reactivate each plugin (one at a time) and refresh the website to see if the issue has been resolved.
-
-
www.fastcompany.com www.fastcompany.com
-
Google encouraging site admins to put reCaptcha all over their sites, and then sharing the resulting risk scores with those admins is great for security, Perona thinks, because he says it “gives site owners more control and visibility over what’s going on” with potential scammer and bot attacks, and the system will give admins more accurate scores than if reCaptcha is only using data from a single webpage to analyze user behavior. But there’s the trade-off. “It makes sense and makes it more user-friendly, but it also gives Google more data,”
-
For instance, Google’s reCaptcha cookie follows the same logic of the Facebook “like” button when it’s embedded in other websites—it gives that site some social media functionality, but it also lets Facebook know that you’re there.
-
-
-
This is it. I'm done with Page Translator, but you don't have to be. Fork the repo. Distribute the code yourself. This is now a cat-and-mouse game with Mozilla. Users will have to jump from one extension to another until language translation is a standard feature or the extension policy changes.
-
Mozilla will never publicly ask users to circumvent their own blocklist. But it's their actions that are forcing people to do so.
-
So to me, it seems like they want to keep their users safer by... making them use Google Chrome or... exposing themselves to even greater danger by disabling the whole blocklist.
-
- Mar 2020
-
-
It's also a good way to make sure my personal thoughts don't get exposed to a more wider audience.
-
- Feb 2020
-
about.gitlab.com about.gitlab.com
-
keep one-to-many written communication short
-
- Oct 2019
-
-
Each year the winner is crowned with great fanfare at Eastwood Shopping Centre, which is owned by Yuhu Group, the company founded by billionaire property developer and political donor Huang Xiangmo.
A suggestive paragraph that may have had currency at the time you put together the story - but really, pretty much irrelevant.
With all this unnecessary detail - it's no wonder you never got round to the teeny weeny task of counterbalancing the grand crusade of George Simon to put an end to to the event, with the fact that it failed. Spectacularly!
And if you had just a bit more time, you probably would have been able to also include there was another similar attempt prior to his, from one of his factional colleagues, that was also punted by council.
-
- Nov 2018
-
larahogan.me larahogan.me
-
Questions for our first 1:1
Such a down-to-earth, to the point and solid resource. Thank you!
-
- Oct 2018
-
cnx.org cnx.org
-
Federalism has the capability of being both bad and good. It just depends who you ask. On one side the advantages of fedaralism is it creates more effectiveness and makes the government stable. On the other hand federalism is risky it gets expensive, lead to a complex tax system and is slow in responses to crisis.
Tags
Annotators
URL
-
- Sep 2018
-
hypothes.is hypothes.is
-
I believe people in sometimes feel they have no voice are say. There are pathways were people try there best to find change and still see no result i believe to have to change we have to write congress men and people in the government letters to how we may feel. We must be aware together but, its better sometimes to be the odd person out the bunch. It takes one person doing something different to see results.
Tags
Annotators
URL
-
- Aug 2016
-
rbms.info rbms.info
-
VISITS
I'm not sure exactly where this would fit in, but some way to reporting total service hours (per week or other time period) would be useful, esp as we start gauging traffic, volume, usage against number of service hours. In our reporting for the Univ of California, we have to report on services hours for all public service points.
Likewise, it may be helpful to have a standard way to report staffing levels re: coverage of public service points? or in department? or who work on public services?
-
- Mar 2015
-
www.scrumguides.org www.scrumguides.org
-
an objective set for the Sprint that can be met through the implementation of Product Backlog. It provides guidance to the Development Team on why it is building the Increment. It is created during the Sprint Planning meeting. The Sprint Goal gives the Development Team some flexibility regarding the functionality implemented within the Sprint. The selected Product Backlog items deliver one coherent function, which can be the Sprint Goal. The Sprint Goal can be any other coherence that causes the Development Team to work together rather than on separate initiatives.
an objective set for the Sprint that can be met through the implementation of Product Backlog. It provides guidance to the Development Team on why it is building the Increment. It is created during the Sprint Planning meeting. The Sprint Goal gives the Development Team some flexibility regarding the functionality implemented within the Sprint. The selected Product Backlog items deliver one coherent function, which can be the Sprint Goal. The Sprint Goal can be any other coherence that causes the Development Team to work together rather than on separate initiatives.
Tags
- mağaza
- hepsini sor
- an objective set for the Sprint that can be met through the implementation of Product Backlog. It provides guidance to the Development Team on why it is building the Increment. It is created during the Sprint Planning meeting. The Sprint Goal gives the Development Team some flexibility regarding the functionality implemented within the Sprint. The selected Product Backlog items deliver one coherent function, which can be the Sprint Goal. The Sprint Goal can be any other coherence that causes the Development Team to work together rather than on separate initiatives.
Annotators
URL
-