Re: [nodejs] Re: What Editor do you use?

2013-01-07 Thread Dominic Tarr
I use hipster https://github.com/dominictarr/hipster it's written in js, and runs in the terminal. basically, the same controls as notepad, has very crude syntax highlighting. ... and bugs, but it's just good enough that it's my main editor. On Mon, Jan 7, 2013 at 11:47 AM, Rodrigo Fonseca

[nodejs] How to determine the number of bytes read from buffer passed to node.js zlib.inflate?

2013-01-07 Thread Thiago Arruda
Question on stackoverflowhttp://stackoverflow.com/questions/14196599/how-to-determine-the-number-of-bytes-read-from-buffer-passed-to-node-js-zlib-inf . -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received

[nodejs] Re: Tips, let's help each other.

2013-01-07 Thread Geerten van Meel
Shameless self-promotion, I wrote a beginners article on how the EventEmitter works and it is the most popular one on my blog: Introduction to the node.js EventEmitter http://blog.gvm-it.eu/post/23925095762/introduction-to-the-node-js-eventemitter Geerten On Monday, January 7, 2013 5:42:50 AM

[nodejs] Node web interface to execute and handle the Perl Shell backed process.

2013-01-07 Thread Suraj Singh Thapa
Hi, I have number of the Perl and shell scripts in server(Linux) to automate the software build process. I want to create web interface so that other user can easily run my scripts. * Have a webpage, user select the field and press button to launch corresponding process. * webpage should show

[nodejs] Re: Node JS hosting service in Europe

2013-01-07 Thread Régis FOUCAULT
Hey, Ask a beta access to clever-cloud.com. Regards, Régis Le dimanche 6 janvier 2013 17:35:17 UTC+1, Daniel Vincent a écrit : Hi Remi Appfog is pretty good - www.appfog.com - and it has a free plan. regards daniel On Monday, 8 October 2012 18:39:59 UTC+1, remi_grumeau wrote: Hi!

[nodejs] Convention to preemptively break out of a domain/action?

2013-01-07 Thread Bradley Meck
Anyone have a sane and performant way that they break out of a domain or action such as middleware? I am trying to design such behavior but am faced with a multitude of interesting issues. The classic example of this problem can be seen with Array.prototype.forEach (though this has the easier

[nodejs] Is this a good scenario for using Node.js?

2013-01-07 Thread abhpdk
Hey guys, Please bear with me. This is very much a noob question. A couple of my friends and me are planning to make a time tracking web application. Between us we have experience in Java, C++, Django and Backbone.js, though we have never made any full fledged commercial application. This is

[nodejs] Re: Is this a good scenario for using Node.js?

2013-01-07 Thread greelgorke
you mean something like this http://mite.yo.lk/en/ ? yes node.js would be a good fit, at least as good as RoR or Django+Backbone.js Am Montag, 7. Januar 2013 16:25:41 UTC+1 schrieb abhpdk: Hey guys, Please bear with me. This is very much a noob question. A couple of my friends and me are

Re: [nodejs] Re: Is this a good scenario for using Node.js?

2013-01-07 Thread Gary Katsevman
Backbone.js is completely not related to the topic. You can do a node+backbone app. backbone is strictly front-end. The advantage of having node as the backend is that you don't need to context switch the language you are writing when switching from front-end to back-end. I think node is very good

Re: [nodejs] Node web interface to execute and handle the Perl Shell backed process.

2013-01-07 Thread Tim Caswell
Node can easily call other processes and has full control over the stdio streams if desired. (or there are convenience wrappers if you don't need full control) Look at the child_process APIs. On Sun, Jan 6, 2013 at 9:41 PM, Suraj Singh Thapa thapa.suraj...@gmail.comwrote: Hi, I have number of

Re: [nodejs] node.js can't receive ajax post data which made by ie9 or 8

2013-01-07 Thread Crenshinibon
Hi, never heard of the AXON module. Like I said, the example above is from a current project which contacts a Java (actually: Xtend) backend. There, I use the simpleframework as a server. No node.js. And I think it has nothing to do with it. I did the same with node.js and can't remember

Re: [nodejs] Re: comments in package.json

2013-01-07 Thread Isaac Schlueter
On Sun, Jan 6, 2013 at 8:26 PM, Jacob Groundwater ja...@nodefly.com wrote: Now I am curious about the discussion around removing scripts.install. https://twitter.com/npmjs/status/285085545602904064 https://github.com/isaacs/npm/commit/7e6f0b8077b9c892391ed894a7bbe88f45fde152 Not much of a

Re: [nodejs] Convention to preemptively break out of a domain/action?

2013-01-07 Thread Isaac Schlueter
On Mon, Jan 7, 2013 at 7:47 AM, Bradley Meck bradley.m...@gmail.com wrote: ```javascript // we only want to print first 2 items [1, 2, 3].forEach(function (item) { if (item 2) { return; } console.log(item); }); ``` More efficient, especially for long lists: ```javascript [1,

Re: [nodejs] node.js can't receive ajax post data which made by ie9 or 8

2013-01-07 Thread Crenshinibon
I remember one additional thing. IE8 tends to fall apart if it is unable to understand the charset defined in the Content-Type. Make sure you define a valid one, e.g. utf-8. Regards, Dirk Am Montag, 7. Januar 2013 17:28:09 UTC+1 schrieb Crenshinibon: Hi, never heard of the AXON module.

Re: [nodejs] Convention to preemptively break out of a domain/action?

2013-01-07 Thread Bradley Meck
This is good, gets me thinking. This brings up that there are 2 styles of approaching this issue: abort style - manually cause the action to fast fail condition style - provide a condition to check on every step of the action May help others thinking about this as well to think of both

Re: [nodejs] Re: comments in package.json

2013-01-07 Thread Jacob Groundwater
Not much of a discussion per se, but more like something that most eventually come to realize, but only *after* doing it the wrong way first. It'd be better to only support node-gyp for building packages, and get rid of scripts.install altogether. Thanks. This makes sense for compiling,

Re: [nodejs] Re: comments in package.json

2013-01-07 Thread Dick Hardt
I also use npm to package up my app for deployment and use an install script to do key generation and DB setup. Is there a preferred pattern for those tasks? Is npm not intended to be used for deploying apps? On Jan 7, 2013, at 9:51 AM, Jacob Groundwater ja...@nodefly.com wrote: Not much of

Re: [nodejs] Re: comments in package.json

2013-01-07 Thread Forrest L Norvell
On Mon, Jan 7, 2013 at 9:51 AM, Jacob Groundwater ja...@nodefly.com wrote: Thanks. This makes sense for compiling, however I had been using the install key for compiling coffee-script and minimizing resources when my application deployed to Heroku. I realize it is not a great solution, but

Re: [nodejs] Re: comments in package.json

2013-01-07 Thread Jacob Groundwater
Transpiling and minification are better handled by a prepublish script anyway: https://npmjs.org/doc/scripts.html That way, the module doesn't need to depend on CoffeeScript just to install and deployment will happen that much faster. Unless I am mistaken, `prepublish` is only called when

Re: [nodejs] Re: comments in package.json

2013-01-07 Thread Forrest L Norvell
Not speaking for Isaac here, but npm doesn't seem like a really great tool for deployment. I guess when I've handled this in the past, the way I've done it is to make my apps self-bootstrapping or done it through scripts outside the deployment tool. But I do apologize for not noticing the

Re: [nodejs] Re: comments in package.json

2013-01-07 Thread José F . Romaniello
prepublish is called for a local npm install too, but i think run before not after.. This is inconvenient if you have the coffeescript compiler as a local dependency 2013/1/7 Jacob Groundwater ja...@nodefly.com Unless I am mistaken, `prepublish` is only called when doing `npm publish`, which

Re: [nodejs] Re: comments in package.json

2013-01-07 Thread José F . Romaniello
mmh just tried and it doesnt work for me.. but i have proof i am not crazy https://twitter.com/izs/status/284079077709729792 2013/1/7 José F. Romaniello jfromanie...@gmail.com prepublish is called for a local npm install too, but i think run before not after.. This is inconvenient if you

Re: [nodejs] Re: comments in package.json

2013-01-07 Thread Dick Hardt
I have found it works great for a step in deployment and sharing of apps as it pulls in all the dependent modules, and then my install.js is run to setup the world. On Jan 7, 2013, at 11:22 AM, Forrest L Norvell forr...@newrelic.com wrote: Not speaking for Isaac here, but npm doesn't seem

Re: [nodejs] Re: Node JS hosting service in Europe

2013-01-07 Thread Jake Verbaten
+1 for joyent (amsterdam data center). It's not cheap though. It should also be noted that pubnub has servers in ireland. On Sun, Jan 6, 2013 at 10:22 PM, Régis FOUCAULT regisfouca...@gmail.comwrote: Hey, Ask a beta access to clever-cloud.com. Regards, Régis Le dimanche 6 janvier 2013

[nodejs] Re: Simple chat-room example?

2013-01-07 Thread Josh Santangelo
Thanks for the replies, all. I'm messing around with it more and not having any luck with connect or connection events. At this point I can only assume that node/socket is doing the right thing and it's my client code not connecting correctly. I'm having trouble finding any examples of a C#

Re: [nodejs] Re: comments in package.json

2013-01-07 Thread Isaac Schlueter
On Mon, Jan 7, 2013 at 9:51 AM, Jacob Groundwater ja...@nodefly.com wrote: I realize it is not a great solution, but the default node.js buildpack calls `npm install` and then just starts. That's why prepublish scripts get run on `npm install` :) Trust me, it's better this way. -- Job Board:

[nodejs] Re: Simple chat-room example?

2013-01-07 Thread Josh Santangelo
I tried the very basic sample code from the socket.io home page in a browser and that seemed to work correctly, further confirming my suspicion that it's on the client side. On Monday, January 7, 2013 1:20:25 PM UTC-8, Josh Santangelo wrote: Thanks for the replies, all. I'm messing around

[nodejs] Anyone using domain-per-request with express?

2013-01-07 Thread José F . Romaniello
Hello, I am wondering if someone has an example of domainhttp://nodejs.org/api/domain.html-per-request with express. I have been testing with this project: https://github.com/baryshev/connect-domain https://github.com/baryshev/connect-domain/blob/master/lib/connect-domain.js but if have few

Re: [nodejs] Re: comments in package.json

2013-01-07 Thread Jacob Groundwater
That's why prepublish scripts get run on `npm install` :) This does not appear to be the case for me; it would however be great if it did. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message

Re: [nodejs] Re: comments in package.json

2013-01-07 Thread Isaac Schlueter
Jacob, Indeed, that appears to be a bug. Fixing it now :) On Mon, Jan 7, 2013 at 3:02 PM, Jacob Groundwater ja...@nodefly.com wrote: That's why prepublish scripts get run on `npm install` :) This does not appear to be the case for me; it would however be great if it did. -- Job Board:

Re: [nodejs] Re: comments in package.json

2013-01-07 Thread Tauren Mills
Isaac, That's great, I use// in other places but always assumed they would get iterated in package.json dependencies. So we can safely do this? { dependencies : { foo : 1.0.0 - 2.. , // : comment about baz , baz : 1.0.2 =2.3.4 , //: comment about boo , boo : 2.0.1 } } On

[nodejs] LevelDB Admin for Node.js

2013-01-07 Thread hij1nx
A CLI tool REPL with autosuggest and autocomplete. https://github.com/hij1nx/lev # More about LevelDB LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values. ## Features - Keys and values are arbitrary byte

[nodejs] Re: Simple chat-room example?

2013-01-07 Thread Josh Santangelo
In case anyone else comes across this thread, the answer was to not use a raw socket, but rather to use a full client. There is a .NET client here: http://socketio4net.codeplex.com/ On Monday, January 7, 2013 2:32:13 PM UTC-8, Josh Santangelo wrote: I tried the very basic sample code from the

Re: [nodejs] Node web interface to execute and handle the Perl Shell backed process.

2013-01-07 Thread Suraj Singh Thapa
Thanks Tim, Performance wise do you consider having Perl/shell script in back-end and node as front-end is a good architecture? or is it better to re-write task done by Perl in node. I want to have clear idea about, - Is it better to use node just as a bridge between webpage and

[nodejs] AddOns that dynamically load Shared Libraries (*.so)

2013-01-07 Thread Benjamin Farrell
Hey everyone - I'm trying to bind Node.js to the OpenNI project ( http://www.openni.org/). I'm coming at this having not really used much C++, let alone the Node build system. Anyway - I have been able to create a custom AddOn for Node via Gyp. It loads the proper shared libraries compiles

Re: [nodejs] AddOns that dynamically load Shared Libraries (*.so)

2013-01-07 Thread Ben Noordhuis
On Tue, Jan 8, 2013 at 5:29 AM, Benjamin Farrell bengfarr...@gmail.com wrote: Hey everyone - I'm trying to bind Node.js to the OpenNI project (http://www.openni.org/). I'm coming at this having not really used much C++, let alone the Node build system. Anyway - I have been able to create a

[nodejs] I need your help desperately for increase my streaming speed

2013-01-07 Thread Ket
Hello, I've created a website and let the users stream their contents (webcam, video, music, and video call etc. -- not perfect yet) to all connected clients. The stream is lightening fast on my computer but very slow on a web hosting. The server-side is processed by node.js and the client

Re: [nodejs] I need your help desperately for increase my streaming speed

2013-01-07 Thread Ket
Thank for reply, That's correct. Anyone here insist that node is super fast. You are the first to mention that. I don't know about nginx and will look into it. Is it faster than node.js. Thanks On Tuesday, January 8, 2013 12:53:48 PM UTC+7, Mark Hahn wrote: The server-side is processed by

Re: [nodejs] I need your help desperately for increase my streaming speed

2013-01-07 Thread Mark Hahn
Anyone here insist that node is super fast. I don't think many node users say that. Node is efficient and can serve a lot of simultaneous connections. A JS interpreter cannot compete with efficient C++ code for hauling data. Is it faster than node.js Nginx and node are each fast for their

Re: [nodejs] I need your help desperately for increase my streaming speed

2013-01-07 Thread Mark Hahn
For anyone reading this thread, I should mention that nginx does not support websockets. That caused me some headaches. On Mon, Jan 7, 2013 at 10:36 PM, Mark Hahn m...@hahnca.com wrote: Anyone here insist that node is super fast. I don't think many node users say that. Node is efficient

Re: [nodejs] I need your help desperately for increase my streaming speed

2013-01-07 Thread Ket Nonting
Are there any other ways you recommend can make the stream as fast as on my computer, a local network, or at least comparable to flash. I heard some people send data in chunks. Is this possible to make it faster? Thank you, On Tue, Jan 8, 2013 at 1:37 PM, Mark Hahn m...@hahnca.com wrote: For

Re: [nodejs] Convention to preemptively break out of a domain/action?

2013-01-07 Thread Marco Rogers
Condition style is always available as an option. But in the types of situations you're describing, where you actually want to end the execution early, you end up using condition style because abort style does not exist. That's the case with array.forEach, and it's one of the reasons array.some

[nodejs] Re: I need your help desperately for increase my streaming speed

2013-01-07 Thread Marco Rogers
From your link, it looks like you want to do live streaming to a dynamic list of recipients. That is a large topic, and use nodejs doesn't begin to cover it. Voxer does live audio streaming with node and they have a large system and use many many servers. So I'd think real hard about standing