« first day (1969 days earlier)      last day (2993 days later) » 

9:01 AM
JS does what now?
 
user3119231
do some of this: "" around move.
 
I never thought VBS was a good idea, and I programmed VB6
apples and oranges though i guess
my most popular app was actually written in VB
 
@crl why?
Promise.prototype.tap = function(fn) {
    return this.then(v => { fn(v); return v;});
};
Or am I missing something?
 
what would you expect the default value of an Enum to be? Just the first value?
 
9:17 AM
what if the initial value isn't 0?
 
I'd expect the enum to still be 0.
 
crl
@BenjaminGruenbaum thanks, nice vpaste.net/jacJD
will try the same with await
 
Just use bluebird... @crl
@SomeGuy lmao
 
I'm still laughing XD
 
9:24 AM
what about there?
 
crl
@BenjaminGruenbaum I know, I did it with Bluebird at first, then I noticed lmongo also return promises
so almost the same wit Async (it's not really annoying to type it, but sometime I forget)
 
@phenomnomnominal Probably undefined eh :P
 
I'm trying to decide between the hard thing (working out the values from the type, sorting them and returning the minimum), or just returning null :P
 
Promise.prototype.log wouldn't really work well since you'd have to pass a function in anyway.
@phenomnomnominal I would expect an enum to not have a default value.
Just like there is not an actual "default number". A number can be neutral with regards to an action.
 
9:28 AM
default as in the idea that if you try to do something with the value you don't get an error
 
crl
@BenjaminGruenbaum yes that was a failed attempt
 
You can do something similar, but with a function
 
crl
yes, figuring out, with your tap example
 
crl
9:42 AM
hmm gonna use github.com/tj/co even if it's probably possible to use async/await with babel, but I'd prefer directly runnable code
 
@crl Promise.coroutine()
If you're already with Bluebird, no need to add another dependency
Also, you can tell babel to directly transpile async functions to Promise.coroutine() + generator function.
 
crl
oh, ok
co(function*() { /// how do you convert that with Promise.coroutine?
  var db = yield MongoClient.connect('mongodb://localhost:27017/test');
  var col = db.collection('insert_one_with_generators');
  var r = yield col.insertOne({a:1});
  test.equal(1, r.insertedCount);
  db.close();
});
 
s/co/Promise.coroutine/
 
crl
ok :), thanks all
 
9:58 AM
Yeah, exactly the same API as co
 
can I keep height and width on angular <div ui-view ?
when I change view, it loses height and width...
 
10:15 AM
should I use meteor.js ?
 
@user3037960 give it a try, use it if you like it
 
did you try it? did you like it? and why didn't you used it?
 
Yeah, no. I couldn't understand what the hell was going on.
 
hahaha
 
user3119231
@littlepootis Erik, but their website is awesome.
 
10:34 AM
This website is awesome too, but..
 
user3119231
Ha, I knew it!
 
11:10 AM
Is anyone else experiencing these annoying ENOENT errors with npm i? And, more importantly, does anyone have a solution? :P
I only find other people with the same problem online and the "We finally fixed the ENOENT issues in npm!!!" entry in the npm changelog
 
1 message moved to Trash can
@Mathematics Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
can I add code below  ng-app ?

e.g.


<div ng-app="app">
{{foo}}
</div>
can I change foo value in controller ?
 
user3119231
11:34 AM
At least the soldiers had principle and honor in our previous wars. imgur.com/gallery/MJhhc
 
user3119231
@SomeGuy thanks, it's boring here.
 
Sure
 
user5020521
string is required when dealing with icon property of google maps marker class
 
user5020521
so if I have a condition in which a variable is equals to a number that variable is then equals to a string
 
user5020521
11:43 AM
where the number var is different from the string var
 
user5020521
i should pass a string to icon property
 
user5020521
but I don't and as a consequence I fail to customize the marker on the map
 
12:02 PM
Hi
 
@NoumanSaif Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
Sorry for that. I had post a question to which I got answer but If somebody here could explain it to me
if the element is clicked, its property selected will be changed (if true->false;if false->true) so you can assign other properties to products with selected=true. Now i updated my answer by e.g. assigning new class for selected products (using ng-class directive). so you can change background-color of selected product etc. — Asqan 2 hours ago
 
Sorry?
 
12:22 PM
That moment... when you realize, you blamed the DOM/spec-World for being ridiculously dumb as fuck... was wrong... the only dumb fuck is you
but pretty please... how can the "draggable" DOM attribute NOT be a boolean flag
what a fail.. epic.. shitholes
 
user3119231
"The problem isn't the computer itself, rather it's the person who sits in front of it." - random quote from someone
 
12:41 PM
 
hey
how much time will take me to get familiar with backborn.js
 
in css can we force a div to inherit height from parent ?
 
i think yes .didn't u try?
 
backborn.js?? is that like.. giving birth from your butt?
 
sry backbone.js
 
12:47 PM
@Mathematics yes, but you need to make surebody and any parent elements also inherit
 
@mikedidthis eeewww that sounds so disgusting :/
 
@Mathematics you can use height: 100vh if you like
 
I want child div to inherit parent div, why body needs to care about it at all
 
because height is inherited
100% of 20px is 20px.
 
@mikedidthis that way if parent is 500px, and I want it's child's child to 500px, I need to set body to inherit height from no where :S
 
12:50 PM
sweet, your good to go
 
!!metal or dub or 90's
 
@rlemon metal
@rlemon Wait, I changed my mind! dub
 
too late
maybe I can find some metal dub mashups
 
user3119231
!!work or go home
 
12:52 PM
@Maurice work
 
user3119231
damn. boss is that you?
 
won't gonna work this way though
 
user3119231
yeah there is a "inherit" value
 
user3119231
this works with nearly everything
 
12:53 PM
ok, let me try
 
user3119231
I don't know the english word for "erbe" but thats it.
 
viewport is awesome but unfor I need to make it work with ie8 as well
 
user3119231
but why?
 
@Mathematics you don't need vh if the parent has a set height
 
user3119231
I had already stopped pimping my ol' car. -> caniuse.com/usage-table
 
12:56 PM
@mikedidthis grandparent in my case
 
@Mathematics doesn't matter, inherit
 
user3119231
Granddad inherit to dad who inherit to grandson (son) ?
 
user3119231
11
Q: HTML/CSS set div to height of sibling

Paul WoolcockI have 2 div's contained in a third. One of the contained div's is floated left, the other floated right. I would like the 2 sibling div's to always be at the same height, but am having a problem with this. So far I am only viewing the page in Firefox, and figured I'd worry about any cross-bro...

 
@mikedidthis seems like it doesn't work with IE8
 
1:00 PM
try locally
 
locally ?
 
Does jsbin support IE8?
Also, why not set the height on the child
you are doing it for the parent anyway
so drop the height off the parent and move it to the child, grand child, fifth generation roman
 
@rlemon exactly!
 
@mikedidthis I am trying locally
 
user3119231
but how?
 
does that flif support transparency ?
 
crl
there's a common agreement in the world to stop supporting ie
 
IE10/11 are not terrible. Edge support is easy
 
he's comparing to both png and jpeg but the latter one doesn't support transparent pixels
and color range
 
crl
1:07 PM
edge is doing good yes, (their debugger crashes a little tho)
 
my dad refuses to stop using IE :/
 
check out the table
 
so i replaced the shortcut link to the edge executable ^^
 
i have an interview Thursday .they only hire people who knows can.js /angular /jquery /and backbone.js but i only know jquery .can i be familiar with these libraries in 1,2 days ? i know js well
 
who hires people based on it's jquery knowledge?
they don't say anything about JS itself?
 
1:15 PM
Didn't knew that you could do jQuery without knowing JavaScript
 
no no js also requred
 
@FastSnail in that short timespan, start with hand on examples if these platform has these
but don't hope too much if the interviewer ask you a difficult question
 
@KarelG so you believe it's possible .i already download video complete tutorial from lynda
ok thanks i will try my best
 
why not be honest and just say you don't have experience with them, but understand JS?
 
that wouldn't work at me :p
 
1:18 PM
Familiar with MV**
 
not able to find if height:inherit is supported by ie8..
 
I hear w3schools has a good angularjs tutorial
 
canIuse.com not sure what to use
who needs help with angularjs ?
 
1:20 PM
@mikedidthis tnx for the tute
@Mathematics me
 
@FastSnail whats your ques
 
@Mathematics can i be good at angular in short time -1 2 days
 
teif
 
is that a serious question :| ?

if yes then why, otherwise I will laugh
 
1:23 PM
its legit
 
I'm starting React.js today
I plan on being a pro by 3pm
#nojoke
 
@mikedidthis just too broad
 
Easy. React is so super simple.
 
@rlemon how long does it takes to grasp a pattern ? for few people minutes and others days
 
@Mathematics tl;dr - has an interview. needs to understand backbone.js and angular in 2 days.
 
1:26 PM
@Mathematics I don't grasp patterns. I take a few hours to learn how to game SO for that tag
just as good as learning
 
@mikedidthis he needs to look at angularjs interview questions then, you can learn something in days but at work it's really different
 
@Mathematics I know, tell him :P
 
is there a recommended React ST3 plugin?
React Templates has shit highlighting
 
@FastSnail I don't think learning 2 frameworks in that time is possible. I do however, think it's possible to prepare for the interview in that time. Prepare how you will explain why you think despite not knowing them, you could learn them and still be a valuable asset to the team.
 
@MattLishman Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
1:34 PM
Last thing I would do is to "prepare" for an interview technically...
one should only apply for jobs he is confident in... unless they specify it's a trainee job
 
I mean prepare in the sense that it's not something you can just wing. If they ask you about angular, have an answer prepared about why you think you will be capable of learning it.
 
* kicks browser cache *
aaah images loaded
i.imgur.com/oR0N3vj.gif that's a nice idea
 
1:58 PM
@rlemon this is true. Once I felt good about myself I noticed others tended to eye me a lot more
@rlemon omg LOL
 
2:12 PM
> I love purrgramming.
@BadgerCat fucking adorable.
Also, snap me moar pls. Our best friend status was revoked, and that's upsetting
 
@rlemon The babel plugin does it nicely
 
I'm tempted to explore a new text editor option
Isn't ST3 no longer supported
 
@SterlingArcher Been getting many updates lately
 
for real?
 
2:19 PM
Almost weekly
 
I love vim, I use it daily.. I just can't stand some of the controls. Like hitting back at the beginning of the line doesn't go to the end of the previous line
That annoys me like nothing else
 
So, is Polymer any good?
 
aww Sir Tomlinson died today. RIP
 
2:27 PM
Also who's Benjamin Fortune?
oh okay
 
(if nobody heard of him, he's the creator of email)
 
Benjamin Fortune created email?
 
:p
 
@littlepootis That'll be me
 
I really should learn to React
 
2:31 PM
Learn to respond, not react
 
To any horror fans... I saw The Gallows this weekend... not what it was cracked up to be. It was ok, but it was nowhere near comparable to the OG slashers like Jason and Freddy.
 
@ndugger sing
 
pls
 
Snorted.
 
2:36 PM
#snortsfired
 
> By popular demand
Sing
 
Sing
 
ack fuck wrong window
 
I'd rather not fuck any window
 
2:38 PM
any wrong window
 
Is this not suppose to work .. ? Am i missing something ?
window.onload = function(){
    console.log('test')
}
 
but I'd rather fuck the correct window
@Baldráni console.log disabled?
 
I'm not gonna sing; my singing voice is crap. The only time I sing is when I've had a few drinks, and it's karaoke time.
 
@Baldráni ;
 
2:40 PM
@KarelG that doesn't affect anything
 
@Neoares Nup it work I I call it like on the change of a select or somehting liek this
 
A noob question, but why does Math.floor(Math.random() * 11); have * 11?
 
This is window.onload chich is not working then...
wich*
 
@JamesSnowy Math.random generates a value in range [0, 1[ . By multiplying it with 11, it gives [0, 11[ followed by a math.floor, which gives you a value from 0 -> 10 in integers
 
@JamesSnowy because you wrote it?
 
2:41 PM
Oh, I see.
 
Oh, you meant that
 
@KareIG Thanks!
 
In NodeJS semi-colons are actually discouraged
 
I thought you understood that part
@SterlingArcher never
 
NPM is written completely without semi-colons
 
2:42 PM
@SterlingArcher you are wrong and you should feel bad
 
@SterlingArcher yes, and Minecraft is written in Java
 
@SterlingArcher the author's keyboard was missing a semicolon then
 
semicolons are not the devil. Be smart.
 
hmm anyone here familiar with AngularJS?
 
@Orion Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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:44 PM
I'm just saying, I use them out of habit but in a modular environment on the server, let the ASI handle it. On the client side, it can break minification of course, but yeah
 
@SterlingArcher stop trolling
 
not sure if leaving out the semicolon is a wise step
would the behavior of the code not change ?
 
I'm serious lol I've heard many people at work mention it, and several major node modules follow that methodology
 
@Abhishrek she replied to one of my snapchats finally, essentially saying that she's been busy. But the thing she's busy with she wasn't doing since Thursday, so she's just avoiding me at this point. I'm doing alright, though. No need to be concerned.
 
Depending on the ASI is as good as depending on C's garbage collection
 
2:45 PM
JavaScript has automatic semicolon insertion anyways
 
dammit Canada, why are tools so expensive :( canadiantire.ca/en/tools-hardware/welding-soldering/welders/…
double the price as a comparable unit in the states
 
@SterlingArcher automatic anything insertion is almost always a bad idea
 
would you have the guarantee if these insertions are on the right places ?
 
So why would one of the most popular package managers be written without semi-colons? HMM?!
 
!!s/JavaScript/your mum/
 
2:46 PM
@ndugger your mum has automatic semicolon insertion anyways (source)
 
@SterlingArcher hipsters
 
What is this!?
Madness
 
126
Q: What are the rules for JavaScript's automatic semicolon insertion (ASI)?

T.R.Well, first I should probably ask if this is browser dependent. I've read that if an invalid token is found, but the section of code is valid until that invalid token, a semicolon is inserted before the token if it is preceded by a line break. However, the common example cited for bugs caused by...

 
2:47 PM
@ndugger hangouts
 
@Abhishrek No, I'm at work right now
 
later ?
 
Sure
I'll ping you when I get home
 
@SterlingArcher not using semi colons because the system will insert them is like not wiping your ass because the hair will eventually grow out.
be smarter, use semi colons
 
> "I'm just saying, I use them out of habit"
>:(
 
2:49 PM
¦:(
 
Gosh, Jordan, don't be such a pleb
 
ftfy
 
DARE YOU MOCK MY BROW GOOD SIR
 
:P
 
I have a secret to tell. I am Jordan's eyebrows.
 
2:51 PM
!!should I spend $650 on a welder I probably don't need
 
@rlemon Absolutely not
 
hey guys, is it ok to ask questions here? It is a really simple one
 
You just did :P
 
@rlemon Yes, you wipe your tears with cash
 
!!welcome Käsebrot
 
2:52 PM
@Käsebrot Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
@SterlingArcher Touché!
 
@KendallFrey bro, home ownership is expensive. my downspout needs replacement, I have a support beam that needs repair, the basement needs drywall and a ceiling.
if I had a welder I could save myself the trip of going somewhere else to get things welded
 
> my downspout needs replacement - rlemon 2016
 
@ndugger lol yeah, I got that too
 
Does a welder seriously cost 650
 
2:54 PM
dude, my rain barrel tap froze over, the barrel filled, the spout froze into it, then the support paver broke and he barrel fell over ripping the downspout off my house
@KendallFrey for a cheap one
 
the hell
 
!!xkcd homeownership
 
it's just a big-ass transformer
 
you can get ones for like $250, but they will only weld like 1/16" steel
 
2:54 PM
^ @rlemon reconsider the welder, sir
 
I would want at least 1/4"
@KendallFrey canadiantire.ca/en/tools-hardware/welding-soldering/welders/… is the one I'm thinking of getting
I'm also limited to 120v also.. I'm not running an extension cord from my dryer to my garage
 
oh you want mig
 
yea arc stick welders are lame.
I want a ribbon feed mig
 
mig... is arc welding
 
yea yea I know
 
2:57 PM
@SterlingArcher I have a very important exam tomorrow, expect many snaps.
 
I call stick welders simply "arc welders"
bad habbit
 
And follow me on twitter and expect many tweets.
 
bad hobbit
 
@BadgerCat what did you think of my super professional ukulele skills?
 
I would LOVE a tig welder, but that (for a decent one) is like $1500+
 
2:57 PM
I deleted my twitter actually :(
 
@ndugger really nice, I thought you were going to sing
 
@BadgerCat I will hold you to that!
 
i wonder if i should get snapchat
 
@BadgerCat lol, apparently so did everyone else
 
@rlemon can you not rent one?
 
2:58 PM
@KendallFrey I only have people in this chat added
 
@mikedidthis bah
 
> By popular demand, here I sing - dugger, tomorrow
 
I want to be able to weld at 6am on a sunday
 
user3119231
@Käsebrot Äh was?
 
"I have a simple event listener like this, 'window.addEventListener(keydown,handleMovement,false);' and a switch-statement to check the 'e.keycode' in 'handleMovement'. Is there any way to prevent simultanious key presses in such a case?"
 
2:59 PM
Sure you can keep it over the weekend
 
badger is my snap bestie
 
user3119231
e.preventDefault (?)
 

« first day (1969 days earlier)      last day (2993 days later) »