[nodejs] Re: initial usage problems

2012-06-27 Thread Dan
the login environment. Help debugging this would be greatly appreciated. Dan -- 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 Groups "nodejs&q

[nodejs] Re: initial usage problems

2012-06-27 Thread Dan
8.8.8.8 works!! Now, what is the problem?? On Wednesday, June 27, 2012 4:58:46 PM UTC-5, mscdex wrote: > It works for me on v0.8.0 on Windows and Linux: > dns.resolve('registry.npmjs.org',function(){console.dir(arguments)}) > > What if you try using only Google's DNS server (8.8.8.8) temporari

Re: [nodejs] Re: initial usage problems

2012-06-27 Thread Dan
So I just say your DNS is broken? What part is broken? How do I determine where the problem is? On Wednesday, June 27, 2012 8:04:17 PM UTC-5, ryandesign wrote: > > I guess the problem is your usual DNS server does not work correctly. > Contact your network administrator? > -- Job Board: htt

[nodejs] Listing all Pads + full text search

2012-09-29 Thread Dan
e to implement that hook so that I can write the plugin? The second feature that I'm missing is a global full text search. Since its quite inefficient to search in the key/value table I'm thinking of creating my own fulltext index that consists of the most recent pad versions. W

[nodejs] Doing 1000 concurrent http requests, and getting ETIMEDOUT.

2013-11-01 Thread Dan
Hey, I'm coding a proxy server checker. In order to check a proxy, I need to connect to it using "request" module, and perform several requests. The goal is to be able to check thousands of proxies in short amount of time. I was hoping to test 1,000 proxies concurrently. I did the following

[nodejs] initial usage problems

2012-05-28 Thread Dan
The following is copied over here from the npm discussion per Isaac's suggestion. Dan --- s this what you expect: events.js:48 throw arguments[1]; // Unhandled 'error' event ^ Error: getaddrinfo ENOENT at errnoException (dns.j

[nodejs] Re: initial usage problems - Is DNS broken?

2012-05-29 Thread Dan
Is there a DNS problem? How do I go about resolving this? Dan On Monday, May 28, 2012 5:08:14 PM UTC-5, Dan wrote: > > The following is copied over here from the npm discussion per Isaac's > suggestion. > > Dan > --- > s this what you expect: > events.js:4

Re: [nodejs] Re: Sample code to add basic authentication to node http server

2012-10-29 Thread Dan Milon
of the browser session (but this is immaterial) - the point is every > unique user would get challenged. I'm not seeing this at all - any new > client can access a resource without a challenge. > > Again, any help much appreciated ! > > Thanks. > > > > On Thursday,

[nodejs] [ANN] passbookster: An iOS passbook generation library

2012-10-29 Thread Dan Milon
I'd like to announce Passbookster. Passbookster allows you to create iOS passbook passes. It provides both a stream and callback API. Great care has been taken on performance. Node crypto module does not currently support PKCS#7 signing, so openssl is spawned internally, but a PR to add this func

Re: [nodejs] Socket.io, answer WELL, don't lock.

2012-10-31 Thread Dan Milon
You didnt post any issues, but posted a "plz help me" question on node's issue tracker. Issues are bugs/unexpected behaviour/new features/proposals, not questions. That's why there's this mailing list for questions/discussions, but this attitude wont get you a long way. danmilon. On 10/31/2012 0

Re: [nodejs] Re: Socket.io, answer WELL, don't lock.

2012-10-31 Thread Dan Milon
Personally I can't help you with that issue, but you might be luckier if you post this on the socket.io mailing list. https://groups.google.com/forum/?fromgroups#!forum/socket_io On 10/31/2012 04:32 PM, Andreas Backx wrote: > Also, why isn't it a bug then? I've never seen someone else have it. I

Re: [nodejs] Socket.io, answer WELL, don't lock.

2012-10-31 Thread Dan Milon
ode install.js > ERR! You can get their info via: > ERR! npm owner ls ws > > which should have sent you to the 'ws' issue tracker right away. > > -- > Martin Cooper > > > > and I also didn't know m

Re: [nodejs] Creating a stateful server using node.js

2012-11-01 Thread Dan Milon
Sounds like you need a database, not? Is there a particular reason you wont use a regular generic external database? You could even use embedded levelDB https://github.com/rvagg/node-levelup danmilon. On 11/01/2012 12:02 PM, Arindam Mukherjee wrote: > I am trying to write a distributed monitoring

Re: [nodejs] Re: process.env - documentation?

2012-11-01 Thread Dan Milon
I totally agree with Tim & SL here. I think the argument: "If you google'ed you'd find out" is invalid. The same argument could be used for almost every question in this mailing list. To keep away from over-documenting I agree with Tim, at least there should be a link to an online man page. But I

Re: [nodejs] Problem with using socket.io

2012-11-01 Thread Dan Milon
Probably the browser (for some reason) did not fetch the socket.io.js file, so the global variable "io" does not exist. Make sure the server returns the file, and the client can talk to the server. danmilon. On 11/01/2012 11:12 PM, _Kili_ wrote: > Hi, > I am beginner with node.js and just trying

Re: [nodejs] Re: Should stream.pipe forward errors?

2012-11-28 Thread Dan Milon
Technically you could explicitly add each stream to its own domain. danmilon. On 11/29/2012 02:47 AM, Mikeal Rogers wrote: > with domains, these will all get trapped in the same domain because > they are all event emitters, if they throw. > > i tried forwarding errors through pipe chains but it

[nodejs] Propagating non-error events in domains

2012-11-30 Thread Dan Yoder
Are there any plans to propagate non-error events using domains at some point in the future? -- 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 Groups "n

Re: [nodejs] Re: HTTP client request headers (lowercase) issue

2012-12-01 Thread Dan Milon
AFAIK outgoing headers are not lowercased. Do you have a test case? danmilon. On Sat, Dec 1, 2012 at 10:01 PM, Cristian Bullokles wrote: > Looks like this change stills in v0.8.15 of node.js, I'm trying to > authenticate to an OAuth provider and I've the same problem. My provider is > not able t

Re: [nodejs] Re: HTTP client request headers (lowercase) issue

2012-12-01 Thread Dan Milon
Rogers wrote: > by default node.js sends headers in lowercase. by spec, HTTP headers are > caseless. if someone does not treat them that way you email them and ask them > why they suck at HTTP. > > On Dec 1, 2012, at December 1, 20124:50 PM, Dan Milon > wrote: > >> AFA

Re: [nodejs] Do ZLib stops the js main loop?

2012-12-05 Thread Dan Milon
It doesnt look like they wait for the previous ones to complete. Its just more load, so the threads queue up, hence the high latencies. danmilon. On 12/05/2012 12:24 PM, 長島徹 wrote: > Hello. > > I found a strange behavior. I want to get the method to avoid the > behavior. > > I compress a data (

Re: [nodejs] What's the default value of a buffer

2012-12-07 Thread Dan Milon
Its just allocated space, there's no default. It defaults to whatever the previous process which owned that chunk of memory wrote there. danmilon. On 12/08/2012 04:14 AM, Goddy Zhao wrote: > var buf = new Buffer(1); console.log(buf[0]); > > The above code will print a random value of buf[0], any

Re: [nodejs] Using ForeverAgent

2012-12-17 Thread Dan Shaw
Here's the Voxer module: https://github.com/ceejbot/keep-alive-agent We're using this in production under Poolee ( https://github.com/dannycoates/poolee ), our HTTP pool and load balancer. Daniel Shaw @dshaw On Mon, Dec 17, 2012 at 12:40 PM, Mikeal Rogers wrote: > Voxer has done some work to p

Re: [nodejs] Xcode and Node.js

2012-12-20 Thread Dan Milon
Offtopic: On 12/21/2012 01:06 AM, Ryan Schmidt wrote: > JavaScript is interpreted, not compiled. That's not true. The language by itself does not require the VM to either interpret or compile the code. V8 in fact does compile the code into an intermediate format called Hydrogen. (not assembly).

Re: [nodejs] Does events gets executed sync'd or async'd?

2013-01-11 Thread Dan Milon
sync. https://github.com/joyent/node/blob/master/lib/events.js#L123 danmilon On 01/11/2013 06:21 PM, Eric wrote: > Hi guys, > > Newbie question here: when a code calls emitter.emit(event), does the > listeners get executed synchronously or asynchrounsly? > > Thanks for the help, > > Eric. > >

Re: [nodejs] node + raspi + Internet of Things (IoT)

2013-01-11 Thread Dan Milon
There was a similar thread some months ago, and a separate list [1] was created for further discussion. There hasn't been any activity lately, but you might wanna check with these guys also. [1] https://groups.google.com/forum/?fromgroups#!forum/iofthings danmilon. On 01/11/2013 11:47 AM, Paul T

Re: [nodejs] basic dependency question

2013-01-14 Thread Dan Milon
Dependencies (aka `require`s) are resolved synchronously. So the flow is: A --> B --> C A --> C Also modules are cached. [1] ie, they are not loaded twice. A and B "see" the same version of C. [1] http://nodejs.org/docs/latest/api/modules.html#modules_caching Hope this helps, danmilon. On 01/1

Re: [nodejs] basic dependency question

2013-01-14 Thread Dan Milon
s/A/node_modules/B/node_modules/C <-- C-0.0.1 here > node_modules/A/node_modules/C <-- C-0.0.2 here > > > On Mon, Jan 14, 2013 at 5:49 PM, Dan Milon <mailto:danmi...@gmail.com>> wrote: > > Dependencies (aka `require`s) are resolved synchronously. > > So the f

[nodejs] get failing host from getaddrinfo ENOTFOUND

2013-01-17 Thread Dan Milon
When you get a `getaddrinfo ENOTFOUND` error, is there a way to get the host that failed? It's coming from node-stripe, for whatever reason my dns fails and I'm catching it on uncaughtException. I could wrap the stripe calls, but thats a mediocre solution. Thanks, danmilon. -- Job Board: http://

Re: [nodejs] Version 0.9.7 (Unstable)

2013-01-18 Thread Dan Shaw
On Fri, Jan 18, 2013 at 12:10 PM, Isaac Schlueter wrote: > If it's a binary script, you can > set the shebang to `#!/usr/bin/env node --harmony_whatevers` and it'll > Just Work on unix, and npm will DTRT on Windows when it writes the > .bat shim. (Probably not telling you anything you don't alre

Re: [nodejs] Re: Data validation

2013-01-22 Thread Dan Milon
comments inline. On 01/22/2013 01:56 PM, Alan Hoffmeister wrote: > Well, generaly I don't wait for the db to throw a duplication error to > warn the user that he needs to pick up another username. But of course, > if the form is 100% valid I still need to take care about his username > at the db l

Re: [nodejs] Re: Data validation

2013-01-22 Thread Dan Milon
assed. Application logic gets in the way and doesn't allow for much flexibility IMO. I'd be interested to see what you come up with. danmilon. On 01/22/2013 02:29 PM, Alan Hoffmeister wrote: > Dan I see the point, but would it be any performance issue accessing > external data from

Re: [nodejs] ANN: node-pcre

2013-01-26 Thread Dan Milon
Not really relevant, but this reminded me of Mads Ager's talk [1], from the V8 team, when V8 was a new thing. He talks about how they started with pcre internally, but then decided to write their own regex engine. Anyway, I found it interesting, you might wanna check it out. [1] http://www.youtube

[nodejs] [ANN] assurance - validation & sanitization library

2013-01-28 Thread Dan Milon
I'd like to announce _assurance_, a library for input validation & sanitization. It's been built with network APIs in mind, but it can be used for CLI programs too. ## Features * Provides a **clean** & **pretty** API * Returns meaningful error **objects**, not error messages * **Accumulates

Re: [nodejs] Graceful exit on SIGINT/SIGTERM

2013-01-30 Thread Dan Milon
You can easily override the default signal handlers. See http://nodejs.org/docs/latest/api/process.html#process_signal_events you could do: ``` function gracefulExit() { db.close(process.exit) } process.on('SIGINT' gracefulExit).on('SIGTERM', gracefulExit) ``` Obviously it can be more sophist

Re: [nodejs] Re: Javascript Class Specification for the next generation of JS class system, hope to discuss with you.

2013-01-31 Thread Dan Milon
Kinda offtopic: I see a lot of people here mention OOP and classes are flawed. Does anyone have some reading to suggest about OOP and its issues? Maybe some comparison with functional programming. danmilon. On 01/31/2013 10:10 PM, Diogo Resende wrote: > +1. Java people should really read and lea

Re: [nodejs] How to future proof password hashes?

2013-01-31 Thread Dan Milon
Yes, the buffers will be identical. danmilon. On 02/01/2013 12:41 AM, Harald Hanche-Olsen wrote: > I'd like to store user password hashes in a database. > > When a new password is created, I get some bytes from > crypto.randombytes to use as salt, then feed the salt and password to > crypto.pbkd

[nodejs] core dump analysis & debugging

2013-01-31 Thread Dan Milon
I was wondering if it is possible to use a core dump from a node process running on linux as a post mortem debugging mechanism. Would smartos' MDB understand a core dump coming from a linux machine? Thanks, danmilon. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github

Re: [nodejs] core dump analysis & debugging

2013-02-01 Thread Dan Milon
ilon. On 02/01/2013 01:21 PM, Ben Noordhuis wrote: > On Fri, Feb 1, 2013 at 12:39 AM, Dan Milon > wrote: >> >> I was wondering if it is possible to use a core dump from a node >> process running on linux as a post mortem debugging mechanism. >> >> Would smar

Re: [nodejs] core dump analysis & debugging

2013-02-01 Thread Dan Milon
$ ulimit -c unlimited $ node -e 'process.abort()' Aborted (core dumped) $ ls -a ./ ../ Any idea? BTW, could you point me to the actual code of process.abort in the source? danmilon. On 02/01/2013 05:52 PM, Ben Noordhuis wrote: > On Fri, Feb 1, 2013 at 4:38 PM, Dan Milon >

Re: [nodejs] core dump analysis & debugging

2013-02-01 Thread Dan Milon
08 PM, Ben Noordhuis wrote: > On Fri, Feb 1, 2013 at 5:27 PM, Dan Milon > wrote: >> $ ulimit -c unlimited >> >> $ node -e 'process.abort()' Aborted (core dumped) >> >> $ ls -a ./ ../ >> >> Any idea? >> >> BTW, could you

Re: [nodejs] Security announcements

2013-02-04 Thread Dan Shaw
LOL, somehow the href still points to nodejs.irg for me. :-) http://blog.nodejs.org/ Daniel Shaw @dshaw On Mon, Feb 4, 2013 at 8:17 AM, Isaac Schlueter wrote: > Er, typo, sorry. Iphone keyboard fail :) > Node blog = http://blog.nodejs.org/ > > > On Monday, February 4, 2013, Isaac Schlueter wrot

Re: [nodejs] Valid character encodings for source code

2013-02-04 Thread Dan Milon
The OP meant the actual file encoding. eg, if you have a source file containing Greek characters and save it in iso-8859-7 format (which should display just right if read with the same encoding), node will try to read it in utf and fail. (ie "�" characters in strings, etc) danmilon. On 02/04/201

Re: [nodejs] Node.js webserver hangs

2013-02-05 Thread Dan Milon
Many. Take a look at https://github.com/lloyd/node-toobusy danmilon. On 02/05/2013 06:53 PM, Gustavo Machado wrote: > Hello, a rather theoretical question. > > What are the possible causes for a server to stop responding to the > most simple requests? How can one troubleshoot this kind of probl

Re: [nodejs] Re: What happens to hook.io?

2013-02-06 Thread Dan Milon
«No. Even if I did, you wouldn't understand.» Obviously the guy is not in a mood for explanations. Let's all move on. On 02/06/2013 07:40 PM, Mark Hahn wrote: > I can't tell from the docs what this is used for. Can you > explain? > > > On Wed, Feb 6, 2013 at 2:07 AM, Marak Squires > mailto:mar

Re: [nodejs] Re: abuse notification due to "make test"

2013-02-07 Thread Dan Milon
Verify the hash of whatever you downloaded. http://nodejs.org/dist/v0.8.19/SHASUMS.txt On 02/07/2013 06:30 PM, Sven Knuth wrote: > another try before giving up: > > I started the nodes.js self test with "make test". ( I think it is > an self test, because I didn't found a description of the test

Re: [nodejs] Process mongodb records

2013-02-08 Thread Dan Milon
In case you're using just mongodb-native: http://mongodb.github.com/node-mongodb-native/api-generated/cursorstream.html On 02/08/2013 05:47 AM, Benjamin Clos wrote: > Mongoose.js allows for streaming of records as it finds them and is > useful for iterating over large populations. > -- -- Job

Re: [nodejs] Re: nodeconf videos?

2013-02-08 Thread Dan Milon
Well, almost. I can go to the doctor for free, but I've paid taxes in order to do so. I get 1000 free minutes from my carrier, but I'm paying for a subscription. etc. My point is, many times what we get for free now, is the result of us paying in the past. This has nothing to do with nodeconf,

Re: [nodejs] Elegant way to require('some-app-component')

2013-02-12 Thread Dan Wierenga
ems. See the "mklink" command in cmd.exe (not in powershell, only cmd.exe. ) HTH, Dan -- -- 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 Gr

Re: [nodejs] 0.9x: writeable stream: objectMode

2013-02-15 Thread Dan Milon
Judging from the code Aaron linked, neither does v0.8 know how to convert the object into a buffer. It relies on #toString(). On 02/16/2013 12:45 AM, Nathan Rajlich wrote: > Aaron, I'm a little confused at exactly what you're trying to do, > but if you have a Readable stream outputting "objects"

Re: [nodejs] MongoDB / Mongoose - prevent field update

2013-02-22 Thread Dan Milon
It's up to you to filter and validate the input. (ok, mongoose has some basic validation but that won't help you here). here's what I do. Hope that helps: ```javascript // User.UPDATE_ATTRS is an array of the permitted attributes // for updating. // // filter returns an object with only those key

Re: [nodejs] Dev Progress on NodeJS

2013-02-28 Thread Dan Shaw
Perhaps what Sebi is referring to is the node-dev list. This list was been deactivated and all the collaboration moved to GitHub. https://groups.google.com/forum/?fromgroups=#!topic/nodejs-dev/FhFhw5z48UQ Daniel Shaw @dshaw On Thu, Feb 28, 2013 at 2:26 PM, Sebi wrote: > Is NodeJS still in deve

Re: [nodejs] Re: Re - Reusing the schema validation both on client side and server side

2013-03-01 Thread Dan Milon
See assurance [1]. We're using it both on the server and client. Actually we've created a shared repo exposing a function for each entity that needs to be validated, and a make target to fetch it from the repos that need it. [1] https://github.com/danmilon/assurance On 03/01/2013 02:28 PM, Sri

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Dan Milon
On 03/14/2013 11:02 PM, Mikeal Rogers wrote: > That's a great "oppertunity?" but it's not in line with the > structure and goals of node.js. > > Node has synchronous file operations. The reason it has sync file > operations is that there are many cases where you actually **want** > to stop the ent

[nodejs] Re: How to use streams with feedparser

2013-03-19 Thread Dan MacTough
({ 'uri': 'http://substack.net/blog.xml' })) .on('article', function (article) { //do something }); -Dan On Tuesday, March 19, 2013 12:51:58 AM UTC-4, josh wrote: > > this is almost a copy paste from feedparser readme. > I know I miss something but n

[nodejs] Re: How to use streams with feedparser

2013-03-20 Thread Dan MacTough
on (err, response, body){ > feedparser.parseString(body) > .on('article', callback);}); > > > On Tuesday, March 19, 2013 1:11:40 PM UTC-7, Dan MacTough wrote: >> >> Josh, sorry about the outdated documentation. The pipe method doesn't >> work anymore. I've up

Re: [nodejs] Re: New Streams confusion

2013-03-25 Thread Dan Milon
readable is emitted after you've actually started reading. In your example, you dont ever `response.read()`, so no readable event is ever emitted. As you said, streams start in paused state and ready to be read. On 03/25/13 22:28, Michael Jackson wrote: > Is it correct to assume that a Readable w

Re: [nodejs] Re: New Streams confusion

2013-03-25 Thread Dan Milon
You're right, my bad. But still, data stay in the buffer until someone tries to `.read()`. So, if you're being passed a stream that you dont know whether the first `readable` event has fired, you can try to actually read from it. If it returns null, then you wait for `readable`. On 03/25/13 22:42

Re: [nodejs] Re: New Streams confusion

2013-03-25 Thread Dan Milon
That's not guaranteed to work. You're assuming that `stream.read()` will return the whole internal buffer, which is not documented anywhere. The right approach is to call `.read()` until it returns null. Something like that: function collectStream(stream, cb) { var bufs = [] function read()

Re: [nodejs] Re: New Streams confusion

2013-03-26 Thread Dan Milon
like >>> on top of them. You never need to worry about data events, or >>> what state different streams are in. You can seek to different >>> positions in the stream, read just a certain number of bytes, >>> whatever. It's just super simple and super powerfu

Re: [nodejs] http max performance experiments

2013-04-02 Thread Dan Shaw
I'm just going to leave this here: https://vimeo.com/56402326 Daniel Shaw @dshaw On Tue, Apr 2, 2013 at 1:33 PM, billywhizz wrote: > i tend to agree. i would like core to be just a very small wrapper around > libuv and everything else to be in user land. but it's too late for those > kind of ar

Re: [nodejs] Re: [ANN] GrayGelf: Fully compliant Graylog2/GELF client and server

2013-04-04 Thread Dan Milon
See https://github.com/danmilon/winston-graylogger But I ended up moving away from winston, so I don't use it anymore. Anyway, it's a 50-liner. On 04/04/2013 04:48 πμ, Alexey Kupershtokh wrote: > Hello again Marc :) I'm investigating a possibility to use > https://github.com/flite/winston-graylog

Re: [nodejs] socket.io questions

2013-04-04 Thread Dan Shaw
https://groups.google.com/forum/#!forum/socket_io Note that there's a moderation queue on that list so it might take a bit for your post to appear. Daniel Shaw @dshaw On Thu, Apr 4, 2013 at 11:12 AM, Mark Hahn wrote: > I have two questions relating to the 0.9.x version of socket.io I'm using.

Re: [nodejs] socket.io-servicebus

2013-04-05 Thread Dan Shaw
That's awesome, Glenn. It's great to see new Socket.io Store implementations. Daniel Shaw @dshaw On Thursday, April 4, 2013, Glenn Block wrote: > Hey all > > We just published a module for allowing you to scale out socket.io in the > cloud using Azure Service Bus: > https://github.com/windowsaz

Re: [nodejs] Re: [ANN] GrayGelf: Fully compliant Graylog2/GELF client and server

2013-04-05 Thread Dan Milon
it shortly. > BTW, why do you not using winston anymore? Using anything better instead? > > четверг, 4 апреля 2013 г., 19:31:48 UTC+7 пользователь Dan Milon написал: >> >> See https://github.com/danmilon/winston-graylogger >> >> But I ended up moving away from w

Re: [nodejs] Re: [ANN] GrayGelf: Fully compliant Graylog2/GELF client and server

2013-04-05 Thread Dan Milon
Yes. I'll try to release it during the weekend if you'd like. On 5 Απρ 2013, at 1:03 μ.μ., Alexey Kupershtokh wrote: > Have you made it able to send data to the Graylog2 in your fork? > > пятница, 5 апреля 2013 г., 16:58:19 UTC+7 пользователь Dan Milon написал: >>

Re: [nodejs] Server Timestamp

2013-04-05 Thread Dan Milon
If all you need is time elapsed since epoch, you dont wanna do that. Nor `+new Date()`. They are way more expensive than a plain `Date.now()`. https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/now On 05/04/2013 07:02 μμ, Herman Junge wrote: > console.log(new Date(

Re: [nodejs] Re: Server Timestamp

2013-04-05 Thread Dan Milon
Read the documentation. Date.now(), Date#getTime(), etc return the number of milliseconds since epoch. Whereas php's time() returns seconds. Hence the 3 digit difference. Math.round(Date.now() / 1000) That converts from ms to s. On 05/04/2013 09:56 μμ, Tolgay Toklar wrote: > Thanks for ans

Re: [nodejs] Intalling an older version of Node via package manager on linux

2013-04-09 Thread Dan Milon
I assume you're on archlinux. No, the repositories hold only the latest version. If you have previously installed a previous version you can $ pacman -U /var/cache/pacman/pkg/nodejs-... You might wanna hold the package so it doesn't get automatically updated. Or use nvm if you find yoursel

Re: [nodejs] Intalling an older version of Node via package manager on linux

2013-04-09 Thread Dan Milon
You don't need to uninstall the older version. It gets replaced. Read the pacman article on the archlinux wiki for more. On 9 Απρ 2013, at 10:40 π.μ., NodeNinja wrote: > Dan, > Yes I'm on archlinux > > does this command > $ pacman -U /var/cache/pacman/pkg/nodejs-0.

Re: [nodejs] stream.Transform events

2013-04-13 Thread Dan Milon
You're explicitly asking it not to emit an end event by passing end: false to pipe. On 14 Απρ 2013, at 12:01 π.μ., Ruud wrote: > Hey, > > I'm trying to create a streaming parser/transformer for a special web proxy > project. The 'streams2' stream.Transform base class makes this quite easy,

Re: [nodejs] Nodeclipse -- node.js language support for eclipse

2012-06-08 Thread Dan Shaw
Nuno, I had the same reaction. Good job, Lamb. I'm sure people without deep Eclipse scares will appreciate this. Daniel Shaw @dshaw -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because y

Re: [nodejs] Re: Unloading a module from require

2012-06-14 Thread Dan Milon
What is the use case of unloading a module? On 06/14/2012 10:02 AM, yogesh agrawal wrote: delete require.cache is not good way to unload. Some times module doesn't get unloaded after deleting it from cache. Modules api lacks unload method :( On Thu, Jun 14, 2012 at 11:28 AM, Ben

Re: [nodejs] cluster API is amazing

2012-06-17 Thread Dan Milon
That's why you should never use MemorySession for express, socket.io. Generally, any connection related data cant go in memory. Bradley Meck wrote: >Multiple connections can be made that keep state in a >non-transactional/distributed location. This can lead to things where one >worker gets a

Re: [nodejs] Node and developing on multiple machines

2012-06-22 Thread Dan Milon
That wont work for binary modules. Is it such an overkill to just install global modules on the fly as you need them? on any computer. On 06/23/2012 01:00 AM, Elijah Insua wrote: dropbox On Fri, Jun 22, 2012 at 2:52 PM, Ralphtheninja (Magnus Skog) mailto:lars.magnus.s...@gmail.com>> wrote:

Re: [nodejs] Node and developing on multiple machines

2012-06-23 Thread Dan Milon
I dropped sshfs for some interval'ed rsync because of editors hanging when they have to scan directories stat everything and stuff. On 06/23/2012 09:05 AM, alFReD NSH wrote: John, mark. Don't you guys have any problem with the latency? -- Job Board: http://jobs.nodejs.org/ Posting guideline

Re: [nodejs] Wrap functions as streams (pipemaster)

2012-06-25 Thread Dan Shaw
Wrote this at an offsite where we were discussing Hadoop as a proof of concept: https://github.com/dshaw/reduce-stream in conjunction with https://github.com/dshaw/filter-stream Was able to boil down 60+ GB of log data to weighted geodata using these two modules. My apologies for the complete lack

[nodejs] Addon: Native vs JS?

2012-06-26 Thread Dan Søndergaard
hat? If it's possible to write the entire thing in C++, how do I then "inherit" EventListener and Stream? I apologize if the explanation is confusing, I'm still just trying to figure out the different layers of abstraction in node :-) Thanks, Dan -- Job Board: http:

Re: [nodejs] Addon: Native vs JS?

2012-06-26 Thread Dan Søndergaard
Thanks, both replies were very helpful. I'll study fs.js and do a 1 <-> 1 wrapper in C++ :-) -- 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 Groups "n

[nodejs] Re: Addon: Native vs JS?

2012-06-26 Thread Dan Søndergaard
+. Again, I'm a bit in doubt about the interaction between node and the other abstraction layers. Can the two event loops interfere? Thanks again, you're all very helpful :-) On Tuesday, June 26, 2012 4:40:41 PM UTC+2, Dan Søndergaard wrote: > > Hi, > > I'm trying to write my

Re: [nodejs] Re: remove "engines" from package.json?

2012-06-27 Thread Dan Shaw
I'm +1 for reducing it to a warning and letting infrastructure companies build, adapt and extend it to their needs in userland. Daniel Shaw @dshaw On Wed, Jun 27, 2012 at 10:45 AM, Isaac Schlueter wrote: > Thanks for the feedback, everyone. > > It seems like we can achieve the optimum balance l

[nodejs] Problems instaling node.js

2012-06-27 Thread Dan S
I'm getting problems very similar the first one reported in: http://comments.gmane.org/gmane.comp.lang.javascript.nodejs/42890 So I tried to adapt the solution to my shell (I'm putting ">" in to indicate lines I input) but I still get the same problem. Any clues would be nice. > setenv PYT

Re: [nodejs] Problems instaling node.js

2012-06-28 Thread Dan S
> > Your fix works great. Thanks (I applied it by hand since the box I'm > working on can't access your git repo). -- 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

Re: [nodejs] Problems instaling node.js

2012-06-28 Thread Dan S
If I can't do: "sudo make install" because I lack the privilidges... how can I build it just for myself (and is that possible)? On Wednesday, June 27, 2012 7:16:28 PM UTC-4, Ben Noordhuis wrote: > On Wed, Jun 27, 2012 at 9:05 PM, Dan S wrote: > > I'm gett

[nodejs] Re: Addon: Native vs JS?

2012-06-28 Thread Dan Søndergaard
as a stream. Did you use uv_async_t as Ben proposes? On Tuesday, June 26, 2012 4:40:41 PM UTC+2, Dan Søndergaard wrote: > > Hi, > > I'm trying to write my first node addon (I have no previous experience > with C++ whatsoever). It's basically a wrapper for the PortAudio librar

Re: [nodejs] Re: remove "engines" from package.json?

2012-06-28 Thread Dan Shaw
Express used to be one of the notable ones. TJ's removed that now, though. Daniel Shaw @dshaw On Thu, Jun 28, 2012 at 1:05 PM, Mikeal Rogers wrote: > without having done any research I'd say between 0 and 4. > > On Jun 28, 2012, at June 28, 20121:04 PM, Ryan Schmidt wrote: > >> I didn't know th

[nodejs] Hook.io performance

2012-07-01 Thread Dan Milon
underlaying mechanisms hook.io uses for IPC (please enlighten me), but isn't this performance quite low? Or is there something wrong with the test? Thanks, Dan Milon. [1] https://gist.github.com/3029842 -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node

Re: [nodejs] Hook.io performance

2012-07-01 Thread Dan Milon
would require that throughput. Always good to get more input to shape the API. On Sun, Jul 1, 2012 at 3:18 PM, Dan Milon <mailto:danmi...@gmail.com>> wrote: Hello, I am using hook.io <http://hook.io> for some project. Today i thought of measuring how fast hook.io <

Re: [nodejs] Hook.io performance

2012-07-01 Thread Dan Milon
You could probably just use redis, or 0mq with a node.js driver. On Sun, Jul 1, 2012 at 3:45 PM, Dan Milon mailto:danmi...@gmail.com>> wrote: Hey Marak, Thanks for the valuable info. The use case is: I have a few hooks that receive messages each one from a d

Re: [nodejs] Hook.io performance

2012-07-01 Thread Dan Milon
g. It doesn't seem like a good idea to use dnode ( or even the node net module ) to pass that many messages on start. If you want to use node, you'll probably need to bring in an add-on that links to a more robust messaging protocol. On Sun, Jul 1, 2012 at 4:11 PM, Dan Milo

Re: [nodejs] Web scraping and Memory leaking issue

2012-07-03 Thread Dan Milon
en to start again. This way you have a constantly low memory footprint and the same performance. Hope i helped, Dan Milon. [1] https://github.com/caolan/async/#queue On 07/03/2012 01:42 PM, ec.developer wrote: Thanks for cheerio =)) Have removed the jsdom with cheerio. Now after 6000 page

Re: [nodejs] devil's advocate: why would I choose nodejs over MVC + IIS?

2012-07-03 Thread Dan Milon
will ask you to write your next code in node ;) Hope I've helped, Dan Milon. On 07/03/2012 08:56 PM, Justin Collum wrote: Had a discussion with a friend about Nodejs the other day. We are both C# / MVC / ASP.NET devs, with about 10 years experience. He asked me why someone would c

Re: [nodejs] Re: MMO game node balancing multi servers

2012-07-05 Thread Dan Milon
Your requirement to be able and spin up more servers of the same "game" requires a lot of sharing between each of these servers, because they need (eventually) to be in the same state. The only advantage of this over having a single server for each "game" is that you load balance incoming traff

Re: [nodejs] Parallel Async Calls and Parallel Errors

2012-07-05 Thread Dan Milon
I believe a streaming API would be more appropriate for such a task. Something like: var deleter = new Deleter('~'); deleter.on('error', function (err) { console.error(err) }) deleter.on('file', function (fileName) { console.log('deleted ' + fileName) }) deleter.on('end', function () {

[nodejs] stream.pause with tcp

2012-07-06 Thread Dan Milon
protocol pause? Thank you, Dan Milon. -- 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 Groups "nodejs" group. To post to this group, send email

Re: [nodejs] node 0.8.1 - EADDRINUSE on unix sockets

2012-07-06 Thread Dan Shaw
This is a know issue and has been closed as won't fix: https://github.com/joyent/node/issues/3540 Workaround: https://gist.github.com/9f93cdcd3a77b9142e51 We've deployed this change at Voxer. Daniel Shaw @dshaw On Fri, Jul 6, 2012 at 10:17 AM, AJ ONeal wrote: > 0.8.1 leaves stale sockets behi

Re: [nodejs] installing Node.js 0.8.1 with n

2012-07-07 Thread Dan Shaw
I know it doesn't help much, but I've been using `n latest` all the way through 0.8.1 on Lion and it's worked without a hitch. Daniel Shaw @dshaw On Sat, Jul 7, 2012 at 12:39 PM, Mark Volkmann wrote: > I get lots of errors when I try to install Node.js 0.8.1 on a Mac (Lion) > with n using "n la

Re: [nodejs] CGI example needed

2012-07-08 Thread Dan Milon
You wouldn't use node as a cgi script (at least for the web part). Technically you can, but you would lose all the benefits (async/nonblocking io) since you let apache or any http server for the matter enforce the concurrency model. Afaik, the cgi server will pull up node processes for each req

Re: [nodejs] CGI example needed

2012-07-08 Thread Dan Milon
Yeah, You should read up nodejs.org & tutorials / blogs to learn more ;) danmilon. On 07/09/2012 12:54 AM, Tim Johnson wrote: * Dan Milon [120708 10:27]: You wouldn't use node as a cgi script (at least for the web part). Technically you can, but you would lose all the benefi

Re: [nodejs] npm install redis error

2012-07-10 Thread Dan Shaw
hiredis is an optionalDependency. (In fact, it is the main reason why optionalDependency was added to npm!) node_redis should work fine without hiredis. If this is reproducible, please file a issue: https://github.com/mranney/node_redis/issues Daniel Shaw @dshaw On Tue, Jul 10, 2012 at 12:06 AM

Re: [nodejs] New module : VarStream

2012-07-11 Thread Dan Bornstein
ch contains a few straightforwardly-written readable streams. Maybe you'll find it useful. Cheers, -dan -- 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 Groups &

  1   2   3   >