« first day (1641 days earlier)      last day (3300 days later) » 

user1596138
3:00 PM
@ssube actually yeah... The sexual stuff gets weird. Like that BDSM scene in the last comic
 
if this wasn't a sfw room, I would suggest adding oglaf
 
user1596138
I like Channelate
 
@Jhawins bdsm is weird?
 
user1596138
But a lot of them are just silly lol
 
user1596138
3:01 PM
OMFG
 
user1596138
 
you need the bonus panels too
 
user1596138
@SterlingArcher idk why I thought of you I know you only do hard drugs like twice a day don't do drugs
 
Guyz,Could any one give suggestion for my problem
 
@Jhawins hey Dan told me they are going to hire you both fyi :P
 
user1596138
3:02 PM
@Loktar omfg
 
he is just trying to get a position opened up to put you in
 
user1596138
And he saw what I asked for for salary
 
he talked to our big boss.
@Jhawins haha nice dude!
yeah man I'm hoping it all works out
it sounds like its going to
 
hi @Jhawins... Could you help me
 
user1596138
@user3454479 Hey buddy. If you promise to never randomly ping someone i this room again, I will look at your problem and try to help you.
 
3:04 PM
Ok.Sure. Sorry for interruption.
 
user1596138
@Loktar sure sounds like it lol. I still feel crazy for the last email I sent xD
 
haha dont man
 
@Jhawins lmao
imgur.com/gallery/FMJLD I think all of tumblr is on drugs tbh
 
user1596138
:22676913 Ok, I'm not seeing any code that tries to calculate the total value?
 
now hire me
 
3:07 PM
@NickDugger dude I put out a call to anyone in here
 
user1596138
He did.
 
I got a call from a recruiter this morning for a "Web Designer" job. It was a very short call... lol
 
Sorry @Jhawins. I am updating code
 
haha
we will be hiring front end devs again I know it
 
@Loktar I'm not interested in moving, or working remotely. I was totally kidding :)
 
user1596138
3:08 PM
Oh look there's an email from Dan
 
@NickDugger where do you live again?
 
user1596138
OMFG
 
its by the ocean isn't it?
 
Houston, TX right now. I totally want to move, just not after a single year. I'm tired of moving across the country once a year... lol
 
user1596138
> Our recruiter... Get a formal offer for this position in your hands.
 
3:09 PM
ahhh thats right
@Jhawins sweeeeet dude
 
Congrats Jhoopins
 
lol
 
THat genuinely gave me a chuckle
 
how the fuck is that spam or offensive
 
3:12 PM
someone flagged the gif?
 
Is anybody else picturing that with a "potentially missing a chromosome Disney's Goofy" laugh?
 
@SterlingArcher Yep :D After that, I just couldnt concentrate on answering that question. LOL
 
Wait was the gif flagged but not the Goofy quip?
 
Is there negative implications to .splice(start, end) if end is out of bounds? I figured it would throw and array out of bounds or something if I went over but it seems I can put whatever number I want there
 
.________.
 
3:13 PM
flagged, nipples
 
or .splice(start, how many) I guess..
 
just do a ternary
splice(start, arr.length > n ? n : arr.length)
 
@DasBeasto does splice take negative arguments like some of the other methods?
there are places were passing an arg <= 0 will use the end or end - arg
 
good morning peoples
 
What up, ya bozos! I need some help with this here pen:
https://jsfiddle.net/burnso/8tqk80vb/embedded/result/

I'd like to animate the scaling of the circles. The way I see it I have two choices:

1. Fake it. Recreate the animation by just animating a placeholder DOM object.

2. Do it well and proper by continuously clearing the canvas object and redrawing everything. The problem is that I need to keep the shapes that have already been drawn, with the same shape and color. And while I've tried to get that working I can't seem to figure it out. If this is the way I ought to go could anyone p
 
3:27 PM
wow
called us bozos and called a fiddle a pen
 
God damn
 
your first sentence doesn't make me wanna help :P
 
Oh, you know you want to
Sorry, my funny bone is a bit off today, haha
 
me either
!!afk
 
:(
 
3:31 PM
I did bad
 
Bozos = Beautifiul Omnipotent Zen Observant Superpeople
 
@gburning store all shapes in an array, redraw everything every frame
 
@gburning Are you still in Highschool?
 
@Shmiddty No I just ran out of ideas.
 
3:37 PM
@rlemon I'll give it a shot. Thanks.
 
Use a brand new canvas for every layer.
Just kidding, don't do that.
 
layering canvases isn't a bad idea
I'd have one for the image, one for the shapes, one for the 'shape being drawn'
then you don't have to clear everything 60fps while you animate the drawing
and you don't have to clear the image when re-drawing circles
 
@rlemon is our resident canvas optimizer
 
@Loktar and @SimonSarris is better
 
That makes a lot of sense
 
3:40 PM
is there a magical way to pluck specific properties from an object
maybe in ES6
 
But why 3 canvases?
 
I just assumed you'd want to deal with the circles separate from the image.
 
@Mosho object.property will get property from object
 
but you could do it optimally with two
@Mosho similar to underscorejs.org/#pluck ??
 
Sorry, I'm a bit daft. What are you referring to as the 'image'?
 
3:42 PM
@gburning the background file/image
 
@SterlingArcher showoff
 
I got 87 my second time lol those damn water barrels suck
 
!!afk going to cram some food into my face
 
@rlemon yeah
 
@rlemon Oh yeah, sorry. I didn't realize I included that in the fiddle. Thanks!
 
3:44 PM
@KendallFrey multiple properties at once
 
s/food/penis/
._.
 
@Mosho Roll your own pluck method
 
I can and did, but I was wondering if there was something creative with es6
 
@SterlingArcher *O* I'm ready
 
I cant decide between the 128 and 256gb new macbook 13"
 
3:47 PM
@Mosho function pluck(collection, name) { return collection.map(it => it[name]); }
 
@KendallFrey lmao
 
@ssube I guess I didn't mean pluck then
I mean getting a "subset" of an object
 
multi-pluck?
 
For what end?
 
you probably want map, then
 
3:49 PM
s/pl/f/g
 
collection.map(it => { let {id, name, value} = it; return {id, name, value}; });
you could replace the hard-coding with an array of names, but it would be a lot more complex
 
it's not a collection
it's a plain object
 
Why do you need to do this?
 
and yes, array of names
I have 3 api calls I need t make and the parameters consist of the same parameters, but only subsets of them
 
So the API will reject the request if unknown params are specified?
 
3:53 PM
not necessarily, but I don't want to send all of them
even if you disregard inefficiency, it's messy
 
so just manually build the request params in your api call
 
Just had to look up the docs for window.open. Didn’t think I would ever have to use that again…
 
function pluckNames(obj, ...names) {
  return names.reduce((p, c) => {
    p[c] = obj[c];
    return p;
  }, {});
}

function pluck(collection, ...names) {
  return collection.map(pluckNames);
}

console.log(pluckNames({foo: 1, bar: 2, baz: 3}, 'foo', 'bar'));
@Mosho
 
@Shmiddty nah, I prefer something more succint if I can
 
function doAPIThing(data){
  return post("api/bananas", {
    foo: data.foo,
    bar: data.bar
  });
}
 
3:54 PM
would it be possible that FormData is not collecting <input type="submit"> values ?
 
@ssube that's exactly what I wrote before consulting you guys :P
 
hm
 
I prefer the loop
 
@ssube You never use names
er nvm
Do you need to modify the pluck method? I don't see how names is getting passed to pluckNames
 
yeah
function pluckNames(obj, ...names) {
  return names.reduce((p, c) => {
    p[c] = obj[c];
    return p;
  }, {});
}

function pluck(collection, ...names) {
  return collection.map(it => pluckNames(it, ...names));
}

console.log(pluckNames({foo: 1, bar: 2, baz: 3}, 'foo', 'bar'));
let test= [{foo: 1, bar: 2, baz: 3}, {foo: 2, bar: 3, baz: 4}];
console.log(pluck(test, 'foo', 'baz'));
 
3:59 PM
There we go. Now what should this actually be called?
propSlice?
propFilter
 
I called it pluckObj
 
I hate how JS doesn't have a reverse bind
 
!!afk scrum
 
rugby?
 
@SterlingArcher worse, agile
function pluckNames(obj, ...names) {
  return names.reduce((p, c) => (p[c] = obj[c], p), {});
}

function pluck(collection, ...names) {
  return collection.map(it => pluckNames(it, ...names));
}
 
4:00 PM
yikes
 
I like that
 
it's a bit tricksy, what with the comma operator in there
 
@BenjaminGruenbaum I'm curious if you can reproduce this issue. If not, I will accept that answer and ask somebody to mark it as solved.
@SecondRikudo I voted you! :)
 
/([01]+)+b/ Why is this regex an infinite loop when trying to match a binary number? Once it matches all the 1 and 0 in the brackets why does it jump straight to b, instead of going to the + operator? It has to backtrack to get there.
 
@StevensHaen Isn't the second plus there redundant? [01]+ captures all the zeroes and ones; when it hits the second plus, it's just going to try to capture more zeroes and ones, but it's already captured all of them.
 
4:13 PM
@Retsam The example is a way to accidentally trap yourself in an infinite regex.
And it doesn't make sense. It shows how the engine matches the pattern one by one.
 
@StevensHaen I don't think "infinite regex" is a thing.
 
posted on April 09, 2015 by paulkinlan

The Chrome team recently announced that we are moving DOM attributes to the prototype chain. This change, implemented in Chrome 43 - (Beta as of mid April 2015) - brings Chrome more in line with the Web IDL Spec and other browsers’ implementations, such as IE and Firefox. WebKit based browsers, such as Safari, are currently not compatible with the spec. The new behavior is positive in man

 
@IonicăBizău Thanks! :D
 
Regex is a declarative syntax, it's not a procedure that can be "looped".
 
@Retsam It doesn't exactly loop, but it backtracks and can get stuck in the limbo.
 
4:20 PM
@StevensHaen It can't get stuck, but it can be horrifically inefficient.
 
@Retsam I just used the above object on a binary number a few minutes ago, still working.
 
@StevensHaen So, yes. Horrifically inefficient.
 
Hi All
 
@Retsam It can now ;)
 
Can anyone please explain how to configure node js server in webstrome ide for running application ?
I have installed node js in my laptop
 
4:24 PM
@KendallFrey With REBEL, you mean?
 
@lakshmi Did you try this?
 
@Retsam oy
 
and I have created sample app using Angular api . while running server facing issue
@thefourtheye - Let me go through this
 
!!xkcd perl problems
 
4:29 PM
 
@thefourtheye - Yes but while starting server I am facing this issue
Process finished with exit code 0
 
^ This about summarizes my view of regular expressions.
 
@lakshmi Does it start fine from a terminal?
 
I am not sure that @thefourtheye
 
btw I forgot to mention I ended up buying the bike
 
4:31 PM
Need to be check
 
@lakshmi Please try starting from the terminal.
 
@BartekBanachewicz which one?
 
pretty hilarious if you haven't seen it
 
IS THAT CANNIBAL SHIA LABEOUF?!
 
haha
 
4:41 PM
@ItachiUchiha welp, a chinese 50ccm
 
> Wait! He isn't dead! Shai Surprise!
xD
I still cannot believe they did this
 
I actually appreciate this new artistic Shia
He's actually pretty good in that Sia music video
 
how should I call this? codepen.io/MateiGCopot/pen/azeWdy
 
what*
call it fireworks
 
@NickDugger that shit was weird (but Sia always is)
 
4:43 PM
@NickDugger too unoriginal
 
Charlie Countryman was pretty good
 
@ssube I really got into the artistic aspects of it
 
and the end of actual cannibal is great
they should have had a sled on the chair next to him
 
ok, calling it "my brain on cheese"
 
@towc might wanna look up "south park cheesing" before you say that
 
4:48 PM
hide the cats! hide the women!
 
@SterlingArcher erm...
 
ok, any other suggestions? XD
 
Spinal Tap
 
"banana".match(/a*/); why does this regex result in "". It obviously matches the first character, and doesn't affect the a, shouldn't it match all the as?
 
4:55 PM
the first character?
the first character is a b
 
@StevensHaen a* matches 'b'? bullshit
 
not an a
so it matches 0 a's before the b
 
it's important to remember that a secret empty string could be hidden anywhere you look
 
@ssube So, the asterisk is applied to a but it still matches 0 or more times so it matches the first thing in the way of the engine?
 
morning
 
4:59 PM
It matches zero times, and 'a'.rep(0) === '', and the could be a '' before the 'b' if you wanted, so there it goes...
that's why * isn't nearly as useful as you might initially think
 
@ssube What's the purpose of it at all?
 
while writing parsers, I've found that I use + or ? much more than *
typically I know it's there and want some of it, or don't know it's there but only want one
wanting zero or more seems to be rare
 
@ssube I cannot make sense of your above example.
 
!!> "banana".match(/a*/g)
 
@KendallFrey ["","a","","a","","a",""]
 
5:06 PM
Huh
 
user1596138
@Loktar HAHAHA wtf
 
user1596138
> Actual Cannibal Shia LaBeouf
 
I had that Shia LaBeouf song stuck in my head the other night... talk about torture.
 
@KendallFrey I know I can match with global, but why do I have to?
 
user1596138
This is killing me
 
5:09 PM
What's the asterisk even useful for?
 
@StevensHaen You don't have to, what are you trying to do?
@StevensHaen for when you want zero or more repetitions
 
@StevensHaen It's useful when you want zero or more matches for a group?
 
user1596138
@StevensHaen you had these questions yesterday. Just google regex operators and study
 
user1596138
Go fuck around in the refiddle you'll figure it out faster than asking
 
@KendallFrey I'm trying to figure out everything about regex, it's not a specific task
 
if someone on fb writes "Have *I* done this??" what should I expect?
 
@KendallFrey Gosh that website is so 1998.
 
@SomeKittens moses christ
 
@Retsam It's the go-to guide on regex.
 
5:14 PM
@KendallFrey I'm not complaining about it as a resource. I'm just grumbling about the style.
 
!!riot
 
╯°□°)╯┻━┻
 
!!put..it..back...ლ(ಠ益ಠ)ლ
 
┬─┬ ノ( ゜-゜ノ)
 
5:24 PM
╯°□°)╯┻━┻
 
I have a problem
 
@tereško Just one?
 
@tereško are you sure you don't have ninety-nine ?
 
In a two-submit-button form, is there some in way for passing the clicked one when using FormData?
 
without listening for the click on both buttons?
 
5:27 PM
yes
 
Don't think you can
 
the FormData is used in onsubmit event
 
could you consider adding hidden fields and populating them on click then letting the form submit normally
 
Give them a name?
 
^ that also works iirc.
 
5:28 PM
@rlemon Probably ajax?
 
@rlemon no, it does not
 
@tereško Try giving them both the same name
 
doesn't work
 
guysssssssssssss
 
<input  type="hidden" id="button1clicked" value="0" />
<input type="hidden" id="button2clicked" value="0" />

btn.addEventListener('click', function() {
   button1clicked.value = 1;
  // let the event pass through to submit the form
}); // repeat for both buttons
 
5:29 PM
@tereško The only way I can think of it not give them names, and have a listener for click on both to popular a hidden input.
 
won't that incur a race-condition with onsubmit event ?
 
@rlemon Or... <input type="hidden" name="clickedButton" value="" />
 
why i am getting undefined value
 
@SecondRikudo well mr fancy pants over here
 
5:30 PM
arghhhhhhhhhhhhh
 
@tereško Do you allow submission by ENTER?
 
yes
 
How did Google distinguish between whether you pressed "Search" or "I'm feeling lucky" in 1999?
They didn't use JavaScript, did they?
 
@tereško click fires before submit IIRC
 
@SecondRikudo on a tangent note, women don't like that pickup line
 
5:31 PM
@copy FormData is a HTML5 thing
 
.closest('input').find('.textbox')
 
@tereško Ah, nevermind
 
@Obvious you're telling it to look for .textbox as a child of input
input is .textbox
also, don't use inline event handlers
someone will end up punching you
it's only a matter of time..
 
yeah i am not going to use inline, i will bind it with knockout, just did it to simplify
 
document.forms["YOUR-FORM-NAME"].addEventListener('click', function(e) {
    if (e.target.tagName.toLowerCase() === 'button') { // Or alternative input[type=submit]
        this['HIDDEN-INPUT-NAME'].value = e.target.textContent; // or value
    }
});
@tereško try this
 
5:36 PM
@rlem
 
6 mins ago, by tereško
won't that incur a race-condition with onsubmit event ?
 
@tereško Shouldn't.
 
@rlemon how can i find the nearest input to the button?
 
@tereško no, the button click will fire before the submit
 
Your HIDDEN-INPUT-NAME input's initial value should default to the button that's getting hit when your press ENTER
 
5:37 PM
@Obvious exactly how you had it, minus the .find
 
@rlemon wanna see a pig with three eyes?
 
@rlemon i updated, but still undefined. jsfiddle.net/Obviously/ev0Lcx7q/2
 
Do you guys know any more efficient way to do this: Array.apply(null, Array(10)).forEach(function(v, i) { console.log(i); });
In a ES5 way ?
Or ES6 whatever
xD
 
Define range and then use that
 
but a shorthand for that
 
5:39 PM
efficiency wise a for loop is faster
 
@Catgocat for loop
It's one of those cases where a for loop is just right.
 
In a ES5 way ?
 
12 secs ago, by Second Rikudo
It's one of those cases where a for loop is just right.
 
@SterlingArcher got more pics of your mum to show me?
 
"ES5 way" is what you've written
 
5:40 PM
@rlemon pfft no
piiig
:D
 
:(
Ok guys thanks :)
 
@Obvious jsfiddle.net/ev0Lcx7q/3 so start debugging
your .closest isn't working
 
const {data: {responseObject: {customerToken}}} = await RESTService.get({url: 'geToken', params});
 
@SterlingArcher that'll do pig.. that'll do
 
can't say I like this kind of destructuring
 
5:42 PM
teeheehee
 
Do you guys think codementor.io is worth it? I feel I might be writing shitty code without knowing it
 
;o
:OOOOOOOOOOOOOOOOOOOOOOOOO
 
@Catgocat or just post it here
 
When did that happen anyway?
oO
@meagar
I didn't know there was a code review forum
 
5:47 PM
@Catgocat It's been around for a while
 
cool :)
 
@meagar hey @meagar! @meagar I voted for you pay attention to me!
 
The oldest meta question is from 2011
 
:frantic waving:
 
8
Q: What should our FAQ contain?

ZolomonSo, just to break the ice with one from the great seven. What should our FAQ contain? (One FAQ suggestion/answer)

@SterlingArcher Thanks
.... something something danger zone.
 
5:49 PM
@Catgocat Code Review is awesome.
 
@meagar I can't find that specific one so youtube.com/watch?v=RRU3I_o1vLc
 
!!lana
 
It's from Sea Tunt... which I just re-watched.
 
I watched all of season 5 last weekend and it was so freaking funny
The thermometer chart of cocaine losses killed me
 
I should re-watch them
that and Silicon Valley
it's probably been long enough now
 
guys its working now
i replaced the closest with siblings
 
Code reviewers have an enormous skill though :)
 
@Catgocat wat? everyone who writes code should review it
 
5:54 PM
Any idea how can i remove $(this)
 
I mean what they do, point every single detail.
 
@ssube I prefer the old fashioned method of "I didn't run it but it should work"
I think that's called "Danger Zone Development"
 
@rlemon new season is out I believe
 
@SterlingArcher This is depressingly close to some dev I've been doing recently.
 
@Mosho I thought it was later this month
April 12, 2015
nvm
I've missed the premier !
 
5:57 PM
@Retsam lol omg
 
Mostly it's just trying to fix bugs I'm not able to reproduce. So it's "this doesn't break any 'unit' tests... I'm guessing this will fix the bug?".
 
!!tell rlemon youtube rap god the animal in me
 
savage
 
seen it
 

« first day (1641 days earlier)      last day (3300 days later) »