Re: _session authentication to CouchDB from AngularJS

2013-10-01 Thread Alexander Shorin
Hi Mark, To use Cookie auth you need to make two actions: 1. POST /_session with user's credentials and get the AuthSession cookie http://docs.couchdb.org/en/latest/api/server/authn.html#post--_session 2. Make any other request with the received cookie. Example: http://docs.couchdb.org/en/latest/

_session authentication to CouchDB from AngularJS

2013-10-01 Thread Mark Deibert
I've been searching and reading articles for a full 2 weeks of evenings after work. No matter what I'm finding/trying, I cannot get CouchDB _session/cookie authentication to work. I can get the first part to work, I can setup and send the initial POST to _session with a valid user/pass and I get a

Re: Rtree is 100 to,es faster than couchdb

2013-10-01 Thread Stanley Iriele
Ahh...phone typo... What he said kinda made me doubt my knowledge... But I'm glad that what I thought is right On Oct 1, 2013 9:43 AM, "Jens Alfke" wrote: > > On Oct 1, 2013, at 7:51 AM, Stanley Iriele wrote: > > > "Rtree is 100 to,es faster than couchdb" > > (Is “to,es” a mathematical term or j

Re: Rtree is 100 to,es faster than couchdb

2013-10-01 Thread Jens Alfke
On Oct 1, 2013, at 7:51 AM, Stanley Iriele wrote: > "Rtree is 100 to,es faster than couchdb" (Is “to,es” a mathematical term or just a typo for “times”? ;-) I think this comparison is apples vs. oranges, as R-tree is a data structure while CouchDB is a program. There is a geospatial index ext

Rtree is 100 to,es faster than couchdb

2013-10-01 Thread Stanley Iriele
"Rtree is 100 to,es faster than couchdb" this comment was made today in a meeting when I brought up couchdb's incremental map/reduce feature especially for time series data. I thought R-tree was a type of tree and couchdb used some betree or kd tree for building indexes. Am i mistaken about this

Re: Automatic Date

2013-10-01 Thread Ashraf Janan
Thank you so much, You are great. Have a nice day Ashraf

Re: Automatic Date

2013-10-01 Thread Mike Marino
Hi Ashraf, Right, so to use this functionality you should set up your update document function to add a date field (you can get "now" time if this is good enough) and your mail app should POST/PUT the document to the update document url (examples in the links I sent). The exact format you save yo

Re: Automatic Date

2013-10-01 Thread Ashraf Janan
Thank you for answering, I want to see/read when my client sent his message to me, year,day,month time Best wishes Ashraf

Re: Automatic Date

2013-10-01 Thread Mike Marino
Hi Ashraf, Your best bet is to use document update functions written by you that will fill this field for you: http://docs.couchdb.org/en/latest/ddocs.html#update-functions http://wiki.apache.org/couchdb/Document_Update_Handlers When posting/putting a new document, it means you have to post/put

Automatic Date

2013-10-01 Thread Ashraf Janan
Hi Guys, Please how can i create automatic date (year,day,month) in couchDB field. I want to send Email and i want to appear date for message that i sent to my client. What is the best way to do that ?  Best regards Ashraf