« first day (2147 days earlier)      last day (2816 days later) » 

12:00 AM
Still has to give his info
 
he doesn't have to give it to her.
he just can't flee
 
well he didn't pick up her padding
yeah you don't have to give a drivers license
just need to trade insurance info
 
Yeah you're right
 
but you can wait until the cops get there to do that if you want (if they are available to come)
 
especially if she is being irate
the reddit comments were mostly talking about how she has a prominent career as a wrestling announcer.
 
12:01 AM
He shouldn't have recorded it though
 
@Meredith whys that?
I 100% would
he has proof she is crazy and I would say verbal proof she caused the accident on purpose
otherwise you get the ticket if you rear end someone
 
If it's a no fault state, he didn't help himself
 
if someone is road raging on me I'm 100% recording that shit
 
I have a dash cam for these reasons
 
you don't know when it turns from yelling to property/physical damage
better safe
 
12:07 AM
Goddammit, Virtual Desktop
swallowed my F9, couldn't quickload
 
12:32 AM
Balance your tires, kids.
 
@rlemon @KendallFrey imgur.com/gallery/N6Kz0hK
 
@ndugger hah
But is the Cup actually in the US?
 
I like that comment about the cup, because the blackhawks have 3 players from the USA
 
lol
Just because USA has the resources to support more hockey teams, doesn't mean that hockey is any more American.
 
12:43 AM
isn't this the first year Canadians made up less than the majority of the roster?
(I haven't followed hockey in a bit, just recall radio saying some shit)
 
When you think about it, the reason the US has more people is the same as why Canada invented hockey: It's cold as tits up here.
@rlemon Quite possibly, I know Canadian share in the draft is in decline
 
Anyone here ever used webdriverio?
Based off of Selenium?
 
1:00 AM
hi guys
 
Helo mr.Taco
 
@SterlingArcher :)
 
1:24 AM
Nill Bye?
 
Nill Bye the Frugal Guy! NILL NILL NILL NILL NILL NILL
 
Nil! Nil! Nil! Nil! = 0 0 0 0
 
1:47 AM
@AwalGarg You should use >>= for then and >|= for map, then it's not so verbose. A common pattern is to write some_async_call >>= fun x ->\n… and not to indent the following block, so it looks like sequential code
 
2:38 AM
Morning~
My mom purchased an assembled pc from a big local dealer and took it home yesterday. The bundled Win 10 box is opened, but the installed windows is using a different and disabled (pirated) key.
Spent the whole night explaining the problem to mom and have to pay the dealer a visit later today. With an eight month old preborn in the tummy (sigh).
 
Um, what
I thought you were the father
Apparently, you're the mother
Morning
Uh.. I get it now.
Smh
 
One of our contractors is ripping out Bluebird and putting in some janky custom stuff and I cry :(
 
2:55 AM
@littlepootis Because I turn a blind eye to gender based jokes? :p I still have some people on my chatroom blacklist for particularly bad ones...
 
@Sheepy Worse, I was being serious.
Well, off to prison I go.
!!afk voila classes
 
3:07 AM
@Sheepy lol wth
 
3:25 AM
@Sheepy I had no idea you were a woman this whole time
Wassup girl
 
3:43 AM
@phenomnomnominal janky custom stuff?
 
Anyone have experience with Webdriverio?
Using webdriverio, I'm trying to figure out how to procedurally chain commands.
Everything seems to be processed asynchronously lol.
 
@nick reimplementing some of the extra functions etc
just a bit yuck
 
why does that update all of the values in the array? I'm concating the array why isn't the object in the array cloned? Seems weird to me
whereas that doesn't?
 
4:00 AM
because when you spread the object you spread its reference
when you spread the primative you spread a new value
 
yeah that's annoying
but it makes sense I guess
was working on a bug prob shouldn't be this late
 
same reason Array(num).fill(obj) fills with the same obj every time
not a new clone
 
same as doing
const test = {val: 1};
const foo = [test, test, test];

foo[2].val = 2;
which makes total sense to me
@rlemon ty :P
didn't expect you to answer
 
np
 
figured you were sleeping
 
4:02 AM
nahh
watching some netflix
 
> This snippet of code is syntactically valid in both PHP and Java, and produces the same output in both.
 
got it to work this way
const test = [{val: 1}];
const foo = [...test, ...test, ...test];

foo[2] = {...foo[2], val: 2};
super reduced case of what I'm doing
 
what do ... mean again
 
had to use babel for object spread though
@William spread syntax/operator
 
const foo = Array.from(test, v => v);
 
Jes
4:10 AM
how to extract the numbers between the square brackers in regex
CRON[23220]:
[[^]]+]
this is not working
/[(.*?)]/
 
makes sensee
 
@rlemon I need to copy an array x number of times and change 1 object property
it's a special case for some mapping
really annoying issue, we map things on county maps, DC has no counties
however the maps we use split DC up into 4 sections..
so I just have to apply the same data * 4 (changing the id property), into fusion maps
bug that cropped up during our deployment, yay lol
 
if only you could pass a function to fill
 
yeah exactly
that would be so awesome
I like fill.. but that is a pretty big downfall imo
well not downfall, but you could do some cool shit imo
 
you can fill(0).map(fn)
but that is annoying
 
@Loktar I only know about x86, but that has been kept backward-compatible for a long time. They removed some encodings in 64 bit mode, but it's still backward-compatible and doesn't make the instruction set simpler
 
@copy that's what I thought (about backwards compat). Was just wondering if there was a hard reason Win 10 couldn't run on kabylake
thanks for the info
I know you're the x86 guy :p
or rather, windows 8 or 7 on kaby lake, not 10
 
That's a good question, maybe it'll work but they don't want to provide support in case it doesn't work
 
yeah that makes sense on their end I suppose. Just have been wondering if it was something beyond that, but probably not
 
5:06 AM
@phenomnomnominal ah
so he's replacing bluebird with native promises basically?
 
Yeah and a few polyfills
Which I'm all for
 
5:27 AM
Morning guys, I have a question regarding AngularJS
 
@copy Ahh the syntax extensions. I tried them but they were a little confusing so I went back to named functions. I'd give them another try, thanks.
 
I have 3 views and they are all step up using ng-view
When a link is clicked, the page is navigated to "Step1" page to "Step2"
The problem is, "Step2" View has some options
Like when user clicks on a checkbox, a directive is inserted into the DOM
User can add more or even remove them
Now when I go to next view
and come back, all the previous DOM manipulation is lost
I want to preserve the view state of each view
How can I do that?
Any help guys?
 
5:54 AM
Hi. How do you install a node app in an environment where there is no access to the internet (npm install won't work)?
 
6:41 AM
Who's Bill ?
 
@SterlingArcher feel free
 
Gates?
Clinton?
Cosby?
 
6:57 AM
The one who made the Pokémon Storage System
 
@IIARROWS Welcome to the JavaScript chat! Please review the room 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.
 
@IIARROWS I think it's a reference to Bill Nye, but I might be mistaken.
 
user4196492
7:13 AM
Trying to understand shifting.

num >>> 0

is it to do with number systems? how does it work?
 
user4196492
>>> so it is base conversion?
 
user4196492
that's it?
 
user4196492
if I shift to 0, will it do nothing?
 
user4196492
@DenysSéguret I am still really confused, this makes no sense to me
 
7:22 AM
For binary operations, numbers are promoted to integers (by flooring)
so shifting by 0 does nothing when your number is an integer, floors it in other cases
That's an old trick to floor numbers: Math.PI*2|0
(not really flooring, more like ignoring the bits not related to the integer part)
 
user4196492
ah
 
user4196492
What I am confused about then, is when I shift over 0

Math.PI >>> 10
 
user4196492
so it just ignores more bits the higher the number?
 
user4196492
0011 >>> 2 = 0000
 
user4196492
10010101010101 >>> 5 = 100101010
 
user4196492
7:35 AM
thanks for the help
 
@pebble225 shifting 0 does nothing, unless I am mistaken
 
7:54 AM
I have some elements and I return their numeric values using textContent and in console is listing each element values
the question is : how to get the sum of these numeric values
 
@BenjaminGruenbaum What do you mean by Private Property here? C++ private members?
 
A v8 private symbol
 
An ES6 Symbol which is not exposed?
 
8:11 AM
Yeap, jQuery users don't vote xD
(Or my answers are just crap)
 
I can't blame dem users
they made me rich!
(rep-wise)
POP
 
8:30 AM
This is uh... really embarrassing, but does anyone want to help me with writing a switch/case statement?
 
Go for it
 
cool
changedValue3 case is brand.value == something
 
@Cerbrus you still have a better ratio score/posts on jquery than on js
 
this chat is just for fun and spam bro, write your question on SO, will be better 4u
 
do I just write switch(changedValue3())?
they're going to downvote me for not knowing how to do switch/case
 
8:32 AM
yeah, I know there are some idiots too
 
I don't understand what goes in switch exactly
 
they are just programmers
 
is it just a function?
idk, it's late
I'll come back later. Thanks everyone
 
maybe this will help you a little bit to have an ideea
 
@DenysSéguret Ough, that's a fact that hurts xD
@mcmwhfy Not true. This chat is also about JS.
 
8:35 AM
@Cerbrus just answer more, if you want more rep ^^
 
@Cerbrus riiiiight
lol
 
@user6582640: You're free to ask your question here, as long as you're not a help vampire.
@DenysSéguret MOAR REPZ
 
@Cerbrus fact: with more rep comes exactly nothing
(well, a T-Shirt and a gigantic mug, maybe)
 
Badges --> Bragging rights
These things matter xD
Oh, I already have 3 t-shirts xD
And a mug, now I think of it.
 
In fact I'm interested in the regex gold badge because I want to close most questions faster. But I don't get much rep as I vote to close more often than I answer...
3 SO t-shirts or 3 t-shirts ?
 
8:40 AM
3 SO t-shirts
 
@Cerbrus Wahoo... what did you do to get that ? To whom ? Did it hurt ?
 
1: 10m giveaway
2: share your experience thing
3: One of those 2 had a small hole in the front, factory defect. So I sent a mail with a picture of it, and they sent me a new one :D
 
Oh, they forgot me for the "share your experience" thing
 
1 & 2 may not be completely accurate, there were 2 giveway events related to 10m questions...
 
And I don't know what's the 10m thing
 
8:45 AM
Oh wait, the "share your experience" thing: I was the one writing a story, there, and subject of a story, there. so 2 shirts. What was it
 
9:18 AM
@MadaraUchiha in the last slide probably?
 
Where are all the notes 0_o?
hmm
 
9:33 AM
o/
 
What is the AngularJS ($q) equivalent of ES6's "Promise.resolve()"?
// always returns a promise
return noCache || cache[key] === undefined
    ? $http.get(url).then(function(result) { return result.data })
    : Promise.resolve(cache[key]); // < -- should be ES5
 
Hmm, the scroll bug doesn't seem to exist on Canary
Anyone else on Windows 10 running Chrome 52?
 
9:49 AM
-6
Q: Restrict Mjölnir privilege when voting to re-open a question that was close-voted by multiple users

CerbrusBasically: don't allow a single user to re-open a question that has been closed by multiple users. I've seen it a couple of times (recent example): A question gets closed as duplicate without a gold badge owner's participation. (There's 5 votes on the closure) A gold badge owner comes in and s...

What do you guys think? So far, people seem top be touchy of others messing with their power ;-)
@MadaraUchiha: I'd love some input from moderators on that ^ :D
 
10:04 AM
@BenjaminGruenbaum Your slides look nice! Got to learn more about AsyncIterators soon
Is the video going to be up soon?
 
@Cerbrus Yeah, I agree that flags should be raised in cases like that. Limiting the ability doesn't feel right
> Why can a single user overrule the "judgement" of 5 other users?
Because the user has the gold badge, that's why :P
It's the badge that says "Sheriff of town"
 
@Cerbrus I don't think that the judgement of the 5 is worth little.
But the judgement of the One is worth much.
Remember the idea of Stack Overflow isn't closing, and the gold badge Mjolnir is there so that moderation is made easier.
I don't want to make reopening harder.
And I haven't seen too many problems with the Mjolnir on either side.
In exceptional cases, moderators can always step in.
 
10:39 AM
Hi, anyone know of some service/tool to prettify ejs pages?
 
Hello everybody,
 
@MadaraUchiha .. say a person with 4 different Mjolnirs
 
@tereško I've got Gungnir.
+ 4 Mjolnirs :D
 
@deostroll If you're using express, app.locals.pretty = true;
 
maybe I should also get a golden badge in js (currently working on one for ... but to do that I have to spam 50+ answers)
 
10:43 AM
@BenFortune no i don't mean when its served up by express...I mean the page as such
prettify whatever is written in there...so its easy to follow in the text editor
 
I have an imagemap that I'd like to make responsive. So far my image map works fine, but when my screen gets bigger or smaller that image map doesn't work properly any more.

Normally some houses should become blue when you hover on them. But now you have, unfortunately, to hover next to them to make them become blue...
I found some code online to solve this issue. Copied that code on line 32. But now nothing becomes blue anymore. If you comment line 32-end you will see the effect that I want.
I am open to other solutions as well.
 
@trilolil You need to recalculate the coordinates
 
I see.
I see how I could recalculate it. But have no clue about what the syntax would be to modify them...
 
23
Q: Dynamically resizing Image-maps and images

ultrazoidI'm currently trying to make an Image-Map on my site that will resize depending on the size of the window... I was wondering if there was anyway to do this with HTML or will I have to do this with Javascript or another language. <div style="text-align:center; width:1920px; margin-left:auto; mar...

 
10:48 AM
OK, I ll do some research and do sme trial and error. Thx @BenFortune
 
11:02 AM
@MadaraUchiha That's fair. (no sarcasm) What I learned from that question: Trust users. Flag if things go wrong.
 
11:31 AM
@BenFortune Sorry to disturb again. I had a look at the link you posted. Used some code, which I can understand, that was posted on the page. However it doesn't work at all and I don't know why. Any idea's what I may do wrong? I have been trying different things the past 40 minutes, but still have no result.
You can see the hoverable area map is still not positionned correctly.
 
DER DOIN ANUTHR SPACEWALK yay youtube.com/watch?v=HDh4uK9PvJU
@rlemon ^ ping
 
Well for a start, you don't have a map element with the ID map_ID
 
@BenFortune oops...
Fixed it.
(that small issue)
Chose that piece of code to analyze and use, because it is very clear and not too difficult to understand. It looks a lot like C.
 
11:47 AM
@SomeGuy Yeah, I already reviewed a draft
 
@BenFortune what does it say on your side if I may? I still have no proper result. This will probably be the last bit op javascript I'll need (fortunately).
 
Not sure, your coordinates are off since you changed the width to 100% though
 
@BenFortune to what are you referring? The table width?
 
Please don't use a table for that.
 
if you require the same module in webpack multiple times in multiple files, will each require link to the same instance/reference or will webpack give individual refs?
 
11:58 AM
@BenFortune tables is something I master and which works, that s why I used it. What were you referring to?
What would u recommend me to switch to once this first draft works?
 
Don't use tables for layout, tables are meant for displaying tabular data.
 
ok
 
!!tell 32606746 neat
 
@BenFortune Do you think that's the issue?
 
12:01 PM
i am the issue
 
LoL you gotta love SO
I need to read a html file or text file and show it in alert.i am new to javascript help me to solve this.
I DEMAND!
 
@jAndy Your SO would be mad otherwise.
 
@KendallFrey ohh I love google suggestions :P imgur.com/gc0RTBp
#1 for me for that stream
 
@rlemon lol, mine is the same
 
@rlemon Why's that screenshot that tiny?
Even the enlarged cutout is tiny
 
12:11 PM
it's only a portion
 
12:26 PM
Hello everyone, question about the javascript fundamentals:

I am trying to get the size of an image, but my console always outputs "undefined"
Why?

This is my current code: https://jsfiddle.net/nnyvf7bL/
 
@trilolil you have to wait for the image to load before it has dimensions
 
1 message moved to Trash can
@trilolil Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
so then clientHeight and clientWidth are undefined
 
@rlemon This is exactly what I tried: jsfiddle.net/nnyvf7bL/1
 
@BenjaminGruenbaum Sweet. Ping me when it's up, please? :D
 
12:29 PM
@rlemon clientWidth and co seem to be built in in javascript if I understand it correctly...

source: first answer of http://stackoverflow.com/questions/623172/how-to-get-image-size-height-width-using-javascript
 
@FlorianMargaine sigh
You've done it all
I think I'll have to take a few weeks off at some point just to stalk your Github / Gitlab
 
@trilolil yea idk, but your code is wrong/odd in a few other places
you just jammed a jQuery ready wrapper inside of a callback
that is wrong
and you have a shitload of code duplication
 
I want to try a simple project with plain es6, no frameworks, using Babel. No need of version control as well. What will be the minimal steps to setup such a project and start with some coding. Just wondering if bower or gulp or anything can bootstrap the whole setup for me and get me to coding :)
Any blog post, any pointers would be helpful.
 
12:44 PM
sorry I am new to js ad trying to apply the basics correctly. I perfectly know what a callback is etc.. Here is a corrected working version: https://jsfiddle.net/nnyvf7bL/7/
Is it still very bad? One simple question: When exactly do the lines 2-6 get "executed" ?
 
anyone around with some deeper knowledge about webpack's chunking plugins and optimization?
 
@trilolil when they get parsed
 
Nit
@trilolil Do you mean var imgSRC and so on?
 
@Nit yes
 
Guys, mind close-voting a meta question as dupe? He's asking to remove the bounty timeout for gold badge owners
You are so selfish that you don't even understand that it is requested not for promoting own questions but questions from other people. — Your Common Sense 1 min ago
As usual, this user resorts to personal attacks when a discussion isn't going his way...
Just 1 more ;-)
 
12:59 PM
man @KendallFrey youtube throttle is super strict
> Message not sent: You have been sending too many messages. Take a break and try again.
 

« first day (2147 days earlier)      last day (2816 days later) »