« first day (2823 days earlier)      last day (2143 days later) » 

12:03 PM
is that confused human high-fiving a giant frog?
 
hey, since nobody answered my question on masonry I figured I'd ask here
 
@LiRa Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
@towc No, those are just characters in a chatroom
 
1
Q: Is responsive masonry with VueJS and Bootstrap Tabs even possible?

LiRaI'm using VueJS to render dynamic components with variable height in a "masonry" layout, but this often produces ugly spaces when the heights don't line up perfectly. I was hoping to use a library to handle this, but, unfortunately, the tab component's width is variable as well, which means that ...

 
What are you smoking?
 
12:04 PM
@Neil which one of us is the frog?
 
@towc I suppose the one that isn't high
 
12:15 PM
This is a huge misjudgement.
I got ban just for saying "idiot" while they said more than that like "troll","idiot","fool"
Also he even said "We have a kid to play with" as a sexual reference
and yet no mod did anything to them/him
I'm not proud of being in this room if misjudgement is the norm here.
 
12:35 PM
... wat
 
@Cerbrus chat.stackoverflow.com/transcript/message/43187495#43187495 was flagged when I got in the room...But I dont see the "kid as sexual reference"
 
@Cerbrus he got flag kicked
 
Reading back, that makes sense.
 
He removed the comment but mods have already seen that but they didn't do anything to him.
That is very unfair if you ask me.
 
Okay...
Let's drop the subject.
If you have a problem with how this room works, please submit an issue on our issue tracker
 
12:40 PM
Okay thanks.
 
12:52 PM
13 messages moved to Trash can
 
Wait
You can remove other mods' messages?
 
it is a chat message like usual
 
They're just chat messages
 
Ok then.
 
And I'm not a moderator. I'm only a room owner
 
12:53 PM
I thought it is like Discord
 
Moderators have blue names, room owner names are italic.
 
Why would you remove my message?
 
Because he already said the discussion is over.
 
It's a very insightful policy that you should definitely read up on.
 
It was redundant.
 
12:54 PM
You're redundant
 
No you're redundant
 
says the italian whom has to pay for his own coffee at his own work place
 
Sigh ... itsa my coffee!
 
got your daily dose ?
 
We have an expensive coffee bean machine
shit's so cash
 
12:55 PM
@KarelG Actually, I did get my fix, thanks for asking
I'm good until tomorrow
 
We have a Tim's on every corner
 
@BenFortune Well duh.. if it's made from cash, it's gonna be hella expensive
 
@BenFortune those with bean holders and it grinds directly when you press one of your coffee selection?
 
@KarelG Oh yes baby
 
same here
 
You can even connect a tube to a milk can for a nice cappuccino or caffe latte
 
Yeah, it's got a built in frother
and milk fridge
 
hmm I need to check that one at the work place
 
I'm guessing that tube is going to be vile if no one cleans it after a week
 
@BenFortune ha. I have the previous version
7 instead of 8
so funny
 
1:01 PM
:D
You can buy a bluetooth adapter for it to make coffees remotely
 
Is there a way to configure ESlint to use the global configuration instead of the locally one?
I'm trying to find a solution hours ago.
 
that seriously reminded me to that terminal guy whom wrote a script to make a timed coffee when he needs one
 
I have that starred, hold on
 
I hope it checks that there isn't already a coffee then
 
1:03 PM
@KarelG I admire him already
@BenFortune I had a T-shirt which said "Go away or I will replace you with a very small shell script"
 
that first one inspired me. There is a script on the company server that sent a sms to my GF (i am single now) when I have to work longer
so handy
 
@Neil nerd
 
I wish I knew where it was
 
hello guys, I just wondering, what's the benefits of lodash and debounce?
in handling api request?
 
I used to use debounce a lot on resize or scroll listeners
not sure how it would be useful when handling api requests though. Do you have anything particular in mind?
 
1:17 PM
lodash is utility library... debounce would be to pause between observable inputs.. are you doing polling?
 
@jsonGPPD you can see lodash as an utility package, containing methods to shorten the code or preventing re-inventing the wheel
 
I think he is asking about the debounce function of lodash, right?
 
could be
 
when using this answer stackoverflow.com/a/51221263/127606 here: runkit.com/5a7af2d1bd09580012f31fc2/5b43584ff93f080011766477 i have issues where AJV's validate is identifying as a function and applying itself causing the function to lose data
 
Hi
i am facing an issue related to jquery
any one here?
 
1:20 PM
Is there a way to configure ESlint to use the global configuration instead of the locally one?
I'm trying to find a solution hours ago.
 
hello john
just ask your question
 
is there something better i can do, instead of writing a list of "functions" to not apply to?
 
$('#company').next().siblings().next().siblings()[1].children[0]
 
@Jarede what do you mean?
 
by using this i am getting <li class="opt"></>
 
user1596138
1:21 PM
@Boypro I found the answer in 5seconds googling with your message
 
i just want to add one more class dynamically with class opt
 
user1596138
!!tell Boypro lmgtfy ESlint to use the global configuration
 
I tried that solution
 
1:22 PM
It didn't work
 
@john Ok, siblings here is probably doing something you're not expecting
 
user1596138
Well that is how it works :P
 
@john jQuery has an .addClass() functionality for that
 
$('#company').next().siblings().next().siblings()[1].children[0].addClass('selec‌​ted')
 
ah that "selected" is a different thing
 
1:23 PM
i ma doing like above but does not add class
 
probably because of your selector
 
@Boypro change line 39 to remove && prop !==
 
@Boypro where do you have your global configuration?
 
why do you not query the parent <ul> and select the xth child ?
 
1:24 PM
i have tried by getting <ul> but could not succeed
".addClass('selec‌​ted')" this does not work
 
user1596138
@john This is so brittle
 
user1596138
Best find a differetn way
 
@john you've got a nice mix of jQuery objects and elements there.
.siblings()[0] <- returns a HTMLElements
 
what does .next().siblings().next() even do?
 
.addClass is a jQuery thing
@GNi33 redundancy :P
 
1:26 PM
.
 
it makes no sense to me
 
@towc and you are free to not egg him on anymore
 
@towc stop stirring stuff up, I'm serious
 
ignore the user
 
@towc what @rlemon and @GNi33 just said...
 
1:28 PM
sorry for this but i am beginner and i was trying it by many things
but could not succeed
 
10 mins ago, by KarelG
@jsonGPPD you can see lodash as an utility package, containing methods to shorten the code or preventing re-inventing the wheel
 
@john have a look at what .next() and .siblings() actually do
 
if you could help me i shall be thankful to you
 
what do you mean sir @KarelG by preventing re-inventing the wheel
 
these methods in combination make no real sense
 
1:29 PM
but besides that, he's mixing jQuery and non jQuery
half way into the chain he returns a HTMLElement
not a jQuery object
 
yep
 
@GNi33 ok got it and sorry for my this try....but i am looking for solution for this
 
no need to be sorry
 
unless you're Canadian
 
but you should definitely read the documentation for the methods you're using and try to understand them
 
user1596138
1:30 PM
@john copy the html structure out somewhere and we can show you how to make a proper query
 
this is a big part of problem solving that you will need to get comfortable with
 
user1596138
Otherwise we can't help lol
 
@jsonGPPD assume that you have an array of arrays as an argument in a function. In order to work with it, you want to flatten it. Either you write a function that flattens the array for you or when the project is using lodash already, you can simply do _.flatten(urArray) to flatten your array.
 
i am using sumoselect plugin for dropdown list but i want to add custom functionality in plugin to select all list item or select only one item
 
split your problem up in small sub-problems and tackle each one at a time. And one problem you have right now is that you seem to not know what the methods you're using are doing
so I'd start there
 
1:32 PM
like a screwdriver. There is no need to create a screwdriver for a specific screw if there are already such screwdrivers in the store. You just get it.
 
after seeing that jquery call chain above I feel like everyone should just be using react instead
 
ok thanks you all friends...i will explore about methods used in it and will try some other solutions for this.........could you please tell me any dropdown choosen plugin name which can select only one item or all item but not 2 3 items...thanks
 
user1596138
@ThiefMaster Can't imagine what that would've looked like lol...
 
@ThiefMaster meh... "moar react!" isn't a meme though... or are you thinking of starting one? :)
 
next().siblings().next() should select all but the first sibling
the first next being useless
unless there is no next element, which would leave you with an empty collection
 
1:40 PM
Oh I understand and what does the time like 500 or 1000 at the end of lodash means? sir @KarelG
 
"at the end of lodash" ?
 
please check this screenshot prntscr.com/k4bfc1
 
is it always the first child that gets the selected?
 
Or by any ramdon selected opt?
 
@tesshsu Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
1:48 PM
@KarelG @tesshsu i want to add class in all opt
i will click at "Select All" check box and it will add class "seleted " with all opt classes
 
I see, what you could do here: 1 Create an html button called selectAll
 
user1596138
why would he make a button, he's got a checkbox
 
I see, so should be use this check box to create an clickEvent
 
user1596138
 
I mean like this @KarelG _.debounce(function(){},500);
 
1:54 PM
@john then just do $('select the parent ul').children().addClass('selected');
i am not sure if that <ul class="options"> is unique
it is best to add an ID to your multiselect
helps the selection a bit
 
user1596138
querySelectorAll('.options .opt').forEach(el => el.classList.add('selected'))
 
user1596138
These are such basic solutions I question whether we understand his question
 
that is a js solution. Yet let's stick with jquery if he uses jquery :P
 
user1596138
Um
 
user1596138
Wow haha....
 
user1596138
1:57 PM
> Use IDs! Now use jQuery! - KarelG 7/9/18
 
well no
using id's is good advice, and sticking with jQuery if you're already using it isn't bad advice.
 
eh jhawins, you know my opinion about jquery
(or maybe not :P)
 
@jone,<p class="select-all">...</p>, could you open this ele to show what the tag inside?
sorry @john
 
@jsonGPPD difficult to explain debounce because you have to comprehend it very well if you want to use it precisely. It is the timer that fires up the function call if there are no new event trigger during that period. Assume that you have .on('click', _.debounce(doFoo, 500)) then doFoo is only called if you did not have clicked the button in that 500ms timespan. Assume that you keep clicking the button,
doFoo is not called (each click within 500ms resets the timer) unless you stop with clicking in that 500ms timespan
 
How do I create a completely empty object free from the object prototype methods
 
2:07 PM
@Joyceobi Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
@Joyceobi Object.create(null) iirc
 
I'm looking for a new laptop for work. Anyone have any recommendations?
 
@rlemon Is there any downside to using this method that I should look out for?
 
it's confusing
not much, but a little
would make me question why it is needed, if it isn't 100% apparent in the code itself.
 
@Joyceobi Not to be rude, but if you drop that exact question into google, you'll get the answer you need.
 
2:11 PM
@Cerbrus I tried but am getting confusing opinions. I want to make sure that any key input from user will not generate error.
 
what is wrong with just {} ?
 
obj.hasOwnProperty(key) && obj[key]
are you trying to avoid doing this?
 
@KarelG toString, watch. Depends on what you do with the object of course
 
@john, this might be similar your case: jsbin.com/fejudaqaha/edit?html,js,output ?? if you are using pure javascript, anyone could fixed it I'm just writing a draft
 
I remember having found a fun bug in socket.io preventing you from using "watch" as an event name just because they didn't use Object.create(null)
(wasn't fun to debug)
 
2:21 PM
that case is an exception ...
not regular use
 
well, using objects as dictionaries is common isn't it ?
 
tbf I even add .toString if I use object.create
 
@DenysSéguret sure, but so is .hasOwnProperty
 
.toString should never fail IMO.
I abuse it to describe the object
 
I agree it is a problem, but one that was solved a long time ago
 
2:23 PM
hasOwnProperty is the wrong solution, when you want a simple dictionary. The right solutions are a Map or Object.create(null) (depending)
 
2:44 PM
ohhi
 
hi
 
3:35 PM
@BenCraig I have a dell lattitude 7480, I like it
 
How heavy is it?
 
I have no idea
 
@BenCraig you could use a workout. get heavier if you can
 
shush
 
3lbs
 
3:38 PM
oh thats pretty light
I was originally looking at the dell inspirons, since they were on sale, but the one I was looking at was 7
 
I never understood that.
you wear a 80lb backpack for 12 years, then all of a sudden a 7lb laptop that is 99% of the time sitting on a desk.. is too heavy
 
I had a clipboard with a dozen sheets of paper, thats all I ever brought to class
an 80lb backpack would literally crush me
 
well 80lbs was an exaggeration (or maybe not. it was bad when I was a kid, and apparently is getting worse)
but my point still stands.
 
I know people who had 3+ textbooks and a computer, it was insane
 
you are probably wearing ~7lbs in clothing on most days.
 
3:43 PM
you're right though, 7 isnt really that much
Theres better things to be concerned about with a laptop than its weight
 
that's my opinion.
if it has everything I want and some, but it is like 12lbs. I don't care about that 12lbs.
I carry it to the car, into the building, then back into the car.
 
I do walk to work, so it might matter a bit
 
4:03 PM
@rlemon kids probably have more flexible bones or something
Or - your issues carrying a 7lb laptop is because your back is screwed from 12 years of carrying 80lbs on your back :D
 
4:47 PM
Hi all, I am using react with meteor-blaze but when I add react component I get error in console saying react component argument missing.
 
Oh god, you're using meteor?
 
@SterlingArcher Why meteor is out dated ?
 
I mean... it's still supported (but not very well), but I used it for over a year at my old job and it was just nightmare after nightmare
 
I am familiar with Reactjs can you suggest some good backend for react ?
 
Granted the original developer made it with 0 standards of whitespace and comments... meteors flaws were easily exposed after that. Slow, minimal community experts, and SSL was an absolute nightmare
@stonerock well, meteor is an environment on top of node. Node is a great backend, but meteor traps you in versions of node, so you can't upgrade unless meteor upgrades (you can use external node, but it's a hassle)
We just use react and node here at my job now
 
4:56 PM
Ok currently I am working as frontend intern and I am converting existing blaze code into react components. I have spent entire sunday finding out how to add react component within blaze template. Any idea how to add react component within meteor-blaze
 
user1596138
@BenCraig 7lb too much?
 
I am small
 
user1596138
That is a bit
 
and weak
 
user1596138
My couple years old gaming laptop weighs 7
 
5:07 PM
I feel judged
 
user1596138
I usually have it and a work laptop in my bag at the same time
 
user1596138
Oh and a auxiliary 15" USB 3 monitor
 
user1596138
2 controllers.. Hammock.. Emergency supplies..
 
user1596138
Easily 20-25lb
 
user1596138
I also walk to work. I walk from my bedroom to my office room ;P
 
5:10 PM
That doesnt count as walking to work haha
 
user1596138
I pretty much take all of that everywhere I go except for small errands. Just in case I need something. But yea it's usually only carried from car to a building and back
 
5:20 PM
If there is a global new Vue({el: '#app'}) declared in a js file referenced in html. How can I add a global variable to it e.g inside a script tag?
I want to achieve something similar to new Vue({el: '#app', data: ... declare variable here})
 
data: foo = {1,2,3}
foo will leak and be global
and assignment returns the right hand
but this is generally regarded as terrible and you shouldn't do it
 
What I meant is declaring a new global reactive property. <script src="file_where_vue_is_declared_and_bound_to_#app"></script> and in a new script tag declare a reactive property that can be referenced in v-if etc.
 
ohh so in one file you have new Vue(....) but in another file you want to modify how that constructor is run?
 
basically add new variables to data: {}
 
unless Vue exposes a way to expand that, you can't change the constructor after it has been run
 
5:35 PM
I guess I have to stick with the right way and declare a new component :(
 
Oh actually there is a Vue.set method.
 
@rlemon If possible can you please help me here -> stackoverflow.com/questions/51233621/…
 
please don't randomly ping active users
ask the room as a whole, and see if anyone bites
 
So sad this project is more or less ded - github.com/node-ffi/node-ffi#node-ffi
I had the node addon api it restricts lots of things that were possible
although bad ones :P
 
5:48 PM
Oh ok sorry rlemon
 
@ShrekOverflow seems pretty cool. I once made a binding between PHP and CLI assemblies. Pretty fun but not very practical.
debugging can be quite difficult.
 
@someone I have enough C++ / C / Rust / Java debugging experience
I can take it
@david how is Auth0 ?
 

« first day (2823 days earlier)      last day (2143 days later) »