« first day (2172 days earlier)      last day (2779 days later) » 

5:00 PM
who's mcgregor?
 
a dank memer
 
and what did he do?
 
Some UFC tool
 
he memed dankly
 
@ndugger daaayumm
that's enough to put you away for life
 
5:04 PM
Cheers windows
 
damn @BenFortune why do you hate him so much?
 
@Loktar He's like a petulant child
 
he's behind all of the windows 10 updates
 
5:04 PM
@ndugger LOL
 
scott manley finally got to it!
 
ohh I forgot about this
 
@rlemon or junk hair?
 
you ever seen a inner thigh that hair-free?
and that skinny
 
ye, it was on ur mum
#kendall
 
5:17 PM
it's unlikely but not implausible
 
omg @SterlingArcher i.imgur.com/aoqpEx4.jpg
 
omg @SterlingArcher
 
omg what
@rlemon lmao don't fuck with the dragonballs man
 
5:34 PM
don't fuck the dragon's balls
 
!!s/all/ead/
 
@rlemon don't fuck the dragon's beads (source)
 
convention question... do you guys usually put library based css classes first or last in your markup?
like bootstrap classes, etc
vs internal css classes
 
First. My main css file (.less) imports bootstrap variables, then overrides some variables, then the rest of bootstrap, then my other stuff
 
5:41 PM
^ that
overrides are important
 
right, yeah... talking more about the markup itself
like in say a react component
in the attribute
<button className="btn btn-default derp">
sorry, was unclear
 
ohh. I use (mostly) just one css package for my app. But.. in a few cases I just import './some.css'; in a react component and that gets put in the header by the webpack loader
oh, in the attribute.
I'm not sure if order matter or not there..
 
right, yeah.. jesus I should have prefaced... that's not a question people usually ask, sorry
 
but usually the 3rd party classes before my own
 
it's more for readability, but that tells me you don't see people caring much
ok, cool...
I'm on my own right now and there's a team coming online in a week or two
 
5:44 PM
fuck you i care! :)
 
just trying to keep the wtf's to a min
haha, god... I'm batting 0 today
I mean people don't worry about it that much
 
j/k :)
 
I'm only privately judging, just made a little note ;)
so cool, lib classes first is what I was thinking too
 
Hi everybody, I just wanted to ping to see if someone can point me just a good way to manage in JS multiple group of input with same name

destination[0][name]
destination[1][name]
destination[2][name]
 
Question: if I have a method void sum(int a, int b) {
 
5:47 PM
I want to detect onchange of

destination[0][name] destination[0][name2] destination[0][name] destination[0][name3]
 
@Jonathan Lafleur, are you using jQuery?
 
I can @Shane :)
 
or just raw elements
 
And in the method, I create a local variable called String str = "hello"; - where is the object and where is the reference stored - stack v heap
 
@TheCoder That appears to be Java, not JavaScript, fyi.
 
5:49 PM
I'd just use a for loop, but wrap the group in a function so you can unregister the listeners if you need to
 
I'd use event delegation.
one event handler for all
computer rebooting to install updates, be back in a bit
 
@Shane i do library classes first, and then my own
 
cool, that's 2 for 2 so far... thanks
 
just pick one and stay consistent
 
@JonathanLafleur, do you have a fiddle or a codepen anywher?
 
5:50 PM
@Shane I was thinking about using jQuery with onchange event, let me make a fiddle will be easier to explain myself you're right :)
 
@bitten - yeah, consistency is usually king
cheers man, fiddles are so much faster
codepen.io is great too
my personal favorite
it's real-time
 
@Shane @rlemon smiles down on us
 
and less trouble than plunkr
 
realtime is terrible when you're writing loops
 
we have the blessing of rlemon?
 
5:52 PM
I can't even count the number of times codepen has froze up on me while I was in the middle of writing a loop
 
not so bad for tiny ones like he's doing though
oh, big ones, sure
 
no, jsut any loops
 
I get the impression there's just a few since he's using inputs
 
because it tries to run it while it's infinite
it's garbage
 
huh, haven't had that problem so much when it's just 3 or 4
 
5:52 PM
@Shane with a mindset like that, of course
 
@bitten - on the attribute convention or codepen?
 
@Shane on convention
 
ah, cheers
shitty convention drives me nuts
or rather inconsistent convention
I have like, zero short-term memory and everything just starts to fall out of my head
 
@Shane look into eslint, things like that
 
yeah, we use that
 
5:55 PM
they let you define some rules, and forces you to stay consistent
alright ^^
 
and what's that other one... .srchc or something
can never remember the extension name
but it's for coding style in particular
there's the beautifier configs too, those things are really awesome
 
editorconfig
and eslint
should be your best friends
 
.jsbeautifyrc < ever used that one?
 
@Shane here it is :) jsfiddle.net/wy1p5b2m
 
@bitten those are not smiles.
don't open your mouth
 
5:58 PM
damn son, i thought we'd have your blessing
 
You looked like a slide.
 
I think he's saying his blessing isn't what you thought it was
 
Yup.
 
fortunately I'm a 3 hour drive for him
@JonathanLafleur one sec
 
@Shane i'm working on it to add the on change handler
 
6:01 PM
@Shane it takes you 3 hours to get from TO to KW?
are you walking?
hour twenty, tops
!!afk why the fuck does this have to be so hard for me :(
 
ah ok, used to nasty traffic
@JonathanLafleur - this gets you halfway there jsfiddle.net/wy1p5b2m/1
I didn't realize you had change handlers in the html itself until I saved it
but if you remove those it should get rid of the errors
 
my ISP is also used to nasty traffic.
 
@rlemon I used to drive from whites / 401 to oh god... what's the name of it...
 
@Shane good let me modify it to see )
`)
 
what the hell is happening to my mind... missisuaga
 
6:04 PM
:) com'on keyboard...
 
Mooseville?
I was close.
 
and it took anywhere from 45m to an hour and a half in rush hour
so that's where I'm getting 3 hours, rush hour
only time I made the drive
google says 1½ from brooklin via 407
 
The worst is 400 towards Toronto
 
@JonathanLafleur I'd set that up differently if I was going from scratch, but I just wanted to show you the loop assignment
 
Fuck that hell road
 
6:07 PM
400 is worse than 404?
I always heard the "Don Valley Parking Lot" was the queen bitch
 
Yea. Torn up, no lanes, no lights
 
oh good
 
@Shane okay, let me a couple of minute, I try to make what you sent me do work, even if I remove the onchange html I still receive error
 
@Luggage dude
 
400 by Barrie is the absolute worst imo.
 
6:09 PM
?
 
@Shane and as far that I understand your code is not intended to do what I need, let me put my "better" version and maybe we'll understand both better :)
 
hold on, I missed something
fixing, all in now... haha
no more skimming
you want to track the select box by the class name?
something like: event.target.className.split(' ').pop()
I don't see Id's on the elements
that would probably be better
if you use class names, you'll have to watch your convention closely and make sure it's always the last class
 
I don't want to use ID since it will be dynamicly generated
what I want is to populate same "group"
 
instead of className, I suggest the name attribute.
or a data-* attribute.
 
^yup
 
6:16 PM
yes please; do not store dom information as a class
realistically, we shouldn't be storing any extra data on the dom, and use elements as keys in a WeakMap
maybe not realistically
but still
 
aight, well I've googled my heart out (again) and I still cannot win...
iptstate -D 22 lists:
<myip>:51215
netstat -a lists:
127.0.0.1:13211

I know these are the same physical device/connection (it is my ip, and I ssh in on 13211) -- is there a command where I can see (from the remote) <myip>:13211 or is there a table to map the :51215 to my :13211 ???
thankyou in advance sir
 
@ndugger meh. data-* attributes are good enough.
or dataset property.. i think it is.
 
Not if you need anything more than a string, and if you're storing JSON on the dom, you should be ashamed of yourself
 
I think he/she just wants to label some inputs to differentiate them
he.
 
Just because something is "meh, good enough" does not mean you should whip it out and scare the children
 
6:20 PM
@ndugger yes I was thinking about data too, but since i'm not storring any data, only using the name for the array (to retreive via php later on form submit) and using class to attach the on change event..
 
The children aren't scared until some parent comes along and makes a big deal about the whole thing.
 
true
 
haha
added the attribute to the first one
you can follow the html convention for the rest
might as well pull it out of the classes, many of those, "just going to do this for now" end up in regrets
 
I don't think it will acheive what i'm trying to do :| ... Look at this, maybe there's better information : jsfiddle.net/wy1p5b2m/2
I still have a JS error, searching how to call my getLocationFields inside of the class -.-
pouhahha, just seen your code :P was pretty easy to call inside the class... jsfiddle.net/wy1p5b2m/3
 
yeah, just call it :)
inside the class it's just a function, not a node on an object
 
6:27 PM
I tried with this.methodName haha :P
 
right, yeah I don't usually use prototypes that much
tend to stick with plain objects
anyhow, gotta get back to my thing, good luck!
 
I usually don't do JS that much :P i'm more into servers, bash / php / python a little bit
Thank you for your time @Shane :) even if I still have no answer to my initial question:P hahaha
 
still not sure I understand what the original question was
 
Have you looked at my comments in the JS code ? :P
When you choose a Continent, I need to populate country
but I want to populate country with the same "index" has the continent selected
destination[1][continent] need to populate destination[1][country] but I don't want it to populate destination[2][country]
@Shane ^
 
honestly, how effective do they think this sign will be?
 
6:35 PM
haha @rlemon
From what i've read, this name[] convention is only used by PHP, so I will need ugly split to get that index and work that out..
 
I've seen it other places.
using some "path string" inside the name attribute is common.
 
@JonathanLafleur - what I'm saying is... I don't understand the relationship between the select boxes and the data you'll be using to populate them
 
The data will be fetch from the db depending on the continenent
I will not put Washington if you ask for Africa :P
 
I'm assuming on select for some of the elements, you'll need to make a call to a server, connect that response to an element, populate it and chain selection / responses until you reach the final level
without those response signatures, mocked or directly retrieved it's hard to know what you're really asking for
 
6:41 PM
@Shane sorry maybe I was not clear :) but I think I found a way with my split
I made some lecture while talking with you and finaly found that JS don't handle this model of name
 
you mean bracket notation?
 
Dammit I've gotten so much work done today
 
like myObject['nodeName'].value?
 
I'm on fire
 
your productivity is on fleek
@Shane why would you unnecessarily use bracket notation for one property, and then dot notation for the next?
 
6:45 PM
You said fleek, please don't ever talk to me or my son again.
 
your son is on fleek
let me take a peek at your fleek
 
@Shane when it's done i'll tag you ;)
 
@ndugger - just showing how the notation can work
 
@SterlingArcher not me :(
I'm stuck :(
 
kind of hoping the answer is no as I've been working on this for 2 days now... but does anybody know of a react component that does all of this in one go?
found a bunch of things that almost did it, but nothing that handled drag and drop + image cropping + uploading
 
6:50 PM
@rlemon I had to fix a broken feature on my D3 graph displaying systems and dependencies. When you click one, it removes it and recalculates some things. That part was broken. Was a major PITA to fix
 
32 mins ago, by rlemon
aight, well I've googled my heart out (again) and I still cannot win...
iptstate -D 22 lists:
<myip>:51215
netstat -a lists:
127.0.0.1:13211

I know these are the same physical device/connection (it is my ip, and I ssh in on 13211) -- is there a command where I can see (from the remote) <myip>:13211 or is there a table to map the :51215 to my :13211 ???
google-fu is failing me
hard -- all day long
 
@rlemon damn, looks tough
why not just do a butt load of greping?
 
@Shane I'm not aware of any react component that does this, no. There are non-react libs for this, though. I think.
 
what connects them @bitten
I can't find the linkage
 
k, cool... hoping I didn't waste two days on something I could have just plugged in
we're pretty bound up in redux, so I need a pure react solution
 
6:52 PM
Nevermind, there are react libs for it
lol
 
@rlemon yikes, I have no idea what most of that even means
 
@SterlingArcher neither do i
 
ha, shit
love that when you check something in you just busted your ass for and somebody says "why didn't you just use ..."
 
@rlemon the ip? i don't really know, i would just hard code it all as i don't know if you want it dynamic or not
 
6:54 PM
Hey guys
 
didn't look at that tag, but most of the ones I found had some caveat
 
whats up
 
@bitten yea, I don't think you understand
 
like not being able to lock to an aspect ratio or something similar
 
Redux is garbage, but lookit this react.rocks/example/redux-cropper
 
6:54 PM
no i don't D:
 
I'm trying to line up known ports and unknown ip addresses from N number of ssh sessions
 
ah, damn... didn't see that one
why is redux garbage?
just too many files everywhere?
dispersion of logic around a single component kind of thing?
we use a design pattern I'm told is called "ducks"
 
Hello Javascript maestros, I wanted to ask a quick question. Linked to my superuser question <https://superuser.com/questions/1128454/how-to-track-program-unresponsiveness?n‌​oredirect=1#comment1615888_1128454> I was wondering if Javascript would be a suitable language to accomplish my goal of crating a program that will track program unresponsiveness.
 
@BobtheBuilder Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
where dispatchers and reducers, etc are put in the same file around a component rather than a type of function or what not
 
6:57 PM
@CapricaSix Umm, the question is the question?
 
@Shane Too slow and overcomplicated architecture makes state hard to reason about
 
@BobtheBuilder that's a bot, automated message
 
@Shane also putting all of your state in one global store is messy
It's a code smell, in my opinion
 
yeah... you might be right
 
@rlemon have you tried superuser?
 
6:59 PM
not yet
 
I'm on the fence, but I'm pretty sure events / stores haven't been "nailed" yet
 
googling firs t
 
@shane .... I can see how that can be seen that way. I actually copy pasted my message from another chatroom..
I'm guessing I shouldn't do that?
 

« first day (2172 days earlier)      last day (2779 days later) »