- Apr 2021
-
commons.wikimedia.org commons.wikimedia.org
-
What does the (dashed) arrow for
fork()
mean? Why does it point that way? Which one is a fork of / has forked which one?
-
-
bugzilla.samba.org bugzilla.samba.org
-
The script support/rsync-no-vanished that will be in the next release.
-
-
medium.com medium.com
-
“Who cares? Let’s just go with the style-guide” — to which my response is that caring about the details is in the heart of much of our doings. Yes, this is not a major issue; def self.method is not even a code smell. Actually, that whole debate is on the verge of being incidental. Yet the learning process and the gained knowledge involved in understanding each choice is alone worth the discussion. Furthermore, I believe that the class << self notation echoes a better, more stable understanding of Ruby and Object Orientation in Ruby. Lastly, remember that style-guides may change or be altered (carefully, though!).
-
I wish to define methods within the class they belong to. Using class << self demonstrates that approach clearly — we are defining methods within the actual singleton class scope.
-
When we usedef self.method, though, we are defining a method across scopes: we are present in the regular class scope, but we use Ruby’s ability to define methods upon specific instances from anywhere; self within a class definition is the Class instance we are working on (i.e. the class itself). Therefore, usingdef self.method is a leap to another scope, and this feels wrong to me.
Tags
- intentional/well-considered decisions
- good point
- try to do it the best possible way
- caring about the details
- reversible decisions
- scope (programming)
- defending an idea
- code style
- readability
- inconsistent
- code style guide
- can be changed
- elegant code
- inelegant
- making the association/commonality/relationship clear/explicit
- I agree
- making intentions clear/explicit
- Ruby: class methods
Annotators
URL
-
-
boardgamegeek.com boardgamegeek.com
-
I strongly prefer this over Carcassonne. It plays faster (I don't want a tile laying game to go for more than 30 mins or so) and I happen to like the limited options. Carcassonne just gets on my nerves because I just don't view selecting between so many placement options to be that interesting. Obviously, YMMV. Ditto the previous statement, it's different than Carcassonne. And that's why I like it.
-
However, it can be extremely frustrating placing the tiles. Very commonly there will be no position to place a tile in and it will be put to one side. Perhaps someone new to tile-laying games wouldn't find this so odd, but to anyone with experience of Carcassonne it will seem very limiting. In Carcassonne you can pretty much always place a tile, with several choices of position available. Every player I've introduced this game to has looked at me as if to say, "We must be doing something wrong." But no, that game is designed that way. Sometimes it feels like the map builds itself - there is often only one viable placement, so it starts to feel like a jigsaw, searching for that available position. Surely placing a single tile shouldn't be this difficult!
I don't think I'd find it frustrating. I think I would enjoy the puzzle part of it.
But indirectly I see that difficulty in placing tiles impacting my enjoyment: because it means that there are no/few meaningful decisions to be had in terms of where to place your tile (because there's often only 1 place you can put it, and it may sometimes benefit your opponent more than yourself) or which tile to place (because you don't get any choice -- unless you can't play the first one, and then you can play a previously unplayable one or draw blind).
-
I recently played a prototype of an upcoming game called Bronze. This takes the tile-laying/ territory claiming mechanic and builds on it by adding abilities to each of the tiles. they benefit you in some way if you claim them. The result is a very similar feel to Fjords (competing for a share of the map) but with greater depth.
-
-
boardgamegeek.com boardgamegeek.com
-
It is one of the better games to stuff in (y)our luggage when on holidays. (We tried Hive a couple of times, but that is too heavy stuff for the holidays.)
Tags
Annotators
URL
-
-
store.steampowered.com store.steampowered.com
-
What I dislike from the achievements is the "Dialogue Skipper". I really don't like it because you are encouraging people just to skim or even skip it at all and not get interested with the story. I earned this achievement on a 2nd run but I had a friend who just skipped it all on her 1st try.What devs should encourage is for the gamers to have a lot of playing time on their game so they would recommend it to others and not just do it for the cards and uninstalling it afterwards.
-
-
www.amazon.com www.amazon.com
-
Most of the projects here are the kind that might be fun to make but shortly end up in the trash (like: animals made out of toilet paper tubes, a Paper plate ring toss game, A necklace made of colored plastic straws...)
-
-
medium.com medium.com
-
The label and input were confused with body text, especially in dense compositions.
-
-
stackoverflow.com stackoverflow.com
-
-
In my opinion, the W3C definition is unnecessarily confusing and restrictive. The dictionary definition of aside is "a temporary departure from a main theme or topic", and the spec should just stick to that, rather than introducing subtle distinctions.
-
-
www.yourdictionary.com www.yourdictionary.com
-
Tangentially is defined as briefly mentioning a subject but not going into it in detail, or is defined as going off in a different direction.
in the case of
briefly mentioning a subject but not going into it in detail the topic/subject need not be related at all (it sounds like).
What about in the case fo:
is defined as going off in a different direction. Does the fact that it's going off in a different direction imply that it at least starts out connected/related to the original (starting point) subject (as it does in the geometry sense of tangential)? Or does it permit "jumping" to another topic (in another direction) without being related/connected at all??
I don't think I like this definition very much. It doesn't quite fit the sense I'm trying to use it for in my tag:
tangentially related content (aside)
Ah, here's a definition that matches what I thought it meant (one of the senses anyway): https://hyp.is/3Bn2bpZ7Eeu3Ok8vg03AVA/www.merriam-webster.com/dictionary/tangential
-
-
store.steampowered.com store.steampowered.com
-
The movement speed is painfully slow. There's nothing to do on your way.
Tags
Annotators
URL
-
-
store.steampowered.com store.steampowered.com
-
Fortunately for fans of high quality puzzle games, RUSH is anything but simple.
I agree. A good puzzle should not be too simple.
-
-
github.com github.com
-
Wasn't sure if this belonged as an issue in Devise or Rails though.
-
-
gist.github.com gist.github.com
-
I have a 2 radio buttons with the same id and label, only different values, (true, false)....anything I can do to choose false?
If you just do
find_field(radio_input_name)
you end up withAmbiguous match, found 2 elements matching visible field "name" that is not disabled
Tags
Annotators
URL
-
-
gist.github.com gist.github.com
-
why do you guys think have_css matcher is named the way it is? I mean, it sure deals with css identifiers, but have_css gives(at least to me) the impression that the page has certain stylesheet loading.
-
- Mar 2021
-
github.com github.com
-
ProMotion is a RubyMotion gem that makes iOS development more like Ruby and less like Objective-C.
-
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
I think the issues/problems specified in the comments are not present with a Hash-only implementation. :) I would be supportive of re-considering this feature just for use with a Hash, where I believe 80% of the real-life use cases would (and do) exist. I have encountered this need before in the wild, but not with Arrays.
-
-
www.jackfranklin.co.uk www.jackfranklin.co.uk
-
I like this approach more because I can scan the code that renders the Box component and easily spot that it takes two children. If the Box took any props, they'd be within the opening <Box> tag, and they would be distinct from any children props.
-
One gripe I've had with this approach is that you lose the visual cues that you're passing children into the Box component; they now aren't nested within the Box when you render them like we're used to in HTML; it's now up to you to read the props and spot which ones are being used to provide children.
-
-
en.wikipedia.org en.wikipedia.org
-
Nevertheless, co-hyponyms are not necessarily incompatible in all senses. A queen and mother are both hyponyms of woman but there is nothing preventing the queen from being a mother.
not necessarily incompatible in all senses.
so is this only a concern/possibility when the word in question is a polyseme?
but there is nothing preventing the queen from being a mother
The meaning of the "incompatibility" relation seems really ambiguous. What does that mean precisely?
And how would we know for sure if an incompatibility (such as a peach is not a plum) or lack of incompatibility (a queen can be a mother and a mother can be a queen) is a sufficient condition to cause it to be or not be a co-hyponym?
Oh. I guess it says
Co-hyponyms are often but not always related to one another by the relation of incompatibility.
so it actually can't ever be used to prove or disprove (sufficient/necessary condition) that something is a co-hyponym. So that observation, while interesting, is not helpful in a practical / deterministic way...
-
It consists of two relations; the first one being exemplified in "An X is a Y" (simple hyponymy) while the second relation is "An X is a kind/type of Y". The second relation is said to be more discriminating and can be classified more specifically under the concept of taxonomy.
So I think what this saying, rather indirectly (from the other direction), if I'm understanding correctly, is that the relationships that can be inferred from looking at a taxonomy are ambiguous, because a taxonomy includes 2 kinds of relationships, but encodes them in the same way (conflates them together as if they were both hyponyms--er, well, this is saying that the are both kinds of hyponyms):
- "An X is a Y" (simple hyponymy)
- "An X is a kind/type of Y".
Actually, I may have read it wrong / misunderstood it... While it's not ruling out that simple hyponymy may sometimes be used in a taxonomy, it is be saying that the "second relation" is "more specifically under the concept of taxonomy" ... which is not really clear, but seems to mean that it is more appropriate / better for use as a criterion in a taxonomy.
Okay, so define "simple hyponymy" and name the other kind of hyponymy that is referenced here.
-
-
en.wikipedia.org en.wikipedia.org
-
semantic domain or semantic field
What, then, is the difference between a semantic domain and a semantic field? The way they are used here, it's almost as if they are listing them in order to emphasis that they are synonyms ... but I'm not sure.
From the later examples of basketball (https://hyp.is/ynKbXI1BEeuEheME3sLYrQ/en.wikipedia.org/wiki/Semantic_domain) and coffee shop, however, I am pretty certain that semantic domain is quite different from (broader than) semantic field.
-
-
en.wikipedia.org en.wikipedia.org
-
(Not answered on this stub article)
What, precisely, is the distinction/difference between a semantic class and a semantic field? At the very least, you would say that they are themselves both very much within the same semantic field.
So, is a semantic class distinct from a semantic field in that semantic class is a more well-defined/clear-cut semantic field? And a semantic field is a more fluid, nebulous, not well-defined field (in the same sense as a magnetic field, which has no distinct boundary whatsoever, only a decay as you move further away from its source) ("semantic fields are constantly flowing into each other")?
If so, could you even say that a semantic class is a kind of (hyponym) of semantic field?
Maybe I should pose this question on a semantics forum.
-
-
en.wikipedia.org en.wikipedia.org
-
An individual semantic feature constitutes one component of a word's intention, which is the inherent sense or concept evoked.
Would this be referring, then, to explicit meaning or implicit meaning -- or neither?
-
-
en.wikipedia.org en.wikipedia.org
-
those aspects of a linguistic unit, such as a morpheme, word, or sentence,
Speaking of ambiguity...
Are the examples in the list "such as a morpheme, word, or sentence" examples of
- aspects of a linguistic unit or of:
- linguistic units themselves ?
Unless you are already fairly familiar with those terms -- in particular, linguistic unit -- it may not be clear.
I believe these are given as examples of "linguistic unit", in order to clarify what we mean by "linguistic unit" — perhaps (ironically) precisely because many people would be unfamiliar with that expression/term.
-
-
en.wikipedia.org en.wikipedia.org
-
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"?
-
-
superuser.com superuser.com
-
annoying: keeps asking every time
-
-
github.com github.com
-
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
-
-
stackoverflow.com stackoverflow.com
-
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.
-
-
askubuntu.com askubuntu.com
-
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... :)
-
-
piao-tech.blogspot.com piao-tech.blogspot.com
-
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"
-
-
askubuntu.com askubuntu.com
-
this is so stupid (that there is no sensible way to run a Desktop file from the terminal)
-
-
If I do gnome-open foo.desktop it simply opens foo.desktop as a text file. If I make it executable and then run it in bash it simply fails (which is expected, it's clearly not bash script). EDIT: Doing exec /fullpath/foo.desktop gives me a Permission denied message, even if I change ownership to myself. If I make executable and do the same command, the terminal tab I'm using simply closes (I'm guessing it crashes). Finally, if I do sudo exec /fullpath/foo.desktop, I get an error reporting sudo: exec: command not found.
-
-
gitlab.gnome.org gitlab.gnome.org
-
It sounds like a gnome-open (or the equivalent library call) bug. Reassigning.
-
deskbar should probably detect their extension and execute the relevant command as opposed to opening the file for editing.
-
-
unix.stackexchange.com unix.stackexchange.com
-
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?
-
-
askubuntu.com askubuntu.com
-
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
-
-
askubuntu.com askubuntu.com
-
XDG stands for X Desktop Group aka freedesktop.org
-
what does xdg stand for? Its hard to remember without knowing that.
-
-
store.steampowered.com store.steampowered.com
-
infringing on Marvel's copyrights
-
-
www.reddit.com www.reddit.com
-
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?
-
-
github.com github.com
-
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?
-
-
www.chevtek.io www.chevtek.io
-
He says that writing the function yourself makes it easy to modify and to fix bugs or improve efficiency.
.
-
-
stackoverflow.com stackoverflow.com
-
is Wine process virtual machine actually?
I think it is, yes.
Wine was given as an example of a process VM above.
-
-
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
- canonical version
- avoid duplication
- maintaining redirect/copy at old URL in order to maintain historical links (broken links)
- make it impossible to get wrong/incorrect
- avoid duplication: impossible for them to disagree/diverge if there's only one version/copy
- I have a question about this
Annotators
URL
-
-
github.com github.com
-
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?
-
-
github.com github.com
-
if we can fix source maps, unconditionally adding ";\n" would be a better solution
Tags
Annotators
URL
-
-
duckduckgo.com duckduckgo.com
Tags
Annotators
URL
-
-
github.com github.com
-
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.
-
-
github.com github.com
-
Sprockets 4: The effect of config.assets.debug does not match the rails documentation.
-
concatenation still occurs.
-
-
-
If the bug is still there I think that it is better if it is open so others can find it if they run into the same issue.
-
-
github.com github.com
-
still compiles everything into single CSS/JS files
I noticed this too
-
-
github.com github.com
-
Is there a PR to... something? sassc-rails? That would make the patch not necessary? (I don't know if there's any good way to monkey-patch that in, I think you have to fork? So some change seems required...) Should the defaults be different somehow? This is very difficult to figure out.
-
Is there a PR to... something? sassc-rails?
-
-
math.stackexchange.com math.stackexchange.com
-
What is the difference between equation and formula?
-
-
tylergaw.com tylergaw.com
-
This is a non-exhaustive list of other things I love;
-
Spending an hour digging through bins in a record store is one of my favorite ways to clear my head. And then spend too much money.
-
-
jangawolof.org jangawolof.orgPhrases3
-
Degg naa ko muy tari Alxuraan.
-
Fibar bi jàngal na taawan bu góor ni ñuy dagge reeni aloom.
Le guérisseur a appris à son fils aîné comment on coupe les racines du Diospyros.
fibar -- (fibar bi? the healer? as in feebar / fièvre / fever? -- used as a general term for sickness).
bi -- the (indicates nearness).
jàngal v. -- to teach (something to someone), to learn (something from someone) -- compare with jàng (as in janga wolof) and jàngale.
na -- pr. circ. way, defined, distant. How? 'Or' What. function indicator. As.
taaw+an (taaw) bi -- first child, eldest. (taawan -- his eldest).
bu -- the (indicates relativeness).
góor gi -- man; male.
ni -- pr. circ. way, defined, distant. How? 'Or' What. function indicator. As.
ñuy -- they (?).
dagg+e (dagg) v. -- cut; to cut.
reen+i (reen) bi -- root, taproot, support.
aloom gi -- Diospyros mespiliformis, EBENACEA (tree).
-
Dafa ànd ak moroom yi àll ba, fori aloom.
Il est allé dans la brousse ramasser des fruits de Diospyros avec ses camarades.
dafa -- he/she.
ànd v. / ànd bi -- to be together, to go together; copulate; going together, fellowship; placenta.
ak -- and, with, etc.
moroom mi -- comrade of the same age group, equal, companion, neighbor.
yi -- the (plural).
àll bi -- large expanse of uninhabited land, bush; distant, as opposed to home.
ba -- the (indicates distance).
for+i (for) v. -- to pick up.
aloom bi -- edible fruit of Diospyros mespiliformis (aloom gi for the tree).
Tags
- teach
- feebar
- taawan
- wolof
- ànd
- son
- mi
- uninhabited
- koran
- for
- with
- equal
- and
- healer
- àll
- taught
- fibar
- tari
- -e
- yi
- ebenacea
- muy
- dafa
- heard
- mespiliformis
- ñuy
- aloom
- they
- what
- jàngale
- first
- him
- ko
- reen
- sickness
- placenta
- fellowship
- na
- bush
- he
- learn
- reeni
- into
- ak
- eldest
- support
- as
- companion
- the
- roots
- recite
- fori
- I
- bu
- neighbor
- ba
- collect
- comrade
- pick up
- went
- -i
- fièvre
- how
- jàng
- his
- cut
- taproot
- -an
- she
- dagg
- moroom
- tree
- taaw
- child
- from
- distant
- naa
- of
- diospyros
- dagge
- degg
- verses
- man
- together
- copulate
- male
- góor
- bi
- ni
- jàngal
- fever
- fruit
- to
- alxuraan
- gi
- land
- comrades
- janga
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
afarkas.github.io afarkas.github.ioWebshim1
-
Webshim is opinionated, that a developer should always solve a problem the HTML5 way.
-
-
www.kickstarter.com www.kickstarter.com
-
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.
-
- Feb 2021
-
2019.trailblazer.to 2019.trailblazer.to
-
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?
-
-
trailblazer.to trailblazer.to
-
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?
-
Defaults names are given to steps without the :id options, but these might be awkward sometimes.
Why would those default names ever be awkward?
If you the default name is whatever comes after
step
:step :default_name
then why can't you just change that name to whatever you want?
To answer my own question: I think you can do that, as long as the name is the 1st argument to
step
. But below I noticed an example where aSubprocess
was the 1st argument instead, and so it needs a name in this case:step Subprocess(DeleteAssets), id: :delete_assets
Why are they inconsistent about calling it name or id? Which one is it? I guess it's an id since that's what the key is called, and since there's an
Id()
helper to reference a task by its id.
Tags
- 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)
- example: in order to keep example concise/focused, may not implement all best practices (illustrates one thing only)
- I don't understand
- confusing
- I have a question about this
- trailblazer-activity
- semantics
- feels wrong
Annotators
URL
-
-
www.schneems.com www.schneems.com
-
Another thing I don’t like is the name of the config file manifest.js. Internally Sprockets has the concept of a manifest already Sprockets::Manifest, but the two aren’t directly coupled. We also already have a “manifest” JSON file that gets generated in public/assets/ and has manifest in the name .Sprockets-manifest-140998229eec5a9a5802b31d0ef6ed25.json. I know one is a JS file and one is a JSON file, but it’s a bit confusing to talk about.
When I first heard of app/assets/config/manifest.js, I was a bit confused too, and assumed/wondered if it was related to the manifest it generates under
public
. -
The link name is not very helpful, it doesn’t explain what it does very well.
-
-
drylabs.io drylabs.io
-
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"
-
-
en.wikipedia.org en.wikipedia.org
-
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?
-
-
trailblazer.to trailblazer.to
-
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...
-
-
github.com github.com
-
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.
-
-
en.wikipedia.org en.wikipedia.org
-
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):
- https://duckduckgo.com/?q=+%22non-free+content%22+%22free+content%22
- https://duckduckgo.com/?q=%22proprietary+content%22+%22free+content%22&ia=web
Not to be confused with:
- paid content ... just like:
- free content should not be confused with gratis content (?)
- free software should not be confused with freeware
-
-
trailblazer.to trailblazer.to
-
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
-
-
stackoverflow.com stackoverflow.com
-
The rsync and sleep commands (the sleep is just an example) are run through exec to prevent the creation of zombie processes if I kill the parent script while they're running, and each potentially-long-running command is wrapped in its own subshell so that when exec finishes, it won't terminate the whole script.
-
-
www.metacritic.com www.metacritic.comFlorence1
-
Please, do not buy this. I am really tired of "games" that are given critical praise because its cool to praise or because its political correct to do. I will break up my review in points so its clear why I dislike this "game" : 1) This is not a game. This is a short story, like an interactive book. 2) This game is so short, that I completed it in a 3 hour bus ride. It was boring. 3) Its a story of a girl that have to take the reigns of her life after divorce. WOMAN EMPOWERMENT. Now you know why this game is rated so highly 4) This is a MOBILE GAME. I paid $3 to play on an iphone (after watching a gaming channel give it GOTY contender. Needless to say, I never watched that gaming channel again). I FELT I WAS ROBBED OF TIME AND $3. Imagine how much I hated this game to feel like I was robbed even though it costed me only $3. 5) This game costs $7 on the eshop. You could buy CELESTE for $9 on sale on the Eshop. That is a great game. I recently bought Hollow Knight for $7 on Playstation. This interactive novel should not be sold as a game. Period. It is a waste of time and money.
Nothing wrong with interactive novels being sold in the same store as games... as long as it's clear what it is (no false advertising).
Somewhat agree with some of the other points...
-
-
github.com github.com
-
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...
-
-
github.com github.com
-
@adisos if reform-rails will not match, I suggest to use: https://github.com/orgsync/active_interaction I've switched to it after reform-rails as it was not fully detached from the activerecord, code is a bit hacky and complex to modify, and in overall reform not so flexible as active_interaction. It has multiple params as well: https://github.com/orgsync/active_interaction/blob/master/spec/active_interaction/modules/input_processor_spec.rb#L41
I'm not sure what he meant by:
fully detached from the activerecord I didn't think it was tied to ActiveRecord.
But I definitely agree with:
code is a bit hacky and complex to modify
Tags
- hard to understand
- recommended software
- pointing out gaps/downsides/cons in competition/alternatives
- recommended option/alternative
- switching/migrating to something different
- evaluating software options
- I agree
- flexibility
- too coupled/dependent
- too complicated
- reform (Ruby)
- active_interaction
Annotators
URL
-
-
-
with ActiveForm-Rails, validations is the responsability of the form and not of the models. There is no need to synchronize errors from the form to the models and vice versa.
But if you intend to save to a model after the form validates, then you can't escape the models' validations:
either you check that the models pass their own validations ahead of time (like I want to do, and I think @mattheworiordan was wanting to do), or you have to accept that one of the following outcomes is possible/inevitable if the models' own validations fail:
- if you use
object.save
then it may silently fail to save - if you use
object.save
then it will fail to save and raise an error
Are either of those outcomes acceptable to you? To me, they seem not to be. Hence we must also check for / handle the models' validations. Hence we need a way to aggregate errors from both the form object (context-specific validations) and from the models (unconditional/invariant validations that should always be checked by the model), and present them to the user.
What do you guys find to be the best way to accomplish that?
I am interested to know what best practices you use / still use today after all these years. I keep finding myself running into this same problem/need, which is how I ended up looking for what the current options are for form objects today...
- if you use
-
If you compare the code of Reform and the code of ActiveForm-Rails, I think the last is more simple and clear for a behavior similar (or better).
-
-
github.com github.com
-
An additional usecase is where we would like to update multiple records
-
-
-
if you name you instance variable form, then you can always just pass in params[:form]
-
-
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
-
we plan to migrate to Angular 1, and we'll finish out the decade on React
Wrong direction: I'd recommend migrate from Angular to React.
-
-
pop-planet.info pop-planet.info
-
You don't necessarily have to resize Windows' EFI partition. You can have multiple EFI partitions.
-
-
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
-
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.
-
-
-
ux.stackexchange.com ux.stackexchange.com
-
Popup - You don't need to deal with these messages right away, yet at some point you will need to take action since these won't go away until explicitly say say you don't want them around anymore.
-
- Jan 2021
-
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.
-
-
blog.linuxmint.com blog.linuxmint.com
-
We don’t do politics, and we certainly don’t do religion. You’re bringing these here by using terms such as “politicians” or “evil”.
Does "evil" refer to religion? Or perhaps they meant "evil" in a more general way, as a more extreme version of "bad".
-
-
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!
-
-
wondertools.substack.com wondertools.substack.com
-
Simple ways to do more with spreadsheets
For me the key is use cases within my discipline--teaching and how students can use them. I don't like to teach stuff that won't reap students dividends in productivity, learning, sharing, gathering info effectively, time saving.
-
-
css-tricks.com css-tricks.com
-
I can’t promise I’m explaining this 100% accurately, but the way I understand it, the minimum width of a grid column is auto.
-
-
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.
-
-
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.
-
-
www.dennisdeacon.com www.dennisdeacon.com
-
However, one of the drawbacks of this property is that the line intersects descenders of the characters.
I think it actually looks great/better because it intersects descenders of the characters.
-
-
framework7.io framework7.io
-
Open About Popover
I have to say, I like how it looks in their Apple and Desktop preview better than the Android/Material preview. I wish they had the arrow in Android Material too.
But on https://sveltematerialui.com/demo/menu-surface it doesn't bother me quite as much...
-
-
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
-
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
-
- Nov 2020
-
stackoverflow.com stackoverflow.com
-
This definition is actually a strict subset of the first definition: as the same script must (by definition) run inside both a server/Node.js context, but also a browser DOM context
-
-
uxdesign.cc uxdesign.cc
-
Text links are a very simple button type.
Eh? I didn't know links were considered buttons. I'm not sure I totally agree understand, but it's not outrageous either...
Update: Okay, I guess when you put an outline around it (like they directly below this paragraph), and even more if you put an icon with it (like they did further down; https://hyp.is/DZTZzi6fEeuu65uvQJ9W1Q/uxdesign.cc/ui-cheat-sheets-buttons-7329ed9d6112), the link looks like more like a button.
But (and I think this is their point) it is what it is because of how it's used and not how it's styled: it should be the same thing (a button) whether or not it has an outline.
-
-
-
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
-
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.
-
-
support.google.com support.google.com
-
www.thecodebuzz.com www.thecodebuzz.com
-
GET is the primary mechanism of information retrieval and the focus of almost all performance optimizations.
-
-
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)
-
-
button.dev button.dev
-
i like working on application frameworks, compilers, interpreters, and emulators.
-
-
jimmy.schementi.com jimmy.schementi.com
-
but know I know what I don't want to do. I definitely know I want to be an Engineer now, and it makes it more clear that I should start my own business.
-
-
github.com github.com
-
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
-
-
github.com github.com
-
Things that I miss most from Vue:
-
- Oct 2020
-
stackoverflow.com stackoverflow.com
-
Please don't copy answers to multiple questions; this is the same as your answer to a similar question
Why on earth not? There's nothing wrong with reusing the same answer if it can work for multiple questions. That's called being efficient. It would be stupid to write a new answer from scratch when you already have one that can work very well and fits the question very well.
-
-
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
-
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.)
-
-
civilizationemerging.com civilizationemerging.com
-
For all systems of structural incentive, the incentive of any actor (individual or group), must be rigorously aligned with the well-being of all other agents in the system and of the commons writ large. Ie, all externalities must be internalized – all the consequences of activity within the system must be included in the system’s accounting.
Sure ...
This is a bit "I want a million dollars"
You can write this down and the devil is in how to implement it.
-
-
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?
-
-
-
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
-
-
-
andrewdeandrade commented on Jul 31, 2015
locked issues that I would comment on if I could: Can't react to comment because locked. Want to thumb up.
-
Without elegant ways of expressing loops/iterators (like angular does with directives), the primary way to keep JSX readable thus becomes copying and pasting.
I'm not quite sure I understand this (so until I do, I'm not sure I agree)...
Why does he think copying and pasting is the only way to make it readable? Like he pointed out, you can extract JSX snippets and use loops within JSX. But maybe he means (his previous point), that people often don't do that. Hmm. 
-
-
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?
-
-
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.
-
I believe this feature is overrated in RFC.
-
-
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?
-
-
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
-
- 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
-
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...
-
-
www.nature.com www.nature.com
-
Krammer, Florian. ‘SARS-CoV-2 Vaccines in Development’. Nature, 23 September 2020, 1–16. https://doi.org/10.1038/s41586-020-2798-3.
-
-
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
-
-
They don't need to add a prop for every action. The action itself can be passed in as a prop. <script> export let action; </script> <div use:action>whatever</div> The argument for the action can be another prop or can be part of the same prop.
-
-
-
While there is some precedence in other frameworks for using as, the word doesn't fit well. Since you are adding functionality to elements I like the word add better (and it only has 1 more character).
-
the ability to pass around element names as strings in place of components
-
-
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
-
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.
-
-
drive.google.com drive.google.com
-
The poem takes place on an island.
-
-
github.com github.com
-
But what all frameworks have in common is to write JS and this could convince users of React but also newcomers that know JS.
-
-
github.com github.com
-
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.
-
-
docs.google.com docs.google.com
-
the repeated "I remember" signifies the introduction of a new idea/thought. Also sets up a good rhythm. Similar to an "I am from" poem
-
-
www.thefridaytimes.com www.thefridaytimes.com
-
The decline of the Muslim civilization, a puzzle that remains elusive despite a rich variety of suggested causes from the goat to Mongols, began almost simultaneously with the rise of the modern Europe. The advent of the Reformation that transformed the intellectual landscape of Europe is dated from 1517 when Martin Luther began his campaign against the Church. By a remarkable coincidence an event that helped freeze the intellectual landscape of the Muslim world took place at about the same time. In 1515 the Ottoman Sultan Selim I, persuaded by the influential clerics of the realm, issued a decree that imposed death penalty on anyone using a printing press, invented in Germany in 1455, to print books in Turkish or Arabic. The ban remained in force for the next 270 years, till 1784, except for an attempt to circumvent the ban in 1729. Thus, it was only after 1784 that the technology of printing could filter to the rest of the Middle East. Even so it was not till 1817 (362 years after the invention of printing) that the first book was printed in Iran. In Europe, however, the printing press had come into extensive use in by the end of the 15th century and is recognized as a powerful engine of the Reformation and the making of the modern Europe
Ah hah, one explanation of how Islam, leading the known world in literature, philosophy, science etc went into steep decline at exactly the same time that Martin Luthar made his famous statements. The Ottomans' banning of the printing press for 270 years retarded what had once been a flourishing empire.
This ties in with the [[From Dawn to Decadence]] book.
Tags
Annotators
URL
-
- Aug 2020
- Jul 2020
-
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??
-
-
newlearningonline.com newlearningonline.com
-
lass ceilings’.
These individuals who hit this "glass ceiling" make up the majority of the population in our classrooms. These are the children who's schools are underfunded and teachers are exhausted and burn out or who are fresh out of school with no experience, but a lot of motivation.
-
-
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.
-
-
bugs.ruby-lang.org bugs.ruby-lang.org
-
If you're having to look at GitHub, it seems like you didn't find a situation yourself where the requested feature would make you happier. I would advice you not to attempt to find use cases beforehand, just let them find you.
-
-
-
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"?
-
This improved readability
Not really. How?
-
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
-
wangjohn.github.io wangjohn.github.io
-
This means you no longer have to declare inverse_of on two associations which have good names.
... which have good names.
This implies that those names where the inverse_of cannot automatically be inferred are bad names. I disagree that a "good name" is at all related/dependent on that ability.
What they should say here instead is:
... which have names that allow the relationship to be easily inferred.
Or refer to these names as the "default" or "Rails conventional" names for these associations.
But it is not necessarily a better name. A better name is, quite often, one that is more descriptive and specific.
For example, just because by default if you use
rails generate
with a User model, it might (I don't remember; can it even generate associations?) create abelongs_to :user
association doesn't mean that's the best name for it.belongs_to :author
orbelongs_to :owner
, for example, being more specific, are likely better names. The model still needs a generic name likeUser
because it may be used in various relationships, but the relationships themselves should pretty much never be calleduser
because there's almost always a more specific name that better reveals/describes the relationship.
-
-
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.
-
-
stackoverflow.com stackoverflow.com
-
forums.phpfreaks.com forums.phpfreaks.com
-
I know you acknowledged your response was late and you're just trying to help but please don't resurrect very old threads.
This is better than creating a duplicate new thread.
There is no better place to respond to an existing topic than in the existing thread for that topic.
-
-
api.rubyonrails.org api.rubyonrails.org
-
This is a poor solution
What's so bad about this solution? If it works, it works. And it only requires wrapping in 1 additional block. Pretty simple.
-
- 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?
-