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.
1
vote
0answers
15 views
Can't broadcast to clients using Socket.IO
My node.js server has an interval setup to call a function called 'spawnItem' every 60 seconds. When this function is called, it executes this piece of code:
io.sockets.emit("spawn item", {x: 10, y: ...
0
votes
0answers
9 views
Node-highcharts module not found
I am trying out the node-highcharts library for making pngs of charts.
My issue is as I have installed then module and run the very basic nodeJS highchart code, I get the error that it cant find the ...
3
votes
0answers
13 views
Should I use process.nextTick or setImmediate for asynchronous iteration?
I'm working on a JavaScript library that provides, among other things, map/reduce functions on sequences that can be iterated asynchronously.
A helpful soul on GitHub suggested that for Node.js, I ...
0
votes
0answers
11 views
Auto create CSS from list of fonts, then compile each to individual SWF
I am new to PowerShell and other executables, and I am wondering how I would do the following:
We have 500+ fonts that I need to create CSS files for individually and then compile that CSS into ...
1
vote
2answers
26 views
Get online users - node.js vs php+mysql
I am developing a web application for a client that requires me to know the names of all users currently online. The entire application is built in php with jQuery used for the front end delivery. ...
0
votes
1answer
16 views
How do I make a simple form GET and POST using Express and Mongo?
I'm trying to follow this Express.js and MongoDB tutorial with the difference of making my index page have a form where you save an email address.
This is the main code so far:
emailprovider.js
var ...
0
votes
1answer
8 views
require().server. Require with a dot in the statement
var WebSocketServer = require('websocket').server;
I came across this in some NodeJS code and I don't believe I have ever seen a require with a dot in the statement like this ever ...
-1
votes
2answers
16 views
Node module.exports doen't work?
I'm making node program. I want to access app.js parameter from child. I used module.exports in parent and module.parent.exports in child. But it didn't work. How can I fix it?
(/app.js)
var app = ...
0
votes
1answer
31 views
Can I send commands using node.js?
I'm running a node.js server using Terminal (Mac) and want to be able to emit messages to the client via the command line. Is this possible? I could code the messages part of it no problem, it's more ...
0
votes
0answers
4 views
Transform stream and use of 'unshift'
I'm having a problem with streams2 transform. I have a stream which reads from a file and transforms the csv data to json. the transform works fine but at present if I have an incomplete chunk of data ...
0
votes
2answers
13 views
Jade variable attribute names
I have a variable called current which is used to set the checked value of an html input
so current can be either '' (blank) or checked=true
Since you cant set HTML attributes to false, I can't do ...
0
votes
1answer
9 views
Access mongoose non-schema values in Jade
I have a really weird problem in Jade where I cannot access the values that aren't defined in the Schema.
I'm using strict:false on my schema and saving values to it. My data looks like this:
{
...
0
votes
0answers
14 views
Node.js run as a service not working. it just starts then stops
Trying to a run Node.js as a Windows service. I have used nssm.exe to create the service, and it starts then immediately stops.
The error - "Could not resume ListenerNodeJS Service on Local ...
0
votes
0answers
11 views
Stackexchange API Implicit vs Explicit
This question is inspired by the documentation on the stackexchange API (http://api.stackexchange.com/docs/authentication) but I think is probably more widely applicable to OAUTH 2.0 in general.
My ...
0
votes
2answers
17 views
Run exports.someFunction assignment from a callback
I have set a route in Express looking like this:
app.get('/api/:type/:id', api.getItemById);
The function api.getItemById is inside api module in routes. But inside api module I have to run a ...