Re: [nodejs] Re: gnode: use es6 Generators today

2013-10-30 Thread Nathan Rajlich
Alex, I think what you're describing could definitely be a use case of this module. I plan on doing this myself as well in a module or two... Let met know if you run into any troubles along the way. On Wed, Oct 30, 2013 at 9:34 PM, Alex Kocharin wrote: > > If a certain library is using generato

[nodejs] Re: Modules, signal architecture, and load order

2013-10-30 Thread Tony Mobily
Hi, Answering to myself. My whole idea of running init functions in the right order was absolute insanity, and -- worse of all -- re-invented a wheel that already existed (node's own module management). So... well, I scrapped it https://github.com/mercmobily/hotplate/commit/81916c969e0cb0e7af6

[nodejs] Re: gnode: use es6 Generators today

2013-10-30 Thread Alex Kocharin
If a certain library is using generators, but is included in node 0.11.x without --harmony flag, do you suggest to use a fallback? What's the performance impact of the fallback? I guess most people don't use generators in libraries because there is not a single version of node that supports it

[nodejs] gnode: use es6 Generators today

2013-10-30 Thread Nathan Rajlich
Hey all, Just wanted to chime in with a quick new CLI tool that I whipped up: gnode: https://github.com/TooTallNate/gnode gnode (generators… node…) is a wrapper around your node executable that ensures ES6 Generators are enabled, even on node <= v0.10.x. The fallback is accomplished with facebook

Re: [nodejs] Very basic question

2013-10-30 Thread Alex Kocharin
Or define appropriate getters/setters on the module.exports object. Not a basic stuff, but I'll mention it for completeness' sake. On Thursday, October 31, 2013 2:58:42 AM UTC+4, José F. Romaniello wrote: > > When you call > > module.exports.token= > > You are actually creating a property with

Re: [nodejs] Very basic question

2013-10-30 Thread José F . Romaniello
When you call module.exports.token= You are actually creating a property with an empty string. You can change module.exports.token inside your gentoken function and it will work as expected. El oct 30, 2013 7:52 p.m., "rendallo" escribió: > Hi and sorry in advance for this very basic question:

[nodejs] Very basic question

2013-10-30 Thread rendallo
Hi and sorry in advance for this very basic question: I got a module login.js which should create some token and provide it to other modules. So my idea is to create a variable token and a function genToken(callback). var token = ""; function

[nodejs] Implement a Master - Slave relationship?

2013-10-30 Thread Paul Canning
I'm looking to make some small games that can be played over a local network (or if the app is published online, private rooms using socket.io) Is there a way to set one device, say an iPad, as the "Master" device (image the dealer in Poker) and then have the connected clients (people on their

[nodejs] Re: Spawn child process with stdout & stderr going to the same file

2013-10-30 Thread Oleg Verych
Hi, Tim. You write I want to spawn a child process and have *all* output go to the same file. > > Why? (looking down the thred...) I'm spawning long running tasks, which may outlive the process that spawned > them (which is why I'm directing the output into a file). > Fine. It is right there

Re: [nodejs] Node v0.11.8 (Unstable)

2013-10-30 Thread Fedor Indutny
Yay! On Wed, Oct 30, 2013 at 8:11 PM, Timothy J Fontaine wrote: > 2013.10.30, Version 0.11.8 (Unstable) > > * uv: Upgrade to v0.11.14 > > * v8: upgrade 3.21.18.3 > > * assert: indicate if exception message is generated (Glen Mailer) > > * buffer: add buf.toArrayBuffer() API (Trevor Norris) > > *

[nodejs] Node v0.11.8 (Unstable)

2013-10-30 Thread Timothy J Fontaine
2013.10.30, Version 0.11.8 (Unstable) * uv: Upgrade to v0.11.14 * v8: upgrade 3.21.18.3 * assert: indicate if exception message is generated (Glen Mailer) * buffer: add buf.toArrayBuffer() API (Trevor Norris) * cluster: fix premature 'disconnect' event (Ben Noordhuis) * crypto: add SPKAC supp

Re: [nodejs] Re: Suggestions on how to print from node.js

2013-10-30 Thread Vladimir Bezugliy
Hello Tauren, It would be interesting to hear what solution you choose. Best regards, Vladimir Bezugliy -- -- 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

[nodejs] Re: Node.js reports(export some data to pdf/docx/xml)

2013-10-30 Thread Vasu Jv
Hello Silviu, Did you find any solution for your problem to generate html to docx? On Tuesday, January 22, 2013 8:09:20 PM UTC+5:30, Silviu wrote: > > Hi, > > I just wanted to know if there are any modules to generate reports in > Node.js. I am looking for something similar to Jasper Reports fro

Re: [nodejs] Re: Node.js, elasticsearch, mognodb, ext.js and Heroku sample application - work-in-progress

2013-10-30 Thread Floby
I guess I was totally convinced at "it's crap crap crap". On Tuesday, 29 October 2013 10:59:52 UTC+1, Alex Kocharin wrote: > > 29.10.2013, 13:05, "Floby" >: > > Thanks for your inputs alex's. > > In my book, jade sucks ass, as does any templating on the server-side. > > > Yep, that's what I'm