« first day (77 days earlier)   

12:36 AM
0
Q: Uncaught node.js Error, undefined symbol: _ZN2v811HandleScopeC1Ev

ManjunathI am trying to use PouchDB with node-webkit. Which inturn is a node_module. What I could understand so far is that node-gyp is probably not compatible, trying to load the 3rd party node_modules(PouchDB). note: I am also using nodejs virtualenv for node-webkit. when I use var PouchDB = require(...

 
12:48 AM
0
Q: Output not coming in Nodejitsu

user2672180I have successfully installed nodejitstu and uploaded my node script using jitsu deploy. In jitsu logs it is confirming that http server is up. if i am trying to listen to the address provided by jitsu nothing is displayed where as local server is working just fine. there is no error so how do i ...

 
1:06 AM
-1
Q: Is it possible PHP and Nodejs work together

user256009I'm having trouble making nodejs and php work together for running a websocket I asked here as well but yeah somehow with the help of our fellow member I managed to run my php page using node thanks to them but the problem is the css rule and images are broken.. Now some of you might be asking ...

 
1:18 AM
0
Q: Image Truncated or corrupted ajax json

user3901160I am sending ajax request anf getiing json response which is fine. In Json response i am getting image url. Now when on ajax sucess i am convertion json response into html, trying to append html into div. it give me error.Error is image Corrupt or Truncated with image url with image url. When i...

 
1:36 AM
0
Q: Accessing data across collections in Mongoose Models

ZaneI just started using Mongoose just this past week and have ran into a bit of a snag. I currently have three Mongoose Models shown below and as you can see the Sensor model has this value called "allowed_users" which contains two strings 'id_magicsuggest' and 'id'. 'id' in this case actually refer...

 
2:12 AM
0
Q: Choose programming languages for me

quangson91I'm android developer.(1.5years). Now I want to go to next language. It should help me for create website & mobile service. I consider some languages: python. php. java (with spring framework). ruby (with rails). node.js. Then finally I want to get a jobs as freelancer. My team is small and k...

 
2:27 AM
0
Q: Using mongodb for views on a page with express, when should I initialize it?

bob_cobbTrying to figure out when I should initialize mongodb considering I'm only inserting a new entry in a collection on page view with my express app. Should I open the connection upon when my application starts in app.js, or within my view method inside submission.js? e.g. submission.js var mong...

 
3:14 AM
0
Q: npm - ENOENT, open <current_dir>/null

Connor LeechI'm running ubuntu 12.04 and my npm stopped working: $ npm cache clean Error: ENOENT, open '/home/jasonshark/null' I have npm 1.4.21 and node 0.10.30 Whenever I try to do anything with the npm I get null after the dir I'm in. what's going on?

 
3:37 AM
0
Q: Is it possible to keep a session (and session cookie) from expiring via socketio?

Terminal8I can apparently access the session inside a socketio function: socket.on('sendmessage', function(message) { sessionStore.get(socket.handshake.sessionId, function(error, session) { console.log(session); //Displays the session contents as expected. } }); But if I try to, say, t...

 
3:49 AM
0
Q: How to properly initialize documents in mongoose collection

igorauadPlease, correct me if my design is not recommended: I have a model for blog posts with a field "category". I want the user to be able to type the category (with typeahead) and, if the category isn't there, the user would be able to create it. However, in order to prevent unorganized entries, I w...

0
Q: understanding http.get request in nodejs

obelusI'm trying to understand how http.get is being called here. So here is a sample code I'm experimenting with: var http = require('http'); var urls = ['http://www.google.com', 'http://www.yahoo.com', 'http://www.cnn.com'] for (i = 0; i < 3; i++ ){ url = urls[i] cons...

 
4:50 AM
0
Q: Retrieving/Posting Images From MongoDB (mongoose)

user3851102I've been trying to work with images in mongodb for the past while now. Every where I keep looking just says use GridFS due to the 16mb size restraint per document. However, each document Id like to store is <16mb. I currently stored it like this var testChamp = new Champion ({ name: "Aa...

0
Q: Convert copy-and-pasted XLS + CSV + HTML Table to JSON in Node or Javscript

JascinationI've seen a lot of similar questions but none of the Node.js XML converters have worked for me at all. They've all garbled the data I've inputted and have gotten the parameters completely incorrect. I'm trying to create something similar to this: http://convertcsv.com/csv-to-json.htm Basically...

 
5:13 AM
0
Q: Node scaffolding program execute git init, then have warning on CRLF will be replaced by LF on gitignore files

MMAI started an open source project with node.js. User could install the program as a global executable. When user uses the program to scaffold a new set of files in a generated folder, it will initialize a new git repository at the very last step of the scaffolding. Here is the problem in the git ...

 
 
2 hours later…
6:48 AM
3
Q: Intermittent 502 bad gateway error(using nginx,nodejs,mongodb)

Shobhit MishraWe are using nodejs , expressjs and mongodb(replicaset) andgetting intermittent 502 bad gateway error. pm2 logs is unable to log error though nginx access.log is showing recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.xxx, serve...

 
7:08 AM
0
Q: Node JS URL issue

user3860909I am developing WEB app with an Angular and Node js, I will start my app by hitting localhost in the web page am having one href link after clicking that link the url is changing to localhost/#/active , Here the problem occurs after that if i refresh the page means the url remains same in localho...

0
Q: Express 4.7.2 render views

a77icu5Apparently in Express 4.7.2 render does not explicit ends the execution, that means: on Express 4.2 res.render('path/to/view'); res.render('path/to/view'); Render display the first view and ends the execution. on Express 4.7.2 res.render('path/to/view'); res.render('path/to/view'); Throws...

0
Q: npm install bower using -g vs --save-dev

Eric BI'm new to node and using npm to both do some node, angular and Express tutorials. I have used bower before in a tutorial. I'm pretty sure I have installed it using -g already as when i run the bower -v command I get back 1.3.3 I am to understand that installing it using -g means, Install this g...

 
7:24 AM
0
Q: ExpressJS/AngularJS : Converting JSON Object to String

user531023I'm struggling with something that might be very easy, but hours of searching on Stackoverlow haven't helped. I'm using Sir Trevor with MEANJS. Sir Trevor applies itself against a textarea field and saves its content as a JSON string. Sir Trevor is saving its content to a field 'Content', whic...

 
7:36 AM
0
Q: nginx failing to proxy a nodejs restful api framework

htellezThis is my case. I have an RESTful API relying on nodejs and restify. It is being served on port 8989. I have nginx listening to port 444 and i have a proxy pass like this one location /api/ { proxy_pass http://localhost:8989; } So all the API services are redirected to ...

 
 
1 hour later…
8:36 AM
0
Q: Node JS best practices for static string mappers

user2867106I am running a Node JS app (Sails JS, but shouldn't matter) and MongoDB (also shouldn't matter). I have a database model that the WebApp saves many instances of it. For simplicity, let us take a UserActivityHistory model example (the example is not my real case, so nevermind the logic). One of ...

 
8:48 AM
0
Q: How to service instance from module [Angular]

dev.mraji have some module defined and services too with that module like below var services=angular.module('app.services', []); services.factory('ApiService', function($http,$cookies,UserService){ var dataFactory = {}; dataFactory.request=function(url,data,next){ return "H...

0
Q: nodejs/windows Error: ENOENT, stat 'C:\Users\RT\AppData\Roaming\npm'

tryaskoI have windows 7 32bit. I installed latest nodejs 32 bit. When I try run the command "npm install jquery" I get error "Error: ENOENT, stat 'C:\Users\RT\AppData\Roaming\npm". How resolve it?

 
9:11 AM
0
Q: req.session: Cannot call method 'regenerate' of undefined

JVerstryIn a node.js application, I receive a request without a session, which triggers an error: C:\... \LoginRegister.js:324 req.session.regenerate(function () { ^ TypeError: Cannot call method 'regenerate' of undefined Yet, from another SO question, I thought requests al...

0
Q: Error: This socket has been ended by the other party

user3860909Am deploying one node js project in a linux evniroment everything is going fine ,but after 12 to 24 hours its throwing this error and app is not working ?? Error: This socket has been ended by the other party at Socket.writeAfterFIN [as write] (net.js:275:12) at Protocol.<ano...

 
9:52 AM
0
Q: Globally instaling packages doesn't work (node.js, npm)

qwertyFor example I installed express with global (-g) parameter. In node.js/node_modules folder express doesn't exists. I tried to install it without global parameter and it works perfectly. How to install it globally? Thanks.

 
10:06 AM
0
Q: Can't get to localhost:3000 and welcome to express

NiveditaI have just started learning node.js and I have been following this tutorial. I did all the things mentioned there but even after writing npm start I couldn't go to the "welcome to express" page. I have attached the screenshot with the errors I am getting. I googled a lot of things but couldn't ...

 
10:23 AM
0
Q: Rendering page asynchronously issue

user3828771I'm trying to render a page via something similar to this: var content = ''; db.query(imageQuery,function(images){ content += images; }); db.query(userQuery,function(users){ content += users; }); response.end('<div id="page">'+content+'</div>'); Unfortunately, c...

0
Q: coreMIDI and NodeJS

bvlI've installed coreMIDI following this: sudo npm install -g coremidi The installation was successful, but I don't understand how to use it using node.js This is the first line of my code: var coremidi = require('coremidi')(); But the output is: Error: Cannot find module 'coremidi' at Func...

 
10:42 AM
0
Q: libphonenumber node.js formats number to intl format even if it is invalid

mandeep_m91I am using the libphonenumber library for node.js In the google demo for this library, if I enter an invalid phone number, the intl format is not populated. But when I try to parse an invalid number via node.js library, it creates the intl string representation irrespective of whether the number...

 
11:05 AM
0
Q: chef cookbook cannot run sqllocaldb with execute resource

Philip StirpeHave been struggling with this cookbook for a while. I am trying to install a number of resources including the Azure SDK onto a Windows Server 2012 R2 instance. Initially I received the following error in the stacktrace: Generated at 2014-07-01 14:59:23 +0000 Mixlib::ShellOut::ShellCommandFai...

 
11:23 AM
0
Q: Router in Node Express 4

huggieThis is a question on how router is handled underneath. If I have router: var router = express.Router(); router.get('/', function(req, res) { res.end('router'); }); app.use('/', router); If I've fetch anywhere other than http://localhost/, say http://localhost/whatever I'll get a Cannot GE...

0
Q: how to store and retrieve data in anguar js?

user3703527can you please tell me how to store data permantly (example local storage)and retrieve data .I want to store data so that I get again .I am doing client side programing ? I google it it say there is persistance.js will do that ..can we use that ?I am try to make a simple example to store data but...

 
11:42 AM
0
Q: Does the case for not including Node modules in version control also apply to Composer packages?

SusanIn doing research on whether Node's node_modules should be checked into your version control repository, the most recent consensus seems to be that you should include it for applications you deploy. Sources: Check in node_modules vs. shrinkwrap Should I check in node_modules to git when creati...

0
Q: Can I make my local webapp visible to a friend by an ip?

UrsusI'm learning AngularJs and so I'm wondering: can I to look my work to a friend, giving him an ip? Probably AngularJs doesn't count, I'm using a simple "web server" via NodeJs. Sorry for my English. Thanks in advance.

0
Q: Error on "update-alternatives" when installing/upgrading nodejs v0.10.30

guen_amSo I get this error when doing apt-get upgrade Setting up nodejs (0.10.30-1chl1~trusty1) ... update-alternatives: error: alternative link /usr/bin/node is already managed by nodejs dpkg: error processing package nodejs (--configure): subprocess installed post-installation script returned error e...

 
12:30 PM
0
Q: Unwanted multiple messages when using redis for pub-sub

Kaya ToastThe following code works just fine, when I do pub/sub using socket.io. I can login from multiple browsers, and when I send a chat messages, it appears as a single chat message as expected. io.use(socketHandshake({store: sessionStore, key:'jsessionid', secret:'secret', parser:cookieParser()})); i...

 
12:53 PM
0
Q: nodejs how to scope parent object to mysql query anonymous callback

ManuelI'm new to node.js and not yet fully into scoping of anonymous functions. I declared a object with several methods. Inside my method I first get a mysql connection from mysql pool and than do a query on the connection. Now I want to call a method of my object. After reading into scoping and bindi...

 
1:12 PM
0
Q: Getting unexpected token when running

Android ManWhile running this code through cmd i am getting this error. The error tells that its in line no. 7 but could't find. var express = require('express'), filter = express(), server = require('http').createServer(filter), io = require('socket.io').listen(server), mongoose = require('mongoose'), s...

 
1:25 PM
0
Q: Mongoose fail to set ref -Schema.Types.ObjectId- to other document

Su4pI'm trying to save a document with mongoose according to the doc http://mongoosejs.com/docs/populate.html First I call parent.save and inside the callback of parent.save I use child.save. But when I check parent.childs I can see that no child has been added. The parent schema is Home : var HomeS...

0
Q: how to retrieve other details of a schema based on the reference key

user3775998I have a project am working on. I have a comment schema, a likes schema and a blog schema. All three are declared as separate schemas but the likes and comments schema are then nested into the blogs schema as children i.e comments: [CommentSchema]. Now i have a page where when someone clicks on a...

0
Q: How to specify template in KeystoneJS using Handlebars?

ameagherI'm trying to set the template/layout for one specific view (not change the default template). Could anyone point me in the right direction? Thanks!

 
2:07 PM
0
Q: how to implement @sb in a forum reply field?

chloetinai'm making a small bbs function using sails js, I want to @sb when reply the topic, so is there any plugin to make it fast? or how to do that? thanks

0
Q: Sails.js query model filtering by collection attribute

danst_18Suppose that I have the following models in Sails.js v0.10: Person.js module.exports = { attributes: { name: 'string', books: { collection: 'book', via: 'person' } } }; Book.js module.exports = { attributes: { name: 'string', person: { model...

 
2:24 PM
0
Q: How to set a variable for the main handlebars layout without passing it to every route?

mlesI'm using handlebars with nodejs and express. This is my main.handlebars file: <!doctype html> <html> <head> ... </head> <body> <div class ="container"> ... <footer> &copy; {{copyrightYear}} Meadowlark Travel </footer>...

 
3:01 PM
0
Q: Streaming video a cue point with nodejs

Markus GrayI am working on a streaming video application with pre-recorded video and I was wondering if it is possible with nodejs to stream a video at a specific cue point that is scheduled on the server, so that when a visitor goes to the link it will start playing at that cue point. I had an idea of how ...

0
Q: passport js check for error in req

pka2012I am logging in a user with passport local: // route to log in app.post('/login', passport.authenticate('local-login'), function(req, res) { res.send(req.user); }); This will only work in the case of success, i.e. when req.user is defined. How do I check for an error in the...

 
3:18 PM
0
Q: Finding the cause/line of "Unexpected token ;" error in Express-JS

Can PoyrazoğluI am using Parse with Express-JS. I am trying to display an EJS page but I'm getting an Unexpected token ; at the server (when command line parse develop MyApp is running at Terminal). Here is the full stack trace of the error: I2014-08-02T15:07:19.886Z]SyntaxError: Unexpected token ; at Object....

 
3:37 PM
0
Q: Nodejs GoogleAPis - Backend error 500

Pradeep MahdevuI am trying to read email of my own account. I went ahead and created a service account and created a JWT key. I am trying to read the email thru nodejs using google's google apis. I am getting a back end error. var authClient = new google.auth.JWT( "4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...

 

« first day (77 days earlier)