Tagged Questions
0
votes
1answer
12 views
Grunt Globbing patterns
What is the pattern needed to achieve the following.
Match all the html file in the directory .tmp
Match all the html file in .tmp/views and all subdirectories of it (recursively to any depth)
...
0
votes
0answers
9 views
Authentication mechanisms for a AngularJS/NodeJS/RESTEasy+JBoss/LDAP stack
I'm looking for some authentication/security mechanisms or best practices on an application stack set up like this:
AngularJS front-end
NodeJS web server
RESTEasy backend running on JBoss AS 7
LDAP ...
0
votes
1answer
16 views
io.connect not working on local html page
I have an html page that needs to connect to a node.js server via socket.
The code works when in an html page that's hosted on my EC2 however, it's not working when I have it on an HTML page on my ...
0
votes
0answers
17 views
How to use forever-node with sudo command?
I have a server of flash-cross-domain-policy wrote in Java script node.js:
var net = require("net");
var flashPolicyServer = net.createServer(function (stream) {
stream.setTimeout(0);
...
1
vote
1answer
32 views
Javascript object comparison recursion broken
So it seems I've been scratching my head over this for the past few hours.. roughly around 6 hours now and I just can't seem to figure it out. I have looked at various questions/answers on SO but none ...
-1
votes
0answers
33 views
Is there a node.js promises library? [on hold]
is there a promises library which abstracts all of node.js's io stuff using promises ? I know that there is Q and using the builtin denodeify a node.js function can be converted on the fly but I'm ...
-1
votes
2answers
40 views
Callback function issue in Node Js?
I'm using node js and I have three layers in my code Controller, Service, DAO. Execution flow is from controller to DAO via Service and again control comes back from DAO to Controller. There are call ...
0
votes
1answer
9 views
dnode server->client direct call possible? node.js
I use dnode
I have read StackOverflow: Send message from server to client with dnode
and undersand
dnode uses a symmetric protocol so either side can define functions that the opposing side can ...
1
vote
0answers
29 views
Serving html and javascript through structured Express app
I am currently playing with Express and attempting to solve (what I believe should be) a trivial problem.
I've got the following directory structure:
|-config
|---config.js
|---routes.js
...
0
votes
1answer
45 views
What is the simplest modular way to add authentication using Javascript?
I am a web designer who is not familiar with backend programming and am currently facing the challenge of protecting some parts of a site's content. Ideally, I would like a solution that allows users ...
0
votes
1answer
18 views
async.waterfall returns only the resultset of function at array[0] index of array of functions - node js
The following code returns only the resultset of getpricingSummary
async.waterfall([
function(callback){
getpricingSummary(elementsParam, function(workloadinfo){
...
0
votes
0answers
47 views
Replacing JavaScript/PHP ajax request with node.js
I'm having a web application which is using PHP/MySQL pair. Now i like to replace only the AJAX requests to node.js to reduce the latency to less than 1 second. So when i googled about this, i came to ...
0
votes
0answers
20 views
writing crawling image with name to local server with node js
i am making a web crawler and i want to save my images in image directory of my project with their original name... let suppose after crawling i get two image where first time i get../logo.png and ...
0
votes
3answers
63 views
How to do string increment in Javascript(Node.js)?
In ruby,
"a".next [or] "a".succ # => "b"
"aa".next # => "ab"
"z".next # => "aa" # two a's after one z
How to it in Javascript?
Something like:
incr_str("aaa") ===> aab
...
0
votes
1answer
35 views
Override console.log (or any function in general): Is there a proper way to do this? [duplicate]
I find myself doing this quite often both on the browser and in node.js and it's about time I came up with a proper way to do this without debugging it for a while each time.
Here's what I'm ...