Re: [nodejs] Re: fs.createWritestream change path dynamically

2013-03-07 Thread Thorsten Moeller
Security isn't the big thing here as it would be a kind of strictly internal file distribution between a central server and some other servers in the same network. No external access here. The problem i really have is to do some simple filecopy via socket from one server to another. These are v

Re: [nodejs] Event bus - hook.io like.

2013-03-07 Thread Adam Crabtree
We (Michael Schoonmaker) built `shuttle` for zmq at RedRobotLabs: https://github.com/Schoonology/shuttle Cheers, Adam Crabtree On Thu, Mar 7, 2013 at 8:08 PM, tjholowaychuk wrote: > Rick that's why i said if all you need is pubsub redis is a good > solution... > > -- > -- > Job Board: http://j

[nodejs] Re: Installing node on Embedded web server

2013-03-07 Thread Anup Vasudeva
Thanks Douglas. I think I should wait until I find some good news about porting node to Windows CE. Good day. On Friday, March 8, 2013 4:12:09 AM UTC+5:30, P. Douglas Reeder wrote: > > My understanding is that the webOS port was a nontrivial project, so you'd > probably have to devote significan

Re: [nodejs] Event bus - hook.io like.

2013-03-07 Thread tjholowaychuk
Rick that's why i said if all you need is pubsub redis is a good solution... -- -- 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.

[nodejs] Re: Client file download via req.download

2013-03-07 Thread P. Douglas Reeder
> My understanding is that the Content-Disposition tells the browser to save > the file, and suggest the filename "report{date}.pdf. This isn't happening > though. Nothing happens. Any ideas why the browser is not prompting to Save > As? > > The standard trick is to use a hidden IFRAME - that

[nodejs] Re: Installing node on Embedded web server

2013-03-07 Thread P. Douglas Reeder
My understanding is that the webOS port was a nontrivial project, so you'd probably have to devote significant resources to it. While Node has been ported to Windows, WinCE is a different OS, so only some of the adaptions for Windows will be useful. Another hurdle is that many modules only run

RE: [nodejs] Re: Client file download via req.download

2013-03-07 Thread Chad Engler
You can, but there is more work. When the ajax response comes down you get the data but the browser doesn't automatically try to display it (which is what causes download boxes to pop up). Instead you can convert it to a dataURL and then do something like: window.location = myDataUrl; Which

[nodejs] Re: Client file download via req.download

2013-03-07 Thread Geoff Bell
Guess you can't do download via ajax. If I use a , it works just fine. Lesson learned! On Thursday, March 7, 2013 11:04:08 AM UTC-5, Geoff Bell wrote: > > I'm trying to add a download button to our site. Clicking it initiates > this ajax request: > $.ajax > url: '/reports/get_file_from_json

Re: [nodejs] Installing node on Embedded web server

2013-03-07 Thread Chris matheson
afraid i can help you there much :P not sure how node integrates with the OS. -- -- 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

Re: [nodejs] Re: [ANN] then-redis - A small, promise-based Redis client for node.js

2013-03-07 Thread Michael Jackson
:D Thanks David. I've been programming almost exclusively in promises these past few months and it feels pretty good. Plus, I'm a big believer in tiny modules and simple code bases. Helps me grok them a bit easier when they're small. Also, thanks for your work on node_redis! -- Michael Jackson

[nodejs] Re: Suggestion for the implementation of util.inherits()

2013-03-07 Thread Marco Rogers
Your problem is way simpler than this (though a little tough to explain). The problem in your example is that you are creating a dynamic object based on the AsLinker constructor before you have finished setting up the constructor. See my comments on your example. // Pull in your dependencies va

[nodejs] Re: Installing node on Embedded web server

2013-03-07 Thread mscdex
On Mar 7, 11:54 am, Anup Vasudeva wrote: > Thanks mscdex. > Can you give me pointers on resources where node has been successfully > deployed on embedded systems? Well, you can pretty much look at any ARM-based *nix setup (especially the previously mentioned Raspberry Pi). I've personally compile

[nodejs] Re: Installing node on Embedded web server

2013-03-07 Thread Anup Vasudeva
Thanks mscdex. Can you give me pointers on resources where node has been successfully deployed on embedded systems? On Thursday, March 7, 2013 10:20:50 PM UTC+5:30, mscdex wrote: > > On Mar 7, 11:21 am, Anup Vasudeva wrote: > > Thanks Christopher for the reply. > > Any ideas about Windows CE?

[nodejs] Re: Installing node on Embedded web server

2013-03-07 Thread mscdex
On Mar 7, 11:21 am, Anup Vasudeva wrote: > Thanks Christopher for the reply. > Any ideas about Windows CE? I doubt node even supports Windows CE Operating > System? I highly doubt it. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List

Re: [nodejs] Re: fs.createWritestream change path dynamically

2013-03-07 Thread Tim Dickinson
This is to say that he is using node 0.9.x Also as @greelgorke said, a large file will bring up problem with keeping the data in memory. Streaming the data to a tmp file "/tnp/random-name" is the best bet. it removes any complexity that might come up then trying to pipe the data back into a fil

Re: [nodejs] fs.createWritestream change path dynamically

2013-03-07 Thread Martin Cooper
On Thu, Mar 7, 2013 at 6:35 AM, Thorsten Moeller wrote: > Hi, > > i am creating a writestream on a server connection event using a path join > of a fix path and a variable for the filename. As the filename is not known > on server connection event (sent later via connection data event) , it is > e

[nodejs] Re: [ANN] openvg-canvas - Hardware accelerated HTML5 canvas on the Raspberry Pi

2013-03-07 Thread Christopher Matheson
So this allows you to "draw" to the ras-pi screen from node as if it were a HTML5 canvas? If so thats prity amazingly impressive :) Is there such a thing that allows you to treat the screen output as just one big non-interactive webpage? i saw node-gtk & node-qt but they look a bit complex and

Re: [nodejs] Installing node on Embedded web server

2013-03-07 Thread Anup Vasudeva
Thanks Christopher for the reply. Any ideas about Windows CE? I doubt node even supports Windows CE Operating System? On Thursday, March 7, 2013 9:46:47 PM UTC+5:30, Christopher Matheson wrote: > > Node can be compiled and run on Raspberry Pi's witch are a ARM11chip i > think ??? Not sure how t

[nodejs] Client file download via req.download

2013-03-07 Thread Geoff Bell
I'm trying to add a download button to our site. Clicking it initiates this ajax request: $.ajax url: '/reports/get_file_from_json_service' data: { docId:window.DOCUMENT_ID, file_type:'pdf' } type: 'POST' success: (data, stat, xhr) => console.log 'download', stat error: (xhr, stat, err)

Re: [nodejs] Installing node on Embedded web server

2013-03-07 Thread Christopher Matheson
Node can be compiled and run on Raspberry Pi's witch are a ARM11chip i think ??? Not sure how these baracudda's work but if they have the correct toolchain to compile new programs they might be able to compile the node binary and then run node programs. -- -- Job Board: http://jobs.nodejs.or

Re: [nodejs] Installing node on Embedded web server

2013-03-07 Thread Christopher Matheson
Node can be compiled and run on Raspberry Pi's witch are a ARM11chip i think ??? Not sure how these baracudda's work but if they have the correct toolchain to compile new programs they might be able to compile the node binary and then run node programs. Chris On Thursday, March 7, 2013 3:29:

Re: [nodejs] Re: fs.createWritestream change path dynamically

2013-03-07 Thread greelgorke
this approach is good for small data, but with larger files with many concurrent users this may eat up your memory, because the Stream buffers the data there. In this case you can just create a Buffer and write it when done. But i also prefer the tmp-file approach: no buffering and a mv is on t

Re: [nodejs] Re: learning NodeJS and looking for something similar to Apache Wicket (or similar component framework)

2013-03-07 Thread greelgorke
well most of node template engines don't want to copy desktop gui frameworks, because html is already a gui framework. what your examples do, is solved in engines like jade via partials et al. Jade supports reusability of template componentes via partials, inheritance and mixins. in jade it is

Re: [nodejs] Installing node on Embedded web server

2013-03-07 Thread Anup Vasudeva
Thanks a lot Ben for the reply. Actually I am pretty much naive in node.js (just a Hello world guy in this domain). I am sorry I should have made my requirements clear: We have an embedded device (ARM processor) with Baracudda as it's server and Windows CE as it's operation system. Now we were a

[nodejs] Re: fs.createWritestream change path dynamically

2013-03-07 Thread Thorsten Moeller
Hi Tim, thanks for the hint. Must have overread this. Googled all the time, but didn't thought about renaming as an approach. Will try that. Thanks Am Donnerstag, 7. März 2013 15:43:43 UTC+1 schrieb Tim Dickinson: > > I dont really understand what your trying to do. You cant create a write >

Re: [nodejs] Re: fs.createWritestream change path dynamically

2013-03-07 Thread Luke Arduini
@tim you're thinking of streams as just file-related things thorsten - Using the new stream class you can do: var stream = new Stream.Readable() stream.push(null) stream.push('your data and stuff') when you're ready for a file stream.pipe(fs.createWriteStream('outputfile')) keep in mind data

[nodejs] Re: fs.createWritestream change path dynamically

2013-03-07 Thread Tim Dickinson
I dont really understand what your trying to do. You cant create a write stream without a file name. You could create a random file name and then rename it once you have the real file name. On Thursday, March 7, 2013 9:35:00 AM UTC-5, Thorsten Moeller wrote: > > Hi, > > i am creating a writestre

Re: [nodejs] Re: learning NodeJS and looking for something similar to Apache Wicket (or similar component framework)

2013-03-07 Thread greelgorke
component is a component framework. it's components are vertical components bringing the whole structure they need with them. there are some frameworks/libs which are horizontal assembling their parts as a plugin systems. Express is built on top of Connect, which is a middleware-chain framework

[nodejs] fs.createWritestream change path dynamically

2013-03-07 Thread Thorsten Moeller
Hi, i am creating a writestream on a server connection event using a path join of a fix path and a variable for the filename. As the filename is not known on server connection event (sent later via connection data event) , it is empty and therefore not working afterwards, producing errors (conn

Re: [nodejs] RFC: Looking for guidance on NPM

2013-03-07 Thread José F . Romaniello
IMHO there is not a rigid technical distinction between application and module from the npm stand point. Your application will have a package.json like any other module, with the dependencies. If your application is a command line utility you have to put a *bin*attribute in your package.json point

[nodejs] Re: RFC: Looking for guidance on NPM

2013-03-07 Thread greelgorke
it's for both. better say, it's for apps and libs. A Module is just a file in the Common.js style. there are many packages in npm that are both, lib and app (mostly CLI). so the right name is package, that is just: A folder containing a package.json file Am Donnerstag, 7. März 2013 14:07:56 UTC

[nodejs] RFC: Looking for guidance on NPM

2013-03-07 Thread Justin Novack
Hello World! Is the npm registry for modules or applications? There's conflicting words in the documentation. Long story short (too late!), upon seeing LIFX, and inspired by the NodeJS Socket Lights video on Vimeo, I figured NodeJS would be a perfect minimal app to control the lights. So, I

Re: [nodejs] Re: Event bus - hook.io like.

2013-03-07 Thread Pedro Teixeira
Merged and published, thanks! -- Pedro On Thursday, March 7, 2013 at 12:55 PM, Tim Dickinson wrote: > No it looks very nice. I gave you a pull request for your package.json. > > On Thursday, March 7, 2013 7:44:00 AM UTC-5, Pedro Teixeira wrote: > > Yes, very young and experimental, just a bit

[nodejs] Re: learning NodeJS and looking for something similar to Apache Wicket (or similar component framework)

2013-03-07 Thread greelgorke
you may be find this interesting http://component.io/ Am Donnerstag, 7. März 2013 10:42:57 UTC+1 schrieb Ernesto Reinaldo Barreiro: > > Hi, > > I have been learning NodeJS for a couple of days and exploring around... > I have a question regarding the "view" layers that can be used in > combina

Re: [nodejs] Re: Event bus - hook.io like.

2013-03-07 Thread Tim Dickinson
No it looks very nice. I gave you a pull request for your package.json. On Thursday, March 7, 2013 7:44:00 AM UTC-5, Pedro Teixeira wrote: > > Yes, very young and experimental, just a bit of a mad science project for > the time being. > > -- > Pedro > > On Thursday, March 7, 2013 at 12:31 PM, Ti

Re: [nodejs] Re: Event bus - hook.io like.

2013-03-07 Thread Pedro Teixeira
Yes, very young and experimental, just a bit of a mad science project for the time being. -- Pedro On Thursday, March 7, 2013 at 12:31 PM, Tim Dickinson wrote: > >Why Dont you try redis or zmq? > Like I say I dont really want to have to run another non-node process. > > >It's still experimen

Re: [nodejs] Installing node on Embedded web server

2013-03-07 Thread Ben Noordhuis
On Thu, Mar 7, 2013 at 8:33 AM, Anup Vasudeva wrote: > Can node.js be installed on an embedded server. I have a project requirement > where I have an embedded device with a Baracudda server inside it. > Is there any scope to run node.js on that server? Please assist. > Thanks for reading. Have yo

[nodejs] Re: Event bus - hook.io like.

2013-03-07 Thread Tim Dickinson
>Why Dont you try redis or zmq? Like I say I dont really want to have to run another non-node process. >It's still experimental, but I'm working on this module I named "verbose" and has similar goals: I like it but seems very young. Has it been used in any project yet? On Wednesday, March 6, 20

[nodejs] Installing node on Embedded web server

2013-03-07 Thread Anup Vasudeva
Can node.js be installed on an embedded server. I have a project requirement where I have an embedded device with a Baracudda server inside it. Is there any scope to run node.js on that server? Please assist. Thanks for reading. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: htt

[nodejs] learning NodeJS and looking for something similar to Apache Wicket (or similar component framework)

2013-03-07 Thread Ernesto Reinaldo Barreiro
Hi, I have been learning NodeJS for a couple of days and exploring around... I have a question regarding the "view" layers that can be used in combination with NodeJS. I have read about Express (http://expressjs.com), https://github.com/visionmedia/consolidate.js, Jade, EmberJS, and even play

Re: [nodejs] Event bus - hook.io like.

2013-03-07 Thread Pedro Teixeira
It's still experimental, but I'm working on this module I named "verbose" and has similar goals: https://github.com/pgte/verbose#readme https://npmjs.org/package/verbose Some existing features: Automatic reconnect with back-off Reconnect resilience: messages get buffered for retransmission if ne

Re: [nodejs] Re: [ANN] openvg-canvas - Hardware accelerated HTML5 canvas on the Raspberry Pi

2013-03-07 Thread Luis Reis
Hi Kevin, Can you tell me more about the problems you're having ? I'd like to take a look at that. Best, Luis Luis -- On Fri, Mar 1, 2013 at 12:47 AM, Kevin Donnelly wrote: > > Thanks, examples work on my Raspberry Pi. > Trying to interop with node-easel, not successful so far. > > > > On