Elvis: But it looks liek you’d have to click expand a lot to get to the data
Elvis: That might be solvable with settings or something though
Cvetkovic: Say I want to use num.toLocaleString to format a currency. How can I get the user’s default currency? I currently use navigator.language to get their default Locale
Seykoski: You would have to write your own pretty printer for that
Colunga: Ah, so there’s nothing like navigator.currency
Bloyer: Hey there! :-/ need help with recursions :XXX
Mate: Havvy: See !recursion
Yerka: Http://jsfiddle.net/ea604hy4/
Proffit: I thought it should recursve the way I hardcoded at the bottom, but it uses different logic which I can’t see. how does it get 13?
Kalkman: Can somebody help me figure out in basic terms the algorithm for converting a recursive data structure into an mptt tree? the kind with lft and rght columns
Kalkman: The one diagrammed with the red arrows here: http://www.sitepoint.com/hierarchical-data-database-2/
Setser: Hey Hylle sorry for highlighting, are you around by any chances?
Kalkman: Let’s say I have {name: ‘Top a’, children: }, {name: ‘Top b’, children:.} and the children are populated with similar arrays
Swantek: RonRichie: why do you think the results should be like that
Genz: You’re basically just adding 1 over and over
Famulare: And you get 13 because n * 2 -1 I believe
Horridge: RonRichie: you only ever return 1 as an actual number
Youngblood: So your calculations like 7-1 + 7-2 never happen
Salton: Torkable well, because Im p***ing 7 and as it looks like it should do growBeanstalk7 – 1 which is 6 and growBeanstalk7 – 2 which is 5, then it should add together 6 + 5 so it results 11 and it gets returned to function and years become 11?
Gedeon: Let me try to figure out what you just said
Kalinoski: RonRichie growBeanstalk7 – 1 is not six
Tees: Because it makes two function calls that return 1
Roske: And each of those make two function calls
Kalinoski: It is growBeanstalk5 + growBeanstalk4
Kanta: Start with small numbers
Paulis: Hmmm don’t seem to get it
Dorenfeld: Because it makes two funciton calls that both return 1
Smithingell: Yeah it returns one when years is less of equal to 2 right?
Tambasco: Holy crap. whatever, let me think about it a bit more. it doesnt seem to make sense to me, thanks for trying though Torkable
Lecky: If you draw it out on a piece of paper, you’ll get a tree and it will all make sense
Defusco: Say I’m debugging in Firefox and I’m in a for loop – is there a way to just carry on to immediately after that for loop from the debugging session without writing an additional break point? I’m guessing not, just curious
Reineck: Baxx: nope, certainly would be convenient
Koong: But I dont see the sequence in which order these operations take place? lol to me it clearly looks like say we p*** 5 it looks like 5 – 1 + 5 – 2 = 7 and then function will be re-called with 7 as the argument, I can’t see how else it could play out?
Defusco: Zomg: damn :/ yeah that and ‘hang on back up a sec’ would be great
Reineck: Baxx: just need to do the extra click to set a new breakpoint :
Reineck: One feature I’ve occasionally missed is being able to move the point of execution arbitrarily
Reineck: The C# debugger in Visual Studio had it, you could drag and drop the execution marker to any line
Defusco: Zomg: oh yeah true – I’ve been setting them from the file, this debugging is new to me
Reineck: Ah, yeah you can just click on the line number to set a breakpoint
Reineck: No need to add debugger; everywhere
Defusco: Zomg: what so you wanted to go from line 45 in file92 you just click on it and it goes from there