[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: http:

Re: [nodejs] Event Queue Mechanism

2015-05-17 Thread // ravi
on (but I am not sure). —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 sub

Re: [nodejs] Need help understanding requiring modules.

2015-05-13 Thread // ravi
s a webserver and attempts to > do 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,

[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

[nodejs] Management of non-V8 memory

2015-04-28 Thread // ravi
read up on? 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: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are

Re: [nodejs] REST Application and Web Application

2015-04-21 Thread // ravi
and if you are writing a real app (not a demo app to learn 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.githu

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

2015-04-15 Thread // ravi
;> the block.hello is not blocked; But if the block.hello is blocked in c++ >> code, the time point which function a will be executed again is much larger >> than 5000 milliseconds after block.hello is unblocked. > >> How to fix? > > I think the fix must be for block.

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

2015-04-14 Thread // ravi
lib/…… * App config is in /A/B/app1/config/…… 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 p

Re: [nodejs] automation script using node js

2015-04-01 Thread // ravi
ges 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: htt

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

2015-03-27 Thread // ravi
On Mar 27, 2015, at 1:06 PM, Zach Rollyson 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

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

2015-03-27 Thread // ravi
> On Mar 26, 2015, at 4:11 PM, Zach Rollyson 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

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

2015-03-26 Thread // ravi
On Mar 26, 2015, at 4:09 PM, Aria Stewart 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

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

2015-03-26 Thread // ravi
I already use Slack 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.git

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

2015-03-26 Thread // ravi
On Mar 24, 2015, at 1:38 PM, // ravi 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 a

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

2015-03-24 Thread // ravi
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. 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

Re: [nodejs] Getting started with Ponte

2015-03-21 Thread // ravi
get better 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: htt

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

2015-03-19 Thread // ravi
ports that are relevant 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 ru

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

2015-03-17 Thread // ravi
communications — check the socket.io docs 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 ru

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

2015-03-12 Thread // ravi
ing for a response, the last step will be executed. Using Q will indeed help you make them run in sequence. If you can can share the relevant code we can try to figure out what’s off. —ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#fil

[nodejs] Visit logging

2015-02-27 Thread // ravi
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-16 Thread // ravi
; the > Node.js Foundation has been discussed ? > > I don't believe it was discussed in public, but keep in mind that this was > just the announcement of their plans. > I don’t remember any discussion either. AFAIK this is a private decision made by Joyent. —ravi

Re: [nodejs] Re: Node.js foundation

2015-02-10 Thread // ravi
reach 0.12, 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://git

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-

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

2015-02-09 Thread // ravi
bove) 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 are subsc

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

2015-02-06 Thread // ravi
en rectified. Thank 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 bec

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 -

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

2015-01-23 Thread // ravi
306 on a remote server, 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/wi

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

2015-01-14 Thread // ravi
You are not creating 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-Li

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

2015-01-12 Thread // ravi
On Jan 12, 2015, at 11:00 AM, Alexander Praetorius 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

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

2015-01-12 Thread // ravi
k > 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://gis

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

2015-01-10 Thread // ravi
, new_car.snark()); Etc. Keep in mind the part played by require/module caching (if you return an object, it will be cached and returned from the cache at the next require — this may or may not be what you want: I use it as a way to load dependencies without passing them around).

[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 use case question

2014-12-09 Thread // ravi
tions programmatically in JS, 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://jo

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

2014-12-09 Thread // ravi
On Dec 9, 2014, at 2:09 PM, Matt 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 th

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

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

2014-12-09 Thread // ravi
se of mailing lists masked this to some extent, so there is the understandable hold out or hope that this mailing list can play 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 tr

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

2014-12-08 Thread // ravi
as a user 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/Mailin

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

2014-12-08 Thread // ravi
tes that detail my reasons for abandoning Ansible, etc. Apologies 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/

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

2014-12-08 Thread // ravi
29 393117901 393118080 393118246 Or approx 2s, 1s, 2s each. What does continue to puzzle me is that if the ‘os’ module is adding on a extra *100 to the time, then how is it reporting data at this level of granularity i.e., there should be a lot more trailing zeroes, since the OS does not report

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

2014-12-08 Thread // ravi
On Dec 8, 2014, at 10:17 AM, // ravi 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 tim

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

2014-12-08 Thread // ravi
On Dec 7, 2014, at 11:37 PM, // ravi wrote: > > On Dec 7, 2014, at 11:06 PM, // ravi 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-07 Thread // ravi
On Dec 7, 2014, at 11:06 PM, // ravi 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/co

[nodejs] os.cpus() and times

2014-12-07 Thread // ravi
iated! —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 G

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

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

2014-12-05 Thread // ravi
rs, is it worth bikeshedding after the bike has left 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: > &

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

2014-12-05 Thread // ravi
On Dec 6, 2014, at 12:04 AM, // ravi 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] Re: PHP to node.js

2014-11-19 Thread // ravi
e 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.p

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

2014-11-13 Thread // ravi
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-policy-md

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 wrote: > > > On Wed, Nov 12, 2014 at 7:52 PM, Vitaliy Feoktistov > mailto:vitaliy.feoktis...@gmail.com>> w

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

2014-11-11 Thread // ravi
the CPU cycles are spent, figure out if memory is leaking, 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/jo

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

2014-10-30 Thread // ravi
develop 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 g

Re: [nodejs] To check node_modules or not

2014-10-29 Thread // ravi
te 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/

[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/9

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
g git rather than any 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-polic

Re: [nodejs] request opinions on Node

2014-09-25 Thread // ravi
ons on why Node is important now a days( or it > lacks something that makes it a bad choice for some specific domain). Again, idiosyncratic: I think Node is important because it returns control back to the programmer (as described above). When I say Node, I mean the entire ecosystem: npm, Expr

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 wrote: > On Sep 15, 2014, at 10:09 AM, // ravi wrote: >> On Sep 15, 2014, at 1:01 PM, Alex Kocharin wrote: >>> >>> Promises just wrap callbacks. So you had callback hell, now you have >>> wrapped callback hell. N

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

2014-09-15 Thread // ravi
like code, I would suggest to use > generators and `co` module instead. I am waiting for the right time to start recommending generators+X to folks asking these sort of questions. I am not comfortable yet doing so, but I agree that anyone interested should take a look. --ravi --

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

2014-09-15 Thread // ravi
On Sep 15, 2014, at 12:50 PM, // ravi wrote: > > > Have you taken a look at Promises? Bluebird is widely considered the fastest > implementation. I found Q easier to understand and a bit better documented. > > https://github.com/kriskowal/q > https://github.com/petkaant

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

2014-09-15 Thread // ravi
red the fastest implementation. I found Q easier to understand and a bit better documented. https://github.com/kriskowal/q https://github.com/petkaantonov/bluebird --ravi -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy

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

2014-09-03 Thread // ravi
it works 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 in

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

2014-08-28 Thread // ravi
alled a 'socket') when both conditions are true: the pool max (for that target 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 connecti

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 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 Augu

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

2014-08-27 Thread // ravi
third request 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('

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

2014-08-23 Thread // ravi
lications 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 r

Re: [nodejs] HELP REGARDING MY NODE APP

2014-08-16 Thread // ravi
facility like cron: 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/ot

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

2014-08-13 Thread // ravi
e 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

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

2014-08-13 Thread // ravi
you can move the resp.end() inside the function(message) { } block. 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 multip

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

2014-08-04 Thread // ravi
gt; 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 rul

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

2014-08-04 Thread // ravi
not given 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/joy

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

2014-07-07 Thread // ravi
igure out 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-Post

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

2014-06-13 Thread // ravi
this does not render the field (whatever is enclosed in single quotes > gets rendered). > I tried other approaches: > {My Name} > {"My Name"} > But those didn't work either. I don't know a thing about Dust, but does this help? http://stackoverflow.com/question

Re: [nodejs] Is Node.js suitable?

2014-06-11 Thread // ravi
h that some of the feeling of being lightweight 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,

Re: [nodejs] node js and html

2014-06-10 Thread // ravi
consider a framework 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#f

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 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/function/

Re: [nodejs] Deployment techniques

2014-05-25 Thread // ravi
eb. All of this is in the context of non-PaaS environments like mine (i.e., 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

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

2014-05-24 Thread // ravi
heritance, etc? Are you going to use 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 O

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

2014-05-23 Thread // ravi
x27;s 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://gith

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

2014-05-23 Thread // ravi
On May 23, 2014, at 9:36 AM, // ravi wrote: > On May 22, 2014, at 8:08 PM, Stefano Cudini 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 t

Re: [nodejs] NodeJs application architecture - Need suggestion

2014-05-21 Thread // ravi
for job spooling, e.g., beankstalkd (http://kr.github.io/beanstalkd/), Kue (http://learnboost.github.io/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

Re: [nodejs] onload?

2014-05-19 Thread // ravi
ly required). Or load 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 usi

Re: [nodejs] onload?

2014-05-18 Thread // ravi
ady? Your modules may be doing asynchronous things during initialisation e.g, connecting to a DB. Can you start accepting clients and processing requests once your require()s are done? Depends on how you structure your code (*mumble*promise*mumble*). I hope I am not leading you down a side pat

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 wrote: > On Fri, May 16, 2014 at 10:27 AM, // ravi 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, sou

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

2014-05-16 Thread // ravi
ommands 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 bec

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

2014-05-13 Thread // ravi
her parts of your 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 --- Yo

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

2014-05-07 Thread // ravi
essage. Are you looking generally for information 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_fi

Re: [nodejs] Introducing a custom configuration to NodeJS

2014-05-06 Thread // ravi
base through the WebLogic REST API. You ask for material to go through, but it's not clear 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

Re: [nodejs] JSON REPL?

2014-05-06 Thread // ravi
ove is indeed what got me thinking :-). It's what I do and while trying 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 w

[nodejs] JSON REPL?

2014-05-06 Thread // ravi
", "k32" : "val32" } } json> cd "k3" json> show { "k31" : "val31", "k32" : "val32" } json> set k31 = val31new json> cd .. json> print k1.k31 "val31new" ... etc ... I want to check before

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

2014-05-03 Thread // ravi
tance 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, se

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

2014-05-01 Thread // ravi
e isn't > doing a great job. > This list is moderated? 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 Y

Re: [nodejs] Promisified node core api

2014-04-30 Thread // ravi
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 wrote: >>> >>> Probably I missed this discussion. Now as Promis

Re: [nodejs] Promisified node core api

2014-04-30 Thread // ravi
I'd have to wrap each node 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

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 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://jobs.node

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

2014-04-22 Thread // ravi
cify this inline in the code, using require.paths (IIRC), which was really nice, 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 ...

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

2014-04-20 Thread // ravi
ts, but doing the front-end the right way will need some thinking. --ravi > > On Sat, Apr 19, 2014 at 9:20 PM, // ravi wrote: > On Apr 19, 2014, at 9:19 PM, // ravi wrote: >> >> Anyone know of a NodeJS based (JavaScript) equivalent of Graphite >> (http:/

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

2014-04-19 Thread // ravi
On Apr 19, 2014, at 9:19 PM, // ravi 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

[nodejs] Node/Javascript alternative to Graphite?

2014-04-19 Thread // ravi
r now. Regards, --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 n

Re: [nodejs] Synchronous?

2014-04-19 Thread // ravi
her 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 because you

Re: [nodejs] Synchronous?

2014-04-19 Thread // ravi
If you have more questions specifically about Q promises, you may also wish to join the Q mailing list (https://groups.google.com/forum/#!forum/q-continuum) and ask there. Regards, --ravi -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/no

  1   2   >