« first day (1524 days earlier)      last day (3429 days later) » 

11:00 AM
nananana @FlorianMargaine you got it wrong aswell :D
what i want to do is get rid of tons of .then s
 
@darkyen00 If that's the reason then don't.
Refactor them out into their own function to free up the main Promise tree.
 
.then(removeCSRF).then(getNextToken).then(doSomeOtherFilter).then(convertBinaryD‌​ataToNumbers)
 
removeCSRF().then(getNextToken).then(doSomeOtherFilter).then(convertBinaryDataToNumber).then()
honestly...
don't complicate things
it's readable ffs
 
@darkyen00 function doAllTheThings(promise) { return promise.then().then().then().then() }
 
@FlorianMargaine readable yes.
consider where you don't know how many of these functions you will have ?
 
11:02 AM
@darkyen00 In that case use my reduce solution.
 
@SecondRikudo or. a simple for loop ;-)
 
Reduce is more sexy.
 
@darkyen00 then you don't know the names of these functions?
 
but hes a player !
 
do you have any use case?
 
11:02 AM
@FlorianMargaine nope
 
@FlorianMargaine I do.
 
@FlorianMargaine Something like angular's filter api
I dislike angular.js but like how they make it so sexy awesome to handle http requests
 
example?
 
If you register a bunch of processing functions to be performed on an object, and someone else is responsible for parsing the object and determining which functions you want to apply on the object.
 
ah yeah
I'd use @SecondRikudo's reduce then, indeed
it's the right case there
 
11:04 AM
@SecondRikudo o/ we should call this something :P
 
function invokeSerially() {
    return function(prev, curr) {
        return prev.then(curr);
    }
}
 
Sorry, lots of work
Lemme see that question now.
 
[removeCSRF, getNextToken, doSomeOtherFilter, convertBinaryDataToNumbers].reduce(invokeSerially, previousResult);
 
@SomeGuy "no trig" is a weird requirement here.
 
I agree
 
11:07 AM
Especially since it's a trig problem and anything that would solve it be isomorphic to trigonometry in a different name.
 
@SecondRikudo .superthen ?
 
@darkyen00 Promise.prototype.plotTwist = Promise.prototype.then
 
Oh, promise questions.
I'm 107 points short of my badge
(but who's counting :P)
@darkyen00 what're you trying to do?
 
promise
    .plotTwist(somethingHappened)
    .plotTwist(somethingElseHappened);
 
Lol
@BenjaminGruenbaum register a bunch of processing functions to be performed on an object, and someone else is responsible for parsing the object and determining which functions you want to apply on the object.
 
11:09 AM
@BenjaminGruenbaum Invoke an array of promise functions serially.
 
Promise.each(myArray);
Next question plz.
 
@BenjaminGruenbaum Array of promises?
 
Oh, you can't invoke an array of promises serially that makes no sense.
Promises represent already started operations, you can only invoke an array of functions returning promises serially.
 
Ah jesus christ
@BenjaminGruenbaum clone angular 1.x's http filters
 
Promise.prototype.noWai = Promise.prototype.catch;
Promise.prototype.yaWai = Promise.prototype.then.
Promise.internet = Promise.try;
 
11:10 AM
does that make more sense ?
 
@BenjaminGruenbaum Yeah, that's the point.
12 mins ago, by Second Rikudo
[removeCSRF, getNextToken, doSomeOtherFilter, convertBinaryDataToNumbers].reduce(function(prev, curr) {
    return prev.then(curr);
}, Promise.resolve(resultFromThisPromise));
@BenjaminGruenbaum ^ That's what I came up with
 
Promise.internet(myThing).yaWai(next).yaWai(next2).noWai(cry);
@SecondRikudo yeah, we just have .each as a shorthand for that.
 
@BenjaminGruenbaum It's undocumented...
 
Benjamin.zirak(Goat).caprica(outSmarted).caprica(notAgain).lemon(weep);
 
There's promiseObj.each that's documented, not the static method.
 
11:12 AM
Oh O-O wow
Can somebody link me to the doc ?
 
If I have the following `gulp` task, can I use `vinyl-source-stream` to rename?

gulp.task('styles', function() {
  gulp.src(['./src/styles/index.less'])
    .pipe(sourcemaps.init())
    .pipe(less({compress: true}))
    .pipe(sourcemaps.write('./'))
    .pipe(gulp.dest('./www/styles/'));
});
I want it to output as app.min.css instead of index.css :-)
 
iirc you can just do .dest('./www/styles/app.min.css');
 
It would create a folder app.min.css with index.css in it :-/
 
o_O wow thats weird
 
Sucks a bit.
 
11:20 AM
sass: {
		src: source + '/styles/main.scss',
}
what i use
 
That is.. grunt instead of gulp, and sass instead of less? :P
 
and it works fine.
@RoelvanUden it is gulp
i just use a single config file for outputs
 
does anyone know a link to watch online the imitation game?
 
11:23 AM
nope
:-/ the one thing i hate after losing room ownership is.. lost ability to see message logs
 
next Js contract I do I will ask for now HTML and CSS
 
ERB season 4 is funnier then ever.
 
@SecondRikudo you're undocumented
@SecondRikudo no it's not.
 
11:45 AM
I get this when trying to install an npm module,panicking a little pastebin.com/gpmxUneP
 
@SecondRikudo there is a non-static counterpart for each static counterpart and vice versa
 
I got the werewolf hunter hat! \o/
also @darkyen00 come to miaou
 
> PHP is a recursive acronym, which stands for PHP Hates Programmers
3
approved
 
nope. It is Programmers Hate PHP
 
12:05 PM
@BenjaminGruenbaum Yes, but .each does execute an array of promise functions serially
It executes the same promise on each item in an array, serially.
 
Oh, then .reduce or forEach is the common way but there are cases where neither work. The solution is to use Promise.reduce instead.
 
its not an array of promises
 
The difference is that if you have 100K items for instance then Array#reduce will take 100K functions ahead of time.
 
I just wanted a sequence of callbacks that i could call sequenctially
more like
.then([a,b,c,d]
 
Just do a.then(b).then(c).then(d) ?
 
12:07 PM
@BenjaminGruenbaum I have no control over how many such callbacks will occur
the simplest solution would be
 
let p = Promise.resolve();
myFuncs.forEach(func => p.then(func));
p.then(() => console.log("All Done!"));
 
while( resolver = array.shift() ){
     curr = curr.then(resolver);
}
 
why dafaq are you iterating with a while loop :P?
All I said is that this approach fails for very large arrays of functions (> 20K)
 
I dunno.. is that bad ?
yeah that won't hit 20k promises ever
 
Well, you have .forEach so it seems kind of pointless.
 
12:10 PM
true.
 
I don't like arrays of functions though except for event listeners
Arrays of functions just means you should have passed a function to begin with instead.
 
The use case is
I hit an http resource
 
Composing code through arrays works - but composing code through code is simpler :P
 
I check status (if 401 occurs anywhere i bail out and show them login) I do csrf thingies
I do conversion to generated javascript objects with reverse links etc
from my serialized json
I then update the whole state of the application
then the other guy writing this application gets control
he also has a few parts where he would like these things to be same
I guess i will just let him have a bunch of thens ;-)
and not give him any sugar to register methods in my filters.
 
My laptop does not heat :(
 
12:21 PM
@AwalGarg Well .. how you gonna cook with it then?
 
@Sippy No cook. It is pretty cold here, and the iPad gets hot easily, so holding it is more comfortable. If the same happened with the laptop....
 
@AwalGarg Lolololol
my laptop heats
dual core processor with 4gb ram
want?:P
 
Quad core i5 4th gen, 8 gigs RAM xD
 
Pff I could get that to heat up ;)
 
So I guess this is why Apple devices are so popular... they heat.
@darkyen00 y u no miaou :(
 
12:28 PM
my ipad doesn't
But my iphone does all the time.
 
Maybe the heating feature is available only in select devices?
 
Lol 'feature'
 
Hi
 
Could anyone explain that? To be more precise, I'm talking about this sentence Best Practice: It's recommended to use the "directive definition object" form.
 
12:39 PM
As a Lead JavaScript Engineer, I try to get my team to write as little JavaScript as possible.
xD
 
Good Lead
:)
 
@AwalGarg He doesn't mean jQuery, does he?? jQuery is great!
 
How is it different from returning object in one call, without unnecessary variable?
 
@Sippy do. not. say. jquery. when I am around.
 
Or it was written to point something else out? Not clear.
 
12:42 PM
@AwalGarg jquery jquery jquery
 
-_- flags at the ready XD
Look guys, don't use swear words here, or atleast fucking censor them. Like jQu***.
 
***** ********* ******* ******* ***
jquery.
 
Turn on my work computer for the first time in 4 months and remember why I stopped using it.
Why is svchost using half of my memory
 
pastebin.com/ECMDhM9W < any thoughts gentlemen ?
           this._filters[method] = filter; should be
           this._filters[method].push( filter );
 
1:08 PM
Quick question, could someone review my close-vote on this question? The OP seems insistent that I'm wrong (I might be), but he's doing a terrible job of convincing me. And I don't know if I'm missing something valid.

The question: http://stackoverflow.com/questions/27546919/i-want-to-read-div-content-without-nested-divs-content-using-jquery-and-css-sel
 
MicroAjax library ?
Browser-Requests doesn't support 'forms' thats a major set-back
 
Still don't understand, that sentence regarding $compile service.
 
AFK FF needs updating
 
:( don't SQL before coffee
TIFU by not including a where clause in my update statement
 
1:23 PM
they wanted it changed from confettit to stars jsfiddle.net/t1fpnpsh/28
 
Dammit... I tried to make them rotate and I failed
 
save()
translate to the images x/y
rotate by an incrementing value
draw the image to 0, 0 (because we've translated to the image center already)
restore();
@NickDugger ^
 
ohhhh.... makes sense
 
2:01 PM
sneak peek at day 5's prize. cc @KendallFrey
 
@rlemon Hahaha niiiice
2 games?
 
@rlemon You're gonna make me feel bad when I don't get it :(
 
@SomeGuy you'll have to wait and see what it is.
 
the GOT game by telltale was boring
well, the first episode was, at least
 
ok, DB is sorted back out now
 
@NickDugger Really?
I haven't seen any reviews of it
 
I feel like you guys should stop being surprised when I say I don't like something
 
Beating my head on a layout for over an hour... ended up using flexbox :(
 
@SomeGuy copy my joke, eh?
 
@copy Like father like son
 
2:17 PM
Hello!!! Is there someone that can clarify something at NP-problems??
 
cstheory.se can
 
I gave up to NP, 5 months later watched few youtube videos
gave up on myself -_-
 
TIL this inherit value for css properties is awesome
 
whoo, I'm on day 7 for my github day streak. I need something to do today... I wrote my notifiaction script, ported my jQuery plugin to regular js... give me script to write do it pls
 
finally got my mullet. it was worth the downvote
 
2:24 PM
@NickDugger A game
 
no pls
 
I don't get why SO would reward people for making shitty questions/answers
 
a mullet is hardly a reward
 
If you think of virtual hats as rewards, maybe you've been on the Internet too much
4
 
ahahahaha
 
2:25 PM
The fact that people in this room are actively hunting for them proves they are reward enough.
 
@Kippie I just wanted my crab hat. :D
 
@Sippy That's barbaric and on the verge of canibalism.
Then again, if I were a crab, I'd probably eat crab too because they're delicious?
 
@Kippie UR ON THE VERGE OF CANIBALISM
As you can see in my picture
I am obviously alarmed by the presence of a crab on my head.
 
@Kippie yeah, then you would be more tastier to have xD
 
2:30 PM
@PeeHaa yup totally fine :)
@monners nice! First 3ds, or are you just upgrading?
 
@Loktar Awesome tnx!
 
@Loktar make the crab's eyes your avatar's eyes >:)
 
hah how?
can you move the hats?
 
Of course!
You can rotate them too
 
yeah, check the box show controls
 
2:32 PM
wtf thats awesome
 
@Loktar It wouldn't be a hat if you couldn't put it in the middle of your face.
 
hahaha, my mullet would've been a failure without being able to rotate/resize
 
are you bored today, @rlemon?
 
@CarrieKendall It's still a failure due to it being a fucking mullet.
 
2:33 PM
@Kippie incorrect
 
heh I thought they had some face detection going on
 
Carrie likes to party in the back. er.. yea, we'll go with that.
 
I was pretty impressed with the shirt placements
 
@Loktar are you impressed with my spock eyebrow placement making it seem that it's a moustache?
 
the mullet is easily the coolest hat available
 
2:34 PM
lol nice @NickDugger
 
@NickDugger nahh this is for work
 
Ohh, Kanye West is work related?
 
hobbits need corn
kanye's been in contact with me
 
@rlemon Rofl
 
s/corn/potatoes/
 
2:35 PM
I was half expecting it to be like whackamole
 
whackawest?
 
When you try mouse over it he disappears haha
You're onto something
 
we can do that ;)
 
xD
 
2:42 PM
It's getting weird
 
@rlemon I am literally just sat here giggling
 
@rlemon Needs more counter!
 
I'm so fucking weird.
@rlemon Can you get it so he won't let you mouse over him?
You know like your snow effect where they repel away from the mouse
:D
 
user2620028
whats up guys
 
hide the kanye!
 
user2620028
2:50 PM
hey lemon
 
user2620028
is that supposed to be a whack a mole
 
just keep playing
never stop playing
 
It's whack a kanye :3
And it's more fun than it should be.
 
user2620028
because it makes me want to click it really bad, and when i do it highlights the kanye since its an html element lol
 
Pahaha
 
2:51 PM
ooo
I'll fix that
 
user2620028
all it did is throw up a work policy you will get fired if you look at youtube page lol
 
user2620028
yeah figured i would let you know, i know its one line of css lol
 
@HatterisMad trolol
damn
 
user2620028
lol what sippy
 
Nothing :D
 
user2620028
2:53 PM
was that supposed to take me to a dark place
 
jsfiddle.net/rlemon/bzyqn0oy/6/show updated version. what do you think of my new game? keep clicking on kanye to win!
13
 
user2620028
i still managed to highlight it by double clicking the kanye lol
 
fixed
 
@rlemon What about giving kanye a parent and doing proximity check on that instead? :P
A bigger parent
 
if I really wanna make a 'game' from this I'd change everything but the picture
 
2:56 PM
Lolol
 
@Sippy nothing can be bigger than kanye.
 
How do I make a userscript run of urls of the file:// protocol?
 
@rlemon hey userscript guy, any idea?
 
@ssube Ah ofc
 
3:04 PM
kanye turned water into potatoes
 
@AwalGarg greasemonkey
config: greasemonkey.fileIsGreaseable = true;
 
user2620028
thats an old firefox plugin lol
 
and it is still quite popular
 
@rlemon Yeah, but on chrome, there is only tampermonkey, and I can't find that config anywhere :(
 
user2620028
really? wow
 
3:10 PM
@AwalGarg ^
@HatterisMad cap uses greasemonkey to launch her
 
ah shit
thanks a lot! @rlemon
 
np
 
aha! It works! \o/
 
user2620028
nice
 
3:24 PM
I'd grease her monkey
 
user2620028
well thats good because everyone else already has nick
 
@BenjaminGruenbaum nice job on the most starred message this chat has seen lol
Good morning y'all
 
So I might have a date this weekend for my christmas party my brother and I are throwing for his office :)
 
I told you. No.
 
3:29 PM
Question: When are source maps downloaded? Let's say you deploy a JS minified file into production which has a //# sourceMappingURL=app.min.js.map, do users ever download the file? Or only when console is open?
 
@RoelvanUden When the console is open, and sometimes only when you look at the scripts.
 
@SterlingArcher pics or it wont happen
 
does it have boobs or a weiner?
 
@rlemon i'll pm you on miaou lol but not pics
 
brah! I know she's got FB and you already crept it
 
3:33 PM
We're friends on facebook before this :P Shes the one who I knew my freshman year of college
 
Source maps are at a quantum level. You don't know if the source map has been sent until you observe and once you observe, you cause the source maps to be d/led.
Also a cat dies.
 
So wtf @The Interview
Just heard what happened with it
Is there a gayer name for a hacker group than "The Guardians of Peace"
 
Sony playing the martyr? Great idea, both for them and politically.
They gave up oh so much money (on a movie that critics were panning anyway) just to keep [group of poor people] safe from the evil terrorists.
 
They aren't playing, just playing it safe like they should.
if ther were constant baseless threats it would be one things, but this is a little bit 'new'.
 
Now, instead of being a mediocre comedy, they have a political statement and a bunch of public opinion to play with.
 
3:36 PM
but yea.. excellent marketing.
 
It gets leaked, everyone watches it anyway, someone brings this up in the UN and we pass more sanctions, China can't support terrorist attacks on movie theaters so they waggle a finger, NK gets screwed hard.
 
@ssube Aight, thought so. Thanks for confirming.
 
Which is all a shame, since the great leader wrote, directed, produced, and starred in the film.
2
Now nobody will see how well he can act, despite the cake you know was on a craft service table 30 feet away.
Still disappointed, cause I'm spending christmas at the theater with a girl, and we were pretty pumped about seeing that. Instead we'll have to watch that brie larson/mark wahlberg crime movie thing.
 
@NickDugger good quotes on that page...
 
118000 rows, I wanna graph it
exported from an access 2003 db
(doesn't have to be online)
 
3:52 PM
@rlemon Yeeeeeey access
 
@rlemon may i ask noob questions about your fiddle code?
only 2 q
 
@ssube If it makes you feel any better, Daniel Radcliffe did a movie with Sasha Grey.
Dunno how it will affect her career as an actress when all her nude pics were uploaded before she became one.
 
 
^ yes.
 
3:55 PM
Lol
 
@Sippy they both seem like pretty legit people, so.
 
LOL
 
kanye.onload = init; on this line why you don need to use init(); with the parenthesis? line 24 why doesnt end with ; @rlemon
 

« first day (1524 days earlier)      last day (3429 days later) »