« first day (2686 days earlier)      last day (2486 days later) » 

Wax
Wax
03:21
how do I unit test a click event on an element that was generated by a loop?
@KendallFrey what in gods name are you talking about
that's a lot of cocaine references I didn't expect you to know xD
@SterlingArcher are they actually? I'm just talking rimworld
@Wax what have you tried?
@ssube dude you already know my type is crazy, not gold digger
@KendallFrey omg LOL
1 message moved to Trash can
@Wax 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
03:24
@hilli_micha more like Roll Tidepods amirite
@SterlingArcher WHAT
Take your star, you earned it.
@KendallFrey yayo is slang for cocaine
Wax
Wax
that's what I tried so far
03:24
i thought you was talking about cocaine
Wax
Wax
the
let button = fixture.debugElement.nativeElement.querySelector('button');
is what I use for static dom elements
@SterlingArcher well yayo is cocaine by a different name
Wax
Wax
but not sure how to do it on dynamically generated elements
by loops and other events
I tried googling it but I'm not sure I f I'm entering the right keywords to make em results pop out
I didn't know yayo is real slang though
what else is rimworld stealing
idk my expertise really lies in angel dust
03:27
hopefully I can finish the playthrough tomorrow
hopefully i can finish your mom tomorrow
nice
You've never finished her before
So I went on a date tonight and she was so fucking boring. She had like nothing to say and just stared off into nowhere
it was super awkward
user2620028
@KendallFrey you obviously don't know me very well
your mom showed me your baby pictures
user2620028
03:28
@SterlingArcher congratulations, you found the reason she is single, and it only took you one date
@SterlingArcher I bet she thought you were super boring too
user2620028
@KendallFrey i thought this said "You've never finished before her"
@HatterisMad forreal dude, i've never sat through so much silence because i had to ask 3 questions just to get 2 words out of her
@HatterisMad lel
why don't add a class to those elements and query them that way @Wax
user2620028
03:29
@SterlingArcher i ghost those people lol
But I had a really good pretzel
!!urban pretzel
@KendallFrey pretzel An imminent threat. Has struck once. Failed. Will strike again.
@HatterisMad yeah she hasn't texted me, so idc, if she texts me ill tell her straight up she seemed to have 0 interest in anything
It's like I went on a date with myself, I talked that much
Just a less pretty version of me
So still pretty hot i guess
Wax
Wax
03:31
@Rick and just grab one of them to test the click event?
If she's anything like me, she'll say nothing until you say something interesting and then won't shut up.
I literally asked her about her hobbies, and verbatim: "I don't have hobbies"
Wax
Wax
<div accordion-heading> I'm kinda new to angular, but why is there an accordion-heading in this element? Is it a directive?
That's it
no, to capture all of them in an array so you can loop through them
03:32
ok then she's nothing like me
how the fuck does one not have hobbies
Maybe she likes Haskell and Rubik's Cubes
Wax
Wax
@Rick Alright. thanks
sadly I know the answer to that
@KendallFrey dude seriously. Like what do you do in your free time?
Way too many people just work all the time
03:32
She's so much different over text. I was shocked
I can bet money that Kendall's answer will involve Rimworld
@SterlingArcher Maybe she's into freaky stuff and was embarrassed to say so
@hilli_micha I'm solving a rubik's cube atm
While playing Rimworld?
@KendallFrey shit I mean lifes to short to admit you don't like being choked
@hilli_micha nope lol
But I do sometimes
03:34
I don't like being choked. Like I have a survival reflex that implicitly prevents me from enjoying such an action.
Who the fuck wants to survive
ya probably sadomasochism
People who play Survivor
I sang some filthy frank songs on vr chat with my ukulele
i get all the virtual wamen
Jeff Probst will give you a million dollars if you act like a dick to some random people on national TV for a few weeks
yay we're surviving
03:36
For a million dollars I'd do worse than that
DRP
DRP
04:03
Hi Experts
@ndugger
I think only you are left...
quick question, what is the approach to create an unknown key for an object in a for without knowing priori the key name?
I either get TypeError: obj1.koy is undefined
yup that
04:15
What?
DRP
DRP
Like im trying something like:
function h (){
 var o ={};
  for (var i = 0; i < heart.length-1; i++) {
    o.key=heart[i];
  }}
this is just a snippet, the part im not including is basically how the key name is made
so key could be "some_key_name", hence: o.some_key_name
problem is that it needs to be created on the fly,meaning that it can only be created through the loop process as this is what walks the string where the name is madeup/obtained
hope that makes sense
o[ key ]
!!google javascript bracket notation
Bracket notation instead of dot notation for variable keys
DRP
DRP
hmmm yeah
i forgot about that!!!
04:23
there is no more !!google?
DRP
DRP
sweet let me try
@jAndy yes
i do use google a lot
but google is not watson
right, google is sherlock
DRP
DRP
when google gets to be as watson ill start dropping over here
not
you know what watson im talking
IBM watson
google that...
Google's AI is far beyond IBM Watson
like thats comparing some troll like me to an elite like zirak
04:38
Hey, so I'm fairly new to javascript and was learning about callbacks and came upon a question to get the response times of a few sites using callback....anybody know how to do that ??
@jAndy google burned their search API or something like that
Matching a for statement of any kind purely with a RegExp is impossible to do for all cases: for (var i = (((((((0))))))); ;), for (var { prop = (((((((0))))))) } in array), etc. — Patrick Roberts 2 mins ago
@PatrickRoberts while true, in all fairness if your for loops look like that you're probably a psychopath lol — Sterling Archer 55 secs ago
@JavaDeveloper That's pretty vague. Do you have access to the sites' code, or are you pinging them and trying to measure the response time?
DRP
DRP
04:54
@ShrekOverflow For the sake of argument I perhaps was meaning somewhere around the quantic computing... anyways I followed the suggestion of using object[key], and ended up with : ReferenceError: key is not defined, so this is the type of things that you can google around to nowhere without knowing what input to put in order to get the expected results.
Of course i get its not defined, thats because i'm creating it on the fly
DRP
DRP
so those are the type of things that only after being programming over 2 years you get to master
@ShrekOverflow what wat?
I am confused what were you even trying to do
DRP
DRP
function h (){
 var o ={};
  for (var i = 0; i < heart.length-1; i++) {
    o[key]=heart[i];
  }}
So the idea was to create a property which would have an array
key:value
however the key name is not known, nor the amount of keys that will be used in the object
the for is going to walk a huge string and built the key_name: value_string based on that
so something like object {key_name1: "string1", another_customKey: "someotherstring"} would be built, of course the key name is not fixed
maybe if i give you the context it will be easier... the idea is that someone will c/p a lot of ip addresses with subnet into an <input>, i.e 10.1.2.3/24 192.168.0.1/28 and so on... now all those addresses will just be pasted in a large chunk, so it will be treated as a string. They idea is that the object named ipList{Mask24:"10.1.2.3", Mask28:"192.168.0.1"}
.
@monners I'm using the Date() and http.get for the response times but how to do using callbacks
DRP
DRP
05:07
let me see if i can find some oreilly book for js on piratebay and if not ill come back
cheers!
@DRP please don't steal material, it's quite unethical (if you do, please don't post about it here). People worked very hard to publish those books :(
DRP
DRP
05:38
@SterlingArcher no worries, it's a saying.... so let me put it in more real terms, I will do more testing in my atom editor and google more
take it easy son
i havent heard that saying before
DRP
DRP
Its like saying, yeah let me go grab a bank and ill come back and we can spend some time
I guess my logic is not that good
 
2 hours later…
07:37
Heyo
Good day Mister Roomowner!
Good morning mister sunshine, you brighten up my day
thanks
08:07
Morning
you're "morn"ing wrong
well, you could be narrating your actions
lol
That sounds quite hard, but IMO you can 1. Open your text editor, 2. Start coding. If you have no idea what to write or how to code, you can google for tutorials pretty easily. — Jeremy Thille 21 mins ago
dat question
he probably wants an upvote bot :P
08:15
yeah
Hey guys, does Node dispose of variables that I don't have a reference to anymore?
anyone can help me? I have problem in array key binding in vuejs. Please check this link
0
Q: How to change array key in vuejs binding

Jesus Erwin Suarez<div id="app"> <div v-for="(value, index) in additionalOptions"> <input type="text" v-model="additionalOptions[0]" /> </div> </div> var app = new Vue({ el: '#app', data: { additionalOptions: [{ "side_dish": ["Potato", "Apple"] }] }, }); ...

@Rishav No. That data gets uploaded to a cloud for usage by google analytics purposes and marketing
@Neil what if I have google analytics blocked by my company proxy? :thinking:
@JesusErwinSuarez v-model doesn't take an expression, it takes the name (or object chain) from data
08:22
Where does the data go?â„¢
and it has to be static
so you'll need to figure out a way to do that
@JesusErwinSuarez what does array key mean?
@Rishav good question. O_O
```
for (var i = 0; i < 16; i++) {
    var p = new blynk.VirtualPin(i);
    p.on('write', param => {
        var varname = pinmap[i];
        data[varname] = param;
    });
}
```
woops
or you can add do @input="e => array[0] = e.target.value" and :value="array[0]"
08:23
Should I keep a reference to p around to avoid garbage collection or something?
well it must keep the value saved in p for the event
yes
assuming it is an event of course
it is
@Neil nah, it will work
08:24
then a ref is stored in your event scope
wat
Nvm I'll just avoid looking like a total n00b here and get out
eh kamil
eh kamil
if you ask questions you seem like a n00b and if you don't, you are a n00b. Tough choices :P
dat 007 image. You have starred pinned it yourself right ?
08:26
good boy
oh, I better spend some time learning some react best practices
I've decided not to go for the backend position because the blockchain is still heavily hyped, and I don't want to look like one of those guys
and I'm sure I can switch roles later on if I end up liking the company and the company ends up liking me
it was at the top of the google results for "react todo mvc"
probably because it uses tabs
ooooh redux comes from "reducers"
or as in "reduction"
08:45
@KarelG no
it is not worth to be pinned IMO
09:03
one of the north-korean supporting woman was out of sync, so this happens
i hope that she does not get punished for that :|
you bet she will
@KamilSolecki seems really bloated]
a lot of code for very little functionality, spread across a lot of files
actually makes it kinda hard to read and navigate
thats called patterns
you probably havent seen MVVM code
well, I guess I don't like that pattern :/
@KamilSolecki vue is MVVM
09:07
you will get about x2 code for the same functionality
is it not MVC?
but everything falls into place much more nicely
to be fair I dont see what you consider bloated in here
oh vue is MVVM?
@KamilSolecki at first look, how it's unnecessarily spread across so many files
a colleague is researching that to be implemented or not
09:11
Anyone used angular cli :)
people do this with vue too, but I thought react was about not doing it the angular way
@towc thats my favorite part
:D
@KamilSolecki well, then you'll like vue XD
angular way overdoes it
I thought vue was supposed to be somewhere in between (with react having things pretty compact, and angular spreading things out like crazy)
Nobody tells you wether you should keep your things compact or spread out
A framework it absolutely agnostic in that area
its all up to a developer
and how he implements it
And there is no rule saying "you are using react, you are supposed to have only two files"
@KamilSolecki well, react is
vue is mostly agnostic, and sometimes everything is in a single file for example, but there's a heavily preferred way to do it
angular has a standard set in stone
09:18
Hey, sorry to intrude ! Do you guys happen to know if there is a meta chatroom somewhere? I want to get someone else's view on a behavior on StackOverflow, but I don't think opening a question on Meta is necessary
you can contact a mod if you'd like
or ask anyone else for your opinion
the topic of this chatroom is fairly flexible
@Zenoo I'd suggest you contact a mod first
cc @MadaraUchiha
I don't think annoying a mod with this would be wise. I'll just put this on here then : I just answered this question stackoverflow.com/questions/48923266/… by linking a plugin I created a while ago. Like said in my answer, I don't like linking my own stuff, but in this scenario, it actually solves his issue
The question is : Did I do this the right way?
Or should I restrain from linking this in the future, since I created it
that's valid for a meta question
cc @MadaraUchiha nvm
Alright, I guess I'll ask on Meta then
09:24
@Zenoo thats exactly what mods are for - solving problems
09:34
I'm also trying out vscode again, because that's what most people use at that company
I'm not getting rid of vim bindings, but they're so unsatisfying :/
there's a slight latency which means I need to slow down the normal mode commands
this might also be the time I get rid of i3 :/
and at that point I might as well switch to mac
something feels awfully wrong about that
@towc wait, you got a new job?
well, I'm preparing to apply for a new job
either way, I think they'd train me and give me a new laptop themselves if they thought I had potential
@towc as a...?
you'll get a laptop if they hire you
that's obvious xP
I genuinely don't know if I have no chance at the job or if I'm overqualified :P
except they use desktop PCs
@towc what's the position?
09:49
@Neoares universal judge of whether arbitrary pieces of matter have personalities and emotions
lul we're together then
you arbitrary piece of emptiness
@Zenoo IIRC there is a meta question about that already
51
Q: How do I mention my own products in answers?

Leigh Caldwell Possible Duplicate: How can I link to an external resource in a community-friendly way? Twice now I've seen questions on Stack Overflow where one of my company's products might provide an answer to the question. One was a slightly vague connection about object-relational mapping, but ...

How do I force chrome to update its dns ?
threaten him with a knife
check chrome's internals
chrome://net-internals/
it has a DNS sub
@BenjaminGruenbaum is there something akin to replaceObservable which would replace the entire contents of a mobx observable object?
click on the button there
extendObservable doesn't work since I'd like it to remove properties as well.
10:24
Does anyone know how to set default image for this croppie demo? joxi.ru/E2pv9Qjf9PKYYr
Spending too much time on Google did not help me as well :(
@MadaraUchiha assign to the observable? Although really - why?
Can any of you open?
Don't authenticate
just test
I don't know what application is taking over a binding and I'd like for it to stop
HAMMERTIME!
ctrl+` is supposed to toggle the internal terminal in vscode, but is showing the history of the notifications
10:38
@BenjaminGruenbaum I'm exploring making some of the flux stores observable
It requires deleting properties when new state is returned without them
@ndugger you may like this
I'd like to avoid diffing myself, that defeats the purpose
@towc that's an OS specific shortcut
on Linux
if you are using Gnome or something else might still have the shortcut
got in the middle of something, disregard my question
xinput told me that it triggers a NotifyGrab event
but I still can't find where that's from
in the meantime vscode crashed
to cycle through windows
10:42
and I can't completely kill it
tskill ? kill ? Sig int ? Throw the laptop out the window ?
oh, and my laptop suddenly killed itself
towc tries linux part 2
is there a nicer or shorter way to do this?
if (!obj.hasOwnProperty(key)) {
    obj[key] = [val]
} else {
    obj[key].push(val)
}
Why do it at all?
10:48
because I need the result it produces?
:/
that's just a part of a function :P
obj[key] = obj[key] ? [ ...obj[key], val ] : [ val ] maybe
you can use short circuits, but those are usually sad
that's ugly
and soulless
obj[key] ? obj[key].push(val) : obj[key] = [val]
obj[key] = [ ...(obj[key] || []), val ]
so basically change hasOwnProperty by obj[key]
an array always booleans to true
10:52
it'd still use hasOwnProperty because it'd be more readable
as long as you can guarantee the value is either undefined or an array, it will work
rather than obj[key] ?
obj[key] = (key in obj)? obj[key].append(val) : [val];
^ that's nice
I think vscode is really messing with my laptop
10:53
@BenjaminGruenbaum btw why append instead of push
Because it's part of an assignment?
last time I used vscode a few months ago, the hard drive got corrupted and became unusable
this time it's restarting the laptop every so often
might just be a coincidence
but arrays don't have append
Sorry, .concat
Have been doing python all day
@BenjaminGruenbaum uhm, that would work if val is an array containing... val
but it's not
I think you're tired
10:57
if (!obj.hasOwnProperty(key)) {
    obj[key] = []
}
obj[key].push(val)
thats nice
@towc you can concat a value to an array...
TIL
@KarelG that's very readable man
!!> [1,2].concat(3)
10:58
@BenjaminGruenbaum [1,2,3]
huh, that's kind of confusing
if key doesn't exist, initialize it it with empty array
then always push the new object
he might not want that behaviour, but sure
omg so concat is great for really smooth flatteners

« first day (2686 days earlier)      last day (2486 days later) »