[nodejs] Re: [Idea]: npm as a dependancy injector.

2013-01-21 Thread greelgorke
it's a smell, if you have to mock a third party modules in your tests. sure, sometimes it's hard to avoid, but for this cases there are mocking tools like sinonjs. Am Sonntag, 20. Januar 2013 05:15:13 UTC+1 schrieb Athan Clark: > > Hello everyone. I'd like to make unit testing a practice difficu

[nodejs] Re: Waiting for an async operation to end?

2013-01-21 Thread greelgorke
just a matter of taste, if you ask me. for me it's not more or less readable, just different and requires different reading patterns :) and Streams beats promises in this case. Am Sonntag, 20. Januar 2013 21:54:33 UTC+1 schrieb Brian Link: > > I'v been using the async module for this kind of th

[nodejs] azure-scripty, an easy automation library for Windows Azure

2013-01-21 Thread Glenn Block
Hello folks I just published a new simple automation library for Windows Azure called azure-scripty: https://npmjs.org/package/azure-scripty Basically what it does is allow you to do is call the azure-cli as if it was an API. It also supports the ability to batch together commands. All results ar

Re: [nodejs] Re: Is it wise to host nodejs apps on third party machines with source code? Can't we compile into machine code before hosting?

2013-01-21 Thread Koti Kanna
> > node-webkit looks promising > for creating executables. I have created my first executable of nodejs! -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this m

[nodejs] auto-reconnect strategy question

2013-01-21 Thread Gregg Caines
Hey all, I'm working on https://github.com/cainus/Prozess, which is a client library for Kafka and I'm looking to try to implement some sort of auto-reconnect capability. What are the usual strategies for that with regards to handling additional writes while the client reconnects? I was thinki

[nodejs] Assertion uv__has_active_reqs(loop) failed

2013-01-21 Thread Michael
Hi, System: node 0.8.17 on CentOS 6.3 I get the following log: node: ../deps/uv/src/uv-common.h:101: uv__req_unregister: Assertion `uv__has_active_reqs(loop)' failed. and my process gets a SIGABRT. The problem occurs at random. I haven't seen the error when running node as root. It is very har

Re: [nodejs] Assertion uv__has_active_reqs(loop) failed

2013-01-21 Thread Ben Noordhuis
On Mon, Jan 21, 2013 at 4:21 PM, Michael wrote: > Hi, > > System: node 0.8.17 on CentOS 6.3 > > I get the following log: > node: ../deps/uv/src/uv-common.h:101: uv__req_unregister: Assertion > `uv__has_active_reqs(loop)' failed. > and my process gets a SIGABRT. > > The problem occurs at random. I

[nodejs] Node.js - Forever Log

2013-01-21 Thread Burak Gürbüz
How can i disable forever logs ? -- 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@goo

Re: [nodejs] Node.js - Forever Log

2013-01-21 Thread Naouak
set log file to /dev/null Naouak, Grade 2 de Kobal. Site web: http://www.naouak.net On Mon, Jan 21, 2013 at 5:25 PM, Burak Gürbüz wrote: > How can i disable forever logs ? > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posti

Re: [nodejs] Closed Connection Does Not Trigger httpClient.response "end" event

2013-01-21 Thread Tom
Still no updates on the matter? This still hasn't been fixed. Any news on the situation? > > Op woensdag 5 mei 2010 20:38:54 UTC+7 schreef Tautologistics het volgende: >> >> Just an FYI about this quirk I just encountered. I close the >> connection is the server response is bigger than I want but

Re: [nodejs] Socket.io and expressJs slow on connecting to server

2013-01-21 Thread Glenn Block
Does it end up connecting using WebSockets or does it fall back to xhr? On Friday, January 18, 2013, ayaz ali wrote: > hello everyone i have made a chat application which works fine. but i have > a question when client connects to server. it takes some time to connect. > in firefox i get this err

Re: [nodejs] Data validation

2013-01-21 Thread Glenn Block
https://npmjs.org/package/forms On Friday, January 18, 2013, Alan Hoffmeister wrote: > Hello fellows! > > How are you doing data validation like forms and other user inputs? I know > that there is some modules to do that but my intention is to do a > brainstorm to gather ideas for a new module th

[nodejs] Re: Data validation

2013-01-21 Thread Katsumoto
take a look at https://github.com/chriso/node-validator пятница, 18 января 2013 г., 13:07:13 UTC+2 пользователь Alan Hoffmeister написал: > > Hello fellows! > > How are you doing data validation like forms and other user inputs? I know > that there is some modules to do that but my intention is

Re: [nodejs] Re: Data validation

2013-01-21 Thread Alan Hoffmeister
Katsumoto, thats a nice well known package, but I think that lacks async support. -- Att, Alan Hoffmeister 2013/1/21 Katsumoto > take a look at https://github.com/chriso/node-validator > > пятница, 18 января 2013 г., 13:07:13 UTC+2 пользователь Alan Hoffmeister > написал: > >> Hello fellows! >

Re: [nodejs] node + raspi + Internet of Things (IoT)

2013-01-21 Thread Linus G Thiel
Hi Paul, I built node 0.8.18 just the other day on my Raspberry Pi, I had no problems and it seems to work great. Myself I'm kind of interested in making something in Lua for it -- luajit is already installed. IoT sounds fun, what do you want to control in particular? On Fri, Jan 11, 2013 at 10

[nodejs] [ANN] dotmixin

2013-01-21 Thread Stephen Handley
Simple mixin implementation.. basically conveniences around functional mixins as described in Angus Croll's article "A Fresh Look at JavaScript Mixins" https://npmjs.org/package/dotmixin https://github.com/stephenhandley/dotmixin http://javascriptweblog.wordpress.com/2011/05/31/a-fresh-look-at-

[nodejs] Appfog nodejs don't work

2013-01-21 Thread Bruno Araújo
Hi, I'm noob on nodejs and i'm trying some tutorials of nodejs. I'm trying this tutorial: http://cestfait.ch/content/chat-webapp-nodejs it works wonderful on my localhost but not when I upload to appfog like you can see here: http://nodebruno.hp.af.cm/ For example, the prompt don't show up. I

Re: [nodejs] a pakage that exports few modules

2013-01-21 Thread Isaac Schlueter
On Sun, Jan 20, 2013 at 1:36 AM, Austin William Wright wrote: > You cannot make the assumption that that's the one correct way to do things. > Even if you can't think of a reason that someone would want to stuff their > files in a subdirectory, that's no reason at all to not allow it. Node and np

[nodejs] Re: Is it wise to host nodejs apps on third party machines with source code? Can't we compile into machine code before hosting?

2013-01-21 Thread Darren
Rather than hard-coding usernames & passwords where they can be seen by anyone with access to your code, another technique is to set the username and password as environment variables, and access them from your code via process.env. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: ht

Re: [nodejs] Socket.io and expressJs slow on connecting to server

2013-01-21 Thread ayaz ali
hello @Glenn Block Thanks for response yes it falls back to xhr poling -- 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 t

[nodejs] Re: [Idea]: npm as a dependancy injector.

2013-01-21 Thread nin jin
You can implement custom "require". This is easy) http://nodejs.org/api/vm.html воскресенье, 20 января 2013 г., 8:15:13 UTC+4 пользователь Athan Clark написал: > > Hello everyone. I'd like to make unit testing a practice difficult to > evade in Node.js. One of the requirements, though, is that