Re: [nodejs] Re: NodeJS downloadable Docs

2012-02-25 Thread dolphin 278
Sorry guys, may be i don't get it - why to bother with chm, or any other efforts, if at any moment you have http://nodejs.org/docs/latest/api/all.html where all documentation already gathered in one single file? - Boris Egorov skype/gtalk/nickname: dolphin278 mobile: +7 905 728 1543 On Sa

Re: [nodejs] Re: NodeJS downloadable Docs

2012-02-25 Thread Joshua Holbrook
You, sir, have made an excellent point. I'm now wondering the same. --Josh On Sat, Feb 25, 2012 at 12:05 AM, dolphin 278 wrote: > Sorry guys, may be i don't get it - why to bother with chm, or any other > efforts, if at any moment you > have http://nodejs.org/docs/latest/api/all.html where all d

Re: [nodejs] Re: JSLint or not?

2012-02-25 Thread Matt
On Sat, Feb 25, 2012 at 12:25 AM, Joe Developer wrote: > No one is forcing anyone to use anything ( your work environment may vary >>> ) - but the simple math is this: JS is going to be everywhere, lots of >>> people will be coding in JS, demand for expertise ( or competence, or >>> ability to gai

Re: [nodejs] Check if node.js is running in debug mode

2012-02-25 Thread dolphin 278
Why not pass it as command line argument? - Boris Egorov skype/gtalk/nickname: dolphin278 mobile: +7 905 728 1543 On Fri, Feb 24, 2012 at 7:21 PM, Sean Bannister wrote: > I was wondering if there's a way to check if node.js is running in > debug mode "node debug script.js" so I can send

[nodejs] Re: Check if node.js is running in debug mode

2012-02-25 Thread Sean Bannister
Because then I'd have to do "node debug script.js debug" because I want to be in debug mode plus I need to know I'm in debug mode. Unless there's a way to send an app into debug mode via code? So I could just do "node script.js debug". On Feb 25, 7:02 pm, dolphin 278 wrote: > Why not pass it a

[nodejs] Re: Check if node.js is running in debug mode

2012-02-25 Thread mscdex
On Feb 24, 10:21 am, Sean Bannister wrote: > I was wondering if there's a way to check if node.js is running in > debug mode "node debug script.js" so I can send extra debug > information to the console when it is. Try checking if `global.v8debug` is defined or not. If it is, then you're in debug

[nodejs] Thinking asynchronously

2012-02-25 Thread Emerson Espínola
Hi, I'm using node-tds in order to connect to Microsoft SQL database. I have table A and B and a n to n relationship called C. In order to insert something in table C I must check if the primary key of A and B exist in their respective tables before with a SELECT statement. Is there any sample c

[nodejs] Bizarre bug & event loop - please help!

2012-02-25 Thread Rambo
Just a simple question before I try to explain the problem: Do every synchronous statement inside functions finish execution before the next event loop? Example: object.on('event', function() { console.log('async') }); function test() { sync1(); sync2(); } test(); Could the event lo

[nodejs] Re: Bizarre bug & event loop - please help!

2012-02-25 Thread mscdex
On Feb 25, 10:47 am, Rambo wrote: > Could the event loop execute a callback added as an event listener between > sync1 and sync2 call? if so, when does sync2 get executed, before or after > the callback? No, the v8 vm is not re-entrant and is non-interruptible, so nothing else will happen between

[nodejs] can you install cloud9 ide now?

2012-02-25 Thread 李白字一日
i was trying with *npm -g install cloud9* and i got messages : npm WARN jsftp@0.1.6 package.json: bugs['web'] should probably be bugs['url'] npm WARN streamer@0.2.0 package.json: bugs['web'] should probably be bugs['url'] . it is not able to install the two packages. is there a way to sol

Re: [nodejs] Bizarre bug & event loop - please help!

2012-02-25 Thread Mark Volkmann
On Sat, Feb 25, 2012 at 9:47 AM, Rambo wrote: > Just a simple question before I try to explain the problem: > > Do every synchronous statement inside functions finish execution before the > next event loop? Yes. > Example: > object.on('event', function() { >     console.log('async') > }); > func

Re: [nodejs] Bizarre bug & event loop - please help!

2012-02-25 Thread Rambo
I'm just having a bizarre bug I cannot find. object.on('event', f1); function f1() { console.log('before') sync1(); console.log('after') } 'event' is being fired like 500 times per minute and I'm seeing 'after' output sometimes. Seems like there are no remaining statements after sy

Re: [nodejs] Bizarre bug & event loop - please help!

2012-02-25 Thread Martin Cooper
On Sat, Feb 25, 2012 at 7:47 AM, Rambo wrote: > Just a simple question before I try to explain the problem: > > Do every synchronous statement inside functions finish execution before the > next event loop? > > Example: > object.on('event', function() { >     console.log('async') > }); > function

Re: [nodejs] Bizarre bug & event loop - please help!

2012-02-25 Thread Dean Landolt
On Sat, Feb 25, 2012 at 11:19 AM, Rambo wrote: > I'm just having a bizarre bug I cannot find. > > object.on('event', f1); > function f1() { > console.log('before') > sync1(); > console.log('after') > } > > 'event' is being fired like 500 times per minute and I'm seeing 'after' > outpu

Re: [nodejs] can you install cloud9 ide now?

2012-02-25 Thread Martin Cooper
On Sat, Feb 25, 2012 at 7:57 AM, 李白字一日 wrote: > > > i was trying with > > npm -g install cloud9 > > and i got messages : > > npm WARN jsftp@0.1.6 package.json: bugs['web'] should probably be > bugs['url'] > npm WARN streamer@0.2.0 package.json: bugs['web'] should probably be > bugs['url'] Those a

Re: [nodejs] Bizarre bug & event loop - please help!

2012-02-25 Thread Rambo
No events are being emitted in sync1(). It is worst than you think, the real thing is: var list = [1,2,3]; object.on('event', f1); function f1() { list.forEach(function(item) { if (item == 1) console.log('before') sync1(); // item is not being modified anywhere if (item == 1) console.log('after')

[nodejs] Re: Bizarre bug & event loop - please help!

2012-02-25 Thread mscdex
On Feb 25, 11:34 am, Dean Landolt wrote: > Remember that console.log is async -- that could be confusing matters. Yep, try console.error instead -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this messa

Re: [nodejs] can you install cloud9 ide now?

2012-02-25 Thread 李白字一日
if the packages are not installed, cloud9 would not start at all. On Sunday, February 26, 2012 12:35:29 AM UTC+8, Martin Cooper wrote: > > On Sat, Feb 25, 2012 at 7:57 AM, 李白字一日 wrote: > > > > > > i was trying with > > > > npm -g install cloud9 > > > > and i got messages : > > > > npm WARN jsftp@

Re: [nodejs] can you install cloud9 ide now?

2012-02-25 Thread 李白字一日
> > thank you for the advice. > it is working now. On Sunday, February 26, 2012 12:35:29 AM UTC+8, Martin Cooper wrote: > > On Sat, Feb 25, 2012 at 7:57 AM, 李白字一日 wrote: > > > > > > i was trying with > > > > npm -g install cloud9 > > > > and i got messages : > > > > npm WARN jsftp@0.1.6 packag

Re: [nodejs] Thinking asynchronously

2012-02-25 Thread Ryan Schmidt
On Feb 24, 2012, at 13:19, Emerson Espínola wrote: > I have table A and B and a n to n relationship called C. > In order to insert something in table C I must check if the primary key of A > and B exist in their respective tables before with a SELECT statement. > Is there any sample code that do

Re: [nodejs] Re: Bizarre bug & event loop - please help!

2012-02-25 Thread Vyacheslav Egorov
Neither is true. V8 is reentrant that is from JS you can call C++ code that would call JS code again immediately. V8 also has preemption mode in which V8 switches between several JS 'threads' (nodejs does not use this mode though) pausing and restarting them. Vyacheslav Egorov On Feb 25, 2012 4:53

Re: [nodejs] Thinking asynchronously

2012-02-25 Thread Emerson Espinola
Thank you for your answer, but I'm not sure if I got your point Ryan. Are you saying that I should simply add "a" and "b" into table C? If so, I think it's not the problem that I'm facing. Before I insert "a" and "b" into table C, I must ensure that there is "a" in table A and there is "b" in t

Re: [nodejs] Re: Secure distribution of NodeJS applications

2012-02-25 Thread Baz
Correct. > Ok, I tried my best to keep my peace, but I can't resist posting this. > > This is a terrible, terrible misguided idea. And please don't co-opt the > word “secure” for it. This has nothing to do with security for either > party; on the contrary, it's more about dealing with your insecu

[nodejs] Which advices to build my project ? (stream audio)

2012-02-25 Thread Ludo
Hi everybody, I would like to build an application which could enable peoples to speak each others, like a vocal tchat rooms. I just finished my first application, a simple tchat using nodejs and socket.io. Could you give me some advices or some way to build my website ? I am a little lost betwe

Re: [nodejs] fs.watch

2012-02-25 Thread Ben Noordhuis
On Sat, Feb 25, 2012 at 03:18, Mark Volkmann wrote: > I want to confirm the behavior I'm seeing from calling fs.watch on a > directory. > I get notified when files in the directory are created, deleted, or > have their content modified (mtime and ctime). > I do not get notified when files are mer

[nodejs] Re: Which advices to build my project ? (stream audio)

2012-02-25 Thread Dave Clements
Hi Ludo Before you think of building this as a web app you need to know that browsers don't curremtly capture mic input, which means you'll have to rely on flash. As for audio related stuff, search this user group, theres a few tidbits about sound scatrered about dave -- Job Board: http://jobs

Re: [nodejs] Re: Bizarre bug & event loop - please help!

2012-02-25 Thread Taka Kojima
You should post the contents of sync1(), you might be missing something. Try replacing sync1() with a fs.readFileSync("someFile.txt"); and see if you get the same result. I suspect that sync1() is doing something that you might be overlooking. On Sat, Feb 25, 2012 at 12:09 PM, Vyacheslav Egoro

Re: [nodejs] Which advices to build my project ? (stream audio)

2012-02-25 Thread Mark Hahn
I don't think browsers support microphone input. I could be wrong. On Sat, Feb 25, 2012 at 7:25 AM, Ludo wrote: > Hi everybody, > > I would like to build an application which could enable peoples to > speak each others, like a vocal tchat rooms. > > I just finished my first application, a simpl

Re: [nodejs] Re: Test driven development for graphics

2012-02-25 Thread Tauren Mills
Ryan, I don't have an out-of-the-box solution for you, but if I was in your shoes I'd be looking into Buster.JS and Phantom.JS to see if they could help: http://busterjs.org/ http://www.phantomjs.org/ The rendering script found in the wiki is pretty cool, but I don't know if it works with canva

[nodejs] Any existing avatar server/image processing projects?

2012-02-25 Thread Tauren Mills
Are there any existing github or other open source projects that provide a node.js-based avatar service or image processing server? I need a gravatar-like service, but that I can customize for my own needs. Basically, I want to expose an api to accomplish these goals: * Images can be uploaded to

Re: [nodejs] Re: Test driven development for graphics

2012-02-25 Thread Ryan Schmidt
On Feb 25, 2012, at 18:35, Tauren Mills wrote: > I don't have an out-of-the-box solution for you, but if I was in your shoes > I'd be looking into Buster.JS and Phantom.JS to see if they could help: Thank you for your response. I had not heard of these projects before. > http://busterjs.org/

Re: [nodejs] Re: Free nodejs services

2012-02-25 Thread Adrien P.
On Thu, Feb 23, 2012 at 6:56 PM, Joe Developer wrote: > > > On Fri, Feb 24, 2012 at 12:40 AM, Jann Horn wrote: >> >> 2012/2/23 Joe Developer : >> > I started a public wiki >> > >> > at http://meet.assembla.com/spaces/nodejs-quickstart/wiki/Hosting_Options I >> > added the 2 that I have had recent

[nodejs] Re: Any existing avatar server/image processing projects?

2012-02-25 Thread Dave Clements
does something like this fit? http://transloadit.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,

[nodejs] 0.7.5 and lint

2012-02-25 Thread Mark Volkmann
In the announcement fo 0.7.5 one of the items is: "jslint src/ and lib/ on 'make test'". However, it doesn't seem that the source would really pass the jslint tests. Looking that the Makefile, it appears that it is using closure_linter, not JSLint. -- R. Mark Volkmann Object Computing, Inc. -- J

Re: [nodejs] Re: Any existing avatar server/image processing projects?

2012-02-25 Thread Anand George
Have you checked https://github.com/schaermu/node-fluent-ffmpeg Anand On Sun, Feb 26, 2012 at 8:34 AM, Dave Clements wrote: > does something like this fit? > > http://transloadit.com/ > > ? > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/M

[nodejs] Re: Free nodejs services

2012-02-25 Thread Tomasz Janczuk
Here is the Windows Azure SDK for node.js, which has everything you need to get started with node.js on Azure (tools, tutorials, samples, etc): https://www.windowsazure.com/en-us/develop/nodejs/ BTW, most of the tools and libraries to use Azure from node.js are open source at https://github.com/wi

[nodejs] Re: Capability security for Web apps: request for comment.

2012-02-25 Thread deitch
@Rob, Agreed, but capability sounds like something of a merger. In auth- based, you separate authentication from authorization, and your credentials only say who you are (authenticate), not what you can do (authorization). Authorization is something that happens internally on the back-end. I could

[nodejs] Re: Capability security for Web apps: request for comment.

2012-02-25 Thread deitch
That is interesting. I don't recall who it was who said that the brilliance of capitalism over every other system is that every other system tries to make humans into what they ideally want to be; capitalism accepts humans with all of their failings and builds a system around them. But leaving poli

[nodejs] Re: Capability security for Web apps: request for comment.

2012-02-25 Thread deitch
@jmar777, do you mind posting a real-world example of how you used it, and why it was better than traditional auth-auth? Perhaps if I saw a real case of, "here was the service we were building, if we did auth/ auth we would have to do X-Y-Z in the following way, if we did capabilities we would do A

Re: [nodejs] can you install cloud9 ide now?

2012-02-25 Thread 李白字一日
sorry, it still cannot work properly . Cannot GET /static/support/treehugger/lib/treehugger/js/parse.js On Sunday, February 26, 2012 12:35:29 AM UTC+8, Martin Cooper wrote: > > On Sat, Feb 25, 2012 at 7:57 AM, 李白字一日 wrote: > > > > > > i was trying with > > > > npm -g install cloud9 > > > > and