Re: [nodejs] You're going to have to rewrite it anyway

2013-07-09 Thread Jeffery Olson
And you said you didn't care for JSAPI! :P On Mon, Jul 8, 2013 at 11:58 PM, Tim Caswell wrote: > After a quick chat with TJ and Trevor on IRC, I've decided to write up a > quick sample of the kind of API I would like as a JavaScript person. The > evolving code is at https://gist.github.com/cre

[nodejs] Re: You're going to have to rewrite it anyway

2013-07-09 Thread Floby
Tim's examples are pretty nice. The only things missing for all my use cases are storing pointers in JS objects so I can get them back when I need it. something like js_set_pointer(C, myObject, pointer); myType *pointer = js_get_pointer(C, myObject); On Monday, 8 July 2013 20:35:36 UTC+2, Timot

Re: [nodejs] Maximum CPU usage on a very high network thoughput

2013-07-09 Thread Egor Egorov
I was unable to get linux-tick-processor running on Ubuntu 13.04. And googling for errors didn't help either. So I ended up rewriting the application in pure C using excellent, brilliant libuv. So the resulting application is able to saturate 100Mbit network within a single process using no mo

Re: [nodejs] new project - simpleio

2013-07-09 Thread Oleg Slobodskoi
Ok, created an issue for that. https://github.com/kof/simpleio/issues/4 Basically I don't even create a server within simpleio. User need to create a server using any framework and then call simpleio methods and forward the params. I think simpleio interface is lower level and though more flexi

[nodejs] Re: npm link in deployment

2013-07-09 Thread greelgorke
npm pack creates a tarball from your lib, put the tarball on a webserver, where it can be downloaded, put the url to the tarball in the package.json of your site projects. you can name your tarball with different versions and reference it so. npm link is meant for development not production usa

[nodejs] Re: update git dependencies

2013-07-09 Thread greelgorke
npm update? Am Montag, 8. Juli 2013 18:15:50 UTC+2 schrieb Maxim Yefremov: > > I got lib1 that depends on lib2 via git: > "dependencies": { > "lib2": "git+ssh://g...@repo.com:userName/lib2.git" > } > When code changed in lib2 repository I want to have changes in lib1. What > should I do

Re: [nodejs] Re: update git dependencies

2013-07-09 Thread Maxim Yefremov
*npm update* updates everything exept git dependencies On Tue, Jul 9, 2013 at 3:26 PM, greelgorke wrote: > npm update? > > Am Montag, 8. Juli 2013 18:15:50 UTC+2 schrieb Maxim Yefremov: > >> I got lib1 that depends on lib2 via git: >> "dependencies": { >> "lib2": "git+ssh://g...@repo.com:us

Re: [nodejs] Re: update git dependencies

2013-07-09 Thread greelgorke
ah yes. here: https://npmjs.org/doc/json.html#Git-URLs-as-Dependencies to update, just append the commit hash Am Dienstag, 9. Juli 2013 13:35:46 UTC+2 schrieb Maxim Yefremov: > > *npm update* updates everything exept git dependencies > > > On Tue, Jul 9, 2013 at 3:26 PM, greelgorke > > wrote: >

Re: [nodejs] Re: update git dependencies

2013-07-09 Thread Maxim Yefremov
Ok tried to add commit hash: "dependencies": { "lib2": "git+ssh://g...@repo.com:userName/lib2.git#e899c1e" } And then *npm update* But nothing changed. On Tue, Jul 9, 2013 at 4:05 PM, greelgorke wrote: > ah yes. > > here: https://npmjs.org/doc/json.html#Git-URLs-as-Dependencies > > t

[nodejs] git submodule add failed

2013-07-09 Thread Maxim Yefremov
I want to add git submodule *$ git submodule add git+ssh://g...@bitbucket.org:userName/lib2.git node_modules/lib2* Cloning into 'node_modules/lib2'... ssh: Could not resolve hostname bitbucket.org:userName: nodename nor servname provided, or not known fatal: Could not read from remote repositor

[nodejs] Get old behaviour under cluster for server.listen(0)

2013-07-09 Thread Matt
Is there any way I can get the old behaviour back for a worker doing server.listen(0)? The problem I have is that I do server.listen() multiple times in a worker, to get multiple listening servers, and cluster breaks this by always giving me back the same server/port. I just want the old behaviou

Re: [nodejs] update git dependencies

2013-07-09 Thread Matt
On Mon, Jul 8, 2013 at 12:15 PM, Maxim Yefremov wrote: > I got lib1 that depends on lib2 via git: > "dependencies": { > "lib2": "git+ssh://g...@repo.com:userName/lib2.git" > } > When code changed in lib2 repository I want to have changes in lib1. What > should I do to get that changes in li

Re: [nodejs] new project - simpleio

2013-07-09 Thread mgutz
I've come to the same conclusion Meteor, Pusher and you have and that SockJS is the way to go. I'm reluctant to use engine.io having experienced socket.io from the same group. How long has socket.io 1.0 been ready ready to release? Last I checked the socket.io repo master branch doesn't even

[nodejs] First attempt at a node.js module

2013-07-09 Thread Jean-Michel Hiver
Hi List, If a few charitable and experience eyeballs could take a look at my first node module: https://github.com/jhiver/template-tal template-tal is a shot at implementing the ZPT / Page Template TAL XML template specification. It is a port of Petal::Tiny, a Perl module which I also wrote.

Re: [nodejs] update git dependencies

2013-07-09 Thread Maxim Yefremov
Matt, thanx. I changed version in package.json and now it works as expected. On Tue, Jul 9, 2013 at 5:34 PM, Matt wrote: > > On Mon, Jul 8, 2013 at 12:15 PM, Maxim Yefremov wrote: > >> I got lib1 that depends on lib2 via git: >> "dependencies": { >> "lib2": "git+ssh://g...@repo.com:userNam

Re: [nodejs] update git dependencies

2013-07-09 Thread Matt
On Tue, Jul 9, 2013 at 11:38 AM, Maxim Yefremov wrote: > Matt, thanx. I changed version in package.json and now it works as > expected. > To be fair, this could be documented better - I expected it to work like you did at first. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: ht

Re: [nodejs] You're going to have to rewrite it anyway

2013-07-09 Thread Louis Santillan
I said it years ago, v8 needs something like SpiderMonkey's cookbook < https://developer.mozilla.org/en-US/docs/SpiderMonkey/JSAPI_Cookbook>.But you can bug Stephen Beal about this, because Chromium & the v8 teams' priority is to support chrome, not embedders. Stephen has had a few run ins with v8

Re: [nodejs] Re: using node-http-proxy question

2013-07-09 Thread john.tiger
On 07/08/2013 03:05 PM, Pedro Teixeira wrote: One observation: Nginx doesn't allow everything that Node does, limiting services exposed through it. For instance, Nginx can't handle streaming requests, requiring that the request ended before forwarding it to Node, which in our case made is opt f

[nodejs] Re: Heroku - Created a facebook app with Node.js which gives type error

2013-07-09 Thread Mark Docherty
this is the contents of my package.json { "name":"facebook-template-node", "version": "0.0.1", "description": "Template app for Heroku / Facebook integration, Node.js language", "dependencies": { "async": "0.1.18", "ejs": "0.4.3", "express": "2.4.6",

[nodejs] Writing Node modules that run in the browser

2013-07-09 Thread Frank Panetta
I'm trying to write a single script (module) that runs both in the browser and on Node. I place this code at the top of my script: ;(function (definition) { // RequireJS if (typeof define === "function" && define.amd) { define([], function () { var exports = {}; definition(

[nodejs] dependency on uglified library

2013-07-09 Thread guy mograbi
I have a front-end module I want to uglify and reuse. I can't seem to find a way to accomplish this. Can anyone share how to do this? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message beca

[nodejs] Re: Heroku - Created a facebook app with Node.js which gives type error

2013-07-09 Thread Mark Docherty
i am also seeing this exact same message. On Friday, 17 May 2013 06:48:42 UTC+1, Ramana Venkata wrote: > > I am trying to create a facebook application and this is my first time. I > read several articles on how to create one and I created an application > from this page https://developers.face

[nodejs] how to send an email when forever restarts

2013-07-09 Thread Marcelo Barbudas
Firstly, I would like to apologize if it's been asked before because I did find some threads and bugreports about this. Which unfortunately were not very helpful. I'd like to receive an email when foreverjs restarts containing the stack strafe. Has anyone done this? If yes, could you please sha

[nodejs] Sessions

2013-07-09 Thread Richie Preece
Hi, I've run into a bit of a conundrum: I'm trying to keep a list of connected web sockets that I can emit messages to. However, I do not want to emit messages to a websocket if the user is not logged in. This means from the io.sockets.on('connection'... to the app.post('/login'... I need some

[nodejs] need recommended node server directory structure / permissions on linux

2013-07-09 Thread john.tiger
seems basic 101 but tried searching for this and didn't really find any good examples from our node-http-proxy, each single-page app has the following folder structure - not sure if this is most efficient structure or what permissions should be (especially for rest.js) - any recommendations

Re: [nodejs] Re: You're going to have to rewrite it anyway

2013-07-09 Thread Tim Caswell
On Tue, Jul 9, 2013 at 4:16 AM, Floby wrote: > Tim's examples are pretty nice. > The only things missing for all my use cases are storing pointers in JS > objects so I can get them back when I need it. > > something like > > js_set_pointer(C, myObject, pointer); > myType *pointer = js_get_pointer

Re: [nodejs] Re: You're going to have to rewrite it anyway

2013-07-09 Thread Elijah Insua
Can you explain what the magic "slot" numbers are used for? On Tue, Jul 9, 2013 at 10:08 AM, Tim Caswell wrote: > > > > On Tue, Jul 9, 2013 at 4:16 AM, Floby wrote: > >> Tim's examples are pretty nice. >> The only things missing for all my use cases are storing pointers in JS >> objects so I c

Re: [nodejs] Get old behaviour under cluster for server.listen(0)

2013-07-09 Thread Sam Roberts
https://npmjs.org/package/net-cluster (never used) hm, I wonder if listen in the master will return a ephemeral port? in which case, you could do a few there to allocate them, and send the port to the workers, where they could open that port. -- -- Job Board: http://jobs.nodejs.org/ Posting gui

Re: [nodejs] Writing Node modules that run in the browser

2013-07-09 Thread Jake Verbaten
Use http://browserify.org/ to use commonJS modules in the browser. Then you don't need to add any boilerplate On Mon, Jul 8, 2013 at 6:27 PM, Frank Panetta < frank.pane...@entrendipity.com.au> wrote: > I'm trying to write a single script (module) that runs both in the browser > and on Node. I p

Re: [nodejs] Get old behaviour under cluster for server.listen(0)

2013-07-09 Thread Matt
On Tue, Jul 9, 2013 at 1:28 PM, Sam Roberts wrote: > https://npmjs.org/package/net-cluster (never used) > Assuming this works, brilliant thank you!!! -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received

Re: [nodejs] Re: You're going to have to rewrite it anyway

2013-07-09 Thread Tim Caswell
On Tue, Jul 9, 2013 at 12:24 PM, Elijah Insua wrote: > Can you explain what the magic "slot" numbers are used for? > They are basically local handles. Each JS value that's created during the scope of a function gets a unique slot value (some negative integer). If you want a value to live past

Re: [nodejs] You're going to have to rewrite it anyway

2013-07-09 Thread Micheil Smith
How would a asynchronous libuv schedule example look? – Micheil On 09/07/2013, at 6:08 PM, Tim Caswell wrote: > > > > On Tue, Jul 9, 2013 at 4:16 AM, Floby wrote: > Tim's examples are pretty nice. > The only things missing for all my use cases are storing pointers in JS > objects so I can

[nodejs] Node.js UV_THREADPOOL_SIZE environment variable

2013-07-09 Thread Kiki
One of the changes made by Ben Noordhius in Node v0.10.0 was to "honor UV_THREADPOOL_SIZE environment variable" in Unix. The "threadpool.c" source file seems to do just that. If I don't set this env variable, I can verify that I am limited to a threadpool of 4 threads, which is the default siz

Re: [nodejs] You're going to have to rewrite it anyway

2013-07-09 Thread Tim Caswell
On Tue, Jul 9, 2013 at 12:39 PM, Micheil Smith wrote: > How would a asynchronous libuv schedule example look? > Not entirely sure what you mean. I did add support for external pointers (for things like uv_handle_t and uv_ref_t) and a way to add arbitrary js values to the set of GC roots (for sto

Re: [nodejs] You're going to have to rewrite it anyway

2013-07-09 Thread Marcel Laverdet
I don't understand why you hate C++ so much? If you're trying to convert v8's C++ API into a C API you're going to need a lot of ref/unref action which isn't necessary given C++'s scoping semantics. They built the API in C++ for a reason. I'm not even sure the API you're conjuring up here is even p

Re: [nodejs] You're going to have to rewrite it anyway

2013-07-09 Thread Timothy J Fontaine
I don't hate C++, on the other hand there are particular warts that it brings to the table that aren't desirable, for instance ABI compatibility is sketchy at best. This is not about trying to do the v8 API in C, this is about providing an API that modules can depend on that we guarantee to work f

Re: [nodejs] You're going to have to rewrite it anyway

2013-07-09 Thread Tim Caswell
On Tue, Jul 9, 2013 at 1:20 PM, Marcel Laverdet wrote: > I don't understand why you hate C++ so much? If you're trying to convert > v8's C++ API into a C API you're going to need a lot of ref/unref action > which isn't necessary given C++'s scoping semantics. They built the API in > C++ for a rea

[nodejs] What are the qualifications to learn Node.js

2013-07-09 Thread whatnow1204
Hi, I'm interested into learning node.js. Before I dive into Node.js, I have no knowledge in back-end development in any areas (my knowledge in HTTP is very, very limited and basic), only know client side, such as HTML, CSS, and JavaScript. I want to expand my knowledge in other technologies,

Re: [nodejs] What are the qualifications to learn Node.js

2013-07-09 Thread Mark Hahn
The first requirement is to have experience in programming a language, like C, C++, javascript, Python, etc. On Tue, Jul 9, 2013 at 10:42 AM, whatnow1204 wrote: > Hi, > > I'm interested into learning node.js. Before I dive into Node.js, I have > no knowledge in back-end development in any areas

Re: [nodejs] What are the qualifications to learn Node.js

2013-07-09 Thread Ryan Schmidt
On Jul 9, 2013, at 12:42, whatnow1204 wrote: > I'm interested into learning node.js. Before I dive into Node.js, I have no > knowledge in back-end development in any areas (my knowledge in HTTP is very, > very limited and basic), only know client side, such as HTML, CSS, and > JavaScript. I wa

Re: [nodejs] ChildProcess module not working on a real server

2013-07-09 Thread Ryan Schmidt
On Jul 8, 2013, at 21:00, Ket wrote: > I use child_process module to manage data flow: > > link: http://nodejs.org/api/child_process.html > > It is working fine during a test use on my home windows machine but it's not > working on a virtual linux server. > > How do I solve this comparability

[nodejs] Node v0.10.13 (Stable)

2013-07-09 Thread Timothy J Fontaine
2013.07.09, Version 0.10.13 (Stable) * uv: Upgrade to v0.10.12 * npm: Upgrade to 1.3.2 * windows: get proper errno (Ben Noordhuis) * tls: only wait for finish if we haven't seen it (Timothy J Fontaine) * http: Dump response when request is aborted (isaacs) * http: use an unref'd timer to fix

Re: [nodejs] What are the qualifications to learn Node.js

2013-07-09 Thread James Newton
On 2013-07-09, at 13:42 , whatnow1204 wrote: > I'm interested into learning node.js. Before I dive into Node.js, I have no > knowledge in back-end development in any areas (my knowledge in HTTP is very, > very limited and basic), only know client side, such as HTML, CSS, and > JavaScript. I want

[nodejs] Starting work on a Chrome Devtools addon

2013-07-09 Thread Adam Crabtree
Howdy all, I have LinkedIn's blessing to work full-time for 2 weeks on building a node.js addon[1] for remote Chrome Devtools debugging. Since I've never built an addon, this is a rather ambitious task for my first addon, and nearly everyone in the community would benefit from this, I thought I'd

Re: [nodejs] ChildProcess module not working on a real server

2013-07-09 Thread Ket
Thanks, the code I use is exactly same as the example. It works on node.js version 0.6.15 on windows but it's not working with version 0.11.3. And thanks for sharing about socket.remoteAddress. On Wednesday, July 10, 2013 4:30:13 AM UTC+7, ryandesign wrote: > > > On Jul 8, 2013, at 21:00, Ket wr

Re: [nodejs] What are the qualifications to learn Node.js

2013-07-09 Thread // ravi
On Jul 9, 2013, at 1:42 PM, whatnow1204 wrote: > > I'm interested into learning node.js. Before I dive into Node.js, I have no > knowledge in back-end development in any areas (my knowledge in HTTP is very, > very limited and basic), only know client side, such as HTML, CSS, and > JavaScript.

Re: [nodejs] Starting work on a Chrome Devtools addon

2013-07-09 Thread Jorge Chamorro
On 10/07/2013, at 01:32, Adam Crabtree wrote: > Howdy all, > > I have LinkedIn's blessing to work full-time for 2 weeks on building a > node.js addon[1] for remote Chrome Devtools debugging. Hi, What is the idea, connecting from a node to the debugger of a remote chrome browser, or to debug a

Re: [nodejs] Starting work on a Chrome Devtools addon

2013-07-09 Thread Andrey
Same question here - what is the difference compared to node-webkit-agent? Would it require extra agent to run in addition to node.js process or it's going to use Chrome native networking and talk v8 debugger protocol directly? On Wednesday, 10 July 2013 11:25:27 UTC+10, Jorge wrote: > > On 10/

Re: [nodejs] You're going to have to rewrite it anyway

2013-07-09 Thread Jorge Chamorro
On 08/07/2013, at 22:17, Jérémy Lal wrote: > On 08/07/2013 20:53, Mikeal Rogers wrote: >> >> This is all the right direction, IMO. node.js should provide the best >> platform imaginable for people building on top of it. If some of >> those decisions benefit those building on node.js but piss off p

Re: [nodejs] Writing Node modules that run in the browser

2013-07-09 Thread Frank Panetta
Thanks! On Wednesday, 10 July 2013 03:30:42 UTC+10, Raynos wrote: > > Use http://browserify.org/ to use commonJS modules in the browser. > > Then you don't need to add any boilerplate > > > On Mon, Jul 8, 2013 at 6:27 PM, Frank Panetta < > frank@entrendipity.com.au > wrote: > >> I'm trying to

[nodejs] How to create my own server for RTC DataChannel communication

2013-07-09 Thread Ket
Hi, I begin to study RTC Data channel from this example: link: http://www.simpl.info/rtcdatachannel/ It is great except that I can't send data to anywhere. Even I declare server like: var servers = { servers: [{ url: 'stun:stun.l.google.com:19302' }] }; Anyone has any s

Re: [nodejs] Writing Node modules that run in the browser

2013-07-09 Thread Tauren Mills
Also check out https://github.com/umdjs/umd On Jul 9, 2013 9:47 PM, "Frank Panetta" wrote: > Thanks! > > On Wednesday, 10 July 2013 03:30:42 UTC+10, Raynos wrote: >> >> Use http://browserify.org/ to use commonJS modules in the browser. >> >> Then you don't need to add any boilerplate >> >> >> On