Re: [nodejs] Link node.js addon to static library

2017-01-13 Thread Ryan Schmidt
On Jan 9, 2017, at 12:41, Rohit Harchandani wrote: > I have a static library built on my 64-bit Mac OSX (libcryptopp.a). I use > this to create a node.js addon which works fine on my machine. However, when > I build the same module on a colleagues machine (again a 64-bit Max OS X), > using the

Re: [nodejs] is it possible to get child process processing file in nodejs

2016-12-16 Thread Ryan Schmidt
On Dec 8, 2016, at 1:25 AM, exeter.h...@gmail.com wrote: > any one plz help me is it possible to get child process processing file. > > i am opening illustrator using child process spawn in nodejs for process > file. i want get filename which that illustrator processing. is it possible That's

Re: [nodejs] Shell command execution with Node.js

2016-12-16 Thread Ryan Schmidt
On Dec 10, 2016, at 11:36 AM, emerb nura wrote: > Im new to Node.js,I want to execute shell commands using Node.js.When I tried > a simple command(ipconfig), I got the outout.But I want to execute CLI > commands, So in order to do so I need to execute the commands in a particular > path .How t

Re: [nodejs] Receive Email in Web App using Node.js

2016-12-16 Thread Ryan Schmidt
On Dec 9, 2016, at 1:17 AM, Umair Shahid wrote: > i want that when any user send mail to admin then that mail should receive in > web app instead of gmail or yahoo portal. Mail can only be received by a mail server. You can certainly write your own mail server in node, but that sounds daunting

Re: [nodejs] errros installing mongo client with NPM

2016-10-07 Thread Ryan Schmidt
> On Oct 5, 2016, at 10:31 AM, a...@cs.miami.edu wrote: > > Hi Node users, > > Very new to node.js, I am trying to use node with mongo, but getting NPM > errors when installing mongodb. > > I am using ubuntu 12.04. I installed node using ubunut apt-get. Node version > is v0.6.12 according to

Re: [nodejs] Question is this possible

2016-10-07 Thread Ryan Schmidt
On Oct 6, 2016, at 9:58 AM, thebluearchernc wrote: > > Well i am new at this so no i did not know i did not need separate ports > but you are correct i wish to show part of the page on each devices with > the devices lined up to make a larger display sort like this image with each > displ

Re: [nodejs] Help a newbie with loading a new page

2016-10-06 Thread Ryan Schmidt
> On Oct 1, 2016, at 3:31 PM, Rich Podraza wrote: > > I'm new to web development (have a C++/Java background) I'm looking for some > help with some simple modification I'm making to the node-login project as an > exercise. > > I hope I can describe my problem helpfully without posting a bunch

Re: [nodejs] What is the best way for JavaScript to access data from Node.js/

2016-09-18 Thread Ryan Schmidt
> On Sep 17, 2016, at 5:13 PM, ABC DEF wrote: > > I'm pretty new to this, and it seems every question is off-topic on > stackoverflow, so I'll ask here and if it is still off-topic here, may you > direct me to somewhere where it is relevant? > > I have a distant Java server that transfers dat

Re: [nodejs] Appending to array - Not working as expected

2016-08-03 Thread Ryan Schmidt
On Aug 3, 2016, at 7:43 PM, Tippur wrote: > Changed it to > > ## > 'use strict' > > var str='{ \ > > "a": ["x", "y"], \ > > "rest": "fdsf", \ > > "ff": "ll" \ > > }' > > > > var jsonstr=JSON.parse(str); > > > > var payload=[]; > > > > if (Array.isArr

Re: [nodejs] shell command not executing to start apache flume

2016-07-26 Thread Ryan Schmidt
On Jul 26, 2016, at 4:22 PM, Ryan Schmidt wrote: > But for now, you might be able to redirect stdout to stderr by using "2>&1" I meant: you might be able to redirect stderr to stdout by using "2>&1" -- Job board: http://jobs.nodejs.org/ New group rul

Re: [nodejs] shell command not executing to start apache flume

2016-07-26 Thread Ryan Schmidt
On Jul 25, 2016, at 12:38 AM, Ruchit Kadakia wrote: > var cmd=require('node-cmd'); > > exports.list = function(req, res){ > > cmd.get( > > 'cd /usr/local/cellar/apache-flume-1.6.0-bin ; // works well > > bin/flume-ng agent –conf ./conf/ -f conf/flume.conf > -Dflume.root.logger=DEBUG,consol

Re: [nodejs] Running shell commands from node.js

2016-07-26 Thread Ryan Schmidt
> On Jul 24, 2016, at 12:53 AM, Ruchit Kadakia wrote: > > I am trying to run this command from node.js file > > var sys = require('sys') > > var exec = require('child_process').exec; > > > > var child1 = exec("cd: /usr/local ", function (error, stdout, stderr) { > > sys.print('stdout: '

Re: [nodejs] Newbie question about the location of index.js

2016-07-26 Thread Ryan Schmidt
On Jul 23, 2016, at 12:53 PM, Sorcerer Stone wrote: > > Newbie in node.js. Reading a book and download projects to follow the text. I > understand the primary role of index.js file is the entry point for a given > project. But I have problems with this file. Welcome to node! There's nothing i

Re: [nodejs] Node calling back wrong object instance

2016-07-23 Thread Ryan Schmidt
On Jul 23, 2016, at 9:13 AM, Phil Heltewig wrote: > Hi all, > > I have a weird issue where I use two instances of the same object and call > functions with callbacks from within these. At one stage one of the functions > called from object 2 is calling back object 1 instead. > > Background >

Re: [nodejs] Need help regrading Oracle DB connection and running the sql command using Node.js

2016-07-23 Thread Ryan Schmidt
On Jul 22, 2016, at 12:41 AM, Harish Nayak wrote: > I need some help running the sql command connecting the oracle DB. > Please share detail if it available. It will help me allot to implement in my > project. What have you tried so far? I'm sure there are several npm modules for connecting t

Re: [nodejs] starting a js module (main.js)

2016-07-23 Thread Ryan Schmidt
On Jul 21, 2016, at 5:03 PM, Barry Gordon wrote: > > I have a Pi 3 all set up with node. I am having trouble starting the main > module of the project. > The js module is /home/pi/aws_proxy/app/main.js. > The following is reported when I try and start the module: > > /home/pi/aws_proxy/app/main

Re: [nodejs] Got erro for update in node js

2016-07-19 Thread Ryan Schmidt
On Jul 19, 2016, at 5:45 AM, Ryan Schmidt wrote: > On Jul 15, 2016, at 11:51 PM, Kumbhani Bhavesh wrote: > >> i got error in update query plz check i use postman for test and this is my >> update query value of usercolumns [ 'name', 'price', 'du

Re: [nodejs] Got erro for update in node js

2016-07-19 Thread Ryan Schmidt
On Jul 15, 2016, at 11:51 PM, Kumbhani Bhavesh wrote: > i got error in update query plz check i use postman for test and this is my > update query value of usercolumns [ 'name', 'price', 'duration', 'gender', > 'service_category_id' ] dbValues [ 'newservice', '1200', '2016-08-13', > 'male', '1

Re: [nodejs] HTTP get response with a JSON

2016-07-17 Thread Ryan Schmidt
On Jul 15, 2016, at 10:28 PM, Ryan Schmidt wrote: > > On Jul 15, 2016, at 2:53 AM, paolodocet wrote: > >> I have an HTTP get request to extract from MySQL all records of a User >> table. >> >>

Re: [nodejs] HTTP get response with a JSON

2016-07-15 Thread Ryan Schmidt
On Jul 15, 2016, at 2:53 AM, paolodocet wrote: > I have an HTTP get request to extract from MySQL all records of a User table. > > User table looks like as follow: > > + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - > - ID+ Username +Emai

Re: [nodejs] node server type SSL resolution

2016-06-24 Thread Ryan Schmidt
On Jun 23, 2016, at 3:04 PM, Mark Edwards wrote: > hello - our current website going through apache port 443 resolves with the > following message: > > "mydomain.com resolves to 162.xxx.xxx.36. > Server type: Apache/2.4.6" > > using this: https://www.geocerts.com/ssl_checker > > however my n

Re: [nodejs] Newbie struggling with functions and parameters

2016-06-20 Thread Ryan Schmidt
On Jun 20, 2016, at 11:08 PM, Victor Zambrano wrote: > In my journey to learns Javascript, i see often things like this: > > Express.js > router.get('/', function (req, res) { > res.send('Hello World'); > > The method get is passing parameters (req, res, but there are more) to the > anonymou

Re: [nodejs] this keyword inside function - EventEmitter example

2016-06-18 Thread Ryan Schmidt
On Jun 18, 2016, at 8:59 AM, Ömer wrote: > Hello, i didn't understand the this keyword in the below code. I know that > "The value of this, when used in a function, is the object that "owns" the > function.". However, in this code, i can't see any object. What does this > refer to in below cod

Re: [nodejs] refresh browser

2016-06-13 Thread Ryan Schmidt
On Jun 13, 2016, at 4:42 AM, Sirine Ibn Fraj wrote: > I want to refresh my browser automatically when a file changes , how can i do > that without adding plugins to my browser You could use socket.io, or other websocket method, to maintain a persistent connection between the web page and the

Re: [nodejs] SSL error

2016-04-15 Thread Ryan Schmidt
On Apr 15, 2016, at 6:24 AM, Alappan K wrote: > I have node js application i can access the http domain from node js but i > got open ssl error while accessing https domain .Any idea for this? Please show us the exact error message you get, and a minimal code example that causes the problem.

Re: [nodejs] calling a nodejs express REST service with & into url

2016-04-01 Thread Ryan Schmidt
On Apr 1, 2016, at 1:15 AM, Adrian Albu wrote: > vineri, 1 aprilie 2016, 06:14:35 UTC+2, ryandesign a scris: > >> On Mar 31, 2016, at 9:12 AM, Adrian Albu wrote: >> >> > having built an express REST api got a problem when one of the clients is >> > calling one service with encoding the & to

Re: [nodejs] calling a nodejs express REST service with & into url

2016-03-31 Thread Ryan Schmidt
On Mar 31, 2016, at 9:12 AM, Adrian Albu wrote: > having built an express REST api got a problem when one of the clients is > calling one service with encoding the & to & Fix the client to not do that. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/

Re: [nodejs] how to link to installed node packages / modules from another dir

2016-03-26 Thread Ryan Schmidt
On Mar 26, 2016, at 12:47 AM, NodeNinja wrote: > On linux I installed sqlite3 > > npm install sqlite3 > > sqlite3 was installed in the home directory in a folder called "node_modules" > > however my server dir is different and from there I am unable to link to > sqlite3 unless I copy the "no

Re: [nodejs] Node + Spawn a child process once and then provide stdin's and read stdout's from it

2016-03-21 Thread Ryan Schmidt
On Mar 19, 2016, at 11:31 PM, S.Sai Prashath wrote: > I'm spawning a child process using spawn-command npm package, i do this when > the node server starts and then for every request i read the query value and > hit the running child process with stdin. The stdout that comes out of the > child

Re: [nodejs] Hi all! I have a trouble..

2016-03-09 Thread Ryan Schmidt
On Mar 8, 2016, at 10:00 AM, Phonic Mouse wrote: > > you can read it and view other files on github: > https://github.com/WorkingHours/server > i have a trouble: calling the function startlogging.start() the output will > be this: > > [http] Successfully started logging! > [database] Day cre

Re: [nodejs] How callback use in this case

2016-03-05 Thread Ryan Schmidt
On Mar 4, 2016, at 7:44 AM, Manpreet Gill wrote: > > this file is example.js:= > > module.exports = { > dashboarddistance: function(a, b, c, d, callback) { > var ds = 0; > var distance = require('google-distance'); > distance.get({ > index: 1, > origin:

Re: [nodejs] Cannot read json object value from via postman

2016-02-22 Thread Ryan Schmidt
On Feb 21, 2016, at 10:58 PM, Duy Nguyen wrote: > On Mon, Feb 22, 2016 at 10:34 AM, Aria Stewart wrote: > >> On Feb 21, 2016, at 21:47, Duy Nguyen wrote: >> >>> I'm developing rest service using Express framework, I used Postman to test >>> this web service, but I got this headache scenario

Re: [nodejs] Multi process/ mysql

2016-02-14 Thread Ryan Schmidt
On Feb 10, 2016, at 3:16 AM, Miha Zoubek wrote: > i am trying to use multi process for one thing. I fallowed this tutorial: > https://codeforgeek.com/2014/12/cluster-node-js-performance/ > > After i stard nodejs app, after 4 min i get: > > /var/www/html/LDB- > rs/nodejs/node_modules/mysql/lib/

Re: [nodejs] how to download json data in excel (.xlsx) format without using express.

2016-02-14 Thread Ryan Schmidt
> On Feb 8, 2016, at 4:50 AM, ajay jaiswal wrote: > > I am firing query to database and getting in json format . > I want to send it to client (browser) using express js. > but i am not getting the data in browser. > > app.post("/downloadImportedTable", function (req, res) { >var conne

Re: [nodejs] Post JSON to asp web api as request

2016-02-14 Thread Ryan Schmidt
On Feb 11, 2016, at 10:10 AM, Nikos Galanakis wrote: > Is anyone know how i could send a json .I am trying above way but is not > working.Is returning error code 400.But if i copy paste exactly the same the > url and the JSON > to POSTMAN it answering normally. Perhaps you are using applicat

Re: [nodejs] NPM issue

2016-02-14 Thread Ryan Schmidt
On Feb 7, 2016, at 11:58 PM, Lalit Kumar Panicker wrote: > I'm new to the MEAN stack and is facing difficulty installing NPM. one of the > projects im working on required to get dependencies from bower and bower > required nmp to fetch it. im a bit confused regarding the working of both and >

Re: [nodejs] Help with node.js and WooCommerce -

2016-02-11 Thread Ryan Schmidt
> On Jan 25, 2016, at 2:07 AM, naijacoder wrote: > > I'm trying to list all products in WooCommerce using node.js but cant get to > list all the products to the browser. > When i run the code i only get to see the first record. > > I'm a newbie with node.js > > Thanks in Advance > > //Lets r

Re: [nodejs] SyntaxError: Unexpected token

2015-12-02 Thread Ryan Schmidt
That's too much code for me to read through and understand, and it also looks like you include other files whose contents you didn't show us. The error message doesn't give any insight into *where* the syntax error is. You should try to narrow down the problem. Find a minimal block of standalone

Re: [nodejs] Using "require" in browser and standalone

2015-11-17 Thread Ryan Schmidt
On Nov 17, 2015, at 10:26 AM, John English wrote: > > I have a bunch of JS which I want to run as a standalone program using > node.js and also within a browser. The code is divided into several file > which are loaded as needed using "require", This works well with node.js, but > not so well

Re: [nodejs] [Noob question] importing functions from another file in node

2015-10-11 Thread Ryan Schmidt
On Oct 10, 2015, at 5:08 AM, Ginger wrote: > Here I have a very newbie question here about how to invoke the functions > been defined in external js files. > > Assume here I have downloaded a js file has 100 functions and lots of global > variables simply looks like: > > abc.js > var a = 1; >

Re: [nodejs] can't install node js (make error)

2015-10-04 Thread Ryan Schmidt
On Oct 1, 2015, at 3:58 AM, samuele poppi wrote: > may anyone tell me why, when I follow the exact set of steps, when I get to > "make" it returns an "error 2"? Not without further information from you. "error 2" tells us nothing. Show us the actual output from make. -- Job board: http://job

Re: [nodejs] Using http-proxy properly

2015-09-28 Thread Ryan Schmidt
On Sep 27, 2015, at 4:55 PM, Lucas Schirm wrote: > I'm new on nodejs and start trying to setup multiple domains on my litle > server, (the http is all setup and working), but when i try http-proxy > solution they return: > > root@NodeCass:/dados# nodejs server.js > > /dados/node_modules/http-

Re: [nodejs] Running webapplication with nodejs

2015-09-16 Thread Ryan Schmidt
On Sep 16, 2015, at 12:10 AM, Mon wrote: > Can I run a web application with nodejs? I understand that nodejs is a > JavaScirpt runtime. So the way > I can run other JavaScript programs, I should be able to run web applications > as well. > > Is my understanding correct? You can certainly us

Re: [nodejs] Timestamp is not correct in mongodb using mongoose(timestamp thirteen digits)

2015-09-16 Thread Ryan Schmidt
On Sep 15, 2015, at 4:11 AM, Manpreet Gill wrote: > Timestamp are incorrect > coding in timestamp > process.env.TZ= 'Asia/Kolkata'; > var date = new Date(); > date.toLocaleTimeString() > console.log('date-->'+date); > var Timestamp = date.getTime(); > console.log('Timestamp-->'+Timestamp); What

Re: [nodejs] Node/Express best practice regarding multiple apps on 1 instance

2015-09-13 Thread Ryan Schmidt
On Sep 9, 2015, at 8:53 AM, Aaron Martone wrote: > And for clarification, what you're saying about the Node/App side of things, > can you throw me a hint or 2 about some tech used for more automated > assurances to run my apps? Are we talking about things like Forever, or > services that work

Re: [nodejs] Possible to select globally installed module over locally install one?

2015-09-13 Thread Ryan Schmidt
On Sep 13, 2015, at 03:21, Zlatko wrote: > > What do you mean, they're not requireable? Probably means that globally installed modules are not intended to be used in a require statement, and users should not attempt to find a way to do so. -- Job board: http://jobs.nodejs.org/ New group rule

Re: [nodejs] Node/Express best practice regarding multiple apps on 1 instance

2015-09-08 Thread Ryan Schmidt
On Sep 8, 2015, at 8:20 PM, Aaron Martone wrote: > I've heard of NGINX, but have no experience with it. Since it's an additional > server, I can only assume that it would be an additional expense to get up > and running with my VPS, so let me see if I can find a solution at no > additional exp

Re: [nodejs] Node/Express best practice regarding multiple apps on 1 instance

2015-09-08 Thread Ryan Schmidt
On Sep 8, 2015, at 1:08 PM, Aaron Martone wrote: > I'm looking to build an infrastructure that allows me to handle routing all > incoming requests through a central "AppRouter" that looks at the Protocol, > Domain and Port combination (what I'm calling an 'endpoint') to know which > app to rou

Re: [nodejs] Install node JS on VPS - help!

2015-09-05 Thread Ryan Schmidt
On Sep 4, 2015, at 4:45 AM, Kristofer Tryggvason wrote: > I'm trying to setup Node JS on my VPS. I've successfully got it running > locally but I can't for the life of me getting working externally. > > My VPS is running Plesk, I'm the root user, and I tried to set it up > following this tutor

Re: [nodejs] Not all NodeJs versions suppoorts a given npm-module

2015-09-03 Thread Ryan Schmidt
On Sep 3, 2015, at 10:59 AM, Poul Christoffersen wrote: > I need seriously some guidelines for when a given NodeJS version supports a > npm-module. > I use the two sensors: BMP085 and HTU21d and tried to install the various > npm-modules that are available: > > sensor_BMP085, BMP085 sensor, bm

Re: [nodejs] cannot open shared object file: No such file or directory

2015-08-28 Thread Ryan Schmidt
On Aug 24, 2015, at 8:32 AM, Hmidi Slim wrote: > I'm actually creating a Nodejs application which I tested for my pc and it > works very well.When I cross compile it for ARM architecture and I run node > app.js I got this error: > module.js:356 > Module._extensions[extension](this, filename);

Re: [nodejs] Is there a Config file for Node Runtime?

2015-08-28 Thread Ryan Schmidt
On Aug 27, 2015, at 10:32 AM, John Gardner wrote: > Apologies for the really basic question, but I've inherited a Node app and as > far as building the runtime and installing Express I'm a bit stuck. Is there > any config file containing parameters for the Node runtime? For instance, > Node

Re: [nodejs] Newbie Question

2015-08-28 Thread Ryan Schmidt
On Aug 21, 2015, at 4:21 PM, MANAV GARG wrote: > If I type > node program.js > in my terminal. Where will the file be generated in the computer? If you type "node program.js", node will run the JavaScript program contained in the file "program.js" in the current directory. If the program in p

Re: [nodejs] Nodejs code branching merge issues

2015-08-28 Thread Ryan Schmidt
On Aug 25, 2015, at 10:21 PM, Carl Swanson wrote: > Does anyone work on a large nodejs project with a decent sized team where > code source branching problems and re-merging becomes a problem? Where > multiple people touch the same relative code area, and then have effort > needed on successiv

Re: [nodejs] Angular.js file uploading with drag & drop and image/file preview

2015-08-28 Thread Ryan Schmidt
On Aug 24, 2015, at 1:00 AM, Shailendra Sen wrote: > I have encountered this problem , I ask you how to solve > > it get an error on console, says: " SyntaxError: expected expression, got '<' > > SyntaxError: expected expression, got '<' > > > Angular.js file uploading with drag & drop and im

Re: [nodejs] Good idea to auto-update using npm?

2015-08-28 Thread Ryan Schmidt
On Aug 24, 2015, at 1:49 AM, Kevin Chavez wrote: > I'm writing a cli to run on node. I'm going to distribute it using npm. I > really like Chrome/Firefox's model of automatic updates. > > Would it be a bad idea to simply call the following on startup, or right > before the process ends? > > r

Re: [nodejs] low nodejs benchmarking with a simple server

2015-08-28 Thread Ryan Schmidt
On Aug 27, 2015, at 3:09 AM, anymcoder wrote: > Just tried to benchmark a simple dns lookup server with NodeJS and the > results turned me down. > I've heard NodeJS is good when dealing with heavy IO bound application, but > my server only serves 20 request/second. Are you simply starting th

Re: [nodejs] raspberry pi 2 B+ and node.js -- a drift and need a life perserver

2015-08-19 Thread Ryan Schmidt
On Aug 18, 2015, at 8:13 AM, jps birdzbeez wrote: > I am not a programmer and never claimed to be one.. I just read and read and > read.. trying to learn and understand.. but for some reason I am not sure I > am understanding how this works... if someone doesn't mind I need help to > point me

Re: [nodejs] How to pass value from one screen to another in Nodejs project?

2015-08-06 Thread Ryan Schmidt
On Aug 6, 2015, at 5:04 AM, Sebastian M Cheung wrote: > AlsoI created a simple test.js file inside NodeJS project, not sure where to > start > > I would also like to create app as per attached, with form validation and > dropdown from JSON file > , once submitted, creates a new MongodB data ro

Re: [nodejs] Address hostname failure on Windows

2015-07-29 Thread Ryan Schmidt
On Jul 29, 2015, at 12:13 AM, Greg Reimer wrote: > This works on OS X, but fails on Windows 7 (io.js 2.5.0): > > var http = require('http') > > var server = http.createServer(function(req, res) { > res.end('hello') > }).listen(0, function() { > > var addr = server.addre

Re: [nodejs] Create / call a group is faulty

2015-07-29 Thread Ryan Schmidt
On Jul 28, 2015, at 6:44 AM, Alexander Friedland wrote: > I am a beginner with NodeBB. > the following problem I have had in two tests. I'm not familiar with nodebb. It looks like they have a separate community: https://community.nodebb.org You may have better luck asking your question there.

Re: [nodejs] nodejs express weird behavior question?

2015-07-29 Thread Ryan Schmidt
On Jul 28, 2015, at 8:02 AM, Uomo di Carbone wrote: > I set up nodejs with express on my raspberry pi (Rpi) and pointed to this > domain: http://111001.cc:3000/ I'm not sure what you mean here by "pointed to this domain: http://111001.cc:3000/";. I'm assuming you mean that the raspberry pi has

Re: [nodejs] Loading CSV file to SAP Hana table

2015-07-15 Thread Ryan Schmidt
On Jul 15, 2015, at 5:03 AM, Nvx Nvx wrote: > Hi I am very new to node.js. > I am unable to insert CSV file to Hana table. > Please provide me sample code. Welcome to node. Can you show us the code you've written so far, and what problems you're having with it? We can help you if you're having

Re: [nodejs] Why don't request() and cheerio work in a for loop?

2015-07-15 Thread Ryan Schmidt
On Jul 14, 2015, at 1:12 AM, Shelby Matlock wrote: > I am extremely new to Javascript and I am trying to make a simple web scraper > that will get vendor titles from a website (www.zinc.docking.org). The > problem is that I cannot get request() to work inside a for loop (I still > don't unders

Re: [nodejs] Can i use and is secure to use AJAX in my Server Node ??

2015-07-05 Thread Ryan Schmidt
On Jul 5, 2015, at 9:13 AM, Angel Rodriguez wrote: > i would like to use native ajax to make some calls inside my node.js server. > > Is this secure ?? Can i do it without problems ??? > > Here's and example: > > NODE > > > > app.post('/postReceptor', function(req, res, next) { > >

Re: [nodejs] Limit and handling of spawning child_process of ffmpeg

2015-06-27 Thread Ryan Schmidt
On Jun 27, 2015, at 3:16 AM, Ofir Attia wrote: > I facing with issue of nodejs and spawning child process. > I have noticed that I can spawn at max 5 instances of ffmpeg instances. > I have a server that listen for requests and each request parsed as ffmpeg > instance that working for 5 minutes.

Re: [nodejs] beginner question on return syntax and use

2015-06-25 Thread Ryan Schmidt
On Jun 25, 2015, at 12:44 PM, Guy Duff wrote: > Hi, and thanks for having this forum. I am reading the book entitled > beginning node.js by Basarat Ali Syed. There is a code example that I am > having a little trouble understanding: > > function printableMessage() { > var message = 'h

Re: [nodejs] Installing express js

2015-06-25 Thread Ryan Schmidt
On Jun 25, 2015, at 04:56, Elad Rosenberg wrote: > > Why im getting error about friendly url? attached. You ran "npm init", indicating you would like to be guided through the process of creating a package.json file for a new project in the current directory. npm printed message explaining that,

Re: [nodejs] Node Cluster scheduling policy | Load Balancing for Read Scalability

2015-06-22 Thread Ryan Schmidt
On Jun 21, 2015, at 11:51 PM, Emerson Rocha Luiz wrote: > How (if possible) to use node-cluster to schedule which worker will respond > to a request, based on type of request e.g. one worker for write > (POST/PUT/DELETE methods) and 1+ worker only for read (GET)? > > This is common on Load Ba

Re: [nodejs] Trouble with response.writeHead

2015-06-22 Thread Ryan Schmidt
On Jun 22, 2015, at 9:14 AM, Ecas Saeculum wrote: > Simple HTTP Server, that responds on connection with a write head and > response.end('hello'); Simple, simple. > > When I do this: > > response.writeHead(200, { > 'Content-Type': 'text/plain', > 'ETag': 'someETagHash', > 'Content-Size':

Re: [nodejs] Newbie Question

2015-06-21 Thread Ryan Schmidt
nginx, apache, IIS or whatever other web server you use would be configured using the standard web port, 80, so that the user does not need to specify the port. Then, behind the scenes, that web server would talk with your node app, running on whatever other higher port number it wants to use, a

Re: [nodejs] Porting Node.js to a CPU other than ARM or x86/AMD? I'm using OpenWRT and a PPC board.

2015-06-20 Thread Ryan Schmidt
On Jun 18, 2015, at 4:53 PM, jeclark2006 wrote: > There appears to have been an aborted attempt by some one to port the Node.js > to the OpenWRT build environment. > > In addition to using OpenWRT as opposed to a mainstream Linux distribution, > I'm also using a PPC based processor board. > >

Re: [nodejs] Node JS connection issue with MS sql server 2008 r2

2015-06-17 Thread Ryan Schmidt
On Jun 16, 2015, at 6:52 AM, Nish M wrote: > I am a beginner in node js ,,i am trying to use node js with sql server 2008 > , but i m not able to follow the proper flow to get connected with sql server > i am using expres ,and vs 2013,, > > I need help . Could you show us your existing code,

Re: [nodejs] Creating lists, and saving them as a Json, help?

2015-06-11 Thread Ryan Schmidt
On Jun 10, 2015, at 11:10 PM, Martin Fares wrote: > > Hey guys, I'm creating a page in HTML(duh) but I'm kinda stuck, I need to > create a list and save it/transform it into a Json so I can export it. > > I randomly read node.js was good for this, I was wondering if a good soul > with node kno

Re: [nodejs] Best Practices Multi-app Multi-domain Node Server

2015-06-09 Thread Ryan Schmidt
On Jun 8, 2015, at 10:20 PM, Jason Nunnelley wrote: > I'm looking for best practices multi-app, multi-domain node server > configuration. Imagine like a LAMP server with 5 different apps > running on 5 different domains. How would I build a similar Node > configuration? Probably, you would build

Re: [nodejs] how to change values of object in controller

2015-06-08 Thread Ryan Schmidt
On Jun 8, 2015, at 12:56 PM, JBD wrote: > I am trying to loop through an array and change the value of a field in a > node.js controller. How do I do this? > > item.fetch({ > onerror: function() { > res.status(404).end(); >

Re: [nodejs] how to display object in unnamed array in dust

2015-06-06 Thread Ryan Schmidt
On Jun 5, 2015, at 9:40 PM, JBD wrote: > I have JSON object called Lodge, the start of which is like this: > > [ { LodgeId: 12, > HasInventory: true, > Rooms: > [ { Room: { Name: { invariant: 'Queen Test' }, Id: 100, Culture: null }, > LodgeId: 12, > NightlyRates: n

Re: [nodejs] Struggling with port 80

2015-05-31 Thread Ryan Schmidt
On May 30, 2015, at 5:05 PM, Lee Marshall wrote: > > Having issues running node.js because port 80 is in use. Any advice? I'm > using a cloud VPS server. What is port 80 in use by? Presumably by a web server provided by your VPS. If you don't need that web server for anything else, you could s

Re: [nodejs] Node.js fails on large query strings?

2015-05-30 Thread Ryan Schmidt
On May 30, 2015, at 1:59 PM, Ω Alisson wrote: > I'm using Node.js under nginx load balancer. Everything runs fine but a large > query string brings status 502 and I can see on nginx error logs this stuff: > > upstream prematurely closed connection while reading response header from > upstream

Re: [nodejs] Node static directory case sensitive

2015-05-30 Thread Ryan Schmidt
On May 30, 2015, at 1:26 AM, dan krutz wrote: > I have a plain old html file within a static directory running under public. > When a user hits server.com/caa/ I'd like to serve up the static html page. > However, if they user also goes to server.com/CAA/ I'd like them to go to the > same dire

Re: [nodejs] Working with model in nodejs

2015-05-29 Thread Ryan Schmidt
On May 29, 2015, at 5:28 AM, Hema wrote: > I am new to node.js. I am using mysql and sequelize. I want to join 2 tables > with one to one relationship and access the data of one table through > another. Please tell me how to do this and share some sample code if possible. Are you looking for r

Re: [nodejs] variable scope in for loops

2015-05-23 Thread Ryan Schmidt
On May 23, 2015, at 6:19 PM, Marc Phillips wrote: > I'm building up an object (or trying to) iterating though a json object and > gathering info based various rest calls: > > var generate = {}; > for(var protocol in buildout.protocols){ > for(var item in buildout

Re: [nodejs] fs error api

2015-05-22 Thread Ryan Schmidt
On May 21, 2015, at 10:48 AM, Nick Santos wrote: > Are the errors thrown by the 'fs' module documented or expected to be stable? > > As an example, if I run > fs.statSync('file-that-does-not-exist.js') > it throws an error with error.code == 'ENOENT' > > Is it OK to rely on this code as a stabl

Re: [nodejs] Streaming Videos with nodejs

2015-05-09 Thread Ryan Schmidt
On May 9, 2015, at 2:23 AM, Sam wrote: > > I have tried to stream videos with node like youtube with the help html5. Do you have a question? -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://git

Re: [nodejs] How to process a stream of lines from a file one-by-one?

2015-04-25 Thread Ryan Schmidt
On Apr 24, 2015, at 9:36 AM, Marco Ippolito wrote: > > I'm trying to extract in "streaming-mode" a list of lines from a txt file and > than process them one-by-one in order, for example (or could be something > else) to detect the language. Have you tried any of the existing npm modules that c

Re: [nodejs] How to synchronize in node js

2015-04-23 Thread Ryan Schmidt
> On Apr 23, 2015, at 8:01 AM, Tarak Bhandary wrote: > > I am trying to make it simply synchronize concatenated string which starts > before the function and ends after the function. Please see the code snippet > and make it simple to get the output like: > > > Product1 > Produc

Re: [nodejs] node app.js

2015-04-23 Thread Ryan Schmidt
On Apr 23, 2015, at 10:46 AM, saddem kasmi wrote: > io.configure(function () { >^ > TypeError: Object # has no method 'configure' > > help plz :) Hard to help, since we don't know what "io" is. Can you show us more of your code -- where is "io" defined? Node thinks "io" does not have a met

Re: [nodejs] Debug mode macros

2015-04-23 Thread Ryan Schmidt
On Apr 23, 2015, at 5:26 AM, Gabriel Schulhof wrote: > When I run npm install on my package which contains a native addon, it works. > However, when I run npm install --debug, it fails, because one of the files > uses DEBUG as an enum member, and so that effectively gets edited out by the > pr

[nodejs] strong-pm and multiple apps on one server

2015-04-23 Thread Ryan Schmidt
I've seen strong-pm mentioned on this group several times and finally looked into it. The comparison chart http://strong-pm.io/compare/ shows that strong-pm support for multiple apps is coming soon, whereas pm2 and forever already have it. Is there a way to use strong-pm with multiple independ

Re: [nodejs] All WebSocket connections closed when someone refresh a page

2015-04-21 Thread Ryan Schmidt
On Apr 20, 2015, at 12:49 PM, Ket wrote: > However, all connections have been cut off when someone refresh the page. Isn't that normal browser behavior? -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules:

Re: [nodejs] Starting and stopping CLI apps from a node application

2015-04-19 Thread Ryan Schmidt
On Apr 17, 2015, at 3:16 PM, hammer wrote: > I have several CLI applications which are designed to shut down using cntrl-c > which i would like to control using a node application (specifically a > node-webmit app). Starting them is easy enough, but stopping them I'm not > clear on. I thought

Re: [nodejs] setTimeout can’t work well after the process is blocked

2015-04-15 Thread Ryan Schmidt
On Apr 15, 2015, at 2:31 AM, Zhang Chao wrote: > node.js version: 4d9c81b7e2522c5d5d9d35058cbb0bce1228d360 (latest version), > v0.10.33, node-v0.12.2 > Platform: Ubuntu 14.04.1 LTS > Architecture: x86_64 > > var block = require('bindings')('hello'); // c++ addon > var a = function() { >

Re: [nodejs] Setting node/npm global environment variable

2015-04-15 Thread Ryan Schmidt
On Apr 15, 2015, at 4:35 AM, Aaron Gray wrote: > I need to enable harmony globally (within exec environment space) for > node.js I don't want to have to use io.js though ! I don't think node currently has a feature to do that. If you can't edit your scripts to run "node --harmony", then you cou

Re: [nodejs] Smashing node.js JavaScript Everywhere by Guillermo Rauch

2015-04-06 Thread Ryan Schmidt
On Apr 6, 2015, at 2:27 PM, O'BRIAN HCK wrote: > > I am a complete amateur at node. Js and i have looked for resources and > finally settled on this book. Now i am stuck on chapter 7: page 107 as per > the pdf bar. So i have server.js where i inserted the form as said and i can > see the respon

Re: [nodejs] installing sync-exec using io.js

2015-04-02 Thread Ryan Schmidt
On Apr 2, 2015, at 6:10 PM, Mark Edwards wrote: > > hello all - i just switched from node.js to io.js and ran into this problem. > i tried to run > > mkdir ./test; cd ./test; npm install sync-exec; > > and received back the following message (below) any suggestions? A synchronous versi

Re: [nodejs] automation script using node js

2015-04-01 Thread Ryan Schmidt
On Apr 1, 2015, at 3:06 PM, raj kumar wrote: > I am trying to write automation script using js > what i am trying to achieve is I have packages in one machine and install > those packages in another machine..i need to write a script for it.. > will node work for it.. > packages has config and ja

Re: [nodejs] noob question. cli app utilizing node-rest-client

2015-03-14 Thread Ryan Schmidt
On Mar 13, 2015, at 7:14 PM, Marc Phillips wrote: > I'm converting over some automation apps from perl to node. I've run into > what I'm sure is me making incorrect assumptions. > > I have the following function.I load up a json config file that defines a > list of clusters and nodes (F5

Re: [nodejs] Trigger res.redirect After res.download

2015-03-13 Thread Ryan Schmidt
On Mar 12, 2015, at 6:01 AM, Wajdi Awwad wrote: > I have application with download pdf file buttons. > In my application, i need the app to redirect to another api after download > finish. > > I'm doing the following: > >res.download('myPdfFile', function(err) { >

Re: [nodejs] Clustering in node.js using mesos

2015-03-06 Thread Ryan Schmidt
On Mar 5, 2015, at 1:57 PM, Farshad P wrote: > > > I'm working on a project with Node.js that involves a server. Now due to > large number of jobs, I need to perform clustering to divide the jobs between > different servers (different physical machines). Note that my jobs has > nothing to do d

Re: [nodejs] Is this the place to ask questions of npm?

2015-02-27 Thread Ryan Schmidt
On Feb 26, 2015, at 5:39 PM, Steve Husting wrote: > sh: html5-lint: command not found > npm ERR! Exit status 127 This error likely means there is no executable named "html5-lint" in any of the directories identified by your $PATH environment variable. -- Job board: http://jobs.nodejs.org/ Ne

  1   2   3   4   5   6   >