« first day (1557 days earlier)      last day (3382 days later) » 

12:01 AM
you want the text to be centered inside of the jumbotron container?
 
yep
that's how it looks in the example
also the IMG
 
that is just how you saw it
it isn't
 
@rlemon I used the narrow example
 
12:03 AM
examples also have custom css
in there, you can see they set the text-align
/* Main marketing message and sign up button */
.jumbotron {
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}
 
@rlemon oh that would explain things
 
it is a bit misleading, I understand how one could miss it
 
Firebase was a breeze at least
 
check out purecss.io
it is light weight, and YUI is the javascript, so you're not tempted to use it ;)
 
Firebase is awesome
 
12:09 AM
@rlemon that looks nice
@monners yeah, I was tempted to use it for quite some time and finally there's a place
 
I've used it in a few projects. you have to do a lot more work than bootstrap, but in the end you get a more customized site
 
Firebase is pricey though
 
I wanted to build a clone that is cheap but gives fewer guarantees about speed
 
Tritium (/ˈtrɪtiəm/ or /ˈtrɪʃiəm/; symbol T or 3H, also known as hydrogen-3) is a radioactive isotope of hydrogen. The nucleus of tritium (sometimes called a triton) contains one proton and two neutrons, whereas the nucleus of protium (by far the most abundant hydrogen isotope) contains one proton and no neutrons. Naturally occurring tritium is extremely rare on Earth, where trace amounts are formed by the interaction of the atmosphere with cosmic rays. The name of this isotope is formed from the Greek word "tritos" meaning "third". == Decay == While tritium has several different experimentally...
 
user4330208
12:18 AM
Can someone ask an easy question. I'm running out of rep.
 
anugularJs anyone?
As batarang is broken now, what you guys are using?
 
ng-inspector
 
People here usually use BenjaminGruenbaum for Angular problems
 
!!s/Ben/@Ben/
 
@phenomnomnominal People here usually use @BenjaminGruenbaum for Angular problems (source)
 
12:22 AM
ng-inspector, seems confusing. That's what I am using.
 
I just have | debug and | log filters
 
@RakeshJuyal Still using Batarang, just lamenting the lack of features in the "fixed" version
 
0.7.4 doesn't work for me.
AngularJS pane in console shows nothing.
 
I use it mostly because it assigns window.$scope to the scope of the last element inspected.
 
:)
You mean, you are using it so that you don't have to type $($0).scope()
 
12:36 AM
@SomeKittens huh?
 
@SomeKittens
 
@RakeshJuyal along those lines - but it also does isolate scope
 
Isolate scope? No idea what's that :)
 
@BenjaminGruenbaum Currently, we've got ng-click on body that broadcasts an event to everything. This is used to close popovers, mainly.
I'm assuming that this pattern is not the best, given this dev's history
 
It's not too bad but it's not how I would have done it.
 
12:39 AM
How would you have done it?
Now we've got $event.preventDefault() scattered through the code.
 
The popovers are likely a service (to create one) and a directive (to describe one visually) - the directive should probably add a "click" event (and remove it when it's closed)
The body tag won't be touched - it does not need to be aware of it in Angular
In fact I'd probably have the modal in their own module
 
@BenjaminGruenbaum add a click event where?
 
@SomeKittens you have a directive (for the UI element) and a service (to create a modal). Inside the directive you have a link function that has code - that code adds a listener to document.body and removes it when the modal is destroyed.
 
Isn't adding listeners like that bad?
Also, why would a service create a modal? Wouldn't that be another directive?
 
How would you create it from a controller?
It's something higher about the app state that's not interaction with the DOM
 
12:45 AM
@BenjaminGruenbaum, If I have Promise.all(promises) and then add a promise to promises, will it still be waited for?
 
Your controller code should not give commands to app state.
@phenomnomnominal no, it will not. What are you trying to do?
 
Promise tracking, loader state based on route resolution
 
@BenjaminGruenbaum ...I wouldn't?
@BenjaminGruenbaum but isn't popping up a modal DOM interaction?
 
@SomeKittens lol, no.
@SomeKittens yes, but just like the high vote answer you linked to recently - it's application state. The fact it raised a modal using some specific DOM is not the controller's concern.
It just asked for a modal to be shown - it's not in charge of its scope or state. Just like how services are used for different controllers to interact.
 
@BenjaminGruenbaum Right. Where did the controller come in?
 
12:47 AM
@SomeKittens let's say the modal is a directive - how do you add a modal to the screen or trigger one from your code?
You want the modal to not be the responsibility of every controller or on root scope.
A service is really the only option.
 
You really don't want to see how we do it.
 
Heh
If you put it in a service or factory you kind of avoid that problem. You can look at how AngularUI do it or how other common plugins do it for inspiration.
 
(I'm looking at the UI docs right now)
 
Look at the code, the docs are shit
I really don't understand how you could get Angular wrong -_- Its main premise is "There are these super strict rules - just write your app like we say and it'll be rainbows and sunshine"
(Not you I mean - as a general statement, like the body ng-click guy)
 
Right, so I'd have a triggerModal directive that'd call the modalHandler service, which would populate some part of the DOM with the given template, and show that?
 
12:51 AM
Like that only the opposite, you'd have a modal service that's create a modal directive that populates the DOM with a given template and show it.
:P
 
@BenjaminGruenbaum Easy, have an ego, don't be open to learning new things. You're smart, so whatever you think up is the Right Way™. Bonus points for shouting down anyone who brings up sane options.
@BenjaminGruenbaum The service creates the directive?
that can happen?
 
@SomeKittens ew, who cares what "smart people" think. It's so important to listen to anyone who has a good idea.
 
@BenjaminGruenbaum "You" in that message was ng-click = "$rootScope.safeApply()" guy
 
@SomeKittens :(
@SomeKittens it creates an instance of the directive, yes.
 
I got in a lot of trouble today for being snarky with him. Spoke faster than I thought.
@BenjaminGruenbaum Pardon the ignorance, but HOW?!?
 
12:53 AM
The service does need a hook in the DOM if the directive doesn't "inject itself" to the body - it can do that though.
@SomeKittens what happened?
 
@BenjaminGruenbaum we can put backpacks over our ears to free up our hands!
 
@BenjaminGruenbaum He asked a stupid question in chat, I provided the obvious answer adding how I managed to figure it out in 5 seconds.
@BenjaminGruenbaum Beat you to it, already reading that
 
@SomeKittens should've added a LMGIFY link
Also the promises abuse there are horrible
 
Yeah, was wondering about that as soon as I saw the $q.defer calls
 
1:00 AM
Look at how they're bootstrapping the directive - I think there is much simpler code that does that now but what they have there is pretty straightforward too and they're supporting a much bigger use case.
 
@BenjaminGruenbaum sorry, but what lines?
 
@SomeKittens they create a new scope after the template downloaded, take care of stuff like controller on the directive and so on github.com/angular-ui/bootstrap/blob/master/src/modal/…
 
@BenjaminGruenbaum I'm lost - I really don't know that much.
 
@SomeKittens you should really spend an hour reading about a directive's lifecycle
 
@BenjaminGruenbaum I have ng-book, should finish that
 
1:04 AM
Go for it :)
 
not that any of this matters - I'll never get time in the schedule for fixing modals.
 
You can just copy paste it from AngularUI for now if you'd like - but they're basically creating a directive from code
Or, don't put it in a service directly, place it in the DOM have a directive that reads it and pushes it to an array on a service (so you have a fixed number of modals that are in your DOM to begin with and that same service has a "open" method that takes a modal name and params
I can't stand keypather like stuff
 
@BenjaminGruenbaum Because one should be aware of how the variables are changing?
 
Because it's defensive and it assumes you don't know how your scope data looks.
If you have actions then you should just have an actions object that's empty.
What's $timeout(angular.noop); doing there?
 
Keypather's here for good. The "CTO" wrote it, so it's staying.
    // Trigger a digest cycle
 
1:09 AM
Why does it need to trigger a digest cycle?
 
We're adding the compiled HTML to body with jQuery.
 
So what? What are you expecting to change right now based on any watchers on any scope?
(Also, again it should really be a directive but meh :P)
 
That's in a directive - an attribute we add so that a button triggers a modal.
@BenjaminGruenbaum setting $scope.in means the modal should appear.
 
You just added it to the DOM there, it doesn't appear?
If it's already in the dom then changing it would be inside angular and it's a digest.
If it's outside of Angular to begin with running a digest sounds pointless.
Do one or the either but don't do both
 
@BenjaminGruenbaum That is correct. Another reason I hate this app.
What I'm learning at this job is how to insert square pegs into round holes.
 
1:13 AM
The truth is that code is changed a lot so there are plenty of cases code looks horrible but was born out of business constraints that changed - that's why refactoring bad bits out is useful.
.saveApply is just not understanding Angular though.
 
It's not just safeApply - there are things like flagrant violations of SRP - most of our app is directives that handle the entire lifecycle internally. Not only that, these directives are fetching via callbacks using our Special Internal Tool™ that drops errors left and right.
Despite all that, we've got a fairly open market, so the product is going to go somewhere. I'm just not sure being a part of "going somewhere" will be worth being the one left holding the bag when the bubble gum and duct tape collapses.
 
Special Helpful Internal Tool™
 
@SomeKittens awesome - so fix those problems with your code :D
 
@BenjaminGruenbaum We had Operation: Paint red stripes on it which was a bunch of high-payoff fixes we wanted to apply to the code (like removing safeApply and upgrading to 1.3 to use bind once). Some got in but then word got out and now they're all in the ticket system and are part of the Plan.
I used to be really happy putting in those fixes, now they're all scheduled and instead of working on them in the cracks between other tasks, I go to IRC or here.
 
Well, fixes always have to be justified
 
1:26 AM
Of course - and none of them got in exclusively on my say-so (though that'd be nice).
I dunno. I just miss being able to tinker without structure for an hour or two a week.
 
You can still do that
 
I do - just not at work.
work has become...well, work.
hmm, it appears the UI popovers don't close when something else is clicked.
 
1:41 AM
Any of you guys know how to programmatically hide the address bar on mobile webkit browsers? I've tried this, but no dice.
 
Sounds like a hack
 
@monners Use case? Sounds like terrible UI.
 
2:18 AM
for all of your <noscript> needs
 
2:41 AM
@rlemon cute dog :)
 
2:57 AM
@SomeKittens Single page app (think a slideshow within a container that stretches to fill the whole screen)
Trust me, it's pretty sexy, and works really well, except for this address bar
 
there's no such thing as a free vps host out there, is there?
 
3:16 AM
For those who have used passport: Can you have a named strategy aka: passport.use('login', new LocalStrategy....); passport.use('join', new LocalStrategy....);
Or does it HAVE to be local
No matter what I try, they never invoke..
 
 
2 hours later…
5:21 AM
Hello Everyone
 
@Pritam 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.
 
Anyone woking on NodeJS or worked before?
 
user2620028
quite a few of the regular members in here have NodeJS experience. I personally do not
 
Okay. Thanks..
 
5:56 AM
@Pritam I've heard of that, what is it?
 
@phenomnomnominal: I am running two NodeJS servers.
I want to connect one NodeJS server (as a client) to another NodeJS server.
 
Woah, JavaScript on the server? Really?
 
and make them communicate with eachother..
 
Oh golly, that sounds tricky.
 
yeah. stuck on this for last few days..
need to solve as early as possible
 
6:00 AM
Gosh. Good luck with that
 
Thanks.
 
6:35 AM
<div id="fileSection">
Select file to upload <html:file property="theFile[0]" /><br><br><br>
</div>

<html:button property="bt" onclick="addElement()">Upload More files</html:button>
i am refer this link
javatutorialsandtopics.blogsp…
var tag='<input type="file" name="theFile[' + fCount + ']" value="">'; notworking please help me
 
@user3232044 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.
 
 
2 hours later…
8:36 AM
I've tried a bunch of things to test an angularJs controller. Is that even supposed to do. Because I keep running into Module x not defined. The appModule (where the ctrl lives) requires several services to be injected, but mocking doesnt give any sign of life. here is a gist with what i've done so far: gist.github.com/anonymous/019113a9e428724343cc
 
9:24 AM
Guys gulp question
I have two types of files, .js and .es6, .es6 files are transpiled by 6to5 with an AMD wrapper, and then copied dist/
.js files are transpiled by 6to5 without a module wrapper, and then copied to dist/
I want to add gulp-requirejs to optimize the results
Is it possible without creating intermediary files?
 
hi all
can anybody tell me how can I send array of form data in form submission along with file uploaded in angularjs
$scope.files is an array but why $scope.formData cant be an array
I am using PHP as server side language
where I am catching these parameters using
print_r($_REQUEST);
print_r($_FILES);
 
user3949359
10:10 AM
I'm reading "Eloquent JS" right now and ran into the following passage: "ur values or pay for
them. You just call for one, and woosh, you have it. They are not created
from thin air, of course. Every value has to be stored somewhere, and if
you want to use a gigantic amount of them at the same time, you might
run out of bits. Fortunately, this is a problem only if you need them all
simultaneously."
 
user3949359
What does it mean to run out of bits?
 
@nosille You'll run out of memory
 
user3949359
@SecondRikudo thank you
 
In its simplest form, if the computer has 4GB RAM, and you're trying to store more than that in a variable, either the OS would crash or more likely, the browser will crash.
 
user3949359
Why does JS use 64 bits to store a number, as opposed to 128?
 
10:16 AM
Does "Because it was 'designed' in 1995" work as an answer?
 
user3949359
@RoelvanUden yes
 
10:28 AM
You can store ints etc in arrays by teh way.
*the
 
user3949359
10:56 AM
why is
 
user3949359
"" === false
 
user3949359
false?
 
user3949359
They're not precisely equal, what does "precisely" equal mean however?
 
!!> "" === false
 
@BenjaminGruenbaum false
 
10:58 AM
^ they're not equal
 
A string is never equal to a bool. A strict comparison (one with === instead of ==) will do strict checking based on type, rather than the non-strict which "guesses" if something could be similar.
Benjamin, I didn't have time to get the gist for the pinch/zoom-challenge thingy specifications up yesterday. I'll try again today ^_^
 
are many developers moving to ember from angular or vice versa?
 
user3949359
@RoelvanUden thanks
 
@nosille hey, the story is simple - javascript is victim of its own popularity, first there were only equality operators, and they were buggy but as soon as javascript got widespread it was hard to fix so strict counterparts were introduced.
@nosille basically, this is because of MS - they've made 1:1 clone of JS including all of bugs :-D
@SuperUberDuper there are people moving from angular to ember (I know at least one) but I think angular is better choice than ember. Don't know if there are any people moving from ember to angular. Why are you asking?
 
I moved to ember 3 months ago
im very happy, esp with the ember-cli, and were getting a virtual dom.
 
11:05 AM
@SuperUberDuper if I were to move anywhere I'd seriously evaluate meteor, it's motherfucking awesome :-D
 
I done angular for 8 months, enough to get productive with it, but not long enough to get steeped in it
well isn't it a server side stack?
I prefer "its amazingly awesome"
 
I do angular for 1.5 years - at this point I can only say there's a little what can surprise me
meteor is like new RoR - it's server-side + client-side + it comes with live-reload and preconfigured mongo right from the start - it's full package
the only thing I've disliked was the fact they've forked nodejs and npm (meteorite) which effectively made it hard to use all of existing npm packages - but this got resolved recently and there is way to use any NPM package you want.
 
Why you would choose to limit yourself with a pre-assembled thing over composing your own stack is beyond me.. why would you do that?
 
if you haven't tried already, it's simple
1. curl https://install.meteor.com/ | sh
2. meteor create todo-app
3. cd todo-app
4. meteor
5. open browser, edit app files, save and each change will flow right into the browser (it's not exactly live-reload to be precise)
 
Using Windows. I just oppose the entire notion of not having a clear server :-)
 
11:13 AM
@RoelvanUden I think it's a good thing if you're about to write new project from scratch, building own stack is cool but not very productive
 
user3949359
"The same goes
for "false && x", which is false and will ignore X. This is called short-circuit
evaluation"
 
user3949359
Why is this expression false?
 
it's literally false
 
@SuperUberDuper anyway, I'm eager to know what exactly is better in ember and what backend do you have (java/RoR/js)
 
@KamilTomšík meteor is pretty horrible :D
It's mediocre at best, not a very strong abstraction and uses tools like Mongo which are patently bad.
 
user3949359
11:17 AM
@BenjaminGruenbaum How do you make it appear in a code-like style?
 
For a todo app it's nice, for anything real it becomes spaghetti really fast.
@nosille you put it between backticks.
@RoelvanUden well - Meteor people are known to sell really aggressively at conventions.
@KamilTomšík I also disagree with that, building 'your own stack' is an npm-install away. Coupling the server and the client even more is harmful.
@RoelvanUden a good analogy of meteor from your .NET background is asp.net web forms
 
user3949359
@BenjaminGruenbaum I already tried, didn't work
 
user3949359
"false"
 
user3949359
works now
 
@KamilTomšík I was thinking of just using firebase
 
11:20 AM
Surprise surprise
 
@BenjaminGruenbaum I think spaghetti is something you can get anywhere, no matter the platform but I'm interested in that aggressive conventions
 
we have java
 
@BenjaminGruenbaum Oh god that is horrible, why would ANYONE CHOOSE for that?!
 
@RoelvanUden because "you only write code once instead of twice" and "you get the server and client to synchronise state automatically for you"
 
@SuperUberDuper firebase is not very good for any kind of relations
 
11:22 AM
That is horrible. Let's go against everything that HTTP stands for!
 
@RoelvanUden they use websockets :P
 
@BenjaminGruenbaum that is bullshit, you need to have both client & server code (but I really love the platform, the fact that it works right from the start and I can focus on delivering)
 
@KamilTomšík I agree that you can get spaghetti anywhere - I just think that forcing yourself into an architecture that's very likely to get you spaghetti is harmful.
 
@BenjaminGruenbaum I still think it's a bad idea. :-)
 
@RoelvanUden I don't disagree :P
 
11:23 AM
@KamilTomšík Any platform can work from the start. It's not an argument.
Building a stack takes what, 1-2 days?
Once you've done that once you get everything YOU wanted.
 
@KamilTomšík You have both client and server code but they're a lot more shared and coupled than in plain node. As for "works right from the start" I agree with that - for a quick prototype Meteor is a perfectly viable tool.
The problem people have with meteor is that once they don't use it the way it was "meant to be used" they get in trouble. Want to use PostgreSQL? We have an adapter for that but good luck using it.
 
no argument there - if you have time for this, fine-grained is better but I usually don't have time or it's better to spend it doing UX stuff
gtg (lunch)
 
Right, I don't think meteor really saves you any time though. I think it's cute but I think the abstractions it poses are weak.
Then again if it works for you that's nice - I'm sure you can built a lot of stuff with Meteor and that there are things for which it delivers well - just like ASP.NET WebForms, I just don't think it's worth it given the alternatives.
 
@BenjaminGruenbaum hey, I think a lot of things but it's much better to actually try - I thought you've already done some meteor stuff...
 
@KamilTomšík I did, several times. Once when it came out (but was unusable because of the lack of authentication etc), once when they added auth in 0.5, once when they added a PostgreSQL adapter and once some point later.
 
11:28 AM
It's a bit weird that you can't take a few days to establish a stack you're comfortable with and use for every following day at work. You had to learn <insert framework here> for a few days, too.
 
I'm far from a meteor expert - but I've given it an honest attempt at least 4 times and it did not leave a positive impression at any of them.
 
what about just using Elm?
 
@SuperUberDuper "just using Elm" lol.
Again - it's perfectly fine for prototypes - then again so are a lot of things I wouldn't use in production.
 
I've tried it once (0.5) and it sucked
from 1.0 I think it's stable and usable
really going now :)
 
user3949359
What's the difference between an expression and a statement in JS?
 
11:32 AM
@KamilTomšík it's usable, I don't think it's particularly good. I can totally see the appeal for a demo - but for a whole production app it seems like a bad choice.
@nosille an expression returns something, usually.
!!> (function(){})
 
@BenjaminGruenbaum "function (){\n\"use strict\";\n}"
 
!!> function(){}
 
@BenjaminGruenbaum "SyntaxError: function statement requires a name"
 
@BenjaminGruenbaum I was able to replicate your $when.apply.map magic twice! :D Thing is, for some reason the result of the promise is null -- but then again I don't think I'm applying the Q.all() properly - and now there's no way of skipping the promise because I'm using another provider that actually uses proper promises. Can you just point out what I'm failing at? jsfiddle.net/pc7c2qve [Though I'm ever thankfull for your magic, I need to learn this as well :P]
 
@MoshMage why are you using the Q library? If you want a client-side promise library use an ES6 promise shim, or a newer better library.
.then(function(){
            return Q.all(promise);
        });
jQuery $.when does a really weird thing where it resolves with varargs as parameters and you need to access it through arguments, the Q way would be to use Q.all instead of $.when.apply
 
11:36 AM
@BenjaminGruenbaum Erm, this is node-webkit on the client side; I'm using Q because everyother Provider does - That's about the only reason I have
 
Use Bluebird, it's much faster, and has better stack traces and it does not suppress errors
 
Not my code base, sadly :(
 
Also, you have to stop with the deferreds. Deferreds are only used for creating new types of promises not for chaining them.
24
Q: What is the deferred antipattern and how do I avoid it?

Benjamin GruenbaumI was writing code that does something that looks like: function getStuffDone(param) { var d = Q.defer(); // or new Promise, $.Deferred, $q.defer() etc. myPromiseFn(param+1).then(function(val) { // or `.done` d.resolve(val); }).catch(function(err) { d.reject(err); ...

 
@BenjaminGruenbaum Thanks.
Seems like I'm falling through every anti-pattern whoop-and-loop
 
so would you not recommend a startup using firebase as the only backend?
 
and using say heruko app to host front end for free?
 
@SuperUberDuper firebase is fine depending on what you want to store. Usually using a relational database like PostgreSQL is better than the alternatives.
@MoshMage don't worry - I did too, it's why I wrote about them :D
 
12:00 PM
Paste in console:
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[
 
There is a generator for that
 
@BenjaminGruenbaum jsfuck
 
12:14 PM
@SecondRikudo how on earth..
 
!!tell 21061113 magic2
 
#aroused
 
12:32 PM
man, @SecondRikudo discovers the wildest things.
 
@MoshMage How deep down the rabbit hole do you want to go?
 
@SecondRikudo Heh, I'm fine thanks. I'm still headbanging the wall of normal javascript :P
 
I think he'll be annoyed, he has tantrums :D
 
@BenjaminGruenbaum I guessed from the title of the book
 
12:35 PM
I turned a 100 LoC function into a 8 line of code function. If I were him I'd be pissed too :D
Just look at his code
 
@BenjaminGruenbaum such a smart ass :P
 
@BenjaminGruenbaum I'm about to throw the towell in and BG just rewrites peoples' books :x
 
@BenjaminGruenbaum I wouldn't.
If you would have turned my 100 LoC into an 8 line function (which I think you did once), I'd be fucking impressed.
 
@phenomnomnominal no seriously, look at his code - it shows fundamental lack of understanding of how both promises and generators work, he re-implemented a core part of what promises do in his code.
My whole Promises/A+ promise implementation is 69 lines of code, how he got to a 100 is beyond me.
 
@BenjaminGruenbaum Yeah I saw it, you're a smart ass with a very strong emphasis on the smart part :)
 
12:40 PM
lol naa, I'm mostly an ass
 
12:50 PM
By.The.Lords. @BenjaminGruenbaum I got rid of all the deferreds (within my Provider, EZTV still returns the old Q) and return arguments is returning the correct object but the final call (the fetch method) still says {result: undefined} - I'm baffled. fiddle
Cannot, for the life of me, understand why the last call says it's undefined when clearly is getting something :\
 
If you remove the then(checkForTorrents) check does it work?
(as in, does it log something?)
 
will try
/me laughs out loud.
yes, it returns the checkForTorrents stuff. HOW? :o
 
@BenjaminGruenbaum any thoughts on why a call to $timeout after pushing an object into an array would stop a ng-repeat of that array from rendering in a directive?
 
my bad. it's not the checkForTorrents but it does have an object with arguments[1]
 
@phenomnomnominal no idea, if you create an isolated test case I'll take a look
 
12:54 PM
I'll sleep on it.
 
`
result: Arguments[1]
0: Object
id: "tt1520211"
latest: "Latest Episode@05x08^Coda^Nov/30/2014"
title: "The Walking Dead"
__proto__: Object`
 
You're just going to have to debug it - put breakpoints and see what happens
 
Ill keep whacking it :) I'll also have lunch in the meanwhile, might come up with fresh view on the "problem"
 
notifications.push(notification);
$timeout(function () {
    $timeout(function () {
        dismiss(notification);
    }, 10000);
}, 0);
Works ^
notifications.push(notification);
$timeout(function () {
    dismiss(notification);
}, 10000);
Doesn't work ^
Fuck everything
 

« first day (1557 days earlier)      last day (3382 days later) »