Node.js is an event-based, asynchronous I/O framework that uses Google's V8 JavaScript engine. Node.js is commonly used for heavy client-server JavaScript applications.
0
votes
0answers
7 views
recursive find function calls then merge result
i cant merge the result of each FIND functions in this code :
this.result = [];
_products.find().exec(function (err,products) {
this.products = products;
var productsCollection = ...
0
votes
0answers
11 views
How to get an Express static file server to handle Windows backslashes correctly?
I've written a vanilla server (using Node.js and Express) to browse files and directories. On a Windows machine, it gets confused by the backslashes, and quickly breaks by providing invalid/broken ...
1
vote
0answers
28 views
Memory Leak Bug in V8?
With node.js .10.2 I ran into a memory leak that (kinda) makes sense but I believe its a bug. What do you guys think?
function Go(foo)
{
var someArray = [];
fillArrayWithLotsOfStuff(someArray);
...
0
votes
0answers
23 views
Writing JPG file not working
I'm trying to save a JPG file using appjs.. The code I use is from the sample here. As you can see, I simply passed the fileContent into nodejs's writeFile(). It works, but the resulting JPG image ...
0
votes
1answer
16 views
Write in a text file without overwriting in fs node js
How I can add text in my file but without overwriting the old text. I use the module fs (node js)
I tried this code but it doesn't work.
fs.writeFileSync("file.txt", 'Text', "UTF-8",{'flags': ...
0
votes
0answers
6 views
correct way to implement socket.io to listen for events
i have this code, which basically pulls a card list from trello and generates a json file
server.coffee
getcards = require "./utils/getcards"
unless process.env.NODE_ENV?
process.env.NODE_ENV = ...
0
votes
0answers
7 views
multiple child_process with node.js / socket.io
This is more of a design question rather than implementation but I am kind of wondering if I can design something like this. I have an interactive app (similar to python shell). I want to host a ...
0
votes
0answers
3 views
Bower error tunneling socket could not be established, cause=Parse Error
I'm behind a corporate proxy, I've set my HTTP_PROXY and HTTPS_PROXY env var to
http://username:password@proxyname:port/
doing console.log(process.env) output these var correctly. npm is working, ...
1
vote
0answers
8 views
How can I manually pass a SoundCloud track duration to HTML5 audio?
I'm currently using a stripped-down version of Canvas.fm to convert SoundCloud mp3 streams into ogg streams using Node and ffmpeg, to support the audio element in ogg-playing browsers like Firefox. My ...
0
votes
1answer
9 views
How to disconnect a socket once the socket.emit is done
I am using socket.io-java-client for connecting my java class on the server side to node.js and emit some events.
since I am running this on the server I dont want the socket thread to be running ...
1
vote
1answer
12 views
How to check error in omegle integration with nodejs (UNHANDLED EXCEPTION)?
I am using omegle integration in nodejs, and I've got a program which connects to an omegle client, receives his messages and sends it back as a repeater(just to check proper working of connection). ...
1
vote
0answers
36 views
install nodejs socketio package
I want to install nodej socketio , I have did any way to install , but not working , I install from tar.gz in this way , in all ways , it stop at
pedram@ubuntu:/var/tmp$ npm install socketio.tar.gz
...
2
votes
1answer
18 views
How to use nodejs cuid module?
I am trying to generate a token using cuid module located at https://github.com/dilvie/cuid
When I try the following:
require('cuid');
var test = cuid();
console.log(test);
I get:
var test = ...
0
votes
0answers
11 views
Windows 8 store app with c# and socket.io client
I want to connect my Windows 8 store app with a node.js socket.io server. Is there any library for c# and socket.io?
0
votes
0answers
12 views
node.js, pg, postgresql and insert queries (app hangs)
I have the following simple node application for data insertion into postgres database:
var pg = require('pg');
var dbUrl = 'tcp://user:psw@localhost:5432/test-db';
pg.connect(dbUrl, function(err, ...