Re: [nodejs] Re: [ANN] New release of node-webkit - run node.js apps on desktop

2012-08-11 Thread Roger Wang
I don't think the 2 projects are the same. In AppJS there is a bridge marshalling the function calls (correct me if I'm wrong) between the processes[1], while in node-webkit, WebKit and NodeJS resides in the same process thus any function call is made directly. [1] https://github.com/appjs/appj

Re: [nodejs] Raft - PaaS - Advice from nodester / nodejitsu / haibu

2012-08-11 Thread Joshua Holbrook
Hi. I know nodejitsu. ;) > Nodejitsu are the developer of haibu, but i dont think that is what they are > using for the PaaS. Actually, haibu is what runs everyone's apps on nodejitsu! We have a few closed source extensions for haibu, but aside from that it's all the same. In fact, I encourage

[nodejs] Raft - PaaS - Advice from nodester / nodejitsu / haibu

2012-08-11 Thread Tim Dickinson
Hey all. So this is not a ANN but more of an request for advice from nodester / nodejitsu / haibu and the community in general. What i have been working on for the past few months is of sort a PaaS. The basic idea behind it is to create a server to can spawn node apps that are pushed out to it

Re: [nodejs] Backwards compatibility for node 0.8

2012-08-11 Thread Mikeal Rogers
On Aug 11, 2012, at August 11, 20121:06 PM, Marco Rogers wrote: > I'm sure there's already a thread with good info about this. But I want to > start a fresh topic. I'm updating a few of my open source libs to be > compatibile with 0.8. And I'm trying to sort out the best way to remain > bac

Re: [nodejs] Re: what does the \n in response.write('hello\n'); responsible for?

2012-08-11 Thread Isaac Schlueter
It's the browser doing that. (Curl does too, apparently.) The bytes are indeed actually written to the socket, and flushed out asap, regardless of whether or not there's any \n. Try this test: var http = require('http'); http.createServer(function (request, response) { response.write('Hello')

[nodejs] Backwards compatibility for node 0.8

2012-08-11 Thread Marco Rogers
I'm sure there's already a thread with good info about this. But I want to start a fresh topic. I'm updating a few of my open source libs to be compatibile with 0.8. And I'm trying to sort out the best way to remain backwards compatible with 0.6 and ideally 0.4 if possible. I'll just start with a f

Re: [nodejs] Re: Choose an extension is suit for nodejs ?

2012-08-11 Thread Martin Cooper
On Sat, Aug 11, 2012 at 3:15 AM, bo b wrote: > NO, .js IS refer to static brower javascript . > > if you choose .js as page extension it would be great problem ! It seems that perhaps you're trying to replicate a rather old web development model here. In general, people don't expose mappings fro

Re: [nodejs] Re: what does the \n in response.write('hello\n'); responsible for?

2012-08-11 Thread josh
var http = require('http'); http.createServer(function (request, response) { response.write('Hello'); setTimeout(function(){ response.end('world'); }, 5000); }).listen(3001); this code will not display 'Hello' right away. it will display 'Hello world' after 5 seconds. changing it to

Re: [nodejs] Re: what does the \n in response.write('hello\n'); responsible for?

2012-08-11 Thread Isaac Schlueter
On Fri, Aug 10, 2012 at 12:27 AM, Yordan Ivanov wrote: > 1. The symbol \n flushesh your buffer and "forces" data sending. It is a way > for (allmost) any platform to flush the buffer. That is not even remotely accurate. There is nothing at all magical about the 0x0A byte. This is TCP, not a she

[nodejs] Re: Best practices for sharing code and data between the server and client

2012-08-11 Thread shoshy
Nils, Thanks a lot for your quick reply. I'll test it, i did see the entry_validation, but didn't know if backbone likes to be used on both sides :) same goes with require.js... i'll keep you updated. regarding SQL driver - is think this is a major pitfall for node.js. node.js should have a n

[nodejs] Re: Best practices for sharing code and data between the server and client

2012-08-11 Thread Nils Lattek
Shoshy, thanks for your kind feedback. Yes you can just move any javascript file to the shared/js folder and adjust the file to require amdefine at the top (like in the example entry_validation file). Then make sure to use the correct (relative) path on the client and server. Take a look at cli

Re: [nodejs] Re: [ANN] New release of node-webkit - run node.js apps on desktop

2012-08-11 Thread Zhao Cheng
On Fri, Aug 10, 2012 at 8:00 PM, José F. Romaniello wrote: > Hi Zhao, what are the steps to run the file explorer example? I've added up instructions for running the file explorer, and it's quite simple, see again: https://github.com/zcbenz/nw-file-explorer -- Cheng Intel Open Source Technology

Re: [nodejs] Re: [ANN] New release of node-webkit - run node.js apps on desktop

2012-08-11 Thread Zhao Cheng
On Fri, Aug 10, 2012 at 5:18 PM, Dan Milon wrote: > since the latest version of appjs there is a shared context between > node/webkit so you can use node calls inside the "client side" code. Example > here https://gist.github.com/3312818 Glad to know that, but I still think it's much easier to wr

Re: [nodejs] London Node.js user group august meetup

2012-08-11 Thread Aldis Andrejevs
after meetup there will be available videos on each topic ? somewhere online.. On Fri, Aug 10, 2012 at 3:43 PM, Andrew Nesbitt wrote: > The August meetup of the London Node.js user group is coming up, it will be > on Wednesday 22nd August from 6:30pm. > > We have three talks lined up: > > Evolvi

[nodejs] Re: configure syntax error

2012-08-11 Thread intrepion
I had this exact problem and it turned out that g++ was not installed just had to do this in Fedora 17: yum install gcc-c++ -- 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 su

[nodejs] Re: [ANN] Node Cookbook

2012-08-11 Thread Nirmal Shane
Awesome idea. Wish I could buy this soon. Anyway, good luck! -- 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 gro

[nodejs] Re: Best practices for sharing code and data between the server and client

2012-08-11 Thread shoshy
Nils , Thanks so much for your boilerplate, i'm new to node.js but i've been working with backbone, we have the same boilerplate structure and bits of code for that matter. My question is , i need to share the SAME model of the client. Rather it's for extending it or use it as-is. Does that m

[nodejs] Re: Choose an extension is suit for nodejs ?

2012-08-11 Thread bo b
such as index.js, login.js, reg.js etc... 在 2012年8月11日星期六UTC+8下午6时15分56秒,bo b写道: > > NO, .js IS refer to static brower javascript . > > if you choose .js as page extension it would be great problem ! > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wi

[nodejs] Re: Choose an extension is suit for nodejs ?

2012-08-11 Thread bo b
NO, .js IS refer to static brower javascript . if you choose .js as page extension it would be great problem ! -- 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 t

Re: [nodejs] Re: Robust Error Handling

2012-08-11 Thread idleman
Hi Stephen, I have thought about it, however I have never got the time. However, I have attached the source: "error-scope.7z". What do you think, and all others? I have consciously made the module not backward compatible, however it would be easy fix, even if I don´t belive it would be a good i