Re: [node-dev] Re: Request / Thread local storage

2012-08-02 Thread MikeS
Here's some working code: use strict; var domain = require('domain'); var assert = require('assert'); // Implement a session class that keeps track of async operations // Is uses a domain to handle errors in these operations function Session() { this.domain = domain.createDomain();

Re: [nodejs] Re: e-Commerce platform

2012-08-02 Thread mlegenhausen
When you want something to know about SEO I think it is the best to open a new thread. There are several ways: - Dual Templating (serve the side in two versions static and dynamic, use the same templating engine for both sides. Described by google) - Use pjax

[nodejs] Re: [RFC] Sandbox Module.

2012-08-02 Thread Tim
Bradley, what's the status of this? I was looking at extending the Sandbox framework a little by providing a dumbed down require() and wrappers for things like fs that enforce restrictions on paths etc. -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] Re: Trying to understand streams and child processes

2012-08-02 Thread carlton
I've gone back to using node-sftp, it seems like somebody made an addition that uses pty instead of tty I've explained what I did here, for me I couldn't use the version that came from npm install, I had to download the version from git and copy the module to my project manually

[nodejs] Re: Trying to understand streams and child processes

2012-08-02 Thread carlton
But thanks for all of your input on this one guys/gals On Monday, 30 July 2012 12:01:43 UTC+1, carlton wrote: Hi there, I am trying to implent a nodejs script that connects to one of our servers using sftp. So far I can connect using child process and spawning a command such as... sftp

[nodejs] string encoding

2012-08-02 Thread Danil Gazizov
I'm confused of how to compare string const with variable. Look at this simple example where keyboard input compares with const string. I suggest this is encoding problem. Please, tell me what should be done to exit process ? File encoding is utf8 process.stdin.setEncoding();//default is utf-8

[nodejs] Re: string encoding

2012-08-02 Thread mscdex
On Aug 2, 9:15 am, Danil Gazizov danil.gazi...@gmail.com wrote: I'm confused of how to compare string const with variable. Look at this simple example where keyboard input compares with const string. I suggest this is encoding problem. Please, tell me what should be done to exit process ?

Re: [nodejs] string encoding

2012-08-02 Thread Dan Milon
for me, text is exit\n I guess you are on windows, so text is exit\r\n The readline module might help you. On 08/02/2012 04:15 PM, Danil Gazizov wrote: I'm confused of how to compare string const with variable. Look at this simple example where keyboard input compares with const string. I

[nodejs] Problem with getting uv_tcp_t handle from net.Socket

2012-08-02 Thread mscdex
Code and errors: https://gist.github.com/0b29ddfcc440450b6dc6 Any help is greatly appreciated. -- 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

Re: [nodejs] string encoding

2012-08-02 Thread Dominic Tarr
try removing whitespace from the ends text = text.trim() On Thu, Aug 2, 2012 at 3:24 PM, Dan Milon danmi...@gmail.com wrote: for me, text is exit\n I guess you are on windows, so text is exit\r\n The readline module might help you. On 08/02/2012 04:15 PM, Danil Gazizov wrote: I'm

[nodejs] Re: Problem with getting uv_tcp_t handle from net.Socket

2012-08-02 Thread mscdex
On Aug 2, 9:45 am, mscdex msc...@gmail.com wrote: Code and errors:https://gist.github.com/0b29ddfcc440450b6dc6 Any help is greatly appreciated. Scratch that, TCPWrap isn't exported. -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] https, GoDaddy SSL cert, node.js under Microsoft Azure

2012-08-02 Thread thstart
Install GoDaddy SSL certificate with Node.js I want to use https for my web app which is running on Microsoft Azure. I used IIS to generate certificate for GoDaddy then downloaded two files: domain name.crt gd_iis_intermediates.p7b Then I followed procedures described in GoDaddy to export and

Re: [nodejs] https, GoDaddy SSL cert, node.js under Microsoft Azure

2012-08-02 Thread Ben Noordhuis
On Thu, Aug 2, 2012 at 5:27 PM, thstart bragbu...@bragbuddy.com wrote: Install GoDaddy SSL certificate with Node.js I want to use https for my web app which is running on Microsoft Azure. I used IIS to generate certificate for GoDaddy then downloaded two files: domain name.crt

Re: [nodejs] string encoding

2012-08-02 Thread Dominic Tarr
try removing whitespace from the ends text = text.trim() On Thu, Aug 2, 2012 at 3:24 PM, Dan Milon danmi...@gmail.com wrote: for me, text is exit\n I guess you are on windows, so text is exit\r\n The readline module might help you. On 08/02/2012 04:15 PM, Danil Gazizov wrote: I'm

Re: [nodejs] string encoding

2012-08-02 Thread Danil Gazizov
Oh.. things are more simple than I supposed! Thank's, Dan! You saved my brain четверг, 2 августа 2012 г., 17:24:57 UTC+4 пользователь Dan Milon написал: for me, text is exit\n I guess you are on windows, so text is exit\r\n The readline module might help you. On 08/02/2012 04:15 PM,

Re: [nodejs] string encoding

2012-08-02 Thread Danil Gazizov
Thank's Dominic! It works! четверг, 2 августа 2012 г., 19:17:52 UTC+4 пользователь Dominic написал: try removing whitespace from the ends text = text.trim() On Thu, Aug 2, 2012 at 3:24 PM, Dan Milon danmi...@gmail.com wrote: for me, text is exit\n I guess you are on windows, so text

[nodejs] Re: [RFC] Sandbox Module.

2012-08-02 Thread Bradley Meck
It broke in 0.7.x, have not had time to get it running again. On Thursday, August 2, 2012 3:01:17 AM UTC-5, Tim wrote: Bradley, what's the status of this? I was looking at extending the Sandbox framework a little by providing a dumbed down require() and wrappers for things like fs that

[nodejs] capsule or similar (node, socketio, mongo, backbone

2012-08-02 Thread john.tiger
has anyone used this (it seems dated and not upgraded) or something similar ? idea being backbone on client with node, socket.io, and mongo without all the baggage and maint of a server side framework thks for any insight -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] Memory usage, how to garbage collect

2012-08-02 Thread Ben Buckman
Suppose I have a very large array in memory and want to clear it after it's no longer needed. This snippet replicates the scenario: console.log(Memory usage initial:, process.memoryUsage()); var hugeStack = [], i, obj; function longRandomString(){ return Math.random().toString(7) +

Re: [nodejs] https, GoDaddy SSL cert, node.js under Microsoft Azure

2012-08-02 Thread thstart
Thank you. Will look at it. Don't feel very comfortable using it with a password that way. On Thursday, August 2, 2012 8:33:17 AM UTC-7, Ben Noordhuis wrote: On Thu, Aug 2, 2012 at 5:27 PM, thstart bragbu...@bragbuddy.com wrote: Install GoDaddy SSL certificate with Node.js I want to

[nodejs] Last day to buy NodeConf SummerCamp tickets

2012-08-02 Thread Mikeal Rogers
We need to get a final count to the camp so this will be probably be the last day that you can buy SummerCamp tickets. Come join me, dshaw, Paolo, isaacs, tmpvar, Max Ogden, Charlie Robbins and a ton of other people in the woods geeking out about node.js :)

[nodejs] Re: Most efficient way of piping HTTP body through a tunneling proxy

2012-08-02 Thread ajc
Hi axs, +1 for request. It will help you massively on the client side. I tried to do what you're doing a few weeks ago so I could use SSH in cafes. I found that I had to do write a blank string into the http stream on the client side to force request to send the request headers though.

[nodejs] NodeJS ReadStream not reading bufferSize bytes at a time

2012-08-02 Thread Gill
I have a code where the NodeJS server reads a file and streams it to response, it looks like: var fStream = fs.createReadStream(filePath, {'bufferSize': 128 * 1024}); fStream.pipe(response); The issue is, Node reads the file exactly 40960 bytes a time. However, my app would be much more

[nodejs] Re: Standard Test Runner for Node

2012-08-02 Thread Arne Hassel
Hi, You might be interested in checking out BusterJS. It's a testing framework that allows you to test your code in both browsers and Node. Also has a lot of functions, so might be something you can use ^_^ http://busterjs.org/ Regards, Arne On Monday, July 16, 2012 6:56:14 PM UTC+2, Alex

Re: [nodejs] NodeJS ReadStream not reading bufferSize bytes at a time

2012-08-02 Thread Ben Noordhuis
On Thu, Aug 2, 2012 at 9:21 PM, Gill taran.i...@gmail.com wrote: I have a code where the NodeJS server reads a file and streams it to response, it looks like: var fStream = fs.createReadStream(filePath, {'bufferSize': 128 * 1024}); fStream.pipe(response); The issue is, Node reads the file

[nodejs] Re: capsule or similar (node, socketio, mongo, backbone

2012-08-02 Thread mscdex
On Aug 2, 2:11 pm, john.tiger john.tigernas...@gmail.com wrote: has anyone used this (it seems dated and not upgraded)  or something similar ?  idea being backbone on client with node, socket.io, and mongo without all the baggage and maint of a server side framework There's backbone.io:

Re: [nodejs] NodeJS ReadStream not reading bufferSize bytes at a time

2012-08-02 Thread Nathan Rajlich
You may want to check out block-stream if you require buffers in specific chunk sizes: https://npmjs.org/package/block-stream On Thu, Aug 2, 2012 at 4:29 PM, Ben Noordhuis i...@bnoordhuis.nl wrote: On Thu, Aug 2, 2012 at 9:21 PM, Gill taran.i...@gmail.com wrote: I have a code where the NodeJS

[nodejs] Re: Last day to buy NodeConf SummerCamp tickets

2012-08-02 Thread Charlie Key
Just got our 3 tickets. Thanks for the heads up. On Thursday, August 2, 2012 4:53:10 PM UTC-4, Mikeal Rogers wrote: We need to get a final count to the camp so this will be probably be the last day that you can buy SummerCamp tickets. Come join me, dshaw, Paolo, isaacs, tmpvar, Max Ogden,

[nodejs] actionHero Version 3: Websockets and more!

2012-08-02 Thread Evan
Hello Node.js Community - I want to announce the release of actionHero version 3. This release adds web socket support as a first-class protocol (via socket.io) as well as improvements to the task system. actionHero is an API framework which makes is possible to serve up http(s),