[nodejs] Re: finding modules matching a name glob

2012-04-22 Thread phidelta
The problem with doing this via npm is that npm works with the
dependencies from the package.json which is a problem for plugins,
since they are seldom known at the time the package.json is writeen.

I have done something like this for my app. What I ended up doing is
simply defining a folder which all plugins have to be in.

function requirePlugins(plugindir) {
  require('fs').readdirSync(plugindir).map(function(item) {
return require('path').resolve(plugindir, item);
  }).forEach(function(plugin) {
if (/\.plugin$/.test(plugin)) require(plugin);
  });
}

on start-up I simply call

requirePlugins(require('path').resolve('./plugins'));

This avoids traversing a billion directories, and does what you need.
It is synchronous of course, but that is true for require anyhow and
does not matter much since it is ever only called on start-up.

Regards, Philipp

On Apr 21, 8:04 pm, Mike Pilsbury mike.pilsb...@gmail.com wrote:
  So doing an `npm ls` from a process is the only way to go?  Whatever it
  takes.

  It looks 
  likehttp://npmjs.org/doc/README.html#Using-npm-Programmaticallyoffers

 another option.

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Examples of C++ modules, for Node.js

2012-04-22 Thread pconstr
Hi Ryan,

I found this (http://kkaefer.github.com/node-cpp-modules/)
presentation helpful to get started with c++ modules.
It includes good examples (https://github.com/kkaefer/node-cpp-
modules) but covers building with node-waf only, not gyp.

-Carlos

On Apr 22, 4:50 am, Ryan r...@rycole.com wrote:
 Hello,

 I'm learning how to write C++ modules, for Node.js. I'm sort of
 brute-forcing my learning by looking at examples, referencing the
 documentation for v8 and trial and error. The only two modules that I can
 seem to think of, as a reference, are hiredis-node and node.bcrypt.js. Both
 have helped me get to where I am now, which is able to compile a base
 skeleton module, using node-gyp. Are there any other modules that are
 written in C++ that would be simple + good to reference?

 For example, I'm currently trying to write a module that simply wraps and
 exposes a class from an existing third-party lib, HDF5. I've got it all
 written to the point where I think I am supposed to initialize an object of
 that class I want to expose, but when I include the code to initialize it,
 I cannot `require` it from within Node. It will compile, but I cannot
 require it. I do not think it is actually compiling properly. The HDF5 lib
 comes with a special wrapper binary around g++ that sets up the compile
 environment for you, so I guess I need to figure out how to tell node-gyp
 to use that.

 My code is here, if anyone wants to take a 
 peek:https://github.com/ryancole/node-hdf5

 Thanks

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] updating my UI when my server got a message via socket.io

2012-04-22 Thread josh
I am building 2 separate express sites:
clients website - visitors can talk to me (the admin of the site) via
chat (1 on 1 only. they can't see each other).
admin website - for me, the admin, to see all current conversations
and the ability to reply to whatever user I want.

I am using socket.io to emit messages from the clients website to the
admin website.

Is there a way to update the Admin UI whenever the admin site receives
a message?
Is there a way from the UI to emit a message back to the client's
browser?
Is there a problem with the design of my sites? maybe i should have 3
separate apps and not 2 (so the socket.io server will stand on it's
own).

Any other alternatives/suggestions would be great.
Thanks!

this code is part of the Admin server:

  basket = {}; // holds a hash of sockets

  socket.on('msg', function (data) {
socket.get('nickname', function (err, name) {
  console.log('Chat message by ', name, ' saying', data.text);
  var to = basket[name];
   // i don't want to send this from here. i want the admin to see
all messages from different users
   // and he should be able to reply whenever he wants to
  //to.emit('msg', { text: what's up  + name });
});
  });
});

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Examples of C++ modules, for Node.js

2012-04-22 Thread rhasson
Just to add to Nathan's comments, you're missing a libraries that points 
to the the HDF5 shared library that was compiled separately.  for example: 
 'libraries': ['/home/user/hdf5/lib/hdf5.so']

Also, I noticed that when compiling with node-gyp (which I love btw) you 
need to set LD_LIBRARY_PATH environment variable to the directory where the 
HDF5 shared library is located.  for example:   
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/hdf5/lib

after you do that, try building your project again.

Roy

On Saturday, April 21, 2012 9:50:49 PM UTC-4, Ryan Cole wrote:

 Hello,

 I'm learning how to write C++ modules, for Node.js. I'm sort of 
 brute-forcing my learning by looking at examples, referencing the 
 documentation for v8 and trial and error. The only two modules that I can 
 seem to think of, as a reference, are hiredis-node and node.bcrypt.js. Both 
 have helped me get to where I am now, which is able to compile a base 
 skeleton module, using node-gyp. Are there any other modules that are 
 written in C++ that would be simple + good to reference?

 For example, I'm currently trying to write a module that simply wraps and 
 exposes a class from an existing third-party lib, HDF5. I've got it all 
 written to the point where I think I am supposed to initialize an object of 
 that class I want to expose, but when I include the code to initialize it, 
 I cannot `require` it from within Node. It will compile, but I cannot 
 require it. I do not think it is actually compiling properly. The HDF5 lib 
 comes with a special wrapper binary around g++ that sets up the compile 
 environment for you, so I guess I need to figure out how to tell node-gyp 
 to use that.

 My code is here, if anyone wants to take a peek: 
 https://github.com/ryancole/node-hdf5

 Thanks


-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Any way to do benchmark of http handlers for request and response without send request?

2012-04-22 Thread jason . 桂林
I am writing a project named 'kickstart' aim to create high performance web
APP template (not view template).

I hope the speed could close to node helloworld app.

So I need some way to benchmark my app. I use ab, but it has big problem in
Mac OS.

So, I hope, there is a tool could pass fake request and response to my
handlers, do all benchmark without network.

Can I ?

BTW, I have done very fast request dispatch.

https://github.com/guileen/node-kickstart

-- 
Best regards,

Jason Green
桂林

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Any way to do benchmark of http handlers for request and response without send request?

2012-04-22 Thread Bryan Donovan
Seems like you could use 
http://benchmarkjs.com/
and pass in mock/fake objects to the handler functions.


Sent from an iPhone.

On Apr 22, 2012, at 9:41 AM, jason.桂林 guil...@gmail.com wrote:

 I am writing a project named 'kickstart' aim to create high performance web 
 APP template (not view template).
 
 I hope the speed could close to node helloworld app.
 
 So I need some way to benchmark my app. I use ab, but it has big problem in 
 Mac OS.
 
 So, I hope, there is a tool could pass fake request and response to my 
 handlers, do all benchmark without network.
 
 Can I ?
 
 BTW, I have done very fast request dispatch.
 
 https://github.com/guileen/node-kickstart
 
 -- 
 Best regards,
 
 Jason Green
 桂林
 
 
 -- 
 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
 To unsubscribe from this group, send email to
 nodejs+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Any way to do benchmark of http handlers for request and response without send request?

2012-04-22 Thread Bryan Donovan
P.s., if you write unit tests for this same code, I think the answer will 
emerge on its own :). I personally like mocha for tests.

Sent from an iPhone.

On Apr 22, 2012, at 9:41 AM, jason.桂林 guil...@gmail.com wrote:

 I am writing a project named 'kickstart' aim to create high performance web 
 APP template (not view template).
 
 I hope the speed could close to node helloworld app.
 
 So I need some way to benchmark my app. I use ab, but it has big problem in 
 Mac OS.
 
 So, I hope, there is a tool could pass fake request and response to my 
 handlers, do all benchmark without network.
 
 Can I ?
 
 BTW, I have done very fast request dispatch.
 
 https://github.com/guileen/node-kickstart
 
 -- 
 Best regards,
 
 Jason Green
 桂林
 
 
 -- 
 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
 To unsubscribe from this group, send email to
 nodejs+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Examples of C++ modules, for Node.js

2012-04-22 Thread Ryan Cole
Oh, wow. I did not have email notifications enabled for responses, so I did 
not expect to sign in and see so many helpful responses. Thank you for 
these.

I'm going over them now and will apply this insight to what I'm doing. 
Also, per Nathan's suggestion, I think I will update from node 0.6.7 to 
0.7, at least. I'll let you all know the outcome of this, soon. :)

Thanks,
Ryan

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] ender vs. browserify?

2012-04-22 Thread Mark Hahn
  OneJS moves the revolution of NPM one step forward and makes it
available for client-side projects!

Does this mean you can load a module directly from the npm registry into
the client to run? Can you also query the registry?

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: finding modules matching a name glob

2012-04-22 Thread Mark Hahn
   What I ended up doing is simply defining a folder which all plugins
have to be in.

That seems to be a good minimalist approach.

One requirement for this project is for plugin developers to be able to
easily publish their plugins so that every app user can select which
plugins to use.  So some kind of public repository, or registry, is needed
to drop in plugins.  So I either use the npm registry or somewhat duplicate
it's functionality.

Then I need the modules installed locally.  Putting them all in a single
folder works for this.

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: updating my UI when my server got a message via socket.io

2012-04-22 Thread Guillermo Rauch
Separating responsibilities between different apps is almost always a good
choice. Communicating those apps through messages (eg: ømq) leads to good
architecture.

-- 
Guillermo Rauch
LearnBoost CTO
http://devthought.com

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] OpenID for Node.js v0.4.2 fixes seemingly random authentication rejects

2012-04-22 Thread Håvard Stranden
OpenID for Node.js v0.4.2 has been released. This release includes a
fix for seemingly random authentication rejects reported independently
by several parties.

You are recommended to upgrade to v0.4.2. Depending packages should
update their required version to at least v0.4.2.

For more details on the fixed issue, please see
http://ox.no/posts/openid-for-node-js-v0-4-2-released.

--
Regards,
Håvard Stranden

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Mixed data?

2012-04-22 Thread Andre Contreras
I have in my app:
var friends={};
then I populate with data and looks like this:
friends['1'] = {'id':1};
but in other browser I have the same data... Why?

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Examples of C++ modules, for Node.js

2012-04-22 Thread andrew morton
I've also been working my way up that learning curve. One problem is that 
there's a lot of dated examples that kept leading me a stray. 

It took me way too long to find this and I hadn't seen it mentioned yet but 
the  docs included with Node are really 
good: http://nodejs.org/api/addons.html

I'll second the suggestion to read Konstantin Käfer's slides and example 
code, they were a great resource for understanding async code. 

If you're working with 0.6.x and building with node-waf the waf book is 
handy: http://docs.waf.googlecode.com/git/book_16/single.html

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Examples of C++ modules, for Node.js

2012-04-22 Thread Ryan Cole
Is there no way to specify the library search path from within the 
binding.gyp file? I'm just trying to see if it's possible to make `node-gyp 
configure` spit `-L/usr/local/hdf5/lib` out into the Makefile, or whatever 
it builds.

I'll be searching the docs, but I haven't run across it yet. I'll let you 
know if I find something.

Ryan

On Sunday, April 22, 2012 11:13:33 AM UTC-5, rhasson wrote:

 Just to add to Nathan's comments, you're missing a libraries that points 
 to the the HDF5 shared library that was compiled separately.  for example: 
  'libraries': ['/home/user/hdf5/lib/hdf5.so']

 Also, I noticed that when compiling with node-gyp (which I love btw) you 
 need to set LD_LIBRARY_PATH environment variable to the directory where the 
 HDF5 shared library is located.  for example:   
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/hdf5/lib

 after you do that, try building your project again.

 Roy

 On Saturday, April 21, 2012 9:50:49 PM UTC-4, Ryan Cole wrote:

 Hello,

 I'm learning how to write C++ modules, for Node.js. I'm sort of 
 brute-forcing my learning by looking at examples, referencing the 
 documentation for v8 and trial and error. The only two modules that I can 
 seem to think of, as a reference, are hiredis-node and node.bcrypt.js. Both 
 have helped me get to where I am now, which is able to compile a base 
 skeleton module, using node-gyp. Are there any other modules that are 
 written in C++ that would be simple + good to reference?

 For example, I'm currently trying to write a module that simply wraps and 
 exposes a class from an existing third-party lib, HDF5. I've got it all 
 written to the point where I think I am supposed to initialize an object of 
 that class I want to expose, but when I include the code to initialize it, 
 I cannot `require` it from within Node. It will compile, but I cannot 
 require it. I do not think it is actually compiling properly. The HDF5 lib 
 comes with a special wrapper binary around g++ that sets up the compile 
 environment for you, so I guess I need to figure out how to tell node-gyp 
 to use that.

 My code is here, if anyone wants to take a peek: 
 https://github.com/ryancole/node-hdf5

 Thanks



-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: Examples of C++ modules, for Node.js

2012-04-22 Thread Ben Noordhuis
On Mon, Apr 23, 2012 at 05:12, Ryan Cole r...@rycole.com wrote:
 Is there no way to specify the library search path from within the
 binding.gyp file? I'm just trying to see if it's possible to make `node-gyp
 configure` spit `-L/usr/local/hdf5/lib` out into the Makefile, or whatever
 it builds.

{
  'ldflags': ['-L/usr/local/hdf5/lib']
}

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] ender vs. browserify?

2012-04-22 Thread Dominic Tarr
browserify has _by far_ the most test coverage. I know from my own dabbling
in the problem that there are _alot_ of edgecases.

https://github.com/substack/node-browserify/tree/master/test

I just use browserify now

On Mon, Apr 23, 2012 at 6:07 AM, Mark Hahn m...@hahnca.com wrote:

   OneJS moves the revolution of NPM one step forward and makes it
 available for client-side projects!

 Does this mean you can load a module directly from the npm registry into
 the client to run? Can you also query the registry?

 --
 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
 To unsubscribe from this group, send email to
 nodejs+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/nodejs?hl=en?hl=en


-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Examples of C++ modules, for Node.js

2012-04-22 Thread Ryan Cole
I have adjusted the binding.gyp file to include the linker settings 
required for including the HDF5 libs I need. I believe that the current gyp 
file mirrors a Makefile that I am able to get working, for HDF5's stand 
alone compile. The only difference is that you're supposed to run the HDF5 
Makefile with this custom binary, h5c++, that I think does some additional 
build configurations for you.

I only see two options here, I think. One option would be to compile this 
node lib using that h5c++ binary. The other option would be to figure out 
what that h5c++ binary does, and reproduce it within the binding.gyp file.

Currently, using this binding.gyp file, my node lib will compile and I 
assume it also links with hdf5 lib now. 
(https://github.com/ryancole/node-hdf5/blob/master/binding.gyp) I have 
updated to a node version 0.7+, and can see the error message when I try to 
require my node lib, now. It looks like this:

ryan@ryan-server:~/repos/node-hdf5$ node

  require('./build/Release/hdf5')

 Error: libhdf5.so.7: cannot open shared object file: No such file or 
 directory

 at Object..node (module.js:475:11)

 at Module.load (module.js:351:32)

 at Function._load (module.js:309:12)

 at Module.require (module.js:357:17)

 at require (module.js:373:17)

 at repl:1:2

 at REPLServer.eval (repl.js:110:21)

 at Interface.anonymous (repl.js:249:12)

 at Interface.emit (events.js:87:17)

 at Interface._onLine (readline.js:178:10)


That's with my .gyp file as-is. When I try to run this command, node-gyp 
build CXX=/path/to/h5c++, I get an error saying that I need to try again 
using the -fPIC parameter. No matter where I specify that parameter, it 
just seems to tell me to try again using -fPIC. I think I may be heading 
down the wrong path with that -fPIC, though.

Anyway, just wanted to document my leaving-off-spot so that I can pick up 
with it tomorrow. Also, so that if anybody has any suggestions they could 
share them too! :)

Thanks all,
Ryan

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] ender vs. browserify?

2012-04-22 Thread Jamison Dance
Does browserify let you install npm modules, similar to `ender build npm 
package names, or do you have to manually download them?

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs]will kilos setTimeout spend too much resourece?

2012-04-22 Thread jason . 桂林
I need to write a service use something like in memory cache, and I want to
do `expire` things in setTimeout, will it very slow, If I expire too much
things, about kilos to millions.

-- 
Best regards,

Jason Green
桂林

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] ender vs. browserify?

2012-04-22 Thread Joshua Holbrook
 Does browserify let you install npm modules, similar to `ender build npm
 package names, or do you have to manually download them?

You install modules with npm, and require them in your browser's
index.js . Then you do a browserify build against that index.js and it
bundles the deps automatically.

I don't know much of anything about ender, but if you're going for
client side require system browserify's pretty much where it's at.

-Josh

On Sun, Apr 22, 2012 at 10:43 PM, Jamison Dance jerga...@gmail.com wrote:
 Does browserify let you install npm modules, similar to `ender build npm
 package names, or do you have to manually download them?

 --
 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
 To unsubscribe from this group, send email to
 nodejs+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/nodejs?hl=en?hl=en



-- 
Joshua Holbrook
Engineer
Nodejitsu Inc.
j...@nodejitsu.com

-- 
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
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en