« first day (1287 days earlier)      last day (3662 days later) » 

8:00 AM
really?
-2
A: how to return function value in javascript

user3552692you can not put braces after return statement. you have to return a concatenated string.

 
@Peter 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.
 
@Connor is their defence, the simple mistakes are the most easily missed
 
@DrogoNevets "you have to return a concatenated string"?
Mind you, I respect the guy for trying to help, but it's just... no
> “No one has ever become poor by giving.” ― Anne Frank
!!google anne frank
 
@Connor Could not process input. Error: a.push is not a function on line 32
 
!!> a.push = [].push
 
8:05 AM
@Connor "ReferenceError: a is not defined"
 
dam
 
Did I fuck up the bot?
!!google blah
 
@Zirak Could not process input. Error: a.push is not a function on line 32
 
@Zirak Yep
 
Yesserini
 
8:06 AM
broke forever
@Zirak virus from pornhub isit?
 
Totally.
 
@Connor thought you were no-ing the OP
 
@DrogoNevets I linked an answer
Jan, I'm pinching your quote
 
yea its only just 09.00 on a friday, my brain isnt working!
 
@Arindam 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.
@DavidBainbridge 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.
 
8:14 AM
i want my bed
 
@mulrali 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.
 
thanks
 
@Ronald 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.
 
people being quiet today!
 
@Elbonian 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.
 
8:27 AM
!!refresh
!!google foobar
 
@Connor Fixed.
 
WTF is foobar2000?!
 
!!urban jerk:7
 
8:28 AM
@Connor No definition found for jerk [7]
 
@Zirak how do you do the number thing?
 
@Connor No definition found for jerk:7
 
!!urban jerk 7
 
@Zirak jerk In medival Europe,masturbation was considered to be on the brink of insanity. So as an insult, people would call each other "jerk-offs", and soon, jerk was enough to get the point across.
 
oh
 
8:29 AM
Too simple?
 
Yeah, way to simple
 
keep it simple stupid
 
@DrogoNevets simple is stupid
 
@Connor nah, simple makes money
 
@DrogoNevets And money makes stupid
 
8:30 AM
Life makes stupid.
 
stupid makes life
 
@theellipsis 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.
 
@Connor stupid accidents make life!
meeting time! bbs
 
and life makes stupid accidents
 
And then we all die.
 
8:31 AM
@Jan 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.
 
the end.
 
Wasn't this fun.
 
hello,anybody in?
 
it was stupidly fun
 
@Chailie 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.
 
8:32 AM
@Chailie No, we're all out
 
ask for help,does anybody ever use freemarker?
 
@Zirak You're alive!
X2
 
@larrydahooster 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.
@atmaish 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.
 
when using freemarker, whether can use xpath to get value from java bean?
just like this ${toDoItem[serviceCode = 'APPROVAL'].serviceCode}
 
@Chailie This is the Java Script room. Believe it or not, there's a world of difference between the two languages
 
8:36 AM
@MickeyTin 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.
 
oops
 
@mikedidthis you around?
 
@monners yep
 
google is always blocked by something,so bad!
 
So turns out it's an implementation bug. When overflow-x: visible is declared with overflow-y: anything the first declaration reverts to default.
Which is auto
How fucked up is that?!?
 
8:40 AM
wah! people started talking
 
Do you have an example?
 
Only locally. Can't really be bothered putting it into a fiddle.
Ask me again tomorrow when I'm sober
 
From experience, I never leave overflow-x/y: auto it always causes pain.
Shall do.
 
@mmisiarek 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.
 
Yeah, it's causing me a world of pain.
 
8:43 AM
@vikas 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.
 
In other news, my second monitor died :(
8 YO 24" cinema display. RIP
 
@monners ha
 
It had a good run. Plus it's been all over the world
 
@monners 8years isnt bad
 
@monners 24 In and cinema display don't mix
 
8:46 AM
@DrogoNevets Yeah, I'm not too upset about it. Still... it's gonna cost a pretty penny to replace (but I'll be upgrading to the 27")
 
I need 2x new monitors in the not too distant future
 
@DrogoNevets Well, if you've got $2K I'd definitely recommend the Apple displays.
 
:)
 
@monners DVI compatible?
 
@DrogoNevets Not sure. I'm on OSX so I just use the standard lightening connector. I know it can be converted to HDMI, but beyond that...
 
8:51 AM
What do guys think, pull request to evil.js? pbrd.co/1nM3AIH
 
It doesn't look like a pull request, it looks like a screenshot of a few errors.
 
it would need to be DVI compat for me
 
@Zirak not your standard error messages though
 
Really? What's the difference?
I just can't spot any deviation from the standard.
 
I'm not too worried about performance or colours, or HD, as long as they can keep up with 3D modelling
but thats more down to the GPU than the monitor
 
8:55 AM
@ErikE.Lorenz 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.
 
If Dell released a "sequel" to the u2312h, try looking at that. I've got the u2312h and it's really good.
 
^ +1
 
@SamLewis 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.
@IcyFlame 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.
 
ok ill look into it
although shelves come first im afraid
 
@Quantas nice going in ESDiscuss :D
 
9:04 AM
@Axxxon 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.
 
@BenjaminGruenbaum I've seen him too. But as always on the list I must skip most messages and so I don't know how the discussion ended...
 
The requirement for iteration order will be removed.
 
cool
I thought the answer he got about what that would fix was stupid
Yeah !
 
9:22 AM
dat name
 
            rawItems.data = rawItems.data.map( function ( item ) {
                item.group = stream;
                item.created_time = item.created_time.replace( /-/g, "/" ).replace( /[TZ]/g, " " );

                return new Snapick.Services.PhotoSource( { service: 'facebook', payload: item } );
            } );
throws an error in the last line saying
Object Doesn't supports the action
wat could be the cause of evil ?
nvm Internet Explorer was it.
could off just said Undefined is a function or something
 
9:42 AM
7 messages moved to Trash
Someone write the grouping thing already :D
 
How do I change the jQuery UI button size? The solution on SO doesnt work for me. jsfiddle.net/rdesai/8qmyg/8
The default size is huge.
 
@AbhishekHingnikar what's the font you mentioned yesterday again?
 
@Sushil 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.
 
anyone?
 
9:49 AM
@RahulDesai solution 1 is to stop using jquery
 
@t1wc and why is that?
 
second solution is going to their site for customized stylesheets
@RahulDesai it's really slow, and not I good practice in my opinion
third solution is looking for the css they gave you and changing what you need
 
Dojo is better, isnt it?
It has AMD.
 
@RahulDesai check out vanilla.js
it's the best in my opinion
 
@t1wc how is it slow
 
9:51 AM
@Mosho the UI version
takes a second to load
 
really
 
and half a second to translate what a human has done into what the browser will render
 
I am just trying to make programs to load into my GitHub :P
 
@RahulDesai do you need jquery UI for that?
 
not really
 
9:53 AM
@RahulDesai then first solution is for you ;)
 
If you had the option to work somewhere using Sencha, Angular, Backbone, Ember or VanillaJS + require or browserify, what would you choose and why ?
2
 
VanillaJS+require: becouse I have no idea how to use the other ones (maybe a bit of angular)
 
if I already had experience with vanilla I would pick the frameworks
 
I'd also tend for vanillajs, one of the biggest caveats is probably that you have no GUI standards, no default elements like dialogs and other GUI elements
so you would need to create anything from scratch and create your own framework
 
waste of time and you won't do better than stuff that exists unless you need something highly specialized
 
9:58 AM
@Mosho it's not about the target, it's about the journey (when you're still learning)
 
Hey guys, did you see this? piedpiper.com :)
 
@t1wc I said that
 
@Mosho so you create your own
 
nah
you learn to drive a car, so you build a car?
 
@Mosho programmer's function in the world is to build the car, right?
 
10:01 AM
only some
 
if you're "okay" in using a proved good car, which most people use then there is no reason why you shouldn't use that car also
 
does anyone remember the font AbhishekHingnikar mentioned yesterday?
I need it for a school thing
 
but if you want something special.. a cool great thing nobody else drives, you create your own fricking car
 
@JitB 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.
 
0
Q: Is it possible to detect end of promise chain

Alexander VassilevIs it possible to add a handle to a promise in such a way that it gets executed at the end of the promise chain. I know there is done() and finally(), but they execute after the current promise is resolved/fails, not the whole chain.

 
10:05 AM
@DavidDaSilvaContín 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.
 
thanks stackoverflow for history
 
@AbhishekHingnikar plz what was that font???
 
Monotype Corsiva ?
the best font in history
i wish all phones and UI's by samsung were built in this font xD
 
yeah! that! thx
I need it for school formulas, declaring variables
 
@Feeds done
 
10:12 AM
uhh... doesn't look that great
any great formula font anyone?
 
@t1wc if you use a decent font use Microsoft Symbols
or something.
 
@AbhishekHingnikar I'll try, thx
 
it is a font with all the expressions and all built in.
@t1wc :-> no probs
@BenjaminGruenbaum is there a way to check network requests in Visual Studio
i can't test in chrome cause the shit works flawless here
 
@AbhishekHingnikar install fiddler
 
@BenjaminGruenbaum just because i'm curious. why do you need to declare an anonymous function to nest in the first then but inside all you need to do is chain the calls?
 
10:13 AM
@BenjaminGruenbaum whats that ?
ah proxy -_-
 
it catches all your requests basically
 
pretty much all of your traffic actually
 
@GNi33 imagine the content of the nest is given.
 
why does microsoft call visual studio even a debugger ?
 
10:14 AM
Externally. Like
 
when it can't even log my network requests ?
the fucking thing works smooth as s** in chrome
but breaks horribly in VS
 
function andClose(chainer){
     Promise.try(chainer).finally(function(){ /* clean up */);
}
 
and its as simple as loading images :-/
 
It's like a primitive version of Promise.using from Bluebird
@AbhishekHingnikar lol, the C# debugger is a few order of magnitudes better than the v8 debugger.
The .NET debugger, it will gladly break into exceptions giving you full stack information and let you rewind the stack and re-execute pieces of code. You can unwind code, edit code and continue execution. It will also easily debug asynchronous code.
 
then they shouldn't call Visual Studio a debugger for JavaScript apps
but instead open Chrome as a webview (XD)
and wow i have numphy !
 
10:20 AM
@merosss 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.
 
@BenjaminGruenbaum i really gotta read up on promises
 
@aaronrhodes 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.
 
so basically, the promise of myPromise calls the .finally function, and because of that i need to nest the other promises in it, because it can only be resolved when the nested blocks are all complete, right? in the nested function, order doesn't matter then
 
@BenjaminGruenbaum oh btw is there a way to call same listeners for multiple promises ?
 
@GNi33 yes.
 
10:23 AM
WinJS has .thenEach, but its horrible.
 
@AbhishekHingnikar what?
 
alright, makes sense :)
 
@AbhishekHingnikar you mean like .map ?
 
Promise.map([p1,p2,p3,p4]).then(firstTask).then(secondTask);
after every promise completes the firstTask and secondTask should fire ?
is that what map will do ?
 
no... .map is like array map, it takes each item and maps it.
 
10:24 AM
no then =(
 
Promise.resolve([p1,p2,p3,p4]).map(firstTask).map(secondTask)
Just like array map
[1,2,3,4].map(double).map(square)
 
I have several network calls to Facebook Graph API
resulting in similar api responses
i thought instead of doing ugly shit like writing them by hand
i would probably use some sort of function to automate this.
 
@BenjaminGruenbaum so firstTask has to return the same promise object ?
 
@jAndy in the promise .map it just acts like calling a .then on each object separately.
It doesn't have to return a promise, it unwraps
Think Promise.resolve(urlArr).map($.get).map(JSON.parse).then(function(responseObjArr‌​ay){ /*
Then again, $.get already does JSON.parse , so that might not be the best example.
 
@MartinMojito 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.
 
10:34 AM
0
Q: My error callback is failing with Q Promises

Amit ErandoleFirst time trying to use the Q promises library and I can't get my error callback to work: var fs = require('fs'); var Q = require('q'); var prom = Q.nfcall(fs.writeFile('daa/write.txt', 'your mom', 'utf-8')); prom.then(function(err){ console.log("error on writing file: ", err...

 
contractor politics is pissing me off today
 
@androidDev 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.
@NunoAniceto 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.
 
@jhawins look what i found freessl.com
am in a train right now so i won't have enough internet.
it is by geotrust so we might get the green thingy;
 
Classic petka, deleting that deprecated branch to win a comment argument in Stack Overflow :P — Benjamin Gruenbaum 1 min ago
@Feeds well that was stupid
 
10:49 AM
Hey guys am going for the imagine cup national finals, I am quite freaked out cause the version of snapick i am working on isn't demo complete :D
wish me luck :-)
 
@AbhishekHingnikar bonne chance mon amis
 
benne
not sure why i switched to badly spoken and typed italian then!
 

« first day (1287 days earlier)      last day (3662 days later) »