[nodejs] BeagleBone with node.js - getting started.

2012-05-09 Thread paul_tanner
Hi, Just got my beaglebone from farnell and hoping to start work with nodejs on it. It shipped with v0.4.12 and the Cloud9 IDE. On running the standard hello world script it thows errors to the effect that npm modules inotify and fibers were not installed. Presumably these are required by the

[nodejs] Re: tool for ending JS style debates

2012-05-09 Thread Oleg Slobodskoi
You are right, but this is our destiny with javascript. great power comes with great responsibility haha. We just should to learn 2-3 different styles and use the one of the library. If the library isn't using one of the popular styles, don't use it and bitch the author. Best, Oleg

[nodejs] Re: tool for ending JS style debates

2012-05-09 Thread framlin
Getting uglify.js holding the comments was only a small patch with a view lines of code-change. The comments are in the AST, but are not processed, because to minify the code, comments are waste Wolfgang -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] Re: Hosting NodeJs How?

2012-05-09 Thread framlin
+1 for nodejitsu -- 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 to nodejs@googlegroups.com To

Re: [nodejs] Hosting NodeJs How?

2012-05-09 Thread Dick Hardt
I found it really easy to get up and running on DotCloud. Free dev accounts. On May 9, 2012, at 4:39 AM, Alan Hoffmeister wrote: EC2 + 1 It's good for learning :) -- Att, Alan Hoffmeister 2012/5/9 framlin framlin...@googlemail.com: +1 for nodejitsu -- Job Board:

[nodejs] How to find the node memory leak

2012-05-09 Thread Jackson Tian
What tools or way you used in your development. -- 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] Re: Generating a Viable Initialization Vector for crypto.Cipher

2012-05-09 Thread Matt
Here's the bug to track this issue: https://github.com/joyent/node/issues/1393 On Tue, May 8, 2012 at 8:22 PM, mscdex msc...@gmail.com wrote: On May 8, 8:14 pm, Matt Patenaude m...@mattpatenaude.com wrote: However, the problem I see with this is that the 'binary' encoding of buffers is

[nodejs] Re: How to make a high quality chat server?

2012-05-09 Thread Christian Etuy
Perhaps you should take a look on nowjs (NowJS makes realtime web apps really easy by making the server and client act like one program) if you look how they build their solution you would get ideas for you ? http://nowjs.com/ http://nowjs.com/ chris Le dimanche 6 mai 2012 13:04:30 UTC+2,

Re: [nodejs] BeagleBone with node.js - getting started.

2012-05-09 Thread Ben Noordhuis
On Wed, May 9, 2012 at 11:52 AM, paul_tanner p...@virtual-techno.com wrote: Hi, Just got my beaglebone from farnell and hoping to start work with nodejs on it. It shipped with v0.4.12 and the Cloud9 IDE. On running the standard hello world script it thows errors to the effect that npm

Re: [nodejs] BeagleBone with node.js - getting started.

2012-05-09 Thread Paul Tanner
Hi Ben, Thx. Actually I get these errors with any node file I try to run. I can run simple stuff like hello world server from the bone's linux command line. The errors only happen when I try to run from cloud9. Additionally, I have now tried to load other node modules so I can do more

Re: [nodejs] Hosting NodeJs How?

2012-05-09 Thread 梁辰晔
I'm using openshift now. Not public my app, so, donnot know if it was stable for lots of request. 2012/5/3 rajesh rkjha.it...@gmail.com How can any one host nodejs ? -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] BeagleBone with node.js - getting started.

2012-05-09 Thread Jorge
On May 9, 2012, at 11:52 AM, paul_tanner wrote: Hi, Just got my beaglebone from farnell and hoping to start work with nodejs on it. It shipped with v0.4.12 and the Cloud9 IDE. On running the standard hello world script it thows errors to the effect that npm modules inotify and fibers

Re: [nodejs] Sharing code between client and server

2012-05-09 Thread Azer Koçulu
I would recommend OneJS (http://github.com/azer/onejs) since it's a better implementation of commonjs and lets you separate your client-side project as an independent commonjs package. I built multiplayerchess.com using onejs last year. You may want to take a look at its source code:

Re: [nodejs] BeagleBone with node.js - getting started.

2012-05-09 Thread Paul Tanner
Thx Jorge Evidently I was wrong to go ahead and install npm in the usual way. There must be a separate version or switch option for installation on ARM. More searching needed. There are several working node modules (eg http) in the distribution. The question is how were they installed?

Re: [nodejs] BeagleBone with node.js - getting started.

2012-05-09 Thread Tim Caswell
The http module is baked into the node executable. Npm has nothing to do with that one. Also any module can be installed without npm if you put the right files in the right places. For most this means copying the source tree to a folder in node_modules. On Wed, May 9, 2012 at 10:35 AM, Paul

Re: [nodejs] How to find the node memory leak

2012-05-09 Thread Stephane RIOS
You can use this tool : https://github.com/c4milo/node-webkit-agent. The retaining paths in the heap profiling panel can then show you some useful infos (see more infos here : https://developers.google.com/chrome-developer-tools/docs/heap-profiling) Le 09/05/12 14:08, Jackson Tian a écrit :

Re: [nodejs] BeagleBone with node.js - getting started.

2012-05-09 Thread Jorge
On May 9, 2012, at 5:35 PM, Paul Tanner wrote: Thx Jorge Evidently I was wrong to go ahead and install npm in the usual way. There must be a separate version or switch option for installation on ARM. More searching needed. There are several working node modules (eg http) in the

[nodejs] Ajax file upload with node.js

2012-05-09 Thread Feras Odeh
I'm trying to use ajax file upload plugin(enter link description herehttps://github.com/valums/ajax-upload) to upload a file to node.js server. This is my client side code to initialize plugin: $(function() { /* dom ready */ var uploader = new qq.FileUploader({ // pass the dom

Re: [nodejs] BeagleBone with node.js - getting started

2012-05-09 Thread Paul Tanner
Thx Jorge Evidently I was wrong to go ahead and install npm in the usual way. There must be a separate version or switch option for installation on ARM. ** or each module has been provided with an ARM version ** More searching needed. There are several working node modules (eg http) in

Re: [nodejs] BeagleBone with node.js - getting started.

2012-05-09 Thread Marcel Laverdet
libcoro runs fine on ARM, but you do need to use the pthread_cond_wait version by passing -DCORO_PTHREAD. There is a check for this in the Makefile (and new gyp file) but there hasn't been strong testing there. On Wed, May 9, 2012 at 12:57 PM, Jorge jo...@jorgechamorro.com wrote: On May 9,

Re: [nodejs] Re: How to make a high quality chat server?

2012-05-09 Thread codepilot Account
When you get that big, 100k's of users I bet this article will apply. http://news.cnet.com/8301-1009_3-57428067-83/fbi-we-need-wiretap-ready-web-sites-now/ What's harder, 1M users talking to each other, or logging and transmitting those chats to a third party? On Tue, May 8, 2012 at 5:36 PM,

[nodejs] Fibers: now with Windows support, binary distribution, and gyp

2012-05-09 Thread Marcel Laverdet
Hey all just a quick note about some news on node-fibers. Thanks to the work of @japj, node-fibers is now runnable under Windows. Now you can use fibers on pretty much any platform. Semi-related: node-fibers now includes a binary for Windows, OS X, and Linux in both 32 and 64-bit x86

Re: [nodejs] BeagleBone with node.js - getting started.

2012-05-09 Thread Jorge
@Marcel Cool! @Paul what does `cc -v` give you ? On May 9, 2012, at 9:18 PM, Marcel Laverdet wrote: libcoro runs fine on ARM, but you do need to use the pthread_cond_wait version by passing -DCORO_PTHREAD. There is a check for this in the Makefile (and new gyp file) but there hasn't been

[nodejs] Problems with node and less

2012-05-09 Thread TheSpiff
# test of less bin xxx@xxx:~/less_files$ lessc test.less out.css node.js:249 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Cannot find module 'less' at Function._resolveFilename (module.js:333:15) at Function._load (module.js:280:25) at

Re: [nodejs] BeagleBone with node.js - getting started.

2012-05-09 Thread Marcel Laverdet
gcc version shouldn't matter. The pthread version of libcoro will run on anything with POSIX-pthreads, it's a very very robust implementation. That's not to say that node-fibers will run on everything.. the build process will need to accomodate that. I got access to a beaglebone and tried to get

Re: [nodejs] BeagleBone with node.js - getting started.

2012-05-09 Thread Marcel Laverdet
Oh yeah, that's true. I remember when we got this working on a beaglebone we just left out -m32 altogether and did -march=arm. As for my beaglebone I'm crazy and installed Gentoo on it, so this is my cc -v output ;) bone ~ # cc -v Using built-in specs.

[nodejs] Connection model for Mongo using Node.js

2012-05-09 Thread Travis Briggs
Hello, I just got started with Node.js and I'm trying to use Mongo. I'm just looking for a basic connection model for Mongo when using Node.js. I'm using the native driver (https://github.com/mongodb/node-mongodb-native) and I have the following for getting a database object: At the top of the

[nodejs] Re: [node-dev] using newer upstream version of v8?

2012-05-09 Thread Jorge
Just did it again with this https://nodeload.github.com/v8/v8/zipball/3.10.8, right now: $ node -e 'console.log(process.versions)' { node: '0.7.5', v8: '3.10.8', ares: '1.7.5-DEV', uv: '0.6', openssl: '0.9.8r' } On May 10, 2012, at 2:40 AM, Jorge wrote: I simply replace deps/v8

Re: [nodejs] Re: [node-dev] using newer upstream version of v8?

2012-05-09 Thread Isaac Schlueter
I'm planning on updating the v8 version for the next 0.7 release. We stick to a single release group for stable versions of node. So, node 0.6.x will always have v8 3.6.6.x. On Wed, May 9, 2012 at 6:04 PM, Jorge jo...@jorgechamorro.com wrote: Just did it again with this

Re: [nodejs] Re: [node-dev] using newer upstream version of v8?

2012-05-09 Thread Matt
That makes logical sense, but does Google publish a contract about what will/won't change in version bumps? I couldn't find anything with rudimentary googling. Certainly the recent discussion about how VM is faster due to some V8 optimisation step (now fixed in v8 core) would be wonderful to get

Re: [nodejs] Will vert.x pose a threat to node.js?

2012-05-09 Thread Matt
No. Though I imagine Isaacs is wondering where the file read performance difference is. My gut feeling is that Java maybe uses mmap under the hood, or some other performance trick. It would be much more obvious if there were strace output. There's also other probable wins, like using a newer V8

[nodejs] Re: Will vert.x pose a threat to node.js?

2012-05-09 Thread Bradley Meck
Vert.x is interesting. I am not sure about all the verticals and state management from what I have read, it looks quite similar to hook.io in some ways. Still, it is nice to see node bringing about some influence in other places that have generally been somewhat awkward to work evented

Re: [nodejs] Re: Will vert.x pose a threat to node.js?

2012-05-09 Thread Marak Squires
Yes, particularly the built-in event bus that works in the browser. On Wed, May 9, 2012 at 7:44 PM, Bradley Meck bradley.m...@gmail.com wrote: Vert.x is interesting. I am not sure about all the verticals and state management from what I have read, it looks quite similar to hook.io in some

[nodejs] Re: Will vert.x pose a threat to node.js?

2012-05-09 Thread dhruvbird
Why not have a benchmark that doesn't read from the file, but instead writes out the contents of a static string. On May 9, 9:56 pm, Matt hel...@gmail.com wrote: No. Though I imagine Isaacs is wondering where the file read performance difference is. My gut feeling is that Java maybe uses mmap