« first day (1824 days earlier)      last day (3120 days later) » 

1:01 PM
@dievardump that's what I exactly was after I believe
 
Hey guys, fill in your github profile in your SO profile so that I can shirt-hunt
 
Your .get should only return the request object, and then you .done/.fail in the init.
You can also have a general .fail in the .get though
or even a general .done, I don't know if you can chain .done in jQuery
 
user3119231
okay -> I have a problem with ajax requests and all I find is jquery shit.
 
user3119231
function ajaxSet(url, parameter, func){
	var x = new XMLHttpRequest();
	x.addEventListener("load", function(){
		if (func){
			func(x.responseText);
			indicator.hide();
		};
		indicator.show();
	});
	x.open("POST", url, true);
	x.send(parameter);
}
 
@dievardump I see, so that means there's no essay way to create a seperate function doing all the data handling
 
user3119231
1:04 PM
<?php
	header("Access-Control-Allow-Origin: *");
	print_r($_POST);
?>
 
user3119231
Data is posted to server but if I give back it is empty?
 
@PleaseTeach There is that's exactly what that does.
Just check if you can chain .done
If not, use a deferred object
 
@dievardump maybe you are right, I am C# developer so I think in different way
ok, let me check, thanks though
 
@SandeepNambiar Welcome to the JavaScript chat! Please review the room pseudo-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.
 
1:06 PM
I have created music module for my php website.But while page navigating to other pages music get stopped. So please help me to sort this problem.
 
Hi there, anyone here with knowledge of SharePoint 2007, JavaScript and the ability to read/write to content of ZIP folders? I have a .zip-folder on my SharePoint workspace, and I need to be able to edit core properties in a folder /docProps/core.xml, but even after trying software from Github / similar (zip.js, JSZip, etc), all I get back is errors. I can view the .zip-folder without hazzle in my file explorer.
 
user3119231
@SandeepNambiar of course it stops. You load new content -> Use ajax
 
@Uppah eeewwww goof luck with that
I can assure you no one here going to help u with that
 
user3119231
What da hell is sharepoint 2007 (and why do you use it?)
 
@Maurize same concept i have noticed in vk.com
 
1:07 PM
Why Scripting Javas?
 
:p Bad luck so far - the page has jQuery, and spending hours on trying to solve that problem has led me here.
@mau
 
user3119231
First:
 
user3119231
Learn real JS not this jquery (is shit)
 
user3119231
 
jQuery is love
 
1:08 PM
@maurize, SharePoint is a framework by Microsoft to make websites - essentially it lets you do stuff like upload files and folders and make lists and stuff on aspx pages
 
@rlemon +1
 
jQuery is everything.
 
user3119231
My dick is your love.
 
I've tried that already, @Maurize
 
jquery is a gateway drug to Javascript
 
1:09 PM
damnit lemon, I was trying to come up with something about jquery and now Ill just look like im copying you
 
I love it already ;p
 
jQuery makes scripting java easy
 
it still has its sweetspots.. I figured just now
 
You can't go too far rlemon, people will notice.
 
guys can any one suggest me any idea
 
1:10 PM
jQuery(2+3).get(0) == 5; // true
 
user3119231
@rlemon javascript*
 
shit does everything
 
for instance.. getting a node reference using insertAdjacentHTML or innerHTML is pain in the ass still on vanilla style
 
but looking away from Sharepoint and possibly jQuery - it's just the ability to read / write to contents of a .zip-folder given it's on a website, and we know its URL
 
you'd have to use a DOM-Range object alongside createContextualFragment to accomplish the task,.. which just sucks
 
1:10 PM
@jAndy innerHTML all the things !
 
HTML is a terrible technology
I think that is most of the problem
 
as long as such tasks are still so horrible in DOMInterface and Javascript.. jQuery will survive :p
 
@jAndy just don't "innerHTML" nodes :(
 
W3C working group is the real criminal. All w3 specs need to be rewritten.
 
insertAdjacentHTML
 
1:12 PM
@AwalGarg isn't w3c part of w3schools ?
 
is actually pretty awesome and unmatched in performance creating nodes
 
:(
 
@dievardump w3c is a jQuery plugin
6
 
it would be the SHIT if would return a node reference document fragment
 
1:13 PM
Oh that's what I thought
 
REACT question: I got a form who is used to create a document in my db. This same form is used to edit the document. But i got a "create" link who is in the same page as the edit form. When i click on the link i want my form to be completely new. How can i attach a route.onChange event or something like that?
 
@jAndy that'd be terrible. We already have dom parser APIs, why not use them?
 
@AwalGarg what you mean
 
@dievardump Don't EVER pronounce w3school... shitty doc
 
you have to re-query the element(s) you just created
you have to do this at present, but that's clunky isn't it
 
1:14 PM
@jAndy you know about the DOMParser API right?
 
enlighten me
 
!!tell jAndy mdn DOMParser
 
@jAndy THE GAME
 
parseFromString your way through
wait, what
 
 
1:16 PM
@MikeBoutin you just talked about jQuery, not better.
 
@AwalGarg is that thing even close to the performance of insertAdjancentHTML ?
 
@jAndy sure, if not better
 
@dievardump jQuery is a librairy, not the official language
 
@MikeBoutin Yeah, and this is a shitty library. w3school is absolutely not related to w3c, so it can also be shitty
 
1:17 PM
all DOM operations are pretty fast if they are not being operated on the current live document rendered to the viewport
 
well.. wrong
 
a=document.createElement('foo') // is fast enough
 
innerHTML vs. insertAdjacentHTML is a performance difference of magnitudes for instance
just because insertAdjancentHTML works on doc frags under the hood, why can't it just return that
 
@jAndy that is implementation dependent. I don't think the spec dictates what insertAD... should use under the hood
 
but yea I'll have a look into DOMparses now, seems legit
 
1:21 PM
@jAndy I have read that post :) As I said, DOM operations on nodes which are not hooked to the rendering engine are all pretty fast.
 
user3119231
at least I don't have to see this jquery shit anymore when I'm gone.
 
I'm just puking that this insertAdjacentHTML very HANDY DOM method does not return any reference to it's created nodes
it would be glorious
 
user3119231
Is like: yeah I got my drivers license but I prefer to drive with mother and dad because I'm shit.
 
> In our recent applications we are using lots of AJAX function in JS files to avoid some frequent postbacks. But Im worried about public can get into some of our business logic by just checking the JS file and also they can alter the data being send to server
This guy is so fucked...
0
Q: How to hide serious business logic in JS file

sforsandeepIn our recent applications we are using lots of AJAX function in JS files to avoid some frequent postbacks. But Im worried about public can get into some of our business logic by just checking the JS file and also they can alter the data being send to server using some firebug such features. So h...

 
Oh no
 
1:23 PM
@jAndy example use case?
@DenysSéguret that code screenshot :D
 
@AwalGarg dozens. Right now I'm creating option nodes for a select and add a value and textContent by client-templating. But I'd like to add some dataset's to those option elements too, for that it would be nice to have a direct node-ref afterwards
 
@DenysSéguret aha, you think they do not check session, if the post comes from this user, if the user has the right to delete etc...?
 
of course you can just string-template data-xxx values to, but it would be nice to have a dom ref anyways for later usage in a modul
instead of query them after you created them
 
> I owns a Software Developers community called DELPHINIUM TECH SOLUTIONS with some high profile engineers working behalf of that
Yeah..
 
!!s/owns/haz/
 
1:26 PM
@jAndy sounds messy. Why are you using insertAdjacentHTML for that and not the normal dom ops?
 
@jAndy I haz a Software Developers community called DELPHINIUM TECH SOLUTIONS with some high profile engineers working behalf of that (source)
 
@AwalGarg because I like the method with its options, I use client-templating a lot and it has an awesome performance compared to innerHTML and createElement & appendChild
 
@AwalGarg no because I could use jQuery aswell if I want a 3rd party lib or custom code
 
Thanks to the people that helped me out with my form problem yesterday. Was able to push a feature thanks to your help.
 
1:29 PM
I'm going full vanilla
 
@jAndy I meant the behavior...
 
but yea... looking at that code, if I choose to use the DOMParser thing I probably come up with soemthing very similar
 
@AwalGarg 3/4
 
I reject your javascript file and substitute my own tool to send arbitrary HTTP requests. — Jan Dvorak 20 secs ago
Probably a stupid question: would encrypting the HTTP traffic + getting the actual code through AJAX be any good?
 
1:33 PM
@rlemon Did I miss the CFM? D:
 
yes
 
nuuuu
Technically that's my most work-experienced language nuuuu
 
Oh and... did you really post here a screenshot of your source code? Is it so that we can't read all of it, or so that we can't copy it easily? — Jan Dvorak 19 secs ago
 
function foo(arg) {
	return new Promise((resolve, reject) => {
		resolve(arg);
    });
}
function bar() {
	if( condition ) {
		return foo(123).then(val => {
			console.log(val);
        });
    }
    console.log(456);
}
is it possible to remove the code duplication (the console.log) ??
any hidden corners of the promise api I'm missing ?? or bluebird?
 
@rlemon Use a ternary and .then(console.log) maybe
 
1:39 PM
well I still want it to be readable.
 
return (condition ? foo(123) : Promise.resolve(456)).then(console.log)
 
It's readable enough for my taste. Especially since, in your example, only one code path in bar returns a promise
Which is kinda meh
Unless I didn't parse that right...
 
1:41 PM
the return in bar is to exit the function only.
 
@Cereal boy that is sooo much effort for a shitty project :P
 
@AwalGarg Free t-shirt mang
I hope the 4 PRs don't have to be on different projects
 
@rlemon why are kids there in a dogs house ?
 
children are dogs.
 
1:47 PM
@AwalGarg Lame
Time to fuck up especser
 
lmao
@Cereal its a fake pic :P
 
I hate you so much
 
Hahahaha
 
xD
 
You're so easy
 
1:49 PM
I trusted him :(
 
Creepy as hell
 
gah
stahp
 
HAMMAHTIME!
 
user3119231
- Nevermind -
 
1:50 PM
hi! does a+ promise not cater for deferred?
 
@rlemon Looks legit
 
@rlemon Is that you again ?
 
user3119231
@Cerbrus this one is for you: allmystery.de/dateien/…
 
@DenysSéguret only the bottom half
 
1:53 PM
 
@AwalGarg /html/static/vendor is missing completely
 
@Cereal yeah, it is undocumented. you need to download codemirror separately :/
 
I'll add it to the readme
 
CodeMirror is strange.
 
@Cereal would you like to do something easier instead?
 
2:00 PM
@AwalGarg Implying this is difficult?
I'm waiting for our server to finishing updating (because windows server automatically update in the middle of the day?)
Nothing else to do
 
@Cereal no, it is just a mess. I don't maintain PHPEPL anymore and ignore the (few) mails I get for "this is not fucking working".
it is a POS hacked around to "make it work".
 
@AwalGarg dun curr
 
!!urban dun curr
 
@AwalGarg No definition found for dun curr
 
2:02 PM
:/
 
It means, "Don't care"
 
user3119231
 
@Maurize codepen.io/rlemon/pen/wpnyG tag you're it
 
user3119231
I like the cloth thing.
 
user3119231
There is much shit on codepen.
 
user3119231
2:08 PM
 
So tempted to move shit :P
 
user3119231
you little cerbrus.
 
user3119231
 
user3119231
lol round 10....
 
Angular problem: How to access window object in angular expression? I want to show a <p> element only in non-HTTPS pages. How do I do that? Here is what I have so far: jsfiddle.net/HB7LU/18548
 
2:13 PM
@AwalGarg Any idea why the only scrollbar styles in codemirror are "native" and "null" for me?
 
Jul 6 '12 at 18:13, by rlemon
http://jsfiddle.net/rlemon/jjrFE/11/show/ HTML5 SIMON
 
user3119231
@rlemon I prefer this: codepen.io/pinkyroy/pen/KdXMYW
 
you prefer nothing?
 
user3119231
Exactly. 30 seconds of my life wasted for shit.
 
@Cereal pull master again
@Cereal should not be needed to meddle with anymore
 
2:19 PM
Bah
 
t-minus 1 year till I can live on my own
 
@LanaKane you have 1 year to get your ass to VA and get all up in this
On the bright side of our rent shooting up $1000 a month, we can move to a nicer, bigger townhouse for less than we currently pay :D
 
hmm, is it worth taking the php coop for more pay, or the D3/js job for less pay
 
@rlemon emailed you thoughts on 12 days idea
@BenCraig think in terms of what you want more down the road
PHP is easy, so it's not like struggling to learn a new language. More pay means less financial stress on your mind. However, D3/js (I do that for work :D) is fun, and you would probably enjoy your job more
Weight the costs. More money, or more enjoyable job?
 
2:27 PM
Both would be nice haha
 
So then why are you limited to those 2 choices?
Find a JS job that pays the PHP job
 
Coop options are limited
its only a 4-month position
 
go with the php
 
That's not too bad
 
it if were long-term id find both
 
2:29 PM
D3/js isn't necessarily fun, jus sayin...
 
well it looks more fun
 
That gives you 4 months of good pay and an extension to find the right job
 
lemon plz
 
I'm enjoying learning D3.js and angular here
fuck that reminds me, gotta get to the bank today and pull out cash
 
2:29 PM
 
well, I guess I did ask for it
 
For some reason, the car shipping guys only take cashiers check or cash
 
I would like some lemons, I could make lemon chicken
that would be tasty
 
So I gotta whip out $500 in cash >.<
I hate cash
 
get a cashier's check
they clear right away but have a paper trail
cost like $5-10 from your bank
 
2:31 PM
@SterlingArcher Don't "whip it out"
 
too late
@ssube cash still clears quicker lol
 
@SterlingArcher nope
 
Well, I mean I'll get a receipt so it's not like they can pocket the $500 and say I never paid lol
 
user3119231
 
user3119231
even women are doing things, huh?
 
user1596138
2:37 PM
@SterlingArcher lol what? You were supposed to come to Omaha an get all up in Jason
 
user1596138
While I watched
 
user1596138
Eww
 
@Maurize yes, women can code too. They typically don't, thanks to comments like that.
 
@Maurize Is that a joke?
 
user3119231
I will marry her soon, I think. No agreement needed.
 
2:41 PM
You might consider being a bit less sexist before you propose that.
5
justalittlebit
 
user1596138
lol
 
user3119231
@ssube where do you live, that jokes are forbidden? Syria?
 
Getting a little edgy in here
 
sarah drasner is an awesome person who actively tries to make sure sexist people are being made shut up
 
2:44 PM
@Maurize A place where it would be cool to have more women (and variety in general) in tech, but comments like that go a long way towards discouraging them.
 
she does all kinds of wonderful stuff, she's an awesome programmer
 
If it was Syria, you could just marry anybody you saw and we wouldn't be having this conversation. :p
 
and if you want to joke about it, there are a lot of incredible women on codepen
 
@ssube people (not just women) just need to get uglier as a whole. Clearly the problem isn't sexism, it is just that we are too damn sexy.
 
@Cereal saving new snips doesn't work anymore :( but I don't use it anymore so I don't care either :P good job :D
 
2:46 PM
@rlemon That is a real problem for many of us.
 
@Maurize I misread that as "son." I was like... whoa..
 
@AwalGarg Worked for me :(
 
user3119231
@Neil hell, man, try to do some break from coding :D
 
@Maurize I did. I got some coffee.. I think it's the coffee
 
user3119231
2:48 PM
Fuck. my coffee... is cold
 
If only we had the technology to reheat stuff
Or just get another one I guess, that's what I do
 
user3119231
Reheating coffee is like heating up a dead body. It will never be the same bad
 
But it might still taste good
I mean.. err.. sure
 
user3119231
^ badder
 
Wow what did I miss
 
2:51 PM
@AwalGarg Still works for me, actually. What isn't working, exactly?
 
Would like to see a technology that can cool foods like a microwave can heat it up
 
@SterlingArcher Maurize singlehandedly oppressing an entire gender
 
@Cereal no, I wouldn't give him that much credit. He merely made himself look bad
 
and lemon posting some weird canadian version of LMFAO
 
2:52 PM
Theoretically that's possible isn't it? So long as something heats up as much as the food cools
 
user3119231
 
user3119231
however work is done -
 
@Cereal create a snip, edit, switch to another snip, reload. Previous snip contents aren't saved here. Might be a local issue thought, I haven't checked. In any case, don't worry about it. I don't think anyone actually uses it anymore.
 
TRIGGERED
 
Oh shit is that the clanging of metal I hear?
The knights are coming!
 
2:53 PM
There's brass balls joke here somewhere ^
 
@Maurize none of them have shovels, but you obviously don't need one
 
@SterlingArcher relax
 
less triggered
 
user3119231
@ssube women women women
 
@rlemon if those are kittens, I want you to know that I was mauled by kittens as a small child and they cause severe PTSQMNLTPANDFHJSALDF
 
2:54 PM
@AwalGarg
 
chillin ez
 
user3119231
msg = "Time to go home -> I love you all! <3"
 
@AntonínKříž Welcome to the JavaScript chat! Please review the room pseudo-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.
 
see ya @Maurize
 
user3119231
oh before I forget.
 
user3119231
2:57 PM
msg.replace("love", "hate");
 
Don't hat me
 
too late
 
I look terrible in hats
 
I already replaced love with hat
the edited s// failed
 
2:57 PM
wear a trilby
 
@Loktar How will you ever be a dapper old man without a hat? D:
 
By dying before I'm an old man!
 
When you're young, you don't need a hat, but the old uns always do.
 
gotta have some aspirations
 
my gods man, you're insane
 
2:58 PM
The cancer will save me from wearing hats
 
user3119231
What the holy fuck you are talking? I will stay longer in office to watch you discussing.
 
please don't
 
You're going to have to spend a lot of time doing bad things and smoking with cigarettes for that to pan out.
 
@Maurize we are talking about the Syrian proxy war between Russia and the United States.
 
and why it is all caused by hats
 
2:59 PM
Damn proxy hats. It's just a hat on a hat.
 

« first day (1824 days earlier)      last day (3120 days later) »