JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Jan 24, 2017 17:49
Does anyone know when the StackOverflow developer survey results come in?
Jan 24, 2017 17:47
rip stackoverflow
Jan 4, 2017 05:55
Is there a nodejs library that reads files, can seek, and keeps track of a position underneath the covers?
Jul 11, 2016 19:49
huh... Github is using a new font today
Nov 11, 2015 15:45
@JacqueGoupil the one & only!
Oct 15, 2015 15:42
Vaping cannabis flowers is fun
Oct 15, 2015 15:16
it it possible to have a UI that modifies the configuration?
Oct 15, 2015 15:12
@Nick I guess it might be, but json is used a lot across platforms, whereas ini tends to be a Windows-only thing
Oct 15, 2015 15:10
@Nick yes
Oct 15, 2015 15:07
just post the question stackoverflow :|
Oct 15, 2015 15:01
@jgr208 you can work together with @JacquesMarais
Oct 15, 2015 15:00
The P versus NP problem is a major unsolved problem in computer science. Informally, it asks whether every problem whose solution can be quickly verified by a computer can also be quickly solved by a computer. It was essentially first mentioned in a 1956 letter written by Kurt Gödel to John von Neumann. Gödel asked whether a certain NP-complete problem could be solved in quadratic or linear time. The precise statement of the P versus NP problem was introduced in 1971 by Stephen Cook in his seminal paper "The complexity of theorem proving procedures" and is considered by many to be the most important...
Oct 15, 2015 14:59
@JacquesMarais how about a library that solves p=np
Oct 15, 2015 14:56
@jgr208 hmm, perhaps you should create a question post on Stack Overflow
Oct 15, 2015 14:49
@jgr208 not sure what you mean...
Oct 15, 2015 14:42
@jgr208 you can use event listeners, stackoverflow.com/questions/5082165/…
Oct 15, 2015 14:40
@RoyiNamir or just use {{tb1 + tb2}} instead of {{tb3}}
Oct 15, 2015 14:40
@RoyiNamir you probably want to add an event to either watch tb1 & tb2, or use the ng-change event to update tb3 when either tb1 or tb2 changes, I think
Oct 15, 2015 14:36
@RoyiNamir read the error in the console: ReferenceError: praseInt is not defined
Oct 9, 2015 15:02
do people still say "dude"?
Oct 7, 2015 17:18
Anyone in here from Seattle? If so, check out SeattleJS meetup.com/seattlejs/events/220102661
Sep 30, 2015 19:11
@MadaraUchiha Free car wash!
Sep 30, 2015 16:22
what do you guys typically do when there's nothing else left in the current sprint?
Sep 25, 2015 16:34
Happy Friday, fellow javascripters
Sep 22, 2015 15:42
does git reset --hard also delete new files?
Sep 3, 2015 22:22
I usually just .gitignore my node_modules
Sep 2, 2015 21:31
and ramnode
 
Oct 15, 2015 14:55
or you can just do something like this: jsbin.com/jutoxuruko/1/edit?html,css,js,output
Oct 15, 2015 14:55
yeah
Oct 15, 2015 14:53
because the template "watches" for changes in the variables
Oct 15, 2015 14:52
the code is executed only one time, so even if you update the value, it won't matter?
Oct 15, 2015 14:51
hmm, not sure what you're asking
Oct 15, 2015 14:50
so tb3 will always be NaN
Oct 15, 2015 14:50
the code is executing before there is a value though
Oct 15, 2015 14:48
yeah, because it's happening before there is a value assigned to them
Oct 15, 2015 14:48
you can do {{parseInt(tb1)+ parseInt(tb2)}} just fine
Oct 15, 2015 14:47
in your example, you're setting tb3 = tb1 + tb2 once before there is a value assigned to either variable
Oct 15, 2015 14:47
because it automatically updates when there is a keypress
 
Sep 25, 2015 21:51
I'd try posting the entire ng-repeat code on the question and wait until someone really smart answers it haha
Sep 25, 2015 21:51
Hmm... I'm really not sure
Sep 25, 2015 21:37
And can you post your entire ng-repeat code on pastebin or something?
Sep 25, 2015 21:36
Do you have two variables named data? Since you're doing data.isNumber as well as !data.nodes[$index+1].isNumber
Sep 25, 2015 21:35
What is data.nodes?
Sep 25, 2015 21:32
Ohhh
Sep 25, 2015 21:31
is the <button> in an ng-repeat?
Sep 25, 2015 21:16
Does that help? It just looks to see if the current element is a number and the next element isn't a number
Sep 25, 2015 21:15
Not sure if this helps, but you could do this to select #5: jsfiddle.net/qfpyrcot/2 -- it checks to see if the current element is a number AND the next element is not a number. In the example, it puts a '>' right next to #5.
Sep 25, 2015 21:15
I posted an update ("Edit 2"). Could you check if the next element in the iteration isn't a number?
Sep 25, 2015 21:15
Hmm. I guess I just assumed OP was iterating over the array.