« first day (1657 days earlier)      last day (3292 days later) » 

9:00 AM
@turutosiya yes..there are items printed when i console.log it
 
Achievement get: delete a question answered by Jon Skeet
2
 
I wonder how Jon Skeet will be like seeing -30 rep.
 
@AwalGarg he gets 200 rep from upvotes before waking up every day so don't worry for him, he didn't lose any rep here
 
I once got one of Jon Skeets answers in the Low Quality review queue. Most. Obvious. Audit. Ever.
 
BTW his answer was better than the other ones. It was just still chit-chat
 
9:08 AM
:(
 
You comment didn't seem very useful anyway...
 
lel xD
 
falafel?
 
And be careful not falling into one trap : getting in an argument with somebody just because you're jealous of his rep. This is super annoying and unfair.
 
THE
!! google async calls, what would be the best way to get alerted when request is back with data
 
@dystroy Lol I knew the question was deleted and the comment would not be posted :D
 
Is there a function that is the opposite of complete for jquery animations? I want to perform some functionality before the hide of my dialog.
 
Had it open in two tabs :D
 
Fights dystroy
 
9:10 AM
Only thing i can find is beforeSend that seems to just be for ajax calls
 
@THE Can't you just use Google normally, instead of spamming the chat?
 
!!google how to google ?
 
._.
 
!!google how not to irritate people on internet chats by asking silly questions which can be answered by googling?
 
9:13 AM
Server error (status 500) occured (message probably too long)
 
LOL
 
haha
 
THE
@dystroy I am making 4 async calls to server, I need to make sure 2nd call data is used to add html elements only when 1st call's data is available,

So I am thinking about making 4 calls at same time, and then use some sort of flag which will be true only when 1st request data is ready,

please give your thoughts
should I use jquery deffered ?
 
Promises
So, yes
 
xhr.onload = new xhr.onload = new xhr.onload = new .... // how not to do it
 
9:17 AM
window.window.window.window.window
 
I am thinking of writing a JavaScript framework... ~_~
Get ready to rewrite all your apps, suckas!
:D
 
@THE yes
@AwalGarg good idea
 
@dystroy you join and we become billionaires?
then I sue you later on
= profit
 
@AwalGarg any example of somebody getting a lot of money from building a JS framework ?
 
@dystroy No. Always good to set up examples!
 
9:21 AM
I've already started : I've won a million $ by writing a free java game in one week
(and a little more work afterwards to help launch the startup, ok, but not so much)
 
THE
@dystroy how true is that ?
 
@THE $(true)
 
@THE 100% true. And the million $ is after I paid a third in taxes
 
lol
Y U NO USE JQUERY!!!
Btw, @dystroy JAVA™ needs your help.
 
Is there a function that is the opposite of complete for jquery animations? I want to perform some functionality before the hide of my dialog.

$('#someHighD').dialog({
...
hide: {
efffect: 'explode',
duration: 1000
},
...
})
 
9:23 AM
longer story : I brought my game against shares in the startup I cofounded. I didn't work in the company but I gave advices. We sold it to Mattel years later.
 
!!google mattel
 
:O
 
@AwalGarg, Are you serious, If so, than I will be the first learner :)
 
Yes, for more information type @ then rlemon.
 
9:26 AM
@AwalGarg, Could you please share the plan for js framework, I am really intrested in contribution.
 
-_-
 
var myFramework = $
 
var myFramework = {'M': $, 'V': React, 'C': _};
 
dependencies, can we use dojo or other libraries for M
 
imma bored. cya laters.
 
9:30 AM
var yourframework = {'M':'choose among 10', 'v':'choose among 5',c:'choose among 100'}
Any one who know about webrt, getUserMedia Api, getUserMedia Api is currently not supported in opera and safari. do we have any subsitute or work around.
Help will be really appreciated.
 
THE
@dystroy must be in news then ?
 
noone can help? :(
 
@THE That was about 10 years ago and as with any operation of this kind it can hardly be publicized and sellers and buyers can't give much details (it's in the contract). A detail I can give : the contract (yes, the contract) with its annexes was more than 8 kg and involved many lawyers...
And we had to paraph all pages... and there was a dozen copies
 
lol
how long did that take
 
I think it took about half a day but I'm unsure. It wasn't in just one go
@THE You may google "mattel buys sekkoia"
15 years ago in fact
 
9:47 AM
Anyone has hacked postMessage to deep clone objects?
 
what do you mean ? They're already deep cloned
(unless you use a very old browser)
 
@dystroy Say I have to deep clone an object. Copying it will ofcourse copy by ref. So I create a temp iframe, postMessage that object to it, browser deep clones it, iframe sends it back. Object deep cloned. Iframe sent to be slaughtered.
 
Very inefficient
could you at least cache the frame?
 
is there a problem preventing a simpler cloning (for example with JSON) ? Is your object recursive ? Too deep ? Containing forbidden properties ?
 
@JanDvorak hmm, what if the frame's origin is a data url or something?
@dystroy Just experimenting, nothing to be pushed in production.
 
9:54 AM
This might be a nice kata, actually
 
wtf is kata?
 
mhmm
 
@AwalGarg and why not just
var clone = JSON.parse(JSON.stringify(source));
?
 
@dystroy Functions?
 
10:00 AM
what ?
 
@dystroy It can't even clone blobs :/
 
You want to deep clone objects with functions ? Your design is strange and very probably bad
 
@dystroy what, no?
 
@dystroy var a = { foo: a }
 
postMessage won't work with functions...
y u no read :(
 
10:03 AM
postMessage does not work with functions. But according to MDN they can handle recursive data structure.
 
I was referring to @MadaraUchiha comment. But now I get your goal even if you probably have a design problem when you clone objects containing blobs
 
10 mins ago, by Awal Garg
@dystroy Just experimenting, nothing to be pushed in production.
 
Can somebody help me understand this problem? to be specific that returns the interval of all values f(t) such that t is in the argument interval x
 
no
 
lol
 
10:06 AM
Unless you state the problem.
 
Q8. Write a function quadratic that returns the interval of all values f(t) such that t is in the argument interval x and f(t) is a quadratic function:

``f(t) = a * t * t + b * t + c``
 
what
How is this JavaScript related?
 
I need to write both javascript/python for this.
 
Then write.
 
OK. you guys only talk in terms of html using javascript, fine
 
10:08 AM
no.
 
10:22 AM
hello guys. Is there a way to change the screen resolution show in the browser window? I mean if I use 800 x 600 and open this site http://www.whatismyscreenresolution.com
I want it to tell 1280x768
thanks in advance
 
yes
 
You're welcome in advance
 
@rlemon thanks for the kick message. so that i know the name of the mofo that got me banned for 30m
 
@dystroy how?
 
@Worf >:)
You could have just asked.
 
10:24 AM
@rlemon lol
 
@MadaraUchiha i hope someone gets medieval on your ass
 
@Worf what ? I don't know what you're speaking about
 
morning backup room. will annoy you for 30 min if you don't mind
 
@dystroy The HTML room
 
I don't pretend I didn't ban you but I don't remember
Who's that retard ?
 
10:26 AM
@Worf To be fair, you've been getting kicked for a while now every time you post that (and not just by me)
And 2. I didn't know it was your third :P
kick instincts TINGLING
 
i'm not giving up deal with it @MadaraUchiha
 
Did I ban somebody from the HTML room ? I'm sure I'm not even a room owner in that room...
 
@dystroy No one was talking about you lol
 
@dystroy nope, we are just kidding
 
@Worf do you think if I kick you now it would still count as a third kick with 30 min?
 
10:27 AM
@MadaraUchiha OK..... I misread that.... got merged with the next message ^^
 
Even though no one kicked you from here yet?
 
@MadaraUchiha you can try it, but i know where you live and i have a showel
 
:D
 
@macroscripts did you see the image ?
 
10:29 AM
n00bs
 
reported
 
!!tell 23015525 xkcd this incident will be reported
 
it's just to scare noob people
 
10:46 AM
I know this troll. Keeps irritating me :/
 
10:58 AM
me?
 
i didn't have expected to see this answer , which doesn't add something to the thread.
question got asked in 2011, answer is already there, and he posted that in january this year (2015 ...)
 
11:12 AM
HTTP doesn't use binary messages, so what instead?
 
@StevensHaen Context? In the end everything is binary
 
Ben must be afk : I just answered a question that was left hanging for more than 10 minutes...
In other news, it looks like there's still not a lot of JS coders on SO able to answer a Promise question...
(and I'm not one of them, I just throw random shit in hope it's true)
 
@RoelvanUden It uses ASCII messages instead
 
@StevensHaen And ASCII is just an agreement on the ordering of bits to represent certain things
Like I asked, what is the context for your rather vague question?
 
It's HTTP header messages
 
11:18 AM
only http headers are ascii, body can be text of any encoding or even raw binary data
 
I have no idea about ASCII
 
Note that it's changing : HTTP2 is no longer text based
 
And WebSockets aren't either
 
@Zirak look lol, someone invented global objects for ReactJS
 
Is websocket and persistent connection the same thing?
 
11:21 AM
no
 
no
 
But you should have a look at wikipedia to get that clear
!!wiki websocket
 
WebSocket is a protocol providing full-duplex communication channels over a single TCP connection. The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011, and the WebSocket API in Web IDL is being standardized by the W3C. WebSocket is designed to be implemented in web browsers and web servers, but it can be used by any client or server application. The WebSocket Protocol is an independent TCP-based protocol. Its only relationship to HTTP is that its handshake is interpreted by HTTP servers as an Upgrade request. The WebSocket protocol makes more interaction between a browser and...
 
11:23 AM
2011.. was it that old already? I'm getting old.
 
Does the POST method also use the URL partially?
 
Yes, paths are relative. There may be a Host header that tells the server which domain requested, and modern browsers always send it, which is used to figure out which site to serve the relative path from.
 
#no
websocket breaks the HTTP protocol
 
Because it is not about HTTP?
 
When I make an HTTP request, does the cookie/cookie number get included in the header?
 
11:36 AM
yes, cookies are included in http requests
 
Websockets can be used out of browsers too, right? Unless I am totally stupid :/
 
As long as your environment supports them, yes
 
that reminds me of socket programming exercises
binary byte streams @_@
 
jsfiddle.net/h67zhLzL/2 get the last class name but not the one I want ?
I've tried $("div").attr('class').split(' ').pop().not("mychoice");
but that's not working and throwing error
 
11:47 AM
@user2736704 What?
 
@AwalGarg Sure they can, just like regular HTTP requests :P
 
What is the purpose of the proxy server, other than being a firewall?
(why are they using it as defense?)
 
@StevensHaen google.nl/…
 
I want the last class but not the one I specified
e.x third https://jsfiddle.net/h67zhLzL/2/
 
@RoelvanUden hah! right :P
jsbin.com/qiwizetora/1/edit?js,console,output sorry forgot to check id, now corrected.
 
11:49 AM
$('div:not(.third)')
 
@BenFortune that's not working
try it
TypeError :
 
turns off desktop notifications
 
that's off for the session
 
morning
 
Can I use grunt without node.js?
 
11:55 AM
No
 
Coming from a C# background, I'm used to writing repeating UIs (say, like displaying an array of objects as a repeated template bound to the object values) using some sort of repeatable control, like ASP.NET's Repeater or WPF's ItemControl. But looking for similar Javascript/JQuery solutions for web pages, I couldn't really find anything comparable. Am I missing something?
All the solutions I found were along the lines of "Run a for loop over the data and call a function that builds HTML elements with string replacements"
 
That sounds about right
 
The solutions are correct.
 
@AvnerShahar-Kashtan React classes can solve that, but Vanilla JS solutions are equally clean.
 
Hmpf. Spent years migrating from the WinForms "create controls in code" mindset to the WPF "Declaratively link repeater controls to to data templates" mindset, and now I have to switch back. :)
 
12:01 PM
underscorejs.org/docs/underscore.html#section-172 huh. It is a library, so it can use new Function.
:/
 
But JavaScript isn't WPF.
 
!!afk
 
No, it isn't. But there are projects - like Angular or KnockoutJS - which bring the declarative model to JS.
Unfortunately, this project isn't using these frameworks.
So I was trying to find a framework-neutral, as much as possible, solution for this specific feature.
 
@AvnerShahar-Kashtan Angular is a lot like WPF
 
@RoelvanUden I know, I know. I would have loved to use it here. :)
 
12:03 PM
I think React is pretty similar too..
Although my knowledge on the latest fad that is React is limited
 
I read a couple of comparisons between React and Angular which seemed to favor React, but they all had that, as you say "faddy" feel to them.
 
If the extra kilobytes of client code are acceptable then both React and Angular can be used for smaller parts of an app, it doesn't have to be introduced all over
 
"This latest thing is the greatest! Last month's greatest thing is a steaming pile of dung! This latests thing will always be the best, at least until next month!"
@ivarni I'm less concerned about bandwidth, more about leaving this (temporary, for me) project with code that the on-site team can continue on withh.
 
As much as people mock Angular, I can't wait for 2.0
 
THE
can you see anything wrong with this >
var data = CallMethod("/website/RESTfulService.svc/LiveLocation/json", "{ x: "1", y: "2" }");

function CallMethod(pUrl, pParameters) {
     $.getJSON(pUrl, pParameters)
	 .done(function (data) {
        return data;
    })
}
 
12:06 PM
I don't want to introduce complex new models and dependencies for just one bit.
 
I am one of those who mock Angular and I'm still excited for 2.0
 
s/>/v
 
@THE It seems like you're returning the data from the internal callback method, not from CallMethod itself.
 
THE
oh
 
Your done method is unnecessary, just return $.getJSON.
 
THE
12:07 PM
all i wanted is the data on request complete
 
Unless you're manipulating data before returning
 
@THE Read this
908
Q: How to 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. f...

 
hello
 
@THE $.getJSON() is asynchronous, meaning CallMethod returns before the request is complete.
 
THE
@dystroy very nice thanks, it was my next concern
but at this point, is it okay to send parameters like this "{ x: "1", y: "2" }"
 
12:10 PM
But it returns a promise
Which is fine
Obviously as long as you're handling it correctly
 
good morning all
 
@BenFortune Haven't really worked much with promises in js. Is it a completely transparent proxy that I can treat as if it's the presumably returned object?
 
0
Q: How do I change parent page url based on if url of iframe is changed?

SkullomaniaI have a survey monkey survey, and after I make my selections and click submit I notice that the page url changes. I know that because of same origin policy my original idea to use jQuery to figure out if a submit occurred in the iframe will not work. JSFiddle code below: jQuery(document).ready(...

 
@AvnerShahar-Kashtan no. It's more of a monad
 
@AvnerShahar-Kashtan You can see a Promise much like a C# Task<T>
 
THE
12:12 PM
is it okay to send parameters like this "{ x: "1", y: "2" }"
 
@RoelvanUden That's what I thought.
 
or Haskell's IO a
 
@AvnerShahar-Kashtan Where .then is like .ContinueWith and .catch is like ... uh ... whatever C#'s error catch thingy is for tasks
 
But the OP's assignment of the promise into data made me wonder if JS does any syntax magic in accessing the deferred data implicitly.
@RoelvanUden .ContinueWith(()=>{}, TaskContinuationOptions.OnlyOnFaulted), sadly enough.
 
@AvnerShahar-Kashtan yield/await
Unless I'm confusing the latter with C#
 
12:16 PM
@JanDvorak async/await
 
yield is for within coroutines, isn't it?
 
@JanDvorak Yeah, if you use the async/await syntax, you simply wrap it with a try/catch, there's no special syntax.
 
In JS, yes, you yield a Promise and the coroutine continues the generator function when the promise is fulfilled, or throws on generator when not
In C# yield is only used as yield was intended for in JS, yielding results and not control flow constructs
 
@JanDvorak yield is to return control from the function and continue from there when it's called again, yes.
 
oh. Nice
 
12:18 PM
Guys, is there any one around that has good knowledge in JQgrid ?
 
so far I've got two computers done (in my office) covertly installing Wurstify
 
I want to know how can i see this data before post because i want to modify it , "rules":[{"field":"name","op":"bw","data":"A"}]
 
@rlemon Can't you just add it to the company proxy (if you have one)
If not, just MITM :)
 
@BenFortune hrm, I could. but I'd have to open the extension and see where they are sending the shit
right now I feel all James Bond
sneaking around
it is hard, I have to wait for them to unlock their pc and then walk away and forget to lock it
 
hahaha
 
user2620028
12:30 PM
@rlemon typically when someone left their computer unlocked and walked away we would go over to their computer and email everyone else in the office saying they were buying lunch lmao
 
oh?
we were just sending mails to everyone saying "I'm gaaaaaaaaaaaaaaay"
 
inb4 sacked for malicious intent
 
wurstify is great on facebook
 
user2620028
@florian you never got any free lunches did you?
 
You can always proxy all images through http://mustachify.me/?src=
Doesn't work quite as well as wurstify though
 
12:33 PM
what's wurstify? Does it add a beard and breasts?
 
Why isn't it possible to create new rooms anymore?
 
@HatterisMad we used to "own" them. change their background to something funny and lock their pc (showing said background in the xp days)
@ziGi because it is?
 
using
<iframe src="https://www.research.net/s/MXR28FT" id="surveyMonkeyInfo" scrolling="no" frameborder="no" onload="alert('Test');"></iframe>
i can tell when the iframe loads the first time and every other time...how do I simply tell when the iframe has loaded the second time?
 
count the occurences?
 
12:37 PM
@ziGi wow you sure get serial upvoted a lot
 
@JanDvorak how?
 
I was checking your rep to see if you even had enough to make new rooms
that is some crazy rep history
 
@Skullomania keep an integer somewhere visible
 
@JanDvorak here is what I have tried....what I am trying to do is change the parent based on whether the url changes in the iframe....currently I have it set to an alert
http://jsfiddle.net/Omacnificent/Ly2vu9Lw/
 
@Skullomania You can't see what's inside the frame. Security issues. The frame src property might be useful.
 
12:41 PM
lol @ wurstify, unfortunately it could do with slightly better error handling, if it can't fetch the bearded image it still tries to replace the original
 
am I not allowed to use that if it is the only iframe I have on the page?
 
nope
 
@KendallFrey ooooo
#spaceSelfie
 
@rlemon how do I check that? It might be possible, I am not sure why I get that
 
@ziGi on your profile, activity tab, reputation tab.
 
user2620028
12:45 PM
@rlemon a ton of options are now gone from the down arrow to the right of the users picture in chat, appears as though they show up again if i click on the users chat picture however
 
:shrugs: I have no issue
 
@rlemon I still don't know how to create a room, there used to be a button before
 
there still is
 
where
 
bottom right
ugh sigh.
STOP ONEBOXING IT BREAKS THE LINK chat.stackoverflow.com/
 
12:47 PM
I only have "Show frozen rooms"
 
then the priv was removed for you, or they upped the rep needed
 
is it possible that my profile is set to not able to create rooms?
 
I have a button
@ziGi I'm not aware of any settings for this, but it is possible I suppose they blocked you from making rooms
 
Awarded At: 100 Reputation
 
you do have 54 rooms which like 51 are frozen or deleted
might be a factor?
 
12:50 PM
 
ask a mod, I can do nothing but speculate
 
@rlemon must be I guess
 
@Skullomania same issue
 
user2620028
@rlemon It only looks like two occurences that ziGi had quite a few points removed by a user being deleted. And if i remember correctly the same user that got deleted had downvoted A LOT of people in the JS room because we all noticed a swing in our reputation on the same day and then noticed that a single user got deleted and was the cause for it.
 
i called the iframe ID in this one
 
12:52 PM
Some people should just not have chat room creation permissions, and we can all go on living our lives
 
hehe
he doesn't understand
he's getting angry
 
user2620028
To be fair when that user downvoted me it was probably for the best ( i had bad answers to questions haha )
 
user2620028
Well..... I need to go through all of my answers and edit them to not be crap
 
user2620028
Does anyone else here listen to Bob and Tom in the morning?
 

« first day (1657 days earlier)      last day (3292 days later) »