[nodejs] Re: [ANN] native html parser

2012-10-28 Thread Domenic Denicola
Simon, as to your last question, here's a start: https://github.com/tmpvar/jsdom/issues?labels=parsing&page=1&state=open On Sunday, October 28, 2012 11:48:35 PM UTC-4, Simon wrote: > > Domenic, > > I'd be curious to know what parsers you are considering and if you have > some tests / html exampl

[nodejs] Re: An idea how to probably improve Date.now() (new Date, etc.) speed.

2012-10-28 Thread Alexey Kupershtokh
I've found an extreme solution: I upgraded ubuntu from Ubuntu 12.04.1 LTS \n \l; Linux wnote 3.2.0-33-generic-pae #52-Ubuntu SMP Thu Oct 18 16:39:21 UTC 2012 i686 i686 i386 GNU/Linux to Ubuntu 12.10 \n \l; Linux wnote 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_

[nodejs] Re: [ANN] native html parser

2012-10-28 Thread Simon
Domenic, I'd be curious to know what parsers you are considering and if you have some tests / html examples that are tripping up the existing parser.. On Friday, October 26, 2012 10:57:06 PM UTC+7, Domenic Denicola wrote: > > Very nice. As maintainer of jsdom, I've been looking for a replacemen

[nodejs] Re: build a node addon on windows for linux

2012-10-28 Thread NodeNinja
On Sunday, October 28, 2012 11:07:48 PM UTC+5:30, mscdex wrote: > > On Oct 28, 1:15 pm, NodeNinja wrote: > > and was wondering if there was anyway to target multiple platforms? > > Sure, you can target multiple platforms in your binding.gyp easily > using conditionals like that. However I tho

[nodejs] Re: ArrayBuffer / Buffer Objects in C++ Addons

2012-10-28 Thread darcy
http://deadhorse.me/nodejs/2012/10/10/c_addon_in_nodejs_buffer.html This page may be helpful, although it's chinese. On Sunday, October 28, 2012 3:55:30 AM UTC+8, Henri Tuhola wrote: > > I'd need to pass some binary data out of an addon, but node.js addon > documentation doesn't seem to cover it

Re: [nodejs] Re: a simple http server making current folder accessible from web?

2012-10-28 Thread P. Douglas Reeder
The Node philosophy is "batteries not included". Node is not focussed on plug-n-play solutions. On Sunday, October 28, 2012 7:24:13 PM UTC-4, Angelo Chen wrote: > > This works very well, thanks. > if nodejs has a default http - server like this, that will be cool, > wondering why not ? Python g

Re: [nodejs] Server crashes: "Error: spawn Unknown system errno 12"

2012-10-28 Thread Charlie McConnell
What OS are you on? Your node version is a bit old, and what you're seeing is an unmapped error. Newer versions of node would probably give you the error accurately, but we can help you figure out which it is, if you tell us which flavor of UNIX you're on. On Sun, Oct 28, 2012 at 5:05 AM, Stanle

[nodejs] Server crashes: "Error: spawn Unknown system errno 12"

2012-10-28 Thread Stanley
I'm having this issue that crashes my server randomly. I can't pinpoint what the issue is. Any ideas? Any clues? { "process": { "pid": 22015, "uid": 0, "gid": 0, "cwd": "/home/ec2-user/www/myproject", "execPath": "/usr/local/bin/node", "version": "v0.6.14", "argv"

Re: [nodejs] Re: a simple http server making current folder accessible from web?

2012-10-28 Thread Angelo Chen
This works very well, thanks. if nodejs has a default http - server like this, that will be cool, wondering why not ? Python got one. On Monday, October 29, 2012 6:14:06 AM UTC+8, chilts wrote: > > On 29 October 2012 00:48, Angelo Chen > > wrote: > > I did some google, and found out python has

Re: [nodejs] Re: Sample code to add basic authentication to node http server

2012-10-28 Thread gng
Hi all, Sorry to appear dumb about this, but no amount of tweaking (private browsing, clearing cookies, restarting browser etc) seems to fix this. My simple server code is as follows:- var express = require('express'); var server = express.createServer(); server.use(express.basicAuth('test','t

Re: [nodejs] Re: a simple http server making current folder accessible from web?

2012-10-28 Thread Andrew Chilton
On 29 October 2012 00:48, Angelo Chen wrote: > I did some google, and found out python has that: > > python -m SimpleHTTPServer Similar to this: $ npm install -g http-server $ http-server your-folder/ It'll be served up on port 8080. You can use options to change the port (-p), address

[nodejs] Re: npm package: "cluster-master" fails on Windows (REPL). But why does it even include a REPL (which is not supported on all platforms)?

2012-10-28 Thread Bert Belder
On Saturday, October 27, 2012 2:08:39 PM UTC+2, Fredrik O wrote: > I am writing this post here because I don´t know anywhere else I should > write it. It is about the npm package: "cluster-master" ( > https://npmjs.org/package/cluster-master). > > I have precise notice that the package is not su

[nodejs] Re: build a node addon on windows for linux

2012-10-28 Thread mscdex
On Oct 28, 1:15 pm, NodeNinja wrote: > and was wondering if there was anyway to target multiple platforms? Sure, you can target multiple platforms in your binding.gyp easily using conditionals like that. However I thought you were originally asking how to compile a Linux executable on Windows. -

[nodejs] Re: build a node addon on windows for linux

2012-10-28 Thread NodeNinja
> > > It's probably going to be easier to just create a linux VM for > compiling/testing purposes. > I had seen a few binding.gyp scripts with lines like these 'conditions': [ ['OS=="linux"', ['OS=="mac"', ['OS=="win"', ] and was wondering if there was anyway to target multiple platform

Re: [nodejs] Server-to-Server Communication

2012-10-28 Thread rektide
There's node-webworker at https://github.com/pgriess/node-webworker . It's programmed via an API alike W3C's WebWorkers. Internally it's a very simple message passing protocol, hosted on top of WebSockets. Between the too low level (ZeroMQ, dealing intimiately with sockets) and too high level (p

Re: [nodejs] Writing 500kb of JSON

2012-10-28 Thread P. Douglas Reeder
Thanks! I'll give JSONStream a try. On Sunday, October 28, 2012 1:30:24 AM UTC-4, Boris Egorov wrote: > > Check https://github.com/dominictarr/JSONStream > > > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You recei

[nodejs] Re: build a node addon on windows for linux

2012-10-28 Thread mscdex
On Oct 28, 9:31 am, NodeNinja wrote: > I successfully built a node add-on on windows using Visual Studio. > Now I want to build the same add-on on windows but targeting Linux. It's probably going to be easier to just create a linux VM for compiling/testing purposes. -- Job Board: http://jobs.no

[nodejs] build a node addon on windows for linux

2012-10-28 Thread NodeNinja
I successfully built a node add-on on windows using Visual Studio. Now I want to build the same add-on on windows but targeting Linux. 1. Is it possible to compile a node c++ add-on on windows for Linux? 2. What compiler should I install on windows? 3. Would it be possible using node-gyp? -- Jo

Re: [nodejs] a simple http server making current folder accessible from web?

2012-10-28 Thread Mark Volkmann
On Sun, Oct 28, 2012 at 2:53 AM, Angelo Chen wrote: > > Hi, > > trying to find a quick and dirty solution in nodejs: often need to access a > folder in mac from ipad's Safari, is there a simple, one file nodejs script > that can do it? thanks, You could use Strata ... npm install strata Suppo

[nodejs] Re: Using OpenVG APIs from node on the raspberry pi.

2012-10-28 Thread Henri Tuhola
This is a retarded workaround and we should really figure out why EGL breaks down the V8 Context on raspberry pi. maanantai, 3. syyskuuta 2012 9.53.39 UTC+3 Luis Reis kirjoitti: > > Hi again, > > I've found a solution to this problem, so, for anyone interested in > running node with OpenVG / Ope

[nodejs] Re: a simple http server making current folder accessible from web?

2012-10-28 Thread Angelo Chen
I did some google, and found out python has that: python -m SimpleHTTPServer On Oct 28, 5:26 pm, Ryan Schmidt wrote: > On Oct 28, 2012, at 02:53, Angelo Chen wrote: > > > trying to find a quick and dirty solution in nodejs: often need to access a > > folder in mac from  ipad's Safari, is there

[nodejs] Re: a simple http server making current folder accessible from web?

2012-10-28 Thread Angelo Chen
that's exactly what I want, but turned out some problem with Apache server came with os x, and can't make it to work, and was in a hurry, so made a simple ExpressJS to do the job, but it has quite a number of default folders, was thinking probably there is this simple nodejs that can do this withou

Re: [nodejs] Re: Server-to-Server Communication

2012-10-28 Thread Marak Squires
For server-to-server communication, engine.io will use the 'ws' module ( https://github.com/einaros/ws ) See: https://github.com/LearnBoost/engine.io-client/blob/master/lib/transports/websocket.js#L147 On Sun, Oct 28, 2012 at 2:45 AM, Arnout Kazemier wrote: > Sure you can communicate with engin

Re: [nodejs] Server-to-Server Communication

2012-10-28 Thread Ryan Schmidt
On Oct 28, 2012, at 03:07, Arunoda Susiripala wrote: > How about hook.io, what happen to it? hook.io is dead: https://groups.google.com/d/msg/nodejs/FCsTCopm_dE/kfCS-1nRfrUJ -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Gu

Re: [nodejs] Re: Server-to-Server Communication

2012-10-28 Thread Arnout Kazemier
Sure you can communicate with engine.io using a server component.. but then you might as well create plain HTTP server and use the HTTP client to communicate with it... But what ever.. Arnout Kazemier, Founder observe.it (http://observe.it) http://observe.it (http://observe.it/) - observing

Re: [nodejs] a simple http server making current folder accessible from web?

2012-10-28 Thread Ryan Schmidt
On Oct 28, 2012, at 02:53, Angelo Chen wrote: > trying to find a quick and dirty solution in nodejs: often need to access a > folder in mac from ipad's Safari, is there a simple, one file nodejs script > that can do it? thanks, Be more specific. Define "access". If you just want to see the c

Re: [nodejs] node js on android OS, I'm looking for new solutions

2012-10-28 Thread Paddy Byers
Hi, i want to run node js \ v8 like any other android app. just download apk > and run. but in this case we'll never have direct access to the hardware. > and if we root the device then we'll have some other problems. i'd like to > make it simple and safe as possible for the end user. > > so we ne

Re: [nodejs] Re: Server-to-Server Communication

2012-10-28 Thread Arunoda Susiripala
Marak, How about hook.io, what happen to it? On Sun, Oct 28, 2012 at 12:28 PM, Marak Squires wrote: > No, that is not correct. > > https://github.com/LearnBoost/engine.io-client > > > On Sat, Oct 27, 2012 at 11:54 PM, Arnout Kazemier wrote: > >> Dur engine.io is for client side commu

[nodejs] a simple http server making current folder accessible from web?

2012-10-28 Thread Angelo Chen
Hi, trying to find a quick and dirty solution in nodejs: often need to access a folder in mac from ipad's Safari, is there a simple, one file nodejs script that can do it? thanks, Angelo -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-Li