[nodejs] Re: Segmentation fault - how to diagnose?

2012-11-07 Thread Graeme Foster
Oops, I forgot about browserify... Run this and then the tests will pass (up to the seg fault): mkdir public node_modules/browserify/bin/cmd.js --entry client/src/lib/main.js -o public/client.js Cheers, G. On Wednesday, November 7, 2012 9:45:01 PM UTC, Paul Serby wrote: > > Sorry I've just see

[nodejs] Re: [ANN] node-candle module for callbacks that are freed either by resolving or timing out

2012-11-07 Thread Alexey Kupershtokh
jmar777, https://github.com/AlexeyKupershtokh/node-candle/wiki/Todo check out the table please суббота, 3 ноября 2012 г., 4:46:11 UTC+7 пользователь jmar777 написал: > > Very interesting - I wasn't aware of the set/clearTimeout optimizations. > And yes, you're correct about the scope of my modul

[nodejs] Re: PaaS that allows node.js to use non-http ports?

2012-11-07 Thread Tomasz Janczuk
Well I work for Microsoft, so you can only imagine my experience using Azure just cannot be bad ;). But seriously, there are several ways of running node.js code in Azure: - you can own a VM (Windows or Linux), where you can listen on whatever TCP port you please and have the traffic load balan

[nodejs] Re: Simple LightWeight OOP. 100% compatibility with JavaScript. Feedback please!

2012-11-07 Thread tjholowaychuk
Fredrick: less code does not make the code easier to digest, not even close, the vast majority of coffeescript is much smaller, but incredibly difficult to disambiguate in your head. Same with re- declaring prototypes, sure it's "noise" but it establishes context. Much like c++'s magical method inv

Re: [nodejs] Do I need to change codes to move from Windows to Linux

2012-11-07 Thread Nathan Rajlich
For the most part, no, you shouldn't have to change your code. Though there are some subtleties that you should be aware of: https://gist.github.com/2790533. On Wed, Nov 7, 2012 at 6:03 PM, Ket wrote: > Hi, > > I've developed my app under the Windows environment. But when it comes to a > real wor

[nodejs] Do I need to change codes to move from Windows to Linux

2012-11-07 Thread Ket
Hi, I've developed my app under the Windows environment. But when it comes to a real world usage I have to host my app under a Linux plan. Does this cause me to change my code accordingly. If it does, it will be a makeover I guess. Just my concern! Thanks -- Job Board: http://jobs.nodejs.org

Re: [nodejs] [ask] the effect of nodejs installed globally

2012-11-07 Thread Ryan Schmidt
On Nov 7, 2012, at 13:21, Prabu Siabuabu wrote: > hi everyone, i want to ask what's the effect of nodejs installed globally?? > because i've 2 versions of node and i can't uninstall the old one.. ty. What operating system? How are you trying to uninstall node? What error messages are you encou

Re: [nodejs] [ask] the effect of nodejs installed globally

2012-11-07 Thread Mark Hahn
In future use nvm. On Wed, Nov 7, 2012 at 11:21 AM, Prabu Siabuabu wrote: > hi everyone, i want to ask what's the effect of nodejs installed > globally?? because i've 2 versions of node and i can't uninstall the old > one.. ty. > > > > Best Regards, > > Prabu > > -- > Job Board: http://jobs.node

Re: [nodejs] Re: Question about threads in node.js

2012-11-07 Thread Bert Belder
On Thursday, November 8, 2012 12:45:25 AM UTC+1, Ben Noordhuis wrote: > > * While HTTP traffic is event-driven, the initial DNS lookup is done > from inside the thread pool. That's because we use getaddrinfo(3) > instead of c-ares, mostly because the latter doesn't support things > like mDNS (

Re: [nodejs] [ANN] node-avro 0.2: Avro support for Node.js

2012-11-07 Thread Josh Faul
At work, we use protobuf to communicate between all of our services. That said, we're mostly a Ruby shop. A few of the devs here have been working hard on our new implementation, which uses the actual protoc compiler to generate classes instead of some hand-parsing craziness that we used to us

Re: [nodejs] Re: Question about threads in node.js

2012-11-07 Thread Ben Noordhuis
On Thu, Nov 8, 2012 at 12:04 AM, Isaac Schlueter wrote: > Node uses threads for file system IO and for some slow CPU-intensive > operations, and for system calls that are not available > asynchronously, and for spawning child processes (since you can't > actually do that without a fork call.) > >

Re: [nodejs] Re: Question about threads in node.js

2012-11-07 Thread Marco Rogers
It took me a while to get a good conceptual understanding of the node async networking layer (I still don't have a concrete understanding). I just did a quick search around and didn't really find anything. I think it's really interesting and instructive to get a handle on how different OSes enab

[nodejs] Re: Segmentation fault - how to diagnose?

2012-11-07 Thread Paul Serby
Sorry I've just seen that yours runs more tests before seg faulting. Any ideas why I get that error? On Wednesday, 7 November 2012 20:49:37 UTC, Graeme Foster wrote: > > Hi all > > I'm using node 0.8.14 and I've got a test suite that results in a > segmentation fault on both OSX and whatever Tra

[nodejs] [ask] the effect of nodejs installed globally

2012-11-07 Thread Prabu Siabuabu
hi everyone, i want to ask what's the effect of nodejs installed globally?? because i've 2 versions of node and i can't uninstall the old one.. ty. Best Regards, Prabu -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelin

[nodejs] Re: Segmentation fault - how to diagnose?

2012-11-07 Thread Paul Serby
Doesn't seg fault on my Mac $ mocha ․ ✖ 1 of 86 tests failed: 1) Grid a player joins "before each" hook: expected 'initialising' to equal 'connected' On Wednesday, 7 November 2012 20:49:37 UTC, Graeme Foster wrote: > > H

Re: [nodejs] Re: Question about threads in node.js

2012-11-07 Thread Alberto Gori
Very interesting. So asynchronous I/O usually relies on specific kernel procedures, and only in few situations it's emulated using threads. Il giorno giovedì 8 novembre 2012 00:05:39 UTC+1, Isaac Schlueter ha scritto: > > Node uses threads for file system IO and for some slow CPU-intensive > op

Re: [nodejs] Re: Question about threads in node.js

2012-11-07 Thread Isaac Schlueter
Node uses threads for file system IO and for some slow CPU-intensive operations, and for system calls that are not available asynchronously, and for spawning child processes (since you can't actually do that without a fork call.) It does *not* use threads for async network IO, because it's unneces

[nodejs] Re: Question about threads in node.js

2012-11-07 Thread mscdex
On Nov 7, 5:00 pm, Alberto Gori wrote: > Am I wrong? The only place the thread pool in node is used (AFAIK) is for async file system calls. So, network I/O does not use extra threads as you suggest. There is one main thread where the event loop lives and where everything happens (except async fil

[nodejs] Question about threads in node.js

2012-11-07 Thread Alberto Gori
Is this guy confused about threads in node.js? http://letsnode.com/example-of-what-node-is-really-good-at Recaping, he says that traditional thread programming incurs in performance penalties because of cost of context switching and thread creation. AFAIK, it's true that node.js is hiding thre

[nodejs] Re: IPC with childprocess,fork -ed with callbacks.

2012-11-07 Thread Denys Khanzhiyev
I have made one https://github.com/xdenser/node-childWithCallbacks 2012/11/7 Denys Khanzhiyev > I need a general solution to make calls to child as following > > child.send(message,function(error, data){ > > }); > > and in the child > > parent.on('message',function(message,callback){ > ... >

[nodejs] [ANN] Boston Node.js in the wild November Meetup

2012-11-07 Thread Daniel Rinehart
The Boston based Node.js in the wild Meetup group will be holding its next meeting on Wed Nov 14 at 7pm in the Brightcove offices. The meeting will be focused on Node testing: * TDD, BDD * Testing stack (Integration -> Functional -> Unit) * Integration: Casper vs Zombie vs Jasmine+Phantom, etc * F

Re: [nodejs] Re: PaaS that allows node.js to use non-http ports?

2012-11-07 Thread Bradley Meck
Yep, but there are interesting ways to do things still, like STUN and SOCKS bindings if you have a proxy of your own out there you can generally setup the tunnel inside most PaaS. Generally though the PaaS is stuck to preallocating port/host pairs and charging for them since most don't give you

[nodejs] Re: Segmentation fault - how to diagnose?

2012-11-07 Thread mscdex
On Nov 7, 3:49 pm, Graeme Foster wrote: > Any tips would be appreciated! I'd first start by making debug builds of all addon dependencies and using those instead. You can do it manually by going into each addon's top-level directory and doing `node-gyp --debug rebuild` (you might want/need to `np

[nodejs] Segmentation fault - how to diagnose?

2012-11-07 Thread Graeme Foster
Hi all I'm using node 0.8.14 and I've got a test suite that results in a segmentation fault on both OSX and whatever Travis is building on. I thought I'd be clever and use gdb to get a stack trace but here's what I got: (gdb) set args ./node_modules/mocha/bin/mocha (gdb) run Starting program:

[nodejs] Re: testing mongoose validation with vows

2012-11-07 Thread Alberto Gori
Il giorno mercoledì 7 novembre 2012 21:11:49 UTC+1, Alberto Gori ha scritto: > > I discovered that Vows has a not documented feature that completely solves > this problem: > > vows.describe('... > > }).export(module, { error: false }); > > {error: false} is the answer! > -- Job Board: http://j

[nodejs] Re: testing mongoose validation with vows

2012-11-07 Thread Alberto Gori
I discovered that Vows has a not documented feature that completely solves this problem: vows.describe('... }).export(module, { error: false }); {error: false} is the answer! -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Gu

Re: [nodejs] [ANN] node-avro 0.2: Avro support for Node.js

2012-11-07 Thread Jacob Groundwater
Since we're on this topic, what is the general state of Avro/Thrift/Protobufs. Are many people using them in production? I know Thrift is supposed to have native support, but the generated code is much less complete than the Java version. Protobufs seem to have a dynamic library that more or less p

Re: [nodejs] Re: PaaS that allows node.js to use non-http ports?

2012-11-07 Thread Matt
The problem these PaaS providers face is that http (and even https with SNI) allow you to route incoming requests by hostname on a single IP address. Other TCP services (generally) do not allow this, forcing the provider to give you a unique IP address. This is relatively straightforward for someo

[nodejs] Re: PaaS that allows node.js to use non-http ports?

2012-11-07 Thread Evan
I've been looking for a PaaS provider with the same requirements as well, and haven't had much luck. I've tried appFog, Heroku, no.de (when it existed), and Nodejitsu and they all limit you to 1 (randomly assigned) http/s port. However, it's very easy to get node running on a vanilla Joyent or

[nodejs] [ANN] node-avro 0.2: Avro support for Node.js

2012-11-07 Thread Manuel Simoni
Hi everybody, I'm releasing the first stable version of node-avro under the MIT license: https://github.com/collectivemedia/node-avro Best regards, Manuel Simoni -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You re

Re: [nodejs] Looking for a Talented Web Designer!

2012-11-07 Thread Hakan Guzelgoz
Oups! Didn't know about it - sorry! Won't do it again. Thanks, Hakan. On Wed, Nov 7, 2012 at 5:32 PM, Ben Noordhuis wrote: > On Wed, Nov 7, 2012 at 4:22 PM, Hakan Guzelgoz > wrote: > > Hi, > > > > I know that this group is not the appropriate place to post this, but I > > thought some of you m

Re: [nodejs] Looking for a Talented Web Designer!

2012-11-07 Thread Ben Noordhuis
On Wed, Nov 7, 2012 at 4:22 PM, Hakan Guzelgoz wrote: > Hi, > > I know that this group is not the appropriate place to post this, but I > thought some of you may be interested - or you may forward this to someone > else. This is a friendly reminder that the mailing list is not for recruitment.

[nodejs] Looking for a Talented Web Designer!

2012-11-07 Thread Hakan Guzelgoz
Hi, I know that this group is not the appropriate place to post this, but I thought some of you may be interested - or you may forward this to someone else. I am looking for a *talented web designer* (pro of css, HTML5, design and ideally with some JS) that could help for our new web project. T

Re: [nodejs] Test for performance issues caused by GC

2012-11-07 Thread Vyacheslav Egorov
You are using object representation that is not really GC friendly. Split you array into pieces (build B-tree like data structure) and you will see GC pauses that are smaller by orders of magnitude. Vyacheslav Egorov On Wed, Nov 7, 2012 at 2:35 AM, darcy wrote: > > I've did a test for performan

[nodejs] Düsseldorf, Germany: Talk on MongoDB and Node.js at the MongoDB user group Düsseldorf on Dec 13th

2012-11-07 Thread Tobias Trelle
Hi, I'm the host of the MongoDB user group in Düsseldorf Germany. MongoDB is a document-orientated NoSQL datastore. Our next meetup will feature a talk on *MongoDB and Node.js* If you are from the Düsseldorf area, feel free to show up. The event is here: https://www.xing.com/events/4-treffen-

Re: [nodejs] nodejs in the netherlands

2012-11-07 Thread Stéphan Kochen
Antoine, Angry Bytes builds second screen implementations that are powered by Node.js. There's a good chance you've already seen one in action, if you're in the Netherlands! We have an ever growing list of cases you can see at: http://two-screen.tv/cases/ Regards, -- Stéphan Kochen Two Screen,

[nodejs] nodejs socket pooling on localhost

2012-11-07 Thread Greg Corrigan
I've been going nuts trying to get my socket connections under control. Unlike most posts, where people are hitting the maxSockets limit and need to free it up, I have code connecting to a localhost server (couchdb) using http. It appears that socket pooling is ignored, as well as maxSockets, w

[nodejs] Re: Simple LightWeight OOP. 100% compatibility with JavaScript. Feedback please!

2012-11-07 Thread Alexey Petrushin
> If i have to establish is-a relation, i'd rather do this via simple property than prototypes. Exactly, I keept the sample small and ignore that part, if You need it You can use this Model = function(){} Validatable = function(klass){ // do all needed extensions ... klass.p

[nodejs] IPC with childprocess,fork -ed with callbacks.

2012-11-07 Thread Denys Khanzhiyev
I need a general solution to make calls to child as following child.send(message,function(error, data){ }); and in the child parent.on('message',function(message,callback){ ... callback(err,data); }); I know I can do it myself by defining my own message wraper with UID and putting them in

[nodejs] Test for performance issues caused by GC

2012-11-07 Thread darcy
I've did a test for performance issues caused by GC and memory consumption. My test run on linux, node v0.8.5 the code: var obj_num = 500; var fill = {} > > for (var i = obj_num; i >= 0; i--) { > > fill["fill string***" + i] = "fill string" + i; > > }; > > setInterval(fu

Re: [nodejs] nodejs in the netherlands

2012-11-07 Thread Arnout Kazemier
One of the biggest examples would be Cloud9. I know that Hotels.nl also use(s/d) Node.js as I implemented it there and there are a couple more booking agencies there that use Node. And If I remember correctly, there are also some TV channels and radio stations that use Node.js On Wednesday 7 N

[nodejs] nodejs in the netherlands

2012-11-07 Thread Antoine van Wel
Hi all, Does anybody know if there are any companies in the Netherlands where Nodejs has been adopted? Got the impression most companies over here haven't even heard about RoR yet, let alone Node. Antoine -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/no