« first day (2379 days earlier)      last day (2791 days later) » 

00:01
yup i'm just trying to play around with that now
here's the fork i have so far
What's a good subject for an e-mail rejecting a job?
send nudes
hahaha no
I can't seem to animate the movement of the child DIV being centered by the parent DIV
I don't know that much about flexbox o.o
"Thanks but no thanks"
"thnksfrthemrmrs"
I can't access your codepen it just keeps refreshing
I am going to end up using getBoundingClientRect
00:09
@BadgerCat I actually don't put a subject in when rejecting an offer, because I also can't think of a good one, lol
I just replied to their e-mail with the same subject
That works
Good Evening everyone. Just want to ask about oauth, anybody has some experience here?
I am looking for some help on how to convert markup to placeholder codes
1 message moved to Trash can
@Hybridwebdev Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
00:24
sorry
hey everyone, how can i use a setInterval for a click type addEventListener?
@Miguel Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
1 message moved to Trash can
@Hybridwebdev Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
<div data-content_type='wrapper'>
<div data-content_type='content'>
Hello
</div>
</div>

Would become [wrapper][content]Hello[/content][/wrapper]
it wont format man stop deleting my shit
    <div data-content_type='wrapper'>
<div data-content_type='content'>
Hello
</div>
</div>

Would become [wrapper][content]Hello[/content][/wrapper]
see
00:27
?
what is the issue?
what have you tried
let me CP it
$(this).before("[composer_pocket "+string+"]").after('[/composer_pocket]');

$(this).before("[composer_pocket "+string+"]").after('[/composer_pocket]');

$(this).wrapInner('<div aaaaaaaaaaaaaaaaaaaa>'+inner+'</div>').unwrap();
of for ffs
I FUCKING CTL K'd
delete it mod, i dare you
SO seriously needs to hire devs with brains to redo their site
so broken its ridiculous
o.O
on this CP, codepen.io/angus/pen/xdVpXm, how do i, on click, make the modal go away aswell?
@Hybridwebdev I find sometimes when I hit enter when asking a question it doesn't work at all in Chrome
thankfully I have trusty IE to switch over to
(not really, I write the question in VS Code and paste it in when this happens)
user6820627
@hsimah yeah(?)
user6820627
00:42
> I really like Internet Explorer.
user6820627
@Hybridwebdev A bot in this room deleted your stuff.
@LearnHowToBeTransparent lol nothing triggers nerds like saying you like IE
i got an immediate eye twitch reaction
debugging in IE is like asking a sensible question and getting an answer of FUCK YOU, you're not my boss!
I develop using it, as the browser link with visual studio worked best with IE. I havent upgraded yet, but apparently it's much more browser neutral in VS2017
but as for using it, nah
Wax
Wax
00:51
I have a question. A weird issue to be honest. I am passing a JSON object from a servlet using GSON, but for some reason it enters the error function of my ajax. It is because the whole dom is being appeneded to the JSON data for some unknown reason.
Any idea why this is happening?
not without seeing some code
Wax
Wax
uno mumento
this is the java code
response.setContentType("application/json");
response.setCharacterEncoding("UTF-8");
response.getWriter().write(JSONResponse);
just a snippet
that should return a json object which is fine
the server is sending back html?
Wax
Wax
[{"stn":"RAV","address":"MSPL2DL","id":"0C6007"},{"stn":"RAV","address":"MSPL4DL","id":"0C042E"}]
like if you use something like postman to make the request, do you get json back or is there HTML in there?
hmm
Wax
Wax
00:54
but in the frontend side of thing
user6820627
@Wax Check what the server returns.
Wax
Wax
it returns the JSON + the html dom
prob a fronend bug then
how are you calling the server?
Wax
Wax
hold on
let me show you my ajax
$.ajax({
		type : 'POST',
		url : "getData",
		data : {
			'apCode' : apCode
		},
		dataType : 'json',
		success : function(results, status, httpobject) {
			//$('#searchResults').html(data);
			console.log(results);
		},
		error : function(jq, status, error) {
			// do error handling
			console.log(jq);
			console.log(status);
			console.log(error);
		}
	});
Here you go
and you get the dom in your console.log(results)?
Wax
Wax
00:57
yes
{"stn":"RAV","address":"MSPLWDL","ID":"0C040C"}]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">








<html>
	<head>
I do get something like this
user6820627
@Wax must be a backend bug. Your AJAX is fine.
user6820627
need more backend code
hmm but in the network tab, you only get see the json coming back?
Wax
Wax
how do i check
user6820627
Wax, you develop it locally, right?
Wax
Wax
00:59
in network tab?
yeah
Wax
Wax
Sorry, never really tried it
Yes.
Locally
user6820627
@Wax Are you using Chrome?
Wax
Wax
using chrome yes
hit f12, click on network
Wax
Wax
00:59
okay
user6820627
Ctrl + Shift + I, click Network tab, do some ajax
or that
Wax
Wax
oh man
you are right
I am getting it from the backend then?
the response has the json with the html
hurray we did it!
Wax
Wax
on the network tab view
what the heck
user6820627
01:01
You forgot to close the connection in the Java code
in the java code?
Wax
Wax
DO i do that in front end?
java code?
I'm not sure what to close
something something connection pooling
Wax
Wax
I did close it
dao connections are immediately closed after the retrieval from db
i remember something about a try with resources block
http connection close
user6820627
01:04
@Wax HTTP connection, DB connection is not related to this.
Wax
Wax
9
Q: How to close a HTTP connection from the HttpServlet

JasonI'm running a servlet in Tomcat 6.0.26. The servlet accepts file upload from the client by HTTP POST. I'd like to stop the file uploading from the HttpServlet side. I tried the following methods with no luck: close the request inputstream send error code HttpServletResponse.SC_REQUEST_ENTITY_TO...

It says here that i cannot be closed
Not at all how acronyms work. https://t.co/mLukjSwFyT
@KendallFrey do I follow you of the twitters?
holy fuck i am so bored, anyone hiring remote Aus JS dev?
@phenomnomnominal I don't think so
01:08
@derp maybe
@KendallFrey what's your handle
kendfrey
@phenomnomnominal go on...
I tweet much less than I should
@derp are you good? We're in NZ
dunnning kruger says no and that people will find out and burn me on a stake
what's your stack like?
01:10
.NET backend, Angular front end.
angular 1?
nope, I would've said AngularJS :P
My team is doing the upgrade
I hate windows with a passion
It's 10:15 and they spring onto me "You're computer is scheduled for an auto-update at 10:16, click here to reschedule"
I have 1 minute to reschedule but that's alright there's a nice little link to do so
So I click it aaannndd the window freezes.
Wax
Wax
public ActionForward displaySearchResults(
		ActionMapping mapping,
		ActionForm form,
		HttpServletRequest request,
		HttpServletResponse response) {
		log.debug("Start of displaySearchResults() in " + InternalBSOContactsAction.class.getSimpleName());

		//String pageForward = "displayInternalBSOContactsPage";

		//ActionForward af = null;
		List wsineList = null;

		String searchQuery = request.getParameter("apCode");
		log.debug(searchQuery);

		ReferenceCodeDelegate refDelegate = new ReferenceCodeDelegate();
That's my function on bankend
which is the one that produces the json object
for front end use
if I were to close the HTTP
where would I do it?
will it prevent the appending of the whole dom at the end of my JSON?
@phenomnomnominal so the current work is migrating to angular 2
01:25
Ahhh it's beautiful I finally got the transition working
though when i went to the site, it looks like its not a SPA?
@derp depends on what site you went to
there's currently a desktop and mobile site (.net for desktop, backbone for mobile), and an ng1 site that is responsive and being slowly rolled out, as well as an Angular version of the responsive site that will replace the whole lot.
ahhh okay sounds interesting
which site are you referring to though or is your team managing all of them?
codepen.io/shawnjames95/pen/JNXMOx In case anyone was interested.
@Alesana try using requstAnimationFrame insteaad of setTimeout
01:38
:D I have setTimeout everywhere in my code I didn't even know that existed, thanks.
my team used to work on the backbone app. We started the ng1 app, and we're now doing the upgrade.
I wasn't thinking that the opacity would also transition but the two together look really nice
We have ~100 devs total, our team is about 10
are they all onsite or do you have remote devs as well?
@Wax if i had to guess (and i am), it might have something to do with the printwriter
what happens if you flush before you print?
Wax
Wax
I commented it out
01:43
no i mean flush BEFORE print
Wax
Wax
because it did the same
Ohh
Hold on
let me try
(its been many a year since i had to touch java though, so take what i say with a sack of salt)
Wax
Wax
same
response
:(
I am using struts 1, and maintaining a software older than 10 years old
So yeah
i'm reading a spec and doing manual testing on a website built with GUI based product. oh and the project is waterfall
do you have any middleware doing funny business with the response?
like JSONResponse is just pure json in the log file right?
also that's not a class and probably shouldn't be upper
@Wax If we s/west/less/ your company's name, it ends up being "Pointless Innovations Corporation"
Wax
Wax
01:49
haha. lol
Our client pays well though. so we can't complain that much.
we're devs, its like our heavenly ordained right to complain
I love complaining
02:06
I want to turn this:

<div>Some stuff</div>

Into This:

[div]Some Stuff[/div]

Have tried something like:

$('div').replaceWith(function(){

return "[div]" + this.innerHTML + "[/div]";
});
ffs
but this does not work. Any idea wtf I am doing wrong
all i get is the original html back
cool
Wax
Wax
I was able to fix my issue
Damn
good chat
Wax
Wax
took me a while. like half a day
for a single line solution. :(
Thanks for the tips guys! Turns out i need something like this
out.close();
And poof, it worked
love when people just completely ignore you
silly me for thinking i could get a straight helpful answer on SO
sorry mate, I'm doing the work I am paid to do. If I stop doing that maybe I'll look at your issue. Maybe not.
Wax
Wax
02:14
Chill man.
lol
@hsimah I sincerely hope you get stuck and cant find help
Wax
Wax
why not try putting an ID instead?
It could be pointing out of the scope
but that being said I put your code into jsfiddle and it worked
@Hybridwebdev lol
karmas a bitch
seems so
02:18
lol damn
@Hybridwebdev I sincerely hope you learn empathy at some point in your life.
and learn to code while at it
LOL
really?
how bout
:(
might get in trouble with HR if I do that
@hsimah lol
02:20
I see Mods still like to abuse their powers in chat
hey mods
there are no mods currently here.
@Loktar too busy abusing their powers elsewhere
yeesh he's an angry dude
/me goes back to doing random stuff
@Loktar what stuff?
idk, maybe playing Overwatch
was working on a random project earlier
02:22
@Hybridwebdev ...
it's sekret though until/if I ever finish it
oh, copy is playing Overwatch too
@BadgerCat it's addictive :/
or can be anyway I stopped for a while then started playing again
I need a new game to sink my teeth into
@hsimah lol
02:24
I want to get Mass Effect
@Loktar he chose the waifu as his character
DVA?
ahh
I <3 Mei
my daughters cosplay in November
going back this year, she's not sure who she's going to be yet
OMG she's so cute!
02:29
lol ikr!
they were all calling her little Dva
and mini dva
people wanted their pics with her, she loved it lol
things sure have changed from when I was a kid
no one dressed up as game characters, and if you did dress up as anything (like star trek) you'd get bullied
@Loktar nice!
@hsimah haha yea
It's nice to see people being more fun :)
if you played games you were made fun of too as well
I mean you could play games, but just not be like SUPER into them
who's laughin now biotches
02:31
yeah
I remember when The Sims came out - people at school wanted to talk to me about games lol
original Sims?
yeah
I think I was a senior when that came out, or 11th grade
like 1999 or 2000
yea
02:32
I was in grade 10
02:50
@Loktar, i went to eb games expo last year and there was an entire family dressed up as fallout vault dwellers
that's badass
there was this little blonde kid that had the nuke launcher and he did this pose with a thumbs up like the fallout mascot
it was awesome
oh! you could do a bioshock, big daddy thing?
making that costume would be a hassle though and probably not cheap
oh dude yea
I suck at that
making customes, or anything crafty
lol hire @rlemon to make you a wooden bender suit :P
@littlepootis lol
@derp hah he should get into that
could make some badass stuff I imagine
03:17
ssube mission accomplished. Full "intellisense" for my JSX thing.
I used cxsd to make Typescript types from an .XSD, then had clean it up with some search/replce.
03:38
nice!
04:05
1
Q: Read Remote Network folder nodejs

sabbirI want to offer my users to share there network folder with my server, so when they update there network shareing folder, I will read that folder and download all the change and save that files in my server.How can I do this? I have been googling a while, all I get is smb2, Can It complete my re...

 
1 hour later…
05:16
0
Q: .match is not a function jquery

Ram SinghI have working code in some website. We are changing the design of the website and some functionality so, when i am copy pasting the Jquery. it throws me error. i fixed number of issues, but not able to get what previous developer was trying to do it here: if (dateFormat=='european'){ dateof...

please help me
looks like somewhere there will be a function that formats the date, you need to use that to make your string
-1
Q: Sorting json array based on alphabets section in angularjs 2

NaveenKGBelow is an example . I have a json data , that data should be formatted and placed in the box accordingly to . data sorted in A-B should go to particular section . And it should be dynamic . I have tried a lot but not able to acheive

@NaveenKG Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
@NaveenKG the sort method can take a comparison function. that's probably what you need although without any code it's hard to tell
@davi
@david ,can you suggest me or give me a reference on how to do
05:23
google "mdn array sort"
@david thank you i wil get back to you
react vr, who familiar?
 
1 hour later…
06:50
@Ace Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
Ace
Ace
My friend here got a problem he posted a while ago this one using fleckity.stackoverflow.com/questions/43535450/…
Your friend from North Korea
hmm... should I check the names to see if they're not from one person ?
Hi there, anybody comfortable with angular2 and reactive forms?
I'm very uncomfortable with them due to traumatic experiences in the past.
07:02
lol :P what kind of experiences?
starts gasping for breath
faints
0
Q: Angular2 Nested formGroups - formArrays and template Binding

Julo0sSHere is the problem: I have a complex form with nested formgroups, here is a "simplified" structure of what it looks like : -> MyForm (formGroup) -> Whatever01 (formControl - input) -> Whatever02 (formControl - input) -> WhateverGroup01 (formGroup) -> Whatever03 (formContro...

 
1 hour later…
08:23
o/
09:05
Is this library created or owned by Microsoft ?
on the top it says

// Copyright (c) Microsoft Corporation
// All rights reserved.
Well there's your answer..
but Microsoft don't host on CodePlex though and account who added this file doesn't seem to be affiliated with Microsoft
what I really want is the real place Microsoft hosted this library then
> CodePlex is Microsoft's free open source project hosting site.
^--
it even allows MS accounts as login
And MS is very cranky on that field (if you compare to eg google or facebook )
@BenFortune oooooo
@KarelG ahhh I see
09:14
@Loktar not sure why corporate is pushing the virtue signaling so much. Can't they see, that every time they try, it backfires?!
thanks guys
found an interesting question stackoverflow.com/questions/43538472/…
whoops.. i replied to something asked yesterday >.<
@KarelG you mean boring ?
@thedigitalmouse nothing wrong with that?
09:32
@KarelG Lol what a stupid answer from that guy, it's quite obviously a block
I'm not so tech savy on node repl. Idk why it stops when } is supplied. It's like it doesn't keep track of #'s { used
Bug report?
@KarelG i guess so, but no clue when the guy reads it. :)
has anyone developed an open-source version of this chat engine yet?
09:39
Looks like it could be doing something like
({
... const str = 'Alice';
... let arr = [];
... for (let c of str) {
..... arr.push(c);
..... })
the code seems fine if you ask me. It's the behavior that node starts running eval when ENTER is pressed after }
{
    const a = 'Alice';
    let arr = [];
    for (let c of a) {
        arr.push(c);
    } arr; }
works
updated my post. Gotcha make a ticket later (or if someone wants, he/she may do that)
10:44
o/ I wanted to intercept the ajax request on a particular forms submit. Is that possible?
(using $.ajaxSetup() etc.)
e.g. if I have a form called #superForm
I want to be able to do something like
#superForm.ajaxSetup() // intercept the ajax call and add some data to the existing data that is going to be sent over
Cc @BenjaminGruenbaum
nice face mask
11:04
Is this in ES5:
`var createStore = Redux.createStore`
same as this in ES6:
`var {createStore} = Redux;`
yup
great, is there a name for this type of shortening?
I think it's part of destructuring
ok, thanks
11:31
omg I almost forgot, it's Friday @rlemon @Loktar @FlorianMargaine
@KendallFrey Are you going to sing Rebecca's friday song ?
I'm not great at singing
friday is a great day for bad singers
user6619012
can we have button with 2 javascript ids ? something like below code ?
user6619012
<button id= "id1" id = "id2">button name</button>
11:46
@user5348fh8y5 Nope
user6619012
@Cerbrus thanks, is there any alternative ?
@user5348fh8y5 Why do you need two ids?
Depends on what you need.
Just remember: HTML elements can not have multiple attributes with the same name.
@user5348fh8y5 An ID is a way to uniquely identify an element on the page.
An element may not have two IDs, and there may not be two elements with the same ID.
Why do you need it?
user6619012
thanks @Cerbrus @BenFortune @MadaraUchiha , i will writee both ids code in single id.......
11:52
2 mins ago, by Madara Uchiha
Why do you need it?
@user5348fh8y5 That's not what we're saying
user6619012
@MadaraUchiha @BenFortune thanks for your interest :
user6619012
actually we are submiting form once we click on "login" button.

for "login" button we already gave an id " id1" , now we need one more feature like "saving image in server" once we click on "login" button.

another button called button2 [id = id2"] is saving the image once we click on that....

so i thought of using both ids for ""login" button
@user5348fh8y5 I see
@user5348fh8y5 use dataset

« first day (2379 days earlier)      last day (2791 days later) »