[nodejs] Re: set Input value using Jade template locals

2012-04-30 Thread Bika
I guess that the problem is with res.redirect, as it redirects your browser, instead of directly rendering your jade template, your locals object is not passed to the jade rendering when finally /profile is handled you could call res.render('profile.jade',{locals :{email:"profile.email"}}); (o

[nodejs] Re: How to transfer objects between Node.js and Django?

2012-04-26 Thread Bika
I've read about a similar problem here [1], they basically write from node to Redis, and use Redis' pub/sub to broadcast the changes to django. [1]: http://lincolnloop.com/blog/2012/apr/23/ginger-tech-stack/ 2012. április 25., szerda 15:15:35 UTC+2 időpontban Cassio Melo a következőt írta: > >

[nodejs] Re: working with synchronous libraries

2012-03-21 Thread Bika
27;m interested in to-be-welded-together proposals too. thanks 2012. március 20., kedd 12:12:57 UTC+1 időpontban Bika a következőt írta: > > hi, > > I'm trying to use backbone for "everything" on the server side too, and > got stuck with doing a proper validatio

[nodejs] Re: working with synchronous libraries

2012-03-20 Thread Bika
om/alexeypetrushin/rad_core/blob/master/assets/rad/models.coffee > > https://github.com/alexeypetrushin/rad_core/blob/master/assets/rad_spec/model_spec.coffee > > > On Tuesday, March 20, 2012 3:12:57 PM UTC+4, Bika wrote: >> >> hi, >> >> I'm trying to use

[nodejs] Re: node_mailer and template location

2012-03-18 Thread Bika
You might try with absolute paths: template: __dirname + "/templates/sample.txt" 2012. március 17., szombat 10:04:10 UTC+1 időpontban Angelo Chen a következőt írta: > > Hi, > > I'm trying to use node_mailer(https://github.com/Marak/node_mailer), > the sample works, when following code is insid

[nodejs] Re: Modules/tips for speeding up Node.js web development?

2012-03-09 Thread Bika
hi, we use a quite similar setup with mongodb and backbone, and we try to share as much code b/w the browser and the server as possible. As a result we have released two node packages: https://github.com/ToolPartTeam/backbone-mongodb https://github.com/nagyv/backbone-validation The first one hand

[nodejs] Re: syncronizing method calls

2012-03-06 Thread Bika
Hi Chris, thanks for your great patch and support, but it still does not work. I'm sure that I miss something in using asyncblock properly, but can't figure out what. I've updated the backbone-mongodb connector[1] with my most recent test and I would be extremely thankful if you would give a look

[nodejs] Re: Automatically populate dependencies based on node_modules folder contents?

2012-02-28 Thread Bika
you might like this one: https://github.com/nodejitsu/require-analyzer On febr. 27, 04:30, dhruvbird wrote: > On Feb 26, 11:19 am, Isaac Schlueter wrote: > > > -S|--save is only respected by `npm install`, not by any other > > command, and it's not retro-active.  (Ie, it only works when you > >

[nodejs] Re: testing a simple app.get call

2012-02-18 Thread Bika
Finally I choose vows + tobi + should.js for testing. I've put together a short post about how I made my choice: http://dev.estisia.com/2012/02/unit-testing-node-js-applications/ On febr. 17, 09:29, Bika wrote: > ok, thanks to your links, I've managed to start writing my tests wit

[nodejs] Re: testing a simple app.get call

2012-02-17 Thread Bika
ok, thanks to your links, I've managed to start writing my tests with Mocha and have nice errors all around my code :) but a new problem arised: how to wait for the database connection before my tests start running? I'm using backbone-mongodb[1] that's built on top of the native mongo driver I w