Re: does jquery.couch actually work ?

2012-09-21 Thread john.tiger
On 09/21/2012 10:07 AM, Ryan Ramage wrote: John, It seems you are serving your html from port 80, but it is trying to access couchdb on port 5984. That is a cross domain request. using couch.jquery.js I think what you can do is fiddle with $.couch.urlPrefix = "/_couch"; I know there's a prob

Re: RSS/Atom feed show/list function

2012-09-21 Thread Jens Alfke
On Sep 21, 2012, at 9:55 AM, Benoit Chesneau mailto:bchesn...@gmail.com>> wrote: well it just works for our usage: http://refuge.io/blog Mustache by itself doesn't escape it so i's good I guess. Date are provided usig the iso format. It doesn’t pass the W3C validator: http://validator.w3.org

Re: RSS/Atom feed show/list function

2012-09-21 Thread Benoit Chesneau
On Fri, Sep 21, 2012 at 6:26 PM, Jens Alfke wrote: > > On Sep 20, 2012, at 11:53 PM, Benoit Chesneau wrote: > >> https://github.com/refuge/refuge.blog/blob/master/lists/rss_feed.js > > Two potential issues with this, from quick inspection: > > (1) The date is emitted from the template just using

Re: RSS/Atom feed show/list function

2012-09-21 Thread Jens Alfke
On Sep 20, 2012, at 11:53 PM, Benoit Chesneau wrote: > https://github.com/refuge/refuge.blog/blob/master/lists/rss_feed.js Two potential issues with this, from quick inspection: (1) The date is emitted from the template just using "{{created_at}}”. It’s not clear whether the created_at field

Re: does jquery.couch actually work ?

2012-09-21 Thread Ryan Ramage
John, It seems you are serving your html from port 80, but it is trying to access couchdb on port 5984. That is a cross domain request. using couch.jquery.js I think what you can do is fiddle with $.couch.urlPrefix = "/_couch"; R On Fri, Sep 21, 2012 at 9:50 AM, john.tiger wrote: > On 09/21

Re: does jquery.couch actually work ?

2012-09-21 Thread john.tiger
On 09/21/2012 09:09 AM, Simon Metson wrote: Do you get anything in either CouchDB or nginx logs? from javascript console: XMLHttpRequest cannot load http://127.0.0.1:5984/testdb/_view/getuserdoc. Origin http://127.0.0.1 is not allowed by Access-Control-Allow-Origin from /var/log/couchdb: [F

Re: does jquery.couch actually work ?

2012-09-21 Thread Simon Metson
Do you get anything in either CouchDB or nginx logs? On Friday, 21 September 2012 at 16:07, john.tiger wrote: > On 09/21/2012 06:00 AM, Simon Metson wrote: > > Yup, you'll need to proxy CouchDB so that everything appears to come from > > the same server. http://wiki.apache.org/couchdb/Nginx_As

Re: does jquery.couch actually work ?

2012-09-21 Thread john.tiger
On 09/21/2012 06:00 AM, Simon Metson wrote: Yup, you'll need to proxy CouchDB so that everything appears to come from the same server. http://wiki.apache.org/couchdb/Nginx_As_a_Reverse_Proxy might be a decent place to start. thks for this reference - still cannot get it to work - here is the

Re: Multiple authentication DBs

2012-09-21 Thread Adam Kocoloski
Certainly, that would work, but I'm not sure what the OP was trying to accomplish by the separation in the first place. Adam On Sep 21, 2012, at 9:42 AM, Keith Gable wrote: > Couldn't you technically replicate the other DB into the main one? > On Sep 21, 2012 8:11 AM, "Adam Kocoloski" wrote:

Re: Multiple authentication DBs

2012-09-21 Thread Benjamin Young
On 9/20/2012 6:48 AM, Ramkrishna Kulkarni wrote: Hello, Is it possible to set multiple DBs as authentication DBs? Or some other way where I can use two different DBs for authentication instead of what is specified in "authentication_db". What's your primary objective with having multiple authe

Re: Multiple authentication DBs

2012-09-21 Thread Keith Gable
Couldn't you technically replicate the other DB into the main one? On Sep 21, 2012 8:11 AM, "Adam Kocoloski" wrote: > On Sep 20, 2012, at 6:48 AM, Ramkrishna Kulkarni < > ramkrishna.kulka...@gmail.com> wrote: > > > Hello, > > > > Is it possible to set multiple DBs as authentication DBs? Or some o

Re: Multiple authentication DBs

2012-09-21 Thread Adam Kocoloski
On Sep 20, 2012, at 6:48 AM, Ramkrishna Kulkarni wrote: > Hello, > > Is it possible to set multiple DBs as authentication DBs? Or some other way > where I can use two different DBs for authentication instead of what is > specified in "authentication_db". > > Thanks, > Ram Nope, sorry. Regard

Re: Summary view for Pie Charting

2012-09-21 Thread Adam Kocoloski
On Sep 20, 2012, at 8:00 AM, Matthieu Rakotojaona wrote: > This raises a question I do not know the answer for : when we use such > a _list function, are we sure we will not take into account a doc that > will be added/modified _after_ having launched the function ? That's correct, it will not.

Re: RSS/Atom feed show/list function

2012-09-21 Thread Benjamin Young
On 9/20/2012 11:16 PM, Jens Alfke wrote: On Sep 20, 2012, at 7:51 PM, Wordit wrote: Does anyone happen to have a show/list function that outputs an RSS/Atom feed? I couldn't find any in the archives so far. Just hoping somebody already has a code snippet lying around. I don’t have an answer,

Re: does jquery.couch actually work ?

2012-09-21 Thread Simon Metson
Yup, you'll need to proxy CouchDB so that everything appears to come from the same server. http://wiki.apache.org/couchdb/Nginx_As_a_Reverse_Proxy might be a decent place to start. On Thursday, 20 September 2012 at 22:04, john.tiger wrote: > On 09/20/2012 01:26 PM, Simon Metson wrote: > > Hey