« first day (2757 days earlier)      last day (2205 days later) » 

12:24 AM
How conflicts arise in work place or else where.... youtu.be/rmkQ_wAgwXo
 
12:42 AM
@overexchange I'm pretty sure 90% are over how crappy animation can be in react lol.
Or whether or not to use stateless functional components
 
12:53 AM
morn
 
@William Oh it's your site man :P
that's cool to add different videos imo
 
@Loktar may I borrow your hammer? stackoverflow.com/questions/50165704/…
thanks bro <3
 
1:10 AM
2.9
 
1:34 AM
@IanC The idea is to raise awareness for things
as long as it gets that done it is all good
 
news flash, i was already aware of passwords
 
@ShrekOverflow yeah, I get the idea, I just think we are overdoing this a little (making days for things)
I actually wasn't even aware there was a password day until google showed it in that lower bar :p
 
 
1 hour later…
2:45 AM
0
Q: javascript 'this' is determined by call-site

Isaac LemReading the book You-Don't-Know-JS and trying to understand the concept of this. this is actually a binding that is made when a function is invoked, and what it references is determined entirely by the call-site where the function is called. And I came across the below code: function a() {...

> this refers to the global window object and your myVar is declared in that global scope.

Thus this.myVar is acutally window.myVar
buddy no D:
 
@SterlingArcher buddy yes?
 
user3956566
fwiw this is relevant to your room.
 
3:34 AM
Relevant is kind of an understatement considering it appears as if it's targeted toward this room.
 
!giphy john travolta confused
 
4:04 AM
or even a separate room
 
user2620028
4:26 AM
jesus christ more of this crap
 
user3956566
@HatterisMad relax, I'm actually trying to help you. They're implementing harsher penalties on chat rooms. and believe it or not, I'm trying to help you. It's not me who's your problem. It's the way things are headed and I'm trying to help you to keep your culture without the negatives
 
user3956566
@littlepootis cc ^^
 
user2620028
@YvetteColomb is this a royal 'you' or a personal 'you'? because you don't know my stance on anything yet as we have not spoken
 
user3956566
@HatterisMad plural you. As the room is getting focus. I dunno who is who here and don't really want to stay here. I'm trying to help. But maybe I'm misguided. I think it would be a shame for some rooms to end up deleted for the sake of refraining from making ceratin types of comments. anyway I'm copping it on meta now - so I think my intentions are either being misinterpreted or are just not helpful
 
user3956566
I'm going now, I have to do some things offline
 
user2620028
4:32 AM
i don't come to the javascript chat room for the culture, I don't fully appreciate the culture that has come out of the chat room being a part of stack overflow. I have loved stack overflow in the past, but i don't think it is conducive of housing chat rooms.
 
Meh I come to talk to friends, with a side of gaming/3d printing/js talk. Honestly I'm just looking at what I say and thinking if it's something I'd want my kids to hear. If not no reason to say it in the chat. tbh I do think it's something we could all live with.
Remember it's all public/google indexed as well, so there should be a level of self awareness anyway
No one can stop someone from being offended, but people will look really silly flagging something that's not disrespectful, and doesn't include profanity
Also @FlorianMargaine @KendallFrey and @rlemon wherever ye be, happy friday!!
 
user2620028
Exactly, I come here to talk to my friends. Occasionally I will help someone if they need it and wander their way in here. But unfortunately this chat is being hosted on SO and THEIR culture is changing and it is having fallout on our room, not the other way around.
 
i'm mostly here for js questions, but it's frustrating seeing regulars continuing to do shit that gets flagged. like, I disagree with this whole welcoming push, but it's here to stay, deal with it. it's one thing to kick/deal with trolls.. but when it's the people who are here every day contributing? i mean...
stop
 
HAMMERTIME!
 
user1731387
5:03 AM
how do i change src in responsive
 
user1731387
?
 
K
 
user1731387
specially in 640?
 
Can somebody give me the weird part of javascript question or understanding those part which might come in handy
 
like, change img src responsively? eh, maybe there's a different approach you can take?
changing img src would require js, where as if you did background image you could change it with css alone
 
5:18 AM
@SterlingArcher having read the relevant transcript I stand by my earlier assessment :P He doesn't represent us.
And you did handle it well :)
 
5:34 AM
how to search a value in nested array of object?
 
Use .filter
 
does .filter works for nested objects?
 
What's a nested object?
.filter works on arrays, not objects
 
{

"id":"1001",
"make":"Siemens",
"motor":"IE3",
"pole":"2Pole",
"kw":"0.37",
"frame":"71",
"rating":"0.5",
"mounting":"B3",
"code":"1LA2 070-2NC70",
"price":"15700",
"nswinding":[
{
"label":"Non-standard voltage 220-500V and/or Frequency (Grid Supply)",
"value":[
{
"code":"NSV",
"zprice":".05"
}
]
},
{
"label":"Class H INSULATION",
"value":[
{
"code":"CL-H",
"zprice":".125"
}
]
}
],
"windingprotection":[
{
"label":"3 PTC - Trip (Class B)",
"value":[
{
"code":"A11",
"zprice":"2100"
}
]
},
{
"label":"Epoxy gel coat on winding overhang",
i want to search CL-H value exist in this or not
 
Use .filter
 
5:39 AM
ok i will check
 
5:53 AM
Hi frds
 
Can't tell if frds is friends or frauds
 
@monners Obviously fronds
 
@curiousdannii 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.
 
OK guys
 
5:56 AM
I am having hard time to covert code into typescript
const unsigned char Rcon[10] = {
0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36 };
In javascript i think it will be something like this
Rcon:[ 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36]
 
You wish
 
What is it? An array of codes? Of characters?
 
its array of hex codes
 
Then just const [ '0x01', '0x02',...]
 
Rob
6:00 AM
@SunnyShah Just write const RCon = [ 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];. It'll automatically be typed as number[]
 
Derp.
I think that's enough beers for me
 
see this file I want to convert in typescript
 
Rob
Technically... it's already valid typescript if it's valid javascript. Linters might complain, though
 
I know its valid typescript.. but compailer gives me error when i was trying use
 
@SunnyShah If it doesn't compile, that's one heck of a claim to say that it is valid typescript
 
6:12 AM
@SunnyShah the next logical question to ask oneself is what is the error shown? and which line(s) etc..
 
6:35 AM
@DocBrown its for a parser that gets called millions of times, so yes, it is important. As to it making the code more readable, take note that goto is considered a good practice for breaking out of nested loops: stackoverflow.com/a/9695942/2158002 -- this is a similar but not identical situation, and for all I know, there might be a c++ feature that handles this situation. — Akiva 13 mins ago
Take note, people. Goto is considered a good practice for breaking out of nested loops
Learn, and become wise.
 
7:03 AM
ohhai
 
7:15 AM
!!are you alive
 
@KamilSolecki Not a chance
 
@Neil * Becomes Wiser *
 
@SunnyShah If you are in TS strict mode, that's not valid TypeScript.
What's the errors you're getting?
 
7:35 AM
Hi, I need some advice, I've been writing JavaScript with very little knowledge on how to write it efficiently, compactly and properly. can I get some tips please?
 
@JacobSchneider Hey Jacob, I would recommend doing a course on JavaScript. There are really cheap ones available on Udemy. Another important tip is to practice. Don't expect yourself to understand everything overnight. Finally don't be intimidated by the crazy code some of the JS devs post. They normally have years of experience to be able to write like that. Keep practicing, stay passionate and don't give up. :D
 
@JacobSchneider step 1) block w3school in your browser
step 2) when looking for a reference, search on MDN
 
@JacobSchneider IMO efficiency: comes with practice, but to some degree is situational to the problem you're solving; compactly: don't worry bout it! use a minifier! properly: comes with practice, but also consider using typescript
 
Typescript, I'll try it. Thank you all.
 
ah, and don't use jQuery
 
7:51 AM
I know, I don't
I dislike JQuery with passion
 
then you're more than welcome here
 
Haha, thank you
 
:D
 
are people who don't particularly like javascript welcome here? :+)
 
yes
 
7:53 AM
@NicholasSizer yes they are, if they're not just ranting
 
here we talk about more things, like crypto, 3d pringing... random technology stuff...
 
BTW not everybody follows the jquery-hate bandwagon here
 
@NicholasSizer not anymore
 
@DenysSéguret u ruined it :(
 
whats so bad about jQuery?
 
7:55 AM
@Dalton 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.
 
actually, I think people doesn't hate jQuery... they just hate the fact that some people that doesn't know javascript, are trying to use jQuery even for a single query
 
Nothing. jQuery is the answer to anything and everything
 
this ^
 
i promise not to rant
 
which is wrong
 
7:55 AM
and jquery is a little dirty, let's admit
 
jQuery isn't bad. It's just obsolete and misused by developers, which in-turn led to the hate.
 
nowadays, it is very dirty indeed
and doesn't fit well with most of the modern frameworks, like react
 
jquery isn't really obsolete. Try doing delegation on mouse hovering without it
 
I must say, JQuery can definately make life easier
 
jQuery has its place... it abstracts away browser inconsistencies doesn't it?
 
7:56 AM
Yeah
 
what's the best thing to do when you've changed around 20 files for 20 different things, and haven't committed individual changes?
 
But still dislike it
 
list everything you've done in that single commit?
 
@NicholasSizer yes, but browser inconsistencies are becoming smaller and smaller :)
 
select the right tool for the job
 
7:56 AM
It looks like y'all are getting a little disillusioned with jQuery. You should totally drop that and try jQuery
 
@NicholasSizer not really today. Browser inconsistencies are mostly gone, if you exclude IE and the ones that jQuery doesn't fix
 
lolwat
@BoltClock never, I'm fine with jQuery
 
@towc list all the changes in one commit or see if you can select individual (or sets of) files to break down into multiple smaller commits
 
@NicholasSizer ew no
 
this situation reminds me of a Monty python sketch
 
7:57 AM
@towc git add -p
 
ah fair enough
 
or git add --interactive
 
@BenFortune nice
 
git add -p was the best thing I discover from git
it totally changed my workflow
 
oh, didn't know about that
 
7:59 AM
yeah, so you don't need to delete those console.log before adding
 
I just realized I haven't committed in a week.
 
or those // WTF IS THIS
@littlepootis shame on you
 
for clarity, is a 'hunk' an individual chunk that git's detected as changed?
 
huh, the lead abbreviated middleware to md. Was kinda confusing
 
never heard about hunk :o
 
8:02 AM
damnit it's too easy to cross the line
 
here
 
true lol
 
@Neoares Can't commit if nothing's been working since a week.
 
damn pootis you crossed the line with that comment
 
@littlepootis branch and commit to the branch, squash on merge
 
8:05 AM
The rubicon has been crossed
 
> The Rubicon is a shallow river in northeastern Italy, just south of Ravenna. The same name was given to a river that was famously crossed by Julius Caesar in 49 BC.
 
ah, yes a 'hunk' is as described... starts with @@ ... @@
 
I guess that is a thing in italy
 
@Neoares Caesar was supposedly given an ultimatum. Cross the rubicon, and it is an act of war.
 
@Neil Caesar: "Hold my Goblet"
 
@New_2_Code Clutch my draught
 
take my pizza
 
@Neil Hold fast my Chalice. :D
 
8:27 AM
is this code ok
$("#div_" + ID).show().css('width', 'inherit');
 
@BenjaminGruenbaum stahp
 
HAMMAHTIME!
 
3rd time I see that thing in 2 days, one of them was starred xD
 
@Breathing it may work, but something could be desired
 
8:29 AM
@Breathing not sure about show
document.getElementById("div_" + ID).style.width = "inhert";
try this
 
is ID an index? are you looping?
 
it is not taking the width of the parent div
 
what parent div?
 
have you checked the width of the parent div?
 
Do any of you used crypto pouch? I've got an Ionic application, and I would like to store data encrypted, before sync them with PouchDB, is this lib good or should I use more generic and more well-known library such as SJCL or crypto-js?
 
8:31 AM
@Kepotx 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.
 
I have seen the rules, hope i'm not a help vampire. I ask it here as it's probably too opinion-based for the main site
 
she's just welcoming you :)
 
@Kepotx haven't used it, but in general with crypto libs it's best to go with the
most widely used / updated libs and nothing too obscure or homebrew.
might be worth checking / asking on security SE?
 
@Kepotx looks fine
 
The word of the day is: flocculate, which means to aggregate or coalesce into small lumps or loose clusters.
 
8:35 AM
@Neil yes
it is not specifically set though
 
@Breathing Well they should be the same size
Are they not?
 
nope
parent is this
div.form-group.col-sm-6,
 
well... what's the problem here ? What did you try ? — Denys Séguret 49 secs ago
Is this comment still possible or not welcoming enough ?
 
@DenysSéguret How dare you ask them what they tried!?
 
not welcoming, you rude frenchie
 
8:37 AM
@Neil yes
 
I should have a shortcut to write a beautiful comment like TJ's one
 
you're still in time
 
Oh my...
-4
A: JS - Sum Of Two Arrays where arrays can be of unequal length

Anadi SharmaTry using following method: function sum(arr1, arr2) { return arr1.length + arr2.length; }

 
@DenysSéguret Resist. Fight that urge!
 
lol
 
8:41 AM
Why was stackoverflow.com/a/50170669/1348195 so heavily downvoted?
 
@DenysSéguret jesus
 
noooo I was adding a comment!
 
@BenjaminGruenbaum Either the question isn't clear, or this answer totally fails to solve it
It doesn't build [6,8,10,12,9] at all
 
@DenysSéguret the quesiton is clear
just with the input and expected output it's clear
 
I like how the rating goes up and down according to the discussion in the chat
 
8:43 AM
I didn't understand the downvotes initially but then I noticed that the output isn't what the answer says it is hence the downvotes. — Benjamin Gruenbaum just now
 
@BenjaminGruenbaum ahah that answer was terrible. Looks like someone trying to get in quick for rep but got it completely wrong
 
100% worked
$("#div_" + ID).show().css('width', '100%') worked
but
$("#div_" + ID).show().css('width', 'inherit'); did not
why?
 
How does it have 2 answers from the last minute if it was closed 3 mintues ago?
 
Rob
There's a grace period
 
ok, let's reopen it ? No ?
(I voted to reopen)
 
8:45 AM
@Rob Ah, I didn't realize - also welcome @Rob - I voted for - glad you made the cut :)
 
Rob
Oh, thank you :)
 
This looks dense...
What is the result you expect? Providing code is good but providing code that "didn't work for you" is no indication of what you expect the output should be. — HMR 1 min ago
 
I guess keep popping until one array runs out of elements and the concatenating the other is the best option
 
@Neoares the first answer seems OK to me
 
yes
 
8:48 AM
and HMR seems mad
 
> On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
 
thanks Neil
 
@Breathing anytime Breathing
 
oh, twitter fucked up with passwords
it seems they stored them in an internal log
 
Oh that was brilliant
Maybe they just saved the password hashes in an internal log
 
8:58 AM
const sum = (a, b) => {
  return [...new Proxy({}, {
    get: function(obj, prop) {
      switch(prop) {
        case 'length': return Math.max(a.length, b.length);
        case Symbol.iterator: return Array.prototype[Symbol.iterator];
        default: return (a[prop]||0) + (b[prop]||0);
      }
    }
  })];
}
 
I doubt if they wrote the actual password
 
@Neil no, unhashed
 
Oh.. wow
 
my theory is something stupid like hashing the passwords in the db, that means the clear text password ends up in the query log
 
Rob
@Neil From what I read, it was plaintext. I imagine they'd setup logging on their proxy/load balancer that was logging requests
 
8:59 AM
or that kind of thing, yeah
 
probably
 
@Neil they did
from my email: Debido a un error, las contraseñas se escribían en un registro interno antes de que se completara el proceso de hash.
 
Didn't GH just say a few days ago they had had the same problem ?
 
they logged them BEFORE the hashing
 
select * from users where userid='elvis2443' and password='iLoveElvis__24dec2003'
 
9:01 AM
@Neoares oh that explains things
 
it does
if you know spanish
I assumed everyone here knew spanish
correct me if I'm wrong
 
I don't know Spanish at all but this looks so easy to read. There's only one word I don't guess: "contrasenas"
 
@DenysSéguret passwords
 
I guessed it from context, in fact
 
that's because you're french
it's easier for you :D
 
9:04 AM
> Wheatley: Por favor, consulta el manual. I don't even know what I just said! But I can find out!
 
and french looks familiar to me cause I'm catalan
@Neil that means RTFM
 
when you studied Latin, many languages can be deciphered easily enough
 
@DenysSéguret my spanish professor at HS said that
 
@Neoares Ocho miercoles
 
he knew latin, and he talked almost every latin-based language
@Zirak such consistency
 
9:05 AM
Icho del fuego
 
I don't think "Icho" means something xD
 
Isn't it "child" or "son"?
 
son is "hijo"
and child is "niño"
 
...how
Isn't "nino" grandchild?
 
no
that's "nieto"
 
9:07 AM
@DenysSéguret lol neowin.net/news/…
 
wat
 
twitter only worth 10 billion or so
 
only? lemme buy the 10%
 
properly handling passwords starts at a valuation of 50 billion
 
properly handling passwords is easy. Properly handling logs and not breaking your password handling is harder ^^
 
9:09 AM
you misspelled 1 trillion
 
1.000.000.000.000 is a billion in spanish
and many other languages, I guess
 
There are usually many private things in logs. For example IP adresses
 
@DenysSéguret you mean the public IP address?
 
@Neoares weird! That's totally a billion in italian too!
 
1.000.000.000 is a thousand millions here
 
9:12 AM
actually wait, no that's a trillion
 
lol xD
 
@Neoares people don't always want other ones to know what's their public IP address
 
yes but that doesn't make it private
 
@Neoares well, I know I must take care when taking a picture of my computers just because there's always some logs with IP addresses...
 
9:15 AM
@Neoares In france at least, IP adress is considered as private data
 
how can a PUBLIC IP be PRIVATE data?
D:
!!mindblown
 
@Kepotx In the whole EU, now
(so many French people here...)
 
this is definitely my favourite gif ever
 
the only good gifs in a chat are dead ones non animated ones
 
9:17 AM
@Neoares The I.P address on it's own is not considered private. If you have $userName $firstName $lastName $ipAddress - Well that is different.
 
those dollars hurt me
 
my log is full of things like
Florian connects from IP 153.254.76.141
 
@Neoares Excellent.gif ;D
 
(now you can stalk him)
 
@DenysSéguret it's down
or all ports closed
 
9:21 AM
(or maybe I didn't write the right IP)
 
that's mean
 
I take security very seriously, especially when it doesn't matter
 
@DenysSéguret LOL!
 
Do we have a decent python room?
@DenysSéguret o/
 
@ShrekOverflow what do you mean by decent?
 
9:24 AM
without any sexist joke, probably
 
@Neoares as in functional, not dead
 
why not ask here ?
 
yes and yes
 
oh
I shall knock their doors
 
sure, but be careful
snek room is not like this room
 
9:25 AM
@Neoares 😛 I have survived in Lounge just fine
 
currently at the top of meta:
344
Q: When is Stack Overflow going to stop demonizing the quality-concerned users who have made the site a success?

Ian KempYes, it's another meta question about the "Stack Overflow isn't very welcoming" blog post. As someone who has been on this site for almost a decade, who has tried to post good questions, who has voted on content, who has worked the queues, all in the name of keeping the site's quality up... Jay ...

sounds a little too ranty...
 
That's from like monday
Yeah, monday. It's very ranty but I can kinda empathise with the guy.
 
I agree with that guy too
If most people in this chat hadn't been abrasive when I started talking here, I'd have kept lost in my dunning kruger :P
sometimes a little rudeness is needed, you can't expect every web 2.0 user to have a degree in psychology and education in order to be nice to everyone while always pushing the +ves.
 
even if you could
the room being fun is what keeps us here
 
@david I agree too, of course. But I'd prefer it to sound less like a rant.
 
9:36 AM
@Mosho nah i wouldn't have, Raynos/Teresko literally told me to "change my hobby" x)
which I think I should still consider
 
we have a nice example of that, and its name is towc
 
@david and I totally agree with that too
I don't want him to take a break for a while... — david Apr 30 at 6:17
 
it surprises me that the guy is still here
 
@DenysSéguret I dunno, I'm okay with some people getting super worked up about it because it sends across a stronger message. I don't like people admitting guilt on my behalf for things that I don't feel like I've done.
 
well, it doesn't
which confirms what that meta post is saying
 
9:39 AM
@ShrekOverflow I mean could expect people to be nice
 
@Mosho We should rename the bin the "Fashion Show", so we can bin unformatted code there without being exclusive
 
@ShrekOverflow yes, very
;)
 
@Cereal agreed
 
@AndrasDeak oh by the way, one quesiton
 
shoot
 
9:42 AM
the other day I realized a lot of regulars and specially ROs of the python chat had the default avatar
why? :o
 
Avoid bias?
 
there's only a few of the ROs I think
random chance
 
maybe... but I saw like 4 in a row
 
custom avatars are unwelcoming to people with default avatars
 
DSM, you..
 
9:42 AM
there's absolutely no organization when it comes to profiles
 
and someone else I think
 
<joke> They are lizard people trying to hide being disclosed </joke>
 
@Neoares Kevin
 
here there's no RO with the default avatar :D
@AndrasDeak see? :P
 
My avatar is default :(
 
9:43 AM
your avatar is a fault, shrek
I think there's a correlation, but I haven't found it
 
Your avatar makes me feel like i'm trespassing in a swamp
 
note that 2 of the 3 use real names
 
fuck, now I'm more confused
I'll have to re-train my networks
 
@Neoares yes
@SomeGuy o/
 
#totallynotalizard
 
9:58 AM
@ShrekOverflow \o
What's up?
 
-90
Q: Evaluating the risks of allowing teen moderators on the SE network

user774411I have a David vs Goliath case here involving a teen moderator on Stack Overflow. His display name is BoltClock. I'm a low reputation SO user (less than 150 points) who was recently suspended for Voting Irregularities by BoltClock. Eventually the mistake was corrected by another non-teen moderat...

those teen moderators... xD
 
When do your travel adventures begin, btw?
 
@Neoares These millennial moderators...
 

« first day (2757 days earlier)      last day (2205 days later) »