[nodejs] Re: Error when running 'npm install' for a package on a git repo

2015-07-24 Thread mscdex
On Friday, July 24, 2015 at 4:17:33 PM UTC-4, Niko Bellic wrote: > > That's a good workaround. Thanks, mscdex! Is there anyway to specify > version? (in the other format you could do git+https:// > github.com/jshint/jshint.git#2.8.0) > > Yes, just change the last part

[nodejs] Re: Error when running 'npm install' for a package on a git repo

2015-07-24 Thread mscdex
On Thursday, July 23, 2015 at 9:32:53 PM UTC-4, Niko Bellic wrote: > > > I get the following *command-line error*... > > As a workaround (for now), you could also use: npm install https://github.com/jshint/jshint/tarball/master I use that method all the time for modules on github -- Job board:

[nodejs] Re: Breaking C++ API Changes in Node.js v0.12

2015-07-21 Thread mscdex
On Tuesday, July 21, 2015 at 9:54:32 AM UTC-4, Honza Břečka wrote: > > Hi, how do you write native addons that can run on both 0.10 and 0.12 node > versions? There are breaking API changes, so code written for v0.12 can't > be compiled on v0.10. Thanks > You should use nan[1] for the best compat

[nodejs] Re: Need help understanding Node.js CPU consumption

2015-07-07 Thread mscdex
On Tuesday, July 7, 2015 at 8:54:29 AM UTC-4, Sunil Agrawal wrote: > > If my entire Node.js program is the following > > setInterval(function() {}, Infinity) > > 'top' shows it consumes 15-20% CPU > > What is happening here is that since `Infinity` is larger than the maximum allowed timeout valu

[nodejs] Re: Need help reading ancillary messages from unix domain socket

2015-06-25 Thread mscdex
On Tuesday, June 23, 2015 at 7:36:13 AM UTC-4, prerak jain wrote: > > I have a server which needs to run multiple process on 443 port, for that > I have a proxy server which will actually listen on 443 port and based on > the TLS Client Hello server name(SNI) field it forwards the socket fds to

[nodejs] Re: why node-v0.12.4-x64.msi installation tries to install airserver?

2015-05-28 Thread mscdex
On Thursday, May 28, 2015 at 8:44:34 PM UTC-4, Mikael Sitruk wrote: > > I downloaded from the official site: > http://nodejs.org/dist/v0.12.4/x64/node-v0.12.4-x64.msi > it seems totally another installer from the properties tab of the > installer: > signer info > name: App Dynamic ehf. > > > > fr

[nodejs] Re: why node-v0.12.4-x64.msi installation tries to install airserver?

2015-05-27 Thread mscdex
On Monday, May 25, 2015 at 8:47:23 AM UTC-4, Mikael Sitruk wrote: > > Just wondering why the installation of node.js 64bit under Windows tries > to install airserver? > The 32 bits does not require this, just install fine. > > On Tuesday, May 26, 2015 at 3:43:13 PM UTC-4, Dmitry Nutels wrote: >

[nodejs] Re: Default https protocol on https.request()

2015-04-28 Thread mscdex
On Tuesday, April 28, 2015 at 11:35:34 AM UTC-4, Aaron Seet wrote: > > Looking at plain code samples, if one does not explicitly specify the > secureProtocol option, what is the default protocol use by the request > client when invoking https.request() ? > The documentation[1] states that SSLv2

[nodejs] Re: Please do not deprecated Buffer "binary" encoding.

2015-02-07 Thread mscdex
On Saturday, February 7, 2015 at 9:27:34 AM UTC-5, Axel Kittenberger wrote: > > I just read through the docs that say, buffer.toString( 'binary') might be > going to removed. > > please don't. > > That note has been in the docs for a long time and just from what I remember hearing the last time i

[nodejs] Re: Stream /dev/video0 over WebRTC

2015-01-31 Thread mscdex
On Saturday, January 31, 2015 at 4:10:06 PM UTC-5, P THE AWESOME wrote: > > There are lots of WebRTC libraries now, but I can't find a way to serve a > local video device. I am on Debian 7.8 (wheezy) with no GUI (terminal > only). I would like to only run a NodeJS server in the background, not a

[nodejs] Re: Why is deb.nodesource.com installing 0.11 over 0.10?

2015-01-29 Thread mscdex
On Thursday, January 29, 2015 at 10:40:47 AM UTC-5, Alan Hoffmeister wrote: > > I just did an `apt-get upgrade` and node.js was upgraded from 0.10.35 > to 0.11.15, but why? 0.11 isn't an unstable branch? I'm using the > nodesource repository on my Ubuntu 14.10. > > This is definitely an error si

[nodejs] Re: json parse output problem . SyntaxError: Unexpected token o

2015-01-21 Thread mscdex
On Wednesday, January 21, 2015 at 12:04:15 PM UTC-5, Roelof Wobben wrote: > > var user = { > username: 'The Reddest', > email: 'bra...@switchonthecode.com' , > firstName: 'Brandon', > lastName: 'Cannaday' > }; > JSON.parse(user, function (k, v) { > console.log(k); > retu

[nodejs] Re: Very simple question re:Buffers...

2014-12-26 Thread mscdex
On Friday, December 26, 2014 11:15:50 PM UTC-5, // ravi wrote: > > Given that offsets are 0-indexed and [end] is the end offset, shouldn’t > that default to buffer.length - 1? Digging through node/lib/buffer.js to > smalloc, I see: > > `end` is the ending offset (not inclusive). P.S: given that

[nodejs] Re: Uninstalling pre node.js

2014-10-10 Thread mscdex
On Friday, October 10, 2014 9:21:07 AM UTC-4, hassan wrote: > > I have installed node v0.13.0-pre on my ubuntu. I need to uninstall it and > install stable version but i don't have source of this pre version and > i can't remember where i download it from!. maybe removed by node team. > You shou

[nodejs] Re: ANN: ssh2 module

2014-10-10 Thread mscdex
On Friday, October 10, 2014 1:46:41 AM UTC-4, cesdaile wrote: > > What I meant by 'choking' is that I am seeing a premature close on the > stream when the output exceeds approx. 400 lines. Smaller output sizes seem > to complete reliably and I can parse the entire command output without any > tr

[nodejs] Re: ANN: ssh2 module

2014-10-09 Thread mscdex
On Wednesday, October 8, 2014 8:55:43 PM UTC-4, cesdaile wrote: > > > I attempted to set the server to not page but I am finding the ssh2 client > is choking on the output when there is more than 500 lines being returned > so I am reconsidering going interactive and trying to page through the dat

[nodejs] Re: Can someone teach me how to get the source code difference of v0.10.22 and v0.10.23 ?

2014-10-05 Thread mscdex
On Sunday, October 5, 2014 12:55:33 AM UTC-4, Ning Ji wrote: > > > how do I get the source changes from v0.10.22 to v0.10.23 ? > what's the exact github command to get source ? > > Github has a compare method that allows you to compare tags and branches. It looks like this: https://github.com/joy

[nodejs] Re: disable request logs in express.js to console

2014-10-05 Thread mscdex
On Saturday, October 4, 2014 10:38:01 PM UTC-4, manjunath wrote: > > what we are looking is how we can disable only request logs. > Assuming the logger middleware you're using is `morgan`, then you can set a `skip`[1] function that allows you to return whether a particular request should be logg

[nodejs] Re: busboy, upload few files, 'finish' event doesn't work properly

2014-10-03 Thread mscdex
On Friday, October 3, 2014 9:27:10 AM UTC-4, dmitry@wemaketraffic.com wrote: > > I trying to upload few files through one input[type=file] with attribue > 'multiple'. All work fine but 'finish' event firing before realy all work > done. Does anyone know how to fix it? > > When the busboy ins

[nodejs] Re: What happens with the crypto.createCipher(algorithm, password)

2014-10-03 Thread mscdex
On Friday, October 3, 2014 9:37:51 AM UTC-4, Chris Casey wrote: > > Does this function (as opposed to the createCipheriv) use a null or > generated iv that can be reproduced elsewhere? > `createCipher()` generates[1] a key and IV from the supplied password using `EVP_BytesToKey()`[2]. > > Un

[nodejs] Re: Streaming Code Worked in v0.2.3 and 0.4.12, fails in 0.10.25

2014-10-03 Thread mscdex
On Thursday, October 2, 2014 11:48:02 PM UTC-4, P. Douglas Reeder wrote: > > I can tell the following code executes as far as logging "second piece of > index-colorbox.html written", but not to logging "writeUntilBufferFull()". > > Have you checked the return values of your `.write()` calls? IIRC

[nodejs] Re: NPM: I don't need your tests in my production!

2014-09-22 Thread mscdex
On Saturday, September 20, 2014 8:59:26 AM UTC-4, Ivan Nikulin wrote: > > Please, stop publishing your development stuff to npm. > If you do that, then things like nodechecker.com will stop being useful. :-\ -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym2

Re: [nodejs] Node executable size on building from source vs binary downloaded

2014-09-16 Thread mscdex
On Monday, September 15, 2014 8:38:20 PM UTC-4, Matt Sergeant wrote: > > There can be multiple reasons. The "official" binary could be stripped. > There could be a different compiler used. All sorts of reasons. > > The official pre-compiled binaries are not stripped. On Tuesday, September 16, 20

[nodejs] Re: Node executable size on building from source vs binary downloaded

2014-09-15 Thread mscdex
On Friday, September 5, 2014 9:05:32 AM UTC-4, Phani Kumar wrote: > > I have downloaded node 0.10.31 source and built on my Linux machine. The > source is just as it is and no changes made at all. The build is successful > but when I compare bin/node file size with the one from binary downloaded

Re: [nodejs] util core module

2014-09-15 Thread mscdex
On Sunday, September 14, 2014 8:51:32 PM UTC-4, Matt Sergeant wrote: > > isBuffer is now Buffer.isBuffer(). > > node v0.11+ aliases[1] `Buffer.isBuffer()` to `util.isBuffer()`. [1] https://github.com/joyent/node/blob/f310c0f16b7d30c1f60eb4ae794748ef5d2ba77c/lib/buffer.js#L131-L133 On Monday, S

[nodejs] Re: Buffer vs String

2014-09-15 Thread mscdex
On Sunday, September 14, 2014 8:52:36 PM UTC-4, Michael Monashev wrote: > > I rewite some code from Strings to Buffers with zero data copying (I > use slice). But the new code was 10 times slower! I Buffer slower than > String? > It'd be helpful if you also posted the relevant code. -- Job

[nodejs] Re: util core module

2014-09-14 Thread mscdex
On Saturday, September 13, 2014 5:06:31 PM UTC-4, Ep Ga wrote: > > > Why did you take out methods? like isBuffer, and isObject? that make no > sense if the core module rely on them, then others would too. > > They didn't take them out. They only exist in node v0.11+. Those API docs are for the la

Re: [nodejs] A fair test between bcryptjs and twin-bcrypt

2014-09-11 Thread mscdex
On Thursday, September 11, 2014 7:24:07 PM UTC-4, Matt Sergeant wrote: > > Two issues: 1) Why would you expect it to be faster? It's pure JS using > asm.js (which Node doesn't support), vs bcrypt is compiled C code. And 2) > Being slow is a feature of bcrypt - it makes brute force cracking harder

[nodejs] Re: what is this code doing?

2014-09-11 Thread mscdex
On Thursday, September 11, 2014 5:41:15 PM UTC-4, Reza Razavipour wrote: > > Is this only doing away with the user having to do a new? > You're correct, although it's usually `if (!(this instanceof Param))` instead of `if (!this instanceof Param)` for clarity. -- Job board: http://jobs.nodejs.o

[nodejs] Re: [ANN] webkitgtk

2014-09-10 Thread mscdex
On Wednesday, September 10, 2014 4:47:49 PM UTC-4, Egor Egorov wrote: > > > Yeah if you could provide a link that would be great. > > > https://github.com/kapouer/node-webkitgtk -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-poli

[nodejs] Re: Crypto and the event loop

2014-08-30 Thread mscdex
On Friday, August 29, 2014 8:02:25 PM UTC-4, Sanjeev Koranga wrote: > > When I use the node crypto module, does it block the event loop while > processing or spawn a different thread in C++? > Currently there are no non-blocking counterparts to the existing functions in the built-in crypto modul

[nodejs] Re: Using Express module

2014-08-30 Thread mscdex
On Friday, August 29, 2014 8:09:38 PM UTC-4, Alex Brodov wrote: > > I've installed the express module on windows and tried to access it via > the command line using the express command this command wasn't recognized > any idea why > ? If you're looking for the Express project generator, you nee

[nodejs] Re: TypeError: Object # has no method 'configure'

2014-08-27 Thread mscdex
On Wednesday, August 27, 2014 3:01:17 AM UTC-4, Amar Chavan wrote: > > Hello, > When I try to run "node file.js" in command prompt. I get the following > error. > socket.configure(function() { > ^ > TypeError: Object # has no method 'configure' > > Isn't `configure()` an Express thing, not a Socke

[nodejs] Re: API document layout issue

2014-08-18 Thread mscdex
On Monday, August 18, 2014 2:08:03 AM UTC-4, Manish Bansal wrote: > > > Location : http://nodejs.org/documentation/api/ > I've never seen that URI/layout before. I've always used: http://nodejs.org/docs/latest/api/ -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com

[nodejs] Re: Really silly question about behavior of var req=http.request(), req.write() and req.end() in a POST request

2014-08-17 Thread mscdex
On Sunday, August 17, 2014 5:34:51 AM UTC-4, q2dg2b wrote: > > WHY??? > > Your code isn't wrong, the server you're testing with just doesn't seem to support `Transfer-Encoding: chunked`, since if you set a Content-Length, it works fine. -- Job board: http://jobs.nodejs.org/ New group rules: ht

[nodejs] Re: new node module: fd-slicer

2014-08-09 Thread mscdex
On Friday, August 8, 2014 4:38:21 PM UTC-4, Andrew Kelley wrote: > > > Note that it is unsafe to use fs.write multiple times on the same file >> without waiting for the callback. For this scenario, fs.createWriteStream >> is strongly recommended. > > > Is this because the Buffer passed to `fs.wri

[nodejs] Re: v8 engine version and performance

2014-08-01 Thread mscdex
On Thursday, July 31, 2014 4:57:22 PM UTC-4, chezy palani wrote: > > We are using node v0.10.26. What version of v8 engine it uses? In our > performance test, we see memory bottleneck where the node process memory > usage doesn't go above 1GB. This seems related to the v8 issue discussed > here

[nodejs] Re: Node server stops responding after certain period

2014-07-19 Thread mscdex
On Saturday, July 19, 2014 8:44:27 AM UTC-4, tamizh arasan wrote: > > Now i have founded that sql connection goes to sleep condition when there > is no request for longer time(i.e 12hours). so can anybody suggest me how > to over come this problem. Thanks in advance. > What I have done (when usi

[nodejs] Re: Streams features moving forward

2014-07-15 Thread mscdex
On Monday, July 14, 2014 7:02:08 PM UTC-4, Chris Dickinson wrote: > > I just finished a recap of what I've been up to over the course of June, > and what I'll be getting involved in in July -- specifically, I'll > be working towards ownership of the streams subsystem. I wrote a post >

[nodejs] Re: help,can someone help me please?

2014-07-15 Thread mscdex
On Monday, July 14, 2014 11:05:18 PM UTC-4, Chris Chau wrote: > > C:\Users\Chris\Dropbox\blog>hexo server -i 127.0.0.1 > >> [error] { name: 'HexoError', >> reason: 'incomplete explicit mapping pair; a key node is missed', >> mark: >>{ name: null, >> buffer: 'categories: Categories\nsea

[nodejs] Re: help,can someone help me please?

2014-07-14 Thread mscdex
On Monday, July 14, 2014 12:59:24 PM UTC-4, Chris Chau wrote: > > i don't know why my node can't do anything,can't run or install any > software,should i completely uninstall it or am i miss any software like > microsoft visual C++? > > > C:\Users\Chris\Dropbox\blog>npm install fsevents -g >

[nodejs] ANN: socksv5 - SOCKS v5 server and client implementations

2014-07-14 Thread mscdex
for the server to intercept requests instead of passing the connection through to its intended destination * Tests * Maintained * Written in JavaScript Install via: npm install socksv5 Github/Documentation: https://github.com/mscdex/socksv5 -- Job board: http://jobs.nodejs.org/ New grou

[nodejs] Re: A question on usage of require

2014-07-11 Thread mscdex
On Thursday, July 10, 2014 9:40:56 PM UTC-4, Deva Kumaraswamy wrote: > > when I do > *npm install ref* > > I get the following error: "Cannot find module '../'. > > It installs fine for me on node v0.10.29. What node (`node -v`) and npm (`npm -v`) version are you using? -- Job board: http://job

Re: [nodejs] Repercussions of GN replacing GYP upstream?

2014-07-09 Thread mscdex
On Wednesday, July 9, 2014 2:06:53 PM UTC-4, Ingwie Phoenix wrote: > > I actually always wondered: We have a scripting engine. Why do we rely on > Python for GYP, if we have NodeJS? Is there no gyp replacement in node > itself? > > I would think the problem would be when you're building from sour

[nodejs] Re: How do you guys handle request spam?

2014-07-03 Thread mscdex
There's also: https://github.com/diosney/node-netfilter -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message b

[nodejs] Re: How do you guys handle request spam?

2014-07-03 Thread mscdex
On Thursday, July 3, 2014 10:54:37 AM UTC-4, Alisson Cavalcante Agiani wrote: > > So that a malicious user gets blocked for some time(maybe with HTTP 429) > when it hits a request limit in a predefined duration > If you're using Express, there are rate limiting middleware[1][2] and modules[3][4

[nodejs] Re: pro tip: npm config set save-prefix='~'

2014-07-01 Thread mscdex
https://www.npmjs.org/doc/misc/npm-config.html#save-prefix -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this messag

[nodejs] Re: (C++) Emitting events from another thread?

2014-06-28 Thread mscdex
On Friday, June 27, 2014 12:25:09 PM UTC-4, Ingwie Phoenix wrote: > > This is supposed to be sort-of modeled after child_process.spawn. What > posibilities do I have, to emit events across threads? > > Have you already looked into `uv_async_send()` ? That would be for signalling the main thread

[nodejs] Re: server.listen hostName issue

2014-06-27 Thread mscdex
On Friday, June 27, 2014 1:13:00 AM UTC-4, 敬錞潘 wrote: > > How to fix this hostName assign issue below? > > server.listen(app.get('port'),"123.xxx.xxx.xxx");//this is my ip ,not ok > //server.listen(app.get('port'),"127.0.0.1");//ok ,can run in webbrowser > > > Are you sure that yo

[nodejs] Re: Compiling with node-gyp in parallel

2014-06-26 Thread mscdex
On Thursday, June 26, 2014 5:03:34 PM UTC-4, AT wrote: > > > and it works great for development. I'd like end-users who install my > addon to have the same speedup when they install with `npm install`. Is > this possible? > Not really. I usually just have the environment variable `JOBS` set to t

[nodejs] Re: node.js 11.13 blog entry missing

2014-06-24 Thread mscdex
On Tuesday, June 24, 2014 1:41:15 PM UTC-4, am_p1 wrote: > > use to be here from around May 1: > http://blog.nodejs.org/ > http://blog.nodejs.org/2014/05/02/node-v0-11-13-unstable/ -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-p

[nodejs] Re: Same codes, different results in REPL and shell environments about UDP socket

2014-06-24 Thread mscdex
On Monday, June 23, 2014 6:49:35 PM UTC-4, Xiadong Zhu wrote: > > > An abnormal issue, help please! > > It's most likely a timing issue. The non-REPL code is running within the same tick, so the socket isn't actually bound until some time later, but you try and use a method (setBroadcast) that ex

Re: [nodejs] Re: node.js API documentation clean up

2014-06-23 Thread mscdex
On Monday, June 23, 2014 11:30:30 AM UTC-4, Matt Sergeant wrote: > > > On Sun, Jun 22, 2014 at 2:10 AM, Mark Hahn > > wrote: > >> It has driven me crazy for years the the api docs (methods) are in no >> particular order, at least none that I can discern. I usually have to >> scroll through most

[nodejs] Re: node.js API documentation clean up

2014-06-22 Thread mscdex
On Saturday, June 21, 2014 7:19:43 PM UTC-4, Norbert Fuhs wrote: > > > Is there an up to date list of undocumented methods and properties in the > node.js API reference documentation? > If they were in the documentation they wouldn't be undocumented ;-) -- Job board: http://jobs.nodejs.org/ N

[nodejs] Re: does os.networkInterfaces work in windows

2014-06-07 Thread mscdex
On Friday, June 6, 2014 7:45:31 PM UTC-4, Mark Hahn wrote: > > When I run os.networkInterfaces() in node 10.25 I get the result [ null ]. > Is there something I have to do to use this in windows? > It works for me on Windows 7. Perhaps you have to have administrator privileges (or run the node

Re: [nodejs] Node.js in ERP-land

2014-05-15 Thread mscdex
On Thursday, May 15, 2014 3:15:44 AM UTC-4, Michaël Rouges wrote: > > Unfortunately, unreadeable website, zoom notice, whatever I make. (Firefox > 29.0.1) > > Why this behavior choice? :| > > Not only that but autoplaying audio (and no way to turn it off). -- Job board: http://jobs.nodejs.org/ N

Re: [nodejs] Memory leak with Buffer.toArrayBuffer

2014-05-12 Thread mscdex
On Monday, May 12, 2014 3:44:23 PM UTC-4, Denys Khanzhiyev wrote: > > > Is it worth of creating issue? > Not really, it looks like it was just removed[1]. [1] https://github.com/joyent/node/commit/b1a44dfe9eb9297a260d584cf87af1d7b74e7d0a -- Job board: http://jobs.nodejs.org/ New group rules:

[nodejs] Re: where is the lib/module.js file installed?

2014-04-25 Thread mscdex
On Friday, April 25, 2014 1:36:10 AM UTC-4, Axel Huizinga wrote: > > Hi, > I would like to debug the module loading process to see which path exactly > is looked up and not found > however I haven't been able to locate the lib/module.js file which I can > see on git. > Where is the file located o

[nodejs] Re: java implementation of Buffer(str, 'binary')

2014-04-22 Thread mscdex
On Tuesday, April 22, 2014 8:29:15 PM UTC-4, Mike Kobyakov wrote: > > nodejs does a str.toString('binary') on the compressed buffer. this > changes the buffer as in the following example. > Don't use the 'binary' encoding unless you absolutely have to. Just keep the data as a Buffer (which is w

[nodejs] Re: calling C++ from javascript: how to modify an input argument?

2014-04-22 Thread mscdex
On Tuesday, April 22, 2014 1:08:44 PM UTC-4, SimonHF wrote: > > But is it also possible to change the value somehow from C++ land, so that > in javascript the variable passed into the function will reflect the > changed value? > No. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines

[nodejs] Re: It's recommended to add v8::HandleScope for every exposed method?

2014-04-18 Thread mscdex
On Friday, April 18, 2014 10:13:56 PM UTC-4, Jonathan Cardoso wrote: > > I've forked a library for a native module that had not received any > updates for a while, as I'm learning some C++, I will try to learn working > on this module. > > And taking a look at the code, I just hit a question, the

[nodejs] Re: node.lib

2014-04-15 Thread mscdex
On Tuesday, April 15, 2014 4:27:49 AM UTC-4, Pawel Por wrote: > > also cannot see any nodejs specific library when listing shared library > dependencies with ldd my_module.node > > In the case of node.js bindings/addons, they are compiled as standalone shared libraries and are then loaded by

[nodejs] Re: can one use socket.io for domain sockets?

2014-04-14 Thread mscdex
On Monday, April 14, 2014 9:33:20 PM UTC-4, mscdex wrote: > > On Monday, April 14, 2014 7:17:19 PM UTC-4, Reza Razavipour wrote: >> >> The server has created a UNIX domain socket, lets call it >> /tmp/connect_to_me and it is listening on it for connections. >> L

[nodejs] Re: can one use socket.io for domain sockets?

2014-04-14 Thread mscdex
On Monday, April 14, 2014 7:17:19 PM UTC-4, Reza Razavipour wrote: > > The server has created a UNIX domain socket, lets call it > /tmp/connect_to_me and it is listening on it for connections. > Lets switch to C++ for a second since the server is in C++ > So client attempts to connect to /tmp/conn

[nodejs] Re: can one use socket.io for domain sockets?

2014-04-14 Thread mscdex
On Monday, April 14, 2014 5:07:42 PM UTC-4, Reza Razavipour wrote: > > I was planning on using socket.io to connect to my node.js client to a > server using POSIX sockets. > > The server is being redesigned to support domain sockets since both server > and my node client will always run on the sa

[nodejs] Re: TypeError: Cannot call method 'isDirectory' of undefined

2014-04-14 Thread mscdex
On Monday, April 14, 2014 10:23:04 AM UTC-4, ZhiQiang Tan wrote: > > Yeah , you are right, Thanks ! > > Also, it's probably a good idea to actually check the `err` argument first so that you won't try to use a non-existent result (e.g. 'stat'). That goes for any asynchronous function calls. --

[nodejs] Re: node.lib

2014-04-14 Thread mscdex
On Monday, April 14, 2014 10:32:25 AM UTC-4, Pawel Por wrote: > > I can see that node.lib exists in Windows installation and does not exist > in Linux one. > It is used when linking native (C++) modules. I wonder why node.lib is not > necessary during linking on Linux. > It's a matter of platfor

[nodejs] Re: TypeError: Cannot call method 'isDirectory' of undefined

2014-04-14 Thread mscdex
On Monday, April 14, 2014 1:25:56 AM UTC-4, ZhiQiang Tan wrote: > > fs.readdir(process.cwd(),function(err,files){ > > > function files(i){ > var filename = files[i]; > Perhaps there is a conflict here and thus there is some variable shadowing because you have the `files` from the readd

[nodejs] Re: what version of OpenSSL does Node.js 0.8 use?

2014-04-10 Thread mscdex
On Thursday, April 10, 2014 9:07:57 PM UTC-4, Aaron Seet wrote: > > For technical reasons with Windows Azure, we can only deploy Node.js v0.8 > for now. Would like to know what version of OpenSSL it uses for SSL/TLS > communication; whether it is vulnerable to Heartbleed. > https://twitter.com/n

[nodejs] Re: Implement multipart/mixed parser

2014-04-08 Thread mscdex
On Tuesday, April 8, 2014 4:14:34 AM UTC-4, Hendrik Cech wrote: > > Unfortunately the code needs to run in the browser as well. I can't make > use of the http module therefore. > You may want to check how various browsers handle a multipart/mixed response first. Some may not give you the entire

[nodejs] Re: Implement multipart/mixed parser

2014-04-06 Thread mscdex
27;part', function(part) { … }) > }) > > There's dicer[1], which powers busboy[2]. [1] https://github.com/mscdex/dicer [2] https://github.com/mscdex/busboy -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Gu

[nodejs] Re: How does Node decode invalid UTF8?

2014-04-01 Thread mscdex
On Tuesday, April 1, 2014 2:13:32 AM UTC-4, Joran Dirk Greef wrote: > > I am writing a UTF8 decoder for browser use to decode a typed array into a > string. > > I want it to handle invalid UTF8 in the same way as Node for various > invalid inputs, as client and server need to produce identical ou

[nodejs] ANN: sipster -- a sip stack module using pjsip

2014-03-28 Thread mscdex
o wav) * Adjust volume levels of audio streams * Detect/Send DTMF digits * Hold/un-hold * Call transfer [1] npm install sipster [2] https://github.com/mscdex/sipster [3] http://sipp.sourceforge.net/ -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent

[nodejs] Re: lode, a toolkit to bring C/C++ libraries to Node.js applications

2014-03-25 Thread mscdex
On Tuesday, March 25, 2014 8:47:14 AM UTC-4, Liam wrote: > > I've recently posted a prototype of this project; feedback appreciated... > > https://github.com/networkimprov/lode > > > How does this differ from ffi?: https://github.com/rbranson/node-ffi -- -- Job Board: http://jobs.nodejs.org/ Po

[nodejs] Re: TCP client

2014-03-13 Thread mscdex
On Thursday, March 13, 2014 11:51:40 AM UTC-4, Carlos Tarik wrote: > > conn.write('/n/r'); > I don't know if this is the exact cause of your problem or not, but this should probably be '\r\n' instead of '/n/r' ? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com

[nodejs] Re: Need help with module.exports!!!

2014-03-06 Thread mscdex
On Thursday, March 6, 2014 5:58:11 PM UTC-5, Bob Spero wrote: > > Here is what I am talking about, look at return select_statement, I > assign it the data but ss still comes back! > > You're trying to return a value inside a callback, which is useless. What you need to do instead is add a callbac

[nodejs] Re: accumulating transform pipes

2014-03-04 Thread mscdex
On Tuesday, March 4, 2014 2:45:11 PM UTC-5, Jeremy Hubble wrote: > > Is there a way to construct a transform pipe such that it can receive > multiple chunks before calling everything back? > > What's the use case? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.co

[nodejs] Re: Node.js not executing properly with Apache Server

2014-02-25 Thread mscdex
On Wednesday, February 26, 2014 12:06:07 AM UTC-5, gyanesh gouraw wrote: > > This node.js code is running on my localhost but when i am running it on > Apache server with mod_proxy and mod_http_proxy enabled it gives me the > source code of the chatserver rather than executing it. I have modified

[nodejs] Re: Really silly question about child_process.stdout and "readable"/"data" events

2014-02-21 Thread mscdex
On Friday, February 21, 2014 7:59:06 PM UTC-5, q2dg2b wrote: > > > *var ls=require("child_process").spawn("ls", ["-l", > "/home"])ls.stdout.on("readable", function () { var data= ls.stdout.read() > ; if( data !== null) {console.log(data.toString())} }) * > > try doing `ls.stdout.read(0);` after y

Re: [nodejs] Re: sending multiple http requests

2014-02-16 Thread mscdex
On Sunday, February 16, 2014 4:37:07 AM UTC-5, Ravi wrote: > > Ok, if i am reading it correctly, {Agent:'false'} disables any connection > pooling, therefore setting: > > require('http').globalAgent.maxSockets = > > won't matter at all? > > Correct. You could create a custom Agent if yo

[nodejs] Re: [Many request with requestify - serialisation of requests by blocks]

2014-02-15 Thread mscdex
On Saturday, February 15, 2014 11:58:14 AM UTC-5, Laurent Sertorius wrote: > > So, i want to request each urkl, but not in the same time, because sending > 200 000 http requests trigger error (web server : too many sockets > connections) > I use requestify.get(url).then(function(response), this

[nodejs] Re: Add module itself when resolving NODE_PATH

2014-02-15 Thread mscdex
On Saturday, February 15, 2014 10:27:35 AM UTC-5, Jesús Leganés Combarro wrote: > > As asked for at https://github.com/joyent/node/issues/7126, when defining > tests and examples on a Node.js package, you can't be able to require() the > package itself, needing to do it directly over the Javascr

Re: [nodejs] Re: sending multiple http requests

2014-02-14 Thread mscdex
On Friday, February 14, 2014 2:32:01 PM UTC-5, Ravi wrote: > > Please tell me where the magic happens ? > By default a global http(s) Agent is used, which limits the number of number of concurrent sockets. However the Agent will also by default try to use `Connection: keep-alive` for future requ

[nodejs] Re: Read a very big file block by block (10000 lines by 10000 lines)

2014-02-14 Thread mscdex
On Friday, February 14, 2014 11:47:47 AM UTC-5, Laurent Sertorius wrote: > > I use readFileSync method, but i want to read this file in many blocks (1 > block = 10 000 lines of my bigfile) > > fs.readFileSync('./myBigFic').toString().split('\n').forEach(function > (line) { > > An idea ? > You c

[nodejs] Re: Simple server script using express doesn't set Content-Type when sending files

2014-02-14 Thread mscdex
er you would need to copy the existing static middleware[2] from connect and modify it to use mmmagic and automatically set the header appropriately. [1] https://github.com/mscdex/mmmagic [2] https://github.com/senchalabs/connect/blob/master/lib/middleware/static.js -- -- Job Board: ht

[nodejs] Re: sending multiple http requests

2014-02-14 Thread mscdex
On Friday, February 14, 2014 10:40:10 AM UTC-5, Ravi wrote: > > i am observing that if i send lot of requests with very short span of > time, the time at which it is received at the server is linearly increasing. > > Have you tried setting `agent: false` in your http(s).request() options? -- -

[nodejs] Re: Alternative to GYP? o.o

2014-02-13 Thread mscdex
On Thursday, February 13, 2014 1:30:35 PM UTC-5, Kevin Ingwersen wrote: > > Is there an actual alternative to node-gyp? GYP is barely documented, and > its hard to figure things out. > I am just being curios, as I am currently lurking into different build > systems. > > Barely documented? I t

[nodejs] Re: Get the error text in error callback

2014-02-09 Thread mscdex
On Sunday, February 9, 2014 5:35:56 AM UTC-5, ami wrote: > > How I get the text "ReferenceError: cons is not defined" > > Use `e.message` -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message b

[nodejs] Re: binding.gyp: Adding a library link, depending on OS?

2014-01-25 Thread mscdex
You can also look at others' gyp files, such as the ones used in node core (e.g. node.gyp and common.gypi) as additional references. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message becaus

[nodejs] Re: binding.gyp: Adding a library link, depending on OS?

2014-01-25 Thread mscdex
On Saturday, January 25, 2014 5:29:50 PM UTC-5, Kevin Ingwersen wrote: > > How do I specify a library, depending on the OS? Like on Mac, I need to > link against -lobjc. But how do I do that only on Mac, and not on Windows? > > 'conditions': [ [ 'OS=="mac"', { 'link_settings': { 'libr

[nodejs] Re: Invoke npm via nodejs?

2014-01-18 Thread mscdex
pulling in npm as a dependency in order to get at the npm API: https://gist.github.com/mscdex/8493112 -- -- 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 Google G

[nodejs] Re: Changing nodejs' main behavior?

2014-01-16 Thread mscdex
On Thursday, January 16, 2014 11:18:26 AM UTC-5, Kevin Ingwersen wrote: > > I have seen it once in an article, but I can not refind it anymore T.T > I read about the fact, that if you include a special file into the nodejs > source tree, that int main() will run that script instead of the normal

Re: [nodejs] [ANN] gee

2014-01-14 Thread mscdex
On Tuesday, January 14, 2014 7:13:54 AM UTC-5, Alex Kocharin wrote: > > It was an experiment a year ago, but right now I can't even imagine how I > would use package.json without an ability to comment anything. :) If you're commenting your package.json, you're doing it wrong. No exceptions. -

[nodejs] Re: proxy NTLM - keep upstream connection alive per client?

2014-01-10 Thread mscdex
On Friday, January 10, 2014 4:51:56 PM UTC-5, José F. Romaniello wrote: > > I’m looking for a way to proxy an NTLM server with node. NTLM > handshake/negotiation requires the same TCP connection, so for instance > this will not work: > Can you not perform an HTTP redirect to the upstream url ins

Re: [nodejs] Multi process app does not use all CPUs

2014-01-05 Thread mscdex
On Monday, January 6, 2014 12:46:24 AM UTC-5, Peter Hsu wrote: > > Since I am only working on prototype. I would like to try the v0.12 branch > and see if things work. > I went to their download page http://nodejs.org/dist/ and only see > versions through 0.11. Anyone knows where I might be able

Re: [nodejs] Multi process app does not use all CPUs

2014-01-05 Thread mscdex
On Sunday, January 5, 2014 3:46:55 PM UTC-5, Jason Shinn wrote: > > The latest *stable* node.js version is v 0.10.24. When it talks about v11 > and v12, those are dev branches that are working towards becoming the new > stable version. Some people are actually running their code on those > bra

[nodejs] Re: npm install -g karma does not install executable

2013-12-26 Thread mscdex
On Thursday, December 26, 2013 11:34:54 PM UTC-5, Dmitri Zaitsev wrote: > > I have what looks like successful karma installation, yet karma is not > in /usr/local/bin/ and is not found by bash. > > Probably because there is no "bin"[1] set for that npm package. [1] https://github.com/karma-runne

[nodejs] Re: Backpressure for write/transform stream in objectMode

2013-12-05 Thread mscdex
On Thursday, December 5, 2013 9:44:06 AM UTC-5, Joran Dirk Greef wrote: > > Does a write/transform stream in objectMode handle backpressure? > > Would it be possible to set watermarks in terms of N objects rather than N > bytes? > Writable streams in objectMode do handle backpressure just like n

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

[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

  1   2   3   4   5   6   >