[nodejs] Role Based access and permission

2016-08-11 Thread Ravi Kumar
Hi. I'm creating a role based access control permission application using Expressjs. I searched over internet there are some packages available but i want to write custom code rather than using plugins . please help me and send me if anybody has example code. Thank You ! -- Job board:

Re: [nodejs] Event Queue Mechanism

2015-05-17 Thread // ravi
). —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups

Re: [nodejs] Need help understanding requiring modules.

2015-05-13 Thread // ravi
var gpio = require('pi-gpio') and then read a gpio pin. While in my /usr/michael director i did an npm install pi-gpio. The install was successful and it placed a node-module folder within my project folder. Michael, do you mean “node_modules? —ravi documentation here: https

[nodejs] NodeJS FAQ

2015-05-01 Thread // ravi
outdated. I’d be happy to maintain one if there is interest, though I do not have access to core developers and many of my own questions go unanswered as a result. :-) —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation

Re: [nodejs] REST Application and Web Application

2015-04-21 Thread // ravi
the ropes), do not commit to platforms like MEAN, unless you are already proficient with Mongo and Angular, and want to leverage that expertise. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules

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

2015-04-15 Thread // ravi
block.hello is unblocked. How to fix? I think the fix must be for block.hello() not to block. You forgot a smiley, I hope. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https

Re: [nodejs] Re: Is it a good idea to require regular js-files without absolute path?

2015-04-14 Thread // ravi
/…… NODE_PATH is set by a wrapper to: /A/B/lib:/A/B/app1/lib:/A/B/app1/config:/X/Y/node/lib”. Would have made my life easier if require.path had not been removed, but such is life. —ravi I want my project's internal modules, which are not published (at least yet) and only something

Re: [nodejs] automation script using node js

2015-04-01 Thread // ravi
for it.. packages has config and jar files... I need to unzip and zip it too.. not sure how to achieve... can you guys give some inputs Assuming you have SSH access to the remote server, I can recommend Flightplan: https://github.com/pstadler/flightplan. —ravi -- Job board: http

Re: [nodejs] Created a Slack community for Node.js!!

2015-03-27 Thread // ravi
On Mar 26, 2015, at 4:11 PM, Zach Rollyson z...@izimobile.com wrote: Hi Ravi, It seems like it's fairly easy to switch back and forth between communities (are they called communities?). On the Mac app it's just Cmd+1, Cmd+2 to switch between. So I found out via Aria. Thank you

Re: [nodejs] Created a Slack community for Node.js!!

2015-03-27 Thread // ravi
On Mar 27, 2015, at 1:06 PM, Zach Rollyson z...@izimobile.com wrote: Of course, I didn't mean to duplicate information… this is a moderated forum. No worries, it happens! I didn’t mean to sound like I was trying to admonish you :-) :-). —ravi On Friday, March 27, 2015 at 1:01

Re: [nodejs] Created a Slack community for Node.js!!

2015-03-26 Thread // ravi
for work, and I believe the Slack app only allows you to be part of one community at a time, which would make switching back and forth a painful necessity (or am I wrong, perhaps?). Regards, —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23

Re: [nodejs] Struggling with the asynchronous nature of MySQL requests

2015-03-26 Thread // ravi
On Mar 24, 2015, at 1:38 PM, // ravi ravi-li...@g8o.net wrote: In general, you are going to encounter this over and over: any code you add preceding an async call (such as your DB query) should not depend on the result of the async call. Ack! That should be “…… any code you add following

Re: [nodejs] Created a Slack community for Node.js!!

2015-03-26 Thread // ravi
On Mar 26, 2015, at 4:09 PM, Aria Stewart aredri...@nbtsc.org wrote: On Friday, March 27, 2015 at 9:06:59 AM UTC+13, // ravi wrote: your effort is greatly appreciated so please forgive my critical thoughts: do we need one more channel over and above this list (not real-time as you say

Re: [nodejs] Struggling with the asynchronous nature of MySQL requests

2015-03-24 Thread // ravi
of the async call. You can avoid this trap in a generic way by adopting a more functional style of programming (not my cup of tea) or by using something that makes the flow more sequential/imperative (my cup of tea: Promises). —ravi function readDB() { var counter = 0

Re: [nodejs] Getting started with Ponte

2015-03-21 Thread // ravi
answers from that community? Looks like its an Eclipse thing? One of the authors (https://twitter.com/matteocollina) encourages users to contact him :-), so may be he can point you to the right channel. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com

Re: [nodejs] node.js requires to many TCP sockets

2015-03-19 Thread // ravi
for your app (you can do that by using netstat options, or using -p and grep'ing for your process PID, or by the port). You may also wish to mask IP addresses if you have privacy/security concerns. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com

Re: [nodejs] node.js requires to many TCP sockets

2015-03-17 Thread // ravi
for the specific events (I haven’t used socket.io in a while). Does your service have a lot of clients? —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki

Re: [nodejs] node js is not waiting for postgres queries

2015-03-12 Thread // ravi
. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google

[nodejs] Visit logging

2015-02-27 Thread // ravi
, but before I go down that route, I wonder: there must be some module that implements something like this already? Any suggestions? Thank you, —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules

Re: [nodejs] Re: Node.js foundation

2015-02-10 Thread // ravi
, a large user base, and the sort of stability that would attract and keep such a base, without proper governance. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node

Re: [nodejs] StrongLoop announces most complete process manager for Node.js clustering with Nginx support built-in

2015-02-09 Thread // ravi
or above) beyond that? —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you

Re: [nodejs] Re: StrongLoop announces most complete process manager for Node.js clustering with Nginx support built-in

2015-02-09 Thread // ravi
for technical readers and the community. But with $9 million in the bank, I am sure they can afford better advisors than me. :-) —ravi On Monday, February 9, 2015 at 12:46:01 PM UTC-5, Jordan Kasper wrote: The announcement link: http://strongloop.com/strongblog/node-js-process-manager

[nodejs] It's out! Node v0.12.0 (Stable)

2015-02-06 Thread // ravi
you NodeJS Core, —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you

Re: [nodejs] Building an Application using nodejs

2015-01-24 Thread // ravi
suggest me some kind of real time application which can be built using nodejs. I assume you wish to build an app, any app, as a learning experience? If so, I guess one of the usual suspects (“to do” app is the leader by far :-)) might be good candidates? —ravi -- Job board: http

Re: [nodejs] See what is keeping the event loop alive

2015-01-23 Thread // ravi
, then it’s possibly a MySQL connection). You can also use ‘lsof’ in a similar way. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting

Re: [nodejs] Data Model Definition Standard in JavaScript/Node

2015-01-14 Thread // ravi
a closure (closing over something), without some anonymous functions. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines

Re: [nodejs] what is the difference between child/callback and fork that is used in Perl

2015-01-12 Thread // ravi
that is used in Perl. Is there any conceptual difference, any improvement or is it basically one and the same? “child” and “callback” are different things. Can you clarify your question a bit? —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com

Re: [nodejs] Data Model Definition Standard in JavaScript/Node

2015-01-12 Thread // ravi
On Jan 12, 2015, at 11:00 AM, Alexander Praetorius d...@serapath.de wrote: how bad would that be? I think Trevor Norris had a blog post about this, but I cannot find it, sorry… I tend to confuse the names of JS/NodeJS heavies… maybe it was someone else :-). —ravi Could it end up

[nodejs] Very simple question re:Buffers...

2014-12-26 Thread // ravi
*interpretation* issue? —ravi P.S: given that the new buffer references the same memory, I am assuming this is an extremely cheap operation. True? -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https

[nodejs] 0.12 intro?

2014-12-16 Thread // ravi
? No doubt there is some (500?) blog post(s) about it out in the Internets, but I am hopeful that more than one voice piping in here will make it more interesting and encourage discussion. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23

Re: [nodejs] node.js and io.js reconciliation

2014-12-09 Thread // ravi
a similar role. And as has been explained, I guess this particular event is a bit complex and sensitive, so there is not full transparency. I do not condone the lack of transparency but I accept it is what it is. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https

Re: [nodejs] node.js and io.js reconciliation

2014-12-09 Thread // ravi
this my last post on this matter, especially since I am sort of arguing against nobody. It’s not like anyone or group in particular is hiding information from me. Maybe I am arguing against the Second Law of Thermodynamics? :-) (— not a serious Physics reference). —ravi (*) not trying

Re: [nodejs] node.js and io.js reconciliation

2014-12-09 Thread // ravi
On Dec 9, 2014, at 2:09 PM, Matt hel...@gmail.com wrote: Ravi, I highly recommend you subscribe to nodeweekly - it's a weekly roundup of node news where you'll at least get to hear about this stuff. http://nodeweekly.com/ Done! Thank you for sharing that, —ravi -- Job

Re: [nodejs] node.js use case question

2014-12-09 Thread // ravi
, and with ways to make your remote commands block, when needed. On an unrelated thread I recommended Flightplan for these kinds of remote operations. I think you may benefit from looking at it and at alternatives to it. —ravi -- Job board: http://jobs.nodejs.org/ New group rules

Re: [nodejs] os.cpus() and times

2014-12-08 Thread // ravi
On Dec 7, 2014, at 11:37 PM, // ravi ravi-li...@g8o.net wrote: On Dec 7, 2014, at 11:06 PM, // ravi ravi-li...@g8o.net wrote: I am stumped by what must clearly be a misreading on my part. Node 0.10 docs say that each element of os.cpus() contains information about each CPU/core

Re: [nodejs] os.cpus() and times

2014-12-08 Thread // ravi
On Dec 8, 2014, at 10:17 AM, // ravi ravi-li...@g8o.net wrote: Closer inspection reveals what might be the issue: if you take the idle time reported to be not in ms, but 100*ms (where 100 = GNU/Linux clock ticks per sec), then it starts to seem right. Throwing away the *100, the idle times

Re: [nodejs] Re: Chef-like tool powered by node.js?

2014-12-08 Thread // ravi
for not being able to give you that, —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you

Re: [nodejs] node.js and io.js reconciliation

2014-12-08 Thread // ravi
of NodeJS will benefit from the current churn remains, at least to me, to be seen. Regards, —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List

Re: [nodejs] node.js and io.js reconciliation

2014-12-07 Thread // ravi
one-time help requests * node-forward on GitHub for user help documents * …. (the above is an example, and does not imply that they are the actual or preferred usage for these media :-)) —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23

[nodejs] os.cpus() and times

2014-12-07 Thread // ravi
! —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google

Re: [nodejs] os.cpus() and times

2014-12-07 Thread // ravi
On Dec 7, 2014, at 11:06 PM, // ravi ravi-li...@g8o.net wrote: I am stumped by what must clearly be a misreading on my part. Node 0.10 docs say that each element of os.cpus() contains information about each CPU/core. This information includes the number of milliseconds the CPU/core spent

Re: [nodejs] node.js and io.js reconciliation

2014-12-05 Thread // ravi
On Dec 6, 2014, at 12:04 AM, // ravi ravi-li...@g8o.net wrote: It’s the “apparently”s that bother me. I feel like one among the proverbial blind men trying to figure out an elephant. The blog post you linked to suggests comments be posted to this list, but the blog post (or its contents

Re: [nodejs] node.js and io.js reconciliation

2014-12-05 Thread // ravi
the shed? —ravi P.S: Isaac’s was a voice of reason that I could rely on, but he seems to have gone silent, somewhat understandably, since he forked off into the NPM effort. Given all this, the questions I ask myself are: why joyent not decides to put nodejs in a foundation with open

Re: [nodejs] Re: PHP to node.js

2014-11-19 Thread // ravi
. Is there a typo in the above? Did you mean NodeJS where you write PHP, above? —ravi On Tuesday, November 18, 2014 1:21:53 PM UTC+5:30, Vasa wrote: Hello noders i am trying to generate a chart (using highcharts) with queried data from Mysql. I have my data.php file to query the database

Re: [nodejs] How to call php file in nodejs

2014-11-13 Thread // ravi
an “exec” call that synchronously returns the output of an external command. I’d recommend the latter if your need is simple. If you need specific links let me know. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation

Re: [nodejs] Node.JS vs Erlang

2014-11-12 Thread // ravi
To summarise: http://www.jwz.org/doc/worse-is-better.html :-) —ravi, don’t know a thing about Erlang, actually On Nov 12, 2014, at 8:47 PM, Matt hel...@gmail.com wrote: On Wed, Nov 12, 2014 at 7:52 PM, Vitaliy Feoktistov vitaliy.feoktis...@gmail.com mailto:vitaliy.feoktis

Re: [nodejs] Performance Monitoring in NodeJS without external Services (StrongLoop, AppDynamics, nodetime, etc.)

2014-11-11 Thread // ravi
, etc. Or am I off on the wrong tangent w.r.t this thread? —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received

Re: [nodejs] Re: To check node_modules or not

2014-10-30 Thread // ravi
on), and failing in production/staging because that was running some linux. Indeed, yes, since modules can produce binaries and compiled libraries. In my case, I have separate repos for node modules per platform. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https

Re: [nodejs] To check node_modules or not

2014-10-29 Thread // ravi
versions of modules is not, so a common node_modules across apps accessed via NODE_PATH is better for me. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node

[nodejs] Kinvey/stats-logger

2014-10-23 Thread // ravi
to be in-memory, ideally with a few types (counters, time series, etc) and expiration (expiration not by flushing everything and resetting to null but as a sliding window). Thank you, —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file

Re: [nodejs] Can someone teach me how to get the source code difference of v0.10.22 and v0.10.23 ?

2014-10-05 Thread // ravi
tools/interface provided by GitHub. Clone the Node repo to your computer and then run a git diff. A diff between two tags might be what you need. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group

Re: [nodejs] Callback hell and how to get around it?

2014-09-15 Thread // ravi
On Sep 15, 2014, at 1:26 PM, Aria Stewart aredri...@nbtsc.org wrote: On Sep 15, 2014, at 10:09 AM, // ravi ravi-li...@g8o.net wrote: On Sep 15, 2014, at 1:01 PM, Alex Kocharin a...@kocharin.ru wrote: Promises just wrap callbacks. So you had callback hell, now you have wrapped callback hell

Re: [nodejs] Please help: Error: Cannot find module 'xls-to-json'

2014-09-03 Thread // ravi
on Windows, but you may be able to achieve the separation above using NODE_PATH. See http://nodejs.org/api/modules.html#modules_loading_from_the_global_folders. —ravi Op zaterdag 30 augustus 2014 23:09:46 UTC+2 schreef Tadeu Zagallo: I think the module should be installed on the same

Re: [nodejs] Ah! didn't believe Nodejs.org not running on Node.js itself

2014-08-28 Thread // ravi
On Aug 27, 2014, at 11:30 PM, Michael Hart michael.hart...@gmail.com wrote: I can't tell if you're trolling or not... but nodejs.org using nginx is *literally the opposite* of NIH syndrome. Could you tell if the OP was trolling or not? :-) -- Ravi On Wednesday, 27 August 2014 22

Re: [nodejs] How to enable keep-alive for http/https?

2014-08-28 Thread // ravi
host) has been reached and all connections are in use. In this case, the new request will be queued and when a response arrives on a connection, the new request will be dequeued and sent down that open connection. The above is my understanding, but I could be wrong. --ravi -- Job

Re: [nodejs] How to enable keep-alive for http/https?

2014-08-27 Thread // ravi
when the response to the first ends, which means (most likely) that after you fired the first and second request, there was no request pending, which IIUC causes http.Agent to close open keep-alive sockets. --ravi ``` var http = require('http'), net = require('net

Re: [nodejs] Different between Ajax and Node.js in caching data

2014-08-23 Thread // ravi
applications using JavaScript that run on Google's V8 engine. --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You

Re: [nodejs] HELP REGARDING MY NODE APP

2014-08-16 Thread // ravi
: https://en.wikipedia.org/wiki/Cron. If you are not on *nix, there are cron-like NodeJS modules that you can use, or there are probably equivalent mechanisms in your OS of choice. --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289

Re: [nodejs] Waiting till call back completes Node.js

2014-08-13 Thread // ravi
. But if consumer.on() can fire multiple times and you need to accumulate the messages, how do you know when the data is complete? You will need to add a check for that. --ravi My finalVal should display all the multiple values it fetches and send it as a response, but problem is it's

Re: [nodejs] How Nodejs server differ from normal server

2014-08-13 Thread // ravi
asked that question in those very words -- How does NodeJS server differ from normal server? -- that's a terrible question. I would have asked the questioner to define both normal server and NodeJS server. --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https

Re: [nodejs] What should I read to master node.js?

2014-08-04 Thread // ravi
links because I actually learned this stuff by poking around; which is not necessarily what I would recommend. --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent

Re: [nodejs] Re: What should I read to master node.js?

2014-08-04 Thread // ravi
code. This is probably the biggest obstacle for new users, assuming familiarity with JS. Very true and a very important point. --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https

Re: [nodejs] Re: TJ Holowaychuk is leaving the community and now

2014-07-07 Thread // ravi
that socket.io (to use one example) is not a vanilla WebSockets implementation. --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines

Re: [nodejs] dust templates - how to render json field with whitespace in its name

2014-06-13 Thread // ravi
--ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups

Re: [nodejs] Is Node.js suitable?

2014-06-11 Thread // ravi
is deceptive, and you will find yourself stymied at times by the need to seek out and cobble together primitives, the sparse documentation and some of the leaky abstractions of the New Jersey approach (*). It's a learning experience. Regards, --ravi (*) http://www.stanford.edu/class

Re: [nodejs] node js and html

2014-06-10 Thread // ravi
such as Express that lets you add some of that functionality to Node by giving you a way to serve static files, use templates, return AJAX data using routes, etc. --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation

Re: [nodejs] Deployment techniques

2014-05-25 Thread // ravi
., no EC2, Heroku, etc). --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you

Re: [nodejs] Requesting advice for working on a large node.js application

2014-05-25 Thread // ravi
On May 25, 2014, at 8:17 AM, Jake jp021...@gmail.com wrote: Thanks Ravi. Are there any additional things (aside from those you already mentioned) that you have found beneficial to standardize on? Well there are the standard and general issues: tabs vs spaces :-), indentation size, variable

Re: [nodejs] Requesting advice for working on a large node.js application

2014-05-24 Thread // ravi
IIFEs for encapsulation? Are you going to use callbacks, or promises, or some other flattening library? --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki

Re: [nodejs] in spawn process memory usage is growing

2014-05-23 Thread // ravi
Streams stuff complicated or non-intuitive, but from a simple Unix perspective the above doesn't compute. Regards, --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node

Re: [nodejs] in spawn process memory usage is growing

2014-05-23 Thread // ravi
On May 23, 2014, at 9:36 AM, // ravi ravi-li...@g8o.net wrote: On May 22, 2014, at 8:08 PM, Stefano Cudini stefano.cud...@gmail.com wrote: php.stdout.pipe(process.stdout); This doesn't make sense to me, that you are piping the stdout of the php process to your own stdout. Did you mean

Re: [nodejs] NodeJs application architecture - Need suggestion

2014-05-21 Thread // ravi
/kue/), etc. --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed

Re: [nodejs] onload?

2014-05-19 Thread // ravi
dependency.js first. I think you may be using emitted wrongly, above, unless there is actually some event being emitted by dependency.js which is listened to in entry.js. I think you are right in your wariness of using a setTimeout hack. I'd suggest not using it here as well. --ravi -- Job

Re: [nodejs] Node.js performance tip of the week: scaling apps with nginx, Apache, PM2, node-cluster and clusterctl

2014-05-18 Thread // ravi
On May 17, 2014, at 12:27 AM, Ryan Graham r.m.gra...@gmail.com wrote: On Fri, May 16, 2014 at 10:27 AM, // ravi ravi-li...@g8o.net wrote: is the framework (SL Cluster Management?) that includes the slc commands open source and or Free? The slc command is from the strong-cli package on npm

Re: [nodejs] onload?

2014-05-18 Thread // ravi
, --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google

Re: [nodejs] Node.js performance tip of the week: scaling apps with nginx, Apache, PM2, node-cluster and clusterctl

2014-05-16 Thread // ravi
commands open source and or Free? --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because

Re: [nodejs] looping through a large array - forEach vs process.setImmediate vs process.nextTick

2014-05-13 Thread // ravi
logic flow are on what occurs within the loop. --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received

Re: [nodejs] Re: Introducing a custom configuration to NodeJS

2014-05-07 Thread // ravi
on how to write a REST endpoint in NodeJS, or specifically for a way to run-time toggle a configuration value in a NodeJS app/server? For the latter, all you may need is fs.watch() - http://nodejs.org/docs/latest/api/fs.html#fs_fs_watch_filename_options_listener. --ravi -- Job board

[nodejs] JSON REPL?

2014-05-06 Thread // ravi
: val32 } json set k31 = val31new json cd .. json print k1.k31 val31new ... etc ... I want to check before I write one. --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com

Re: [nodejs] JSON REPL?

2014-05-06 Thread // ravi
to explain it to a non-tech person, I realised I could simplify the process for him if I removed some of the Node/JS specific actions. Regards, --ravi On Tue, May 6, 2014 at 7:27 AM, // ravi ravi-li...@g8o.net wrote: Anyone know if there exists a tool that provides a REPL-like interface

Re: [nodejs] Introducing a custom configuration to NodeJS

2014-05-06 Thread // ravi
to me what sort of material you are looking for. Are you trying to find a guide/tutorial or module that lets you dynamically signal your running NodeJS server to turn the user authentication switch on/off? Or something else? Regards, --ravi -- Job board: http://jobs.nodejs.org/ New group

Re: [nodejs] changes to the moderation of this group

2014-05-03 Thread // ravi
in moderation tasks. --ravi -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups nodejs group. To post to this group, send email to nodejs

Re: [nodejs] CMS Websites Services in USA | UK | SINGAPORE | CANADA | Malaysia | India

2014-05-01 Thread // ravi
? If so, wow... my sympathies and appreciation to whoever it is doing that thankless job. --ravi -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed

Re: [nodejs] Promisified node core api

2014-04-30 Thread // ravi
callback style call myself, but it's easy enough. --ravi -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups nodejs group. To post

Re: [nodejs] Promisified node core api

2014-04-30 Thread // ravi
, their APIs tend to be callback based and will need to be wrapped as well (if I want to go all promises, for consistency). --ravi Overhead is acceptable. On Apr 30, 2014, at 6:31 AM, Oleg Slobodskoi oleg...@googlemail.com wrote: Probably I missed this discussion. Now as Promises

Re: [nodejs] Client in San Jose, CA need C++ Programmer with Java, XML/XSL, SQL, Oracle RDBMS

2014-04-25 Thread // ravi
On Apr 25, 2014, at 11:26 AM, santosh kumar santosh.genuineit...@gmail.com wrote: Role : C++ Programmer with Java Location: San Jose, CA Rate: $60-65/hr. C2C. Face to Face: MUST, after phone round What does this have to do with NodeJS? --ravi -- -- Job Board: http

Re: [nodejs] avoid relative path in require to include local modules

2014-04-22 Thread // ravi
, but for some reason (that I now forget) that was removed. Something like this: == /home/ravi/code/projectX/app.js: var fs = require('fs'), config = require('server/config'); $ daemon . --env=NODE_PATH=/home/ravi/code/projectX/server:...other local module paths... /home/ravi/code/projectX

Re: [nodejs] Node/Javascript alternative to Graphite?

2014-04-20 Thread // ravi
the right way will need some thinking. --ravi On Sat, Apr 19, 2014 at 9:20 PM, // ravi ravi-li...@g8o.net wrote: On Apr 19, 2014, at 9:19 PM, // ravi ravi-li...@g8o.net wrote: Anyone know of a NodeJS based (JavaScript) equivalent of Graphite (http://graphite.wikidot.com) the metric

Re: [nodejs] Synchronous?

2014-04-19 Thread // ravi
to decide whether to block or not). Of course I realise we are speaking of node module calls not system calls. Regards, --ravi -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message

[nodejs] Node/Javascript alternative to Graphite?

2014-04-19 Thread // ravi
, --ravi -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups nodejs group. To post to this group, send email to nodejs@googlegroups.com

[nodejs] Re: Node/Javascript alternative to Graphite?

2014-04-19 Thread // ravi
On Apr 19, 2014, at 9:19 PM, // ravi ravi-li...@g8o.net wrote: Anyone know of a NodeJS based (JavaScript) equivalent of Graphite (http://graphite.wikidot.com) the metric/stats collection engine/server? I'd prefer a Node/JS version simply because I know I'll end up hacking the server

Re: [nodejs] Synchronous?

2014-04-18 Thread // ravi
any of these methods (i.e., your process is not going to block on the call), but rather, you are just structuring your code to avoid the callback hell / pyramid of doom. --ravi -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List

Re: [nodejs] How to kill callback by timeout?

2014-04-16 Thread // ravi
(but beyond the scope of this answer) apply, --ravi Is it possible to do something like this? function safeCallToSomeRemoteService(callback){ var remoteServiceResponded = false unsafeCallToSomeRemoteService(function(err, data){ remoteServiceResponded

Re: [nodejs] How to use require inculde in JS, node.js ?

2014-04-15 Thread // ravi
|| appContext.port; —ravi -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups nodejs group. To post to this group, send email to nodejs

Re: [nodejs] Re: What do I use for my client side development?

2014-03-22 Thread // ravi
To the OP: always consider Meteor (http://meteor.com/), even though at this point, once you have considered it, you may find it wanting (or daunting). --ravi -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting

Re: [nodejs] node.js and node-rest-client TypeError: Cannot read property 'tunnel' of undefined

2014-02-27 Thread // ravi
On Feb 27, 2014, at 10:43 AM, Josh Longbrake j...@studiobrainchild.com wrote: I am getting the error listed in the title when using the code posted below. This is based off of: https://www.npmjs.org/package/node-rest-client Can you send us the full stack trace? --ravi fyi

Re: [nodejs] node.js and node-rest-client TypeError: Cannot read property 'tunnel' of undefined

2014-02-27 Thread // ravi
?true:self.options.proxy.tunnel, The line on GitHub (https://github.com/aacerox/node-rest-client/blob/master/lib/node-rest-client.js): self.useProxyTunnel = (!self.useProxy || self.options.proxy.tunnel===undefined)?false:self.options.proxy.tunnel, --ravi -- -- Job Board: http

Re: [nodejs] node.js and node-rest-client TypeError: Cannot read property 'tunnel' of undefined

2014-02-27 Thread // ravi
. From your view does anything else look inherently wrong? Not related to the issue you report, no. Thanks for the fresh eyes! Glad to help, --ravi -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines

Re: [nodejs] how to perform an action at a set frequency?

2014-02-19 Thread // ravi
connection pool mechanism and obtain connections from the pool when you have queries to perform. --ravi -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed

Re: [nodejs] Re: sending multiple http requests

2014-02-16 Thread Ravi
On Sat, Feb 15, 2014 at 8:24 AM, mscdex msc...@gmail.com wrote: By disabling the use of any Agent, you're creating a separate socket for that request that is not apart of any connection pool. Ok, if i am reading it correctly, {Agent:'false'} disables any connection pooling, therefore

  1   2   >