Re: [nodejs] buf.readUInt16BE and buf.readUInt16LE difference

2012-09-23 Thread Yi Tan
FYI: http://en.wikipedia.org/wiki/Endianness Regards, ty 2012/9/24 Ben Noordhuis > On Mon, Sep 24, 2012 at 12:48 AM, nodenewbie wrote: > > Was looking at Buffer class in nodejs documentation - > > Does anyone know the difference between buf.readUInt16BE and > > buf.readUInt16LE? > > One rea

[nodejs] connection through SOCKS proxy

2012-09-23 Thread Stephen Pair
I have a need to proxy outbound socket connections through a SOCKS proxy. I've seen plenty of references to reverse proxy implementations in nodejs (for inbound connections to web servers for example), but very little information on proxying outbound connections. However, I did find this bit

Re: [nodejs] buf.readUInt16BE and buf.readUInt16LE difference

2012-09-23 Thread Ben Noordhuis
On Mon, Sep 24, 2012 at 12:48 AM, nodenewbie wrote: > Was looking at Buffer class in nodejs documentation - > Does anyone know the difference between buf.readUInt16BE and > buf.readUInt16LE? One reads a little-endian short, the other a big-endian short. -- Job Board: http://jobs.nodejs.org/ Pos

[nodejs] buf.readUInt16BE and buf.readUInt16LE difference

2012-09-23 Thread nodenewbie
Was looking at Buffer class in nodejs documentation - Does anyone know the difference between buf.readUInt16BE and buf.readUInt16LE? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because yo

[nodejs] Re: Building a module with node-gyp

2012-09-23 Thread Bert Belder
On Sunday, September 23, 2012 10:17:48 PM UTC+2, NodeNinja wrote: > > Trying to build this https://github.com/substack/node-bigint module with > node-gyp on windows. This lib wraps around libgmp > It was previously using node-waf. > > For gmp on windows I downloaded the static version for vc++ fr

[nodejs] Re: [ANN]: memoizee - Complete memoize/cache solution

2012-09-23 Thread Vitaly Puzrin
Mariusz, Thanks for sharing memoizee. I have comment about timeouts. Very often, it's recommended to use "replace" strategy, instead of "delete". I mean, if data is expired, you still continue to return old data from cache, but fetch new one in background. It can be easily implemented in async

[nodejs] Building a module with node-gyp

2012-09-23 Thread NodeNinja
Trying to build this https://github.com/substack/node-bigint module with node-gyp on windows. This lib wraps around libgmp It was previously using node-waf. For gmp on windows I downloaded the static version for vc++ from here http://www.cs.nyu.edu/exact/core/gmp/ and put in a folder called '

[nodejs] Front page article of the Sunday NY Times

2012-09-23 Thread Jerome Covington
"Power, Pollution and the Internet" Seems like the case can now be made to the general public that if we use approaches that consume fewer server resources and electricity, the world will be in better shape. http://www.nytimes.com/2012/09/23/technology/data-centers-waste-vast-amounts-of-energy-

[nodejs] Re: Best way to detect file has been written to disk with fs.createWriteStream

2012-09-23 Thread mscdex
On Sep 23, 12:52 pm, Andris Reinman wrote: > What would be the best way to detect a file has been written to disk? Once > I have passed all the data to a fs.WriteStream, the data is at first > buffered by node and written to the disk asynchronously. There is no "end" > or "close" event to listen t

Re: [nodejs] Node.js on embedded platform

2012-09-23 Thread Shiplu
Grate to know that some people at least run it. My chat application is very minimal. Its like one of the node tutorial chat app. But it'll grow with more features. So later it'll be hard to maintain on that small device. The reason why I chose node because of JS. Writing and maintaining JS is very

[nodejs] Best way to detect file has been written to disk with fs.createWriteStream

2012-09-23 Thread Andris Reinman
What would be the best way to detect a file has been written to disk? Once I have passed all the data to a fs.WriteStream, the data is at first buffered by node and written to the disk asynchronously. There is no "end" or "close" event to listen to (or at least these don't trigger on my system

[nodejs] Re: npm search

2012-09-23 Thread mscdex
On Sep 23, 8:59 am, samm wrote: > If I press enter it goes to a google search results page. > I guess I have to use the command line to search. > Why bother having the web page version then? You can at least search by keyword using a URI like `https://npmjs.org/ browse/keyword/foo` to search for

[nodejs] Re: npm search

2012-09-23 Thread samm
Actually I just found you can go here: http://eirikb.github.com/nipster/ and type in, for example, irc, and then click the npm icon at the right of the result line. It will take you back to npm site with the npm install command for that module. On Sunday, September 23, 2012 8:59:39 AM UTC-4, sa

[nodejs] npm search

2012-09-23 Thread samm
I don't understand how to use this. I type in, for example, irc. But there is no search or go button anywhere. If I press enter it goes to a google search results page. I guess I have to use the command line to search. Why bother having the web page version then? -- Job Board: http://jobs.nodejs

[nodejs] Re: SNMP with NodeJS

2012-09-23 Thread ostrich
Do you have found the available SNMP module in nodejs now? 在 2011年12月29日星期四UTC+8下午9时00分04秒,Andreas Falk写道: > > You have this project on Github. > I'm eagerly awaiting some of the things on the todo on the bottom of the > page (i unfortunately don't have the

[nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-09-23 Thread Postlethwaite
Arch Linux eats the cake off Ubuntu (I was an Ubuntu user for a while but became frustrated for many of the same reasons I grew frustrated with Win). I am using Emacs + its infinite modes for all my dev, but am trying to migrate to something more modern. Cloud9 has saved me before but HAS NO EM