Re: [nodejs] How to write a JavaScript library for client or server use

2013-07-19 Thread greelgorke
component is way too young to be a consensus. component seams to have a build step too. there is nothing bad about a build step, most of build libs support a watch function. to be interoperable you have 3 options: write idiomatic code with a bunch of boilerplate, use a loader lib and hope it's

Re: [nodejs] Re: SPI bit bang with node, process.binding and mmap bindings

2013-07-19 Thread Mihai Ene
Hello, Elijah, thank you for your reply. The file that I am writing to is actually a device. Only the first byte is taken into account no matter how big the buffer is, because there is sufficient space for one octet in the value of that device. For example, the "write" function always returns t

[nodejs] Problem installing node.js v0.10.13

2013-07-19 Thread erikstobbelaar
When I'm trying to install node.js v0.10.13 on Linux I do the following: ./configure and then: make which gives me the following error: make[1]: *** No rule to make target `../deps/v8/src/runtime.js', needed by `/home/node-v0.10.13/out/Release/obj/gen/libraries.cc'. Stop. make[1]: Leaving di

[nodejs] Re: [ANN] thor, the mighty websocket hammering god of thunder & pre-commit, the forgotten git hook

2013-07-19 Thread Zbeen
Hi, I am having problem in installing thor. When I type npm install -g thor, following is the message that shows up. I am not sure about the problem. Please help me out! Thanks! npm http GET https://registry.npmjs.org/thor npm http 304 https://registry.npmjs.org/thor npm http GET https://regis

[nodejs] Re: using node js with Redis sharding?

2013-07-19 Thread Sơn Lê Vũ Thái
you should check if the file build/Release/hash_ring.js existed. If yes, show us its content please. (vietnamese only: lần đầu tiên mình thấy kiểu 2 người VN phải nói với nhau bằng tiếng anh =)), bạn có thể tìm vào forum nodejs.vn để đặt câu hỏi, sẽ có nhiều sự trợ giúp từ cộng động node.js việt

Re: [nodejs] Re: [ANN] thor, the mighty websocket hammering god of thunder & pre-commit, the forgotten git hook

2013-07-19 Thread Arnout Kazemier
Some of the dependencies have to be installed through git, so make sure you have that installed on your system. Founder: Observe.it (http://observe.it) Lead Software Engineer: Nodejitsu.com (http://nodejitsu.com) Twitter: @3rdEden Github: @3rd-Eden Skype: arnoutkazemier Mobile: +3162325403

[nodejs] Error: no writecb in Transform class

2013-07-19 Thread Ivan Maximenko
Hello. I'm new in nodejs and now playing with streams. Now I try combine streams in one and then separate their. For separate used Transform stream. When i try call "done" callback in _read method of separate Readable stream - throw Exception. Error: no writecb in Transform class at after

Re: [nodejs] Problem installing node.js v0.10.13

2013-07-19 Thread Jérémy Lal
"linux" is a bit vague... could you say more, like which distribution at which version, and also which tarball you used (the one from nodejs.org ?) Jérémy. On 19/07/2013 10:27, erikstobbel...@gmail.com wrote: > When I'm trying to install node.js v0.10.13 on Linux I do the following: > > ./config

Re: [nodejs] Problem installing node.js v0.10.13

2013-07-19 Thread Fabrizio Soppelsa
On 19/07/2013 10:27, erikstobbel...@gmail.com wrote: > When I'm trying to install node.js v0.10.13 on Linux I do the following: I suggest you to install Node on Linux with nvm: wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh nvm install 0.10.13 Further doc: https://github.

Re: [nodejs] TLS socket write + drain

2013-07-19 Thread Joran Greef
Thanks Ben, does a return code of true and the callback being called mean exactly the same thing? Do both give the same guarantee? The reason I ask is because I am pre-allocating a buffer for a websocket server, and this is overwriting the buffer as soon as write returns true or the callback is fi

Re: [nodejs] TLS socket write + drain

2013-07-19 Thread Ben Noordhuis
On Fri, Jul 19, 2013 at 1:22 PM, Joran Greef wrote: > Thanks Ben, does a return code of true and the callback being called mean > exactly the same thing? Do both give the same guarantee? > > The reason I ask is because I am pre-allocating a buffer for a websocket > server, and this is overwriting

[nodejs] Re: Building multiple resumable TLS Sessions

2013-07-19 Thread Miroslav Bajtoš
I was so wrong! Here is an update: 1. For clients that do not support "TLS session ticket" extensions, you *have* to install newSession/resumeSession handlers. The implementation can be very simple for a single-process setup: var tlsSessions = {}; server.on('newSession', function(id, dat

Re: [nodejs] install and run an app from npm?

2013-07-19 Thread José F . Romaniello
I've a project like yours, when i run the first time, i check if there is a certificate in some directory and if it is not there I call my selfsigned module to generate a one: https://github.com/jfromaniello/selfsigned 2013/7/18 Mark Hahn > I have a node server app that I want to publish on

Re: [nodejs] How to write a JavaScript library for client or server use

2013-07-19 Thread Peter Rust
> > Or is component the consensus, and I just have to deal with this? > component is way too young to be a consensus Ditto. Module loaders and patterns for the client-side are a bit like the wild west right now -- there are a lot of competing module patterns and module loaders. It's not like no

Re: [nodejs] How to write a JavaScript library for client or server use

2013-07-19 Thread Peter Rust
> but the Underscore comments / annotations still incorrectly state that it's `global` on the server > ... I still need to issue a pull request FWIW, this has been corrected now (https://github.com/jashkenas/underscore/pull/1211) -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: h

Re: [nodejs] How to write a JavaScript library for client or server use

2013-07-19 Thread Angel Java Lopez
The simple strategy I'm using is at my code: https://github.com/ajlopez/PLangRe Example https://github.com/ajlopez/PLangRe/blob/master/lib/checker.js Each require is launched by an if if (typeof tokenizer === 'undefined') var tokenizer = require('./tokenizer'); The definition of module insi

[nodejs] Building a module with custom library location in node-gyp

2013-07-19 Thread Piyush Gururani
I am using following node-gyp file for building a module which uses clutter library . The library along with other dependencies are installed in some other custom path . 'OS=="linux"', { 'cflags': [ 'http://jobs.nodejs.org/ Posting gu

[nodejs] Node.js - Domain per Express request, inside another domain

2013-07-19 Thread Lee
*Copied from http://stackoverflow.com/questions/17729900/node-js-domain-per-express-request-inside-another-domain * I'm trying to layout a basic Node app like this... Cluster -> Worker -> Server Domain -> Express Request Domain So, if an error is thrown 18 layers deep into a call stack because

Re: [nodejs] How to write a JavaScript library for client or server use

2013-07-19 Thread Jake Verbaten
> Any other answers to my original question? put it on npm. Have your users install it from npm and then use it with a commonJS compliant tool like browserify. If you really want to support everyone I recommend you use `browserify --standalone` and put that code in `dist/my-lib.js` on github or y

Re: [nodejs] Re: SPI bit bang with node, process.binding and mmap bindings

2013-07-19 Thread Elijah Insua
Ah, yeah that's a pain isn't it. This sounds like a job for C. I'd write some code that just takes data from stdin, buffers some, and emits on the gpio as fast as it can. Then from node you just spawn/stream to that process. It it's still too slow, use libuv and open a tcp or udp server and pip

[nodejs] About npm and corporate proxy

2013-07-19 Thread Rafael Agostini
Hi, I got problems with a corporate proxy. I can't install packages through npm, it always throws me the following error: C:\Users\raa>npm install -g phonegap > npm http GET https://registry.npmjs.org/phonegap > npm http GET https://registry.npmjs.org/phonegap > npm http GET https://registry.npm

Re: [nodejs] About npm and corporate proxy

2013-07-19 Thread Gary Katsevman
Looks like npm looks for one of the following environment variables for a proxy: HTTPS_PROXY, https_proxy, HTTP_PROXY, http_proxy. Alternatively, you can specify this via npm config set https-proxy porxy-url . https://npmjs.org/doc/misc/npm-config.html#https-proxy Gary Katsevman gkatsev.com On F

Re: [nodejs] About npm and corporate proxy

2013-07-19 Thread Rafael Agostini
I tried that in many ways. It would be something like http://DOMAIN\myUser:mypassw...@proxyserver.com:8080, but it fails. El viernes, 19 de julio de 2013 15:05:51 UTC-5, Gary Katsevman escribió: > > Looks like npm looks for one of the following environment variables for a > proxy: HTTPS_PROXY, h

Re: [nodejs] git server built with node

2013-07-19 Thread Tim Dickinson
This might just be what im looking for. Im going to play around with the code to see if I can use it. Ill let you know. On Sunday, April 21, 2013 12:49:55 AM UTC-4, Quinton Pike wrote: > > Here is the link for those that are interested: > https://github.com/qrpike/NodeJS-Git-Server > > Trying t

Re: [nodejs] Node.js - Domain per Express request, inside another domain

2013-07-19 Thread Martin Cooper
> Now why would it go and do something like that? Your call to the non-existent function is synchronous w.r.t. Express's request handling chain. This same issue came up here a couple of weeks ago. See: https://groups.google.com/forum/#!msg/nodejs/ZfaJPYyHKoA/BgHxErk9bEUJ If you wrapped your two