[nodejs] Re: Node.js and firebird embedded

2016-04-30 Thread 'Robert Walther' via nodejs
How you get it working? I found no embedded.lib in folder structure? Thanks!

Am Freitag, 8. August 2014 08:07:47 UTC+2 schrieb tes...@gmail.com:
>
> Thank you! It works!
>
> On Wednesday, August 6, 2014 11:00:05 AM UTC+2, Adrian Marius Popa wrote:
>>
>> For point 2 after you clone the node-firebirdlibfbclient 
>> you need to replace in binding.gyp
>>
>> https://github.com/xdenser/node-firebird-libfbclient/blob/master/binding.gyp
>> lfbclient with lfbembed and then compile and install it with 
>> npm install from that dir 
>>
>> similar like in this article 
>> http://mapopa.blogspot.ro/2011/01/nodejs-and-firebird-installing-on.html
>>
>>
>> On Tuesday, August 5, 2014 10:21:15 AM UTC+3, tes...@gmail.com wrote:
>>>
>>> Hello! 
>>>
>>>  Is anybody have idea how to connect with firebird embedded under 
>>> nodejs? I think about two possibilities:
>>> 1. Use ODBC firebird driver in node-odbc module but i don't know is odbc 
>>> driver use embedded
>>> 2. Use node-firebird-libfbclient and replace libfbclient by 
>>> libfbembedded but i don't know how.
>>>  Maybe somebody have better idea? I will be very grateful for help!
>>>
>>

-- 
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 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/69a25aa7-454b-423d-86d3-8c0ec41bb1c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [nodejs] Re: Delay a Node Stream Transform process

2016-04-30 Thread Kayode Odeyemi
I'm using objectMode.

Do I need to do anything differently? I sometimes get a 502 error during
the transform process, which proves to me that the web server handling the
HTTP request is taking too much that it can handle. So, is this a
performance tuning task that should be done on the web server side of
things? - Like increasing the web server response timeout?

If I increase the web server response timeout, will the client wait for it
to finish?

Thanks Zlatko

On Wed, Apr 27, 2016 at 10:21 AM, Zlatko  wrote:

> Depending on how you implemented the transform stream, the pipeline should
> be balancing itself automatically. How did you implement the stream? Do you
> use object mode? Did you try to do something with highWaterMark?
>
>
>
> On Tuesday, April 26, 2016 at 6:34:05 PM UTC+2, Kayode Odeyemi wrote:
>>
>> Hi,
>>
>> I'm streaming data using the following data flow:
>>
>> Source(Database) -> Transform (An HTTP request) -> Sink(Database)
>>
>> Obviously the HTTP request task is a blocking task. At the moment, it
>> seems the Source is faster than the Transform process.
>>
>> How do I make the Transform process delay or better still work in tandem
>> with the Source or much better make the source delay until the current
>> transform task finishes?
>>
>> Appreciate your help.
>>
>> Thanks
>>
>> --
> 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
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nodejs+unsubscr...@googlegroups.com.
> To post to this group, send email to nodejs@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nodejs/791f9e72-c9e6-458f-bad7-04496ffd9505%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAPbrmCu1B3iFeXQNgKTX9WAQV6PTgEvhTdfXo6cGH%3D0t6ZPG7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[nodejs] Re: REST API

2016-04-30 Thread Nainterceptor
Hi,

Where is your render ? I think the good place would be in the 'end' event 
of your res var. Else, at the tick of your render, you don't have the 
result of your request. 

Regards,
Gaël

Le mercredi 27 avril 2016 17:05:43 UTC+2, Sirine Ibn Fraj a écrit :
>
> Hello everyone ,
>  
> I am trying to retrieve data from a REST API in the server side (*.js) and 
> display it in my view (*.jade) 
>  
>
> I was able to get the data but was not able to send it to the view . 
> This is how my code looks like : 
>
>
>  var reqGet = https.request(optionsget, function(res) {
> console.log("statusCode: ", res.statusCode);
>   res.on('data', function(d) {
>   console.info('GET result:\n');
> 
> BugData =d ;
> console.log(d);  
> 
> }); 
> 
> }); 
>  
>   reqGet.end();
>
>
> BugData (was defined before )is the variable i am trying to send to the 
> view but for some reasons it is empty and does not contain the variable 'd' 
>
>
> Does anyone know why or how can i solve this ? 
> Thanks 
>

-- 
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 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/3220993c-2eed-4a75-a0e1-edfd2f977261%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [nodejs] How to track object allocations in node.js?

2016-04-30 Thread Haitao Li
Hi Ben, thanks for your reply. Somehow I didn't get the notification for 
it. I've enabled logging and found that it's MarkSweepCompact that's taking 
long. In each nodejs process in the past one hour, MarkSweepCompact occurs 
almost exactly once per minute. About 1/3 of them take longer than 100ms. 
Because my project is a service to other internal nodejs apps, a request 
that takes more than 100ms to finish returns ETIMEDOUT on client side. I'm 
willing to sacrifice average response time a bit to reduce max response 
time. Can I reduce max_old_space_size to make MarkSweepCompact run more 
often but quicker each time?

Thanks

On Sunday, February 21, 2016 at 6:25:19 AM UTC-8, Ben Noordhuis wrote:
>
> On Sat, Feb 20, 2016 at 7:37 PM, Haitao Li  
> wrote: 
> > I have a node.js app with dependencies on 50+ modules. A worker process 
> > consumes about 1G memory, as shown in RES column of "top" command 
> output. 
> > CPU load is light. Ever since I upgraded node.js from 0.10 to 4.2.3, I 
> > noticed the response time increased quite a bit. I can't totally blame 
> > nodejs because I also upgraded a few modules with it. Most requests are 
> > completed within 100ms, but a fraction of them can take more than 300ms. 
> > During the first couple of hours after server starts, everything looks 
> > normal. Then delays start to occur at different places. That makes me 
> > believe it's related to memory usage. CPU profiling didn't reveal 
> anything 
> > interesting. 
> > 
> > 
> > Questions: 
> > 
> > 1. Can GC cause delays of more than 100ms? 
>
> Yes, it can.  Run with `--trace_gc` (and perhaps `--trace_gc_verbose`) 
> to find out if that happens.  It prints collection times to stdout. 
>
> > 2. How do I find out what objects are allocated for processing one 
> request? 
> > If there is a way to disable gc, then I can take snapshots before and 
> after 
> > the request to compare. But if gc kicks in during that process I lose 
> track 
> > of what were allocated then subsequently released by gc. 
>
> There is no way to completely disable the garbage collector but you 
> can (indirectly) tweak its frequency through the 
> `--max_semi_space_size=` and `--min_semi_space_size=` flags 
> (and, to some extent, `--max_old_space_size=` too.)  A larger new 
> space means fewer minor garbage collection cycles. 
>
> If you combine that with `--expose_gc` and call gc() at opportune 
> times, you have some influence on when the garbage collector runs. 
> Hope that helps! 
>

-- 
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 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/d5c9fba2-ef41-44c4-9bfb-9601c20a64b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[nodejs] Which version is the latest LTS? 4.4.3 or 4.2.0

2016-04-30 Thread Lucas
On the LTS schedule on github it looks like 4.2.0 is the latest LTS 
(https://github.com/nodejs/LTS#lts_schedule)

But on the homepage it says 4.4.3 is the latest LTS (https://nodejs.org/en/)

-- 
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 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/d93a2650-e4ad-4407-b8b8-11504908b166%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[nodejs] Re: REST API

2016-04-30 Thread Zlatko


On Wednesday, April 27, 2016 at 5:05:43 PM UTC+2, Sirine Ibn Fraj wrote:
>
> Hello everyone ,
>  
> I am trying to retrieve data from a REST API in the server side (*.js) and 
> display it in my view (*.jade) 
>  
>
> I was able to get the data but was not able to send it to the view . 
> This is how my code looks like : 
>
>
>  var reqGet = https.request(optionsget, function(res) {
> console.log("statusCode: ", res.statusCode);
>   res.on('data', function(d) {
>   console.info('GET result:\n');
> 
> BugData =d ;
> console.log(d);  
> 
> }); 
> 
> }); 
>  
>   reqGet.end();
>
>
> BugData (was defined before )is the variable i am trying to send to the 
> view but for some reasons it is empty and does not contain the variable 'd' 
>
>
> Does anyone know why or how can i solve this ? 
>
>

I will assume that your console.log(d) line displays expected results.

But there's another question: where is your jade and and how do you call 
the render function? Without seeing those, especially the part where you 
call render (together with the BugData part), we cannot help you.
 

-- 
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 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/db3f53d0-0c62-4155-afe9-8e0aa0ca1a85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.