0
votes
0answers
20 views
How to remove unwanted keys and key values
Here is the original JSON object I am retrieving from my CouchDB database:
{
"total_rows": 3,
"offset": 0,
"rows": [
{
"id": "1e8fe199d4e761b71bb8920eb3003db2",
"key": null,
...
0
votes
0answers
13 views
Is there any public benchmark of web frameworks by scalability?
For example, one could test how many simultaneous users a "Hello World" application from different frameworks can stand. This is the only benchmark I found and it does not test for scalability. Is ...
3
votes
2answers
39 views
Is there a framework or method that lets the server and client easily share variables?
I have variables stored in json that the client needs to read but I don't want the user to have to download them all due to the huge file size. Is there a nodejs framework that makes it relatively ...
0
votes
0answers
31 views
How to make multiple calls to nodejs from javascript/jquery/webpage
I have written a nodejs plugin in C++ and I am trying to call it from within a locally hosted webpage with jQuery. I have read that I can't make a direct call to nodejs because of the same origin ...
1
vote
0answers
13 views
node.js socket.io express live page view counter for each page currently accessed on 1 instance
I'm using working code snippets from Christophe Coenraets and want to elaborate it into creating an array of msg.pageUrl to live view count each accessed page in one node instance
Instead of ...
0
votes
0answers
22 views
Basic AI in Node.js/Socket.IO
I'm creating a small game in Node.js/Socket.IO and need some advice on creating the AI. The code I have below is a real quick example I came up with but it's so fast the player doesn't even see the ...
0
votes
1answer
20 views
Developing a real time collaborative drawing system
I am interested in making a realtime collaborative drawing system similar to http://flockdraw.com/ . However I would like to only use open source tools (flockdraw uses flash and also limits the ...
1
vote
1answer
10 views
Is events.EventEmitter.call(this) required when creating a custom EventEmitter?
There are a lot of example not using events.EventEmitter.call(this) in custom event emitter constructors, while other are using it (official documentation):
var events = require('events')
, util ...
0
votes
2answers
28 views
Does nodejs/V8 store compiled machine code anywhere on disk?
Edit: as @dystroy notes below, node uses machine code directly, not bytecode.
I do a lot of Python coding, and there's always bytecode lying around in .pyc files.
I was wondering if node stores ...
0
votes
1answer
32 views
Using require.js module in node AND browser
I would like to create a (require.js style) AMD module that can be used in the browser and in node. What is the best way to do this? I keep seeing references to r.js, but still not 100% sure on how ...
0
votes
1answer
20 views
Async fluent javascript (node) interface (using deferreds)
What is the best way to build fluent interface in Javascript (node.js) with
obj.function1().function2().function3();
where functions are asynchronous methods?
There is a module called chainsaw, ...
0
votes
1answer
31 views
Using javascript and node.js how to post the content to the text file through ajax
Using javascript and node.js how to post the content to the text file through ajax.
<html>
<body>
<input type="button" value="Click Me" onclick="postContent()">
...
0
votes
0answers
15 views
Dynamic complete in js-comint REPL
I'm using js-comint to get the Node.js shell running in Emacs. It's wonderful, because you can send expressions from another buffer you're editing. However, in the comint REPL, it doesn't complete the ...
1
vote
1answer
18 views
grunt-contrib-concat: how to use option “process”
I am writing build system using Grunt for a Javascript library (Widget) that would concatenate, minify and package the files for distribution.
In the concatenation step I wanted to insert current ...
0
votes
1answer
18 views
TypeError on static method of mongoose model
I'm using node.js along with the MongoDb driver Mongoose 3.6.1. This is my schema definition:
models/user.js
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var userSchema = new ...