[nodejs] Re: streams or emitter

2012-09-26 Thread Austin William Wright
On Wednesday, September 26, 2012 11:22:45 PM UTC-7, Julian Gruber wrote: > > Or is there another way of dealing with 'two-way-streams'. This should be > a common pattern in realtime applications! > I believe in computer science this is called a double-ended queue

[nodejs] Re: Can't connect to MongoDB via NodeJS, what's going on?

2012-09-26 Thread Thijs Koerselman
Second installation of Ubuntu went without problems. I still have not idea what might be causing this on that particular machine, but I'll leave it for now. On Wed, Sep 26, 2012 at 6:36 PM, Thijs Koerselman wrote: > Hi, > > I have mongodb installed locally on my osx laptop and on a remote ubuntu

[nodejs] streams or emitter

2012-09-26 Thread Julian Gruber
I have the following use case: I want to display a list of entries that both gets new entries pushed to - inserted at top - and historical ones appended at the bottom, if you click 'show more'. now what's the cleanest way of doing this? (although this is in a browser environment, I use streams

[nodejs] Domains and GC

2012-09-26 Thread Evan
A rather esoteric question: Say I was following the example under "explicit binding" described in the domain api page [[ http://nodejs.org/api/domain.html ]]. This is a great real-world-ish example which shows how you might use domains in an HTTP server to catch connection-specific errors and

Re: [nodejs] Re: Question about node v0.8.9, client certificates, and websockets....

2012-09-26 Thread James Coglan
On 27 September 2012 04:28, Manny Figudore wrote: > So after much debugging, giving up, then trying with the Faye package for > node - I have a working example. I had to mod Faye to get tls.connect the > certs but it does work with rejectUnauthorized:true. I maintain Faye, can you show me what y

[nodejs] Re: Question about node v0.8.9, client certificates, and websockets....

2012-09-26 Thread Manny Figudore
So after much debugging, giving up, then trying with the Faye package for node - I have a working example. I had to mod Faye to get tls.connect the certs but it does work with rejectUnauthorized:true. On Wednesday, September 26, 2012 12:43:02 PM UTC-4, Manny Figudore wrote: > > All, > > I was pl

[nodejs] node-static get cache from cached folder

2012-09-26 Thread thuan le minh
I am trying to use node-static module as a middleware for my http-proxy server is there solutions for getting data from cached folder ? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message becaus

Re: [nodejs] Re: Seeing stability issues with nodejs 0.8.x on Linux

2012-09-26 Thread Murvin Lai
Do you run any fs.stat()? there is a report from Node.js on Facebook today sayng there is a problem. And v0.8.11 will be released tomorrow. remote services.. you have to make sure you have large open file (ulimit) available. However, based on your description about only 2-3 req/sec, that shouldn

Re: [nodejs] Which NodeJS Conference is best attended?

2012-09-26 Thread Nuno Job
Feel free to follow LXJS (lxjs.org) this weekend, the talks will be streamed live :) Nuno On Thu, Sep 27, 2012 at 12:05 AM, Nathan Rajlich wrote: > I'd say NodeConf was a blast :) http://www.nodeconf.com/ > > > On Wed, Sep 26, 2012 at 2:56 PM, Jim Alateras wrote: > >> Just wondering whether the

Re: [nodejs] Which NodeJS Conference is best attended?

2012-09-26 Thread Nathan Rajlich
I'd say NodeConf was a blast :) http://www.nodeconf.com/ On Wed, Sep 26, 2012 at 2:56 PM, Jim Alateras wrote: > Just wondering whether there was a conference dedicated to NodeJS and if > so, which is the most popular. > > > cheers > > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelin

[nodejs] Which NodeJS Conference is best attended?

2012-09-26 Thread Jim Alateras
Just wondering whether there was a conference dedicated to NodeJS and if so, which is the most popular. cheers -- 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

[nodejs] Re: node-canvas ico support?

2012-09-26 Thread nop
My bad- IE's canvas handles ico perfectly well. I am quick to judge IE and careless when it comes to configuring my own server's MIME types. ;) For the record, Safari's canvas (desktop and iOS) supports ico, too. toDataURL() is entirely broken on Android 2.2 (the only Android version I can test at

Re: [nodejs] Re: NodeJs e-commerce solution?

2012-09-26 Thread John Fitzgerald
Great implementation - it's very snappy compared to Magento, especially in basket during checkout actions. I was going to suggest similar to what you I think you're doing, a boring relational database fronted by nosql. -John On Wed, Sep 26, 2012 at 2:19 PM, Vinayak Mishra wrote: > I feel no s

Re: [nodejs] Re: NodeJs e-commerce solution?

2012-09-26 Thread Vinayak Mishra
I feel no shame at admitting we are no good at creating eye-catching designs, hence no fancy stuff, just a simple design and straight to the point. We had to do away with magento system because it wasn't good at handling a lot of load. We also had to come up with a in-house solution and were pr

Re: [nodejs] Re: NodeJs e-commerce solution?

2012-09-26 Thread Alexey Petrushin
> that scale to millions of operations per second He-he, I believe, if Your e-commerce solution will have such load - You may easily hire as many developers and do as many databases, simultaneously as You wish :) > We at Urbantouch (www.urbantouch.com), an Indian e-commerce startup, Nice

[nodejs] Re: port a node addon from node-waf to node-gyp

2012-09-26 Thread mscdex
On Sep 26, 3:11 pm, NodeNinja wrote: > libgmp.so.10 => /usr/lib/libgmp.so.10 (0xb7722000) This means it is dynamically linking to libgmp. So you should be good to go. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines Y

[nodejs] Re: port a node addon from node-waf to node-gyp

2012-09-26 Thread NodeNinja
On Thursday, September 27, 2012 12:11:08 AM UTC+5:30, mscdex wrote: > > > Yes it should be dynamically linked now. You can double check by doing > `ldd /path/to/binding.node`. > I think you meant `ldd /path/to/bigint.node`. and it prints out: linux-gate.so.1 (0xb779f000) libgmp.so.10 => /usr

Re: [nodejs] Re: Windows - USB Install - Modules

2012-09-26 Thread Gustavo Machado
Hi Glenn, neither of those two links seem to be working for me. gus On Wed, Sep 26, 2012 at 5:43 AM, Glenn Block wrote: > All you should need to do is run npm ahead of time and then copy the app > including the node_modules folder. > > Crate (https://gitcafe.com/hujs/) is a new project that we

Re: [nodejs] Re: SNI with Internet Explorer 9

2012-09-26 Thread Gustavo Machado
Well... it must be one with the worst support for SNI, however if you add TLS 1.2 to the mix, everything will work perfectly: [x] SSL v2 [x] SSL v3 [x] TLS 1.0 [x] TLS 1.1 [x] TLS 1.2 <-- checked it works. unchecked it doesn't work (although it should) I have tried to access some apps hosted in n

[nodejs] Re: port a node addon from node-waf to node-gyp

2012-09-26 Thread mscdex
On Sep 26, 12:54 pm, NodeNinja wrote: > Is libgmp being dynamically linked to bigint or am I messing up somewhere > else? Yes it should be dynamically linked now. You can double check by doing `ldd /path/to/binding.node`. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github

Re: [nodejs] Version 0.8.10 (Stable)

2012-09-26 Thread Isaac Schlueter
If you're not in the habit of reading the size of very large files using fs.stat, it's not such a big deal, though. v0.8.11 will go out tomorrow. On Wed, Sep 26, 2012 at 5:12 AM, Ben Noordhuis wrote: > On Wed, Sep 26, 2012 at 12:46 PM, Joran Greef wrote: >> Thanks Ben, could you provide more d

Re: [nodejs] Re: SNI with Internet Explorer 9

2012-09-26 Thread Fedor Indutny
I think IE is the only one browser that doesn't support SNI at all. On Wed, Sep 26, 2012 at 9:36 PM, Gustavo Machado wrote: > Sorry, here's the code to reproduce the problem: > > https://gist.github.com/3789357 > > Gus > > On Wed, Sep 26, 2012 at 2:30 PM, Gustavo Machado wrote: > >> Hi guys, >>

Re: [nodejs] Re: NodeJs e-commerce solution?

2012-09-26 Thread Vinayak Mishra
Dear all, We at Urbantouch (www.urbantouch.com), an Indian e-commerce startup, have built a tailor-made node.js e-commerce platform/frontend/crm, logistics backend. It's been 6 months we ditched magento platform for the home-grown node.js setup, needless to say we're delighted with the perfo

[nodejs] Re: node-canvas ico support?

2012-09-26 Thread nop
Hi Ryan. Thanks for the tip. I'd been playing with canvas in Firefox and Chrome to manipulate ico images so it hadn't crossed my mind that the format wasn't universally supported. I'm sure you're right, though; a quick test reveals Internet Explorer doesn't like the format, either, and I can't find

[nodejs] Re: SNI with Internet Explorer 9

2012-09-26 Thread Gustavo Machado
Sorry, here's the code to reproduce the problem: https://gist.github.com/3789357 Gus On Wed, Sep 26, 2012 at 2:30 PM, Gustavo Machado wrote: > Hi guys, > > I have a rather strange problem when trying to use node.js with HTTPS and > SNI. In order to reproduce the error, you would have to open in

[nodejs] SNI with Internet Explorer 9

2012-09-26 Thread Gustavo Machado
Hi guys, I have a rather strange problem when trying to use node.js with HTTPS and SNI. In order to reproduce the error, you would have to open internet options in IE 9, and check: SSL v2 SSL v3 TLS 1.0 TLS 1.1 (do not check TLS 1.2) And verify that the SNICallback is not being called: SNICallb

Re: [nodejs] Re: NodeJs e-commerce solution?

2012-09-26 Thread shawn wilson
since i've seen it brought up twice, iirc mongo has an option to save direct to disk to allow for power failure and such. however, since there are hadoop, mongo, couch, redis, and dozens of lucene based solutions, maybe a payment system should be more db agnostic unless you want to alienate people?

Re: [nodejs] port a node addon from node-waf to node-gyp

2012-09-26 Thread NodeNinja
> > > 'libraries': ['-lgmp'] should do it. > That seems to work out my updated binding.gyp is as under { "targets": [ { "target_name": "bigint", "sources": [ "bigint.cc" ], "libraries": ["-lgmp"] } ] } However when I check the size of the final compiled "bigint.node" fi

[nodejs] Question about node v0.8.9, client certificates, and websockets....

2012-09-26 Thread Manny Figudore
All, I was playing with Node's ability to do client certification verification on https requests and this seems to work great. However, if I try to use ws, websocket, or socket.io/socket.io client (had to hack in a mod to pass the certificates in the client) and enable "rejectUnauthorized: true

Re: [nodejs] node-canvas ico support?

2012-09-26 Thread Ryan Schmidt
On Sep 26, 2012, at 10:44, nop wrote: > Hi. I'd like to use node-canvas to manipulate ico-format images. I > couldn't find any mention of supported formats in the readme, but from > my tests it seems either ico are not among them or there's an issue > with my environment. Would someone knowledge

[nodejs] Can't connect to MongoDB via NodeJS, what's going on?

2012-09-26 Thread Thijs Koerselman
Hi, I have mongodb installed locally on my osx laptop and on a remote ubuntu server. Both have mongodb running and I can verify this using the http diagnostics on port 28017. I'm running the same code on both computers. On osx everything works fine, but on Ubuntu I can't make a connection to the d

Re: [nodejs] port a node addon from node-waf to node-gyp

2012-09-26 Thread Ben Noordhuis
On Wed, Sep 26, 2012 at 6:01 PM, NodeNinja wrote: > I am trying to build this https://github.com/substack/node-bigint module on > linux > I was previously built with node-waf but I am trying to build it with > node-gyp to use in on the most recent versions of node. > > I have a bindings.gyp file

[nodejs] port a node addon from node-waf to node-gyp

2012-09-26 Thread NodeNinja
I am trying to build this https://github.com/substack/node-bigint module on linux I was previously built with node-waf but I am trying to build it with node-gyp to use in on the most recent versions of node. I have a bindings.gyp file as under. { "targets": [ { "target_name": "bigint", "

[nodejs] node-canvas ico support?

2012-09-26 Thread nop
Hi. I'd like to use node-canvas to manipulate ico-format images. I couldn't find any mention of supported formats in the readme, but from my tests it seems either ico are not among them or there's an issue with my environment. Would someone knowledgeable in the matter please let me know if ico supp

Re: [nodejs] Re: NodeJs e-commerce solution?

2012-09-26 Thread Adam Reynolds
E-commerce is a very odd beast. Your choice, but tbh I'd be moving towards MySQL/Postgre/etc etc. Boringly solid DBs with years of proven experience and the tool set in place to let you just get on with delivering a decent front-end experience. On Wed, Sep 26, 2012 at 4:12 PM, Moritz Beller wro

Re: [nodejs] Re: NodeJs e-commerce solution?

2012-09-26 Thread Moritz Beller
What about VoltDB ? http://voltdb.com/ > "*[...]that scale to millions of operations per second while providing > full support for ACID transactions."* Am Mittwoch, 26. September 2012 16:43:09 UTC+2 schrieb Adam Reynolds: > > You need an ACID compliant DB back end for e-commerce. As far as I

[nodejs] template asset management

2012-09-26 Thread shawn wilson
i'm curious if anyone has a management system for compiled templates? if i have to write it, what i'm thinking is using handlebars as client side templating, nconf to write checksums of the compiled templates and plates to integrate the compiled template strings into the page server side (so i don

Re: [nodejs] Re: NodeJs e-commerce solution?

2012-09-26 Thread Adam Reynolds
You need an ACID compliant DB back end for e-commerce. As far as I am aware MongoDB is not to be used for e-commerce. Use the right tool for the right job :) On Wed, Sep 26, 2012 at 3:33 PM, Moritz Beller wrote: > katana looks great; im familiar w/ express, but nvm. Im also interested.. > anyon

[nodejs] Re: NodeJs e-commerce solution?

2012-09-26 Thread Moritz Beller
katana looks great; im familiar w/ express, but nvm. Im also interested.. anyone wants to grab the scepter and lead us the way? : Am Donnerstag, 10. Mai 2012 20:55:51 UTC+2 schrieb guzelgoz: > > Hi all, > > I've been searching and searching but couldn't find any project/open > source node

Re: [nodejs] "Evil OS X"... the perfect client to a node server!

2012-09-26 Thread Rick Waldron
Reply inline... On Wednesday, September 26, 2012 at 8:33 AM, Dennis Kane wrote: > Have I ever seen a bunch of google links that talk a lot of smack, but that > don't really deliver anything of substance? Why, yes I have, hahaha :D! > > I shared it because I thought you'd find it interesting

Re: [nodejs] "Evil OS X"... the perfect client to a node server!

2012-09-26 Thread Dennis Kane
Have I ever seen a bunch of google links that talk a lot of smack, but that don't really deliver anything of substance? Why, yes I have, hahaha :D! Seriously, though, I know there have been quite a few attempts over the years to do things like this in our browsers, but the technology has only

Re: [nodejs] Version 0.8.10 (Stable)

2012-09-26 Thread Ben Noordhuis
On Wed, Sep 26, 2012 at 12:46 PM, Joran Greef wrote: > Thanks Ben, could you provide more detail as to the regression in fs.stat() > file size reporting? The stat() and fstat() functions report wrong file sizes for files > 1 GB on 32 bits systems and > 2 GB on 64 bits systems. -- Job Board: htt

[nodejs] Raspberry Pi I/O using node

2012-09-26 Thread paul_tanner
I see that https://github.com/rakeshpai implements RPi GPIO for node which is a great start. I'm looking for implementations (even if incomplete) of I2C and SPI for node on pi Implementations in C++ are available but I don't know how to go about creating node wrappers for these. Any suggestions

Re: [nodejs] Version 0.8.10 (Stable)

2012-09-26 Thread Joran Greef
Thanks Ben, could you provide more detail as to the regression in fs.stat() file size reporting? I use it as part of an append-only storage system, and any problems with it would be critical. The system would think it needs to repair and truncate the append-only files. On Wednesday, September

Re: [nodejs] Re: Windows - USB Install - Modules

2012-09-26 Thread Glenn Block
All you should need to do is run npm ahead of time and then copy the app including the node_modules folder. Crate (https://gitcafe.com/hujs/) is a new project that we (Tim Caswell, Jason Denizac and myself) worked on at hujs (http://hujs.org) which creates a self-executing node app package. It's

Re: [nodejs] nodejs Server.js on Azure

2012-09-26 Thread Glenn Block
Sorry for the delayed response It depends on where you are deploying. In Windows Azure websites we default to app.js or server.js. In web/worker roles our scaffolding defaults to server.js. You can override the startup file if you want to using iisnode.yml. On Wed, Aug 22, 2012 at 12:41 AM,

Re: [nodejs] windows native extensions

2012-09-26 Thread Glenn Block
node-fibers uses an install scriptwhich is set in package.json / run by npm and which will only builds the binaries IF they are not already present in the bin folders or if a force flag is passed. It supports both X86 and X64 versions. I