Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Marak Squires
Featuring the all new resource engine! https://github.com/bigcompany/resource And no one is allowed to use it, especially Stan and Kyle. On Wed, Feb 6, 2013 at 7:58 AM, Eric Muyser wrote: > Reverse psychology > > > On Tue, Feb 5, 2013 at 9:29 PM, Harald Hanche-Olsen > wrote: > >> [Angel Java

Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Angel Java Lopez
Interesting! I still need to get the uses cases (why not direct JavaScript/NodeJs/require?) maybe I should read in detail the link at bottom https://github.com/bigcompany/resources I guess the "new thing" is the persistence of a resource: the "model" added to a object as a resource helps to

Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Arunoda Susiripala
> And no one is allowed to use it, especially Stan and Kyle. > So this is not open source? > On Wed, Feb 6, 2013 at 7:58 AM, Eric Muyser wrote: > >> Reverse psychology >> >> >> On Tue, Feb 5, 2013 at 9:29 PM, Harald Hanche-Olsen >> wrote: >> >>> [Angel Java Lopez (2013-02-05 11:31:00 UTC)] >>

Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Marak Squires
I wouldn't bother trying to figure it out, it's probably not for you. On Wed, Feb 6, 2013 at 4:15 PM, Angel Java Lopez wrote: > Interesting! > > I still need to get the uses cases (why not direct > JavaScript/NodeJs/require?) maybe I should read in detail the link at > bottom > > https://gith

Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Ruben Tan
I don't get it. Why would you announce something on this mailing list and then tell us that it's not for us or something? Do you want to give us a little insight as to what use cases will this module cater to? On Wednesday, February 6, 2013 6:53:00 PM UTC+8, Marak Squires wrote: > > I wouldn't

Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Marak Squires
Not really. On Wed, Feb 6, 2013 at 4:38 PM, Ruben Tan wrote: > I don't get it. Why would you announce something on this mailing list and > then tell us that it's not for us or something? > > Do you want to give us a little insight as to what use cases will this > module cater to? > > > On Wednes

[nodejs] Need advice

2013-02-06 Thread Ismael Gorissen
Hi, I use Node.js for some months now and I created a module named Node-StringsParser . Since I started to learn the JavaScript language and Node.js 6 months ago, I need some advice : - how to test well the module - on my code (if I cod

[nodejs] Re: Need advice

2013-02-06 Thread Ruben Tan
I would recommend these: 1. mocha 2. chai Go google these modules in NPM, they not only make testing easy, but readable as well. Now next, testing is a very deep topic. First question you gotta ask is, what do you want to test? Or more specifically, which part of your module do you ABSO

Re: [nodejs] Need advice

2013-02-06 Thread Angel Java Lopez
Nice, I love parsers! ;-) Ismael, can you point me your use cases? I don't sure what is a Key, Value, Comment, etc... The states are extensible? Do you use async? Or only callbacks? I see a require('async') in your code, but not sure in which case is needed. Node.js is a great tool, and JavaScr

[nodejs] [RFC] Add out-of-tree build support

2013-02-06 Thread TJ
I needed the facility to build to an out-of-tree location rather than the hard-code "out/" directory in the source tree. So far it works with all the test scenarios I've needed it for so I thought I'd put it out for wider testing and feedback. I'm sure there are use-cases and platform gotchas t

[nodejs] Re: Fujitsu's new proprietary protocol claiming 30x speed of TCP

2013-02-06 Thread tom
What's the test bench? It's interesting to compare node-httpp with Fujitsu's new proprietary protocol . https://github.com/InstantWebP2P/node-httpp Best regards Tom On Thursday, January 31, 2013 11:44:07 AM UTC+8, Tristan Slominski wrote: > > Came across this. Seems the Node.js community wo

[nodejs] Re: [ANN] node-chrome: a very simple module for building desktop apps

2013-02-06 Thread tom
it's cool to combine node.js and chrome binary via websocket. Best regards Tom On Tuesday, February 5, 2013 5:04:26 AM UTC+8, hij1nx wrote: > > *node-chrome(3)* > A tiny module for building desktop apps. It's really simple and uses the > chrome runtime. > > *Here's the module.* > https://githu

Re: [nodejs] Stream2 API, pull based transform

2013-02-06 Thread Joe Ferner
Looking through your stream-parser module is looks like it internally buffers the incoming data. I forgot to mention that the files I'm reading are many gigabytes in size so I think I really need a pull based stream solution. I've been able to accomplish this using syntax like: parser.createPar

Re: [nodejs] [RFC] Add out-of-tree build support

2013-02-06 Thread Ben Noordhuis
On Wed, Feb 6, 2013 at 2:52 PM, TJ wrote: > I needed the facility to build to an out-of-tree location rather than the > hard-code "out/" directory in the source tree. > > So far it works with all the test scenarios I've needed it for so I thought > I'd put it out for wider testing and feedback.

[nodejs] Loadbalancing multiple MySQL connections

2013-02-06 Thread lancore
Hi, I need to create a pool of connections to multiple MySQL DBs (some of them read-only), and balance the load between them. MySQL Proxy (http://dev.mysql.com/downloads/mysql-proxy/) pretty much sounds exactly like the tool I need, but for various reasons I can't use it. Before I implement my

Re: [nodejs] [RFC] Add out-of-tree build support

2013-02-06 Thread TJ
On 06/02/13 14:55, Ben Noordhuis wrote: > On Wed, Feb 6, 2013 at 2:52 PM, TJ wrote: >> I needed the facility to build to an out-of-tree location rather than the >> hard-code "out/" directory in the source tree. >> >> So far it works with all the test scenarios I've needed it for so I thought >>

Re: [nodejs] [RFC] Add out-of-tree build support

2013-02-06 Thread Micheil Smith
Minor thought on this: Isn't the general "change the build output directory" done with a PREFIX flag? – Micheil On 06/02/2013, at 2:55 PM, Ben Noordhuis wrote: > On Wed, Feb 6, 2013 at 2:52 PM, TJ wrote: >> I needed the facility to build to an out-of-tree location rather than the >> hard-code

Re: [nodejs] Loadbalancing multiple MySQL connections

2013-02-06 Thread Fadrizul H
Hi Ian, have a look at this module called generic-pool. https://github.com/coopernurse/node-pool You can use it to store MySQL connections. On Feb 6, 2013 10:55 PM, "lancore" wrote: > Hi, > > I need to create a pool of connections to multiple MySQL DBs (some of them > read-only), and balance t

Re: [nodejs] Loadbalancing multiple MySQL connections

2013-02-06 Thread Diogo Resende
A Pool feature just landed mysql module a few days ago. You can start there :) -- Diogo Resende On Wednesday, February 6, 2013 at 14:53 , lancore wrote: > Hi, > > I need to create a pool of connections to multiple MySQL DBs (some of them > read-only), and balance the load between them. > MyS

Re: [nodejs] [RFC] Add out-of-tree build support

2013-02-06 Thread Ben Noordhuis
On Wed, Feb 6, 2013 at 4:04 PM, TJ wrote: > On 06/02/13 14:55, Ben Noordhuis wrote: >> On Wed, Feb 6, 2013 at 2:52 PM, TJ wrote: >>> I needed the facility to build to an out-of-tree location rather than the >>> hard-code "out/" directory in the source tree. >>> >>> So far it works with all the t

[nodejs] DLTS core for node

2013-02-06 Thread sgaffar . nodejs
We have developed DTLS core for node just like tls core in node. We want to contribute it to nodejs community, please suggest. -- -- 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] [RFC] Add out-of-tree build support

2013-02-06 Thread TJ
On 06/02/13 15:05, Micheil Smith wrote: > Minor thought on this: Isn't the general "change the build output directory" > done with a PREFIX flag? Well GNU configure uses flags of the form "--*dir" where * has some contextual meaning but those suggested only cover installation targets rather than

Re: [nodejs] Loadbalancing multiple MySQL connections

2013-02-06 Thread Envy
The pooling will certainly help. But for the "multiple server" part I guess I have to write my own loadbalancer, at least if I want to distinguish between read-only and writable connections On Wednesday, February 6, 2013 4:08:17 PM UTC+1, Diogo Resende wrote: > > A Pool feature just landed mysql

Re: [nodejs] OSX, a module, x86_64, i386, and a node compiled as a universal binary.

2013-02-06 Thread Jorge Chamorro
On 05/02/2013, at 22:14, Nathan Rajlich wrote: > Oh please, any well maintained native module migrated to node-gyp months ago. > If you haven't yet, you should. > > I don't really get what you're complaining about... *YOU* are breaking the APIs, not me. My module built and ran fine until: - Yo

Re: [nodejs] OSX, a module, x86_64, i386, and a node compiled as a universal binary.

2013-02-06 Thread Jorge Chamorro
On 05/02/2013, at 20:29, Nathan Rajlich wrote: > Well v0.4.x is an even numbered release, so it is technically stable. I'm > sure some older running applications are still on those versions and that's > ok, they're just probably not going to be compatible with a lot of the newer > native addons

Re: [nodejs] Re: [ANN] node-chrome: a very simple module for building desktop apps

2013-02-06 Thread Scott Elcomb
On Tue, Feb 5, 2013 at 3:58 PM, Paolo Fragomeni wrote: > Sounds like you have a specific use case/requirement, use the tool thats > right for you :) I spent a little time with node-chrome last night, thanks for adding to the project description. Time permitting, I'm hoping to send a pull request

Re: [nodejs] DLTS core for node

2013-02-06 Thread Daniel Rinehart
I'd start here: https://github.com/joyent/node/wiki/Contributing -- Daniel R. [http://danielr.neophi.com/] On Wed, Feb 6, 2013 at 10:07 AM, wrote: > We have developed DTLS core for node just like tls core in node. > > We want to contribute it to nodejs community, please suggest. > > -- > --

[nodejs] Native NodeJS on IOS - ./configure issue

2013-02-06 Thread Ilya Rusanen
I'm trying to install native NodeJS on iOS 6.1 on a jaibroken iPad 3. I've installed apt, custom python 2.7.3, GNU C Compliler (with third-party libgcc), modified nodejs ./configure to work with gcc, but have some problems during configure: #check if we have lastest python ipad:/var/mobile/nod

[nodejs] Re: The best tool for stress and load test on node.js application

2013-02-06 Thread dave
You may want to give Siege a try. http://www.joedog.org/siege-home/ Cheers, ~Dave On Sunday, February 3, 2013 11:31:57 AM UTC-6, xyz wrote: > > I like to know the best stress and load testing tool for node.js > applications. > Thanks, > -- -- Job Board: http://jobs.nodejs.org/ Posting guide

Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Mark Hahn
I can't tell from the docs what this is used for. Can you explain? On Wed, Feb 6, 2013 at 2:07 AM, Marak Squires wrote: > Featuring the all new resource engine! > > https://github.com/bigcompany/resource > > And no one is allowed to use it, especially Stan and Kyle. > > On Wed, Feb 6, 2013 at 7

Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Dan Milon
«No. Even if I did, you wouldn't understand.» Obviously the guy is not in a mood for explanations. Let's all move on. On 02/06/2013 07:40 PM, Mark Hahn wrote: > I can't tell from the docs what this is used for. Can you > explain? > > > On Wed, Feb 6, 2013 at 2:07 AM, Marak Squires > mailto:mar

Re: [nodejs] Stream2 API, pull based transform

2013-02-06 Thread Nathan Rajlich
It only buffers for `n` bytes when you call _bytes(n, cb). Usually that's a small payload like a frame header or similar. If you're just passing through a lot of bytes untouched then you call the _passthrough(n, cb) function, where absolutely no buffering happens. On Wed, Feb 6, 2013 at 6:26 AM, J

[nodejs] Version 0.8.19 (Stable)

2013-02-06 Thread Isaac Schlueter
2013.02.06, Version 0.8.19 (Stable) * npm: Upgrade to v1.2.10 * zlib: pass object size hint to V8 (Ben Noordhuis) * zlib: reduce memory consumption, release early (Ben Noordhuis) * buffer: slow buffer copy compatibility fix (Trevor Norris) * zlib: don't assert on malformed dictionary (Ben Noor

Re: [nodejs] Stream2 API, pull based transform

2013-02-06 Thread Angel Java Lopez
The first time I read your first email, my first thought was: why not: fs.createReadStream('file').pipe(parser); parser.pipe(processor); But maybe I missed something you want from the new Stream2 On Wed, Feb 6, 2013 at 11:26 AM, Joe Ferner wrote: > Looking through your stream-parser module is

Re: [nodejs] Stream2 API, pull based transform

2013-02-06 Thread Isaac Schlueter
Angel, pipe() returns the dest. So, a.pipe(b).pipe(c) ==> (a.pipe(b), b.pipe(c), c) Joe, Nathan is totally the guy to talk to about this. He's been banging away at streams2 parsers for a while now. On Wed, Feb 6, 2013 at 9:53 AM, Angel Java Lopez wrote: > The first time I read your first emai

[nodejs] http/ https server on same port

2013-02-06 Thread V'Raj Kanwade
I am building a proxy server which needs to listen for both http and https proxy on same port. http.createServer does not call response handler for https traffic. So I created the server using net.createServer. The question I have is, how can I leverage the http functionality once I have the in

Re: [nodejs] http/ https server on same port

2013-02-06 Thread Alex Kocharin
 In order to do that you can create a tcp server (net module) and listen for any requests on a port. If it is plaintext request it's http, otherwise it's https. Simple enough. You can even put ssh server on the same port if you aren't so scary of a witchcraft :) So, the general idea is to create th

Re: [nodejs] OSX, a module, x86_64, i386, and a node compiled as a universal binary.

2013-02-06 Thread Nathan Rajlich
You can actually keep support for your old node versions if you keep your wscript file hanging around. Just *also* add a binding.gyp file. Older versions of node will still compile using node-waf and versions of npm that have node-gyp will compile using that. Dual build system support. For example

Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Eric Muyser
Big looks like a set of wrappers to make using existing Node.js modules together easier and more consistent, with better documentation. It's like wrapping a Disqus API module and Facebook Graph API module in your own framework, so it can be used consistently in other areas of your framework. In som

Re: [nodejs] http/ https server on same port

2013-02-06 Thread Mark Hahn
Use https.createServer On Wed, Feb 6, 2013 at 11:26 AM, Alex Kocharin wrote: > > In order to do that you can create a tcp server (net module) and listen > for any requests on a port. If it is plaintext request it's http, otherwise > it's https. Simple enough. > > You can even put ssh server on

[nodejs] Re: http/ https server on same port

2013-02-06 Thread Bradley Meck
A long time ago I built a proof of concept for something like this: https://github.com/bmeck/kitsune After thinking about maintainability I decided to avoid doing this sort of behavior but left the code up as an example. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://gi

[nodejs] Mongoose DBrefs - Cast to ObjectId failed for value

2013-02-06 Thread Declan Elcocks
I have a Team Schema holding details about teams, and a Match Schema to store these teams in. I am trying to make it so that the home/away teams in the Match Schema are references to the Team object. I have put my code below, I'm getting an error when saving the Team but I can't help but feel

[nodejs] Wrapping a shared library

2013-02-06 Thread Totte Karlsson
Hi, Where can I find a good tutorial on how to wrap a C shared library? -totte -- -- 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" gro

Re: [nodejs] [RFC] Add out-of-tree build support

2013-02-06 Thread TJ
On 06/02/13 15:05, Micheil Smith wrote: > Minor thought on this: Isn't the general "change the build output directory" > done with a PREFIX flag? I thought about inverting the logic since Gyp was originally meant to be able to support out-of-tree builds by starting in the build directory. That

[nodejs] install script for binary distribution on linux

2013-02-06 Thread agass
Hi, I just downloaded the binary distribution v0.8.19 for 64bit linux. While I can untar the file and execute the executable, I am unclear how I should install onto my computer. I understand that I can untar it into /usr/local but that might not be the proper location and then non of the man pa

Re: [nodejs] install script for binary distribution on linux

2013-02-06 Thread TJ
On 06/02/13 21:44, ag...@ctepl.com wrote: > Hi, > > I just downloaded the binary distribution v0.8.19 for 64bit linux. While I > can untar the file and execute the executable, I am unclear how I should > install onto my computer. I understand that I can > untar it into /usr/local but that might

Re: [nodejs] install script for binary distribution on linux

2013-02-06 Thread Ben Noordhuis
On Wed, Feb 6, 2013 at 10:44 PM, wrote: > Hi, > > I just downloaded the binary distribution v0.8.19 for 64bit linux. While I > can untar the file and execute the executable, I am unclear how I should > install onto my computer. I understand that I can untar it into /usr/local > but that might not

[nodejs] Re: Need advice

2013-02-06 Thread Ismael Gorissen
What do you want to test ? I need to test the performance and memory usage of my modules. I you can explain more about TDD it would be nice :) Thank you Le mercredi 6 février 2013 13:30:17 UTC+1, Ruben Tan a écrit : > > I would recommend these: > >1. mocha >2. chai > > Go google these mo

Re: [nodejs] Need advice

2013-02-06 Thread Ismael Gorissen
So I need to parse .strings file. These files are created for the localization of mobile application on iOS. A .strings file can contain multiple lines comment (/* */ or /** */), simple line comment (//), keys and the associated values ("keyname" = "keyvalue";). For this I thought about state p

Re: [nodejs] Re: http/ https server on same port

2013-02-06 Thread Isaac Schlueter
Why would you want to do this? Why wouldn't you want http on :80 and https on :443, so that you have https://yourserver.com and http://yourserver.com instead of http://blah.com and https://blah.com:80/ which looks funny and strange? Do something like this: http.createServer(handler).listen(80);

Re: [nodejs] install script for binary distribution on linux

2013-02-06 Thread agass
Thanks for the feedback, I was just not sure if there was anything else I should consider. I opted for the approach to untar the binary distribution into /usr/local/node-v0.8.19-linux-x64, then created a symbolic link to this directory to /usr/local/node so that I can easily switch releases. T

Re: [nodejs] Loadbalancing multiple MySQL connections

2013-02-06 Thread Bartosz Raciborski
You just inspired me to write a module for this: https://github.com/racbart/node-clusterpool It's basically a cluster of pools. You put multiple slave servers into the cluster and there is a separate connection pool created for each server. Cluster-pool manages this and rotates requests for sla

Re: [nodejs] Wrapping a shared library

2013-02-06 Thread Joe Tremblay
Totte -- I'm just getting started in that area too. Take a look at the Node Addons page @ http://nodejs.org/api/addons.html. I just made a simple example (largely following the Node Addons page) with the steps and code shown @ http://jltrem.com/content/simple-example-nodejs-addon-glue-c-javascript

Re: [nodejs] http/ https server on same port

2013-02-06 Thread Arunoda Susiripala
I think he is looking for this. On Thursday, February 7, 2013, Isaac Schlueter wrote: > Why would you want to do this? > > Why wouldn't you want http on :80 and https on :443, so that you have > https://yourserver.com and http://yourserver.com instead of > http://blah.com and https://blah.com:80/

[nodejs] Re: Wrapping a shared library

2013-02-06 Thread mscdex
You may also find these links helpful: https://github.com/kkaefer/node-cpp-modules http://nikhilm.github.com/uvbook/ https://github.com/joyent/libuv/blob/master/include/uv.h -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Gu

Re: [nodejs] Re: Wrapping a shared library

2013-02-06 Thread Arunoda Susiripala
Wow. This is what I was looking for sometime. Awesome. Thanks. On Thu, Feb 7, 2013 at 10:15 AM, mscdex wrote: > You may also find these links helpful: > > https://github.com/kkaefer/node-cpp-modules > http://nikhilm.github.com/uvbook/ > https://github.com/joyent/libuv/blob/master/include/uv.h >

[nodejs] Re: http/ https server on same port

2013-02-06 Thread V'Raj Kanwade
Ok. Let me rephrase the question: I am inside connectionHandler of net.createServer. Now when I determine the data from client is HTTP request, I want to convert it to HTTPRequest object so that I can leverage the HTTP headers, status code parsing etc. It is some client requirement where the pr

Re: [nodejs] http/ https server on same port

2013-02-06 Thread V'Raj Kanwade
I think you forgot link/ info. On Wednesday, 6 February 2013 18:40:27 UTC-8, Arunoda Susiripala wrote: > > I think he is looking for this. > > On Thursday, February 7, 2013, Isaac Schlueter wrote: > >> Why would you want to do this? >> >> Why wouldn't you want http on :80 and https on :443, so th

Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Marak Squires
No, that's not quite right at all. Almost no one here is going to be able to grasp what's going on, so I just wouldn't bother. On Thu, Feb 7, 2013 at 1:02 AM, Eric Muyser wrote: > Big looks like a set of wrappers to make using existing Node.js modules > together easier and more consistent, with

Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Ruben Tan
In this case, should we just lock this thread or delete it, since no further discussion is necessary, and the current context has nothing to do with the original question? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Gui

Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Arunoda Susiripala
Yes. Agree. I mute the thread right now. On Thu, Feb 7, 2013 at 11:41 AM, Ruben Tan wrote: > In this case, should we just lock this thread or delete it, since no > further discussion is necessary, and the current context has nothing to do > with the original question? > > -- > -- > Job Board: ht

Re: [nodejs] Loadbalancing multiple MySQL connections

2013-02-06 Thread Ruben Tan
Does it make sense to leverage existing messaging technologies like 0MQ or something instead, since most of them have built-in load-balancing? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this mess

[nodejs] Re: Federation: A Distributed Message Network Module

2013-02-06 Thread Ruben Tan
I think a way to build on this further is to integrate with 0MQ, since the strength of it compared to axon is that it is language agnostic. this means that you can connect services written in python to your federation, as long as it speaks the same message protocol. What do you think? -- --

Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Marak Squires
I'm not the one who posted the link to BIg and started asking questions. On Thu, Feb 7, 2013 at 11:41 AM, Ruben Tan wrote: > In this case, should we just lock this thread or delete it, since no > further discussion is necessary, and the current context has nothing to do > with the original quest

Re: [nodejs] Re: Federation: A Distributed Message Network Module

2013-02-06 Thread Jacob Groundwater
> I think a way to build on this further is to integrate with 0MQ, since the > strength of it compared to axon is that it is language agnostic. this means > that you can connect services written in python to your federation, as long > as it speaks the same message protocol. Absolutely Ruben. New