Apr
1
revised warning: templates not found /share/git-core/templates | fatal: Unable to find remote helper for 'https'
added 6 characters in body
Mar
28
comment Return AJAX promise's result with jQuery
"you can update a variable outside of the scope ..." that you can't do, the variable will always be undefined, see this question's example
Mar
28
comment Return AJAX promise's result with jQuery
@dystroy yeah I upvoted that ;) And yes, I should have clarify my question with "Can JavaScript do that?".
Mar
28
comment Return AJAX promise's result with jQuery
Yes, I get that, but I still don't understand why "it does not make sense to return anything from the function that you supply to done"? See my response to BenjaminGruenbaum, what if I need to manipulate the data outside the promise "context"?
Mar
28
comment Return AJAX promise's result with jQuery
@BenjaminGruenbaum with your solution, data is stuck inside a function. So if I need to manipulate it I have to do it inside then, not exactly what I need.
Mar
28
asked Return AJAX promise's result with jQuery
Mar
14
awarded Enthusiast
Mar
13
asked Highcharts pie donut with gradient
Mar
6
accepted multiple routes with differents params, calling the same ressource
Mar
5
revised multiple routes with differents params, calling the same ressource
added 143 characters in body
Mar
5
comment multiple routes with differents params, calling the same ressource
Yes, no I mean, forget my code, but when designing a RESTful API, is Peter's solution the way you would tackle this problem ? Retrieving user's data by :id or :username, do you think I should enable this feature ?
Mar
5
comment multiple routes with differents params, calling the same ressource
Thanks for your solution, it's working, but I'm wondering if a completely different workaround exist. I mean, at first, am I approaching the problem the right way? Is that a think to do? What would you really do if you wanted to achieve something like that?
Mar
5
comment multiple routes with differents params, calling the same ressource
Username are limited to 16 chars. whereas user_id is a mongoDB generated hash wish is 24 chars.
Mar
5
asked multiple routes with differents params, calling the same ressource
Mar
3
comment Mongoose returns undefined for an existing field
Can you provide the query you're doing?
Mar
3
revised Mongoose returns undefined for an existing field
deleted 6 characters in body
Mar
3
revised Mongoose returns undefined for an existing field
deleted 160 characters in body
Mar
3
revised Mongoose returns undefined for an existing field
added 101 characters in body
Mar
3
answered Mongoose returns undefined for an existing field
Mar
3
accepted Remove multiple documents and pass them to the callback
1 2 3 4 5