« first day (1335 days earlier)      last day (3611 days later) » 

12:00 AM
Put debugger; in the function?
 
Wouldn't that mean the function isn't being called?
 
I don't want it to hit until a certain point
it gets called a couple hundred times beforehand
 
prove to me that it's called on the 201st call
Maybe it's an edge case
 
:P I can't
 
12:01 AM
also @RyanKinal what if I need to use "this thing" and "another thing" in the same directive?
 
still waiting for that call. This is stressful.
Stuff it all in $rootScope
 
Is that like angulars window?
 
DO NOT DO THAT
IGNORE THE KITTENS
 
In fact, why not use $rootScope for everything?
 
lol
 
12:02 AM
Bad Advice Kittens
 
Let me get some code...
I will show you
 
Want me to give an example first?
Might make it a bit easier to explain what I'm trying to do
 
Nah, I know what you mean
 
^^ BAK tips
 
12:03 AM
/* partial code from an add-to-cart directive */
art.directive('cartAddItem', ['Cart.addItem', function(addItem) {
    return function(scope, element, attrs) {
        if (attrs.inCart === 'true')
        {
            element.addClass('in-cart').removeClass('green').addClass('blue').text('Check Out');
        }
 
well, FF seems to work
 
So, your attrs contains all the attributes of the element
 
sigh yet another reason to add to the list of why Chrome sucks
 
Note that my directive is called cartAddItem, and yet my first attribute is inCart
 
My game is bloody balls slow on FF though
 
12:05 AM
Ew, bloody balls
 
@bjb568 No, it isn't.
 
seriously, is everyone blind or does Chrome just throw fits because it's on my machine? This browser sucks
 
My Chrome has been a bit laggy since I got home
But not horrible
I'm mostly just pissed off because they disabled non-published extensions
 
I still have my homebrewed extensions
 
12:08 AM
... which means the chat easy input tools are not working for me right now.
@SomeKittensUx2666 Version?
 
> 35.0.1916.114
 
Ah. Mine's .153
Holy WTF (warning: mention of drugs)
 
@ThomasAntony 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.
@coldfix 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.
@DarlanAlves 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.
 
Suck it.
 
!!mute 2888561 1d
 
12:23 AM
room mode changed to Gallery: anyone may enter, but only approved users can talk
@SomeKittensUx2666 Muted user 2888561 for 1d
 
Which user might that be?
 
You'll have to find out for yourself
He's probably going to go whine about it on meta now
 
lol, surprise surprise
 
@DavidOngaro 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.
 
I've never muted or banned someone... o.o
I bet it gives you one hell of a rush! Like a combination of cocaine and meth!
And unicorn tears!
 
12:33 AM
@SomeKittensUx2666 what did he do this time?
 
@BenjaminGruenbaum Tried to get everyone to spam flag someone who didn't really deserve it
 
lol typical
I have no idea why he comes here... he never talks about JavaScript and he isn't really friends with any of the regulars -_-
 
Trolls gotta troll
 
Who are we talking about, Abhishek?
;)
 
12:46 AM
zing!
 
lol
 
Rumor has it, he is actually helpful in the html/css room
 
haha, I just got one-upped
 
i have trouble with java script closer
 
@happenask oh no :(
 
12:48 AM
it so difficult to understand
 
Did you try counseling?
 
Funny, I usually have trouble with java script further.
 
I heard it does wonders for couples who don't get along.
I mean, I get along with my wife just find, and I find her difficult to understand sometimes.
Try buying your "java script closer" (cute nickname) a necklace, that always works for me.
 
^ @KendallFrey
 
12:53 AM
@RyanKinal sorry for the late reply. I think I see what you're saying. Thanks for the help lemme see if I can get that working, got pulled away by the boss real quick.
 
@BenjaminGruenbaum i want to get over this trouble. it may be very important
 
@happenask how urgent is it?
 
it's urgent FOR REAL!
!!wheatly
 
> i dont want to screw too much up
He says in the same message as a link to his most recent commit, which crashes the server.
 
1:01 AM
haha
 
wasn't even worth the inevitable argument if I bring it up, I just git reset and force pushed.
 
lol
so, I take it you don't have a build server :D?
 
nope
I wish we did. I'd love to set one up.
What do you guys use?
 
Although, we have a lot of stuff that isn't CId which is a shame
Just the really important stuff
 
One of our holdups is that everything's in Wheatly's personal private repos, so I can't integrate services.
 
1:07 AM
There is no personal private repo in git :) Everyone has a copy
 
GitHub private repos
as opposed to an organization
 
Oh, how is the code deployed?
 
ssh nh
cd NeedleHunt
git pull
 
1:21 AM
Not fancy at all.
the few tests we have are run in a pre-commit hook
 
doesn't sound too bad
 
It suffices for a small shop
 
We're in the process of implementing a new deployment process and server stack
 
Git plus our own server setup
dev --> test --> staging --> production
We only ever touch dev for development, test for data entry and testing, staging for pre-deployment/deployment testing, and production becomes a carbon copy of staging.
 
1:34 AM
nice
 
All changes to the file system are auto-deployed to dev from git, and the only thing we share is the dev database, so we all get to work from local instances of the project (which pull down changes when it's safe and makes branching possible without fucking everyone else up)
The downside is that there are a few still in the habit of logging into the CMS itself to make changes to config/system files which this process requires we never EVER do.
Ideally all of the work is done on dev and then promoted through testing and staging before arriving at production
 
@user467947 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.
 
It's not a new concept, but it's new for my shop
Carly, the dev setting this all up really seems to know her shit. She's a god sent from the lands of process.
 
2:00 AM
What do you put in front of a bot command so that it isn't returned as a reply to the caller? I forget
 
!!badkitty
 
Bam!
That is one pissed off lookin' feline
 
Welp, heading home
never did get that call about the job.
 
2:12 AM
@Al-Muhandis 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:29 AM
@DouO 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.
 
I am Ali Gajani, and I send this message to any surviving jQueryBots taking refuge among the JavaScript Chat room: We are here. We are waiting.
 
2:51 AM
@AliGajani What?
4
 
@CharlesNoon 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.
 
@monners your new avatar reminds me of bjb
are you sure that is the image you want to have
 
@Mosho Consider it ironic (it's actually a jab at your avatar :P )
brb. Meeting
Ok I've changed it back
 
3:07 AM
yay
there can be only one
 
Anyone here able to replicate the same inconsistent behavior that I've described here: stackoverflow.com/questions/24175017/…
the steps described under the "Second Edit" are the easiest to follow
 
3:22 AM
why the fuck did I wake up at this hour?
5:22
 
@towc that would be ten minutes too late
 
@JanDvorak do you usually wake up at that time?
 
real programmers wake up at 5:12 and go to sleep at 20:48
(10:24 is acceptable for a wake-up time as well)
 
ya know... I'm on vacation and I'm a teen so I'm supposed to wake up really late and go to bed real late aswell
 
@towc I don't always wake up at 5:12, but when I do - The sun-rise is beautiful.
 
3:28 AM
here the sun already rose
 
I bet it's not the only thing that rose
 
@Mosho do I just have a dirty mind or is it what you meant?
 
@towc it isn't just you. He actually meant his penis.
 
this is the picture of the sun rising from my view... but won't show a picture of his thing rising, don't worry
 
3:54 AM
@BenjaminGruenbaum im drunk where are you
 
@Ranjer 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.
@Ranger 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.
 
4:23 AM
@SomeKittensUx2666 I'm so sorry.
Tried to install Java Chrome extension, get asked if I want to also install the Ask toolbar extension...
 
4:38 AM
@prassu 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.
 
4:51 AM
Good morning
 
Good morning
 
My xhr.responseText is not working
I can confirm that I recieve request on server side
In chrome dev tools, it shows proper response
but, I can't see it rendering in the element I am making it render to...
I followed this tutorial - ajax-tutor.com/get-data-from-server.html
 
Are you sure your render functionality is working? Have you tried just rendering dummy data?
 
And I have tried this answer - stackoverflow.com/a/8710225/3459110
@monners yes, It is working...
@JanDvorak ok, wait, I will make one...
^this
 
5:00 AM
do you plan to support IE7?
 
yep, I do
And I also plan on dropping the support
bssuac.php returns what I want it to return based on input properly, as I can see the response in chrome dev tools...
 
e.status == 200 && e.status < 300 ???
 
its written in the tutorial which I linked to
 
well, if a number is equal to 200, it's definitely less than 300
4
 
it didn't work, so I stackoverflowed it, and got the answer that I linked to, so I changed it accordingly to what you are seeing in the fiddle
ok, I removed the <300 part, its still not working
 
5:05 AM
@AwalGarg You shouldn't.
 
@phenomnomnominal haha, alright. I will drop the plan to do it :)
should I post a screenshot of what chrome gives me in the network tab?
will it help?
 
anything in the console?
 
nope, console is plain white and empty
 
pastie of the response?
 
5:08 AM
Morning peoples
 
Morning
 
does it help now?
why is it not working?
if I drop the IE thing, would it work then?
Jan, u there?
 
I'm out of ideas; sorry
 
oh, alright, thanks for trying though :)
Jan, is there any more information I can give that can help you figure it out?
 
what exactly does the output element do?
 
5:19 AM
<span id="bssc">asasa</span> <-- this is all the output element is, Jan.
 
room topic changed to JavaScript: typeof NaN is cheese: DO read this link: rules.javascriptroom.com. Before asking inform yourself on the XY problem goo.gl/taIqf [ecmascript] [javascript] [undefined]
 
Jan, my php file is plainly doing an echo command. Should it do return or print instead?
 
@Manex 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.
 
what does xhr.responseText actually return?
 
5:38 AM
it should be the exact response that came from the network
err... you are listening to the ready state change of the input element's value
strings don't change their ready states; XHRs do
 
OMGness, yeah right
I love you!!!!
That . is . working . now!!!
@JanDvorak thank you so much...
I am so silly :P
Ok, follow the standards and use descriptive variable names <-- noted in brain :)
 
^
unless golfing; then it's okay to make a mess off your code.
 
I'm running XP in a virtual machine at the moment. I can't believe we used to live like that!
 
@lucaswxp 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.
 
5:53 AM
@monners aw c'mon, the graphics isn't that bad
 
@JanDvorak It was good for what it was at the time
 
@monners a few years from now, and you will say that for whatever you are using now as well
 
does the current Chrome work on XPs, though?
 
@AwalGarg I already say that about Win7, which is why I use a Mac
@JanDvorak I think so, dunno.
 
@AwalGarg or any operating system with a 2D shell, for that matter
 
5:56 AM
!!google does the current version of chrome run on windows xp
 
@JanDvorak yeah right
 
Hmmm, apparently it does
 
I still have an XP machine
 
hence proved, Google behave like an oxymoron :)
 
5:58 AM
@AwalGarg What?
 
!!tell awal define oxymoron
 
@awal [oxymoron](http://en.wiktionary.org/wiki?curid=1585) A figure of speech in which two words with opposing meanings are used together intentionally for effect.
A famous example is Milton, Paradise Lost, Book 1, ll. 63-4:
No light, but rather darkness visible
Serv'd only to discover sights of woe

Shakespeare, Romeo and Juliet, Act 1. Scene 1, in which Romeo utters nine oxymora in just six lines of soliloquy:
Why then, O brawling love, O loving hate,
O anything, from nothing first create,
O heavy lightness! Serious vanity!
 
@monners they don't support the default browser with XP, but they support XP!
@JanDvorak you've got to be kidding
 
Google isn't an oxymoron. Words are.
 
@AwalGarg He's right, you're using it wrong
 
6:00 AM
Google doesn't even act illogically. IE sucks. Even M$ admits IE sucks.
 
fullscreen - Chrome has that. Firefox has that. Opera has that (I think).
 
@JanDvorak Shit, (almost) every OS X app has that
 
ie has that too, I think
 
:facepalm:
!!tell Awal badkitty
 
6:03 AM
no?
 
"multitasking" is a feature of the Metro shell, not of IE
 
@AwalGarg I guess you didn't actually read the site you just linked to
 
umm, I guess I would be going now... bye!
@Jan you are great, thanks again :)
 
"reading view" - if that is what I think it is, There's a Chrome plugin for that. Also, Opera Mobile has both a single-column view (where it discards all layouting CSS entirely) and a text-wrapping view (where only the text width is reduced to the screen width)
Also, you can define columns in CSS.
 
6:12 AM
@Black-Pixel 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.
 
@JanDvorak Ummm, ok
 
@SatyamSingh 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.
 
6:41 AM
So, after 2 hours we discovered that the IE8 bug was the result of our QA not updating the git repo in over two weeks
 
@monners That looks very bad for a QA team...
 
@dystroy It's not a team, it's one person. To be fair she's only been in the role for a couple of months and is really good at documenting the information required to troubleshoot issues.
I guess that's a mistake you (hopefully) only ever make once
 
She hot, though?
 
ok, so your QA team doesn't really have to guarantee quality before release. It's just the name which is a little misleading
 
@dystroy I'm trying to be nice.
 
6:48 AM
@Dude 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.
 
@fillobotto 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.
 
7:04 AM
This question appears to be a known duplicate. Please don't do that. — Jan Dvorak 11 secs ago
send all angels of fury down to that guy.
 
Stop being lazy. Write a complete detailed question instead of just putting a link. — dystroy 18 secs ago
 
7:19 AM
@d3lta 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.
 
7:30 AM
morning
 
Morning =)
 
Morning!
 
@AlinRoman 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.
@alex89x 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.
@user1016327 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.
@Andre 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.
@Diamondo25 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.
 
7:49 AM
What the shit
 
@Kippie She's getting older and repeats herself a lot
 
Time to take her to the farm, I guess
 
@AvD 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.
 
What happened to that RFC about "queueing" welcome messages?
 
@Abhishek 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.
@RhysC 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.
 
8:04 AM
@Kippie evidently been forgotten about
 
@PandaPajama 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.
@caesarsol 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.
 
Hi there!
 
Ello
 
hello
 
Guys, are any of you using angularjs and writing unit tests with karma for it? Specially directives.
 
8:14 AM
yes
 
I did that
 
I've studying how some scripts work, but I can't seem to make tests work
I'm using PhantomJS
The preprocessor as I see should compile template and allow it usage during test.
As I understand they should be available through module: 'templates', but I keep getting an error.
INFO [PhantomJS 1.9.7 (Linux)]: Connected on socket imhVFydrMFwzHNa1IXQt with id 3311964
PhantomJS 1.9.7 (Linux) rating model to UI should render rating based on model and default max length FAILED
        Error: [$injector:modulerr] Failed to instantiate module templates due to:
        Error: [$injector:nomod] Module 'templates' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
 
its cant find the templates module
have you included all the required js files in the config?
 
As far as I know repo was created by one of the creators of AngularJS and repo is a workshop, that was made for Devoxx. I assumed, that everything is present
Only thing I did, was change bowrser and specify only one directory with one test.
 
I'm still learning angular.. I think I'll try to learn unit testing for angular only after I can figure out how to use it :P
 
8:27 AM
@DrogoNevets Well and hostname and port
 
@Eugene there is somewhere a JS file(s) that are to do with the "templates" module that are missing
search for angular.module("templates" in the directory structure, if they arent found,you know why
 
Yeeey
Done
Thank you.
 
8:46 AM
awesome!
 
Im also learning angular and banging my head against wall trying to write one test
 
learn by example
 
yes i am trying one simple example, but some small issue i guess.
 
tests are the hardest thing in angular, but once you get them, they just click :)
 
Yes I have been coding in Ember for a while, now learning angular and TDD
 
8:55 AM
@sabithpocker And don't destroy your brain prior to learning
 
if anyone wants a hand with angular give us a shout
 
@Neil So you are saying i should first get aquainted with angular and then learn to write tests?
 
writing tests for angular with karma is super easy
 
@mounaim 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.
 
I have setup karma
 
8:59 AM
@madness800 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.
 
what does the tool "coverage" do?
 

« first day (1335 days earlier)      last day (3611 days later) »