Re: [nodejs] Desktop apps with Node.js

2012-06-22 Thread Morteza Milani
Currently we're developing on the 'cef' branch. Once it's stable we'll switch it to master. How much work does it need to get stable Roger? Do you still change libuv and node to merge CEF's V8 with node's V8? If you don't change node, I will be able to use your modified CEF with AppJS. --

Re: [nodejs] Re: Reading a unsigned 64bit integer from a buffer.

2012-06-22 Thread Ben Short
Nathan, ref.endianness reports LE. I upgraded to v 0.0.18 and the code works as expected. Many thanks Ben On 21 June 2012 23:12, Nathan Rajlich nat...@tootallnate.net wrote: Ok Ben, try out v0.0.18 of ref. It adds the non-native-endianness version of those read/write functions as well.

Re: [nodejs] Re: API changes from 0.6 to 0.8

2012-06-22 Thread Diogo Resende
The goal is to have a module compatible with both 0.6 and 0.8, not one for each version. -- Diogo Resende On Friday, June 22, 2012 at 2:37 , Dominic Tarr wrote: you can set what version of node a module is for in the package.json engines: { node : 0.6 } for example. this does mean

[nodejs] forever and cpu usage

2012-06-22 Thread Angelo Chen
Hi, I run my node with forever, it works quite well, got two questions: 1) at any given time, there are two node running, that's normal? 3) cpu sometimes goes up to 90-100% when the traffic is high, then goes back to less than 10 quickly, is this normal? is there a way to check which part goes so

[nodejs] Re: Sticky sessions using the new cluster API?

2012-06-22 Thread Dashku
Hi, I'm trying to work on this problem. I have an npm that extends node-http-proxy to provide round-robin and sticky-sessions support, I built an option to use Redis as the persistent memory store so that you could use cluster, but there's a bug somewhere so I might need help fixing that. The

Re: [nodejs] Unable to compile node v0.8 RC7 on ARM (Beaglebone)

2012-06-22 Thread Ben Noordhuis
On Fri, Jun 22, 2012 at 3:39 PM, Ewan Leith ewan.le...@gmail.com wrote: Hi all, I'm trying to compile node v0.8 rc7 on my beaglebone, and the configure script it falling over. It does work fine on the 0.6 branch. Has anyone built node v0.8 or v0.7 on ARM? Running configure (with or without

Re: [nodejs] Unable to compile node v0.8 RC7 on ARM (Beaglebone)

2012-06-22 Thread Ewan Leith
Thanks Ben, I added armv7 then it started complaining about arm_neon, so I've added that too, to deps/v8/build/common.gypi I've added these 2 lines at the top, just inside the variables section: 'armv7%':'1', 'arm_neon%':'1', configure completes now, so I'll try a straight make without

Re: [nodejs] Unable to compile node v0.8 RC7 on ARM (Beaglebone)

2012-06-22 Thread Tim Caswell
Also, I've recently noticed that archlinux ARM has nodejs in their repository. It's usually quite up to date. They support many arm devices including the beaglebone and the raspberry pi. Even if you don't want to switch to archlinux or just want a newer node than the one they are packaging,

[nodejs] Re: Sticky sessions using the new cluster API?

2012-06-22 Thread Bradley Meck
There are a couple ways to do this. 1. Use a session store that is transactional and shared (redis etc.) and store where a session should be forwarded to. 2. Use a hashing method that will consistently point to the same location/worker for the same session (session could be ip/user/etc.), if

Re: [nodejs] Unable to compile node v0.8 RC7 on ARM (Beaglebone)

2012-06-22 Thread Ewan Leith
The compile completes with those 2 additional lines to deps/v8/build/common.gypi but running make test raises various errors like [00:44|% 7|+ 27|- 4]: release test-tls-npn-server-client*** glibc detected *** out/Release/node: free(): invalid pointer: 0x00717308 *** so I'll take a look

[nodejs] process.env.hasOwnProperty

2012-06-22 Thread Martin Thomson
process.env instanceof Object === true typeof process.env.hasOwnProperty === undefined Bug? -- 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

Re: [nodejs] process.env.hasOwnProperty

2012-06-22 Thread Ben Noordhuis
On Fri, Jun 22, 2012 at 6:04 PM, Martin Thomson martin.thom...@gmail.com wrote: process.env instanceof Object === true typeof process.env.hasOwnProperty === undefined Bug? `process.env` is not a real JS object. it's a stub for a chunk of C++ code. But by all means file an issue if you feel

Re: [nodejs] process.env.hasOwnProperty

2012-06-22 Thread Bert Belder
On Friday, June 22, 2012 6:27:49 PM UTC+2, Ben Noordhuis wrote: `process.env` is not a real JS object. it's a stub for a chunk of C++ code. But by all means file an issue if you feel strongly about this, we can probably fix it. I don't agree. People shouldn't rely on prototype methods

Re: [nodejs] Re: Closures versus Prototypes for Flow Control

2012-06-22 Thread Alan Gutierrez
On 6/21/12 7:30 AM, Mariusz Nowak wrote: Alan, we use asynchronous programming for tasks that take time, so in that case, whether we wrap such tasks with closure or prototype solution wouldn't make difference in performance. I think debating on performance in that case is pointless. I believe

Re: [nodejs] Re: Closures versus Prototypes for Flow Control

2012-06-22 Thread Alan Gutierrez
On Fri, Jun 22, 2012 at 04:21:00AM +1200, Dominic Tarr wrote: also, this is control flow, not flow control. This near collision in nomenclature is most unfortunate, but control flow refers to the transference of control from one phase to the next. (this is the case you are discussing) flow

[nodejs] Re: Unable to compile node v0.8 RC7 on ARM (Beaglebone)

2012-06-22 Thread Jeroen Janssen
Hi, I'm going to try building node master on my Synology 211j again (Feroceon 88FR131 rev 1 (v5l)) I remember from past experience that I had to patch SConstruct to pass -march=armv5t and have armeabi to soft (default was softfp). It seems now (maybe back then aswell) you I can actually pass

[nodejs] Mongoosastic 0.0.5 Released

2012-06-22 Thread James Carr
Hey All, Just wanted to announce that 0.0.5 of mongoosastic ( http://jamescarr.github.com/mongoosastic/) has been released. This release adds the ability to add per field options to mongoose models that get applied to the mapping in elasticsearch (such as boost, null_value, etc). As always pull

[nodejs] Node and developing on multiple machines

2012-06-22 Thread Ralphtheninja (Magnus Skog)
Hi, It's very common that I use several machines while developing and those machines might also be in different locations. I have two machines at home and two machines at my moms etc. There might be more machines in the future. My problem is this. No matter where I am, I just want to sit down

Re: [nodejs] Node and developing on multiple machines

2012-06-22 Thread Elijah Insua
dropbox On Fri, Jun 22, 2012 at 2:52 PM, Ralphtheninja (Magnus Skog) lars.magnus.s...@gmail.com wrote: Hi, It's very common that I use several machines while developing and those machines might also be in different locations. I have two machines at home and two machines at my moms etc.

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) lars.magnus.s...@gmail.com

Re: [nodejs] Node and developing on multiple machines

2012-06-22 Thread Mark Hahn
For what it's worth, I have my only development environment on one server and I just remote into it from all the others. I literally see the same exact environment everywhere. On Fri, Jun 22, 2012 at 3:00 PM, Elijah Insua tmp...@gmail.com wrote: dropbox On Fri, Jun 22, 2012 at 2:52 PM,

[nodejs] Re: forever and cpu usage

2012-06-22 Thread Radhames Brito
El viernes, 22 de junio de 2012 08:54:17 UTC-4, Angelo Chen escribió: Hi, I run my node with forever, it works quite well, got two questions: 1) at any given time, there are two node running, that's normal? forever run in one instance of node.js your app runs in another. -- Job

[nodejs] Should i use node?

2012-06-22 Thread Radhames Brito
I have a medium size application in Rails that is consuming lot of resources because it has to communicate with a SOAP web service, every time the application accesses the service is the processing of the request stops so i have to have start many instances to make the app respond quickly to the

Re: [nodejs] Node and developing on multiple machines

2012-06-22 Thread John Fitzgerald
I do the same as Mark, a few cloud servers that I remote into for development. I'm often jumping between a mix of several Win7/Centos/Ubuntu machines - to do remote development I use the following scenarios: 1. On either, ssh with console vim. 2. On linux, I'll do a fuse ssh filesystem mount and

Re: [nodejs] process.env.hasOwnProperty

2012-06-22 Thread Ben Noordhuis
On Fri, Jun 22, 2012 at 7:22 PM, Bert Belder bertbel...@gmail.com wrote: On Friday, June 22, 2012 6:27:49 PM UTC+2, Ben Noordhuis wrote: `process.env` is not a real JS object. it's a stub for a chunk of C++ code. But by all means file an issue if you feel strongly about this, we can

Re: [nodejs] Should i use node?

2012-06-22 Thread Mark Hahn
Node sounds like a fit to me. Why do you have workers? Doesn't rails automatically use threads/processes to allow multiple things to happen at once? (I know nothing about how a rails server works). On Fri, Jun 22, 2012 at 12:32 PM, Radhames Brito rbri...@techpark.com.dowrote: I have a medium

Re: [nodejs] NODE_PATH deprecated?

2012-06-22 Thread Isaac Schlueter
On Tue, Jun 19, 2012 at 1:06 PM, Oliver Leics oliver.le...@gmail.com wrote: The PLUS is now a MINUS as it came out that it is _not_ the missing NODE_PATH env var that makes the installation of dtrace-provider fail on a LinuxDebian box. No, my guess is that it's the lack of DTrace on Linux that

Re: [nodejs] process.env.hasOwnProperty

2012-06-22 Thread Mikeal Rogers
process.env should be a real js object, or at least act like one. if we have to i'd say we make process.env a getter and build a real js object from the C++ stub that is currently there. people should not be expected to know or distinguish between normal js objects and crazy things from C++.

Re: [nodejs] NODE_PATH deprecated?

2012-06-22 Thread Oliver Leics
On Sat, Jun 23, 2012 at 2:00 AM, Isaac Schlueter i...@izs.me wrote: On Tue, Jun 19, 2012 at 1:06 PM, Oliver Leics oliver.le...@gmail.com wrote: The PLUS is now a MINUS as it came out that it is _not_ the missing NODE_PATH env var that makes the installation of dtrace-provider fail on a

Re: [nodejs] forever and cpu usage

2012-06-22 Thread Oliver Leics
On Fri, Jun 22, 2012 at 2:54 PM, Angelo Chen angelochen...@gmail.com wrote: 1) at any given time, there are two node running, that's normal? forever spawns a new process and that is your node monitored by forever. So, yes, this is absolutely normal. On the other hand, _only_ two nodes-processes

[nodejs] Node 0.1.1 to 0.8.0

2012-06-22 Thread Tim Dickinson
So i was just looking at the source of node https://github.com/joyent/node/tree/v0.1.1 and I'm just amazed at how far it has come in the past few years. The days of res.sendBody and res.finish are far memory to some and unknown to others. I don't know where i would be with out node. I love it

[nodejs] Re: Node and developing on multiple machines

2012-06-22 Thread Tim Dickinson
Look at cloud9, its all web based. On Friday, June 22, 2012 5:52:25 PM UTC-4, Ralphtheninja (Magnus Skog) wrote: Hi, It's very common that I use several machines while developing and those machines might also be in different locations. I have two machines at home and two machines at my

[nodejs] Re: Should i use node?

2012-06-22 Thread Radhames Brito
On 22 jun, 19:58, Mark Hahn m...@hahnca.com wrote: Node sounds like a fit to me. Why do you have workers?  Doesn't rails automatically use threads/processes to allow multiple things to happen at once?  (I know nothing about how a rails server works). On the contrary, Ryan used rails as an

[nodejs] Re: Should i use node?

2012-06-22 Thread Radhames Brito
On 22 jun, 20:04, Ben Noordhuis i...@bnoordhuis.nl wrote: On Fri, Jun 22, 2012 at 9:32 PM, Radhames Brito rbri...@techpark.com.do wrote: I have a medium size application in Rails that is consuming lot of resources because it has to communicate with a SOAP web service, every time the

Re: [nodejs] process.env.hasOwnProperty

2012-06-22 Thread gjohnson
Object.create(null) ? :-) On Friday, June 22, 2012 8:02:47 PM UTC-4, Isaac Schlueter wrote: I somewhat agree with Bert here. On the other hand, we just outright block querystrings from having keys named hasOwnProperty, __defineGetter__, etc., and I believe we may do the same for http

Re: [nodejs] Re: Should i use node?

2012-06-22 Thread Martin Wawrusch
Well, node.js is a bit like the Wild West, before the railroads where built, and in my book this is a very good thing. Projects get traction or they don't, based on what people like or dislike. No big hand watching over us forcing us into doing it in a certain way. Or, more like Shadows and less