Re: [nodejs] Re: NodeJS downloadable Docs

2012-02-23 Thread T.C. Hollingsworth
On Feb 23, 2012 11:52 PM, "Jeremy Rudd" wrote: > > Thanks TC, > > But .markdown files cannot be natively viewed on usual computers. HTML/ > CHM is a more friendly format. It's available in HTML in the tarball. It is just markdown in git though. Sorry, forgot about that. -T.C. -- Job Board: ht

[nodejs] Re: NodeJS downloadable Docs

2012-02-23 Thread Jeremy Rudd
Thanks TC, But .markdown files cannot be natively viewed on usual computers. HTML/ CHM is a more friendly format. JR On Feb 23, 11:19 pm, "T.C. Hollingsworth" wrote: > On Thu, Feb 23, 2012 at 9:50 AM, Jeremy Rudd > wrote: > > Hi, > > > I couldn't find a downloadable version of the NodeJS docs

[nodejs] Re: NodeJS downloadable Docs

2012-02-23 Thread Jeremy Rudd
Can someone please upload my CHM/ZIP on the Node website under to Docs folder? -- 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. T

Re: [nodejs] Support for multiple ARCHs on Mac OS X (fat binaries)

2012-02-23 Thread Isaac Schlueter
Ben is right. v0.7.5 released today with a lipo-stitched up pkg installer. v0.6 has a similar patch, and will be released likewise soon. Fixing it in gyp would of course be lovely, though. It's a slow process to build it twice. If someone with a ia32 macintosh could try out the v0.7.5 pkg, tha

Re: [nodejs] maybe some memory leak in TLS module

2012-02-23 Thread Matt
Would love someone with more expertise in 0.6.x+ to look over the code and tell me if I'm doing something wrong then. Otherwise maybe we need to file a bug in Node. 2012/2/23 马涛 > 0.4.12 is OK > > 在 2012年2月24日 上午12:56,Matt 写道: > > Can you try with 0.4.12? >> >> http://nodejs.org/dist/node-v0.4.

Re: [nodejs] maybe some memory leak in TLS module

2012-02-23 Thread 马涛
0.4.12 is OK 在 2012年2月24日 上午12:56,Matt 写道: > Can you try with 0.4.12? > > http://nodejs.org/dist/node-v0.4.12.tar.gz > > > 2012/2/23 马涛 > >> Both 0.6.10 && 0.6.11 >> >> 发自我的 iPhone >> >> 在 2012-2-24,0:41,Matt 写道: >> >> What version of Node? I do all my Haraka testing on 0.4 (I know, I know), >>

[nodejs] Re: Free nodejs services

2012-02-23 Thread Dobes
Hi, Today I noticed that you can host node.js applications on Windows Azure. If you sign up for BizSpark you can get $3700 per year worth of services for free. http://www.microsoft.com/bizspark/azure/ I don't think the BizSpark program is too hard to get into and if you need more than that you'

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

2012-02-23 Thread Avi Deitcher
It seems like that is the only thing. Essentially, these are two completely different philosophies: 1- Authorization: each of us has a unique key to authenticate, and authorization is controlled server-side. For Adam to give Eve access to something, John must do so on the server, and all he tells

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

2012-02-23 Thread Dan Yoder
Perhaps the most significant thing about capabilities is that they divorce identity from authorization. Adam can share a key with Eve and now Eve has the associated privileges. I tried to outline the main advantages in the blog post: simplicity, flexibility, and the intrinsic enforcement of the pr

[nodejs] Re: Intrinsic datastores for Node.js

2012-02-23 Thread Juraj Vitko
LOL. (But truth is, from my original post it's not clear that I did not mean to extend Node or v8 directly, but instead via native addons.) On Feb 24, 1:01 am, mgutz wrote: > Node already has a boondongle---Windows. Sorry, couldn't resist. -- Job Board: http://jobs.nodejs.org/ Posting guideline

[nodejs] Re: Intrinsic datastores for Node.js

2012-02-23 Thread mgutz
Node already has a boondongle---Windows. Sorry, couldn't resist. -- 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

[nodejs] Node v0.7.5

2012-02-23 Thread Isaac Schlueter
2012.02.23, Version 0.7.5 (unstable) * startup speed improvements (Maciej Małecki) * crypto: add function getDiffieHellman() (Tomasz Buchert) * buffer: support decoding of URL-safe base64 (Ben Noordhuis) * Make QueryString.parse() even faster (Brian White) * url: decode url entities in auth se

Re: [nodejs] Best practice for pushing lots of data over TCP to a distant server

2012-02-23 Thread Dan North
The "best practice" here is to prefer pull over push. The remote daemon will always knbow best r -Original Message- From: Tim Caswell Sender: nodejs@googlegroups.com Date: Thu, 23 Feb 2012 09:00:30 To: Reply-To: nodejs@googlegroups.com Subject: Re: [nodejs] Best practice for pushing lot

[nodejs] Re: JSLint or not?

2012-02-23 Thread Thom Blake
On Feb 23, 3:57 pm, Dean Landolt wrote: > > Besides, emacs would kindly have underlined that bit in red for me. > > (and turned yellow any globals) > > That's called a "linter" ;) Funny, I would have just called it a properly-functioning code editor. Besides, the first one is a syntax error -

Re: [nodejs] Re: JSLint or not?

2012-02-23 Thread Dean Landolt
On Thu, Feb 23, 2012 at 3:40 PM, Thom Blake wrote: > Much agreed with Jonny. That code has ugly separators at the end of > lines and jumped out immediately. > > Besides, emacs would kindly have underlined that bit in red for me. > (and turned yellow any globals) > That's called a "linter" ;)

[nodejs] Re: JSLint or not?

2012-02-23 Thread Thom Blake
Much agreed with Jonny. That code has ugly separators at the end of lines and jumped out immediately. Besides, emacs would kindly have underlined that bit in red for me. (and turned yellow any globals) On Feb 23, 2:48 pm, Jonathan Buchanan wrote: > On 23 February 2012 14:29, Dean Landolt wrote

Re: [nodejs] Re: JSLint or not?

2012-02-23 Thread Jonathan Buchanan
On 23 February 2012 14:29, Dean Landolt wrote: > > > On Thu, Feb 23, 2012 at 4:44 AM, Arnout Kazemier wrote: >> >> Comma first solves that perfectly, no need to jshint that ;D > > I wouldn't say perfectly. There's a gaping hole in the comma-first style: > > var arr = [ "foo", >           , "bar",

Re: [nodejs] Where's my stack trace?

2012-02-23 Thread Nathan Rajlich
Yes, this does indeed work. Add this after the `Error.captureStackTrace()` call: Object.defineProperty(this, 'stack', { enumerable: true }); Cheers! On Thu, Feb 23, 2012 at 11:30 AM, Nathan Rajlich wrote: > What happened is that V8 switched over to having the 'stack' property be > non-enume

Re: [nodejs] Where's my stack trace?

2012-02-23 Thread Nathan Rajlich
What happened is that V8 switched over to having the 'stack' property be non-enumerable, so JSON.stringify(), Object.keys(), and friends do not see these properties now. You might be able to alter the property descriptor for 'stack' after the Error.captureStackTrace() call. On Thu, Feb 23, 2012 at

Re: [nodejs] Re: JSLint or not?

2012-02-23 Thread Dean Landolt
On Thu, Feb 23, 2012 at 4:44 AM, Arnout Kazemier wrote: > Comma first solves that perfectly, no need to jshint that ;D > I wouldn't say *perfectly*. There's a gaping hole in the comma-first style: var arr = [ "foo", , "bar", , "baz" ] Did you spot the error right

Re: [nodejs] Re: parseInt bug

2012-02-23 Thread Marco Rogers
You guys should stop trolling each other and try to be helpful. This is an area of js fraught with both FUD and wtfjs. Better to educate than to spout personal anecdotes and one off edge cases. Mark has the right idea by saying pick the technique that "does what you want". But you have to know

Re: [nodejs] Re: JSLint or not?

2012-02-23 Thread Matt
On Thu, Feb 23, 2012 at 1:49 PM, Jonathan Buchanan < jonathan.bucha...@gmail.com> wrote: > On 22 February 2012 21:23, tjholowaychuk wrote: > > use it for things that actually matter, like discovering unwanted > > global vars etc, but ignore all the style crap > > I use Closure Compiler for this i

Re: [nodejs] Re: JSLint or not?

2012-02-23 Thread Marcel Laverdet
Doesn't every modern JS-minifier kill trailing commas? On Thu, Feb 23, 2012 at 3:27 AM, cole gillespie wrote: > one thing that i use it for mainly is to catch trailing commas of death -- > IE is a bitch. JSHint helps with checking for simple human errors. I agree > with TJ 100% > > > On Thu, Feb

Re: [nodejs] Re: Memory leak

2012-02-23 Thread Mark Hahn
> BTW, I assume the response.end() should clear down any internal memory structures that hold the response payload? I would assume the structures disappear only when request and response go out of scope. On Thu, Feb 23, 2012 at 5:03 AM, rtweed wrote: > One thing to add to Chris's description

Re: [nodejs] Re: JSLint or not?

2012-02-23 Thread Jonathan Buchanan
On 22 February 2012 21:23, tjholowaychuk wrote: > use it for things that actually matter, like discovering unwanted > global vars etc, but ignore all the style crap I use Closure Compiler for this instead: https://gist.github.com/1508450 -- Jonny -- Job Board: http://jobs.nodejs.org/ Posting g

Re: [nodejs] NodeJS downloadable Docs

2012-02-23 Thread T.C. Hollingsworth
On Thu, Feb 23, 2012 at 9:50 AM, Jeremy Rudd wrote: > Hi, > > I couldn't find a downloadable version of the NodeJS docs anywhere, so I > grabbed a copy of the "docs" portion of the website using a sitegrabber, and > I've uploaded the resulting file in case anyone else is interested. Please > note

Re: [nodejs] NodeJS downloadable Docs

2012-02-23 Thread dale tan
ya i saw that too. thanks On Thu, Feb 23, 2012 at 12:31 PM, Jeremy Rudd wrote: > I attached a ZIP if you prefer the browser. > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because

[nodejs] Re: Where's my stack trace?

2012-02-23 Thread TipTop
Yeah I should not have done it three time sorry. To your problem you might want to call Error.prototype.captuerStackTrace On Feb 23, 12:56 pm, TipTop wrote: > What you're looking for is err.stack I think its a getter or the new > error object > > On Feb 23, 9:56 am, GN wrote: > > > > > I've jus

[nodejs] Re: Where's my stack trace?

2012-02-23 Thread TipTop
Oh never mind. Its not what you're looking for. On Feb 23, 12:56 pm, TipTop wrote: > What you're looking for is err.stack I think its a getter or the new > error object > > On Feb 23, 9:56 am, GN wrote: > > > > > I've just upgraded node from 0.4.12 to 0.6.11 and noticed that my JSON > > response

Re: [nodejs] Re: Free nodejs services

2012-02-23 Thread Joe Developer
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 experience with. Please do add more > and > > expand the columns as y

[nodejs] Re: Where's my stack trace?

2012-02-23 Thread TipTop
What you're looking for is err.stack I think its a getter or the new error object On Feb 23, 9:56 am, GN wrote: > I've just upgraded node from 0.4.12 to 0.6.11 and noticed that my JSON > responses that used to have stack traces no longer include it. Am I > possibly missing a parameter that needs

Re: [nodejs] Re: Free nodejs services

2012-02-23 Thread Jann Horn
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 experience with. Please do add more and > expand the columns as you see fit, going to leave it public-edit. Why not in the nodejs w

Re: [nodejs] NodeJS downloadable Docs

2012-02-23 Thread Jeremy Rudd
I attached a ZIP if you prefer the browser. -- 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

Re: [nodejs] NodeJS downloadable Docs

2012-02-23 Thread dale tan
got it, thanks On Thu, Feb 23, 2012 at 12:01 PM, Ryan Schmidt wrote: > On Feb 23, 2012, at 10:54, dale tan wrote: > > > what kind of extension is "chm"? That isn't recognized on a mac. > > chm is a "compiled html" file / collection. > > chmox is a mac os x program that can read them. > > http://

Re: [nodejs] NodeJS downloadable Docs

2012-02-23 Thread Ryan Schmidt
On Feb 23, 2012, at 10:54, dale tan wrote: > what kind of extension is "chm"? That isn't recognized on a mac. chm is a "compiled html" file / collection. chmox is a mac os x program that can read them. http://chmox.sourceforge.net/ -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] NodeJS downloadable Docs

2012-02-23 Thread Jeremy Rudd
Sorry dtan, CHM is a windows-only Compiled HTML package. I'll output the raw HTML for Mac/Unix users. Here: *NodeJS Docs.zip * (220 KB) PS: If you cannot see the link: http://www.box.com/s/4efuqosleeign5p2om7m -- Job Board: http://jobs.nodejs.org/ Pos

Re: [nodejs] Secure distribution of NodeJS applications

2012-02-23 Thread Chris Rhoden
My recommendation as far as the VM is simply to package up a VMWare appliance or something similar and have the clients run it on their network. You don't need to give them passwords if you have configured it correctly. On Thu, Feb 23, 2012 at 11:58 AM, Tim Caswell wrote: > Yes, functions writte

Re: [nodejs] Secure distribution of NodeJS applications

2012-02-23 Thread Tim Caswell
Yes, functions written in C++ can be called from javascript (this is how all the node primitives are implemented). C++ can call back to js, it's just not as straightforward. On Thu, Feb 23, 2012 at 10:54 AM, Jeremy Rudd wrote: > Don't know much about C++ addons. Can they access NodeJS objects as

Re: [nodejs] maybe some memory leak in TLS module

2012-02-23 Thread Matt
Can you try with 0.4.12? http://nodejs.org/dist/node-v0.4.12.tar.gz 2012/2/23 马涛 > Both 0.6.10 && 0.6.11 > > 发自我的 iPhone > > 在 2012-2-24,0:41,Matt 写道: > > What version of Node? I do all my Haraka testing on 0.4 (I know, I know), > and haven't seen this... > > On Wed, Feb 22, 2012 at 8:39 PM, 马

Re: [nodejs] NodeJS downloadable Docs

2012-02-23 Thread dale tan
what kind of extension is "chm"? That isn't recognized on a mac. On Thu, Feb 23, 2012 at 11:50 AM, Jeremy Rudd wrote: > Hi, > > I couldn't find a downloadable version of the NodeJS docs anywhere, so I > grabbed a copy of the "docs" portion of the website using a sitegrabber, > and I've uploaded

Re: [nodejs] Secure distribution of NodeJS applications

2012-02-23 Thread Jeremy Rudd
Don't know much about C++ addons. Can they access NodeJS objects as usual? All classes and functions? Anyways, about the VM thing, is it possible to capture the snapshot the V8 engine generates, and then use that to run the app? Regardless, if you're saying that the Node/V8 engines keep the sou

[nodejs] NodeJS downloadable Docs

2012-02-23 Thread Jeremy Rudd
Hi, I couldn't find a downloadable version of the NodeJS docs anywhere, so I grabbed a copy of the "docs" portion of the website using a sitegrabber, and I've uploaded the resulting file in case anyone else is interested. Please note that only links under the "docs" section work. Click the "doc

Re: [nodejs] maybe some memory leak in TLS module

2012-02-23 Thread 马涛
Both 0.6.10 && 0.6.11 发自我的 iPhone 在 2012-2-24,0:41,Matt 写道: What version of Node? I do all my Haraka testing on 0.4 (I know, I know), and haven't seen this... On Wed, Feb 22, 2012 at 8:39 PM, 马涛 wrote: > hi, there >I got some error and I think there maybe some memory leak in TLS module >

Re: [nodejs] Re: JSLint or not?

2012-02-23 Thread Matt
Isn't "use strict" better for that? On Wed, Feb 22, 2012 at 9:23 PM, tjholowaychuk wrote: > use it for things that actually matter, like discovering unwanted > global vars etc, but ignore all the style crap > > On Feb 22, 12:34 pm, "P. Douglas Reeder" wrote: > > @Douglas, have you compared it wi

Re: [nodejs] Re: Free nodejs services

2012-02-23 Thread 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 experience with. Please do add more and expand the columns as you see fit, going to leave it public-edit. On Wed, Feb 22, 2012 at 11:45 PM, Le Zhang wrote: > Wo

Re: [nodejs] maybe some memory leak in TLS module

2012-02-23 Thread Matt
What version of Node? I do all my Haraka testing on 0.4 (I know, I know), and haven't seen this... On Wed, Feb 22, 2012 at 8:39 PM, 马涛 wrote: > hi, there >I got some error and I think there maybe some memory leak in TLS module > > > terminate called after throwing an instance of

Re: [nodejs] Secure distribution of NodeJS applications

2012-02-23 Thread Tim Caswell
Yes, since javascript functions show their source when they are toStringed, the source needs to be kept in memory, even in snapshots. I will say if you're building a custom binary anyway, why not put the sensitive parts in a C++ addon and require that from the JavaScript? Reverse engineering On

Re: [nodejs] Secure distribution of NodeJS applications

2012-02-23 Thread Rob Ashton
I thought snapshots also included the source code - at least that was my understanding from a previous thread on the same matter? On Thu, Feb 23, 2012 at 5:27 PM, Ben Noordhuis wrote: > On Thu, Feb 23, 2012 at 16:56, Jeremy Rudd > wrote: > > What: Can NodeJS apps be distributed as binary? ie. y

Re: [nodejs] Secure distribution of NodeJS applications

2012-02-23 Thread Chris Rhoden
Why not distribute a VM? On Thu, Feb 23, 2012 at 11:27 AM, Ben Noordhuis wrote: > On Thu, Feb 23, 2012 at 16:56, Jeremy Rudd > wrote: > > What: Can NodeJS apps be distributed as binary? ie. you compile the .js > app > > via V8 into its native binary, and distribute the binary to our clients? >

Re: [nodejs] Secure distribution of NodeJS applications

2012-02-23 Thread Ben Noordhuis
On Thu, Feb 23, 2012 at 16:56, Jeremy Rudd wrote: > What: Can NodeJS apps be distributed as binary? ie. you compile the .js app > via V8 into its native binary, and distribute the binary to our clients? ... > or is minifying the code all you can do? > > Why: We build serverside applications in Nod

[nodejs] Secure distribution of NodeJS applications

2012-02-23 Thread Jeremy Rudd
*What:* Can NodeJS apps be distributed as binary? ie. you compile the .js app via V8 into its native binary, and distribute the binary to our clients? ... or is minifying the code all you can do? *Why:* We build serverside applications in NodeJS for clients, that have often to be hosted on the

[nodejs] memory leak?

2012-02-23 Thread Angelo Chen
Hi, tried to stress test a simple page, got this error, what it means? thanks buffer.js:6670: Uncaught TypeError: First argument must be a Buffer -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this mess

[nodejs] Re: Where's my stack trace?

2012-02-23 Thread GN
I forgot to mention that I am also using express (V2.5.8) in this case. On Feb 23, 9:56 am, GN wrote: > I've just upgraded node from 0.4.12 to 0.6.11 and noticed that my JSON > responses that used to have stack traces no longer include it. Am I > possibly missing a parameter that needs to be pass

[nodejs] Where's my stack trace?

2012-02-23 Thread GN
I've just upgraded node from 0.4.12 to 0.6.11 and noticed that my JSON responses that used to have stack traces no longer include it. Am I possibly missing a parameter that needs to be passed in that will bring this functionality back? Here's an example of what I'm doing: function MyError(msg){

Re: [nodejs] Best practice for pushing lots of data over TCP to a distant server

2012-02-23 Thread Tim Caswell
Tcp itself handles a lot of the connection issues, so it's fairly reliable. You can still get disconnects at this level and you'll need to write reconnect logic if you want to be that robust. As far as bandwidth throttling, use Stream.prototype.pipe which implements "backpressure". That is, it s

Re: [nodejs] Re: parseInt bug

2012-02-23 Thread dolphin278
They are busy with their spaceship-size configuration files, so we safe :) On 23.02.2012, at 18:30, Lothar Pfeiler wrote: > I still wonder, if it's cool to have such a big discussion on how to > convert a string into an integer, or if all the java developers laugh > at us. :-) > > On Feb 23, 5:

[nodejs] Re: parseInt bug

2012-02-23 Thread Lothar Pfeiler
I still wonder, if it's cool to have such a big discussion on how to convert a string into an integer, or if all the java developers laugh at us. :-) On Feb 23, 5:17 am, Dave Clements wrote: > +1 for + > > :D > > On Feb 22, 6:18 pm, Mark Hahn wrote: > > > > > > > > > >  +'123 px' > > >  NaN > >

[nodejs] Re: Using node behind firewall with HTTP_PROXY

2012-02-23 Thread Boris Simandoff
Unfortunately, I also couldn't find way to make JSDOM to use http_proxy. You can use "request" to download your html using proxy and submit the body to jsdom: request({ uri:'http://www.google.com' }, function (e, r, html) { if (e && r.statusCode !== 200) { console.log("Some error message");

[nodejs] os.cpus() on windows

2012-02-23 Thread Dominik Kienzler
Hi, after trying sigar i noticed that there IS a node native module os that can give me the information i need. i tried it on linux and everything works fine, on windows 7 x64 os.cpus() just gives me: [ { model: 'Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz', speed: 3292, times: { user: 0,

[nodejs] Re: Memory leak

2012-02-23 Thread rtweed
One thing to add to Chris's description of the problem (I'm working with him on it): - the child processes stay alive (or are supposed to stay alive) indefinitely, with the Node process triggering "data" events coming from them on STDOUT. No "end" events therefore occur under normal circumstances

Re: [nodejs] Memory leak

2012-02-23 Thread Chris Casey
It is a custom webserver and we have built no caching as all pages served are dynamic. Pretty much convinced though that the problem is in the pages fetched from the child processes rather than the push to the browser as closing the child processes releases the memory. Chris -- Job Board: htt

Re: [nodejs] Re: JSLint or not?

2012-02-23 Thread Arnout Kazemier
Comma first solves that perfectly, no need to jshint that ;D On Thursday, February 23, 2012 at 10:27 AM, cole gillespie wrote: > one thing that i use it for mainly is to catch trailing commas of death -- IE > is a bitch. JSHint helps with checking for simple human errors. I agree with > TJ 100%

Re: [nodejs] Re: JSLint or not?

2012-02-23 Thread cole gillespie
one thing that i use it for mainly is to catch trailing commas of death -- IE is a bitch. JSHint helps with checking for simple human errors. I agree with TJ 100% On Thu, Feb 23, 2012 at 3:23 AM, tjholowaychuk wrote: > use it for things that actually matter, like discovering unwanted > global var

Re: [nodejs] piping jpeg to browser, pictures got overlapped

2012-02-23 Thread Denys Khanzhiyev
You may try to fix this by youself - just open firebird.js file in module directory and move line #157 function Stream(blob){ before line #130 var buf = null; 23 февраля 2012 г. 8:12 пользователь Angelo Chen написал: > hi, > > I pipe jpegs from database to browser with following code, if