[nodejs] Stuck with an extension...

2014-01-16 Thread Kevin Ingwersen
Hey! Okay, so, I hope I can ask for some v8 development help here. I am developing an extension to allow in-process PHP execution. However, for it to configure, I want to store some values. Therefore, I do the following: https://github.com/Deskshell-Core/node-ph7/blob/master/ph7_wrapper.h#L45

[nodejs] restful api call error

2014-01-16 Thread Jyoti Chettri
Hi I'm trying integrate restful apis in client interface, but i;m unable to do it. From the following test code I'm getting error { [Error: getaddrinfo ENOTFOUND] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' } Please help me to figure it out. var https = require('https');

Re: [nodejs] Re: State of the art for request isolation in http servers?

2014-01-16 Thread Alain Mouette
Could you share how you did that? I intend to test that kind of thing *before* building a real application, I am new to node (I came from C++) and it may be an interesting learning path (even if a bit difficult) Thanks Alain === Minha MesaXYZ: http://mesa-reprap.blogspot.com.br/ === Em

Re: [nodejs] Installable nodejs apps

2014-01-16 Thread José F . Romaniello
Another interesting point, is how you handle the case when different applications needs to be installed in the same machine/server and these depends on different version of node. That's why on my msi example I bundle the node.exe executable directly on the package. I think nexe can make this

Re: [nodejs] Web Scraping Frameworks for Node.JS? (e.g. like Python's Scrapy)

2014-01-16 Thread Arvind Gupta
You can also use scraper for web scrapping. Have a look at it. https://nodejsmodules.org/tags/scraping On Thu, Jan 16, 2014 at 9:14 PM, Matt hel...@gmail.com wrote: And PhantomJS crashes randomly a lot (well, a lot depends on how much you're doing), so you have to deal with that. And the

[nodejs] SSL and express

2014-01-16 Thread Reza Razavipour
I am supporting a node application using express, https module. How can I determine which version of SSL i am using and what the settings are? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this

Re: [nodejs] Web Scraping Frameworks for Node.JS? (e.g. like Python's Scrapy)

2014-01-16 Thread Matt
And PhantomJS crashes randomly a lot (well, a lot depends on how much you're doing), so you have to deal with that. And the libraries for controlling it all suck except for the one I wrote (obviously I state that completely unbiasedly! /s). But no, I don't know of anything that deals with all the

Re: [nodejs] Web Scraping Frameworks for Node.JS? (e.g. like Python's Scrapy)

2014-01-16 Thread // ravi
On Jan 16, 2014, at 10:44 AM, Matt hel...@gmail.com wrote: And PhantomJS crashes randomly a lot (well, a lot depends on how much you're doing), so you have to deal with that. And the libraries for controlling it all suck except for the one I wrote (obviously I state that completely

[nodejs] Changing nodejs' main behavior?

2014-01-16 Thread Kevin Ingwersen
Hey there. I have seen it once in an article, but I can not refind it anymore T.T I read about the fact, that if you include a special file into the nodejs source tree, that int main() will run that script instead of the normal behavior. So, basically, one can override the main nodejs behavior

Re: [nodejs] Installable nodejs apps

2014-01-16 Thread José F . Romaniello
I don't know nexe, but another aproach is to make an installable for every platform you will want to support. I did one for windows (using msi) for one of our artifacts and I extracted a template here: https://github.com/auth0/nodejs-msi I've read a series of blog posts from AJ ONeal about

[nodejs] Re: Changing nodejs' main behavior?

2014-01-16 Thread mscdex
On Thursday, January 16, 2014 11:18:26 AM UTC-5, Kevin Ingwersen wrote: I have seen it once in an article, but I can not refind it anymore T.T I read about the fact, that if you include a special file into the nodejs source tree, that int main() will run that script instead of the normal

Re: [nodejs] Web Scraping Frameworks for Node.JS? (e.g. like Python's Scrapy)

2014-01-16 Thread // ravi
On Jan 16, 2014, at 11:19 AM, Matt hel...@gmail.com wrote: node-phantom-simple on npm. This was developed after 12 months of trying different phantom modules, having weird failures with each (some don't work under cluster, some don't work under load, some just randomly fail). It's used

[nodejs] Re: Changing nodejs' main behavior?

2014-01-16 Thread Kevin Ingwersen
Had to add the file to node.gyp, but then it worked :) Thanks! Am Do. Jan. 16 2014 17:48:18 schrieb mscdex: On Thursday, January 16, 2014 11:18:26 AM UTC-5, Kevin Ingwersen wrote: I have seen it once in an article, but I can not refind it anymore T.T I read about the fact, that if you include

[nodejs] _third_party_main.js: Using native modules?

2014-01-16 Thread Kevin Ingwersen
Hey. I just read src/node.js up and down, and realized,that it exported some fucntions by its own already. It made me wonder something. Since this thing seems to be able to require like usual, would one be able to actually include a native module that way? So if I added this to node.gyp:

Re: [nodejs] Installable nodejs apps

2014-01-16 Thread Piyush Ranjan
Thanks for the reply. I did try nexe and going ahead with it! Piyush On Thu, Jan 16, 2014 at 12:40 AM, Alex Kocharin a...@kocharin.ru wrote: You might find this - https://github.com/crcn/nexe - interesting. -- // alex 15.01.2014, 23:06, Piyush Ranjan piyush...@gmail.com: Hello I am

[nodejs] [Tutorial] One hackish way to compile js and native addons into nodejs...

2014-01-16 Thread Kevin Ingwersen
Hey hey! I just did some rally cool find-out that I am really happy about - and since, I want to share that too! :3 Caution: Make sure you have your toolchai (Xcode, gcc, MSYS, …) ready to use and a copy of the latest nodejs source code. I myself am using v0.10.24. Okay, let’s go. 1.

Re: [nodejs] [Tutorial] One hackish way to compile js and native addons into nodejs...

2014-01-16 Thread Charlie McConnell
I really like how you asked the mailing list how to do this, figured it out, and then posted a detailed tutorial. THIS is how this list should be used! Good work. -- Charlie McConnell On Thu, Jan 16, 2014, at 11:22 AM, Kevin Ingwersen wrote: Hey hey! I just did some rally

Re: [nodejs] [Tutorial] One hackish way to compile js and native addons into nodejs...

2014-01-16 Thread Kevin Ingwersen
Well, I asked people to help me build a puzzle - and they helped me place one or another piece. And when I was done, I wanted to show how I completed it…for me, that is part of the concept of Open Source; sharing experience. :) Glad you apriciate that move! Am Do. Jan. 16 2014 21:12:45 schrieb

Re: [nodejs] Re: State of the art for request isolation in http servers?

2014-01-16 Thread Bruno Jouhier
Hi Alain, We use streamline.js. We have developed a big application with it ( 100 k lines of streamline souce code). For an example of what a streamline app looks like (with exception handling), see https://github.com/Sage/streamlinejs/blob/master/tutorial/tutorial.md Bruno On Thursday,

Re: [nodejs] State of the art for request isolation in http servers?

2014-01-16 Thread Mikeal Rogers
The core team built domains specifically to tackle this problem. http://nodejs.org/api/domain.html Forrest and Domenic did a session about them at NodeConf last year, their materials are here: https://github.com/mikeal/nodeconf2013/tree/master/pkg/domains If you analyze the code you're

[nodejs] Why is my value suddenly a STRING O.o?

2014-01-16 Thread Kevin Ingwersen
hey! I…am stuck, again. This time however, I can’t find anything but posting here. So, I have extended on my ph7 project now, and it has come to a point where it is almost usable. But now I ran into an issue that is confusing me. So, within my ObjectWrap class (ph7_wrapper : node::ObjectWrap)

[nodejs] NodeJS PPTP VPN server

2014-01-16 Thread Marcel Laverdet
I wrote an experimental PPTP VPN server in Node. Why? We may never know. Anyway this was part of a larger personal project and I ultimately decided to swap this component out for a solution involving routing tables and tun/tap instead. Figured there was a small chance someone would get some use

[nodejs] Re: NodeJS PPTP VPN server

2014-01-16 Thread Tom Boutell
Wow, I don't need that, but it's pretty cool (: On Thursday, January 16, 2014 8:06:41 PM UTC-5, Marcel wrote: I wrote an experimental PPTP VPN server in Node. Why? We may never know. Anyway this was part of a larger personal project and I ultimately decided to swap this component out for a

[nodejs] Re: NodeJS PPTP VPN server

2014-01-16 Thread Simon
Never ceases to impress me the variety of networking tools and protocols people have implemented in Node. Thanks for releasing this, I'm sure there's a use for it out there (PPTP - OpenVPN bridge comes to mind, for users that can't install an OpenVPN client) On Thursday, January 16, 2014

[nodejs] how to read json array

2014-01-16 Thread Jyoti Chhetri
API rest is sending following json, I'm not being able to read it, I need to match ID as seen below say 95 for which array of city needs to be shown. Please help me do it. '95': [ { cityId: 78, cityName: 'Kuala Kangsar' }, { cityId: 94, cityName: 'Tanjung Malim' }, { cityId: 1,