« first day (1307 days earlier)      last day (3648 days later) » 

12:00 PM
yay questiondump
 
@BartekBanachewicz What's that?
 
@user3636439 Why posting a question with an accepted answer ?
 
@Neil mathematical symbol for a bottom type
In type theory, a theory within mathematical logic, the bottom type is the type that has no values. It is also called the zero or empty type, and is sometimes denoted with falsum (⊥). A function whose return type is bottom cannot return any value. In the Curry–Howard correspondence, the bottom type corresponds to falsity. Computer science applications The bottom type is a subtype of all types. (However, the converse is not true -- a subtype of all types is not necessarily the bottom type.) It is used to represent the return type of a function that does not return a value: for instance, o...
I guess explaining that ruined the joke
 
its shows calender on second click. when i click on input its shows nothing . and when i click some where else and again click in the input the it shows me calender
 
@UmarFarooq that's fascinating
 
12:04 PM
@UmarFarooq you mean the question isn't solved ? Then why did you accept the answer ?
 
ok i unaccept it.. know tell me..
 
@Alfred 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.
 
Hello, guys
1
Q: Node js HTTPServer/StaticServlet POST request

AlfredTKI am relatively new to Node js. I have built Node js / Angular Application based on angular-requirejs-seed However, I found scripts/web-server.js confusing as I used to develop node js server with express. Particularly, I want to implement file upload, but at least, I want to know how I can i...

this is my question, I am generally seeking for node js help
not that node/express help, but web server using 'http' module
 
@Alfred it's not your question
 
There are two parts in a file upload : client and server. Is the client part clear for you ?
@BartekBanachewicz I guess he has several accounts
 
12:07 PM
yup, that's why I'm flagging it
 
In fact Alfred is just the chat name
 
what about my question??
 
@user3636439 nobody cares about it
 
@BartekBanachewicz Having several account on SO is legal I think
 
^--
 
12:08 PM
@dystroy I don't think so.
 
thats why i dont come into chat section .
 
In this instance, I think it's one account anyway, but having Alfred commenting would help...
 
JavaScript is awesome and Haskell is horrible and it sucks
@BartekBanachewicz what you say is wrong,
 
hi @Benjamin :)
 
@BenjaminGruenbaum not subtle enough
 
12:09 PM
!!afk gonna watch some tv
 
@Bartek, well, I forgot my login details, I tried to type my email, but they say they didn't find it. so that's why I am
having two accounts,
if that's not legal, I can delete the other account.
 
@Alfred you should ask moderators for merge
 
thanks.
 
Merging would be cleaner but it's no big deal
 
so merging is first or may I stand here for you guys thinking about my question?
 
12:11 PM
@dystroy I have 3 SO accounts
It better be legal
 
lol
 
@KendallFrey Damn, I only have two. One is for a bot.
 
okey, maybe I was wrong
 
Me, bot, test account
 
sockpuppeting isn't legal though :P
 
12:11 PM
^
 
@BartekBanachewicz just don't make any interaction between your accounts and it's fine
 
sorry, I bring up wrong topic, :P
 
I updated my questionm anyone have any ideas?
0
Q: Video.js and 404 console error: Why the error despite having file on server?

redshiftI'm trying to get a background video to work on my sandbox site here but for some reason I'm getting a "404 Not Found" on the video.js file that is supposed to enable background videos. However, I do see the video.js file when I click on the line# in console. So, why am I seeing a 404 in console?...

 
@redshift Please post the relevant code in your question.
@Alfred no worry. Did you see my question about client/server ?
 
Jon Skeet's test account has 12000 reputation.
 
12:13 PM
@dystroy but it's a console error, so how would i post that from console?
 
@dy
 
@KendallFrey This is terribly wrong...
134
Q: Support for "border-radius" in IE

Tony the PonyDoes anyone know if/when Internet Explorer will support the "border-radius" CSS attribute?

 
sorry, @dystroy, would you kindly post a link to your question?
 
7 mins ago, by dystroy
There are two parts in a file upload : client and server. Is the client part clear for you ?
in short : do you POST the file ?
 
yes, but actually I have experience handling file upload with express, so thinking they are same, I would like to first no about 'post' with it
I found this helpful
http://stackoverflow.com/questions/12006417/nodejs-server-that-accepts-post-requests
but you know, the angular js sample is creating a http server with this piece of code
new HttpServer({
'GET': createServlet(StaticServlet),
'HEAD': createServlet(StaticServlet)
}).start(Number(argv[2]) || DEFAULT_PORT);
 
12:17 PM
@Alfred is a troll account right?
 
lol
 
I mean, java/node/angular in the same question...
 
can I ask a stupid JS question?
 
trust me, it won't be stupid
 
@BartekBanachewicz yes
 
12:18 PM
I am using a library, and I am wondering how bad is using arbitrary properties in its objects.
 
you mean adding properties on objects you don't own ?
 
@BartekBanachewicz @dystroy speaks for himself
 
it's baaaaad
 
@dystroy precisely.
 
well, might work right now, but if you ever upgrade... uh, well.
 
12:19 PM
@FlorianMargaine, I am not sure what you mean by 'java/node/angular in the same question'
 
@FlorianMargaine or if the library upgrades :F
@dystroy Ah, I was hoping for a nice read. Thanks.
 
@BartekBanachewicz I meant "if you upgrade the library", my bad
 
either way, makes the point even more pronounced
 
> As a side note, I find Kant’s question incredibly relevant to any system that must scale.
 
12:23 PM
Kant ? Emmanuel Kant ?
 
Hmm, would have been a good article, but not sure where Kant fits into adding properties to objects you don't own
@dystroy Yep, that one
 
@akshay 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.
 
has anyone faced a similar issue with ajax?
http://stackoverflow.com/questions/23669436/ajax-callback-function-behaving-randomly-what-have-i-done-wrong
 
@Neil oh ok. Now did read the article. It's OK. Will go on posting it everywhere.
 
1
Q: Ajax callback function behaving randomly. What have i done wrong?

akshayI have following ajax function that behaves randomly. Sometimes alert success finally is displayed. On other occasions, second alert that is Failure: my status is 500 is displayed. promptId is passed on from the calling function. I have checked the prompturl and promptId. A valid value of promp...

 
12:24 PM
Sounds like he had a philosophy course that day and really wanted to share what he learned about Kant with someone.
Not bad, just.. weird
 
This quote was a little childish, yes
 
It'd be like talking about African colonialism in the 18th century during my blog about best practices in javascript
 
An active access token must be used to query information about the current user.
 
Well... if you can make it obvious that people who don't agree with you are probably slave traders you win
 
i got this error
when i want post in FB wall use of my apps
 
12:28 PM
I see you @drch
 
function SubmitPost() {
    try {

            var wallPost = {
            message: "post in fb" ,
            picture: '',
            link: '',
            name: 'test app posted in your wall',
            caption: '',
            description: ('Test description')
            };
            FB.api('/me/feed', 'post', wallPost, function (response) {
                   if (!response || response.error) {
                   /*action*/
                   alert('Message could not be Posted.');
                   alert(response.error.message);
this is my code
 
harro
 
@square Well what error did you get?
 
@square Are you logged in and authorized? Does your application have proper scopes/permissions ?
@square check status with this code: FB.getLoginStatus(function(response) { console.log(response); });
And if you're not logged in you need to be
There's a FB.login function which takes a callback and an object as parameters
like this:
FB.login(function (response) {
    if (response.authResponse) {
        // authorized
    } else {
        console.log('User cancelled login or did not fully authorize.');
    }
}, {scope: 'user_birthday'});
When you need information about user's birthday of course.
 
hey @Miszy
 
12:37 PM
@t1wc Hi Cicada
 
@Miszy
 
1
Q: Ajax callback function behaving randomly. What have i done wrong?

akshayI have following ajax function that behaves randomly. Sometimes alert success finally is displayed. On other occasions, second alert that is Failure: my status is 500 is displayed. promptId is passed on from the calling function. I have checked the prompturl and promptId. A valid value of promp...

 
function login() {

    FB.login(function(response) {
             if (response.authResponse) {
             var access_token = FB.getAuthResponse()['accessToken'];
             alert('Access Token = ' + access_token);
             alert("Welcome!  Fetching your information.... ");
             console.log('Welcome!  Fetching your information.... ');
             FB.api('/me', function(response) {
                    console.log('Good to see you, ' + response.name + '.');
                    });
@Miszy need help
check my code
An active access token must be used to query information about the current user this error i got
 
@akshay what browsers do you need to support?
 
mozilla, IE , chrome
@Benjamin
 
12:47 PM
@Neil
check my error and code
 
@square It means "insufficient privileges or an expired access token"
 
it means ponies
 
An active access token must be used to query information about the current user
 
@square Are you using oauth for authentication?
 
Yes, you're not logged in
 
12:49 PM
@akshay which IE
 
each time i need to call login method
when i want to post
 
@Benjamin IE>=8
 
Mornin' 17
 
@square No. But you need to be sure whether current user is authorized or not. You can check that with FB.getLoginStatus function.
 
@Benjamin but i think this might not be a browser problem as this is getting reproduced in each browser
 
@akshay so why do you have that huge getNewHttpRequest piece of code? It's worthless, you can simply do var request = new XMLHttpRequest
Also, while I dislike shoving jQuery at things, I'd use it here
.data and $.ajax would save you about 30 LoC here
 
so insite submitpost method . i need to call
getstatus
 
@square Yep
 
@Benjamin I used it, to test on IE 6, though you are right, i can remove this redundant code now.
 
Check if user is logged in, and if so, submit, otherwise throw an error or do nothing
 
12:54 PM
@akshay IE6? Which year are you from?
@Neil or if user is not logged in call FB.login again
 
@Benjamin Though i agree with you but i can not use jquery here.
 
@Miszy Seems like that would make the function a bit too "high level" for my tastes, but that's also a possibility
 
@akshay also, you have that ugly onReadyStateChanged code - why?
 
@Benjamin: haha, i am in 2014 only. However, i was just testing it for older sites
 
The caller should probably perform login in that case
 
12:55 PM
@nell can u give me code here . where i need to change pastie.org/9178429
pastie.org/9178429
 
@Benjamin, please shed light on ugly part of "onReadyStateChanged "
 
@Miszy
 
var xhr = new XMLHttpRequest;
xhr.open("GET",yoururl);
xhr.onload = function(response){
    //access response here
}
xhr.send()
@akshay Why not that ^ (onreadystatechanged is for ancient browsers, and hooking on partial replies)
 
@square I don't often tell others how to code their own programs, because that's precisely how you learn
You know what the code should do, so make an attempt
 
ok @Neil i will try
 
12:57 PM
@square If it doesn't work for another reason, then post it here and maybe we'll help you out
 
@Benjamin I am a newbie and i thought i would be keeping my code cleaner this way. But it turns up, i am making it ugly
 
@Neil thanks
ok first i will try
 
@Benjamin lemme try onload instead of onReadyStateChanged
 
@akshay you should also serialize your parameters, appending them with & is really ugly
Steal the serializing function from stackoverflow.com/questions/1714786/… , don't be in charge of escaping everything.
 
@dystroy the article begs a question, though. Don’t override methods, don’t add new methods, don’t remove existing methods. Then why was that very possibility left at the core of the language? I was under impression that the dynamic object extension and duck typing were the selling points of JS? //cc @Benjamin
 
1:01 PM
 
@Benjamin you have presented a cleaner way. However the error i was receiving might not be due to the serialization because i printed it in console and it was accurate. But i will definitely use serialization to clean up the code
 
this is.. sick
there you go.. all the love for cats
CATS ARE THE SUPERHEROS
 
@trueblue 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.
 
@BartekBanachewicz first order functions, being everywhere, great community, lots of libraries and simplicity are the selling points of JS. Duct typing and dynamic object extensions (mixins generally) are a strong suit, but not a selling point. It's a gun you can definitely shoot your foot with, but it's powerful.
 
@Neil now i am geting loged in status but posting the post i got this error:
(#200) The user hasn't authorized the application to perform this action
 
1:04 PM
@BartekBanachewicz Well, the point is about extending objects you don't own. And any rule can be broken sometimes. Experience is here to let you decide. In doubt, don't extends those objects.
 
@square Hmm, it sounds like the user has to approve of the application first?
 
ok show where i need to write that code
user can approve
 
in the editor
 
Unfortunately I'm not that familiar with facebook api
 
@BartekBanachewicz What if you include two libraries both adding a property with the same name to Array.prototype?
 
1:07 PM
I'd comment on that behaviour in a few short and strong words.
 
@Miszy ES7 protocols :D
 
this is my code
 
@BartekBanachewicz Another problem is that many functions iterate and you might not know them. Extending means taking many precautions. Relevant, a question I answered yesterday : stackoverflow.com/questions/23655807/…
 
@BartekBanachewicz fwiw, Brendan Eich is on your side and supports 'prollyfilling'
 
@Benjamin i tried this:
var xhr = new XMLHttpRequest;
xhr.open("GET",yoururl);
xhr.onload = function(response){
//access response here
}
xhr.send()
doesnt work
 
1:08 PM
@dystroy You can add a property with enumerable: false so this is solved ;P
 
i cant understand what the problem is
 
@Miszy read my answer : that's what I did...
 
oh while we're at it @Miszy, why does lodash use _ at all? Why aren't those all free functions?
WRT to what Kuba said about "you write free functions everywhere and that's weird"
 
@BartekBanachewicz Because you don't want to pollute the global scope?
 
2
Q: (#200) The user hasn't authorized the application to perform this action

user1400290I am trying to build a Facebook app using Js file provided by them. I am able to get User Registered for my App, But I have to post Feeds on their wall (also I don't want the Pre-Confirmation message for the User's Approval, User should only Login into his/her account). Following is the Code: <...

 
1:11 PM
@BenjaminGruenbaum Whaat, I can't find it on es-discuss. Is it like polymorphism?
 
@Neil i used this
only
but problem not solved
 
@square Did you add a scope?
 
And are you approved to post on that particular wall?
 
@lschessinger 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:14 PM
yes @Neil
 
@square Have you tried logging in with the user and password you provided and posting on that particular wall?
 
this is my login method here i have added scope
function login() {

FB.login(function(response) {
if (response.authResponse) {
var access_token = FB.getAuthResponse()['accessToken'];
alert('Access Token = ' + access_token);
alert("Welcome! Fetching your information.... ");
console.log('Welcome! Fetching your information.... ');
FB.api('/me', function(response) {
console.log('Good to see you, ' + response.name + '.');
});
} else {
alert("User cancelled login or did not fully authorize.");
console.log('User cancelled login or did not fully authorize.');
 
Without using javascript I mean
 
@Neil i did not get your point
 
@square I mean sometimes the only way to understand why your program can't log into a database is to attempt to log into that same database without a program
 
1:17 PM
0
Q: How to convert Node object into Socket?

user3627020I want to know how to convert a object of Node type into Socket type. I want to iterate through the LinkedList which is of type Node and send the message to next Node present in the LinkedList, to do so i have to convert each Node object to Socket, so that i can use getPort() method to get the p...

 
Sometimes you discover that it isn't how you wrote the code but something else that's being kept hidden because you're using a program
 
function facebookWallPost() {
    console.log('Debug 1');
    var params = {
    method: 'feed',
    name: 'meltdownchallenge Dialogs',
    link: 'https://www.meltdownchallenge.com/',
    picture: 'https://www.meltdownchallenge.com/images/logo.jpg',
    caption: 'Reference meltdownchallenge',
    description: 'who said Losing weight can not be Fun, meltdownchallenge apps coming soon on ios and android .'
    };
   console.log(params);





    FB.ui(params, function(obj) { console.log(obj);});
}
i used this method
i am able to post
but i dont want dialog
so i used that method but in that case error is coming
 
@square Well in one you're posting to a wall and in the other you're launching a game I presume
There may be other considerations that wouldn't be true for launching a game
 
so how can i solve this issue
@Neil
full day i worked but did not get
solution
 
> Okey, now I'll just overload this operator. : Bartek.js™
 
1:24 PM
@square My advice is to take that error message and search for anyone with the same problem on google
Sooner or later you'll find someone who had the same problem as you for the same reasons
I can't help you that much, because I have 0 familiarity with facebook api
 
ok
@Neil
i will post qus in stoverflow
 
@square thats not exactly what he said.....
 
@MattMcDonald 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.
 
TypeError: Cannot read property 'outputEndpoints' of undefined
sigh
why you couldn't tell me that when you loaded my file
"connections":[{"sourceId":"1","targetId":"2","sourceEndpointNum":0,"targetEndp‌​ointNum":0}]
woo it works
 
Yo guys
 
1:36 PM
much MVC
very DOM separation
 
wow overused and unfunny meme
 
so true
 
every time I see it I want to die
 
you're not very efficient in killing yourself then
 
thanks, you too
 
1:38 PM
very die
much overused
 
such ellipsis
 
...
 
@DrogoNevets then i can do
 
1:40 PM
...
 
search
 
OH ! A Cobol question !
2
 
...
 
IT WOOOOOORKS
oh my
 
@dystroy WUT
 
1:42 PM
@dystroy WOW
@RyanKinal lol, same reaction
 
Great minds ;-)
 
@FlorianMargaine In fact, there's not so rare : stackoverflow.com/questions/tagged/cobol
 
3
A: Suppress Leading Zeros in COBOL

MagooIn W-S 05 FORMATTED-INTEGER PIC Z(04)9. 05 FORMATTED-CURRENCY PIC Z(08)9.99. in 700 DISPLAY 'Total Payroll Recs : ' PAYROLL-COUNT. becomes MOVE PAYROLL-COUNT TO FORMATTED-INTEGER. DISPLAY 'Total Payroll Recs : ' FORMATTED-INTEGER. and follow the bo...

hahaha
 
oh my that really works
hm or not
 
1:46 PM
 
@rlemon :saves for later:
 
Do you think coffeescript is worth learning?
 
does anyone else getthe feeling of being trapped when at work?
 
@DrogoNevets get a new job
 
!!s/(.+)script(.+)learning/$1$1drinking/
 
1:50 PM
@RyanKinal Do you think coffeeDo you think coffeedrinking? (source)
 
@NatZimmermann There's not a lot to learn. The question is rather is it worth using
 
Awww, fail
 
@dystroy Yeah I like the way it is more readable and often uses less code, but it just seems like a lot of effort since I understand the javascript syntax
 
@NatZimmermann so?
that's like saying "why would I bother learning a for loop if I can just repeat my statements a few times"
"I already know how to copy lines of code"
 
@rlemon i like this one, i just like being outside on nice sunny days!
 
1:54 PM
@BartekBanachewicz Good point, do you use coffeescript?
 
@NatZimmermann nope.
 
@NatZimmermann no, that's not a good point
seriously...
 
I'm so conflicted
;_;
 
Wow. I just realized exactly how severely I failed that regex.
<--- not paying attention, apparently
 
@NatZimmermann you can always learn Haskell instead
runs away
 
user1596138
1:57 PM
lol gotta love fire hydrant geysers in town
 
Fortran?
 
@BartekBanachewicz or main Brainfuck, I've heard it's really helpful
 
1
Q: Facebook wall post error : The user hasn't authorized the application to

squaregot error when i want to post text in facebook wall . this is my code function logout() { FB.logout(function(response) { alert('logged out'); }); } // i am able to login successful . using this method . function login() { FB.login(function(response) {...

 
@NatZimmermann dunno, Brainfuck is an esoteric language.
 
any help
 
1:58 PM
@BartekBanachewicz binary then
 
binary what
is there a PL called "binary" I am not aware of?
@NatZimmermann whistles
 
yeah I'll write you a quick script: 0110011001110101011000110110101100100000011110010110111101110101
 
that's a number
 
@Miszy\
 

« first day (1307 days earlier)      last day (3648 days later) »