Grieme: Well, it is not in prohobo’s sentence, that is true.
Tutton: Why does this function return nothing?
Gackle: Let me rephrase that, why is the variable “x” empty?
Turkowski: Because x is local to the inner function
Beraun: Mackan90096 getS doesn’t return anything because there are no return statements in that function
Grudem: It returns undefined, actually.
Meuser: Okay, I changed it to http://hastebin.com/****ehefay.js
Deisher: Mackan90096: Define X just in the beginning of getS
Coran: Now x doesn’t get anything added to it from the inner function
Lausier: Says a guy with the name GreenDog
Stapp: Your first haste started with gay, the second with ****.
Bracewell: Prohobo the links to hastebin
Azad: Anyhow, Chamnanphony, I did check my second haste
Overcast: Oh, btw, random question – do you guys use jsdoc
Minick: Add a comma between did and check
Quale: I’m using a jQuery plugin, it’s basically like a Jigsaw Plugin which chops up a image into smaller pieces. It seems to use a image X & Y coordinates to locate the “smaller pieces images”, do you guys have any idea how I could resize the smaller pieces image to a even smaller size but with the same image?
Isbill: Okay, the for loop does not add to the variable “x”, why?
Hetcher: This is the plugin https://github.com/PickAndMix93/Jigsaw2.0/blob/master/JS/jquery.snap-puzzle.js
Loron: This is my code: http://hastebin.com/metehateju.xml
Hitsman: Mackan90096: Is it really entering the loop?
Kumro: I’m using a jQuery plugin, it’s basically like a Jigsaw Plugin which chops up a image into smaller pieces. It seems to use a image X & Y coordinates to locate the “smaller pieces images”, do you guys have any idea how I could resize the smaller pieces image to a even smaller size but with the same image?
Cocking: This is the plugin https://github.com/PickAndMix93/Jigsaw2.0/blob/master/JS/jquery.snap-puzzle.js
Lovorn: Chamnanphony: I think sp
Frymoyer: Let me add some console logs
Oki: Do those console.log. print something?
Baskins: Also, what is the full output you are getting?
Petts: There’s the console.logi
Bastow: So it is entering the loop
Staub: Aren’t you overriding that globa x somewhere outside getS?
Wyke: Just make it local to getS anyway, and show us the full output.
Mcbain: My full code is here http://hastebin.com/uyuyedofur.js
Nohe: Add a console.log the line before res.sendgetS and show us the output.
Flanagin: Chamnanphony: http://puu.sh/kde3M/f7667662b7.png
Wender: I knew a guy named Lorenzo B***o
Warshaw: Mackan90096: Did you stop and restart the node app?
Goick: It never hurts to check
Liberty: GetS returns x before the other stuff happens, because that stuff is async I/O.
Rigsbee: You need a promisse or something like that.
Jurek: Yeah it’s like a Promise but with an extra ‘s’
Hoffmeyer: I don’t know if node has promises by default or a package is needed.
Barill: Node 0.12 has native Promise support
Villani: My internet decided to die on me
Glauser: How do I add one of these “promises”
Dehan: I’m not sure how that is done in node. Let me see if I find out.
Perdew: Otherwise I’ll just ask in the node channel FernandoB***o
Beachum: Mackan90096: You’ll have to use a package.
Childers: Chamnanphony: A module? That’s fine
Vollmering: I found one by the name of “q”
Rouzzo: The guys in #node.js recommended bluebird over q.