Re: [nodejs] Node.JS for sysadmin scripting or non-web stuff - books, guides, examples?

2013-11-21 Thread // ravi
On Nov 21, 2013, at 8:23 PM, Victor Hooi wrote: > > I'm curious on people's experiences with using Node.JS for sys-admin scripts > or non-Web glue stuff - i.e. the sorts of things you might use Perl or Python > for (e.g. log parsing, manipulating config files etc.) > > Is Node.JS suitable for

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

2013-11-21 Thread Alex Kocharin
On Thursday, November 21, 2013 7:26:16 PM UTC+4, mscdex wrote: > > On Thursday, November 21, 2013 9:33:18 AM UTC-5, Matt Sergeant wrote: >> >> >> On Wed, Nov 20, 2013 at 7:46 PM, Timothy J Fontaine >> wrote: >> >>> * build: make v8 use random seed for hash tables (Ben Noordhuis) >>> >> >> Is this

Re: [nodejs] Node.JS for sysadmin scripting or non-web stuff - books, guides, examples?

2013-11-21 Thread Andre Contreras
I've used in my company to make a tiny web hosting panel, it is working very well. 2013/11/21 Tim Smart > Grunt.js is a great place to start: http://gruntjs.com/ > > On Thu, Nov 21, 2013 at 05:23:59PM -0800, Victor Hooi wrote: > > Hi, > > > > I'm curious on people's experiences with using Node.

Re: [nodejs] Node.JS for sysadmin scripting or non-web stuff - books, guides, examples?

2013-11-21 Thread Tim Smart
Grunt.js is a great place to start: http://gruntjs.com/ On Thu, Nov 21, 2013 at 05:23:59PM -0800, Victor Hooi wrote: > Hi, > > I'm curious on people's experiences with using Node.JS for sys-admin > scripts or non-Web glue stuff - i.e. the sorts of things you might use Perl > or Python for (e.g.

[nodejs] Node.JS for sysadmin scripting or non-web stuff - books, guides, examples?

2013-11-21 Thread Victor Hooi
Hi, I'm curious on people's experiences with using Node.JS for sys-admin scripts or non-Web glue stuff - i.e. the sorts of things you might use Perl or Python for (e.g. log parsing, manipulating config files etc.) Is Node.JS suitable for these things? Are there any books or guides out there on

Re: [nodejs] Cachemere - Server side file caching engine which efficiently serves static files (keeps the preprocessed/gzipped version in cache so no need to recompress).

2013-11-21 Thread Mikeal Rogers
You might want to have a look at jaws https://github.com/mikeal/jaws You also probably want to start storing this stuff in isaacs' LRU. https://github.com/isaacs/node-lru-cache -Mikeal On Nov 21, 2013, at 3:06PM, Jon wrote: > This is a tool I wrote which helps create efficient Node.js file s

Re: [nodejs] Paul Serby talking at the LXJS conference about his decision on switching to Node.JS http://bit.ly/18SjKrd

2013-11-21 Thread Matt
On Thu, Nov 21, 2013 at 6:20 AM, Jenny Davis wrote: > Paul details the problems he the tech team had been experiencing with PHP, > and therefore why he decided to switch to Node.js. > > People may also be interested in a talk I gave at the Toronto Node.JS meetup this week on switching from Rails t

Re: [nodejs] Cachemere - Server side file caching engine which efficiently serves static files (keeps the preprocessed/gzipped version in cache so no need to recompress).

2013-11-21 Thread Mark Hahn
I have avoided javascript based file serving because I have assumed it to be slower and more resource-intensive than nginx. Do you have any idea how they compare? On Thu, Nov 21, 2013 at 3:06 PM, Jon wrote: > This is a tool I wrote which helps create efficient Node.js file servers > and it als

[nodejs] Cachemere - Server side file caching engine which efficiently serves static files (keeps the preprocessed/gzipped version in cache so no need to recompress).

2013-11-21 Thread Jon
This is a tool I wrote which helps create efficient Node.js file servers and it also offers an auto-updating cache layer. It caches preprocessed, gzipped file contents and also handles ETags by default for client-side caching. It automatically updates the preprocessed, gzipped content whenever a

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

2013-11-21 Thread Reza Razavipour
this I get the jist of the conversation but my Javascript skills, less than 2 months, does not allow me to be able to code this up. Also, as a starter in the new language the last thing I want to do is to miss out on the language correct way of things and force lets say the Java way of doing thi

[nodejs] Re: Node.js ODM for Couchbase

2013-11-21 Thread Raymond Feng
The LoopBack project already provides an ODM for many data sources. You can find more information at: http://docs.strongloop.com/display/DOC/Working+with+models+and+data+sources The CouchDB can be easily ported from https://github.com/jugglingdb/nano-ada

Re: [nodejs] file upload module with progress

2013-11-21 Thread Mark Hahn
Check out https://github.com/blueimp/jQuery-File-Upload. I use it for node uploading and it is awesome. Shows great progress bars and will even show thumbnail before upload starts. Supports drag-and-drop. On Thu, Nov 21, 2013 at 11:38 AM, Mark Hahn wrote: > Any uploader will work. There are

[nodejs] Node.js ODM for Couchbase

2013-11-21 Thread Brett Lawson
Hi, I have been working on building a simple to use ODM for Node.js and Couchbase and am looking for suggestions and trying to gauge how much interest exists for such a tool. https://github.com/brett19/node-ottoman Currently it supports quite a few things, here is an example: var User = Otto

Re: [nodejs] file upload module with progress

2013-11-21 Thread Mark Hahn
Any uploader will work. There are some great jquery-based ones. On Thu, Nov 21, 2013 at 1:54 AM, Jarrad Salmon wrote: > Hi > > I am looking for a client side module to upload files to my server via > post. > I thought this would be really easy to find but seems to be more difficult > than I fi

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

2013-11-21 Thread Matt
On Wed, Nov 20, 2013 at 7:46 PM, Timothy J Fontaine wrote: > * build: make v8 use random seed for hash tables (Ben Noordhuis) > Is this a fix for an algorithmic complexity attack like this: http://blog.booking.com/hardening-perls-hash-function.html ? -- -- Job Board: http://jobs.nodejs.org/ Po

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

2013-11-21 Thread Gregg Caines
Yeah... that's what I'm saying :) G On Thu, Nov 21, 2013 at 7:33 AM, Kamil Leszczuk wrote: > > For example, if I have a module for emailing with a send() method on it, > I don't have it export a constructor; I have it export an object. That > object might maintain some state or it might not.

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

2013-11-21 Thread mscdex
On Thursday, November 21, 2013 9:33:18 AM UTC-5, Matt Sergeant wrote: > > > On Wed, Nov 20, 2013 at 7:46 PM, Timothy J Fontaine > > > wrote: > >> * build: make v8 use random seed for hash tables (Ben Noordhuis) >> > > Is this a fix for an algorithmic complexity attack like this: > http://blog.bo

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

2013-11-21 Thread Kamil Leszczuk
> For example, if I have a module for emailing with a send() method on it, I don't have it export a constructor; I have it export an object. That object might maintain some state or it might not. When the module is subsequently require()'d, it will have any state that it has accumulated since. F

[nodejs] Re: need help: readable stream "flowing mode" on Windows

2013-11-21 Thread Laurent Fortin
That makes lots of sense... My Linux Ubuntu environment has nodejs v0.11.8 installed on it, which has "streams3" api with flowing / non flowing mode. My Windows environment has v0.10.22 ... Thanks mscdex !! On Thursday, 21 November 2013 10:22:15 UTC-5, mscdex wrote: > > On Wednesday, Novem

[nodejs] Re: need help: readable stream "flowing mode" on Windows

2013-11-21 Thread mscdex
On Wednesday, November 20, 2013 2:03:00 PM UTC-5, Laurent Fortin wrote: > > Shouldn't the readable stream be in "flowing mode" after resuming? > IIRC "flowing mode" is for streams2. By calling resume() here you are switching to "old mode" (streams1), so flowing is not set/used. On Wednesday, Nov

[nodejs] Re: how to create a singleton

2013-11-21 Thread Gregg Caines
The singleton pattern is actually unnecessary in most languages outside of java, including javascript. You should be wary of any javascript book that tries to teach you singletons at all. Many of those gang of four patterns simply don't translate outside of java and c++ (eg if you want to impl

[nodejs] Re: App Architecture and Platform ?

2013-11-21 Thread Alex
Last I researched it, Calypso seems like the best general purpose CMS, which is to say that Node does not have a killer general purpose CMS. (Anyone want to take this on?) Particularly since Calipso has not been in active development for some time. Nodize looks good but is still young. There's

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

2013-11-21 Thread Brian Di Palma
I guess instead of exporting the constructor you could export a function which checks if an instances has been created and if not create it. If you don't want to write it as a function call, you could try set a getter on the exports and just execute the same logic in the getter. https://developer

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

2013-11-21 Thread Kamil Leszczuk
Aah, nevermind then, I misunerstood ;) 21 lis 2013 16:36 "Gregg Caines" napisaƂ(a): > Yeah... that's what I'm saying :) > > G > > > On Thu, Nov 21, 2013 at 7:33 AM, Kamil Leszczuk wrote: > >> > For example, if I have a module for emailing with a send() method on >> it, I don't have it export a co

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

2013-11-21 Thread Rick Waldron
I recommend being wary of any broad generalizations about programming patterns :P Rick On Thu, Nov 21, 2013 at 7:13 AM, Gregg Caines wrote: > The singleton pattern is actually unnecessary in most languages outside of > java, including javascript. You should be wary of any javascript book that

[nodejs] Re: need help: readable stream "flowing mode" on Windows

2013-11-21 Thread Laurent Fortin
Hi Floby, Thanks for your answer. Yep, I know about the stream api. I just need to access readable._readableState object properties for developing my module. On Thursday, 21 November 2013 04:31:23 UTC-5, Floby wrote: > > I believe you should `push()` at some point. > > On Wednesday, 20 Novem

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

2013-11-21 Thread Reza Razavipour
Ok so this is the way i have it constructed... SoapClient is my module and I want it to be used as a singleton, i.e. if it is initialized, it just returns the connection, or SoapClient.instance... var SoapClient = function() { > var soap = require('soap'); > this.init = function (){ > var url =

[nodejs] [module] npm-auto-dep new tool for managing dependencies

2013-11-21 Thread OhJeez
Hi, I just published new tool for managing module dependencies, have a peek here: https://github.com/OhJeez/npm-auto-dep It differs from the ones already available, that it is interactive. You can modify version spec, ignore some dependencies, tell npm to get that one module from github etc. I

[nodejs] file upload module with progress

2013-11-21 Thread Jarrad Salmon
Hi I am looking for a client side module to upload files to my server via post. I thought this would be really easy to find but seems to be more difficult than I first imagined. I have found a couple of modules that do the uploading ok, such as: https://github.com/Topface/multiparter The iss

[nodejs] Paul Serby talking at the LXJS conference about his decision on switching to Node.JS http://bit.ly/18SjKrd

2013-11-21 Thread Jenny Davis
Paul details the problems he the tech team had been experiencing with PHP, and therefore why he decided to switch to Node.js. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you

[nodejs] Re: need help: readable stream "flowing mode" on Windows

2013-11-21 Thread Floby
I believe you should `push()` at some point. On Wednesday, 20 November 2013 20:03:00 UTC+1, Laurent Fortin wrote: > > Hi, > > > I am currently working on a small toolkit module for handling data streams > (for the "streams2" API). > https://github.com/lfortin/node-stream-tk > > > However I am get

Re: [nodejs] Re: Passing parameters in http.request module ?

2013-11-21 Thread Ashutosh Das
Thanks :) On Thu, Nov 21, 2013 at 9:45 AM, Kevin Kragenbrink wrote: > If by 'parameters' you mean 'query parameters', you pass them as a part of > the path (e.g. path : "/baz?foo=bar") > > > On Wednesday, November 20, 2013 11:07:36 AM UTC-8, Ashutosh Das wrote: >> >> How to pass parameters in

[nodejs] Re: Passing parameters in http.request module ?

2013-11-21 Thread Kevin Kragenbrink
If by 'parameters' you mean 'query parameters', you pass them as a part of the path (e.g. path : "/baz?foo=bar") On Wednesday, November 20, 2013 11:07:36 AM UTC-8, Ashutosh Das wrote: > > How to pass parameters in http.request module ? > > In the document I cant find parameter option . > -- --