[nodejs] SOLVED: NodeJS and MongoDB.js no update

2013-12-16 Thread Yvon Thoraval
This is a known issue ;-) see : http://stackoverflow.com/questions/14465299/nodejs-and-mongodb-mongojs-trying-to-query-and-update-database-within-a-for-l also : http://stackoverflow.com/questions/3927054/jslint-error-dont-make-functions-within-a-loop-leads-to-question-about-javas Following

[nodejs] Getting data from C++ callbacks

2013-12-16 Thread miikka . miettinen
Hi, I'm trying to create a native module in order to receive data from a kind of sensor. To get updated, I need to provide 2 implementations of the same interface, which consists of a single method with the signature void receiveData(const Data data). My problem is that I haven't been able to

[nodejs] NodeJS basic Scrappe

2013-12-16 Thread Gaurang shah
Hi guys, I am trying to create my first web scrapper using NodeJS and Express. What I am trying to achieve is all the results on the first page of the google search. However the only problem is, with NodeJs it's not loading page with search result, however if I visit that page manually it

[nodejs] nodejs virtual machine

2013-12-16 Thread Pawel Por
Hi I would like to understand how nodejs works in more details. I found on wiki that a part of nodejs is a V8 JavaScript engine. On V8's wiki I can see that it compiles JavaScript into native machine code. Should I understand that nodejs first compiles the JavaScript code into native machine

Re: [nodejs] nodejs virtual machine

2013-12-16 Thread liuyanghejerry
It is a little complicated when compiles JS into native code. You may want to checkout this series of article: http://www.jayconrod.com/posts/51/a-tour-of-v8-full-compiler 于 2013/12/17 0:16, Pawel Por 写道: Should I understand that nodejs first compiles the JavaScript code into native machine

Re: [nodejs] NodeJS basic Scrappe

2013-12-16 Thread Paul Spencer
I think you should consider using http://phantomjs.org/ for this, it will handle a lot of details for you like running javascript on the page that might include additional content etc that you won't get by just loading it with the http module.  There are a couple of node wrappers, I've used 

Re: [nodejs] NodeJS basic Scrappe

2013-12-16 Thread // ravi
A couple of thoughts: (1) PhantomJS is very helpful if you need a headless browser such as to apply JavaScript changes in the page to the DOM before scraping it, but using PhantomJS means dealing with the fact that it is not (of necessity, kind of) part of the Node ecosystem; which means you

[nodejs] Learning NodeJS: what's important?

2013-12-16 Thread Orthoducks
I'm trying to learn NodeJS. My background (most recently) is writing web applications in PHP, with some JavaScript mixed in. My objectives are (1) to learn to write simple web applications in NodeJS, (2) to be able to read NodeJS code to help me document services that my company develops, and

Re: [nodejs] Learning NodeJS: what's important?

2013-12-16 Thread // ravi
On Dec 16, 2013, at 7:51 PM, Orthoducks orthodu...@gmail.com wrote: snip happens I'm working my way through Chapter 1 of Node Cookbook, by David Mark Clements, one of the books that was highly rated on the site where I go for recommendations. I'm starting to wonder Why are we here? The

[nodejs] In non-objectMode streams, is it safe to assume chunks are apples-to-apples?

2013-12-16 Thread Stephen Bartell
On the writable end, I push a `JSON.stringify`d object. On the other reader end, can I expect `chunk` to be `JSON.parse` -able? When running the code below, it seems like it. Like, it works and I can't logically make sense of it. I would expect that if not in objectMode, the reader will need

Re: [nodejs] Learning NodeJS: what's important?

2013-12-16 Thread Mikeal Rogers
http://nodeschool.io/ On Dec 16, 2013, at 4:51PM, Orthoducks orthodu...@gmail.com wrote: I'm trying to learn NodeJS. My background (most recently) is writing web applications in PHP, with some JavaScript mixed in. My objectives are (1) to learn to write simple web applications in NodeJS,

[nodejs] HTTPS, NPN, freeParser

2013-12-16 Thread Joran Dirk Greef
I have an HTTPS server that handles HTTPS and WebSocket traffic. I would like to use this same server to handle an additional TCP-based protocol and would like to do this using NPN rather than Upgrade, to save RTT. I tried using NPNProtocols as a server option and then listening for the