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

2012-08-01 Thread rhasson
In all honesty this is a hacky way of building an FTP service. Ideally you'd build a TCP server and properly handle FTP commands but with a cleaner interface for your application. If you use this .spawn way you need to manage state (which commands were issued, did they complete successfully o

Re: [nodejs] Eval and vm module

2012-08-01 Thread Dominic Tarr
this way is much better, because it's impossible for two modules exports to collide with each other. On Wed, Aug 1, 2012 at 6:49 PM, Seiji Sam Lee wrote: > Thanks Tim, I believe I will choose a syntaxis like this: > > var common=$script.imports("common.jsi",true); > > > It have much more advantag

Re: [nodejs] help simulating tcp clients and http requests and eliminating blocking behavior

2012-08-01 Thread nflacco
> > Figured out the immediate problem... the SetTimeout in the tcp client was > not receiving the arguments correctly. I rewrote the settimeout and pulled > out the anonymous function in there and everything works great. > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://gith

[nodejs] Re: How to fork child in "non persistent" way?

2012-08-01 Thread Bert Belder
On Friday, July 27, 2012 6:00:19 PM UTC+2, Mariusz Nowak wrote: > > I'd like to create fork (via child_process.fork) and make both master and > child exit after all tasks in master process are done If you're using node 0.8, you can do this: var cp = fork("foo.js") cp.unref(); This will effecti

Re: [nodejs] Re: e-Commerce platform

2012-08-01 Thread Alexey Petrushin
> How would you make such kind of page indexable by search engines? It's possible, but I'm not sure how good it is compared to "standard static" sites in terms of SEO. Because SEO has lots of tricks and even if it would be indexable it still may not be as good as old static sites. Take a look a

Re: [nodejs] Re: e-Commerce platform

2012-08-01 Thread Alexey Petrushin
> It's possible, but I'm not sure how goot it is compared to "standard" in terms of SEO, SEO has lots of tricks and hacks. Take a look at this http://support.google.com/webmasters/bin/answer.py?hl=en&answer=174992 go to "Handle pages without hash fragments" section. For full details read th

Re: [nodejs] [ANN] SwallowApps, application authoring tool for html5

2012-08-01 Thread Hugo Windisch
Thanks! On Wednesday, August 1, 2012 3:21:52 PM UTC-4, psema4 wrote: > > On Wed, Aug 1, 2012 at 3:09 PM, Hugo Windisch > wrote: > > Yes the framework could be mixed with other frameworks (like... it could > be > > mixed with jQuery + it only uses one name in the global namespace). It > does

Re: [nodejs] [ANN] SwallowApps, application authoring tool for html5

2012-08-01 Thread Scott Elcomb
On Wed, Aug 1, 2012 at 3:09 PM, Hugo Windisch wrote: > Yes the framework could be mixed with other frameworks (like... it could be > mixed with jQuery + it only uses one name in the global namespace). It does > not overlap a lot with jQuery because the main goal is not to make the DOM > or CSS eas

Re: [nodejs] [ANN] SwallowApps, application authoring tool for html5

2012-08-01 Thread Hugo Windisch
Wow, thanks! Yes the framework could be mixed with other frameworks (like... it could be mixed with jQuery + it only uses one name in the global namespace). It does not overlap a lot with jQuery because the main goal is not to make the DOM or CSS easier to use but to provide a graphical way of

Re: [nodejs] Excessive memory usage ratio

2012-08-01 Thread Jimb Esser
You may want to try mtrace, I've exposed it in a node module here: https://github.com/Jimbly/node-mtrace It allows you to trace and analyze native heap memory usage, though if most of the native code you're in is C++, it's just going to say all the memory was allocated by "operator new()", but i

Re: [nodejs] 'AJAX' type web application

2012-08-01 Thread José F . Romaniello
And also they have the snapshot hash-bang thingy: https://developers.google.com/webmasters/ajax-crawling/docs/getting-started 2012/8/1 Mark Hahn > I'm not sure I understand your question, but I think you are asking how to > make a client-side javascript generated page accessible to search bot

Re: [nodejs] fundamental stream questions

2012-08-01 Thread Carlos
Thanks @Dominic for your concise answers. Exactly what I needed. On Wednesday, August 1, 2012 1:54:35 AM UTC-7, Dominic wrote: > > A1) you need to assign a listener _before_ nextTick. > > A2) you only need to call destroy() if you've decided to end the stream > early. > streams must cleanup a

[nodejs] Re: Example of http.Client sending "multipart/form-data"?

2012-08-01 Thread slalompoint
Heads up that the link has moved: https://github.com/coolaj86/node-examples-js/blob/master/http-and-html5/http-upload.js On Friday, January 7, 2011 8:09:42 AM UTC, CoolAJ86 wrote: > > I did manage to get a working example up here: > > > https://github.com/coolaj86/node-examples-coolaj86/blob/mast

Re: [nodejs] [ANN] SwallowApps, application authoring tool for html5

2012-08-01 Thread Mark Hahn
Looks awesome. Is this meant for doing entire page designs or can it be mixed in with existing pages? In other words, can the framework be mixed with other frameworks? On Wed, Aug 1, 2012 at 7:24 AM, Hugo Windisch wrote: > This is post announces the creation of the SwallowApps open source proje

Re: [nodejs] 'AJAX' type web application

2012-08-01 Thread Mark Hahn
I'm not sure I understand your question, but I think you are asking how to make a client-side javascript generated page accessible to search bots. This isn't really a node question but I'll reply anyway. In the past I've always created separate pages for search bots with simple pages that dump all

Re: [nodejs] Eval and vm module

2012-08-01 Thread Seiji Sam Lee
Thanks Tim, I believe I will choose a syntaxis like this: var common=$script.imports("common.jsi",true); It have much more advantages ;-) El 01/08/12 18:30, Tim Caswell escribió: JavaScript doesn't give you access to the current scope (where local vars are stored). The only way to programate

Re: [nodejs] Eval and vm module

2012-08-01 Thread Tim Caswell
JavaScript doesn't give you access to the current scope (where local vars are stored). The only way to programatecilly create entries in it is to use eval. My suggestion is think of another API that's more JS friendly. There is a reason node dropped import syntax and now only supports require wh

Re: [nodejs] Re: e-Commerce platform

2012-08-01 Thread Alan Hoffmeister
Fibers, fibers are the answer. Wrap yours dynamic view helpers with fibers and also crate restfully APIs, this way you can use js frameworks and serve contents for no-js users. What you think? Enviado via iPad Em 01/08/2012, às 04:23, daslicht escreveu: > Hello Friends, > > brainstorming > {

[nodejs] [ANN] SwallowApps, application authoring tool for html5

2012-08-01 Thread Hugo Windisch
This is post announces the creation of the SwallowApps open source project. Swallowapps provides fully interactive tools for the design of web (html5) content: you create the visual part of your application using visual tools and get instant feedback while you adjust dimensions, transformation

RE: [nodejs] Re: Azure Unable to load nodejs shared library

2012-08-01 Thread Jonathan Guerin
Glad to hear it! :) Cheers, Jonathan From: nodejs@googlegroups.com on behalf of almarjin Sent: Tuesday, July 31, 2012 07:50 To: nodejs@googlegroups.com Subject: Re: [nodejs] Re: Azure Unable to load nodejs shared library It's now working. Thanks to both of you :

Re: [nodejs] Eval and vm module

2012-08-01 Thread Seiji Sam Lee
For Tim & Dominic: Well the complete code is ... As you can see this is a piece of javascript embedded into other language (asp, php like). I built a whirler to convert this to JS and ... execute it into a VM (runIn{This,New}Context) You can see too $script.imports(...) loads a JS include

Re: [nodejs] Poor cluster accept() distribution

2012-08-01 Thread Ben Noordhuis
On Wed, Aug 1, 2012 at 8:55 AM, Rusty wrote: > I am seeing really poor distribution of connections across a "cluster". > > For example (count of connections served on left, PID on right): > $ node test.js | awk '/connection/{print$2}' | sort | uniq -c > 438 4687 > 300 4688 >1008 4690 >

[nodejs] 'AJAX' type web application

2012-08-01 Thread daslicht
Hello, what do you think is the best way to create,by search engine index-able, single page webpages ? My current approach is to create 'normal' webpages but if JS is enabled all links are hijacked and the content is loaded replaced using javascript. Is there another alterntive beside manually c

Re: [nodejs] Re: e-Commerce platform

2012-08-01 Thread daslicht
Hello Friends, brainstorming { I am also going to create a CMS/eCommerce Solution for a Music Label. Since we want to offer seamless playback even while navigating the whole page, we like to craete a single page AJAX interface. As far as I know we have to follwing options: Create normal HTML

[nodejs] Re: Getting started with Node.js Audio Streaming

2012-08-01 Thread daslicht
How do you mean that ? Am Montag, 9. Juli 2012 16:52:02 UTC+2 schrieb Ket: > > I've created similar app, but how do you supply songs. > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because

Re: [nodejs] fundamental stream questions

2012-08-01 Thread Dominic Tarr
A1) you need to assign a listener _before_ nextTick. A2) you only need to call destroy() if you've decided to end the stream early. streams must cleanup after they have emitted 'end', (or you have called end() and they are only a writable stream) On Wed, Aug 1, 2012 at 6:45 AM, Carlos wrote: > Q

Re: [nodejs] Excessive memory usage ratio

2012-08-01 Thread Rusty
On Monday, July 30, 2012 6:55:23 PM UTC-7, Marak Squires wrote: > > It's possible you've got a leak in your application code ( accidentally > not calling .end on a response stream is a common issue I've seen ). Thanks for your help Marak. The code uses socket.io, and in my testing I have it ser