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

12:01 AM
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
 
12:09 AM
@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.
 
12:24 AM
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
 
12:27 AM
?
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
12:42 AM
> 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
12:51 AM
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
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
[{"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
12:54 AM
but in the frontend side of thing
 
user6820627
@Wax Check what the server returns.
 
Wax
it returns the JSON + the html dom
 
prob a fronend bug then
how are you calling the server?
 
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
12:57 AM
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
how do i check
 
user6820627
Wax, you develop it locally, right?
 
Wax
12:59 AM
in network tab?
 
yeah
 
Wax
Sorry, never really tried it
Yes.
Locally
 
user6820627
@Wax Are you using Chrome?
 
Wax
using chrome yes
 
hit f12, click on network
 
Wax
12:59 AM
okay
 
user6820627
Ctrl + Shift + I, click Network tab, do some ajax
 
or that
 
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
on the network tab view
what the heck
 
user6820627
1:01 AM
You forgot to close the connection in the Java code
 
in the java code?
 
Wax
DO i do that in front end?
java code?
I'm not sure what to close
 
something something connection pooling
 
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
1:04 AM
@Wax HTTP connection, DB connection is not related to this.
 
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
 
1:08 AM
@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?
 
1:10 AM
.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
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
 
1:25 AM
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
 
1:38 AM
: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
I commented it out
 
1:43 AM
no i mean flush BEFORE print
 
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
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
1:49 AM
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
 
2:06 AM
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
I was able to fix my issue
Damn
 
good chat
 
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
2:14 AM
Chill man.
lol
 
@hsimah I sincerely hope you get stuck and cant find help
 
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
 
2:18 AM
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
 
2:20 AM
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
 
2:22 AM
@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
 
2:24 AM
I want to get Mass Effect
 
@Loktar he chose the waifu as his character
 
DVA?
 
Mei
 
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!
 
2:29 AM
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
 
2:31 AM
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
 
2:32 AM
I was in grade 10
 
2:50 AM
@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
 
3:17 AM
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.
 
3:38 AM
nice!
 
4:05 AM
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…
5:16 AM
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
 
5:23 AM
google "mdn array sort"
 
@david thank you i wil get back to you
 
react vr, who familiar?
 
 
1 hour later…
6:50 AM
@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
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.
 
7:02 AM
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…
8:23 AM
o/
 
\o
 
9:05 AM
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
 
9:14 AM
@Loktar not sure why corporate is pushing the virtue signaling so much. Can't they see, that every time they try, it backfires?!
 
9:26 AM
@corvid try paletton.com
 
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?
 
9:32 AM
@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?
 
9:39 AM
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 AM
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 AM
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 AM
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 AM
@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 AM
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 (2585 days later) »