Re: [nodejs] how to create a singleton

2013-11-27 Thread Rick Waldron
On Wednesday, November 27, 2013, Michael J. Ryan wrote: > of course you could just as easy have done... > > Sure, if I was trying to illustrate something that wasn't the thing I was trying to illustrate. Or if I wanted to confuse my point with something questionably relevant. Rick > //foo

Re: [nodejs] what is best ide for node?

2013-11-27 Thread Travis James
Absolutely WebStorm is the best I have encountered. On Saturday, August 6, 2011 10:08:54 PM UTC-5, JJuN wrote: > > > > hello ~ > > i think node is really awesome but ide is not > > i used cloud9 it's cool and support stack debugging but no > intelligence > > please recommand good ide for me!!

Re: [nodejs] how to create a singleton

2013-11-27 Thread Michael J. Ryan
of course you could just as easy have done... //foo module ... var foo = {...} module.exports = foo; //app.js var foo = require(‘foo’) all require(‘foo’) with the same library reference will be the same... the only thing global does is allow multiple versions of libraries not to sto

Re: [nodejs] Node.js support for Exporting excel and Database

2013-11-27 Thread Michael J. Ryan
If you use MS-SQL server, would suggest the “tedious” module over the MS one... it’s more portable. You may want to consider PostgreSQL or MySQL if either are an option (I prefer PostreSQL). (based on what your are describing for your data, I would lean towards an SQL database vs a non-relatio

Re: [nodejs] Node.js support for Exporting excel and Database

2013-11-27 Thread Michael J. Ryan
If you do an exec like that for something heavy, might want to wrap it into a module that itself is wrapped in a generic pool (to prevent too many instances from running) From: klrumpf Sent: Wednesday, November 27, 2013 5:47 AM To: nodejs@googlegroups.com Subject: Re: [nodejs] Node.js support

Re: [nodejs] what is best ide for node?

2013-11-27 Thread Michael J. Ryan
+1 for Webstorm... If you're in windows land, and already have Visual Studio 2012 or 2013, would suggest looking at Visual Studio Tools for NodeJS (NTVS), which are pretty nice. One of my coworkers really likes eclipse for node dev. -Original Message- From: Jeff Schwartz Sent: Satu

[nodejs] Streaming audio from avconv via NodeJs WebSockets into Chrome with AudioContext

2013-11-27 Thread Tomas Perunsky
Hello, we're having trouble playing streamed audio in a browser (using Chrome). We have a process which is streaming some audio (for example an internet radio) on udp on some port. It's avconv (`avconv -y -i SOMEURL -f alaw udp://localhost:PORT`). We have a NodeJs server which receives this au

Re: [nodejs] how to create a singleton

2013-11-27 Thread Rick Waldron
On Wednesday, November 27, 2013, Ryan Schmidt wrote: > > On Nov 26, 2013, at 23:50, dhtml wrote: > > > On Thursday, November 21, 2013 7:13:48 AM UTC-8, Gregg Caines wrote: > > > >> So how do you achieve the same effect in javascript? In the browser, > you have globals. > > > > The global object h

Re: [nodejs] Node.js support for Exporting excel and Database

2013-11-27 Thread Diogo Resende
Never tried: https://github.com/SheetJS/js-xls https://github.com/SheetJS/js-xlsx -- Diogo Resende On Wednesday 27 November 2013 at 12:47 , klrumpf wrote: > Maybe look at unoconv http://dag.wiee.rs/home-made/unoconv/ > > and do something in the line of > > exec("unoconv -f csv myfile.xls

Re: [nodejs] what is best ide for node?

2013-11-27 Thread Mark Hahn
Git support in webstorm is excellent. I don't ever need to go to tortoisegit or the command line. On Wed, Nov 27, 2013 at 12:58 AM, Marc Diethelm wrote: > You should take a look a WebStorm (or PHPStorm) from JetBrains. > > The IDE understands JavaScript is chockful with useful features. But mos

Re: [nodejs] Re: What's the unicorn for Node? How should I think of deployment?

2013-11-27 Thread Hongli Lai
On Sat, Nov 16, 2013 at 6:03 PM, Eric Mill wrote: >> Wait, wait... Are you distributing your own patched nginx version? It >> doesn't sound simple at all. But I admit, a suggestion about using "nginx -> >> passenger -> node.js" is kinda funny. I guess 3 servers instead of 2 really >> reduce comple

Re: [nodejs] Node.js support for Exporting excel and Database

2013-11-27 Thread klrumpf
Maybe look at unoconv  http://dag.wiee.rs/home-made/unoconv/ and do something in the line of exec("unoconv -f csv myfile.xls", err,...  Downside, needs the bulky libreoffice libs installed. I wouldn't use the unoconv listener, seems a

[nodejs] Node.js support for Exporting excel and Database

2013-11-27 Thread Syed Haani
I am new to node.js. I am currently in a pre-development phase of an application. The application will be for tracking status of task of employee. The admin will have the right to export excel which will have data of employes for a given date range Currently I am thinking WCF Service and SQL

[nodejs] Re: node knockout source code

2013-11-27 Thread Ethan Garofolo
That's on a team-by-team basis, I would imagine. You should be able to get contact info from each contestant and ask them directly. On Tuesday, November 26, 2013 6:59:05 AM UTC-6, John wrote: > > is the source code available for node knockout submissions ? couldn't > find it > > specifically l

Re: [nodejs] what is best ide for node?

2013-11-27 Thread Marc Diethelm
You should take a look a WebStorm (or PHPStorm) from JetBrains. The IDE understands JavaScript is chockful with useful features. But most of all you can run node from the IDE and you also have a terminal window at your disposal (which we use to run Grunt in.) If you want a full IDE, WebStorm is

Re: [nodejs] Re: how to create a singleton

2013-11-27 Thread Gregg Caines
Sure that's the common explanation, but don't fall for it: globality has everything to do with it. If the singleton didn't care about creating global state, it could just have `this.created = true;` for its *only* internal state and have thrown exceptions from the constructor for any subsequent ca

Re: [nodejs] how to create a singleton

2013-11-27 Thread Ryan Schmidt
On Nov 26, 2013, at 23:50, dhtml wrote: > On Thursday, November 21, 2013 7:13:48 AM UTC-8, Gregg Caines wrote: > >> So how do you achieve the same effect in javascript? In the browser, you >> have globals. > > The global object has nothing to do with web browsers. Sure it does. In browsers

Re: [nodejs] define is not defined errot

2013-11-27 Thread Ryan Schmidt
That’s an interesting opinion, but all nodejs code I’ve ever read makes modules this way, so that makes it the de-facto nodejs way. On Nov 26, 2013, at 23:47, Alex Kocharin wrote: > > It is not a nodejs way, it's a way that default loader works (there are > alternate loaders, and there is ES6