« first day (3197 days earlier)      last day (1974 days later) » 

19:11
1
Q: What is the best color of lenses for sunglasses?

Christian QuinonesThe tinted lenses are merely a fashion accessory but they can have a huge impact on your performance as lover of the great outdoors. I'm thinking what would be the best color of lenses for sunglasses.

let's get this ball rolling: Red. — rlemon 35 secs ago
19:28
I'm confused. Why is it downvoted?
this is just the type of question needed on meta
oh wow that number just dropped
Goodbye post
nooo how will I know which sunglass lenses are the best
@rlemon how do you link comments on posts?
with.. the link
?
@rlemon Yeah, how do you get the link of a comment
19:36
the timestamp
oh I'm dumb
2
!!/listcommands
@StephanS help, afk, backup, ban, clap, convert, define, die, doge, eval, forget, google, hang, imdb, info, jquery, learn, listcommands, listen, live, mdn, meme, moustache, msdn, mustache, nudge, quote, refresh, spec, stat, stats, summon, tell, unban, undo, unonebox, unsummon, urban, weather, welcome, wiki, xkcd, youtube, zalgo, !, !!, $.baby, (4337654<<1)+1, (y), /somecommand, 007, 1+1-1, 111test, 2+2-1, 2020/07/23, 3, 666, :p, </pissing>, ?, ???, ^, ^5, abesnacking, abhi, abhishekpornfreak
acronym, afsari, agario, ah, ahah, algosmarts, aliens, alienware, alot, am, andy2, angry, angryticks
!!hang [treehouse]
Guys, why includes does not works here?:
[[1, 2, 4], [5, 6, 7]].includes([5, 6, 7])
19:50
!! meme cat
@StephanS Sorry, I don't know that one.
[5,6,7] !== [5,6,7]
!! hang bob
I guess hang doesn't work anymore
!! meme troll
!!sandbox
19:55
@rlemon Please go and play in the Sandbox
thanks
@robe007 because those arrays are not the same instance.
const x = [1,2,3];
const y = [1,2,3];
const z = x;
console.log(x === y, x === z); // false true
const a = [1,2,3];
const b = [[4,5,6],a,[9,8,7]];
console.log( b.includes(a) ) // true
also showcases it
19:58
ohhh
meta is fun today
Why all the downvotes? I just want an answer!!!! — Future_Badger 2 mins ago
well, I think I need to go in another way to get those array compared
@KevinB lol
!!> const check = [4,5,6]; !![[1,2,3],[4,5,6],[7,8,9]].findIndex( ( sub => sub.every((el,i) => check[i] === el) ) )
@rlemon true
enjoy
20:03
@rlemon Thanks !!! :)
do you understand what it is doing?
20:45
!!meow
🚽
i'll have to check the source code but i think hangman was removed
var url = 'http://sleepy-bastion-8674.herokuapp.com/';
just another ssl problem
that's a shame
20:51
!!meow
undefined({word:"reinitialises"});
!!stats robe007
20:54
@StephanS robe007 (https://stackoverflow.com/users/2954267/robe007) has 1360 reputation, earned 0 rep today, asked 65 questions, gave 32 answers, for a q:a ratio of 65:32.
avg. rep/post: 14.02. Badges: 2g 16s 41b
nice
hahahaha
!!stats rlemon
@robe007 rlemon (https://stackoverflow.com/users/829835/rlemon) has 13988 reputation, earned 0 rep today, asked 72 questions, gave 384 answers, for a q:a ratio of 3:16.
avg. rep/post: 30.67. Badges: 10g 82s 116b
so beauty
3:16
20:59
hola
ohhi
!!stat
@KevinB You (https://stackoverflow.com/users/400654/kevin-b) have 87244 reputation, lost 1 rep today, asked 7 questions, gave 2313 answers, for a q:a ratio of 7:2313.
avg. rep/post: 37.6. Badges: 13g 145s 163b
!!stat
@Vap0r You (https://stackoverflow.com/users/763509/vap0r) have 1538 reputation, earned 0 rep today, asked 34 questions, gave 68 answers, for a q:a ratio of 1:2.
avg. rep/post: 15.07. Badges: 2g 16s 32b
21:00
gotta get those numbers up. Those are rookie numbers.
Anyone with angular experience here?
I'm trying to make a shared component.
unfortunately yes
@rlemon It is only with one exclamation mark at the beginning
Previously I have always made a shared component using class level vars. For instance if I had a list shared component I would send over an array.
I started messing around with ngrx and after becoming a little more knowledgeable in it I've gotten rid of this array and now have my observable that emits a list.
i've cast 32k votes now
So onto my question:
I want to make a shared component which takes in a piece of my state or store and performs actions.
21:02
@rlemon ![[1,2,3],[4,5,6],[7,8,9]].findIndex( ( sub => sub.every((el,i) => check[i] === el) ) )
The component is going to be a selection list component. So basically the incoming data will have to conform to:
export interface NxSelectionListItemMap {
    checked: string;
    description: string;
}
@robe007 try not to ping people multiple times
@KevinB 'cause the sound?
When they click it will update. There will also be a save that send over all modified items, which may or may not be checked.
I just don't know the best way to go about it.
the sound, the inbox notifications, and it's just annoying
21:04
Even if I take in the store, there is no good way for me to know which action types the other dev setup to perform each action (get all, check item, save list)
@KevinB The way you mentioned angular seems like your experience might be either limited, unwanted, or both lol. So if it helps for you to give me a language-agnostic version of how you might create this shared component, I can try to roll with that. I'm just looking for ideas
@KevinB hahah OK
yeah, i haven't messed with any of hte modern versions of angular, but a lot of the concepts pretty easily translate over to other frameworks
well, if you don't know what will be consuming it, and want it to be able to handle multiple types of lists, best bet would probably be to give it events/callbacks
so that the parent can assign actions as needed
Yeah that's how we previously did it then just iterated over the list with callbacks for update and save
why is this a thing
!!birthinghips
21:27
@robe007 no that changes the results. !! Will cast it as a Boolean and not flip it
Which is fine if you want the negative result
But my code was accurate how I wrote it
!!stat
@StephanS You (https://stackoverflow.com/users/11168559/stephans) have 192 reputation, earned 0 rep today, asked 7 questions, gave 1 answers, for a q:a ratio of 7:1.
avg. rep/post: 24. Badges: 0g 0s 7b
that's disappointing
7 badges is cool tho
!!stats KevinB
21:39
@StephanS Kevin B (https://stackoverflow.com/users/400654/kevin-b) has 87244 reputation, lost 1 rep today, asked 7 questions, gave 2313 answers, for a q:a ratio of 7:2313.
avg. rep/post: 37.6. Badges: 13g 145s 163b
!!wtf
i answered a lot of jquery questions a long time ago, and kept getting rep from them for years
oh my
3255
upvotes
most of those were after the rep cap
21:46
still that many votes in one year
think i went up only 3-4k rep from that answer
your questions aren't bad...... do people downvote you because of your score?
they downvote me because i made myself a target by leaving comments on their posts requesting clarification and/or making suggestions on how to improve after downvoting
hey guys, if you have an array of javascript objects in the form of JSON (not constructed with a constructor, instead a response from an API). Is there a simple way to differentiate object types?
Once you parse it, yes
21:49
yeah that definitely will get people to hate you
I don't understand why but it does
@KevinB how so?
@rlemon If the check is on the 0 index, will throw !!0, and that will be falsy
can you show an example of what you're trying to do?
!!sandwich
21:50
@StephanS Pretend your array is a ham sandwich and peel back layers one at a time until you get to the mustard
const check = [1, 2, 3]; !![[1,2,3],[4,5,6],[7,8,9]].findIndex( ( sub => sub.every((el,i) => check[i] === el) ) )
that is falsy
@robe007 was that for me?
@TomCrosman nope, for rlemon
xD
1 message moved to Trash can
@TomCrosman Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
ignore the fact that i gave i included assignment and request as part of the name, just for simplicity
basically the JSON objects are almost the same, I concat them into one array, and sort them by date. Then I loop through them to put them in a table, but I've lost context of object type when i concatted the arrays
i solved it by just adding .objType, but i didn't want to do that.
22:14
@TomCrosman eh, i don't see a non-ugly way of fixing that
for example, you could do if (assignments.includes(this))
assuming you keep using the same objects and don't recreate/copy them
 
1 hour later…
DRP
DRP
23:36
Hi Team ! hope everyone is doing awesome. Needed some guidance please.

ISSUE
-How do I tell npm to use the local install rather than the nvm global install to use the go command seen below?

INFO
go]$ npm list -depth=0
[email protected] /home/user/go
├── [email protected]
├── [email protected]
└── [email protected]

$ go get github.com/ethereum/go-ethereum
Error: command is not recognized
at /home/user/.nvm/versions/node/v12.6.0/lib/node_modules/go/node_modules/go-cli/lib/invoke.js:24:13
at processTicksAndRejections (internal/process/task_queues.js:85:5)

« first day (3197 days earlier)      last day (1974 days later) »