« first day (2202 days earlier)      last day (2732 days later) » 

12:00 AM
@Shmiddty we all identify with other people in specific ways
it's part of being people
 
that's not an answer :p
 
in PHP, Sep 2 at 21:41, by tereško
@Jimbo dont look at me , I am really nice person .. I am also trans-black and identify as wet paper towel
 
@Shmiddty well, could I pull some bs out that would identify me as the antagonist. yea. that's good writing if you ask me
protagonist*
 
Hi guys :) anyone from NYC who would wanna o drinking on a bar? :D :D
 
'on' a bar?
 
12:02 AM
@rlemon the unfixed version seemed more impressive achievement for a story
 
At a bar :D thanks :)
 
@tereško like Death Note? ;)
 
@Luggage I iam from Czech Republic so English is not my native language
 
oh, a czechoslovakian
 
@JakubKohout ping @Neal
he lives there
 
12:04 AM
He wants to talk to people in NY, now, not home.
 
nite everyones
 
@Luggage I'd be willing to bet* that there's a Coyote Ugly in nyc
 
wat?
ohh bet*
 
@Shmiddty yes there is :D
 
dance on a bar all you want ;)
 
12:06 AM
ohh, that's where you were going with that.
 
Gurren Lagann is a pretty good anime, but it's better if you've seen a lot of anime. It's kind of a satire.
One Punch Man is also great for similar reasons
 
seen one punch man
 
@rlemon thanks for info :)
 
it satirizes the power escalation that is common in so many series
did steam get ddos'd too?
nvm
routine maintenance
 
The only thing getting ddosed right now is @rlemon's mom.
 
12:13 AM
ayyy lmao
 
#truestory
 
!!FFT:A or Advance Wars
 
@Shmiddty FFT:A
 
!!firetvstick or firetvbox
 
@Abhishrek firetvstick
 
12:25 AM
okay cap
Anybody else who has a firetv stick, can that thing even run a reputable web-browser?
 
12:36 AM
Q: Those of you who learned JS through a college course - what did you wish you had learned, but didn't until later?
 
12:56 AM
They teach JavaScript at college now?
That's progressive
 
They only taught jQuery in my college :(
 
fair enough - what was the most useful JQuery thing you learned?
 
When not to load jQuery, mostly.
I'm 100% serious too
 
user2620028
i submitted a page that had javascript in it for a web development course
 
user2620028
1:10 AM
I was asked to never submit an html page with js again because the professor didnt understand what it was. Yay senior year of my bachelors degree
 
I'm in my first semester and the professors don't understand most of what I talk about.
 
is anyone of the regulars here from South California / LA region?
 
1:30 AM
Hi guys! Hope you're all doing well :) Just wondering if anyone here has had some pretty simple gulp experience? I just got on-board with it to improve my workflow and have a generic question: stackoverflow.com/questions/40252215/…
 
1:57 AM
I don't even know what is javascript during my time in colleege (8 years ago)
 
@SimonLoh 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.
 
2:16 AM
is there a way to easily add or remove global libs to chrome dev tools?
lodash, momentjs, react, etc?
I'm pasting in a load script right now, but it's a lot of steps
 
2:41 AM
@BadgerCat Happy belated birthday!
Did you do anything fun? :D
 
nothing in this world is fun anymore
now that the shitty outlook interface is burned into my vision for all eternity. Please, somebody, let this day end
 
Wolfram Alpha is a real smart-ass
I asked how far away the nearest star is, and it told me it's ~0.99AU
 
2:58 AM
well... it's not wrong
 
oxymoron?
 
why?
 
 
2 hours later…
5:00 AM
*"We think the data in this field looks strange, did you get it from the backend?"*

*"No, we roll a fucking dice every time there's a GET request"*
smh
 
5:36 AM
0
Q: Changing Slide speed of a Image not working properly in IE 11, using JS to update CSS animation properties

Arindam Banerjee**This function is used to control pulse speed animation, it's working on all the browsers except in IE 11 and Edge(windows 10) the pulse speed not decreasing properly. ** The styles are changing dynamically using javascript but the effects of the style changes are not reflecting in the pulse s...

 
@ArindamBanerjee 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.
 
help me on this.
 
 
2 hours later…
7:14 AM
What's the magic word?
 
"urgent" ?
 
Hey again @BenFortune could you explain why this works:
$("#ID a[href^='#']")

but this doesn't:
$("#ID a[href^!='#']")
please :3
 
i read the news today which pointed me to the nodejs site. I saw that version 6.x and 7.x are out. I´ve started working with node some month ago and installed the latest version, which was 4.x. How quickly they are shipping the version´s? Can i go painless to the latest version or are the probably some breaking changes for some things? Working with express / reactjs
 
7:29 AM
@elsololobo there's a xml feed for it somewhere
also look for a migration list, that'll help with breaking changes
 
ok thanks
but did i installed a outdated version some month ago or are they rly shipping more versions in short time as mcdonalds cheeseburgers?
 
@ArindamBanerjee Oh, certificate error!
 
@bitten Oh, looks like someone posted some wrong information:

http://stackoverflow.com/questions/303956/select-a-which-href-ends-with-some-string
Anyhow, thanks!
I've put up an edit for that answer.
 
@elsololobo They have an LTS and a latest version. LTS = long term support. 6.X has been out for months
If you don't want to put up with many updates and new features, use the LTS
 
7:50 AM
ok i did. Everthing seems still to work ;) thanks
 
 guys any way around for associative arrays in Angular formArray

    'contractor_types': new FormArray([
       'firstkey'   => new FormControl(),
       'secondkey'=>   new FormControl(),
     ])
 
@CheckMeOut Objects?
 
yeah but formArray accepts an AbstractFormControl
how to assign associative index to the control?
 
What about how the docs do it? new FormControl('firstkey')
 
8:05 AM
that's actually different in the case of formArray controls..
 
Well then no, you can't.
It looks like it fits your requirements though.
 
1 message moved to Trash can
@CheckMeOut Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
new FormGroup({
  foo: new FormControl(),
  bar: new FormControl()
});
 
a fuck issue
*fuck all
0
Q: Multiple http requests in for loop causing problems

Gandalf the White What I am trying to do? I have a Trip Schema which has many location points in each document, I am sending the location points in batch of 100 to a remote server and then I am working on that response. Document Schema (minimal example) { uniqueid : String, location_points :[{ timestam...

 
@GandalftheWhite Open and shut case, Watson Gandalf!
 
8:19 AM
Duplicate?
I have seen threads with simple context
there they weren't dealing with the case where requests were dynamic and stuff
generally folks are handling requests with multiple urls instead
 
8:29 AM
hi all
anyone working with angular 2 here? I tried to npm the angular current version (2.1.1 ?) and get a npm err with unmet peer dependency ... rxjs@5.0.0-beta.12 required by @angular/core@2.1.1.. When I npm list, I do have rxjs@5.0.0-rc.1
 
8:41 AM
@Pigman168 thanks, well i've let them know
someone.. on the internet.. made a mistake
any mods online? i can't make an edit to that post as there's an edit pending
@MadaraUchiha? ^^
 
@bitten ?
 
@MadaraUchiha sorry for the ping, but i wanted to make an edit on this comment since it has some wrong information
but it's telling me that there's an edit pending
is there anything you can do?
the misinformation is the != attribute selector, it doesn't exist
 
actually, it's a jquery solution so in jquery it is valid @Pigman168
 
Yes it does
 
8:49 AM
@BenFortune yeah, pigman referenced this answer and was using vanilla
sorry, i misread ^^
 
I've rejected the suggested edit
!= is valid in jQuery.
 
haha, had someone suggested to remove != already? they must have misread like myself
@MadaraUchiha yeah, TIL
 
9:04 AM
0
Q: Multiple http requests in for loop causing problems

Gandalf the WhiteEdit: This question is different from the question marked as duplicate for this. I am iterating through the object using async.foreach as suggested there but then I have to use simple for to iterate through an array within the object. I cannot use foreach there. What I am trying to do? I have ...

 
You've already posted that.
 
And it was closed
 
9:19 AM
@bitten Wait so is it valid or not? If it is, why doesn't my example from earlier work? (I /am/ using jquery and not pure JS)
@BenFortune ^
 
@Pigman168 then.. i have no idea. check version compatibility
 
I'm using the latest :S
 
@Pigman168 ^! doesn't exist
What is it you're trying to do?
 
Select all anchor tags within an ID whose HREF value does not start with #
$("#ID a[href^!='#']")
 
$('#id a:not(a[href^="#"]')
 
9:23 AM
Thank you! :)
I'll give that a shot
 
If that didn't work, that edit should
$('#id a:not([href^="#"]')
There might be an easier way
 
Ah yes, the second one worked
Thank you!
 
9:41 AM
@DrakaSAN Check my edit.
 
ok so
When I do npm install the angular 2 (core, compiler, common, platform-browser / dynamic), rxjs, reflect-metadata and zone.js. I get a unmet dependency error. About rxjs. Rxjs installs the latest version and it's not the one specified in the angular2/core package.json file. I fixed it with adding "^" before the rxjs version in the json file... hope it will not break the whole thing
 
@Julo0sS should not. often ^ is the way to go to make sure you get the latest stuff while at least starting at the version mentioned in that package.
 
10:16 AM
@thedigitalmouse yep but guess why it's not used in the angular core dependencies... there may be a reason... or not...
 
@GandalftheWhite: As stated in the question linked to your duplicate, you can not mix for with asynchronous functions like request. You can use async.foreach again, or async.map, or async.each, since you do not need to iterate, you need to execute on every document
@GandalftheWhite
@GandalftheWhite: Also, please ping me on rooms I am in, not other rooms. You could also have reposted the core of your edit ("But I can't use a foreach here") in the chat room instead of pushing people to go back to a already closed question
 
user5861300
help me out
 
user5861300
0
Q: How can i calculate each user positive,negative point and remaining point?

001Below is my data , which is stored in document .i want to calculate each user positive_point and nagative_point and remaining point .remaining point means positive_point - otal nagative_point here we had 3 user 580da5653bd3cc5802f6c37c 3bd3cc5802f6c37c580da565 2f63bc580c37c580da565d3c my ex...

 
10:32 AM
What kind of punctuation is that? O__o
 
@Zirak I'm only coming to the first talk, I think
 
@BenjaminGruenbaum I saw your name in the Node 7 release notes this morning. Yay :D
 
I didn't understand that promise-related feature though :P
 
Promises no longer swallow errors by default
 
user5861300
10:34 AM
hai sir help me out@OliverSalzburg
 
If you're up for it - make some more PRs and come be a collaborator like me and @thefourtheye :)
The project is always looking for more core collaborators.
(although to admit, I've been relatively low profile and super busy lately)
 
@BenjaminGruenbaum I always try to contribute to any project where I notice something I can do. I gotta say, the process with Node was a very positive experience
Great review, great feedback and QA. Very nice overall
 
@OliverSalzburg a lot of people spend a lot of time to make sure the Node process is streamlined and that new collaborations are welcome. I hope you become more involved, the project certainly has a lot of work that needs to be done and you can definitely do it :)
It's also free code review + if you do it enough they'll invite you to speak about it which is always fun.
 
@BenjaminGruenbaum Is there like a big to-do list somewhere? We don't really come across any issues with Node in our environment
 
@OliverSalzburg not really, but there are a lot of FIXME, TODO and BUG comments in the code, there are a lot of issues that need work and there is a good-first-contribution tag
 
10:39 AM
@BenjaminGruenbaum Ah, yeah, I had that tag on my issue :D
 
Knu
Someone knows a way to throw a custom error dynamically? e.g. something like throw new [constructorType]('msg');
nvm just this will do
 
Just don't eval :P
But generally the factory pattern is used in this case
 
Knu
I dunno why I didn't think of self[type], brain dysfunction
 
self[type] is probably not a great idea since it relies on the global namespace
 
10:56 AM
If you have the type, why not simply new Type()?
 
hello everyone
 
I have 2 buttons positioned using simple css
"position:absolute;left:35%;"
I need to do the same using flex
 
11:11 AM
"plants"
Oh, wait, if you scroll down they're getting pretty specific :P
 
haha yeah
Build your very own fully automated loft hemp farm :D
 
is anyone else having problems pushing to gitlab?
 
Morning
 
@bitten You mean gitlab.com or, in general?
 
@OliverSalzburg gitlab
 
11:24 AM
 
git fetch, git pull and so on all return 500
 
This means that JSX is not being transpiled, right?
 
error: The requested URL returned error: 500 while accessing http://gitlab.com/....git
@Shoe most likely, yes
 
@bitten But who's showing me that error? Webpack?
 
i can log in online and use the gui to the repo, just not from the cli
 
11:25 AM
@bitten Wow, that makes it so much clearer!
 
@OliverSalzburg haha
i expanded below
 
I see. Well, we're not using gitlab.com, so, no idea
 
@Shoe yes
@Shoe but i don't know how or what you're trying to run
 
@bitten This is my webpack config: pastebin.com/y87UGM9Q
 
@Shoe babel or the typescript compiler
Depends on which you're using to transpile your cdoe
 
11:30 AM
babel I guess
 
Right, so Babel in that case.
Can you show us your whole class?
JSX is more like XML than like HTML, if you have an <aside> you must have an </aside> to close it.
 
@Shoe Has to be contained inside an element.
 
A jsx tag is just a function call, here you're calling two functions as the return value.
 
@BenFortune You mean that I can only return one top level DOM node?
 
11:34 AM
@Shoe Right.
 
I see, let me try
 
You can also return an array of several elements, but generally don't.
 
> The render() method is required. When called, it should examine this.props and this.state and return a single React element.
 
Doesn't seem to work if I remove the <main> tags
Same error as before
 
<div>
  <aside />
  <main />
</div>
That should work
 
11:36 AM
Shouldn't this work?
 
Uh, yeah.
 
got any hidden characters?
 
Are you using a .babelrc file?
 
@BenFortune Nope
@KendallFrey Not that I can see :P
Even with <div> it gives the same error
 
How is the babel loader loading the jsx plugin?
 
11:40 AM
No idea
 
So... it's not? :P
 
Probably not, I thought babel loader was the JSX thingy
Do I need that .babelrc file?
I kind of followed this: juxt.com/pov/thoughts/… and then adapted to a nicer syntax
 
Hey does anyone know if you can rebuild with cordova? Or do I need to keep stop the server and run it again to update the code?
 
npm install babel-preset-react --save-dev
Then add the following to your webpack loader
query: {
    presets: ['react']
}
 
Hey friends, any pro of perl there?

I'd like to know why that is not working.
perl -i -ne '/mail (.+) souhaite/ || print "$1\n"; res.txt
 
11:45 AM
I don't see a matching closing quote. I don't know if that's a thing.
 
Hoo indeed :/
 
@BenFortune Awesome, thanks
Now it complains of an unexpected token import on the browser, but at least it's compiling JSX
 
@Baldráni Then you should join the Perl room, not the JavaScript room
 
Import is es2016, you need that preset
 
I probably need to add es06 or something to the presets
 
11:47 AM
npm install babel-preset-es2016
then add es2016 to the presets in your webpack config
 
@OliverSalzburg Is there a perl room ?
 
@BenFortune Done, but weirdly it keeps giving me the same error
 
@Baldráni Yeah, but what is written there is not readable by humans :\
 
@OliverSalzburg Haha lets try being a computer then :D
 
Oh wait
You need es2015, not es2016
 
11:57 AM
try adding es2015 to your presets
{
  "presets": ["react", "es2015"]
}
 
oh, whups
:P
 
Holy shit
What the hell
The generated .js file has just become a 20k lines file
As opposed to the 100- that is was before
It took 150 seconds to generate
 
Welcome to babel
 
it'll have all your deps in there, so react, jsx, babel
 
12:04 PM
haha
yeah and webpack too
 
Yeah, and now I have to debug a "undefined React" error on line 609
 
run webpack with the production flag
 
The heck
 
webpack -p ..
you'll hopefully see a difference
in es6, with default function parameters, how can i check if any value has been passed through?
constructor(object = {}) { // how to check if object has been passed? }
 
object === {}?
(I don't know JS)
 
12:06 PM
@bitten object or !object?
 
Switch to TS if you want explicit types :D
Just check it in the constructor using typeof
 
Well, you wouldn't know if the user actually passed the object to the function, but semantically it makes no difference
 
@OliverSalzburg thanks, i'll look into it
 
Your interface explicitly defines a default argument, so passing {} or nothing is equivalent
 
@bitten I'm not sure I understand the problem :P
 
12:07 PM
usually i would just do constructor(object) { if(object === undefined) {} }
 
Now I understand why you need watchers for the compilation
 
@bitten Yeah, but now it will not be undefined, unless someone explicitly invoked the constructor with undefined as the argument
 
The '90s called, they want their 3 minutes compilation for a simple hello world back
 
@OliverSalzburg well i have some es5 code that i'm transpiling, it looks like this: pastebin.com/6DVV9nje
so i was just doing (object = document) but then i was wondering how to keep line 4
 
@bitten Drop the check
According to that location, this.object is either the passed object or document
 
12:12 PM
@OliverSalzburg thanks. and thanks for the sanity check.
so now i'm just doing this.domElement = domElement; this.domElement.setAttribute('tabindex', -1);
 
Oh, wait, I guess the line wants to avoid calling setAttribute on document
Then it should probably do that if( object !== document ) ...
And please don't use pastbin, it makes me cry :(
Or at least post the /raw link
 
too many ads?
:p
thanks
 
@bitten There are alternatives that are easier on the eyes
 
i might just go have a break because i need to spend some time with this
@OliverSalzburg sorry, it's just habits
 
im so looking fwd to getting the new mac
 
12:24 PM
was it even announced, yet?
 
ehhhhhh
I saw a pic
 
we'll see. I'm trying not to spend money at the moment. I'm mostly happy with my late 2013 macbook pro, but should have gotten more ram
 
im already growing tired of my 2015 MB P 13" 8GB 256
 
same ram as me. should be quite usable.
 
defo wanna get a 15" next time
 
12:26 PM
13" is a bit small for a primary. yea.
 
my mum will enjoy an upgrade from a dell
 
when is this being announced, tomorrow?
 
unless you have to help your mom with apple stuff all the time
 
hmm, she uses her dell for email and web)
what can go wrong
apparently we dont need the ESC key anymore
maybe later this week actually
 
12:31 PM
var regObject = new RegExp(queryText, "gi");

How do I find out which words were matched?
 
@Pigman168 That wouldn't match anything, just create an expression object
 
It's not being checked, Anyone angular dev there?

      <input type="checkbox" id="corporation" name="corporation" value="corporation"
                        [attr.checked]="true" ngModel>
 
@OliverSalzburg Ah yes sorry:

stuff.replace(regObject, newStuff);
 
@Pigman168 You might just want to call .match if you want to see the matches
 
@OliverSalzburg Oh ok, thanks!
 
12:36 PM
@CheckMeOut Angular and Angular2 are two different things
If that is Angular, then I don't see how that would do anything useful at all
 
sorry it's angular 2
 
@SuperUberDuper crap, i use my escape key. i assume it's on the "magic" toolbar, but..
 
@Zirak ping
 
yep
am a bit worried about the fn keys too, maybe they dont care about programmers?
anyone use monorepos?
 
@SuperUberDuper Nope what is it?
 
12:41 PM
well, the Function keys were hidden behind [Fn] anyway.
 
i unhid them
 
and the magictoolbar can be used for app-specific functions. I think it could work, but ESC is a basic key.
I find I use F-keys rarely
 
It sounds like some manager that doesn't care for us made that decision? Not sure haha
 
TIL: looks like TekSyndicate imploded
 
@Luggage Just tell Siri to ESC for you
 
12:43 PM
good idea
"Siri, lets blow this popsicle stand."
 
If they have a light weight 15" im prob sold
I travel too much to lug a brick about
 
You don't workout enough*
 
I fit all my clothes into 1 cabin max bag for indefinite periods
@Pigman168 not really I'm pretty fit
but its the constant strain on you back that is annoying
 
And a nudist.
 
@SuperUberDuper Yea I'm just playin, I definitely need to go to the gym ._.
 
12:46 PM
should I upgrade to sierra?
 
(underweight)
Hence my username
 
Hello, does anyone know how to check if 2 buttons are pressed with Javascript / Jquery? There isn't something like if(button.down && button2.down) is there?
 
Use cookies
or variables
 
how would i do that with variables?
something like, if button press make var button1pressed = true or something
and then check if both of the vars are true?
 
1 message moved to Trash can
@Pigman168 Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
12:53 PM
Thanks pigman i understand hwat you mean
 
Sorry for the spam but yea, hope that helps
 
Thanks it helps def!
 
oh and call a third function from both of those
to trigger whatever else
 
Thanks!
 
No probs
 
12:55 PM
@HuubS can 2 buttons be pressed at the same time with touch events?
 
Oh, was that for mobile dev?
 
Yeah that was for mobile dev
@sup
Idk im testing it out right now
 

« first day (2202 days earlier)      last day (2732 days later) »