Re: [nodejs] Travi CI like service for Commercial Projects

2013-06-01 Thread Martin Wawrusch
Unfortunately the pricing for circleci is very much old school, it assumes that people don't modularize their projects, which would make it even more expensive for me personally compared to travis, let alone for my company. I wish though that travis-ci could create a low cost, $49 a month single

Re: [nodejs] Using shorter ids (hashids) for mongodb objectids with mongoose

2013-05-28 Thread Martin Wawrusch
Why not simply use base56 encoding of the object id? On Tue, May 28, 2013 at 10:37 PM, George Snelling georg...@gmail.comwrote: FWIW, we scratched our head over the same problem, gave up, and wrote our own _id generator. It's a glorified timestamp with a big random seed after milliseconds

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

2013-05-01 Thread Martin Wawrusch
https://github.com/jaredhanson/oauth2orize and check out passport.js On Wed, May 1, 2013 at 2:40 PM, Matthew Page matthewnp...@gmail.com wrote: Have a look at: https://github.com/bnoguchi/everyauth or https://github.com/ciaranj/node-oauth On Wed, May 1, 2013 at 2:29 PM, Dick Hardt

Re: [nodejs] Can we drop the run-script requirement for custom npm scripts?

2013-04-23 Thread Martin Wawrusch
+1 for that. On Tue, Apr 23, 2013 at 10:13 AM, Andrew Pennebaker andrew.penneba...@gmail.com wrote: It would be nice to not have to type run-script to refer to custom scripts. Some package managers like leiningen expose custom scripts without any fuss (lein cust). Could we do the same with

Re: [nodejs] Can we drop the run-script requirement for custom npm scripts?

2013-04-23 Thread Martin Wawrusch
Why does it have to be that complicated? Built in commands always take precedence, if there is a conflict than npm will print a nice fat warning saying that an internal command overshadows a custom script On Tue, Apr 23, 2013 at 3:05 PM, Luke Arduini luke.ardu...@gmail.comwrote: Yes, of

Re: [nodejs] Re: Brumba Web application builder for Node.js and MongoDb

2013-04-05 Thread Martin Wawrusch
To add to that: npm outdated shows you a list of outdated npms in your package.json And there is police (npm install -g police) which does the same, in a bit different way. On Fri, Apr 5, 2013 at 11:04 AM, Duncan Wilkie duncananguswil...@gmail.comwrote: Thanks for noting shrinkwrap, that's

Re: [nodejs] Job management in Node

2013-04-04 Thread Martin Wawrusch
https://github.com/flatiron/neuron might be what you need On Thu, Apr 4, 2013 at 8:30 PM, Scott Elcomb pse...@gmail.com wrote: On Thu, Apr 4, 2013 at 10:47 PM, Jatin Patel jatin.je...@gmail.com wrote: Hi, I'm looking for a simple way to create a job and then execute that job after some

Re: [nodejs] Re: Templating engines

2013-04-03 Thread Martin Wawrusch
@tauren For us it really works the opposite way - we filter out people who are not willing/able to learn Coffeescript/Stylus/Jade - it is a good test to judge if people are flexible. I trained a few people in those technologies and the good ones were productive within a day or two, with some

Re: [nodejs] Templating engines

2013-04-02 Thread Martin Wawrusch
Groups nodejs group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Martin Wawrusch p: +1 310 404 1698 modeista.com - Connect With Style I blog

Re: [nodejs] [ANN] node.js in ERP-land

2013-03-29 Thread Martin Wawrusch
Enterprise Resource Planning - Basically everything you need to run a company, like accounting, costing, inventory management, financial planning, integrated into one well oiled machine (that's what marketing claims :-)) On Fri, Mar 29, 2013 at 10:36 AM, Mark Hahn m...@hahnca.com wrote: You

Re: [nodejs] Can you review my post Structuring a node.js web application with Express and give opinions?

2013-03-15 Thread Martin Wawrusch
I like it. You might want to change the following though: pass the path of the controller folder to your route registrar instead of hardcoding it there. A problem you might run into is the ordering of the routes. This is normally not an issues except when you have entities like usernames in the

Re: [nodejs] Using NodeJs with through $.get method of jQuery

2013-02-17 Thread Martin Wawrusch
Take a look at https://github.com/agrueneberg/Corser this solves your cross domain issues for all somewhat modern browsers. On Sun, Feb 17, 2013 at 10:52 AM, Anton Whalley anton.whal...@nearform.comwrote: Or put node.js http-proxy in front of WAMP and make all request to that -- -- Job

Re: [nodejs] David - a tool to help you manage your node project dependencies - http://david-dm.org

2013-01-31 Thread Martin Wawrusch
So it is basically an online version of police ( https://github.com/pksunkara/npm-police). Good idea, I would love to see it for private github and bitbucket repos though. On Thu, Jan 31, 2013 at 9:12 AM, Jacob Groundwater ja...@nodefly.comwrote: Very nice Alan. Personally, I think if people

Re: [nodejs] suggestions for API tests

2013-01-22 Thread Martin Wawrusch
Yeah mocha + request are great for this kind of stuff. Sent from my iPhone On Jan 22, 2013, at 4:55 PM, Boris Egorov dolphin...@gmail.com wrote: You can pick `mocha` (http://visionmedia.github.com/mocha/) or `vows` (http://vowsjs.org/) to write your tests and mikeal's `request`

Re: [nodejs] What is the preferred authentication system for Node.js?

2013-01-13 Thread Martin Wawrusch
Node.js is not Java. Passport is less than a year old, hence updates. And compared to other packages like jade the updates are rather infrequent. All in all passport is an exemplary package (or actually collection of packages). On Sun, Jan 13, 2013 at 9:05 AM, Harald Hanche-Olsen

Re: [nodejs] Waiting for two Mysql Functions?

2012-12-25 Thread Martin Wawrusch
check out the async module in npm. It is exactly what you need. On Tue, Dec 25, 2012 at 9:14 AM, Joman Sierra jomansie...@gmail.com wrote: I have this scenario: function one { Makes a query to a big mysql table } Function two { Makes another query to a big myslq table }

Re: [nodejs] Maybe of interest: Why we need a NodeJS application server or: writing boilerplate code considered harmful

2012-12-15 Thread Martin Wawrusch
I think everyone here understood you very well, a lot of us have just been there and done that, in different languages, and seen the negative consequences of it. And there are a lot of great modules out there that are perfectly maintained and can be easily combined to achieve what you want to

Re: [nodejs] Suscription with Instagram

2012-11-28 Thread Martin Wawrusch
without spending too much time on this: In general make http requests using request, not curl. And in your particular case look at https://github.com/mckelvey/instagram-node-lib which supports subscriptions out of the box On Wed, Nov 28, 2012 at 3:06 PM, Denis Arosquipa gil...@gmail.com

[nodejs] How to debug memory leaks in node.js app?

2012-08-27 Thread Martin Wawrusch
Hi all, we have a bad memory leak (objects not being freed for whatever reason) in one of our API express based services, what's the best way to debug this (best = fastest way to detect the culprit), and also how can we automatically test this (we are using mocha, so that would be preferred).

Re: [nodejs] How to debug memory leaks in node.js app?

2012-08-27 Thread Martin Wawrusch
, Martin Wawrusch mar...@wawrusch.com wrote: Hi all, we have a bad memory leak (objects not being freed for whatever reason) in one of our API express based services, what's the best way to debug this (best = fastest way to detect the culprit), and also how can we automatically test this (we

Re: [nodejs] Re: How to debug memory leaks in node.js app?

2012-08-27 Thread Martin Wawrusch
That's beyond awesome, thank you. On Mon, Aug 27, 2012 at 7:23 PM, darcy freeda...@gmail.com wrote: you can use node-webkit-agent. https://github.com/c4milo/node-webkit-agent On Tuesday, August 28, 2012 4:13:37 AM UTC+8, Martin Wawrusch wrote: Hi all, we have a bad memory leak

Re: [nodejs] Re: coffeescript support in child process

2012-08-09 Thread Martin Wawrusch
With all due respect but everyone who has ever worked with Coffeescript knows that this is not true. Upfront compilation, even of larger projects, is instant. Coffeescript watches for changed files, compiles them sub second, and in the very rare cases that you have a syntax mistake (about once a

Re: [nodejs] Re: mongodb client

2012-08-08 Thread Martin Wawrusch
On Tue, Aug 7, 2012 at 12:15 PM, john.tiger john.tigernas...@gmail.comwrote: On 08/07/2012 01:48 AM, Martin Wawrusch wrote: We use mongoose and mongoskin for testing. It really depends on your scenario. In general though mongoose is a good choice. it is if you want to specify schema

Re: [nodejs] Re: mongodb client

2012-08-07 Thread Martin Wawrusch
We use mongoose and mongoskin for testing. It really depends on your scenario. In general though mongoose is a good choice. On Tue, Aug 7, 2012 at 12:44 AM, Angelo Chen angelochen...@gmail.comwrote: looking at mongojs and mongode, too many options for mongdb. On Aug 7, 2:42 pm, Luca

Re: [nodejs] bcrypt or md5 ?

2012-07-30 Thread Martin Wawrusch
brcypt. md5 is not secure at all. On Mon, Jul 30, 2012 at 12:05 PM, Yogesh Agrawal saggiyog...@gmail.comwrote: Which is more preferable to save password in DB, bcrypt or md5 ? I found https://github.com/ncb000gt/node.bcrypt.js/ lib, which is a addon to node.js to encrypt the passwords.

[nodejs] Using Atlassian Bamboo with node.js and nodejitsu

2012-07-28 Thread Martin Wawrusch
Hi guys, I would like to use Bamboo to drive continuous deployment against Nodejitsu. Is anyone on this list running Bamboo with node.js, and perhaps even using Nodejitsu as a deployment target? I am new to Bamboo so any help / ideas / etc is very much appreciated. Thanks Martin -- Job Board:

[nodejs] What's the recommended RSS Feed Parser module

2012-07-24 Thread Martin Wawrusch
Any recommendations? Thanks Martin -- 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 post to this group, send email to

Re: [nodejs] What's the recommended RSS Feed Parser module

2012-07-24 Thread Martin Wawrusch
awesome. thx. On Tue, Jul 24, 2012 at 11:07 AM, Mikeal Rogers mikeal.rog...@gmail.comwrote: There's one i wrote that is used in planet. https://github.com/mikeal/planet/blob/master/feedstream.js -Mikeal On Jul 24, 2012, at July 24, 201211:04 AM, Martin Wawrusch wrote: Any

Re: [nodejs] need help with sub routine callback with for loop

2012-07-16 Thread Martin Wawrusch
This should help: https://github.com/caolan/async On Mon, Jul 16, 2012 at 5:55 PM, john.tiger john.tigernas...@gmail.comwrote: stuck in async hell - page displaying (with null) before going thru full loop and returning total with data - probably some simple funct wrap but can't see it -

Re: [nodejs] need help with sub routine callback with for loop

2012-07-16 Thread Martin Wawrusch
With all due respect, this library is one of the most used in the whole node.js ecosystem and is definitely simpler to use then rolling your own, AND testing it. On Mon, Jul 16, 2012 at 7:15 PM, john.tiger john.tigernas...@gmail.comwrote: On 07/16/2012 07:41 PM, Martin Wawrusch wrote

Re: [nodejs] Fwd: [CTTE #614907] Resolution of node/nodejs conflict

2012-07-14 Thread Martin Wawrusch
Really love how people take something clean, simple and cool and completely fuck it up with complexity (That's sarcasm). On Sat, Jul 14, 2012 at 8:14 AM, Carl Fürstenberg azat...@gmail.com wrote: On Sat, Jul 14, 2012 at 4:50 PM, Bert Belder bertbel...@gmail.com wrote: Maybe this is the

Re: [nodejs] Queue requests

2012-07-07 Thread Martin Wawrusch
alanhoffmeis...@gmail.com wrote: The major problem is the logic, I had mastered amqp already. Em Jul 7, 2012, às 4:55 PM, Martin Wawrusch mar...@wawrusch.com escreveu: No docs that I know of, but take a look at the amqp npm module, it works fine with RabbitMQ (at least it used to a year back

Re: [nodejs] Queue requests

2012-07-07 Thread Martin Wawrusch
upload, I guess. The only solution I can see: open a socket from A to B, and pipe to it the incoming request (I apologize... my English, I'm struggling trying to express the idea ;-). But I could misunderstand the initial question.. On Sat, Jul 7, 2012 at 5:23 PM, Martin Wawrusch mar

Re: [nodejs] devil's advocate: why would I choose nodejs over MVC + IIS?

2012-07-03 Thread Martin Wawrusch
I agree with Dan on this one. The key benefits of node.js vs C#/IIS (I have been doing that since 2000): * Pleasant development experience * Access to the newest technologies and ides (just remember the drama getting coffeescript, sass etc support in the VS environment) * The module system (npm)

Re: [nodejs] Re: Should i use node?

2012-06-22 Thread Martin Wawrusch
Well, node.js is a bit like the Wild West, before the railroads where built, and in my book this is a very good thing. Projects get traction or they don't, based on what people like or dislike. No big hand watching over us forcing us into doing it in a certain way. Or, more like Shadows and less

Re: [nodejs] I have a proposal!!

2012-06-01 Thread Martin Wawrusch
-1 as well. Thank you Josh. On Fri, Jun 1, 2012 at 12:39 PM, Joshua Holbrook josh.holbr...@gmail.comwrote: -1 as I like my modules exactly as they are. --Josh On Fri, Jun 1, 2012 at 12:32 PM, Angel Java Lopez ajlopez2...@gmail.com wrote: neither to add some sync function at core ;-)

Re: [nodejs] Get latest version

2012-05-28 Thread Martin Wawrusch
use https://github.com/visionmedia/n On Mon, May 28, 2012 at 12:22 PM, Alan Hoffmeister alanhoffmeis...@gmail.com wrote: Hello there! Is there a clean way for getting the last stable version of Node.js? I would really like to GET http://nodejs.org/versions and retrieve a list of versions

Re: [nodejs] Implement Password Reset in Node.js

2012-05-13 Thread Martin Wawrusch
passportjs.org not that dreaded Microsoft thingy from around 2000 On Sun, May 13, 2012 at 9:02 AM, Matthew Hazlett hazl...@gmail.com wrote: if you use passport then they need to use passport to change their password. Anyway I think passport became Windows Live ID. On 5/13/2012 11:44 AM,

Re: [nodejs] Calculation bug

2012-05-11 Thread Martin Wawrusch
There is a great paper about this out there, but you can get the gist here: http://floating-point-gui.de/ On Fri, May 11, 2012 at 10:41 AM, Yogesh Agrawal saggiyog...@gmail.comwrote: Hi, I am performing a simple calculation in node.js, but receiving strange result. 0.2 + 0.1 should be

Re: [nodejs] Hosting NodeJs How?

2012-05-03 Thread Martin Wawrusch
Totally +1 for nodejitsu.com On Thu, May 3, 2012 at 2:01 PM, Stephan Bardubitzki bard...@gmail.comwrote: +1 for nodejitsu, deploying is just a piece a cake. And very supportive and dedicated folks too. On Thu, May 3, 2012 at 6:41 AM, Nuno Job nunojobpi...@gmail.com wrote: This should

Re: [nodejs] Hosting NodeJs How?

2012-05-03 Thread Martin Wawrusch
Setting it up is not the problem for most people, keeping it running is, especially when you have hundreds of other things to do. It is just good to know that Marak and his team take care of all this stuff, in multiple time zones, Same goes for mongohq.com, which is just awesome for hosting

Re: [nodejs] Send JQuery Error Message in ExpressJS Response

2012-04-24 Thread Martin Wawrusch
Look into this module here. https://github.com/visionmedia/express-messages and this one if you use bootstrap: https://github.com/JasonGiedymin/express-messages-bootstrap cheers Martin On Tue, Apr 24, 2012 at 4:31 AM, Richard Marr richard.m...@gmail.comwrote: Not sure what the main problem is

Re: [nodejs] jade locals in express

2012-04-20 Thread Martin Wawrusch
Yes. See here: https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x Upgrading is painless and takes about an hour or two tops (did it this week for a couple of sites). One thing that is important when using npm: Always hardcode the version numbers and use a tool like police

Re: [nodejs] Re: Asset management in node.js

2012-04-15 Thread Martin Wawrusch
:) Best regards, Andreas Lind Petersen (papandreou) On Saturday, April 14, 2012 8:19:06 AM UTC+2, Martin Wawrusch wrote: Hi guys, I am looking for an asset management solution similar to sprockets / assetpipeline on rails (http://guides.rubyonrails.** org/asset_pipeline.html#**manifest-files

[nodejs] Asset management in node.js

2012-04-14 Thread Martin Wawrusch
Hi guys, I am looking for an asset management solution similar to sprockets / assetpipeline on rails ( http://guides.rubyonrails.org/asset_pipeline.html#manifest-files-and-directives ). What's important to me is: * Fingerprinting of all assets so that there are no problems with CDNs * Support for

Re: [nodejs] Re: How to avoid callback hell?

2012-04-09 Thread Martin Wawrusch
+1 to mscdex and Mark Hahn. It's up to the developer if he wants to make his live easy or hard. That's true for node.js and every other platform too. Cheers Martin On Sun, Apr 8, 2012 at 11:38 PM, Matthew Hazlett hazl...@gmail.com wrote: Done that way for consistency. if the connection

Re: [nodejs] Re: Modest proposal to make async optional in Node.js

2012-04-07 Thread Martin Wawrusch
I am feeling upset actually. I think I never posted anything in all those sync related threads, but this thread tipped it for me. You know the what's the best way to kill something great? To add features that destroy its identity. The moment you add things like sync to node you blur the message,

Re: [nodejs] OpenID for Login via Google (node-openid)

2012-04-05 Thread Martin Wawrusch
Or http://passportjs.org/ On Thu, Apr 5, 2012 at 8:08 AM, Chris Rhoden carho...@gmail.com wrote: Indeed, I suspect you will be happier with https://github.com/bnoguchi/everyauth Google is supported as well as many (many) other providers, and setup is trivial if you're using express/connect

Re: [nodejs] Production Deployment Question

2012-04-03 Thread Martin Wawrusch
+ 1 for hook.io. Or simply push your services to nodejitsu.com and let them figure out how to keep them up. And take a look at transloadit.com, that's a node based image processing service that you could use to replace your own. One less thing to worry about. On Tue, Apr 3, 2012 at 10:08 PM,

Re: [nodejs] Re: Best way to organize modules which has dependencies

2012-03-24 Thread Martin Wawrusch
As you mentioned authentication as an example use case may I suggest you look at http://passportjs.org The way it integrates works really well in practice. On Fri, Mar 23, 2012 at 10:29 PM, Eldar eldar...@gmail.com wrote: For now I would refactor your module in this way: // authentication

Re: [nodejs] Re: which one is correct ?

2012-03-09 Thread Martin Wawrusch
On Fri, Mar 9, 2012 at 10:36 AM, Roly Fentanes roly...@gmail.com wrote: btw http://www.devthought.com/2011/12/22/a-string-is-not-an-error/ +1 for that, and while we are at it: The whole thread is a great example why it is so important to use libraries like underscore's find:

Re: [nodejs] Re: Payment Gateway / Card Processing

2012-03-02 Thread Martin Wawrusch
that they have a fancy AJAXy payment submission process, though, and that they publish their rate (it's higher than the rate I got last time I got a merchant account, though). Cheers, Dobes On Mar 2, 2:18 pm, Martin Wawrusch mar...@wawrusch.com wrote: You are mistaken. Stripe, removes the need

Re: [nodejs] Payment Gateway / Card Processing

2012-03-01 Thread Martin Wawrusch
Yes, absolutely stripe. The best by far. Here is a link that explains how to use it with node.js: http://www.catonmat.net/blog/stripe-payments-with-node/ On Thu, Mar 1, 2012 at 11:23 AM, Mark Hahn m...@hahnca.com wrote: Stripes is the only way to go. Check it out. I'm using it on a new