0
votes
0answers
9 views
how to insert an attachment in a timeline using google-api-nodejs-client?
I am trying the Google Glass Mirror APIs now. My test app is a simple node.js/express server with googleapis (https://github.com/google/google-api-nodejs-client).
So far I could do almost all the ...
1
vote
3answers
52 views
Join thread in JavaScript
Probably asked before, but after the serious searching I'm still not able to find a proper solution. Please consider something like this:
function compute() {
asyncCall(args, function(err, result) ...
1
vote
2answers
20 views
Jade lang in a regular web app without node
Is it possible to use Jade in a regular web app without running on Node js? The question may sound crazy as Jade engine is written in node but wanted to find out if it can can be used oustide of ...
0
votes
1answer
12 views
crypto.createCipheriv -> cipher.update + cipher.final does not return a Buffer?
I create a cipher passing two buffers. buf1 is they key, a 32 bytes buffer, and buf2, which is the IV, is also a 32 bytes buffer that I slice to only use 16 bytes. Documentation says that ...
0
votes
0answers
13 views
Encode MPEG Movie via Javascript/Webbrowser?
I have created a script in JS which creates video frames as separate images, which I would like to encode to a video format (eg. MPEG-4). What would be the best way to do that? I considered using ...
0
votes
1answer
23 views
Cannot find module in Node.js
I have folowing directory structure:
--app
-- test
-- server.js
-- app.js
I try to call function in app.js which exports from server.js, i do:
var server = require("test/server");
But ...
0
votes
0answers
30 views
Is there a JavaScript platform with plugins and themes ( similar to WordPress )? [closed]
Do you know if there is a JavaScript based platform/framework that can be extended with plugins and themes?
I'm looking for features that are similar to WordPress or Django namely:
Free Admin ...
0
votes
3answers
49 views
JavaScript variables hoisting in nodejs/async
In the next example I don't have access to variable "locals" inside the functions "fetcher", "parser" and "saveToDb".
var parser = require('parser.js');
var fetcher = require('fetcher.js');
var ...
1
vote
1answer
26 views
How can I make a Grunt task fail if one of its sub tasks fail?
I have a build task in grunt, which looks like this:
grunt.registerTask("build", ["jshint", "uglify"]);
The problem is that the uglify task runs even if the jshint task fails, how can I make the ...
0
votes
1answer
22 views
async module with c++ v8 for node js,error associated with the types in the structure
I am writing asynchronous module, but I can not pass an array structure. Please help. That's the error appears. How to avoid it?
error C2440: '=' : cannot convert from 'v8::Handle' to 'v8::Array *'
...
1
vote
1answer
42 views
Bash console in browser
I need to connect the browser with the bash console using NodeJS.
Is there any node modules that do this? I don't want to reinvent the wheel, but if there aren't I will build one. I am sure that the ...
0
votes
0answers
32 views
How to download a pdf file through javascript?
My javascript code makes the following AJAX request to my node.js server:
var url = '/node/download';
var downloadRequest = new goog.net.XhrIo();
downloadRequest.headers.set('content-type', ...
1
vote
1answer
40 views
How do I use Node.js to send an email every 10 seconds?
I'm not sure what's the best way to add a delay of 10 seconds.
setTimeouts don't work, I'm not sure...
In python, I'm used to doing "time.sleep"
I'm not asking for how to send an email. I'm asking ...
0
votes
1answer
24 views
How to send a downloadable pdf to javascript client via node.js?
I am working on a project where a pdf is dynamically created at the node server and needs to be sent to the javascript client where it should open a download prompt on the browser.
I have created the ...
1
vote
2answers
24 views
What is NODE_ENV in Express?
var app = express();
app.set('views',settings.c.WEB_PATH + '/public/templates');
app.set('view engine','ejs');
app.configure(function(){
app.use(express.favicon());
...