« first day (1939 days earlier)      last day (2994 days later) » 
00:00 - 17:0017:00 - 00:00

12:08 AM
@Loktar lmao
 
that took way too long
 
crl
is it bad to do for (let i=.., j=..; j<...; j++){ .....}?
 
user3119231
why is it a "standard" to use div's?
 
user3119231
I mean this say div's aren't this good: developer.mozilla.org/en-US/docs/Web/HTML/Element/div
 
12:25 AM
hello i have a problem if somene place an javascript code in my site using the form it will works how can i desablete the code ?
 
@AmadeuAntunes Welcome to the JavaScript chat! Please review the room rules. Please don'task if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
desablete?
 
for exemple here
someone place a js into form and then it run
i need detect js in form and delete it
 
12:51 AM
What have you researched/attempted?
 
anyone know how to do or in regex
 
@CodegenesisG Welcome to the JavaScript chat! Please review the room rules. Please don'task if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
1:22 AM
someone on my team wrote an event emitter implementation and it's ~150 lines long.
 
@SterlingArcher There's actually a -0 in JavaScript, but for most purposes it behaves like 0
!!> var neg_zero = 1 / -Infinity; [0, neg_zero, 0 === neg_zero]
 
@copy [0,0,true]
 
Well, it prints [0, -0, true] in my console
 
1:51 AM
disable + delete = desablete
 
2:01 AM
@crl yeah, something like that
I'll get around to making a proper repo for it at some point
 
2:15 AM
@copy I never knew that. Why on earth would negative 0 be used somewhere?
 
@littlepootis WHEN DO YOU SLEEP ?
 
wao
 
@user2677821 Welcome to the JavaScript chat! Please review the room rules. Please don'task if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@SterlingArcher hangout real quick ?
 
@Abhishrek yes
 
2:18 AM
@KendallFrey invite me ?
 
@Abhishrek 20 minutes every 4 hours
 
@KendallFrey can't hear you.
 
something messed up
 
vOv
 
2:22 AM
I might be able to soon
 
@SterlingArcher :D
lets try then, meanwhile
i will restart chrome
 
try again, should be fixed
 
2:33 AM
Anybody else hangouts?
 
What is hangouts
 
baby don't chat me
 
dont chat me
 
no more
 
brb recompiling kernel with webcam support
fml
 
2:47 AM
@littlepootis don't need webcam
 
@littlepootis lol
 
hey guys! I'm trying to build a webapp that will have multiple html files, and I was wondering how I would go about switching between them without refreshing the whole page? I don't quite know how ot explain it (im new to web dev), but an example of what I mean can be seen dashboard.heroku.com/account When you click on a link on the left nav, the address at the top changes, but the page itself doesnt completely refresh, but rather only the content inside changes. What is this called
 
@andofcourse Welcome to the JavaScript chat! Please review the room rules. Please don'task if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@KendallFrey y u no talk
 
damn I joined
only silent kendall is there
 
2:58 AM
on
i am coming in
@Loktar @SterlingArcher now just me and kendall in there
 
hi @Abhishrek
question
so
I want to check whether an operation throws an exception, and if it does, do something, and if not, throw an exception
And I can't figure out how to make it elegant
 
try{

}catch(e){

}
@KendallFrey ^
 
fuck you
try
oops
try
{
    Foo();
    throw new Error(); // triggers the catch, ugh, bad
}
catch
{
    Bar();
}
 
try{
    doThatThing();
    throw new DidntThrowErrorError("Didn'tThrowErrorError");
}catch(e){
    if( e instanceof DidntThrowErrorError ){ throw e; }
    Bar();
}
 
3:07 AM
try {
    myroutine(); // May throw DidNotThrowError
} catch (e if e instanceof DidNotThrowError) {
      throwItUp();
} catch (e) {
    // do something.
}
@KendallFrey ^ ?
 
how compatible is that?
 
Babel I guess
 
nah
does babel have that?
I don't think it's in the spec
 
Hi guys
 
3:10 AM
@Peck_conyon Welcome to the JavaScript chat! Please review the room rules. Please don'task if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Does anyone have any idea of how to keep header/nav/footer, etc and change the content of a page only, but at the same time, the URL Address also changes?
Is this templating?
 
I want to write a recursive function to find the starting index of the first occurrence of the second string inside the first string. I have the working code for normal function which do this this task. Now I want to convert this into recursive one. Thanks
 
A challenge for you guys
 
I can paste the working code
 
str1.indexOf(str2);
 
LOL
 
@phenomnomnominal I know this one but I want to write my own one. I did halfway now only want to return the index.
 
@Peck_conyon First you define the exit conditions. Is the empty string contained in another string? Yes. Is any non-empty string contained in the empty string? No.
Then you can do a step. For example, take the first characters from both strings and compare them
 
@copy How can I paste the code here
 
Don't
 
Anybody here know RxJS by chance?
 
3:58 AM
who is he?
 
oh it's a javascript library
Reactive extensions for javascript
I found a gitter room for it so I'll try there.
 
 
1 hour later…
Knu
5:14 AM
wow never heard of the conditional catch before
seems it didn't catch up
 
6:11 AM
@BadgerCat please remove me as a room owner
 
for realsies?
 
I'm not going to perpetuate petty bickering
this room is going to shit, just like everything else
 
aight, if that's what you want
 
@Shmiddty what happened ?
 
6:56 AM
@AwalGarg give venkatesh atelast an update ?
 
7:11 AM
atleast*
 
 
2 hours later…
crl
8:45 AM
@littlepootis what's the joke, it redirects to bing.com/search?q=microsoft&form=MSSRPD
 
@crl microsoft owns it ?
 
crl
well you see similar things for the same search on google? but I'm probably missing the joke, nvm
 
google.sucks
doesn't redirect me to google.com/#q=google
or apple.sucks does not redirect me to apple.com/iSuck
@crl dude microsoft owns the domain microsoft.sucks
like the bought <TheirBrandName>.sucks at .sucks tld
 
crl
ohh, they have auto-derision, yea
s.every((si, i)=>si===_s[i]) better way to compare 2 numbers array s and _s ?
!!> [ [1,2]<[1,2], [1,2]>[1,2] ]
 
@crl [false,false]
 
crl
9:01 AM
shit the < > thing is fun
 
0
A: Compare strings with variable data

AbhishrekThe following code will achieve what you are asking var $newData = $(new_data); var newDataHasId = !!$newData.data('someid'); var newDataValue = $newData.text(); var $savedData = $(saved_data); var savedDataHasId = !!$savedData.data('someid'); var savedDataValue = $savedData.text(); if ( newDa...

 
crl
better using a DOMParser
 
user5503464
0
Q: How can i get values from this $scope using angularjs?

komal$scope.details =[{"model":"Lumia","brand":"Nokia","subModel":["Lumia 735 TS","Lumia 510"],"city":"Bangalore"}] how can i get model and brand and subModel city in above variable my expectation : i have put like this but i am not getting value console.log($scope.details.model); i should get ...

 
10:17 AM
@Shmiddty :(
 
Hey there guys, could anyone help me? I am trying to get data from JSON file like this: hastebin.com/jirimawilo.php but the function doesn`t return anything. I dont usually work with Javascript, so kinda lost with functions here.
 
@falnyr Welcome to the JavaScript chat! Please review the room rules. Please don'task if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
I just noticed there's a JavaScript team, but I'm not sure how to contact a certain individual from the list to request an invitation
 
11:08 AM
1727
Q: How do I return the response from an asynchronous call?

Felix KlingI have a function foo which makes an Ajax request. How can I return the response from foo? I tried to return the value from the success callback as well as assigning the response to a local variable inside the function and return that one, but none of those ways actually return the response. fu...

 
@BadgerCat o/
 
how are you ?
 
fine
@DJDavid98 I sent you an email
Or do you prefer me to call you?
 
@BadgerCat Thank you
 
11:21 AM
np
 
11:52 AM
$ diff "D:\data\test\email\Email_0.txt" "D:\data\4ea1b7bf-b1d6-4993-be20-b6562b
8684f7.txt" -s
Binary files D:\data\test\email\Email_0.txt and D:\data\4ea1b7bf-b1d6-4993-be20-
b6562b8684f7.txt differ
^ what does that diff output mean?
what differs? I can't spot the difference?
 
Looks like they're binary files
 
They are actually the same data to the eyes?
 
no idea
 
12:13 PM
@deostroll did you get from console?
 
@deostroll try diff3 and maybe the -A flag
even better you might employ git diff to do the job
 
crl
git can diff binaries too?
 
jsfiddle.net/r7dpa2rs hi .. how to stop from ovewritting the text ?
 
crl
12:29 PM
step1: fix the link
 
fixed
 
crl
you need to clear rect I forgot how it's done, then pain the update on it
 
I called clearRect at the top
 
crl
mm
 
Hello folks, does anyone know where I can find docs about Clover XML report structure? There's nothing useful on NPM...
 
@Oleg I duno what clover is, but have you tried googling "Clover XML report structure"
 
@Zirak It's code coverage report for Jenkins. And yes, I tried searching for that.
Nobody uses Jenkins?
 
crl
I just use code for now, and already overwhelmed with that
 
Istanbul does have a clover report generator, but I don't trust it...
 
crl
they have a lot of kebabs too
 
12:39 PM
...
 
@Oleg o/ hi
 
hey
 
@Shmiddty sup?
 
@crl setting canvas.width = canvas.width worked ..
but that's not a good thing for performance stuff
 
why does opening bootstrap modal again and again makes the background screen dark?
how can i remove that darkness??
 
crl
12:56 PM
@argentum47 ah, I though about that too, good
why perf? just do it once at the beginning
 
@TahaDhailey read the docs.
 
which docs?
 
bootstrap
 
crl
1:12 PM
and at least fiddlle it
 
heh, going to the hospital with a "topless shirt" can be embarassing
 
hi...
 
hi Benjamin
thanks for response
I have a doubt
to ask
I am creating a chat client which will be availabel to all other side whith javascript and dom creation
and adding a google login button to the client to authenticate with auth2 google api
but becaus google application is allow only scripts which are mentioned in domain configuration
 
half-beef, hold the beef
 
1:25 PM
@rlemon That looks delicious.
 
so it is not allowing tobe authenticate with other sites
what should i do>>
 
@MiteshUkate just kidding :P
use Auth0 :P
 
:P
my eyebrows raised with your reply
 
@MiteshUkate read the post i just posted
you can pretty easily use the same code with scaledrone and auth0
to make your own chat ;-)
 
@Abhishrek I already done the chat backend part....
 
1:32 PM
you can still use auth0 :P
 
crl
@Abhishrek 'The WebRTC singalling '
 
problem is people dont like to signup... with my backend site... so instead I am giveing them gooogle login option
 
crl
oauth
 
@crl which line, also I added a footnote here for blocking. also fixing the code blocks :-/
 
crl
1:35 PM
@Abhishrek ctrl+f it
the end
 
yes... so I am saying ....
what to do @Abhishrek
 
nana my mind is on holiday
 
@MiteshUkate what is exactly our problem ?
if all you have to do is to configure google auth in domains
you can very well edit your host file to use thisisfake.yourimaginarydomain.com to 127.0.01
for testing
and add that to your google domain config.
 
@KendallFrey time to see if it breaks up
:D
 
1:52 PM
@rlemon evil!
 
2:08 PM
it's a most simple design of a space station
but eventually you can proceed to nicer space stations. i've seen an image of a pretty large one
 
Blender?
 
crl
no, some space game
 
@KendallFrey lol 51 mm/s² acceleration
stable, but slowwww
 
crl
less than 1G
 
@rlemon make sure you drain the outer tanks first, then it will become even more stable
 
2:18 PM
yea I am
 
crl
what combustible use rockets?
 
@KendallFrey problem is it is draining sooooo slow :P
 
2:32 PM
@crl you mean what is used for rocket fuel?
 
=D ha my game works now
 
2:55 PM
said that too early
 
In case you haven't heard, the ** operator has been accepted into JavaScript, moved to stage 4, and made it in ES2016
 
@BenjaminGruenbaum :D
 
does it actually crash explorer though ?
 
probably
 
2:58 PM
didn't crash edge
 
is there anything that doesn't crash explorer anymore :P
 
Edge crashes less than chrome / ffox --- solely because I don't use it.
@towc works in IE 11
btw @towc are you free for a side project ?
 
depends on how big the project is
 
@towc hangouts ?
 
sure
 
3:02 PM
abhishek@goph.me ping me
 
@towc Not only does this not crash edge, it's actually much faster than Chrome canary running it.
 
@BenjaminGruenbaum ^ I second that
 
IE11 is about as fast as Chrome running it, doesn't crash that either
 
oh yeah, apparently IE11's webgl was like incredible compared to anything else, right? Hadn't heard of any improvements on Edge, webgl-wise
 
@BenjaminGruenbaum as far as I have noticed Edge performs extremely well with most webgl projects.
 
crl
3:13 PM
@KendallFrey yes
 
4:06 PM
262
Q: Did I just get hacked?

vaidI am developing a consumer product, and it is supposed to be connected to the internet, so as expected, it is connected to the internet so that I can properly develop it. I went away for an hour or two hours, and when I came back to my office I noticed some strange commands written in the termin...

My virusscanner says the link in that post contains malware
false positive or should the link be removed?
 
@Jonathan which link ? there are many
 
anti***hacker-alliance.com/index.php?ip=40.127.205.162
 
crl
ok for teh propellants
 
@Jonathan that website tries to figure out information about that ip address
maybe it got blacklisted by the AV due of providing not legal actions
 
4:14 PM
Avast is blocking the site for me, says it found a trojan
..or something liek that
 
launch your VM and check that link then
just checked. no activities. Only interesting attempts to find out info connected to the given ip address
 
4:32 PM
 
4:54 PM
hello @KendallFrey
I have a short theoreticall question
 
it's the call in theoreticall that intrigues me
 
well...
it s not that "theoreticall" actually x)
I found this website:
when you analyze their html code
you can see every image, which is a page of the book, has a <img src=...> tag
in the html code
HOWEVER, when downloading the html code all those tags dissapear!
because you should have at least 882 of those tags in the html code, but you only have 3
or 4
so I would like to know how this is done, and where all those tags are?
o.O
 
it's magic
black ajax magic
 
Black Ajax magic
 
big black ugly ajax magic
 
4:59 PM
hmmm...
but when downloading the html code,
 
Witch! We have an Ajax witch in our presence!
 
is there any way to get those img tags inside the html?
I don't want them to dissapear
 
00:00 - 17:0017:00 - 00:00

« first day (1939 days earlier)      last day (2994 days later) »