« first day (1670 days earlier)      last day (3503 days later) » 

20:01
Hi.
window.frames does not work when using Polymer. This is normal behavior for Polymer? This is due to the Shadow DOM?
@Brainstem Welcome to the JavaScript chat! Please review the room pseudo-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.
hey a Polymere user!
no idea on your question unfortunately
define "does not work"
might help
for example: polymer-project.org/0.5/components/paper-elements/… have 2 frames, but frames.length == 0
have 1 frame and 1 main document
that page has frames on it?
do iframes show up in window.frames?
docs say it should. nvm me
20:05
Are there any libraries for making AJAX requests that work both in node and the browser?
Or abstract node URL streams and jQ AJAX?
@Brainstem these aren't frames
looks like the iframes are hiding in the shadow dom
@Loktar there is an iframe on the page
20:07
@Loktar hm. That looks like it might be what we need.
Yes, frame in Shadow DOM
@Brainstem yeah, when you try to select stuff on the main document tree, it doesn't penetrate shadow trees.
For the same reason you can't select an inner item with some id with document.getElementById
Yes, but frames... must have windows
They do. But when you do document.anything, you're talking about the top level document. Shadow DOM is its own neighbourhood.
Hm... window.parent of frame from shadow DOM work
20:11
.top should also work
from inside that is
but frames don't work
bug or normal behavior?
Helllooo, are you reading me?
Is this transferring over to your internets?
I do window.parent from frame, not from top
Ever since my grandson disconnected me from dryer up connection, my interneting machine has gone silent. Is it sad?
@ssube well you are correct
20:15
@Zirak you should put interneting into washer
Bob
Bob
Anybody can help me with underscore? I need to find something in a nested array. I tried _.findWhere from underscore but it seems it doesn't search nested, only first level?
@Bob Welcome to the JavaScript chat! Please review the room pseudo-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.
@Zirak ...is that a Ready Player One reference?
@Bob in your predicate, you need to recurse if the item is an array and match if not
Bob
Bob
@ssube what do you mean? LS
:S
20:16
@darkyen00 how about we write another package manager, one which is upto the standards?
!!xkcd competing standards
@AwalGarg because you can fix it within npm
@ssube what is npm written in? vanilla JS?
instead of npm publish at the top level, just do like:
gulp.task('package:manifest', function () {
  return gulp.src('package.json')
    .pipe(gulp.dest(paths.dest.pack));
});

gulp.task('package:lib', ['scripts', 'tests'], function () {
  return gulp.src(paths.dest.main + '/index.js')
    .pipe(webpack(webpackOptions))
    .pipe(gulp.dest(paths.dest.pack));
});
gulp
cd target/pack
npm publish
poof, npm packages with a single bundled "binary"
also, because npm is stupid and only uses .gitignore from the current directory, it works and you can keep the whole dir out of git
@darkyen00 I am starting to hook on react and jsx now. components are cool.
20:24
!!should I try out react?
@SomeKittens Doubtfully
@SomeKittens Yes. But keep it to trying only.
@AwalGarg Will I learn about observables?
@SomeKittens no
@AwalGarg why keep it to trying only?
20:26
@rlemon can you please look into jsfiddle.net/2gdLpht5
I am liking React because it has good tooling. Easy runtime JSX compiler, clean component syntax, babel has react support hammered right in, it has a fairly usable dev tools extension, and it is easy to identify when not to use React.
in it i do not know why .. if i convert an int into jsonValue and find it in an array it fails always!!
@Loktar omg yes
because it turns into a string not an int.
you have been using react a lot lately don't u ?
20:27
@Loktar Just my personal opinion. I try to stick to Vanilla JS as much as possible. This might change in future when I work on actual real world projects...
!!> JSON.stringify(1)
@darkyen00 yea
@rlemon "1"
@AwalGarg react is not a replacement for JS
@rlemon tried it with parseInt too
does not work
20:28
in react you use vanilla JS besides the jsx.
@Loktar never claimed it is ;)
thats whats so great about it
@Nezam yea I don't know what you are trying to do then.
@darkyen00 about to have a multimillion dollar site deployed tonight using it :p
er tomorrow afternoon rather
@Loktar Launching near a weekend? You're a risk taker.
20:29
@Zirak its a public beta
i just have this in a json value.. i need to check it against an array of integer.. if this value exists in the array or not
so if there are some issues its ok fortunately
but it always fails
@Jhawins will have to fix all teh bugs during the weekend
also devdocs support for react helps too :) better tooling === more productivity :D
20:31
oh @AwalGarg if you liked devdocs, try and check out Zeal. There's probably a Sublime package for it too.
@Loktar i have a very simple question
@Zirak very nice! Thanks!
you see i love components and i love promises
(props to @FlorianMargaine for enlightening me on it, it's been a pleasure)
20:32
I would like to have a promise for an action, like for a dialog
instead of passing it onAccept or onDeny
just do something like
++ to anything that's "Like some OSX thing that costs $20, but cross-platform and free"
-- to no OSX
getConfirmationAsync("Are you a dog").then(function(areYou){
    /* do something */
});
this should show a modal or can also redirect to a view
ok
thats within a component?
the latter is more appealing
i got the reason why yours works
20:34
how would u do that ?
@SomeKittens Isn't Dash free, or at least optionally so?
ps @Loktar the call is made inside an actionCreator not view
because its comparison of string to array of strings.. in my case it was going int in array of strings
@rlemon
oh and have you ever tried Alfred? It looks like a potentially cool thing.
so i changed one of their datatypes and now it works
20:34
@darkyen00 couldnt you just have components listen to something that, that triggers
@Nezam so covert them !
similiar to how they can listen to stores?
like /*do something*/ is some other action thats triggered with data that a component is listening to
@Zirak oh, I was thinking of Alfred.
Alfred & Dash are both free but it costs $$$ to put them together.
@Zirak I do use Synapse on Linux
@Zirak googled to see what it is -> found that it has a slick ui but does what many power users do through the terminal in linux -> wonder why there is a scarcity of sexy ui apps on linux -> but then thought idgaf
@Loktar i tried with react-router
but the way to do it is bad
20:37
@SomeKittens Zeitgeist scares me
i'd like a better solution
i am thinking of a dialog which is global in the application, and any confirmation call just opens this guy
I seem to be the only one who's ok with computers knowing my personal preferences.
"Hey computer, I'd like..."
"Oh, here you go!"
"...wow, that's exactly what I wanted"
except nowadays I don't even need to ask half the time
@SomeKittens because you are some kittens...
It's not that. I've come to accept my bitty overlord ever since I started using Google Now. But Zeitgeist scares me.
@darkyen00 ah ok, yeah I mean that would work too, just have a <dialog> included somewhere on the page, like in the main template
and some property it waits for
20:39
"Oh hey, your brother's flight is an hour late"
"ah, bummer. Good thing I know that now"
Though it does go hilariously wrong on occasion, like the time it thought I was interested in Turkish Airways flight 421 (i.e. TK-421)
@Loktar I got this from WinJS
in the WinJS router i could pass an optional state object
I used to pass that
You can pass props through react router too using the spread operator
thats what I do for our authentication so its available to all of our child components that need it
@Loktar can you do something like this
<RouteHandler {...this.state} key={name}/>
^ thats how my main router handler looks
@Zirak How so?
20:42
so this.state.user become this.props.user to child components.
@SomeKittens I can't explain it. I saw it, groped around source, got scared, never looked at it again.
return new Promise(function(resolve, reject){
Router.transitionTo('confirm',{
   resolve: resolve,
   reject: reject
});
}):
@darkyen00 actually... there is some async stuff you can do with react router, but I haven't had to so I'm not familiar with how it works
^ same
i have seen examples
the closest is the authentication example
yea
thats the one I was thinking as well
in their /examples dir
you've probably seen that
20:45
@Zirak just so long as it isn't to serve me ads... coughUnitycough
user1596138
@Loktar Nooo. Do we work much on weekends? I need to get a VPS set up
@Jhawins lol no
@Jhawins That's a good question to ask during interviews
I was just messing around
I've never worked a single weekend
user1596138
@Loktar I almost asked you what that line meant earlier lol but google told me
20:45
@Loktar aw, tell him that the new guy always has to
haha damnit i should have
user1596138
@SomeKittens Oh I knew already. I just meant during deployments an such
user1596138
And you should know by now that interviewers don't always tell the truth anyway ;P
It's a rite of passage. You have to earn your way in by enduring a night's sleep on the smelly cheese stain.
user1596138
They already punished me with the "icky desk"
20:47
@Jhawins You can sniff those out, usually they're pretty vague
user1596138
@SomeKittens Sniff out lies? Damn you've got a nose!
"We have a great culture"
"Like what?"
"Beer fridays!"
"What's a time you've had to make a hard decision based on your culture"
"Oh, we never have to do that"
@Loktar reminder: you asked me to remind you to get J to get the long stand from HR last night
@Jhawins this deployment is weird
they are always on Tuesdays
but since the CMS was so jacked and we have no clients on this site yet, itll just end up getting pushed tomorrow
after this they will always be on Tue at 7pm for this project
every 3 weeks
user1596138
@SomeKittens inconclusive
20:49
lol we have no culture
2
out of context stars.
user1596138
Yeah I was gonna say I would describe ours as "What"
our culture is work, be nice, go home and do your thang.
user1596138
@rlemon Not out of context, out of bitchiness.
user1596138
Yeah it's really relaxed
user1596138
20:50
And they bought us all Chipotle today
How do you guys pull templates, like handlebars, into your webpack modules?
@Jhawins That's an immediate no from me.
> "What's a time you've had to make a hard decision based on your culture"
user1596138
@SomeKittens What is?
20:52
what do you mean by that?
no one in this room commented yet
my pictures been changed for the majority of the day
:cries in corner:
@Jhawins "We never have to make hard decisions" (alternate interpretation: "We have no guiding principles to make hard decisions")
user1596138
@SomeKittens are you high
user1596138
Cause I don't understand at all
I just don't understand the question I guess, on making a hard decision based on the culture.
user1596138
20:54
What hard decisions? So you would rather work for a place that often has to make hard cultural decisions, i.e. has cultural issues and upsets among the teams
@Loktar I suppose a better phrasing would be "What principles do you use to make hard decisions?" (i.e. Google: Whatever isn't evil. FB: Moving fast)
crl
crl
Has someone ever dealt with shapefiles here?
ahh ok that makes more sense @SomeKittens
the biggest cultural issue here is what the AC should be set at.
anyone on here know much about jqplot?
20:55
@RichardHarris Welcome to the JavaScript chat! Please review the room pseudo-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.
@SomeKittens And if a company doesn't have something like that, it's immediately out?
those cold mofo's need to put on a sweater. there comes a point where I can't take any more off
user1596138
@SomeKittens so you will turn down a job if it doesn't have a bullshit slogan?
What if a company has actual work to do and doesn't have time for slogans?
for example, what if you have a guy who puts out good code, but is a total jerk? Do you fire him to improve overall morale (Culture: Jerks are not tolerated) or keep him (Culture: code above all else)
20:56
template strings kinda look messy...
${location.origin}/${dir}/search/${term}/${($('#searchZip').val() || Util.zipcode())}
@copy Would you work for a company that couldn't answer the question "How do you make decisions?"
@SomeKittens That's a terrible example. You're running a fucking company, not a kindergarten.
@SomeKittens DryerMaster: corn good.
Keeping people who can't code is bad for everyone.
@ssube er, what? Who can't code in that example?
20:57
@SomeKittens I wouldn't expect the interviewer to know off the top of his head. Especially since the question is so broad
@SomeKittens The second option is a bad one.
user1596138
@SomeKittens That's pretty simple. You fire people that mistreat other employees, this is even done at McDonalds
If you hire and fire on character, you're going to end up with a bunch of friendly idiots.
@copy agreed. that is a loaded question and could take 2 minutes or 2 days to answer
@Jhawins Well, that's one way of thinking of it. Some companies think the other way.
user1596138
20:58
Mistreat does not equal "He called me a hipster"
@Jhawins McD's isn't the same thing. They don't need skilled workers.
Often the answer would be, we have to talk about how we approach this
@Jhawins did @Loktar call you a Hipster? DO I HAVE TO KICK HIS ASS?!
They can teach anyone how to do that job equally well, so hiring based on character isn't fatal (and in retail, makes sense).
user1596138
If the company does anything but handle these things on a case-by-case basis they're just silly.
20:59
In development, hiring people based on character and firing someone who's a jerk but can code fantastically is going to be fatal to the company pretty quick.
@rlemon ha, he's the total opposite of hipster
user1596138
You can't write a spreadsheet that says what's fireable and what's not when it comes to team interactions
@Jhawins well you can.
but it will never be complete
user1596138
I actually said fuck you to @Loktar here today :/ but it was after I learned about my desk
@Jhawins uh, you can, it's called the employee guide and HR rules
20:59
"Don't be evil" certainly didn't help Google very much

« first day (1670 days earlier)      last day (3503 days later) »