Re: [nodejs] Re: node.js API documentation clean up

2014-06-24 Thread José F . Romaniello
I agree with Alex. I also use this thing to read offline which has a nice search feature http://kapeli.com/dash I know there are some similar products. El jun 24, 2014 6:06 AM, Alex Kocharin a...@kocharin.ru escribió: Similar/related things are grouped together, i.e. (in case of net)

Re: [nodejs] Re: node.js API documentation clean up

2014-06-24 Thread José F . Romaniello
Here is another that I like a lot http://devdocs.io El jun 24, 2014 7:42 AM, José F. Romaniello jfromanie...@gmail.com escribió: I agree with Alex. I also use this thing to read offline which has a nice search feature http://kapeli.com/dash I know there are some similar products. El jun

[nodejs] npm shrinkwrap and different repositories

2014-04-04 Thread José F . Romaniello
Is it possible to use npm shrinkwrap but at the same time allowing different repositories? When I do npm shrinkwrap the generated JSON contains the urls to the official repository, then npm install will always fetch from the oficial repository url ignoring the global repository configured

Re: [nodejs] How to retrieve this object sent from websocket on the server

2014-03-27 Thread José F . Romaniello
ws.on('message', function(message) { var msg = JSON.parse(message); console.log(msg.b); }); Since you can only send and receive string messages, you will need some way to identify the different messages. One trick I usually do with this particular module in the server is this: var

Re: [nodejs] Question on npm dependency vs devDependency and sharing dependencies

2014-02-12 Thread José F . Romaniello
Yes, I've this exact same issue with npm prune --production (I dont know if it was reported early on npm). This commands remove devDependencies, but sometimes a dependency has a dependency on the same version that a devDependency and npm install installs only once. My only advice will be to do:

Re: [nodejs] Get remote IP

2014-01-22 Thread José F . Romaniello
As far I understand with service like this or http://hidemyass.com/ you can't. You shouldn't use the X-Forwarded-For header for anything related to security. More info here: http://r.va.gg/2011/07/wrangling-the-x-forwarded-for-header.html Also, if you use nginx in front of node, you might

Re: [nodejs] Installable nodejs apps

2014-01-16 Thread José F . Romaniello
this easier. 2014/1/16 José F. Romaniello jfromanie...@gmail.com 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

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

Re: [nodejs] [ANN] gee

2014-01-14 Thread José F . Romaniello
I saw this few months ago, and I had one question how many times do you change your package.json manually? I use: - npm i module —save (or —save-dev) - npm remove module —save - npm version patch/minor/major And things like that which does not only change the package but do the

Re: [nodejs] any difference between node-jwt vs simple-jwt ?

2014-01-13 Thread José F . Romaniello
Hi, we wrote a blog post about this specific subject here: http://blog.auth0.com/2014/01/07/angularjs-authentication-with-cookies-vs-token/ In the example we use express-jwt which is a simple middleware that parses the Authorization header and validates the JWT using jsonwebtoken:

Re: [nodejs] TypeError(Parameter 'url' must be a string While Parsing a URL

2014-01-10 Thread José F . Romaniello
if req is request http://github.com/mikeal/request , it doesn't have a url property. What are you trying to do? 2014/1/10 JPJen caroline@gmail.com 0 down vote

[nodejs] proxy NTLM - keep upstream connection alive per client?

2014-01-10 Thread José F . Romaniello
I’m looking for a way to proxy an NTLM server with node. NTLM handshake/negotiation requires the same TCP connection, so for instance this will not work: var http = require('http'); var request = require('request'); http.createServer(function (req, res) { req.pipe(request('http://upstream/'

Re: [nodejs] Re: proxy NTLM - keep upstream connection alive per client?

2014-01-10 Thread José F . Romaniello
Can you not perform an HTTP redirect to the upstream url instead? No, it is not what I'm looking for. 2014/1/10 mscdex msc...@gmail.com On Friday, January 10, 2014 4:51:56 PM UTC-5, José F. Romaniello wrote: I’m looking for a way to proxy an NTLM server with node. NTLM handshake

Re: [nodejs] we need a new mongodb driver for node

2013-12-30 Thread José F . Romaniello
One of the problem I had with the native driver over and over was that you should keep the db instance somewhere, but it is returned asynchronous from the connect method. So, you have to make sure that you call connect only once and you keep that instance somewhere. I didn't like this API so using

Re: [nodejs] path.resolve HOME flattening

2013-12-24 Thread José F . Romaniello
I do something like this but with process.env.HOME just for linux in my case El dic 24, 2013 8:55 p.m., Nathan Rajlich nat...@tootallnate.net escribió: On Tue, Dec 24, 2013 at 1:59 PM, Sam Roberts s...@strongloop.com wrote: On Tue, Dec 24, 2013 at 1:07 PM, Sitnin sit...@ya.ru wrote: Is there

Re: [nodejs] Re: access mysql/ms sql database with nodes in html5

2013-12-13 Thread José F . Romaniello
Does this one works on Linux? https://github.com/WindowsAzure/node-sqlserver Last time I check was Windows only, so we used tedious El dic 13, 2013 5:09 a.m., Tomasz Janczuk tom...@janczuk.org escribió: For connecting from Node.js to MS SQL check out Edge.js (

[nodejs] bundle dependency with native dependencies

2013-11-25 Thread José F . Romaniello
I have a module with a bunch of bundled dependencies (bundledDependencies in package.json). I've noticed that if the bundled dependency is native (compiled/node-gyp) it will be rebuild when I install my module. However, it the bundled dependency has a dependency on a native module this will not

Re: [nodejs] Re: [Poll/RFC] Remove the built-in debugger

2013-11-17 Thread José F . Romaniello
I use 'nodev script.js' (or nodev --debug-brk) https://npmjs.org/package/nodev El nov 17, 2013 12:52 p.m., Floby florent.j...@gmail.com escribió: I haven't had the need for a debugger in probably years. I recently used node-inspector and it worked reasonably well for me (breaking on

Re: [nodejs] Announcing European npm mirror

2013-11-15 Thread José F . Romaniello
What about publish? Is it possible to publish to a replica and have that pushed to the main one? El nov 15, 2013 5:58 p.m., Maciej Małecki m...@mmalecki.com escribió: I'm planning to set up a DNS server - for example domain best.npmjs.org, which'd redirect you to the closest registry basing on

Re: [nodejs] how do you deploy (a specfic version) of node to your production boxes?

2013-11-14 Thread José F . Romaniello
13, 2013 7:04:51 PM UTC-8, José F. Romaniello wrote: I use a puppet module that installs with Isaac's nave : https://github.com/danheberden/puppet-nodejs Nave is fast on debians because it downloads the binaries. My fork of the puppet moduke works on redhats too. El nov 13, 2013 10:26 p.m

Re: [nodejs] how to get a console output to show up (from the request package)

2013-11-14 Thread José F . Romaniello
it seems to be matching a regular expression, NODE_DEBUG should contain the string request. So, you can run your application as follows: NODE_DEBUG=request node your_app.js 2013/11/14 Reza Razavipour reza.razavip...@gmail.com Still fairly new to node.js !!! I am using node-soap and it uses

Re: [nodejs] how to get a console output to show up (from the request package)

2013-11-14 Thread José F . Romaniello
Reza Razavipour reza.razavip...@gmail.com thanks for the response. How do I do that in the code itself? and how do I do multiple ones? lets say debugging for http and request and xyz package. On Thursday, November 14, 2013 10:17:53 AM UTC-8, José F. Romaniello wrote: it seems to be matching

Re: [nodejs] how do you deploy (a specfic version) of node to your production boxes?

2013-11-13 Thread José F . Romaniello
I use a puppet module that installs with Isaac's nave : https://github.com/danheberden/puppet-nodejs Nave is fast on debians because it downloads the binaries. My fork of the puppet moduke works on redhats too. El nov 13, 2013 10:26 p.m., Aaron Boyd aa...@nomic.com escribió: We've been using

Re: [nodejs] Are there benefits from minifying modules for node.js?

2013-11-12 Thread José F . Romaniello
No. Quoting wikipedia: Minified source code is especially useful for interpreted languageshttp://en.wikipedia.org/wiki/Interpreted_language deployed and transmitted on the Internet (such as JavaScripthttp://en.wikipedia.org/wiki/JavaScript), because it reduces the amount of data that needs to be

Re: [nodejs] How to undo npm link?

2013-11-12 Thread José F . Romaniello
Usually this works for me in this case: npm remove -g module_name 2013/11/10 cgcgbcbc cgcgb...@163.com I run npm link in my project directory and without any parameters. This makes a link /usr/local/lib/node_modules to my project. And run npm unlink got a warn : npm WARN uninstall

Re: [nodejs] How does one set the process user?

2013-11-08 Thread José F . Romaniello
I usually register my node.js servers as daemons (services) with upstart. Upstar scripts can have setuid : http://upstart.ubuntu.com/cookbook/#setuid To run a command from the CLI as another user you can use sudo -u user command eg: sudo -u user node server.js 2013/11/8 Robert Steckroth

Re: [nodejs] How does one set the process user?

2013-11-08 Thread José F . Romaniello
:48 AM, José F. Romaniello jfromanie...@gmail.com wrote: I usually register my node.js servers as daemons (services) with upstart. Upstar scripts can have setuid : http://upstart.ubuntu.com/cookbook/#setuid To run a command from the CLI as another user you can use sudo -u user command eg

Re: [nodejs] Re: What do people do for versionizing node modules within git?

2013-11-06 Thread José F . Romaniello
We do not version node_modules for our deploying apps but we use shrinkwrap and packaging all deps in CI after running all tests using http://github.com/carlos8f/bundle-deps. This little cli utility move all dependencies to bundleDependencies. The CI script is something along these lines: npm

Re: [nodejs] [opinion-request] Routing Syntax

2013-11-05 Thread José F . Romaniello
is important. 2013/11/5 Alex Kocharin a...@equenext.com On Monday, November 4, 2013 10:54:12 PM UTC+4, José F. Romaniello wrote: 2013/11/4 Simon simon@gmail.com app.get('/users/:id[int]', function(req, res, id) { ... }); app.get('/users/:name', function(req, res, username

Re: [nodejs] npm (partially) down?

2013-11-04 Thread José F . Romaniello
same here, some Error: socket hang up 2013/11/4 Chris Scribner scr...@gmail.com I'm getting a lot of error parsing json errors when trying to install npm today. $ npm install lru-cache npm http GET https://registry.npmjs.org/lru-cache/2.3.0 npm http 500

Re: [nodejs] [opinion-request] Routing Syntax

2013-11-04 Thread José F . Romaniello
2013/11/4 Simon simon.stur...@gmail.com app.get('/users/:id[int]', function(req, res, id) { ... }); app.get('/users/:name', function(req, res, username) { ... }); Besides the syntax, IMHO this particular example doesn't sound like a good API, some of my concerns: - It means that

Re: [nodejs] Very basic question

2013-10-30 Thread José F . Romaniello
When you call module.exports.token= You are actually creating a property with an empty string. You can change module.exports.token inside your gentoken function and it will work as expected. El oct 30, 2013 7:52 p.m., rendallo roen...@gmx.net escribió: Hi and sorry in advance for this very

Re: [nodejs] Chef-like tool powered by node.js?

2013-10-22 Thread José F . Romaniello
What I like about puppet (the DSL) is that it describes an state of the configuration a node should have rather than a recipe to get there. It is at some point the same difference between imperative and declarative. It means node v0.8.26 instead of download node 0.8.26 binary from this url and

Re: [nodejs] Chef-like tool powered by node.js?

2013-10-21 Thread José F . Romaniello
nodejitsu has opensource a tool like this called opsmezzo http://www.opsmezzo.com/ haven't tried yet. We use Puppet a lot. 2013/10/21 Bruno Jouhier bjouh...@gmail.com I googled a bit but did not find anything like it. Did anyone consider it? Cool features would be: * It's JavaScript *

Re: [nodejs] Is this the place to beg for help with the dreaded npm ERR! cb() never called! error?

2013-09-25 Thread José F . Romaniello
I had the same problem, cache clean doesn't work, what really works for me is to retry... so I use this on my build server: https://github.com/jfromaniello/npm-install-retry 2013/9/25 Zac Feuerborn risingf...@gmail.com The standard npm cache clean (or npm cache clear as some people type it

Re: [nodejs] do not use bodyParser with express.js

2013-09-07 Thread José F . Romaniello
This is similar to any application using var/log is vulnerable to run out of diskpace. This is why there is a Logrotate(8) http://linuxcommand.org/man_pages/logrotate8.html and tmpwatch http://linux.die.net/man/8/tmpwatch El sep 6, 2013 8:25 p.m., Andrew Kelley superjo...@gmail.com escribió:

Re: [nodejs] Can nodejs create a crypto key + certificate for me?

2013-08-31 Thread José F . Romaniello
Have a look to node-forge, is entirely js. We are using it on my selfsigned module to generate self signed certs. El ago 31, 2013 6:36 a.m., i...@bodokaiser.io escribió: Hello, you all know OpenSSL key pairs used for SSL connections. I want to create one in node.js natively unfortunately I

Re: [nodejs] Can nodejs create a crypto key + certificate for me?

2013-08-31 Thread José F . Romaniello
This one https://github.com/digitalbazaar/forge El ago 31, 2013 10:13 a.m., José F. Romaniello jfromanie...@gmail.com escribió: Have a look to node-forge, is entirely js. We are using it on my selfsigned module to generate self signed certs. El ago 31, 2013 6:36 a.m., i...@bodokaiser.io

[nodejs] Running node app behind a httpproxy

2013-08-29 Thread José F . Romaniello
We are deploying our application to a new environment where it has to run behind an httpproxy. We already know how to use http.request behind a proxy, but refactoring all our code and dependencies to work like that is very difficult. For now we monkey patched http.request and everything seems to

Re: [nodejs] Running node app behind a httpproxy

2013-08-29 Thread José F . Romaniello
, José F. Romaniello jfromanie...@gmail.com wrote: We are deploying our application to a new environment where it has to run behind an httpproxy. We already know how to use http.request behind a proxy, but refactoring all our code and dependencies to work like that is very difficult. For now

Re: [nodejs] Running node app behind a httpproxy

2013-08-29 Thread José F . Romaniello
this is not what I want, node-http-proxy allows you to build reverse proxies and so on.. I'm looking for a transparent way to make requests from node behind a proxy 2013/8/29 john.tiger john.tigernas...@gmail.com On 08/29/2013 04:52 AM, José F. Romaniello wrote: We are deploying our

Re: [nodejs] Re: How i can deploy nodejs in vps

2013-08-25 Thread José F . Romaniello
This is incorrect, screen allows you to partition a console but will not guarantee your service is automatically started at boot time or restarted if it fail. As Ryan said, it depends what OS are you targeting. The way you do services in ubuntu is with upstart. You put an script under

Re: [nodejs] how to test 301 http redirection with destionation url checking

2013-08-14 Thread José F . Romaniello
you can use the request module, with followRedirect: false https://github.com/mikeal/request#requestoptions-callback then check the Location header. By default request only follows redirects for GETs. 2013/8/14 Maxim Yefremov maxy...@gmail.com How to write test checking that urlFrom is

Re: [nodejs] Future of asynchronous programming in node

2013-08-07 Thread José F . Romaniello
I so agree with you Tim in this post in the previous one. 2013/8/6 Tim Caswell t...@creationix.com In other words, he's worried programmers won't be aware that yield can suspend you and shared mutable state can change while you're suspended. in fact this is one of the most useful things

Re: [nodejs] Future of asynchronous programming in node

2013-08-07 Thread José F . Romaniello
, // ravi ravi-li...@g8o.net escribió: On Aug 7, 2013, at 9:39 AM, José F. Romaniello jfromanie...@gmail.com wrote: Move on this is a SOLVED PROBLEM, we have had this thing in many programming languages for decades and any mediocre software developer know what yield means at the middle

Re: [nodejs] install and run an app from npm?

2013-07-19 Thread José F . Romaniello
I've a project like yours, when i run the first time, i check if there is a certificate in some directory and if it is not there I call my selfsigned module to generate a one: https://github.com/jfromaniello/selfsigned 2013/7/18 Mark Hahn m...@hahnca.com I have a node server app that I want

Re: [nodejs] new project - simpleio

2013-07-13 Thread José F . Romaniello
Screw websockets, it doesn't work the same way on all browsers, it doesn't work with some reverse proxies, it doesn't work on some PaaS and even those PaaS that advertise websockets sometimes have problems. And now even the frameworks with fallback support have problems. For most applications

Re: [nodejs] Best mocha reporter to use with Jenkins is ...?

2013-07-08 Thread José F . Romaniello
I used that one but have some problems with failures, this is not when the test fail but when everything fails before, so I changed to the bdd and added an ansi color pluging for jenkins. After all logs were pretty clear. I've had lot of problems with jenkins so I switched to Teamcity few weeks

Re: [nodejs] Compressing requests (gzip?)

2013-07-05 Thread José F . Romaniello
AFAIK that's not quite accurate, have been experimenting with share.js and ot.js for our pet project mdocs.io and what you send initially is an snapshot that can be fetched with a normal ajax request, then you broadcast every operation which is a really small json with two or three properties

Re: [nodejs] [ANN] ynpm: using package.yaml files instead of package.json

2013-06-23 Thread José F . Romaniello
Do you pack/publish with package.yaml inside? How does that works with the npm service? El 23/06/2013 13:12, Alex Kocharin a...@equenext.com escribió: Hi guys, TL;DR: I developed a package that monkey-patches npm to work with package.yaml files without any json ever written to a disk. Hope it

Re: [nodejs] Re: [ANN] ansi-canvas: Render a canvas node to your terminal

2013-06-17 Thread José F . Romaniello
I did a little experiment yesterday, tortu is an small utility to use Angel ajlogo https://github.com/ajlopez/AjLogoJs (LOGO implementation) directly in the terminal: https://github.com/jfromaniello/tortu (screenshot in the readme) you can use even shebang for logo :) I'm wondering now what's

Re: [nodejs] What is your favorite editor, (using QtCreator)?

2013-06-12 Thread José F . Romaniello
check TernJS http://ternjs.net/ works for Emacs, Vim, Sublime and Brackets(?) 2013/6/12 Luke Arduini luke.ardu...@gmail.com vim is pretty good On Wednesday, June 12, 2013, Robert Steckroth wrote: So hasd anyone got the *perfect* editor for Nodejs? I find that Qt Creator works really well

Re: [nodejs] google-api-nodejs-client, how to get contacts from google accounts?

2013-06-10 Thread José F . Romaniello
req.user.identities[0] provider is something specific for my app ignore that line.. The rest you can use it as is. Invalid grant usually means that you didn't set the correct oauth scopes. Have a look to Google's playground: https://developers.google.com/oauthplayground/?hl=es-419 2013/6/10

Re: [nodejs] google-api-nodejs-client, how to get contacts from google accounts?

2013-06-10 Thread José F . Romaniello
2013/6/10 Jyoti Chettri jy...@zyoba.com 'Authorization': 'GoogleLogin auth=' + access_token, ? in my code the authorization header is set to 'OAuth ' + access_token not GoogleLogin -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] google-api-nodejs-client, how to get contacts from google accounts?

2013-06-09 Thread José F . Romaniello
You need a valid access token with the right scopes. Then you can do this (getContactsFromGoogleApi) https://github.com/auth0/mdocs/blob/master/lib/routes/users-routes.js El 09/06/2013 07:14, Jyoti Chhetri nitrous.ooox...@gmail.com escribió: I'm working on an application which requires me to

Re: [nodejs] How to Firmly Establish your Reputation

2013-05-21 Thread José F . Romaniello
you should write a book build your reputation in a weekend with github 2013/5/21 Ray Connell rayconn...@usa.net 1. Publish your project idea to git. At this point it doesn't matter if it works. Someone will immediately contribute it and fix up the bugs. 2. Make sure it has a fairly high

Re: [nodejs] How to Firmly Establish your Reputation

2013-05-21 Thread José F . Romaniello
this reputation? -_- -- // alex 22.05.2013, 01:04, José F. Romaniello jfromanie...@gmail.com: you should write a book build your reputation in a weekend with github 2013/5/21 Ray Connell rayconn...@usa.net 1. Publish your project idea to git. At this point it doesn't matter if it works

Re: [nodejs] Re: Any suggestions for running mocha tests multiple times against different scenarios?

2013-05-17 Thread José F . Romaniello
+1 . I use this a lot 2013/5/17 Peter Rust pe...@cornerstonenw.com Perhaps a little simpler than what you have above (though perhaps you want the additional layer, I'm not sure) is to put your tests in a loop, like: var fruits = [{'name': 'apple', 'juicy': true}, {'name': 'orange',

Re: [nodejs] Re: Sending Custom Headers from Client to Server

2013-05-17 Thread José F . Romaniello
in Express 3 you can do it as: req.header(custom-header) req.get(custom-header) and also since express request is a node IncomingMessage you can use: req.headers[custom-header] Please check the *subtle* differences, - all three examples uses REQUEST not response as in one of your examples.

Re: [nodejs] what are the merits / demerits of require.extensions?

2013-05-11 Thread José F . Romaniello
It will be good to have a log with a warning.. some module is overriding your require.extension for the reasons you described before. El sábado, 11 de mayo de 2013, Ben Noordhuis escribió: On Sat, May 11, 2013 at 9:05 AM, ~flow wolfgang.l...@gmail.comjavascript:; wrote: what conventions /

Re: [nodejs] Starting and stopping node.js server from windows batch file

2013-05-09 Thread José F . Romaniello
notice that you can also put your node application as a windows service https://github.com/jfromaniello/winser 2013/5/9 Pradeep Simha pradeepsimha.ecli...@gmail.com Hi All, I am looking for a way to stop a node.js's server from a batch file. For eg: I have a batch file calledstart.bat in

Re: [nodejs] preferred license for node modules?

2013-05-07 Thread José F . Romaniello
I think there isn't a license like that and I am not a law expert (as most of you), but I'd like to put my opinion: - really rich seems very subjective. - what is the role your library have in the final product? and what is fair?. If you have a library like let's say node-redis and someone make a

Re: [nodejs] preferred license for node modules?

2013-05-07 Thread José F . Romaniello
Tern.js and some other projects I've seen was crow-founded in a similar way http://www.indiegogo.com/projects/tern-intelligent-javascript-editing The author says I am going to do this anyway, but if I reach X amount before some date it will be opensource, otherwise will be a paid-product forever,

Re: [nodejs] Best practices for token-based authentication in REST API

2013-05-01 Thread José F . Romaniello
what most people do is to open a webview for authentication, you can use oauth or any authentication mechanism, after finishing the oauth flow you get a token into your android app If you need to access an api from the same Identity Provider, you might just get the access token into the android

Re: [nodejs] how to send contents of a node.js chat window to another IM app

2013-04-25 Thread José F . Romaniello
W. T. F. El 25/04/2013 19:12, trillian trilliansou...@gmail.com escribió: About to sign up to a service which uses node.js to provide a real-time chat window where the info is time sensitive. Is it possible to relay those messages to another application in a Windows 7 or Linux VM environment?

Re: [nodejs] Re: Install a NodeJS App as a Windows System Service

2013-04-24 Thread José F . Romaniello
2013/4/24 AJ ONeal coola...@gmail.com Someone else was telling me that they've had no problem with NSSM or node-windows installing to Program Files, +1, it works perfectly fine for me. I have a module called Winser that does uses nssm and install as shwon here:

[nodejs] [ANN] mongo-getdb a very opinionated way to connect to mongodb

2013-04-20 Thread José F . Romaniello
Hi I just published mongo-getdb which is the way I use to connect to mongodb. I did this module because connecting to mongodb with the defacto driver, right is far from trivial. Most of the time you just want to have a the url to mongo in your env and call something to return a db instance which

[nodejs] [ANN] auth0, security and authentication open source modules

2013-04-20 Thread José F . Romaniello
We http://qraftlabs.com are very proud to share with you guys our product named Auth0 http://auth0.com which is based on a lot of opensource modules some from us and some from the community. I'm not going to talk about Auth0 since it is not the purpose of this mail. We tried to extract most of

Re: [nodejs] ECMAScript 6, asm.js, can node.js dump V8 or be VM agnostic?

2013-04-03 Thread José F . Romaniello
I think this might be of interest: https://github.com/creationix/luvmonkey quoting: This project is an effort to create a custom SpiderMonkey runtime that has libuv built-in. This will give it very node.js-like semantics, but using a different JavaScript engine. 2013/4/3 cpprototypes

Re: [nodejs] ECMAScript 6, asm.js, can node.js dump V8 or be VM agnostic?

2013-04-03 Thread José F . Romaniello
Suppose you build a node clone with mozilla js engine and you can use asm.js, would that, to some extend, reduce the need of native addons? Ps: +1 on kickstarter. El 03/04/2013 21:23, Stephen Belanger cyruzdr...@gmail.com escribió: To Kickstarter! :O On 3 Apr 2013 17:12, Ben Noordhuis

Re: [nodejs] urldecode?

2013-03-26 Thread José F . Romaniello
decodeURI and decodeURIComponent works on browsers and node 2013/3/26 Angelo Chen angelochen...@gmail.com Hi, is there a function nodejs can urldecode a string? Thanks, Angelo -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] [ANN] address-rfc2822

2013-03-18 Thread José F . Romaniello
I was talking about this few days ago and I love what Travisi does. Previously, I used to have an xunit kind of formater for my tests because that is what most CI servers understand, but sometimes this is kind of overengineer, and it fails, which make me think if it is really important for a CI

Re: [nodejs] Found a really nice video about NodeJS

2013-03-13 Thread José F . Romaniello
he uses node in the clandestinity, just hasn't come out of the closet yet. -- -- 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

Re: [nodejs] RFC: Looking for guidance on NPM

2013-03-07 Thread José F . Romaniello
IMHO there is not a rigid technical distinction between application and module from the npm stand point. Your application will have a package.json like any other module, with the dependencies. If your application is a command line utility you have to put a *bin*attribute in your package.json

Re: [nodejs] Re: Running CLR/.NET code in-process with node.js

2013-02-27 Thread José F . Romaniello
Looks great, already told you on twitter. There are cases where I would prefer this to an mq/worker solution. A good example that I was thinking is a middleware to log events in windows event log. It is not a CPU bound operation but event log will be easy to use from .net. I already did a native

Re: [nodejs] Re: NPM Readme vs Github Readme

2013-02-26 Thread José F . Romaniello
sorry I didn't see your repository before, I understand now 2013/2/26 xixixao xixi...@seznam.cz Thanks for the answers, but if any of you have actually looked at my repo, it is a parser generator which embeds CoffeeScript. I really don't know how to make examples in JavaScript for it. I

Re: [nodejs] How to handle errors for a batch fo async calls

2013-02-25 Thread José F . Romaniello
time you emit an event called Error the runtime exits if there is no listener? On Mon, Feb 25, 2013 at 3:12 AM, José F. Romaniello jfromanie...@gmail.com wrote: +1 on event emitter. Callback with an array of errors is not that common. You should return an event emitter with complete

Re: [nodejs] How to handle errors for a batch fo async calls

2013-02-25 Thread José F . Romaniello
, 2013 at 3:12 AM, José F. Romaniello jfromanie...@gmail.com wrote: +1 on event emitter. Callback with an array of errors is not that common. You should return an event emitter with complete and error events. be aware that when you emit an 'error' event and no one is listening in the application

Re: [nodejs] NPM Readme vs Github Readme

2013-02-24 Thread José F . Romaniello
Not that I disagree with Isaacs, but regardless of what you use for your module and regardless if you prebuild before pushing it or your module depends on coffescript (i dont suggest this), it seems important to me that you document it with javascript examples so you can reach a bigger audience

Re: [nodejs] windows-service - Run Node.JS programs as native Windows Services.

2013-02-22 Thread José F . Romaniello
Windows-service looks very nice, well done! Jeremy: winser is a wrapper around nssm with some friendly defaults for node.js. It will install the application as a service and it will run it with npm start. Some PROs I see in *winser/nssm*: - nssm in my opinion has more time around and it has

Re: [nodejs] windows-service - Run Node.JS programs as native Windows Services.

2013-02-22 Thread José F . Romaniello
Sure thing Stephen! I am the author of winser and I gave my point of view on your project and as I said it looks *very nice*, I will consider next time i have to deploy something to a windows server. for me node.js is about alternatives, so i am really glad winser is not the only option to run

Re: [nodejs] Native Windows services in Node.js

2013-02-16 Thread José F . Romaniello
I used nssm once and did this https://github.com/jfromaniello/winser El sábado, 16 de febrero de 2013, Stephen Vickers escribió: Hi All, I am considering an attempt to implement native Windows service support for Node.js. For myself it's purely a learning excercise, and at this stage I

Re: [nodejs] Proxy server with authentication

2013-02-15 Thread José F . Romaniello
, 2013 2:17:19 PM UTC+5:30, greelgorke wrote: yes, passportjs is a good choice. the examples on passportjs.org use express routes, but the important parts are passport.authenticate calls. it's agnostic enough. Am Freitag, 15. Februar 2013 01:02:26 UTC+1 schrieb José F. Romaniello: Ob sorry, i

Re: [nodejs] Proxy server with authentication

2013-02-15 Thread José F . Romaniello
://passportjs.org/guide/configure/ how to handle sessions. you could throw in a memory db like memcached or redis, or just hold it in memory by yourself. for distributed proxy i'd suggest redis or even a rdbms. Am Freitag, 15. Februar 2013 17:07:53 UTC+1 schrieb José F. Romaniello: @greelgorke

Re: [nodejs] Proxy server with authentication

2013-02-14 Thread José F . Romaniello
If you need more than basic auth (user and pass in a header) you will need also sessions, so rather than the http-proxy i will recommend you using connect/express + passport, and to pipe the requests after validating the user thru mikeal/request. This is more than just a proxy. Imho there is no

Re: [nodejs] Proxy server with authentication

2013-02-14 Thread José F . Romaniello
Ob sorry, i nver used passport other than as a connect middleware, and as I said he probabily needs some kind of sessions to store at least the user is logged in. So, i think connect will be easier. But if you know any other way please go ahead i know also you could use connect and http proxy on

Re: [nodejs] Re: [ANN] windows-eventlog 1.0.0

2013-02-11 Thread José F . Romaniello
by the Esta bueno, pero... though, I think node.js on windows is a first-class citizen, and not just for multi-platform, and the eventlog is an excellent transport choice. Regards, On Thursday, January 31, 2013 12:11:51 PM UTC-3, José F. Romaniello wrote: Hi, I just wanted to share my small native

Re: [nodejs] Elegant way to require('some-app-component')

2013-02-10 Thread José F . Romaniello
kind of off-topic but I used to hate to calculate relative paths when doing require, so what i did is to build an extension for my code editor that let me search files by name or folder name, and when I select it it auto calculate the relative path from the file i am editing and insert the right

[nodejs] node-gyp and /clr option for msbuild

2013-01-31 Thread José F . Romaniello
Is there a way to configure de binding.gyp in order to use /clr option in msbuild. I am getting this error when I try to build ..\src\myaddon.cpp(3): fatal error C1190: managed targeted code requires a '/clr' option thanks -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] Re: node-gyp and /clr option for msbuild

2013-01-31 Thread José F . Romaniello
' } } }] ], 'include_dirs': ['.'], 'sources': [ 'src/EventLog.cpp' ] } ] } On Thursday, January 31, 2013 9:29:03 AM UTC-3, José F. Romaniello wrote: Is there a way to configure de binding.gyp in order to use /clr option in msbuild. I am getting this error when I try

Re: [nodejs] Re: node-gyp and /clr option for msbuild

2013-01-31 Thread José F . Romaniello
2013/1/31 José F. Romaniello jfromanie...@gmail.com 'ClCompile': { * 'ExceptionHandling': 'Async', * 'CompileAsManaged':'true' } I am close now.. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You

[nodejs] [ANN] windows-eventlog 1.0.0

2013-01-31 Thread José F . Romaniello
Hi, I just wanted to share my small native addon to write logs in the Windows Eventlog (suffice it to say that it only works on Windows operative systems). https://github.com/jfromaniello/windowseventlogjs there is also a winston transport: https://github.com/jfromaniello/winston-winlog

Re: [nodejs] [Idea]: npm as a dependancy injector.

2013-01-29 Thread José F . Romaniello
2013/1/22 Matt Walters mattwalte...@gmail.com I built a nearly identical module with a nearly identical name. :P https://github.com/mateodelnorte/mockrequire 'npm install mockrequire' will get it. Wow, I didn't see yours when i did mine, I had a look at your code and for instance this

Re: [nodejs] express app.set

2013-01-29 Thread José F . Romaniello
You can use fs.existsSynchttp://nodejs.org/api/fs.html#fs_fs_existssync_pathbut I have read in this list several times it is discouraged, what happen if the file is deleted from disk *after* you ask if it exists and *before*you require it. You will be better with a try/catch. 2013/1/29 Norman

Re: [nodejs] express app.set

2013-01-29 Thread José F . Romaniello
Khine wrote: On Tuesday, January 29, 2013 7:00:53 PM UTC+1, José F. Romaniello wrote: You can use fs.existsSynchttp://nodejs.org/api/fs.html#fs_fs_existssync_pathbut I have read in this list several times it is discouraged, what happen if the file is deleted from disk *after* you ask

Re: [nodejs] Precompiled 32- and 64-bit Windows binaries for node addons

2013-01-28 Thread José F . Romaniello
I do this for my windows-eventlog module https://github.com/jfromaniello/windowseventlogjs It is packaged with the two nodes files. I wish I have a build script for this with node-gyp, haven't figure out yet, but shiping precompiled for windows is a must, since I usually don't want to install

Re: [nodejs] Re: How can I hide node console window on Windows?

2013-01-25 Thread José F . Romaniello
as an administrator i got this err when i run this on win server 2003 i logon this server as an administrators group member 在 2012年6月3日星期日UTC+8上午10时37分02秒,José F. Romaniello写道: I did this, and works very fine for me: http://jfromaniello.github.**com/winser/http

Re: [nodejs] Re: How can I hide node console window on Windows?

2013-01-25 Thread José F . Romaniello
. The specified account name is already a member of the local group. 在 2013年1月26日星期六UTC+8上午6时02分57秒,José F. Romaniello写道: what happen if you open a console and run whoami? maybe is related to this issue: https://github.com/**jfromaniello/winser/issues/6https://github.com/jfromaniello/winser/issues/6

Re: [nodejs] [Idea]: npm as a dependancy injector.

2013-01-22 Thread José F . Romaniello
This doesnt work in practice because you might want to use different test doubles for different tests, there are several ways to mock module dependencies, on option is to use vm.runInNewContext I did a module for this https://github.com/jfromaniello/mockuire it is like commonjs's require, but

Re: [nodejs] Node.js and Google Drive, OAuth2

2013-01-13 Thread José F . Romaniello
Maybe you can use passport.js with google oauth2, ask for an access token with 'offline ' so you can get a refresh token as well. I wrote a module to autorefresh the tokens and i use it with a provisioning client library i did, is on my github 2013/1/13, Angel Java Lopez ajlopez2...@gmail.com:

  1   2   >