Function (computer science) Function (engineering) Function (mathematics)
Is this a polyseme?
Or is that only the case if the different distinct senses are all within the same "field"?
Function (computer science) Function (engineering) Function (mathematics)
Is this a polyseme?
Or is that only the case if the different distinct senses are all within the same "field"?
definitely less rough to work with than Devise
annoying: keeps asking every time
It does this by creating links to specially crafted URLs using custom schemes (ie. "txmt", "subl", "mvim"). I prefer to use standard CLI vim in iTerm.
I have similar problem: want to use regular vim in tilix terminal
How to install VIM with all options/features? - VIM
I have VIM on Mac & CentOS. So, I see people are writing about -xterm_clipboard, -lua, ... Is there an simple way to install it all? or we have to enable options one-by-one and compile/recompile it?
I had similar question... how to get --servername support.
How can I build vim with a gui without gtk?
I had this question too, but didn't know that was the question I had... :)
Some research led me to the --remote-tab switch that allows to open files as tabs in currently open Vim processes but it seemed to work only with the graphical interface (gvim) and not with the console (vim). But as I made some tests I found this can work with the vim in console mode
That's what I thought too (that it was only available with gvim, which I don't want to use).
But I get this error when I try it with regular vim:
$ vim --servername local
VIM - Vi IMproved 8.1 (2018 May 18, compiled Apr 15 2020 06:40:31)
Unknown option argument: "--servername"
It sounds like a gnome-open (or the equivalent library call) bug. Reassigning.
Is somehow possible to run a "Desktop Entry" from another "Desktop Entry"?
More generally, my question is: How can I programmatically / from command line, launch a .desktop file?
when the link of accessing a workspace appear I only get the popup: "Open xdg-open?" and then nothing happens.
Though in my case it is clicking an mvim:// link from better_errors
XDG stands for X Desktop Group aka freedesktop.org
what does xdg stand for? Its hard to remember without knowing that.
This games a scam. Reviews are fake.
This content is not compatible on this device.
I get this itch.io message when I try to buy it, "Due to processing fees the minimum amount is 100 cents."
Tried to buy keyg at its 90% off sales price but no matter what payment method I choose I keep getting a "Due to processing fees the minimum amount is 100 cents."I'm trying to figure out if there is any way around this, and if not then why can you list a game at a price below $1 if it isn't actually possible for it to be bought at said price?
This is great. I've been playing around with an early beta version.
Or even a simple 1-liner in the Contract that references an AR Model so you don't have to rewrite the validations again in that contract, or have to choose between writing the validations once either in the contract there or in the AR Model?
so you can learn about the ones you don't.
Conversely, red tests are tests I write after the code is written to lock down some implementation.
is Wine process virtual machine actually?
I think it is, yes.
Wine was given as an example of a process VM above.
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.
This semi-colon is added to prevent changing the code behaviour (the famous line ending with parentheses, etc) Most people will use a JS minifier If they don't, a single extra character is unlikely to change much If I'm right about all the above: Why don't we simply always add a semi-colon regardless of what the file ends with?
I don't understand why this isn't being considered a bigger deal by maintainrs/the community. Don't most Rails developers use SCSS? It's included by default in a new Rails app. Along with sprockets 4. I am mystified how anyone is managing to debug CSS in Rails at all these days, that this issue is being ignored makes sprockets seem like abandonware to me, or makes me wonder if nobody else is using sprockets 4, or what!
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.
I am not sure this whole ecosystem currently has much maintainers unfortunately. :( Pick your reaction
Is there a PR to... something? sassc-rails?
I agree about lack of maintenance. It's probably because people use more and more Webpack.
What is the point of avoiding the semicolon in concat_javascript_sources
For how detailed and insightful his analysis was -- which didn't elaborate or even touch on his not understanding the reason for adding the semicolon -- it sure appeared like he knew what it was for. Otherwise, the whole issue would/should have been about how he didn't understand that, not on how to keep adding the semicolon but do so in a faster way!
Then again, this comment from 3 months afterwards, indicates he may not think they are even necessary: https://github.com/rails/sprockets/issues/388#issuecomment-252417741
Anyway, just in case he really didn't know, the comment shortly below partly answers the question:
Since the common problem with concatenating JavaScript files is the lack of semicolons, automatically adding one (that, like Sam said, will then be removed by the minifier if it's unnecessary) seems on the surface to be a perfectly fine speed optimization.
This also alludes to the problem: https://github.com/rails/sprockets/issues/388#issuecomment-257312994
But the explicit answer/explanation to this question still remains unspoken: because if you don't add them between concatenated files -- as I discovered just to day -- you will run into this error:
(intermediate value)(...) is not a function
at something.source.js:1
, apparently because when it concatenated those 2 files together, it tried to evaluate it as:
({
// other.js
})()
(function() {
// something.js
})();
It makes sense that a ; is needed.
Sprockets 4: The effect of config.assets.debug does not match the rails documentation.
concatenation still occurs.
I totally understand that there may be a majority still considering this a bad practice and thus keeping it disabled by default in production seem ok. But there could at least be an option to enable it for people who want to, no?
Married to Ruby, literally.
Is his wife's name Ruby?
still compiles everything into single CSS/JS files
I noticed this too
let me know if you've got more issues (by opening a new issue)
I decided a couple of months ago to look for a way to work on faastRuby full time. Today is October 1st, 2019, and I am excited to announce that I am bringing faastRuby into Shopify.
What is the difference between equation and formula?
There are myriads of platformers around, it's an oversaturated market, and just like industrial designer Karim Rashid said about there being no excuse by this point to make an uncomfortable chair, there's no excuse by this point to make a boring patformer.
Yes, but honestly, and no offense intended, but I don't see the harm in these type questions, nor why some people are offended when they are asked. If I owed a website, I wouldn't mind it because it just creates more pages that can be indexed. I see it as helping the website. But, I did look and didn't see a simple answer. Again, no offense is intended. I've just never understood the complaints.
Brass tacks:
Ci taatu guy googu la jigéeni Ajoor yi di jaaye sanqal.
C'est sous ce baobab que les femmes originaires du Kayor vendent de la semoule de mil.
ci -- close; at @, in, on, inside, to.
taat+u (taat) wi -- base, bottom, foundation, buttocks.
guy gi -- baobab. 🌴
googu -- that (closeness).
la -- (?).
jigéen+i (jigéen) bi ji -- sister versus brother; woman as opposed to man. 👩🏽
ajoor bi -- person from Kayor.
yi -- the (plural).
di -- be; mark of the imperfective affirmative not inactual.
jaay+e (jaay) v. -- sell.
sanqal si -- millet semolina. 🌾
Aju ren gi tàng na lool.
Le pèlerinage de cette année a été très pénible.
aj+u (aj) gi -- pilgrimage to Mecca. 🕋
ren ji -- current year; this year. 🗓
gi -- the.
tàng v. -- be hot 🥵; be cranky, be snappy 😡.
na -- has been (?).
lool adv. -- very, much, too much.
Sëriñ boobu aj na daaw, doomam a ko wuutu léegi.
Ce marabout est décédé l'an dernier, c'est son fils qui le remplace maintenant.
sëriñ bi -- marabout.
boobu -- this.
aj (Arabic: Hajj) v. -- make the pilgrimage to Mecca. 🕋; deceased ☠️ (for a religious personality).
na -- he (?).
daaw n. -- last year. 🗓
doom+am (doom) ji -- child by descent 👶🏽; doll🪆; to have a child.
Shogi is a classic game. I know many people who want to play Shogi, but the Kanji on the pieces makes it too hard to master. I have designed this Shogi with icons so anybody can learn it easily.
the guard can also be a Callable-marked object
elaborate...
CHILD DEVELOPMENT PERSPECTIVES
The article is found in this scholarly journal.
Currently, only Right signals are wired up.
So what happens if a task returns a Left signal?? Will it still go Right? Will it error?
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?
Currently, only Right signals are wired up.
While I certainly don’t think that all configuration should be “self hosted” in this kind of way
how is it "self hosted"? in what way?
I think I found the answer here https://github.com/rails/sprockets/blob/master/UPGRADING.md:
One benefit of using a
manifest.js
file for this type of configuration is that now Sprockets is using Sprockets to understand what files need to be generated instead of a non-portable framework-specific interface.
So it is "self-hosted" in that Sprockets is using Sprockets itself for this...?
Did the district just not see the problem with taking away some schools busing?
keeps a semantic
provide interfaces so you don’t have to think about them
Question to myself: Is not having to think about it actually a good goal to have? Is it at odds with making intentional/well-considered decisions?  Obviously there are still many of interesting decisions to make even when using a framework that provides conventions and standardization and makes some decisions for you...
Whether this is the life-cycle of a <user> entity or just a sign-up function, it has to be defined and coded somewhere.
Our mission is to allow people to make money via educational efforts and to dedicate the rest of their time to creating great open source products.
What does this mean exactly? "Our mission is to allow people to make money via educational efforts"
The latter are important examples which usually also exist in "purely" functional programming languages.
How can they exist and it still be considered pure??
I guess that's not quite the same / as bad as saying something had side effects in a purely functional programming context, right?
Instead of dealing with a mix of before_filters, Rack-middlewares, controller code and callbacks, an endpoint is just another activity and allows to be customized with the well-established Trailblazer mechanics.
their main intent is to reduce fuzzy controller code
What is the opposite of free content?
The opposite of free/open-source software is proprietary software or non-free software (https://en.wikipedia.org/wiki/Proprietary_software).
So should we call the opposite of free content "non-free content"? Or "proprietary content"?
Seems likes either would be fine.
Looks like https://en.wikipedia.org/wiki/Wikipedia:Non-free_content prefers the term "non-free content".
Couldn't find anyone contrasting these 2 terms (like I could no doubt find for software):
Not to be confused with:
What this means is: I better refrain from writing a new book and we rather focus on more and better docs.
I'm glad. I didn't like that the book (which is essentially a form of documentation/tutorial) was proprietary.
I think it's better to make documentation and tutorials be community-driven free content
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.
Example (in bash, but my question shouldn't be considered bash-specific):
compose(Add, x: x, y: 3)
How is this better than simply:
Add.run(x: x, y: 3)
?
I guess if we did that we would also have to remember to handle merging errors from that outcome into self...
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...
For this one we'll define a helper method to handle raising the correct errors. We have to do this because calling .run! would raise an ActiveInteraction::InvalidInteractionError instead of an ActiveRecord::RecordNotFound. That means Rails would render a 500 instead of a 404.
True, but why couldn't it handle this for us?
Any idea @AaronLasseigne if this is mergeable?
ActiveModel::Form happened because the "tableless model" presented in RailsCast 219 wasn't as powerful as the "real deal" from RailsCast 193.
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.
Read about the motivation to understand why this separation of concerns is important.
you mean Action Form, right?
Set your models free from the accepts_nested_attributes_for helper. Action Form provides an object-oriented approach to represent your forms by building a form object, rather than relying on Active Record internals for doing this.
It seems that the primary/only goal/purpose was to provide a better alternative to ActiveRecord's accepts_nested_attributes_for.
Unfortunately, this appears to be abandoned.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
rafaelfranca closed this on Feb 27, 2018
continued in: https://github.com/rails/rails/pull/36183
An additional usecase is where we would like to update multiple records
you'll want to update Devise's generated views to remove references to passwords, since you don't need them any more
Doesn't this contradict the statement
This strategy plays well with most other Devise strategies
(which includes password strategies)?
One thing that wasn't clear from their instructions was whether magic links could be used as an option in addition to regular password log-ins. On the one hand they say:
This strategy plays well with most other Devise strategies (see notes on other Devise strategies).
but on the other hand they say:
you'll want to update Devise's generated views to remove references to passwords, since you don't need them any more
The only problem is that our PJAX library is no longer maintained and was preventing us from updating jQuery (ugh). So it had to go.
https://github.com/MoOx/pjax doesn't say it's no longer maintained (though hasn't been updated in 2 years), and does say that it doesn't use jQuery. Oh well.
Honeybadger isn't a single page app, and it probably won't ever be. SPAs just don't make sense for our technical requirements.
Get off systemd, and enter the world of chroot.
Yes, i'm trying to find the union of two relations
I guess that's what I needed too. How much of the time can a or() be converted to a union?
without grid-template-rows layout properties getting passed over to the next row
You use grid-area, so the place for the side nav is allocated at start. If you hide (or even delete) the side nav, that won't change anything about this. You have to do a little trick: Set the width for the first column to 0 and change the grid-gap because otherwise you will have a (not needed) gap at the left.
I disagree, but I can't downvote it, because it is an important POV.
What do you disagree with? Why? Why don't you share why? Apparently not the "answer" part, because you can downvote that, so you must mean one of the comments. Which one? Why is it an important POV?
even if you have already had COVID-19, because you can catch it more than once
Slackmojis is made by some random dude in Brooklyn. He doesn't work for Slack, isn't paid by Slack, he just thinks Slack is pretty cool. Super Official Lawyer Talk: Slackmojis is not created by, affiliated with, or supported by Slack Technologies, Inc.
Setting up docker-ce
hanging
it still hangs when installing
Ok, fixed it by upgrading docker
So, what I've discovered in a meanwhile. It was an ubuntu-docker issue. Recently I upgraded my ubuntu from 16.04 to 18.04. This change seems to be incompatible with the docker version I had, 1.11.0.
Situation: you have a single line of text in a flex child element. You don’t want that text to wrap, you want it truncated with ellipsis (or fall back to just hiding the overflow). But the worst happens. The unthinkable! The layout breaks and forces the entire flex parent element too wide. Flexbox is supposed to be helping make layout easier!
The strangest "quirk" I had was that I couldn't get the web browser to save a file directly to an attached, encrypted drive. Permissions problem. So I had to save to an interim folder then move it across by hand. Utter pain.
The purpose of news is to inform, educate, and give us understanding and knowledge of what is going on in the world. It helps us to keep up to date with issues so we are in the know and fully aware of events taking place.
If components gain the slot attribute, then it would be possible to implement the proposed behavior of <svelte:fragment /> by creating a component that has a default slot with out any wrappers. However, I think it's still a good idea to add <svelte:fragment /> so everyone who encounters this common use case doesn't have to come up with their own slightly different solutions.
Basically the typescript compiler emits no code for interfaces, so webpack can not find them in the compiled module; except when a module consists of only interfaces. In that case the module will end up completely empty and then webpack will not investigate the exports.
Can I use the title attribute?Yes. The content prop can be a function that receives the reference element as an argument and returns a string or element.tippy('button', { content(reference) { const title = reference.getAttribute('title'); reference.removeAttribute('title'); return title; }, });The title attribute should be removed once you have its content so the browser's default tooltip isn't displayed along with the tippy.
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).
new Cmp will render to the DOM synchronously, so you don't have to worry about the content flickering because the component is rendered too late.
Headless: With React's DOM rendering for improved usage with CSS-in-JS and spring libraries. If you want greater control over your poppers to integrate fully with design systems, this is for you.
We can make content a function that receives the reference element (button in this case) and returns template content:
You can pass the element itself, which is useful for keeping event listeners attached (or when a framework is controlling elements inside):
Allows you to separate the tippy's positioning from its trigger source.
Sets whether the menu surface should open and close without animation when the open/close methods are called.
Why? I wrote MagpieRSS out of a frustration with the limitations of existing solutions. In particular many of the existing PHP solutions seemed to: use a parser based on regular expressions, making for an inherently fragile solution only support early versions of RSS discard all the interesting information besides item title, description, and link. not build proper separation between parsing the RSS and displaying it.
How do you know this? I've looked all over the internet and can't find any proof that Lightdm is more "lightweight" (whatever this means) or faster.
You may find that your application requires a layout that differs slightly from your regular application layout to support one particular controller. Rather than repeating the main layout and editing it, you can accomplish this by using nested layouts (sometimes called sub-templates).
What if there's an icon that I need that's not in this set?
How do I add a custom icon to the set for use on a web page and have the custom icon styled the same way as these "standard" icons?
Like how they have instructions for adding an icon here, for example: https://www.digitalocean.com/community/tutorials/angular-custom-svg-icons-angular-material#custom-svg-icons
consume basic every day information and go around in different platforms meanwhile, without continuously consuming
capitulation-inducing poor performance
Thus
I guess it's about "preloading" and not "navigation", if it's the case, then I guess there is still no way to attach to navigation events, and this issue should be kept open.
No JS event is fired, so there currently isn't any clean way to do this that I can see.
This can be used to perform actions once the navigation has completed, such as updating a database, store
Wouldn't/shouldn't it be the other way around — wouldn't we wait until the save is completed (database is updated) successfully before we navigate away from the current page/form??
Can this be merged please, this fixes a problem I have
May I ask what is holding this back?
dfn export for=tree
I am curious how do you "organize" your work
If I understand the problem correctly, just changing the imports to point to svelte/internal isn't enough because they could still point to different packages depending on how your components are bundled. It solved your specific issue, but if you had two completely unrelated Svelte components compiled to vanilla javascript bundled with Svelte, you'd still hit issues with mismatching current_component when using slots or callbacks.
It sounds like another case of multiple svelte/internal modules? I think we need to look into reworking how svelte/internal keeps track of the current component since it breaks when mixing components not bundled with the app. It sounds like we need to find a way to pass Svelte's internal runtime state when instantiating components, since slots and callbacks end up mixing different svelte/internal together.
Not being cancelable makes validating dialog content impossible - eg a login dialog or anything that takes user input. Of course, it's easy enough to get around - but I think this should be a requirement of a dialog.
A Chrome Extension designed with one intention: Increase the speed and privacy of your web browsing by skipping tracking redirects and removing the tracking parameters from URLs to keep them short and cleaner for sharing, bookmarking, etc.
M/F/D/V/L/G/B/T
I would suggest to follow an index convention for importing/exporting files
I'm excited for the RTM of webpack 2!
I assume this is just a more polite variant of RTFM?
Man, for some reason, I really like this answer. I recognize it's a bit more complicated, but it seems so useful. And given that I'm no bash expert, it leads me to believe that my logic is faulty, and there's something wrong with this methodology, otherwise, I feel others would have given it more praise. So, what's the problem with this function? Is there anything I should be looking out for here?
I think the main thing wrong with it is the eval (which I think can be changed to $("$@")
and it's pretty verbose.
Also, there are more concise ways to do it that would probably appeal more to most bash experts...
like set -x
and it does unnecessary things: why save output to a variable? Just let output go to where it would normally go...
So yeah, I can see why this solution isn't very popular. And I'm rather surprised by all the praise comments it's gotten.
It is impossible to rebuild the base from the Dockerfile as the 3rd party dependencies have changed significantly since 8 months ago when the base was last built. The tags for my base image have been overwritten and I can only restore them from a descendant image. With Docker 1.8 I simply pulled the descendant image, tagged the base layer and I was done. With Docker 1.10+ I'd need to save, then manually construct the base image descriptor and reload it. Doable but sad that it's far more complex.
Is anything like this possible with the new setup?
Unfortunately, this image was built months ago. No one has the build any more. We are left with a descendant image that has all the original content but on lower layers.
is there a way we can specify for image build layers to be included in the pull?
Sorry, I don't totally know how the internals work, but does there currently exist a workaround? By that I mean, can I pull an image, then run it at a layer other than the top layer? (I basically use this for testing purposes, its certainly possible to build the image myself then do it, but its slightly less convenient)
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.
Export plain functions
What other kind of function is there?
The Chinese Internet also illustrates the importance of theorizing online expression based on a representative spectrum of digital environments.
How does Chinese cancel culture differ from American cancel cuture? Is this phenomenon different worldwide?
I see this issue has 2 open PR's is this going to be finalized anytime soon?
If there are different tiers, those could be marked in the repo description (e.g. [COMMUNITY] or [UNSUPPORTED]).
Furthermore, how come there's a PR open since 3 months, at what seems to be the authoritative repo for Svelte?
Investigate deeply.
dry-package
If you have a better/simpler/"more official" solution, I'd still love to see it!
The "official" solution is to use submitErrors (see Erik's answer).
you took 4 hours to respond, so I implemented it myself
“"
Which character is this referring to exactly?
It looks like the empty string, which wouldn't make sense.
https://www.postgresql.org/docs/13/functions-matching.html only lists these 2:
If
pattern
does not contain percent signs or underscores, then the pattern only represents the string itself; in that caseLIKE
acts like the equals operator. An underscore (_
) inpattern
stands for (matches) any single character; a percent sign (%
) matches any sequence of zero or more characters.
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.
Could you please explain why it is a vulnerability for an attacker to know the user names on a system? Currently External Identity Providers are wildly popular, meaning that user names are personal emails.My amazon account is my email address, my Azure account is my email address and both sites manage highly valuable information that could take a whole company out of business... and yet, they show no concern on hiding user names...
Good question: Why do the big players like Azure not seem to worry? Microsoft, Amazon, Google, etc. too probably. In fact, any email provider. So once someone knows your email address, you are (more) vulnerable to someone trying to hack your account. Makes me wonder if the severity of this problem is overrated.
Irony: He (using his full real name) posts:
thus making himself more of a target. (I hope he does not get targetted though.)
Comments for: https://blog.rapid7.com/2017/06/15/about-user-enumeration/ (they were in iframe there)
If something isn't a great idea, the tools should support that approach
should => shouldn't
Should be superseded by: https://codesandbox.io/s/github/final-form/react-final-form/tree/master/examples/field-warnings but that version has error:
Cannot read property 'mutators' of undefined
See https://m5qwxpr6o8.csb.app/ for annotations. https://m5qwxpr6o8.csb.app/
Another example:
const expensiveOperation = async (value) => {
// return Promise.resolve(value)
// console.log('value:', value)
await sleep(1000)
console.log('expensiveOperation: value:', value, 'finished')
return value
}
var expensiveOperationDebounce = debounce(expensiveOperation, 100);
// for (let num of [1, 2]) {
// expensiveOperationDebounce(num).then(value => {
// console.log(value)
// })
// }
(async () => { await sleep(0 ); console.log(await expensiveOperationDebounce(1)) })();
(async () => { await sleep(200 ); console.log(await expensiveOperationDebounce(2)) })();
(async () => { await sleep(1300); console.log(await expensiveOperationDebounce(3)) })();
// setTimeout(async () => {
// console.log(await expensiveOperationDebounce(3))
// }, 1300)
Outputs: 1, 2, 3
Why, if I change it to:
(async () => { await sleep(0 ); console.log(await expensiveOperationDebounce(1)) })();
(async () => { await sleep(200 ); console.log(await expensiveOperationDebounce(2)) })();
(async () => { await sleep(1100); console.log(await expensiveOperationDebounce(3)) })();
Does it only output 2, 3?
By wrapping a stateful ExternalModificationDetector component in a Field component, we can listen for changes to a field's value, and by knowing whether or not the field is active, deduce when a field's value changes due to external influences.
Clever.
By wrapping a stateful ExternalModificationDetector component in a Field component
I think you mean wrapping a Field in a ExternalModificationDetector. Or wrapping a ExternalModificationDetector around a Field component.
Using the keyboard arrows, navigate down the suggestion list to the item(s) you want to remove from the Chrome autofill suggestions With the suggestion highlighted, use the appropriate keystroke sequence to delete the Chrome suggestion:
Linux: Shift + Delete
formvalidation: path.resolve
Why use resolve.alias to point to 'vendors/formvalidation/dist/es6'? Why not just use an npm package and have package.json name module: 'vendors/formvalidation/dist/es6'
Then (I think) the examples below like
import luhn from 'formvalidation/algorithms/luhn';
would work the same but without that workaround.
Yet it can be deceivingly difficult to properly encode (user) input
They were talking about output encoding but then switched to input encoding? Did they really mean to say input encoding here?
E4X is a deprecated specification with deep reaching semantic meaning.
I don't understand the need for the name "Open–closed principle". It doesn't seem meaningful or clear to me.
Can't we just call it "extensibility" or "easily extendable"? Doesn't "extensibility" already imply that we are extending it (adding new code on top of it, to interoperate with it) rather than modifying its source code?
I prefer to have optionality over compound planing (assumptions, based on assumptions, …).
anti-fragile development
Don’t indent code blocks.
Sure, we don't need to add any additional indent. But what if your code block contains indentation (function body)? It would look silly to remove all leading indentation.
Of the three proposals rendered today, this is the one I want the most.
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.
TOOAWTDI
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.
object orientation
Disclaimer: I’m new to Svelte so this isn’t so much a recommendation as it is a “I guess this is a way to do it 🤷♂️”
Although I'm starting to regret even posting this because I feel like it cheapens what we've accomplished.
But I suppose it comes with the territory when I consider even publishing an article like this. I was sitting on this one for weeks and wasn't sure I was going to publish it until I found myself trying to defend why I didn't just give up before I started.
Is that expected behavior or am I doing something wrong?
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 …
our thoughts.
(https://nowcomment.com/documents/234044)
Might we be permitted them?
The dragonfly
rarely yields her ground
to the critics among
us.
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?
Class participation vs. attending class.The quantity andquality of online class participation replaces on-siteattendance
The flexibility is nice!
A new option --proximate=N groups together lines of output that are within N lines of each other in the file. This is useful when looking for matches that are related to each other.
I'd been wishing for a feature like this with grep/etc. tools.
I've had to use some really ugly workarounds (chain grep -C5 | grep -B5) which end up showing extra irrelevant context lines.
So I'm glad there's a clean way to do this now!
I'm glad they added this site. Instead of just closing such questions as "off topic" on StackOverflow or SuperUser without having them some place appropriate to send them.
Whilst
I think he meant "Because"
I don't read comments as I think they are dangerous
Why does he think they are dangerous?
By default, npx will check whether <command> exists in $PATH, or in the local project binaries, and execute that. Calling npx <command> when <command> isn't already in your $PATH will automatically install a package with that name from the NPM registry for you, and invoke it. When it's done, the installed package won’t be anywhere in your globals, so you won’t have to worry about pollution in the long-term. You can prevent this behaviour by providing --no-install option.
Actually just returning the loginDaoCall works fine. I dont really get what's different as it is the looked like it was the same instance, but probably not.
So the posted answer wasn't necessary/correct? Which part of the answer was incorrect/unneeded?
I wish this OP comment included the full version of code that worked.
I don't understand this OP comment. Wasn't OP already returning loginDaoCall
? So maybe the only thing they could mean is that they just needed to change it to return loginDaoCall.then(...)
instead...
That would be consistent with what the answer said:
the promise returned by the further .then() does also get rejected and was not handled.
So I guess the unnecessary part of the answer was adding the return true
/false...
setContext / getContext can only be used once at component init, so how do you share your API result through context? Related: how would you share those API results if the call was made outside of a Svelte component, where setContext would be even more out of the question (and the API call would arguably be better located, for separation of concerns matters)? Well, put a store in your context.
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.