« first day (2138 days earlier)      last day (3032 days later) » 

11:01
@Sheepy understood
@OliverSalzburg filter was a good suggestion. am just trying to get it working. but thanks :)
@Ming You're welcome
So I cut a 2cm x 1cm block out of a 0.5 inch thick metal (iron?) using a hacksaw. 0/10 wouldn't do again
@MadaraUchiha: Are you guys aware that badges dun goofed?
11:11
Yea :P
@BenFortune Updated the question.
@DeathNote Don't prefix edits with EDIT, it doesn't provide any value
Okay.
Can we pass anything ?
Updated?
11:17
No, just passing anything ?
You are asking me?
Yes, and everyone else ?
What do you mean by that, passing anything?
@DeathNote Your question was already correctly answered, why are you posting it here?
Shall I make another question for that?
11:20
And why are you posting your actual code in a pastebin and some other code in a fiddle?
It isn't possible to recreate my thing in a fiddle, it will take time.
@DeathNote So? You rather waste other people's time than invest some of your own?
I made a simple example for the issue based on the problem but then I realized the problem is something else
I thought the problem is because of that and hence I went on to make simple example for the same
I was wrong
@DeathNote The guys with the answers managed it.
Yes, the answers they gave was right for what I asked initially but my problem wasn't that. I was just trying to make a simple example for that
11:22
@DeathNote That is part of the reason why you should create a minimal example for your problem, while creating it, you often find the source of the issue or that the issue is something completely different
Okay. Will Do, I will make a new question.
Thank you for suggestion.
what about my question ?
@Mathematics What the fuck are you talking about
6 mins ago, by Mathematics
Can we pass anything ?
That's hardly a question
It is a question.
It's just vague.
@Cerbrus I agree
@Cerbrus That's a subjective argument :P
@BenFortune Here you go then
11:25
@Mathematics No, it's vague. that's a fact.
Can we pass form's validity to directive when ng-transclude to inject form + using insolated scope
Still vague
@Cerbrus Here we are passing ng-model=name back to directive... I want to do same but for form's validation
0
A: How to get my form in link function in angularjs in an isolated scope

Rafael Teles angular.module("main", []) .directive("formDirective", formDirective); function formDirective() { return { restrict: "A", scope: { formModel: "=name" }, link: function (scope, element, attrs) { scope.$watch("formModel.$valid", function (newValue, old...

why negative voted it ?
Ask the voter. (Although you don't know who voted for it)
11:28
Some people really need to grow up.. I know who did this
Eh, no you don't.
Ben did it. who else is here
That's a bold accusation, where's your proof?
@Mathematics: You can't be sure of that. Someone else could just as well have voted.
Hey guys, I stuck on some code. Try to create an area where some parallax is going on. I use `scrollTop()` to get the current scroll position and `offset().top` for each element, so I know when the element is in the view: snippi.com/s/obexl0f
More info with a mention at the line I talking about. I doesn't know why this only works for the elements that are inside that invisible area.. Anyone thoughts about this?
@BenFortune ok, I am sorry, I shouldn't had said that
Added a bounty to question, if anyone interested
@Mathematics Do you know what a help vampire is?
@MadaraUchiha Yes, but look at when I asked this question, I did my research and it avails nothing based on my experience
I'm going to go out on a whim and keep my mouth shut.
11:32
@Mathematics There's more to being a help vampire than not researching.
Bounty reason: "Looking for an answer drawing from credible and/or official sources."
You're basically saying you don't believe any of the existing answers. That's not very nice...
@Cerbrus is that's what it saying ?
I thought I selected more attention
can I change it ?
@MadaraUchiha: Is that a default bounty reason?
@Cerbrus Yup
Yikes
11:34
I tried to be fair but then something "ticked"
It basically says none of the existing answers are credible o.O
You consistently come into the room only to ask your questions. You never stay for more than you absolutely have to to get your answer, and then you leave. You often repeat the question if no one answers. And now, if your question gets downvoted you jump straight to personal accusations.
This needs to stop.
HAMMERTIME!
@CapricaSix Shut up
@MadaraUchiha that's partially true :|
11:36
No one is forcing you to spend time in the chatroom, or like it here
But help is a give/take business.
@MadaraUchiha yes, but my experience with JS is not on that level to help though, I do it on Workspace, C# and SharePoint
It doesn't work if there are people who consistently take and accept help, then leave, only to return at the next iteration.
or atleast I am trying to..
I recently started helping on Workspace
@Mathematics I assure you I had less experience than you in JS when I started answering questions.
@Mathematics The plunkr in your question isn't working. Your directive is named myDialog, but you're using my-dlg in your template
11:38
0
Q: Mobile iOS Safari Test URL Scheme JS

Matt CowleyRight, so I've done a load of googling, all the answers I can find actually open the URL scheme. What I wish to do is test if a URL scheme (Cydia://) exists on the device, and then report back to a variable. I do not want to actually open the URL. Thanks.

@MadaraUchiha Thanks for you advise, I will work on it
@OliverSalzburg try the snippet in answer I provided link to please
0
A: How to get my form in link function in angularjs in an isolated scope

Rafael Teles angular.module("main", []) .directive("formDirective", formDirective); function formDirective() { return { restrict: "A", scope: { formModel: "=name" }, link: function (scope, element, attrs) { scope.$watch("formModel.$valid", function (newValue, old...

^ this one
@Mathematics Who cares about that? The least you could do is to get your working example in your question right if you want to get some help
@BenFortune That got flagged
Oh, and invalidated. good.
What is so hard about that? Especially with a question that has been live for weeks
@OliverSalzburg sure
11:40
@Cerbrus Haha great
And even when your directive is renamed, the example still doesn't run, because you're using $scope, when the actual variable is named scope
That is reason enough to downvote your question
@OliverSalzburg I updated my question, does it helps now ?
Did you just literally copy the code from Rafael Teles' answer into your question?
lol. really?
If that question didn't have a bounty, I'd close it as "Too Broad".
11:46
@Cerbrus what's wrong with that ? :S
"so I really want to find a generic way to check if form is validated" <-- Too damn vague
just because it has word "generic" it isn't vague
Please stop having a go on me !
@MadaraUchiha: I'm of the opinion that the bounty should be cancelled. The question is vague, too broad.
I'm not having a go on you.
I'm having a go on that question.
@Cerbrus do you understand it ?
uh, you don't get it
11:48
What is there to understand about "so I really want to find a generic way to check if form is validated"?
i have an iframe with a url scheme as it's src, the iframe is sandboxed but the url scheme still pens the app?
@Cerbrus Seriously, did you tried to understand the question ? :|
*opens
@Mathematics I haven't checked any of the existing answers, but are you aware that a new child scope is being created and that the controller for your form is accessible from that scope?
Tell me this: What exactly do you want from the answer, @Mathematics?
11:50
@OliverSalzburg yes, but if I can pass name's field, why can't I pass form's validation
You usually don't want to access child scopes from a parent, but you can. Sharing a controller between your dialog and your form seems to be the most obvious solution to solve your problem if you want to avoid parent→child scope access
@OliverSalzburg sharing a controller between dialog and form(s) as I have more then 1 forms ?
@Mathematics I just checked your updated question and I don't see how it illustrates a problem
It might help to actually define myDirective
any idea how to get an error code form an image in jquery?
@OliverSalzburg sure, 1 moment
hey guys. is array.filter() an expensive operation?
if so, is there a way to check an array for a value?
before filtering
@Paran0a "nobody gets a yacht paying off their credit card"
fuckin' A
@Ming What exactly do you want to do?
i got 2 options
1) check if array contains 'x' value. If yes. Perform filter
2) filter array regardless if containx 'x' or not.
trying to decide. @Cerbrus
my array is large. and will have many arrays repeatedly. streaming data
Depends on how likely is is that the value is in there.
12:11
around 10%
The "contains" check will only iterate until it finds one. The filter will always iterate over all of'm.
Then it might be faster to check first.
Well, faster 90% of the time.
is there a way to check?
my data object is like this
data = [ {Name: 'foo', age: 10, skills: 'running'}, { Name: 'moo', age: 10, skills: 'jumping'}, { Name: 'loo', age: 10, skills: 'turning'}, null ]
i want to check for null.
I'm guessing the fastest is check [null, 1, 'two', 3].some((e) => e === null)
some ?
some returns true if one of the values in the array returns true, when passed to the parameter in some.
12:18
is .includes slow or something?
thanks @Cerbrus :)
@rlemon .includes?
@rlemon is that better?
also wanted to ask, does this work?
a1 = Promise.resolve(10)
a1.then((x) => {
	console.log(x);
}, (err) => {
	console.log(x) // << will this receive the value 10 if there was error?
})
Oh, nifty. Didn't know about that one yet
12:19
@Mathematics The code snippet in your question still doesn't run
How hard is it to get a running example into your question?
@rlemon which one is more performant?
I don't know
test them
@OliverSalzburg How about we drop that question in this room?
How do you get knex to return only one id from a single insert?
12:22
@Cerbrus Again?
@Cerbrus I already tried that
Or do you mean "never mention it again" when you say "drop"?
@OliverSalzburg "Drop", as in "drop it".
^ poor mans meccano
12:23
@rlemon Still fun
doesn't take stairs as well tho
that tank wouldn't hold up to the family dog
I tried pulling out my meccano the other week, shit is tedious af
gave up and played with wood
@Cerbrus why are you after me like that ?
kickstarter.com/projects/1658540583/… idk if I'd pay $200 for this. maybe $99
@Loktar might interest you
and anyone else that works from home
@Mathematics: Drop it. Consider this a warning.
12:40
@Cerbrus I am working on my question with that guy, I am not sure how it is offending you ?
Then get a room.
@Cerbrus I am not disturbing anyone here, he just sent me a quick update, we are not populating the room with our chat
I am sorry you feel this way, I am going to stay silent if that helps ?
@rlemon looks like a nice thing to get malware and then watch you forever
@Gant 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.
12:48
I know someone that'd love that as a tinker platform, if you can get root on it that is
@Gant Wut
the kickstarter @rlemon posted
@Gant so like your phone, laptop, webcam, possible gaming console, etc.
I can unplug my webcam, and it doesn't have wifi and a battery. My laptop has no webcam and nope, don't have an Xbox One either :P
just put a tinfoil hat over it then
12:53
My granddad doesn't trust e-mail :P
ha, I wish it was that easy
Not like he ever mails any sensitive info
I don't trust my phone anyway, it's been in an evidence locker for half a year.
What's the best way to represent a javascript class by element?
see @rlemon I actually got burned by this crap so there is no need to call me a tinfoil hat wearer
@Vap0r how do you mean?
12:56
@Gant Well right now I have a javascript class, and I just wrote a this.toElement() function
The problem is it's kind of dumb. C# has a toString() override that allows you to print out.
ES2015 has official boilerplate for it, for ES5 people seem to like function Constructor() { this.publicMethod = function() {}; var privateMethod = function() {}
oh, Javascript doesn't have real classes
@Gant are you sure you constructed it correctly?
"real" anyway
@Gant yes that's how I'm doing it.
you need to make sure the original structure is a pyramid or it doesn't stop the NSA
12:58
@rlemon 3-sided or 4?
can you stop it?
@Vap0r depends on which satellites you want to block
Ah shit.
I think 5 sides blocks MLB
@Gant is ES2015 same as ES6?
12:59
yes mostly
@Vap0r js allows that too
@Vap0r yes, it is

« first day (2138 days earlier)      last day (3032 days later) »