[nodejs] Re: async callback using libuv not working

2017-05-26 Thread shahriar
Hi, The problem was these two lines var waitTill = new Date(new Date().getTime() + 3 * 1000); while(waitTill > new Date()){} This loop never allows the javascript main loop to run. I replaced it with a setTimeout and it is working. Thanks! On Wednesday, May 24, 2017 at 10:07:47 PM UTC-7,

[nodejs] Validating the fast-Csv headers

2017-05-26 Thread Hanuman Bandhu
Hi Friends , I stuck with reading a csv file using the fast -csv option . I need to validate the header names of csv file before uploading but I am not getting a way to do it .. Could you guys help me out . csv .fromStream(file, {headers :true}) .on("error", function(data){

Re: [nodejs] async callback using libuv not working

2017-05-26 Thread Ben Noordhuis
On Thu, May 25, 2017 at 3:33 AM, wrote: > Hello everyone, > > I have a node js service that calls into a native C library. The native > library, fire events repeatedly and continuously. These events are delivered > to a C callback function. My goal is to call a Javascript

[nodejs] gulp watch race condition, it keeps on changing my file

2017-05-26 Thread Muhammad Wasim
Hi, I am trying to write a gulp build process but i am stuck in race condition due to watch. I don't know how to overcome this problem. I am trying to watch html/js/ts changes, and using linker to insert script tags after compiling my code. When linker modifies html file, watch re-runs the whole

[nodejs] Using system proxy with socks5 module

2017-05-26 Thread shawn wilson
I'm trying to use node to edit http requests but also need to use a corporate proxy to get online. The socks5 module doesn't use the system exports - what's the easiest way to handle this? -- Job board: http://jobs.nodejs.org/ New group rules: