[nodejs] Re: What Editor do you use?

2013-01-04 Thread Jeff Schwartz
Simple. 1) Open Preferences. 2) Select File Types node in the left panel. This will expose all the recognized file types in the right panel. 3) In the list of recognized file types select HTML. This will expose the registered patterns for file types associated with HTML file types in the bottom

[nodejs] Re: Simple chat-room example?

2013-01-04 Thread Ben Evans
Hi Josh, If it's any use to you, when i first gave Node a shot I wrote a very basic chat app. Feel free to use it/reference: https://github.com/bencevans/Little-Chat-Script Features: * Socket.IO Realtime Messaging * Connection Indicator and that's about it but I hope it's of some help. Good

[nodejs] Re: What Editor do you use?

2013-01-04 Thread Dennis Kane
I am using a JS implementation of an Unix style ncurses-like editor (using ) on my site that I call archiTex. I wanted it to incorporate my favorite parts of nano and vim. I like nano because of its sheer simplicity, and I like vim for all the fancy functionality. I d

[nodejs] Re: Simple chat-room example?

2013-01-04 Thread Dennis Kane
I've recently been hip deep working on a chatroom on my site @ http://luvluvluv.info. I wouldn't call it "simple", but I do use socket.io and I can testify it is da bomb. My site is supposed to be an in-browser OSX kind of thing. It's all javascript... client and server. No markup, no css,

Re: [nodejs] Simple chat-room example?

2013-01-04 Thread Ryan Schmidt
On Jan 4, 2013, at 17:38, Josh Santangelo wrote: > I'm trying to build a simple server where multiple clients connect over TCP, > and any message from a client is relayed to all the others. This isn't going > to be used for a chat room, but it's basically the same idea. > > I tried building th

Re: [nodejs] buffer: stability improvements feedback

2013-01-04 Thread Trevor Norris
On Friday, January 4, 2013 3:39:10 PM UTC-8, Ben Noordhuis wrote: > > I'm okay with that, with the caveat that there should be no > performance or behavior regressions whatsoever. That means writing a > lot of tests and benchmarks. :-) > Awesome. Thanks. -- Job Board: http://jobs.nodejs.o

[nodejs] Simple chat-room example?

2013-01-04 Thread Josh Santangelo
I'm trying to build a simple server where multiple clients connect over TCP, and any message from a client is relayed to all the others. This isn't going to be used for a chat room, but it's basically the same idea. I tried building this with socket.io but got stuck pretty quickly: var io = req

Re: [nodejs] buffer: stability improvements feedback

2013-01-04 Thread Ben Noordhuis
On Fri, Jan 4, 2013 at 9:23 PM, Trevor Norris wrote: > This is for all the committers out there. > > While working on my latest Buffers PR, noticed there are > undocumented/unenforced ways things can go wrong. Say, for example, a user > wants to extend Buffer with their own set of methods/properti

[nodejs] buffer: stability improvements feedback

2013-01-04 Thread Trevor Norris
This is for all the committers out there. While working on my latest Buffers PR, noticed there are undocumented/unenforced ways things can go wrong. Say, for example, a user wants to extend Buffer with their own set of methods/properties and just happen to name one of them 'parent' or 'offset'.

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

2013-01-04 Thread Jacob Groundwater
>From what I remember, that looks right. You could try adding console.log to print each request as it comes in. I eventually abandoned X-Domain requests in favor of window.postMessage, which I think is a better solution. The postMessage function works across domains between iframes. You load a hid

Re: [nodejs] Re: many node vs single with eio.setMinParallel higher than 4

2013-01-04 Thread Ben Noordhuis
On Fri, Jan 4, 2013 at 5:41 PM, am_p1 wrote: > It's working great but odbc to db2 queues and backs up some. I assume > because when using ps -eLf I can see that there are still only 4 threads per > node and the number doesn't change. > > Is the thread count suppose to change dynamically with libuv

Re: [nodejs] Re: many node vs single with eio.setMinParallel higher than 4

2013-01-04 Thread am_p1
It's working great but odbc to db2 queues and backs up some. I assume because when using ps -eLf I can see that there are still only 4 threads per node and the number doesn't change. Is the thread count suppose to change dynamically with libuv now? On Friday, January 4, 2013 11:20:31 AM UTC-5,

[nodejs] ANN: gcm4node

2013-01-04 Thread Luca Morettoni
I just created my first node.js package: gcm4node! You can use this library to send PUSH notifications to the android clients over the Google Cloud Messaging system. It was tested for some months with some personal android applications to notify thousands of clients every day! You can access the so

Re: [nodejs] Long connections with Node.js, how to reduce memory usage and prevent memory leak?

2013-01-04 Thread Ben Noordhuis
On Fri, Jan 4, 2013 at 6:12 AM, Aaron Wang wrote: > I raised this problem on stackoverflow, didn't get proper answers yet, any > thoughts? It's good newsgroup etiquette to post the actual question (or questions) instead of linking to a website; it lets people reply to individual questions inline.

Re: [nodejs] Re: many node vs single with eio.setMinParallel higher than 4

2013-01-04 Thread Ben Noordhuis
On Thu, Jan 3, 2013 at 11:57 PM, am_p1 wrote: > ok, so apparently eio is gone and libuv is what i'm actually using (not > knowing the history of node makes for a confusing day) > > no wonder eio or eio-simple didn't work :-) > > so I couldn't find any min/max controls on threads anywhere so i assu

[nodejs] Re: os.release() on Mac OS

2013-01-04 Thread mscdex
On Jan 4, 10:41 am, Diogo Resende wrote: > Mine is OSX 10.7.5 and I get '11.4.2'. This is kernel version, not OS version. Darwin version, not kernel version :-) -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You rec

[nodejs] Long connections with Node.js, how to reduce memory usage and prevent memory leak?

2013-01-04 Thread Aaron Wang
I raised this problem on stackoverflow, didn't get proper answers yet, any thoughts? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent

[nodejs] Faulty documentation

2013-01-04 Thread Hakan Bilgin
In Manual & Documentation, just below the part about "*fs.unwatchFile(filename, [listener])*": Stability: 2 - Unstable. Use fs.watch instead, if available. Using "fs.watch" instead doesn't sound like a good suggestion. I suspect this is just a misstake. Thanks for great software -- Job Boa

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

2013-01-04 Thread Crenshinibon
Hello, I actually had/have the same problem. It is not node.js at the backend, but getting the f* IE 8 to send an ajax request to a different target is a mess, regardless of the receiver. Your response looks good, quite similar to mine. My jQuery.ajax looks like this: jQuery.ajax({

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

2013-01-04 Thread 曾漢煒
Hello Ryan I found the error looks like my module names axon made because i rewrite all the program just use express module it can success get post data from ie ajax request so now I'm looking for axon socket useful information to adjust the axon can't get the normal post data problem i use

[nodejs] Re: os.release() on Mac OS

2013-01-04 Thread SteveCronin
perfect -- thank you!! On Friday, January 4, 2013 9:34:59 AM UTC-6, SteveCronin wrote: > > Folks; > > I am wondering if someone could add some perspective to this finding > > On a Mac running Mac OS X 10.7.5 and node v0.8.10 I see this: > ahab: node > >console.log(require('os).release()) > 11.7.4

Re: [nodejs] os.release() on Mac OS

2013-01-04 Thread Diogo Resende
uname -a -- Diogo Resende On Friday, January 4, 2013 at 15:41 , Diogo Resende wrote: > Mine is OSX 10.7.5 and I get '11.4.2'. This is kernel version, not OS version. > > -- > Diogo Resende > > > On Friday, January 4, 2013 at 15:34 , SteveCronin wrote: > > > Folks; > > > > I am wondering

Re: [nodejs] os.release() on Mac OS

2013-01-04 Thread Diogo Resende
Mine is OSX 10.7.5 and I get '11.4.2'. This is kernel version, not OS version. -- Diogo Resende On Friday, January 4, 2013 at 15:34 , SteveCronin wrote: > Folks; > > I am wondering if someone could add some perspective to this finding > > On a Mac running Mac OS X 10.7.5 and node v0.8.10 I

[nodejs] os.release() on Mac OS

2013-01-04 Thread SteveCronin
Folks; I am wondering if someone could add some perspective to this finding On a Mac running Mac OS X 10.7.5 and node v0.8.10 I see this: ahab: node >console.log(require('os).release()) 11.7.4 On a Mac running Mac OS X 10.8.2 and node v0.8.9 I see this: orbitter: node >console.log(require('os).

[nodejs] Re: What Editor do you use?

2013-01-04 Thread Rodrigo Fonseca
How can i do that? Create a html file and put ".ejs" in the end of the file? Em sexta-feira, 4 de janeiro de 2013 02h22min40s UTC-3, Jeff Schwartz escreveu: > > Configure ejs as html in webstorm. It works for me. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joye

Re: [nodejs] Re: Autoload and autoinstall modules

2013-01-04 Thread Floby
Well a dependency can be heavy and amazing at the same time. fibers is an extensions that has to be built which can cause problems in some environment. --harmony is merely a command line flag, I give you that, but still forces every package that depends on this autoload module (and also every pa