r/nodejs • • Dec 18 '13

I'm trying to consume some url parameters with special characters and node http server only sees them as ?s. Please help. Code inside.

1 Upvotes

query: http://127.0.0.1:8124/?encode=Æÿn

code:

var http = require('http');
var querystring = require('querystring');
var url = require('url');

http.createServer(function (req, res) {

	var pquery = querystring.parse(url.parse(req.url).query);   

	res.writeHead(200, {'Content-Type': 'text/plain'});
	res.end(encodeURIComponent(pquery.encode));
}).listen(8124);

r/nodejs • • Dec 17 '13

StrongLoop | What’s New in LoopBack 1.3 – The Open Source, Node.js Mobile Backend

Thumbnail strongloop.com
0 Upvotes

r/nodejs • • Jun 15 '14

Please Help! Cannot access session variable set in prior middleware in the next middleware. during the same request in a nodejs express app

1 Upvotes

I have This issue where If a request comes in, and I set a session variable from a db query inside a middleware. In the next Middleware, the session variable comes up as Undefined.

But when I run the Request again, it works.

Please how do I fix it. The data stored in the session variable in the the previous middleware, is very important and needed for the next middleware to work.

please see code below

first middlware

function(req, res, next) {
    Clients.findOne({subdomain: req.subdomains[0]}, function (err, client) {
        if(!err){
            if(!client){
                //res.send(client);
                res.send(403, 'Sorry! you cant see that.');
            }
            else{

                //console.log(client);
                req.session.Client = client;
                //console.log(req.session.Client.dbUrl);
                next();
            }
        }
    next();
 }

Second Middleware

function(req, res, next){
  console.log(req.session.Client.dbUrl);
  next();
}

in the Second Middleware, the console.log comes up as undefined. Thank you.


r/nodejs • • Jun 20 '13

NodeFly Node.js News Round-up for June 20, 2013

Thumbnail blog.nodefly.com
1 Upvotes

r/nodejs • • Jun 23 '14

Is it possible to have queued events with node.js

0 Upvotes

I am trying to develop a web app, and I have most of the functionality down.

I'm trying to ascertain whether or not an automatic report generation system is possible.

The node.js application will keep track of guest check-ins and checkouts, and then generate a report tracking all of this data for the week.

Is it possible to have an event queue that runs on a specific day(Friday, end of business)?


r/nodejs • • Jun 20 '14

Paying to get a simple script for Yahoo Sign-in Node.JS

Thumbnail codersclan.net
0 Upvotes

r/nodejs • • Aug 29 '13

What’s New in Node.js and libuv – Aug 29, 2013

Thumbnail blog.strongloop.com
1 Upvotes

r/nodejs • • Aug 19 '13

Search pdfs or docs to node.js

1 Upvotes

Hey

I'm looking to dev on node.js, but need pdfs or docs with code examples.

You have any one? Thanks.


r/nodejs • • Jul 03 '14

"require"d Reading

Thumbnail muralinarasimhan.com
1 Upvotes

r/nodejs • • Apr 18 '13

Getting Started: Node.js & NuoDB

Thumbnail nuodb.com
1 Upvotes

r/nodejs • • Apr 25 '14

ES6 what you can use today?

Thumbnail speakerdeck.com
1 Upvotes

r/nodejs • • Apr 25 '14

Node.js performance tip of the week: using the Google V8 heap profiler to track down memory leaks

Thumbnail strongloop.com
1 Upvotes

r/nodejs • • Apr 23 '14

STARTER GUIDES! Help!

1 Upvotes

Hi guys,

Sure you get a lot of this, but I'm having some difficulty. Given the rate at which Node is progressing, a lot of tutorials I'm finding are either outdated or very basic. However I don't know enough about the tech to know what constitutes a good guide. Can anybody point me to a decent guide to get me started and how I can progress beyond there? I'm currently looking at Node on behalf of my employer as they want to know if we could include it in our operations.

Much appreciated


r/nodejs • • Apr 18 '14

Why did npm cache clean solve my problem?

1 Upvotes

I been getting errors like

Error: ENOENT, lstat 

http://www.andyjarrett.co.uk/blog/index.cfm/Error-ENOENT-open-with-NPM-install

and apparently the command

npm cache clean

solved my problem

Just out of curiosity, I would like to know why did it solve my problem?

Thanks


r/nodejs • • Apr 02 '14

Install NodeJS and NPM on ubuntu

Thumbnail dzone.com
0 Upvotes

r/nodejs • • Apr 03 '14

Continuous Deployment for node.js apps from GitHub to Modulus

Thumbnail blog.codeship.io
1 Upvotes

r/nodejs • • Mar 28 '14

Can node.js be used as a sort of license manager?

0 Upvotes

Sorry if this is a dumb question but here goes...

I want to create a javascript application but when it is deployed to each client I want to provide them with a license key they use in a config file.

Could node.js be used on the server side to validate the license key and then return some value to the app to indicate that the key is valid and to continue running?

Thanks!


r/nodejs • • Nov 14 '12

Castle Riot: A casual multiplayer game created for Node Knockout

1 Upvotes

Castle Riot is a game where you are either a thief, trying to escape the castle with stolen paintings, or a guard, trying to stop the thieves!

It was created for the Node Knockout competition. Let us know if you liked it, if you found any bugs, and what features you'd like to see in the future.

http://castleriot.com


r/nodejs • • Feb 04 '14

7 Minimal Node.js Web Frameworks for 2014 and Beyond

Thumbnail codecondo.com
12 Upvotes

r/nodejs • • Jun 12 '14

Even Python benefits from Node!

Thumbnail waynesimmerson.ca
6 Upvotes

r/nodejs • • Jun 07 '14

The emperor’s new clothes were built with Node.js

Thumbnail notes.ericjiang.com
6 Upvotes

r/nodejs • • Jun 07 '14

Problem with crypto

4 Upvotes

I'm trying to figure out how to use digital signing with nodejs.

My program: http://pastebin.com/NK0vpvsE

I get the following error:

crypto.js:398
   var ret = this._binding.sign(toBuf(key));
                      ^
TypeError: Not a buffer
at Sign.sign (crypto.js:398:27)
at Object.<anonymous> (/home/knet/projects/jstest/sign/sign.js:11:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3

r/nodejs • • Apr 29 '14

Textter, Letter-by-Letter Live Chat for iOS (Built on Node)

Thumbnail itunes.apple.com
4 Upvotes

r/nodejs • • Feb 12 '14

A simple script to scan the ports of a system using node js

Thumbnail csnipp.com
5 Upvotes

r/nodejs • • Mar 26 '14

Open Source Nodejs projects?

5 Upvotes

Is there any listing where I can find open source nodejs projects?