« first day (1474 days earlier)      last day (3489 days later) » 

7:00 PM
@Zirak lol! Gimme that number, I have to talk to that guy XD. (don't)
 
:(
@Zirak why don't old commands work for teaching
in Sandbox, Oct 18 '13 at 18:30, by rlemon
!!/learn pizza '<>http://lorempizza.com/$1/$2#.png' (\d+)\s(\d+) 'gives you pizza!'
used to work
 
Escaping? I vaguely remember the chat used to annoy us all the time with that.
 
ahh yes
 
@Zirak oh hai
 
Try double escapes or stuff like that. It's not visible in output, too
@BenjaminGruenbaum Ahoy hoy
 
7:03 PM
what's up?
 
Still alive
 
(It's the roof or the sky)
 
@Zirak SOB, you only need to double escape the first \\
!!pizza 800 600
 
user2620028
I had that laptop shipped to me last friday from new york. According to the tracking number it is still in new york at the first processing facility. They just updated the scheduled delivery date to be tomorrow by end of day. I live in Illinois. I think something is fishy here.
 
user2620028
7:05 PM
Give the pizza 10 minutes to cook and it will show up
 
no, that is my inability to manage a node server properly
 
user2620028
what managing needs to be done to your node server?
 
well there is a few things I'm not 100% sure what the cause of them is
but I know it is something i've done wrong
!!afk vape.
 
user2620028
So i have started removing wallpaper, painting, changing out electrical outlets and switches, and putting up new trim in my house. Anyone want to volunteer to help?
 
MLM
How do I create a inset box shadow in canvas? I can only find this technique which can only do soft shadows and I am not sure how the " + 3" (magic number?) relates to the rest of it.
 
7:09 PM
the page you link has inset shadow examples
the 3 is the offset from one circles radius to the other
 
user2620028
@MLM i do not know canvas but the 2 * Math.PI i would imagine is just trying to say 2PI which would be 360 degree aka a circle
 
Math.Tau > Math.PI * 2
 
MLM
@rlemon Ye I see it, but I am wondering why 3? I would think it should relate to the lineWidth or something
 
@BenjaminGruenbaum which proposal ?
 
7:11 PM
@MLM offset half the line width, rounded up
 
@darkyen00 @allroomowners
 
er wait, that is radius
 
yeah i won't use it
 
so that is just making the circle 6px wider
 
cause this room has like 50 owners who i don't even know
i will still prefer @room and pinning it
 
7:12 PM
I'm secretly an RO, I just go undercover to solve javascript crimes
 
I'm secretly yo-mama
 
17
Q: Add support for .gifv format in chat onebox

AbhishekRecently Imgur announced to drop the legacy GIF format with the new GIFV format. Why GIFV? It's lightweight Being a video format, it also allows more flexibility like not autoplaying or autoloading by default which .gif just disrespects. Oh, and you can pause it too. It supports streaming and ...

wow only 17 people want it.
 
Well, 24 people
It's just that 7 don't
 
those 7 people had ebola, so they were too feverish to make an educated vote.
 
^ LOL
 
7:16 PM
@darkyen00 20 people upvoted @SterlingArcher's answer in there... which supports the proposal. So 20 do.
 
Anybody follows the avengers / marvel comics ? watchcartoononline.com/… heck of a season premier
ep1 /2 oh my :D
 
m59
I need functionality that handles 4 different styles of data (string, object, array of strings, array of objects) and outputs either an object or array of objects. How do I decide whether this is one function that reacts to what is input or 2 or 4 functions that are slightly less DRY?
 
please...
so rude.
 
me?
 
7:22 PM
yes.
 
thats pathetically sad.
i can't be rude
i don't haveit in me
 
@m59 in JS - it'd probably be 2-4 functions.
 
@argentum47 Could anyone...
 
Yes you can. You ask for complete strangers to use their time to help you, and you can't even bother asking nicely.
 
what's not working?
also, here we don't fix, we help understand how to fix and why
 
7:24 PM
@argentum47 ok, I know what's wrong, what now?
Want a corrected fiddle?
 
where is it wrong
 
m59
@BenjaminGruenbaum I guess just experiment with 2 and if I don't like that 4? I didn't know if there's some pattern or philosophy that applies. One function was ugly and seemingly flimsy as heck (too potentially surprising)
 
no, i correct it myself
 
In the controller.
I can tell you where your code is wrong, but first apologize to @phenomnomnominal and call him your daddy.
 
@BenjaminGruenbaum I too have a fix, but you won't get it unless you ask nice.
 
7:25 PM
@argentum47 Say "I'm sorry Craig, you're my daddy"
 
m59
@argentum47 globalizing everything is rough - my obsessive mind has trouble reading anything else because all I can think is "globals are bad".
Almost no extra characters to put those in proper definitions
 
I promise I'll tell you your error then, it's quite simple really.
 
@BenjaminGruenbaum Sorry, I'm trying this Bluebird thing again. I could use some help. I have this at the moment pastebin.com/nhPS3edN and, of course because I call .next() on the generator function once iteration runs, but then everything breaks down. Because it's not a valid promise-style continuation. What oh what should I do to make this run as expected (aka forever and ever until the stack blows up or something)
 
seriuosly, why all of a sudden i became rude and i owe apologies. i have been here quite long. i though i hadfriends
 
user2620028
7:27 PM
I'm sorry Craig, you're my daddy -- Do i win a kinky award?
 
the duck is nice ;P
 
@RoelvanUden I don't get it, you're a smart guy. Would you unify IEnumerable and Task in c#?
Does unifying the concept of 'iterable' and the concept of 'async' make much sense to you?
 
@HatterisMad you sure do. I'll see you soon.
 
@BenjaminGruenbaum You mean observables?
 
7:28 PM
I don't get why you'd want to do it in the first place.
@KendallFrey yes yes we all saw Meijer's chart several times, you're missing the context.
 
@argentum47 that's all you need. You have no reason to write code: just draw ducks, it helps the society much more
 
@argentum47 told you it was simple.
 
@BenjaminGruenbaum Yeah. Let's say I just want an IEnumerable<Func<Action>> that produces n of the funcs that call my continuation action and then keep going to the next. THat's pretty much the thing I want. The why is really not that relevant, but I'd be happy to explain why. :-)
 
@argentum47 it's still bad code though, just so you know
 
@RoelvanUden why aren't you just doing Promise.coroutine(value)()? why the extra var gen = value.next(); step?
 
m59
7:29 PM
 
i have just started it , @BenjaminGruenbaum thanks for the tip :)))
 
@BenjaminGruenbaum Because it doesn't work either way.
 
@RoelvanUden in Haskell that's do notation :D
 
8 mins ago, by argentum47
help me fix this http://jsfiddle.net/xxf20erg/1/
 
@m59 okies
 
7:30 PM
was a demand, which is why I think he considered it rude
 
@m59 yours makes even less sense
 
you should engage the crowd first, maybe tell a joke.
 
m59
It didn't make sense to begin with @phenomnomnominal I assume he wants confirm
 
I tried `Promise.coroutine(value)()` and it goes `Possibly unhandled TypeError: generatorFunction must be a function at Function.Promise$Coroutine (C:\Users\Deathspike\Desktop\bluebird\node_mod
ules\bluebird\js\main\generators.js:125:15)`
 
@RoelvanUden I don't have canary or 0.11 handy, but lemme see. Your value is an iterable, not a function creating an iterable - so calling Promise.coroutine on it won't work since that expects a function returning an iterable. What you currently have just yields the first value and calls Promise.coroutine on that which doesn't make much sense. You can wrap an iterable in a function returning a generator.
@RoelvanUden try return Promise.coroutine(function*(){ return yield* value; })() note the yield* - that's like Python's yield from.
 
7:32 PM
like, here is a good joke to break the ice:
> Q. Why did the chicken cross the playground ?
A. To get to the other slide.
and now everyone is willing to help!
 
ok @rlemon , oneday a fat girl with lot of makeup just came and stood infront of me, (she was trying to ask how how to use reject in ruby) , and then i see Awal Garg 's message pop up "too much jquery" .
 
\o/
 
@RoelvanUden as an internals hack, use Promise.spawn(gen) instead of Promise.coroutine(gen)(), but honestly I still recommend against adding yield handlers to generators like that.
 
Why did rlemon cross the playground?
He needed to poop.
 
@argentum47 I don't get it
 
7:33 PM
#slidepoop
 
m59
@argentum47 @phenomnomnominal jsfiddle.net/6vxwempn
 
no I get the slidepoop
 
m59
I guess that's what he wants? ^
 
Also, adding async (or .coroutine in BB) on top of native promises is just 10 LoC (I think I posted them last time you were here), if you don't like .coroutine you can just use whatever you want instead.
 
I don't get the joke from @argentum47
 
7:34 PM
@rlemon it seems pretty offensive.
 
@BenjaminGruenbaum Yeah that snippet of last time didn't work. I'd prefer that all the way.
 
@phenomnomnominal yea but i'm not sure towards who?
 
@BenjaminGruenbaum The yield *value magic works tho. Why? What is the *value thing?
 
funny people?
 
m59
@argentum47 except make that $window.confirm (more testable), my bad
 
7:35 PM
does anyone know a codecademy/codeschool-like online-free-good-for-beginners course for design? (not necessarily web design, even just pixel art)
 
> Q. Why did the rooster get a tattoo?
A. He wanted to impress the chicks!
:groan:
 
@RoelvanUden yield* is short for yield in a for loop, it delegates the generator. There is no C# counterpart - it's called yield from in Python.
It's basically for(item of value) yield item;
@RoelvanUden also - since you said you'd be happy to explain why - why?
 
the 'too much' part matched every description of the girl.. the width, the makeup. and i kindof didnot like jquery.

@m59 well, umm, i think i can put that confirmDelete inside the scope, i mean $scope.confirmDelete , i did that for a situation like if i had an external function and i needed to access it
 
There is no such thing as "too much jQuery"
$.love()
 
so you blanket every woman as wearing too much makeup and being fat?
 
7:38 PM
@BenjaminGruenbaum I want to write simple asynchronous code. While yield is not the appropriate language construct for it, it does allow for an incredibly simple control flow dealing with asynchronous code. Basically, I'm using it to emulate the ES7 async/await proposal. There is nothing that is simpler for a nodejs CLI application with asynchronous stuff as far as I am aware of. I'm not about to plug every function into a coroutine.
 
every woman!! no, she was fat. :P
 
@RoelvanUden you're fine with writing async in front of functions in C# but doing var async = Promise.coroutine; once at the start of the line and then doing async( in front of functions bothers you?
 
jQuery.fn.love = function(){ return this; };
 
so the women who don't wear makeup wear too much makeup?
I'm just trying to follow your insanity
 
:D lulz
 
7:40 PM
@BenjaminGruenbaum Well, yes. How are you going to write a function declaration as a coroutine? You can't. You need to make it an expression and I don't want that at all.
 
@RoelvanUden why?
 
Women who wear makeup are like a fine butter. It takes one to know one, but you never really know.
 
@RoelvanUden I put most of my functions on objects anyway at which point I have to use function expressions anyway.
 
no, not lulz, seriously do you think i am insane. i think i must accept the fact now. everyone i have come in contact with says me.
 
7:41 PM
The code and my intentions are dead easy to follow. It won't be when I coroutine everything
 
nothing wrong with women wanting to wear makeup. nothing wrong with a man wanting to wear makeup. to each their own.
 
@BenjaminGruenbaum Yeah, then it doesn't quite matter. For my style using declarations, it does matter quite a bit.
 
I wear makeup on my wrists
 
yea i'm not touching that
 
Sometimes I will use makeup for halloween
 
7:42 PM
@RoelvanUden so basically it's just hoisting?
You can always forward declare by the way.
 
she had quite a lot of contrast between the color of her hand and color of her face, i mean there should be a balance.. she should have put up the make up on her hand too
 
I think I inadvertently made a joke about cutting... my bad.
 
that is how I took it
 
@BenjaminGruenbaum Yeah, and yeah you can, but that's extremely ugly.
 
Watched Episode 1, wondering how on earth marvel comes with these ideas ?
 
7:43 PM
@RoelvanUden also, wow dem for loops :D I don't think I've seen that many for loops in a while.
 
@BenjaminGruenbaum Nothing wrong with using yield in the way I do, is there?
 
Episode 1 of ?
 
@RoelvanUden no, it looks fine. It just looks like very erm... naive JavaScript. It looks like something I would've written two years ago (no offense, you know I respect you as a programmer).
 
@BenjaminGruenbaum Yeah, it is part of of a comic book scraper that can have one or more CDNs for each page image. I can keep my code quite simple with yield like this.
@BenjaminGruenbaum Naive? Can you elaborate on that? (I don't take it as an offense, I'm willing to learn though :-))
 
Yeah, I have to admit it looks simple.
Well, all the logic is in modules that are effectively singletons.
They're rather stateless, it's very C like in that regard.
 
7:45 PM
@BenjaminGruenbaum !
just the man I wanted to see.
 
You have a bunch of free functions that accept parameters, and then use those parameters.
 
I've got a rather perplexing Mongo question for you.
 
@BenjaminGruenbaum I've designed them to be that way. Why would that be naive though?
 
How would you approach storing nested dependencies (kinda like npm modules) in a no-sql database?
 
I keep code and intent clear and separated and can use the resulting code and organization across nodejs and phonegap devices with little to no effort. That's my main motivation here.
 
7:47 PM
@SomeKittens I'd nest the dependencies.
 
@BenjaminGruenbaum full denormalization?
 
@SomeKittens how much to denormalize in NoSQL is like the million dollar question.
 
@RoelvanUden it looks very imperative and not very OO. It looks very different from idiomatic JS, that alone is no reason to change style - but it's the first thing I noticed.
 
7:48 PM
@BenjaminGruenbaum Yep, and that's the problem we're facing.
I think one of our guys is trying to work with Cayley to solve this
 
For example - I rarely have for... in loops in my code, or for loops (except for really tight spots).
 
@BenjaminGruenbaum Yesterday I was in here and I was getting called out for using OO principles, haha. Why would you not use for loops, because you'd use array.forEach or something? That just doesn't work very well with yields.
 
@SomeKittens there is no 'solution' to 'how to store dependencies in Mongo'. Mongo is a horrible, broken piece of software that drops writes randomly, contrary to popular believe doesn't scale well and doesn't offer serious consistency facilities like transactions. In all honesty I would not use it for anything that's not a last phase cache in which case I'd denormalize.
 
@phenomnomnominal umm, well, would you please point the difference, i mean yours is better but i would like an explanation (really)
 
@SomeKittens I tried to like mongo, it's just so bad compared to the alternatives in pretty much every use case.
 
7:51 PM
@argentum47 you want to be able to reuse the confirmation thing, so instead of putting it on window, you create a service, and inject that into your controller.
 
@RoelvanUden I mean stuff like Object.keys instead of for... of loops and stuff like .map or .filter or .reduce (like you'd use .Where and .Select in C#) for working with collecitons.
 
also, you can just put stuff on this in your controller, so you don't have $scope everywhere.
 
Right now it's what we're stuck with, but there are rumblings of "postgres" heard if you listen hard enough.
 
@MateiCopot i already have a story line in my mind, i can't add zombie ducks
why no?
That greatly offended me :(
 
7:52 PM
@towc then you're far too thin skinned
 
@BenjaminGruenbaum I see. Object.keys is a good thing, but where did I do the other things?
 
@RoelvanUden Since you're using bluebird, doing Promise.each(arrOfUrls, saveUrl) might actally be more readable than manually doing it in a for loop, and doing Promise.filter(arrOfUrls, urlFilter).each(saveUrl) might be better than having two for loops etc.
@RoelvanUden you have a bunch of for... in... loops in the code, at least I noticed.
@SomeKittens Mongo is acceptable for some stuff, generally normalize when you can get away with it. Even doing multiple queries is acceptable if performance is still good.
@SomeKittens you can argue all day long about code pretti-ness, but if performing two finds on the client solves your problem you can always do that :P
 
more like eight finds....
 
@BenjaminGruenbaum Ah, yes, good point. I'm hesitant to rely too much on Bluebird tho, I might want to swap it out again for something simpler :-P
 
7:56 PM
Bluebird is love. Bluebird is life.
 
@RoelvanUden well, it has a lot of utility methods that are worth knowing about. I also would not do .coroutine(x)(), I know I'm repeating myself here but yielding enumerables still doesn't make sense to me. I know a sequence of commands and a sequence of numbers are both sequences, but this has issues - for example your coroutine can never return an enumerable.
In a year, when more people use coroutines and sequences and more libraries will start returning them - you'll have issues.
 
At that point I'll hope to have ES7 async :-P
 
@RoelvanUden ES7 async will still just yield promises, just like C# async still just yields Tasks
You can always transpile.
Then again, you can just put your module.exports last which would solve your problem too and would make sense anyway :P
 
@BenjaminGruenbaum Eh? What? How?
 
@RoelvanUden your problem was hoisting, right?
 
7:59 PM
Oh, no, not really. I just really like this style, and JSHint doesn't bitch.
 
lol, ok then.
 

« first day (1474 days earlier)      last day (3489 days later) »