« first day (1444 days earlier)      last day (3502 days later) » 

12:04 AM
@twiz Ehh, the terribleness of Fox News is greatly exaggerated.
Or rather, it's terrible, but no more terrible than any of the other major news channels.
 
@Retsam I didn't mean to single out Fox, they are all worthless
I can only stand to watch the new if it is delivered in clips on the Daily Show.
I feel as though they need to start including a laugh track with the news. The things they say feel really out of place when no one is laughing...
 
As funny as the Daily Show is, I sort of view it as a symptom of the same problem: people don't want to be informed, they want to be entertained.
News stations don't cover the most important stuff, they cover the most entertaining stuff. Hence why we had massive news coverage of "the fappening" and a tiny bit of news coverage of "Hey, one of the major world powers might be splitting in half"
 
12:19 AM
Well the Daily Show doesn't really pretend to be anything other than entertainment.
People watch the news and think that makes them informed.
 
12:37 AM
I could easily downvote my way to zero rep. :-(
This always cheers me up:
 
 
1 hour later…
m59
2:07 AM
@SomeKittens any eta on runnable 2? I'm getting close to setting up on OpenShift....
 
Oct 31
 
m59
oh snap.
That might just work =D
On the condition that you must NOT look at my work haha
There's a mountain of things that need to be done.
 
Coming to the UK ...
Speaking of which, possibly the best music vid ever: youtube.com/watch?v=AM9JgfObeUw
Natalie Portman turning into an octopus is hard to beat, to be fair.
More folk music:
And the greatest producers of electronic music: youtube.com/watch?v=l86CKCllUiU
Night folks, I'm out.
 
 
1 hour later…
3:58 AM
@m59 I've documented and tweeted all of your failings. You're now 100% unemployable :D
 
Hello all.
 
Greetings
 
:)
 
Guys, my number of app installs per day are going down and down. What do I do?
 
Maybe your app isn't good enough
 
4:09 AM
Build better apps
 
Facing a problem here,A webpage opens up a new tab which performs some JS code and then attempts to close itself and refresh its parent using JS.The parent page is containing an IFrame from an external URL and when JS is attempting to refresh the parent page console is showing up cross domain error.
 
:-/
 
@RahulDesai What's your app called?
 
i.e
Uncaught SecurityError: Blocked a frame with origin "https://abc.website.com" from accessing a frame with origin "https://abc.website.com". The frame being accessed set "document.domain" to "abc.website.com", but the frame requesting access did not. Both must set "document.domain" to the same value to allow access.
 
So far, all the people who rated it, wrote really good reviews.
 
4:11 AM
Is IFrame attempting change on document domain??
any idea please?
 
@monners Its a ToDo app. Here it is: marketplace.firefox.com/app/my-todo-list
If you compare the UI of my app with the one with most reviews, my app is certainly better.
I dont want this app to be lost in the store.
 
That's subjective.
 
That's very subjective
No, it's very subjective
 
lol, that's two so far @copy
 
Subjective in what sence? I didnt get you.
 
4:14 AM
you think it's better.
 
@monners Soul mates?
 
@copy Don't tell @BadgerGirl!
 
Yeah, I should stop doing that
 
I pushed an update to it yesterday, made some changes to it based on the feedback from friends. Lets see if it makes any change.
 
4:15 AM
@RahulDesai Also, the world is unfair
 
@RahulDesai At the end of the day, it's a todo app. You're already up against literally hundreds of competing apps.
Thousands may have been a little overboard
 
@RahulDesai The description of your app needs some work
 
But the guy who published the ToDo app and currently has 9 reviews (the most) he published it in Jan this year. Mine came out this month!
@monners True
@copy Its the first time a wrote a description :D Is it too long?
 
It's not humorous enough and too obvious
> Features: Add a task
 
4:18 AM
Make it funneh
 
ok
anything else?
Should I leave the obvious stuff to the app homepage? rdesai03.github.io/todo_application
 
Yes, but not on the front page
 
alright
Ok, so I will be removing the features section and the steps below it.
Will keep it short for now. Let me think how to make it funneh.
You guys may try out this app, if you like. :)
 
hello
morning guys :)
@RahulDesai not responsive... atleast not the fiddle.
 
@AwalGarg yeah, I am working on it
 
4:32 AM
nice
good luck :)
 
thanks mate :)
 
is there anyway to reset radio inputs in a form with angular ?
 
@RahulDesai it runs on localstorage right?
 
@AwalGarg yepp
totally
 
@RahulDesai fiddle.jshell.net/0h5jzot3/6/show made it waaaay before... pretty similar thing. Just that I didn't style things ;p
 
4:44 AM
@AwalGarg looks cool
you may also add drag/drop for sorting
 
m59
@monners :'(
 
@RahulDesai I was experimenting... I don't think I would take it any further ;p
heyo m59
 
@m59 They made me do it!
 
!!afk bbiab
 
The bot it off I guess
 
5:06 AM
*is
 
You can edit your message by pressing the up key
 
m59
Kangaroos, oh Kangaroos, why hast thou forsaken me, mate!?
 
5:22 AM
Problem found on angular
When using ng-if
<li ng-if='get1Answer'> <span class="answer-mark"><input type="radio" name='answers' value='0'  ng-show='getMode=="1"' ng-model="getSingle"  ng-change='getChecked(radios)'></span>
</li>
if i set $scope.get1Answer = true
$scope.getSingle getting undefined
if i remove ng-if='get1Answer' from the element
$scope.getSingle = 0
 
m59
@samitha probably the dot rule, as usual
That should be $scope.whatever.getSingle
 
u mean
ng-model="obj.getSingle"
 
m59
yes
 
do you have a clue about the reason ?
 
m59
The reason is that you're always supposed to use the dot rule :)
However, I actually doubt that's the problem.....
it's just the best starting place because that is the most common problem
Also, ng-if runs at a priority of 600, so it may depend on where you're checking that scope attribute.
 
5:28 AM
i have changed first radio input to the
ng-model="answer.getSingle"
but it still undefined
ng-show working fine instead of ng-if
with ng-show
 
m59
I find it hard to read that code.
You should be using ng-repeat to generate those items.
you have a ton of variables.
 
It's a exam system dude
i'll show a screenshot
repeating 100 elements is not good i think
:)
@m59 u there?
 
5:45 AM
damnit
 
Remember, AngularJS directives can have priorities
 
6:04 AM
0
Q: How to use ng-value conditionally

samithaI have a radio button and it html as follows <input type="radio" name='answers' value='0' ng-model="getSingle"> I want to use ng-value and i'm getting that value from an object like follows.So sometime it getting undefined.How can i check that conditionally in ng-value ? ng-value="$storage....

 
More actual results: 'Hello. My name is Inigo Montoya. You [are the best. The best thing ever]', 'Revenge is a dish best served [by a group of people in my room]', and 'They may take our lives, but they'll never take our [money].'
2
 
> They may take our lives, but they'll never take our money
 
hello everyone. anybody knowing Angular.js here?
I am unable to solve CORS issue with Angular.js
 
ask the question ?
 
I have updated the headers by adding "Access-Control-Allow-Origin"
But still from angular client I unabl;e to get data
using $http. I tried with JQuery and it workd!!
:(
 
6:11 AM
did you tried JSONP in jquery right ?
 
no
cors
 
@samitha ew
 
hi everyone
 
6:47 AM
Morning
 
Mornin' guys
 
240i video quality, but the music is great: youtube.com/…
 
id="$FormData[1]$PersonData[1]$PhysicalPerson[1]$PersonName[1]$Affix[@type='qua‌​lification' and @position='prefix'][1]cb"
And here I thought I'd seen it all
(Yes, that is an ID someone's using in HTML) stackoverflow.com/questions/26093934
 
@Cerbrus how does a thing like that come up?
 
@Cerbrus let me guess, ASP.net webforms or similar cancer?
 
6:54 AM
No idea, asker didn't give a lot of details
 
is it a case for closure? Let me in!
 
See the link above
 
small morning question : i have a table, i use jquery.tablesorter.pager to set pages on it... (it's a directory) When i click on a row, a symbol appears and next row which is hidden by default is shown, on re-click, it's hidden again... It all works fine on first page of my directory, but on second page (hidden by jquery.tablesorter.pager), the first click shows the row but doesnt show the symbol... i need a 2nd click to show the symbol, and then a 3rd click to hide the row... :( any idea?
 
-1
Q: jQuery validator gives error when a form element contains id with some special symbols. 'Unrecognized expression'

Daniel KatzI have a form with some elements that use ids wich special symbols like this: id="$FormData[1]$PersonData[1]$PhysicalPerson[1]$PersonName[1]$Affix[@type='qualification' and @position='prefix'][1]cb" I have a function getEscapedID(id) that I use to escape a problematic characters when I need to...

 
@Julo0sS sounds like mishooked event listeners or like failing state initialisation. Can't tell without code
 
6:56 AM
@Julo0sS: Yea: Write a SO question about it that explains the situation, and has a fiddle / snippet that reproduces the problem.
It's easier to debug something if we can see what's going on ;-)
 
i'll try ;)
 
7:08 AM
I asked the author of a Firefox OS book to review my Firefox OS app. He hasnt written it yet. I reminded him once already. :-/
 
Remind him 20 more times
 
Doesnt look good. :-/
 
You probably didn't offer enough drugs and hookers
 
jQuery's website is down again?
Anyone else having trouble accessing learn.jquery.com/plugins?
 
7:12 AM
!!jquery jquery
@SecondRikudo yes
 
They say it's up
Maybe a partial DNS probelm?
 
Is Javascript single threaded, but when we 'thread' in javascript, we're actually just using callbacks to simulate multithreaded behavior?
 
My ping doesn't return
@MyDaftQuestions Browser JavaScript is rarely single threaded.
But you can't control the threads.
 
It's always single threaded
 
@MyDaftQuestions that's called event-driven
 
7:14 AM
On most cases, the code you write for any single page is always on one thread though.
@copy Well the browser opens lots of threads for lots of things
Sometimes even different processes.
 
@JanDvorak @Cerbrus : as i expected... Fiddle works... maybe i forgot something...
 
also, cv-pls ^
 
Provided a custom off-topic reason ^
 
@SecondRikudo, my research suggests that you create a new web worker (which I assume is a thread) by assigning the name of the script. If this is correct, can I assume the same script? EG, if I had 2 functions in 1 thread, can I make the call to a function on a 'seperate' thread?
I don't need to know how, just to know if it's possible
:)
 
7:21 AM
@MyDaftQuestions I'm not overly familiar with web workers, sorry (Although I should probably learn)
 
@SecondRikudo, are you saying you can thread without web workers?
or it's just not an area you're familiar with as a whole?
 
@MyDaftQuestions web workers need an URL
data:// doesn't work, but blob:// does
 
@JanDvorak, yes, but can the URL be the same as the function making the call/>
 
@MyDaftQuestions No, you can't multithread your code in JavaScript (not including web workers, as, like I said, I don't know).
The browser opens threads as it sees fit, you can't control it from your JS code.
 
@MyDaftQuestions that would load the script trying to call the worker
 
7:22 AM
Undertsood. Thank you @SecondRikudo
Thank you @JanDvorak - now time for me to do some more research! :)
 
You should look into the web workers lead more. It could be the answer you're looking for.
 
Yes, agreed @SecondRikudo
 
@JanDvorak @Cerbrus : I found my solution... problem at initialization... ;P
 
Hello everyone! Is there anyone here who is experienced working with WebEx API?
 
7:29 AM
@KamranAhmed not me
@KamranAhmed also, see rules.javascriptroom.com
 
7:40 AM
@JanDvorak Ahan got it.. Thanks
 
oi can i be screwed if i make a walky talky app using service discovery
which works only in private networks or vpns ? and somebody goes ahead and creates a mess casue of it ?
we kinda built one chat at pycon cause well the routers were screaming
and it was more senseful to keep the talk within but just wondering :-/
 
Is it true that Array.prototype.fn.apply is more performant than [].fn.apply?
 
@SecondRikudo ....
 
@SecondRikudo why would it be?
 
@BenjaminGruenbaum Had a small argument with a coworker :P
 
7:46 AM
@SecondRikudo why ?
 
@SecondRikudo what side were you on?
 
@BenjaminGruenbaum That they were exactly the same.
 
@SecondRikudo generally you were correct.
 
@SecondRikudo up to a few nanoseconds, that is true
 
According to him, because [] actually creates an array, then looks up .fn on that array, then when it doesn't find it, looks at Array.prototype, while Array.prototype goes directly to the prototype.
 
7:47 AM
What does the code that call .apply do?
 
@BenjaminGruenbaum Simplest example
var args = Array.prototype.slice.call(arguments, 1);
 
@SecondRikudo tell him modern JS engines are not interpreters, and can easily JIT that code.
 
@SecondRikudo except the compiler is likely to know this trick
var Array; Array.prototype...
 
@SecondRikudo First and foremost if you're not running this a thousand times a second that's irrelevant. Second of all that's slow anyway, the correct 'fast' way would be to slice the arguments inline (like Bluebird does). Petka is working on an optimization in v8 that fixes that specific case [].slice.apply so if he's finished (not sure if he is) it's actually faster to do [].slice.apply - the optimization is because it's so common.
 
@BenjaminGruenbaum Of course it's micro optimization
nano-optimization even
 
7:51 AM
@SecondRikudo not for a library like Bluebird it's not.
That's why there's a built step that does INLINE_SLICE.
Because if you do run it a thousand times per second - it can matter.
 
s/thousands/millions
 
If it's large lists - it can matter in thousands.
 
morning all
@Jhawins nope, didnt break any bike this time round, nearly drowned a couple though
 
The sad thing is ... is still slow, when they fix it - that'd be awesome.
 
7:55 AM
ooo someone updated the css
 
@SecondRikudo: what's stopping you from writing a jsperf? :P
 
@Cerbrus most people can't write meaningful benchmarks
 
That's a bad benchmark
 
because?
 
8:03 AM
Like, really meaningless
No JIT.
 
How would you do that?
 
@BenjaminGruenbaum But that's how I'd write it. So the test is accurate...
 
Start by putting every test case into a function
 
And in that case, your colleague is right, @SecondRikudo.
@copy: Even if it's just an IIFE?
 
But not into setup code, into a <script> tag
@Cerbrus No, an outside function definition
 
8:05 AM
Ah
 
Note how much faster it is, even in the .slice cases.
 
You probably want to test the call with several arguments
And I don't think v8 has dead code elimination yet
 
Lol, yeah, I was just imitating what was already there :P
@copy sure it does.
 
mrale said it doesn't
Although that was some time ago
 
It doesn't have clever DCE, it eliminates code in obvious cases.
updated btw.
 
8:09 AM
What's a good verb to use to indicate a melding of results?
Say you have a an object that represents a regex match on a particular string
 
@Neil define "melding"
 
args[0] = arguments[i]; wut
How does that work? o.O
 
If nothing matches, then it take that object and applies an operation to the next match in such a way that, if anything is found, the result shows that it found something
And so on for an entire collection
It also must keep all groups matched, so it doesn't simply hold a boolean indicating that it found something
My object name is MatchResult. I want to do like MatchResult.add(MatchResult)
But add doesn't seem to be appropriate
 
hi, if I have a function like this: var bar = function () { this.world = "hello"}; when doing var foo = new bar(); I'll have an obj with a property world set to "hello"; is it possible to modify bar afterwards in such a way that every new object will also have a property "hello" set to "world" for example? Without modifying the original one. basically extending the constructor
 
8:11 AM
@copy github.com/v8/v8/tree/master/test/mjsunit/compiler anything that starts with dead-
 
@Busata You have several options.
One would be to call the bar constructor on the new object
 
@BenjaminGruenbaum Yeah, but it can't remove the call in any case
 
@Cerbrus oh yeah, that should be args[i]
 
var baz = function() {
    bar.call(this);
    //rest of code
}
A different one would be to set the world property on bar's prototype, and have baz extend that prototype
 
Well, it could
 
8:14 AM
@copy why? It sounds unreasonable to you that it'll see it's doing nothing with the loop results?
It doesn't but it definitely could.
 
@BenjaminGruenbaum slice can be overwritten, so it's not easy. But yeah, definitely possible
 
@SecondRikudo thanks, will look into that
 
@Busata There's an excellent article about it on MDN
!!tell Busata mdn prototypical inheritence
No caprica?
 
@SecondRikudo hasn't been patched yet
 
@copy yes, you can "not optimize" if any native prototype function is overwritten anyway since that's rare and stupid.
 
8:17 AM
@SecondRikudo thanks! I always think I understand it, but when I actually have to do something with it ... :)
 
Stupid language designer
 
@Busata It's OK, you have to actually do it a few times to really get a feel for it :P
 
Bad language design != stupid language designer.
 
@BenjaminGruenbaum Right, it usually means stupid language designerS.
=P
 
@SecondRikudo go say that in the php room :D
 
8:18 AM
@BenjaminGruenbaum You got my hint :D
 
LOL
 
I'm hanging on the idea of calling it "accumulate"
 
@Neil wait, what're you doing again?
 
And also, that function hash thing was a real bomb once I explained what it actually means XD
 
@BenjaminGruenbaum I have a object holding result information from an operation, think of it like a regex matching operation
 
8:19 AM
@Neil are you talking about a Composite?
 
@BenjaminGruenbaum No
 
A parse tree?
 
@Retsam lol
> There have been twenty-three mass shootings in the United States since 1990, and the single unifying fact about all of these shootings is that all of the gunman were - without exception - wearing pants.
 
It's not a program design problem
Just trying to find a good verb to use for this action
 
Ok, you're just asking how you'd call an object holding a value?
 
8:21 AM
@BenjaminGruenbaum Hmm, I have my doubts that you're reading this
 
@SecondRikudo I think my favorite line from that article was:
> The link between pants and violence has been understood for centuries. Every major military in the world has made pants a part of their uniform, even for women. There is not a single army that wears short-shorts, boxers, ball gowns, or miniskirts into battle. It's pants. It's always pants. Horrible, blood-soaked murder pants.
4
 
@Neil when I said composite, you didn't like my name, you have a composite and an iterator over that.
 
@BenjaminGruenbaum You gave me a design pattern. I don't need a design pattern. I need a verb
Unless composite was the verb, in which case I think that's a horrible suggestion
 
8:36 AM
Compose
 
Drop that, it isn't. Compose is the one.
 
;)
I still don't think that fits
 
Hey guys I'm learning angular.js and running it on localhost but I can't seem to get it working? anything special I need to do aside from including the necessary source js files?
 
I have results that I want to combine with similar results. Their groups stack, but if either one has found something (or both), then the new merged result is considered found
I'm leaning towards accumulate
 
@bug56 Nope.
 
8:39 AM
Since I guess you could considerate an accumulation of results
 
Define 'not working'? Do you see errors in your console?
 
Yes, there are errors and nothing is evaluated (ie {{1+2}} is written literally?)
 
@Neil The convention in libraries is usually extend, although I might not 100% understand what you're trying to do.
@bug56 What errors?
 
@Neil you're welcome to invent your own terminology.
 
@SecondRikudo I'm following along codeschools tutorials and I'm getting this error : Uncaught Error: [$injector:modulerr] Failed to instantiate module store due to:
Error: [$injector:nomod] Module 'store' 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.
 
8:42 AM
@bug56 Can you create a jsfiddle.net that reproduces the problem?
 
@SecondRikudo I'll try hold on
 
!!summon 43899
 
@mikedidthis No bot/
 
@SecondRikudo more or less this : jsfiddle.net/sv5dzLma
 
I appreciate the suggestions
If it were evident to me, I think I would have already figured out how to call it
 
8:46 AM
in HTML / CSS / WebDesign, 3 mins ago, by Caprica Six
@mikedidthis And on this day, you shall paint eggs for a giant bunny.
 
I'll think on it some more
 
She livesssss
 
@BenjaminGruenbaum I'm not dead! Honest!
 
hmm?
!!slidepoop
 
8:49 AM
Mar 13 '13 at 1:40, by rlemon
(Random Fact, when rlemon was 13 he pooped on a slide. he isn't proud of it, but he felt it was time to confess. I'm sorry slide.)
 
yeah that's the legit caprica :P
 
@bug56 You don't want it onLoad
Also, you need to invoke that function.
(function() { console.log("stuff") }) is just a function. (function() { console.log("stuff"); })(); will actually invoke that function.
 
@SecondRikudo cool, thanks! What is the purpose of using angular as an argument, is it neccesarry?
 
scope
 
@bug56 Better scoping. It's considered a good practice.
Usually, you'd also pass window and document in.
(Although you have very little DOM manipulation with Angular in general)
 
8:56 AM
@SecondRikudo I never understood why... so why?
 
@AwalGarg That is actually a good question
@BenjaminGruenbaum to the rescue?
 
so as I understand, the app js file should call the function at the end, (as linking it does not initialize) and it should also pass angular as an argument to ensure proper scope?
 
@SecondRikudo :D
 
I often see (function($, window, document, undefined) { ...})(jQuery, window, document);
 
@AwalGarg why what?
@SecondRikudo oh, that's because of ancient browsers.
 
8:57 AM
2 mins ago, by Second Rikudo
Usually, you'd also pass window and document in.
 
In ancient browsers, you could easily override undefined.
 
o__O
 
Putting window and document in is defensive programming, I consider it stupid.
undefined, unlike null is not a literal but a global variable pointing to an undefined value, in older versions of the browsers you could do undefined = true - it's a detail you can safely forget though.
 
@BenjaminGruenbaum out of curiosity, those ancient browsers are ie5.5 and 6 right?
 

« first day (1444 days earlier)      last day (3502 days later) »