Re: [nodejs] how to create a singleton

2013-11-18 Thread Jose G. Quenum
Please check Addy Osmani book, Learning Javascript design patterns. http://addyosmani.com/resources/essentialjsdesignpatterns/book/ It has a correct version of singleton implementation On Nov 19, 2013, at 1:38 AM, Reza Razavipour reza.razavip...@gmail.com wrote: A newbie question... I have

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

2013-11-18 Thread Jose G. Quenum
yeah that's right. You just need to add the line module.exports = mySingleton and in the caller file require as follows var singleton = require('./single').mySingleton Hope that helps José On Nov 19, 2013, at 2:40 AM, Reza Razavipour reza.razavip...@gmail.com wrote: Wonderful book, thank you.

Re: [nodejs] git server built with node

2013-04-20 Thread Jose G. Quenum
Hi Quinton, Took a look at gitserver. Interesting. I'd love to see some comparisons to gitolite, especially how flexible it is to manage permissions and add hooks. good job anyway On Apr 18, 2013, at 10:51 PM, Quinton Pike qrp...@gmail.com wrote: I am building a NodeJS multi-tenant git server

Re: [nodejs] Node.js under OSX

2012-08-03 Thread Jose G. Quenum
Hi Bodo, choosing Homebrew over Mac Ports was the right thing to do as far as I can tell. I made the change about two years ago and have never regretted it. Anyway, node.js on os x works just fine for me José On 3 Aug 2012, at 10:56, kyogron kyog...@googlemail.com wrote: Hi, I have now

[nodejs] - Github Followers Thread

2012-07-15 Thread Jose G. Quenum
Hi all, below is the github link to a project I have been working on on and off for a few months now. Unfortunately I haven't deployed it yet because (a) there still are a few use cases to complete, (2) the deployment is kinda tricky in that I need both an account to host git repositories and a