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();
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
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:
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
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
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
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 ?
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
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
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
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:
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
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
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
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,
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
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
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:
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) +
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
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 :)
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.
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
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
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
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:
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
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,
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),
29 matches
Mail list logo