- Feb 2021
-
github.com github.com
-
-
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.
-
-
github.com github.com
-
-
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.
-
-
github.com github.com
-
rafaelfranca closed this on Feb 27, 2018
continued in: https://github.com/rails/rails/pull/36183
-
-
github.com github.com
-
An additional usecase is where we would like to update multiple records
-
-
github.com github.com
-
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
-
-
www.honeybadger.io www.honeybadger.io
-
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.
Tags
- not the most appropriate / best tool/application/fit for every use case
- no longer maintained
- I'm not sure about this
- not the most appropriate / best tool/application/fit for this use case
- single-page app
- depends on use case / application
- determining if something is an appropriate application / best tool for the job
Annotators
URL
-
-
www.reddit.com www.reddit.com
-
Get off systemd, and enter the world of chroot.
-
-
stackoverflow.com stackoverflow.com
-
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?
-
-
-
stackoverflow.com stackoverflow.com
-
without grid-template-rows layout properties getting passed over to the next row
-
-
stackoverflow.com stackoverflow.com
-
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.
-
-
-
stackoverflow.com stackoverflow.com
-
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?
-
- Jan 2021
-
www.adventisthealth.org www.adventisthealth.org
-
even if you have already had COVID-19, because you can catch it more than once
-
-
slackmojis.com slackmojis.com
-
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.
-
-
askubuntu.com askubuntu.com
-
Setting up docker-ce
hanging
-
-
-
serverfault.com serverfault.com
-
it still hangs when installing
-
-
-
bugzilla.redhat.com bugzilla.redhat.com
-
Ok, fixed it by upgrading docker
-
-
stackoverflow.com stackoverflow.com
-
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.
-
-
unix.stackexchange.com unix.stackexchange.com
-
css-tricks.com css-tricks.com
-
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!
-
-
forums.theregister.com forums.theregister.com
-
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.
-
-
www.americanpressinstitute.org www.americanpressinstitute.org
-
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.
-
-
github.com github.com
-
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.
-
-
atomiks.github.io atomiks.github.ioFAQ1
-
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.
-
-
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).
-
-
stackoverflow.com stackoverflow.com
-
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.
-
-
github.com github.com
-
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.
-
-
atomiks.github.io atomiks.github.ioThemes1
-
atomiks.github.io atomiks.github.io
-
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.
-
-
material.io material.io
-
Sets whether the menu surface should open and close without animation when the open/close methods are called.
-
-
magpierss.sourceforge.net magpierss.sourceforge.net
-
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.
-
-
askubuntu.com askubuntu.com
-
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.
-
-
guides.rubyonrails.org guides.rubyonrails.org
-
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).
-
-
google.github.io google.github.io
-
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
-
- Dec 2020
-
medium.com medium.com
-
consume basic every day information and go around in different platforms meanwhile, without continuously consuming
-
-
github.com github.com
-
capitulation-inducing poor performance
-
-
covidtracking.com covidtracking.com
-
Thus
-
-
github.com github.com
-
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.
-
-
sapper.svelte.dev sapper.svelte.dev
-
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??
Tags
Annotators
URL
-
-
github.com github.com
-
Can this be merged please, this fixes a problem I have
-
-
github.com github.com
-
May I ask what is holding this back?
-
- Nov 2020
-
github.com github.com
-
dfn export for=tree
-
-
github.com github.com
-
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.
-
-
github.com github.com
-
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.
-
-
github.com github.com
-
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.
-
-
internetarchive.applytojob.com internetarchive.applytojob.com
-
M/F/D/V/L/G/B/T
-
-
support.google.com support.google.com
-
stackoverflow.com stackoverflow.com
-
I would suggest to follow an index convention for importing/exporting files
-
-
gist.github.com gist.github.com
-
I'm excited for the RTM of webpack 2!
I assume this is just a more polite variant of RTFM?
-
-
stackoverflow.com stackoverflow.com
-
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.
-
-
github.com github.com
-
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)
-
-
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.
-
-
github.com github.com
-
Export plain functions
What other kind of function is there?
-
-
journals-sagepub-com.proxyau.wrlc.org journals-sagepub-com.proxyau.wrlc.org
-
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?
-
-
github.com github.com
-
I see this issue has 2 open PR's is this going to be finalized anytime soon?
-
-
github.com github.com
-
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?
-
-
github.com github.com
-
github.com github.com
-
github.com github.com
-
Investigate deeply.
-
-
-
dry-package
-
- Oct 2020
-
stackoverflow.com stackoverflow.com
-
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
-
-
api.rubyonrails.org api.rubyonrails.org
-
“"
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.
-
-
github.com github.com
-
-
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.
-
-
disqus.com disqus.com
-
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:
- Information about which account ("my Azure account is my email address"), and
- How high-value of a target he would be ("both sites manage highly valuable information that could take a whole company out of business...")
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)
-
-
github.com github.com
-
If something isn't a great idea, the tools should support that approach
should => shouldn't
-
-
codesandbox.io codesandbox.io
-
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/
-
-
github.com github.com
-
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?
-
-
codesandbox.io codesandbox.io
-
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.io formvalidation.io
-
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.
-
-
www.onwebsecurity.com www.onwebsecurity.com
-
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?
-
-
facebook.github.io facebook.github.io
-
E4X is a deprecated specification with deep reaching semantic meaning.
-
-
en.wikipedia.org en.wikipedia.org
-
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?
-
-
github.com github.com
-
I prefer to have optionality over compound planing (assumptions, based on assumptions, …).
-
anti-fragile development
-
-
mdsvex.com mdsvex.com
-
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.
Tags
- strong conventions resulting in code from different code bases/developers looking very similar
- convention
- idiomatic pattern (in library/framework)
- consistency
- software development: code organization: where does this code belong?
- programming: multiple ways to do the same thing
- "I want this"
- uniformity
- idiomatic code style (programming languages)
Annotators
URL
-
-
-
TOOAWTDI
-
-
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.
-
-
en.wikipedia.org en.wikipedia.org
-
object orientation
-
-
dylanvann.com dylanvann.com
-
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.
-
-
codesandbox.io codesandbox.io
-
Is that expected behavior or am I doing something wrong?
-
-
impedagogy.com impedagogy.com
-
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?
-
-
online.mines.edu online.mines.edu
-
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!
Tags
Annotators
URL
-
-
softwarerecs.stackexchange.com softwarerecs.stackexchange.com
-
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"
-
- Sep 2020
-
github.com github.com
-
I don't read comments as I think they are dangerous
Why does he think they are dangerous?
-
-
stackoverflow.com stackoverflow.com
-
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.
-
-
stackoverflow.com stackoverflow.com
-
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 toreturn 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...
-
-
stackoverflow.com stackoverflow.com
-
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.
-
-
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.
-
-
github.com github.com
-
Then, the projects that use these libraries get to process these import statements how they like when they are bundled. For the ones that wish to load jQuery from a global, we again mark 'jquery' as an external—since we still don't want Rollup to bundle jQuery—and as a global.
-
-
github.com github.com
-
Luckily, there is absolutely no good reason not to use strict mode for everything — so the solution to this problem is to lobby the authors of those modules to update them.
-
-
-
I assume that soon developers will publish more components for svelte, and any possible class conflict is problematic. Yeah, it's rare case, but it is.
-
I wrote hundreds of Rect components and what I learned is that Componets should be able to be styled by developer who is using it.
-
-
-
There are work arounds, but nothing clean. I just feel like this should be functionality that should be part of the slot feature.
-
-
github.com github.com
-
There is a good amount of properties that should mostly be applied from a parent's point of view. We're talking stuff like grid-area in grid layouts, margin and flex in flex layouts. Even properties like position and and the top/right/left/bottom following it in some cases.
-
It would be tiresome - and bloated - to include a class pass-through for every component or assigning custom properties (from the RFC linked) for all potential properties on every component, just in case it's gonna be used in layouts that requires it. Wrapping them in a wrapper div is certainly an option, but potentially creates 100s or 1000s (long lists, several lists etc.) of new elements in the DOM slowing down low-end devices.
-
The main reason using classes isn't a great solution is that it completely breaks encapsulation in a confusing way, the paren't shouldn't be dictating anything, the component itself should. The parent can pass things and the child can choose to use them or not but that is different: control is still in the hands of the component itself, not an arbitrary parent.
-
The RFC is more appropriate because it does not allow a parent to abritrarily control anything below it, that responsibility still relies on the component itself. Just because people have been passing classes round and overriding child styles for years doesn't mean it is a good choice and isn't something we wnat to encourage.
-
Ideally: Only let a parent control those specific CSS properties, and never let a child use them on the root element.
-
margin, flex, position, left, right, top, bottom, width, height, align-self, justify-self among other is CSS properties that should never be modified by the child itself. The parent should always have control of those properties, which is the whole reason I'm asking for this.
Tags
- scalability
- breaking encapsulation
- confusing
- control (programming)
- limiting how much library consumers/users can control/override
- whose responsibility is it?
- Svelte: how to affect child component styles
- who should have control over this? (programming)
- why this feature is needed
- programming: who is responsible for this concern?
- which component/tool/organization/etc. is responsible for this concern?
- bloat
- verbose / noisy / too much boilerplate
- Svelte: components are their own boss (encapsulation)
- constraints are helpful
Annotators
URL
-
-
github.com github.com
-
This has already forced me to forgo Svelte Material because I would like to add some actions to their components but I cannot and it does not make sense for them to cater to my specific use-case by baking random stuff into the library used by everyone.
-
-
-
github.com github.com
-
Your tooltip component will have to wrap your image with a span tag or something, it can’t just add events to its children. And if you are adding multiple actions to it you will have to wrap it multiple times.
<Concern1> <Concern2> </Concern2> </Concern1>vs.
<img use:concern1 use:concern2>
-
I totally get not wanting to extend the syntax. I tried doing these things and in practice it was not easy or pretty. Actions provide a much cleaner and easier way to accomplish a certain set of functionality that would be much more difficult without it.
-
Actions add additional functionality to elements within your component's template that may be difficult to add with other mechanisms. Examples of functionality which actions makes trivial to attach are:
-
-
-
You can imagine the ensuing combinatorial explosion if we needed to add borders or box shadows or filters or what-have-you.
-
If this was tied into Svelte's flow with hooks this would not be necessary since it would know when it was being removed from the DOM.
-
You must: reference each element you are extending using refs or an id add code in your oncreate and ondestroy for each element you are extending, which could become quite a lot if you have a lot of elements needing extension (anchors, form inputs, etc.)
-
This is where hooks/behaviors are a good idea. They clean up your component code a lot. Also, it helps a ton since you don't get create/destroy events for elements that are inside {{#if}} and {{#each}}. That could become very burdensome to try and add/remove functionality with elements as they are added/removed within a component.
-
Drag and drop might be done better with hooks than components.
-
the ability to pass around element names as strings in place of components
Tags
- difficult/hard
- scalability
- could be easier / more difficult than it needs to be
- too hard/difficult/much work to expect end-developers to write from scratch (need library to do it for them)
- library/framework could make this easier
- combinatorial explosion
- framework taking care of responsibility so users can leverage it and not have to worry about that responsibility themselves
- Svelte: problem: how to pass dynamic element name
- I want this too
- why this feature is needed
- use cases
Annotators
URL
-
-
www.merriam-webster.com www.merriam-webster.com
-
Can this word be used to describe the property in computing where a value can be dynamic? I feel like "dynamicness" would be a better term for this.
It seems to refer more to personality:
1a: marked by usually continuous and productive activity or change a dynamic city b: ENERGETIC, FORCEFUL a dynamic personality
See also the same sentiment here: https://news.ycombinator.com/item?id=4137596
-
-
news.ycombinator.com news.ycombinator.com
-
I considered it, but dynamism refers to personality and philosophy, while dynamicity is just the condition of being dynamic.
-
-
github.com github.com
-
I am curious if this is being looked at seriously or not. This is currently an issue I keep running into when trying to build highly general purpose UI Library style component sets.
-
I keep needing this feature three times a week.
-
-
etc.usf.edu etc.usf.edu
-
They might even hate each other; the creature who already lived loathed his own deformity, and might he not conceive a greater abhorrence for it when it came before his eyes in the female form? She also might turn with disgust from him to the superior beauty of man; she might quit him, and he be again alone, exasperated by the fresh provocation of being deserted by one of his own species.
A lot of misogyny is radiating from these lines. Victor is implying that his female creation might be so ugly that even his male creation will be offended by her existence one he sees her. But on the other hand, what if his creation isn't her type and just abandon's him? It's interesting to see how much thought Victor puts in when it comes to making a female creation...I thought he was trying to create a new species?
-
I was now about to form another being of whose dispositions I was alike ignorant; she might become ten thousand times more malignant than her mate and delight, for its own sake, in murder and wretchedness.
No one knows what someone will be like after they've been brought into the world, but we don't lament every single person who is born. When someone you know is having a kid you don't say to them: "remember H.H. Holmes? Are you sure you want to have kid? They might be ten thousand times worse than H.H. Holmes!" Because that would be ridiculous.
-
-
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 this is a case where it feels like we're papering over a deficiency in our language, and is the sort of thing detractors might well point to and say 'ha! see?'.
-
but adding logic to the <script> is unfortunate
-
-
-
I wonder at what point Svelte would add this feature if, for example, a majority of their users ended up migrating to a fork that added this missing feature (like this one)?
Would they then concede and give in to popular demand in order to avoid a schism of the community?
Kind of like Rails swallowed / consolidated with Merb after they saw how great its ideas were?
-
-
github.com github.com
-
Often, allowing the parents to compose elements to be passed into components can offer the flexibility needed to solve this problem. If a component wants to have direct control over every aspect of a component, then it should probably own the markup as well, not just the styles. Svelte's slot API makes this possible. You can still get the benefits of abstracting certain logic, markup, and styles into a component, but, the parent can take responsibility for some of that markup, including the styling, and pass it through. This is possible today.
-
The problem with the export { className as class } approach is that the classes defined in the parent/calling component still have to be marked as being global otherwise they get removed.
-
-
css-tricks.com css-tricks.com
-
But because that final CSS file is probably minified (all whitespace removed), DevTools is likely to tell us that we’ll find the declaration we’re looking for on line 1! Unfortunate, and not helpful for development.
-
- Aug 2020
-
meta.stackexchange.com meta.stackexchange.com
-
If we've gone more than a year without this being a problem in the slightest, I don't see how the next year would be any different.
-
-
pdf.sciencedirectassets.com pdf.sciencedirectassets.com
-
future gamification research should investigate specific elements of gamification rather than as an over-arching concept so that the effectiveness of different mechanics can be parsed out.
see Chapman and Rich (2018), which examined this very thing.
-
- Jul 2020
-
www.merriam-webster.com www.merriam-webster.com
-
OK is technically an acronym. It comes from the phrase "oll korrect," a humorous alteration of "all correct."
Was "oll korrect" intended to be a humorous alteration of "all correct" or is it simply due to variations in language? (korrect looks a bit like German. What language could oll be?
-
-
www.howtogeek.com www.howtogeek.com
-
This isn’t an accident. OpenOffice’s sidebar code was copied and incorporated into LibreOffice. The Apache OpenOffice project uses the Apache License, while the LibreOffice uses a dual LGPLv3 / MPL license. The practical result is LibreOffice can take OpenOffice’s code and incorporate it into LibreOffice — the licenses are compatible. On the other hand, LibreOffice has some features — like font embedding — that don’t appear in OpenOffice. This is because the two different licenses only allow a one-way transfer of code. LibreOffice can incorporate OpenOffice’s code, but OpenOffice can’t incorporate LibreOffice’s code. This is the result of the different licenses the projects chose.
What part of LGPLv3 / MPL prevents LibreOffice code from being incorporated back into OpenOffice's Apache Licensed code??
-
-
www.pcworld.com www.pcworld.com
-
Oracle didn’t seem very interested in OpenOffice.org, and the community of volunteers developing it formed The Document Foundation back in 2010. They called on Oracle to participate and donate the OpenOffice.org name and brand to the community. Oracle never did, and the resulting forked office suite has been named LibreOffice since then.
-
-
www.differencebetween.com www.differencebetween.com
-
Take a look at the slogans of some of the popular companies.
Hmm, are these taglines or slogans? According to https://yourbusiness.azcentral.com/slogan-vs-tagline-12643.html:
A tagline should represent your business, while a slogan represents a single product or is part of an advertising campaign
it seems that these are more taglines than slogans.
-
-
-
In the Set class we already called this - and difference, which it is ok but not really accurate because of the previous explanation, but probably not worthwhile to change it.
Is this saying that the name difference is inaccurate?
Why is it inaccurate? You even called it the "theoretic difference" above.
Is that because "relative complement" would be better? Or because the full phrase "theoretic difference" [https://en.wiktionary.org/wiki/set-theoretic_difference] is required in order for it to be accurate rather than just "difference"?
-
inaccurate
How is the use of - for sets inaccurate?
-
-
github.com github.com
-
I'll freely admit I was surprised by this behavior myself since I needed to obtain an Array with only one instance of each item in the argument array removed.
-
- Jun 2020
-
stackoverflow.com stackoverflow.com
-
What would be nice is if JavaScript had a built-in way to do what I can do in Ruby with:
> I18n.interpolate('Hi, %{name}', name: 'Fred') => "Hi, Fred"
But to be fair, I18n comes from i18n library, so JS could just as easily (and I'm sure does) have a library that does the same thing.
Update: Actually, you can do this in plain Ruby (so why do we even need
I18n.interpolate
?):main > "Hi, %{name}" % {name: 'Fred'} => "Hi, Fred"
main > ? String#% From: string.c (C Method): Owner: String Visibility: public Signature: %(arg1) Number of lines: 9 Format---Uses str as a format specification, and returns the result of applying it to arg. If the format specification contains more than one substitution, then arg must be an Array or Hash containing the values to be substituted. See Kernel::sprintf for details of the format string. "%05d" % 123 #=> "00123" "%-5s: %016x" % [ "ID", self.object_id ] #=> "ID : 00002b054ec93168" "foo = %{foo}" % { :foo => 'bar' } #=> "foo = bar"
I guess that built-in version is fine for simple cases. You only need to use
I18n.translate
if you need its more advanced features likeI18n.config.missing_interpolation_argument_handler
.
-
-
stackoverflow.com stackoverflow.com
-
If anyone else wonders How to just get data type of a varible (not column) you can use the pg_typeof(any) function.
-
-
www.fastcompany.com www.fastcompany.com
-
Kahneman’s Thinking Fast and Slow
Read
-
Neil Postman
Review
-
Human Universals
Donald Brown
-
-
stackoverflow.com stackoverflow.com
-
www.engadget.com www.engadget.com
-
The developers are ending support for Tor Messenger due primarily to a lack of support.
What does a "lock of support" really mean?
-
- May 2020
-
stackoverflow.com stackoverflow.com
-
I have used this bash one-liner before set -- "${@:1:$(($#-1))}" It sets the argument list to the current argument list, less the last argument.
Analogue of
shift
built-in. Too bad there isn't just apop
built-in.
-
-
en.wikipedia.org en.wikipedia.org
-
Related concepts in other fields are: In natural language, the coordinating conjunction "and". In programming languages, the short-circuit and control structure. In set theory, intersection. In predicate logic, universal quantification.
Strictly speaking, are these examples of dualities (https://en.wikipedia.org/wiki/Duality_(mathematics))? Or can I only, at strongest, say they are analogous (a looser coonection)?
-
-
stackoverflow.com stackoverflow.com
-
ssh-add <(echo "$PRIVATE_KEY")
Does this have any advantage over simply saving that key to a key file under ~/.ssh?
Like they do on https://stackoverflow.com/a/61944004/47185:
mv "$DEPLOY_KEY_PRIVATE" ~/.ssh/id_rsa
-
-
stackoverflow.com stackoverflow.com
-
deployer-token
Where does
deployer-token
come from? Is this a placeholder or a well-known hard-coded value specific to __ (GitLab? my.company.com?)? Where is it documented? -
echo "${BASH_REMATCH[1]/:\/\//://gitlab-ci-token:${GL_TOKEN:-$GITLAB_TOKEN}@}" > $HOME/.config/git/credentials
-
git config --global credential.helper store
What does this do?
-
-
about.gitlab.com about.gitlab.com
-
In some contexts, "ops" refers to operators. Operators were the counterparts to Developers represented in the original coining of the term DevOps.
I have always believed the Ops was short for Operations, not Operators.
https://en.wikipedia.org/wiki/DevOps even confirms that belief.
-
-
stackoverflow.com stackoverflow.com
-
1. Disabling concrete extension update. That's what I wanted! You can do this by editing the extensions manifest json-file on Windows: C:\Users\<USERNAME>\AppData\Local\Google\Chrome\User Data\Default\Extensions\<EXTENSION-ID>\<VERSION>\manifest.json (find out the extensions ID by enabling developer mode in the extension settings page) on Ubuntu for Chromium: ${HOME}/.config/chromium/Default/Preferences In this file set "update_url" property to something invalid like "https://localhost" for example. For now according to given url updating of that extension is simply impossible.
-
-
www.merriam-webster.com www.merriam-webster.com
-
of, relating to, or being a grammatical case or form expressing means or agency
I really need an example of this!
It seems unusual that they specifically mention "a grammatical case or form". I've never seen a definition before that is anything like this one.
How is this different from definition 1?
-
-
www.darpa.mil www.darpa.mil
-
ignore shared content across pages
-
-
medium.com medium.com
-
github.com github.com
-
Introducing React-Static! How it works and why we built it!
-
-
about.gitlab.com about.gitlab.com
-
We don't have an internationalization group. That responsibility is shared across many groups. We might instead have an internationalization tooling group.
-
We don't have a performance group. Ensuring GitLab is performant is the responsibility of all groups.
-
-
gitlab.com gitlab.com
-
It seems weird to me that we are trying to enforce commit messages when they are not really visible or used in the GitLab workflow at all. This is what you see most of the time when interacting with the commit list. I've taken time to compose a nice descriptive body and it is hidden by default:
-
-
forum.gitlab.com forum.gitlab.com
-
forum.gitlab.com forum.gitlab.com
-
www.osano.com www.osano.com
-
quantum blockchain
Do they really use a quantum blockchain? What exactly do they mean by that? Probably just a buzzword they're using to attract interest but aren't actually meaning literally.
-
Did the marketing team create a new landing page that isn't searchable? Osano is aware of hidden pages and keeps you in the loop about what is loaded where – everywhere on your site.
How would it "know" about hidden pages unless the site owner told them about their existence? (And if that is the case, how is this anything that Osano can claim as a feature or something that they do?) If it is truly hidden, then a conventional bot/spider wouldn't find it by following links.
-
-
-
Most web browsers are set by default to protect your privacy unless you opt for tracking yourself. For example, Internet Explorer automatically enables its “Do Not Track” option and Google Chrome blocks any 3rd-party cookies by default.
-
-
app.termly.io app.termly.ioTermly1
-
Disclaimer: Termly LLC is not a lawyer or a law firm and does not engage in the practice of law or provide legal advice or legal representation. All information, software, services, and comments provided on the site are for informational and self-help purposes only and are not intended to be a substitute for professional legal advice.
-