replication users

2010-08-19 Thread Nathan Stott
Are there any special considerations when replicating the _users database as opposed to normal databases? Is this a good way to share users between servers that should share users and trust one another?

Re: Help with "compitation_error" an error on CouchDB 0.11.1 on Ubuntu 10.04 - CommonJS Module

2010-08-03 Thread Nathan Stott
It's too difficult to read a raw design doc. Please post the JS module you're interested in. It's also a good idea to run your JS code through jslint. Ignore warnings about the "exports" variable being undefined. On Tue, Aug 3, 2010 at 10:13 PM, David Pitman wrote: > Hi there, > > I had some

1.0 windows installer

2010-07-22 Thread Nathan Stott
When can we expect to see a windows installer for 1.0?

Re: sample couchdb application

2010-01-03 Thread Nathan Stott
l app. Do you count page views with couchdb? If so, how? > > tnx > > On Sun, Jan 3, 2010 at 9:07 PM, Nathan Stott wrote: > > CouchDB is indeed great for this usecase. I've worked on a similar site > > that is in beta currently. It uses a CouchDB backend. > > http

Re: Common security pattern?

2010-01-03 Thread Nathan Stott
If a user can access a document via Futon, he can access via the CouchDB API if he knows what he's doing. The data is exposed one way or the other if you store it in documents that users can access. There is no key-level protection on a document that I am aware of. Correct me if I'm wrong, someo

Re: sample couchdb application

2010-01-03 Thread Nathan Stott
CouchDB is indeed great for this usecase. I've worked on a similar site that is in beta currently. It uses a CouchDB backend. http://forum.motorpool.com/questions?most-recent We use a semi-traditional middle-tier running on Narwhal

Re: How to make equivalent of WHERE on JOINed table in CouchDB?

2009-12-13 Thread Nathan Stott
I have a commercial product for sites that have some of the same features as stack overflow that is about ready for production and is based on couchdb. My company was not completely against the idea of allowing the couchdb community to have a site based on it for free when I suggested it. If the

Re: Javascript templating for shows/lists

2009-12-04 Thread Nathan Stott
I second what Benoit said. EJS works great. I use it a lot. It does way more than Resig's simple templating. On Fri, Dec 4, 2009 at 8:38 AM, Yohei Sasaki wrote: > Hi, > > I'm from Rails to Couch. I use embeddedjs, too, because it is similar to > ERB. > > >Also no idea if it does html escaping

Re: representing many-to-many relations with concurrent inserts

2009-11-30 Thread Nathan Stott
Pete, You need to write a view that returns more than just LogTopicToLogEntryMap. Have it return the topic and entries too and then you can use include_docs to get it all in one query. On Mon, Nov 30, 2009 at 5:05 PM, Pete Hodgson wrote: > Roger, please accept my apologies. I'll be sure to n

Re: representing many-to-many relations with concurrent inserts

2009-11-30 Thread Nathan Stott
You may find this blog post helpful: http://www.cmlenz.net/archives/2007/10/couchdb-joins On Mon, Nov 30, 2009 at 3:21 PM, Pete Hodgson wrote: > Hi list, > > I'm a newbie with couchDB, so please forgive any transgressions. Also, I'm > cross-posting this question to Stack Overflow, > > http://sta

Re: Counting unique items

2009-11-21 Thread Nathan Stott
You can pass reduce=false to turn off the reduce step of views with reduces if that helps On Sat, Nov 21, 2009 at 3:09 PM, Guy Moulton wrote: > Hello, > > I'm trying to get a count of the number of unique items in a database. > Documents look like this: > > Item: Item_A, User: Dave > Item: Item_

Re: potential conflict resolution strategy

2009-11-13 Thread Nathan Stott
You could put nginx or another proxy server in front of couchdb and use http expires tags for your caching On Fri, Nov 13, 2009 at 5:32 PM, Alex P wrote: > i want to avoid the round trip if possible, hence the local cache. i'm not > worried about race conditions because i don't have multiple use

Re: looking for best approach to handle geo data

2009-11-13 Thread Nathan Stott
You can add the library code to your code in the view. There are utilities, like CouchApp, that will help with this. On Fri, Nov 13, 2009 at 9:47 AM, Jim Woodgate wrote: > We have some data stored in WKT format and I was looking for a good > way to index the property for a view. I saw a few ex

Re: In regards to naming of design documents

2009-11-10 Thread Nathan Stott
I don't have an answer to your question; however, I have a question. Why are you using couchdb to try to simulate tables? Why not just use a RDBMS? On Tue, Nov 10, 2009 at 6:06 PM, Chris Stockton wrote: > Hello, > > We are deciding our convention for how we will emulate tables in couch > db. Ou

Re: Sorting items by number of votes

2009-11-05 Thread Nathan Stott
ls about that in a separate > email. > > - Devon > > > > On Nov 5, 2009, at 12:53 PM, Nathan Stott wrote: > > Right now I'm using lists to do 'joins' of my multi-doc-type views. >> > > On Nov 5, 2009, at 11:43 AM, Daniel Truemper wrote: > > Yo

Re: Sorting items by number of votes

2009-11-05 Thread Nathan Stott
Lists are capable of building up arbitrary data structures much like what a client would have to do to sort it. I don't know if there is some limit on the memory usage that a list can have. If there is I have not heard of it. Right now I'm using lists to do 'joins' of my multi-doc-type views. I

Re: multiple range queries via POST?

2009-10-27 Thread Nathan Stott
I opened a JIRA ticket about this some time ago: https://issues.apache.org/jira/browse/COUCHDB-523 On Tue, Oct 27, 2009 at 12:46 PM, Paul Davis wrote: > Indeed. Good catch. > > On Tue, Oct 27, 2009 at 12:42 PM, Adam Wolff wrote: > > makes sense

Re: My first time i wrote to a mailing list.

2009-10-23 Thread Nathan Stott
I'm in the process of creating a couchdb stackoverflow site. CouchDb is working wonderfully for it! On Fri, Oct 23, 2009 at 1:36 PM, Chris Anderson wrote: > On Thu, Oct 22, 2009 at 6:51 PM, Daniel Brüggemann wrote: > > The mailing list and the Discussion Board can exist > > together, side by s

Re: Finding with two fields

2009-10-22 Thread Nathan Stott
Brian, good points On Thu, Oct 22, 2009 at 6:54 AM, Brian Candler wrote: > On Wed, Oct 21, 2009 at 08:21:50AM -0500, Nathan Stott wrote: > > You have two options. 1) use couchdb-lucene > > 2) emit multiple rows for each document. something like this: > > function(doc) {

Re: Finding with two fields

2009-10-21 Thread Nathan Stott
You have two options. 1) use couchdb-lucene 2) emit multiple rows for each document. something like this: function(doc) { var iterDate = doc.startDate; var endDate = doc.endDate; while (iterDate < endDate) { emit(iterDate); iterDate.setDay(iterDate.getDay() + 1) // mak

narwhal couchdb client

2009-10-13 Thread Nathan Stott
For those of you interested in serverjs, and more specifically narwhal, I have created a client for couchdb: http://github.com/nrstott/narwhal-couchdb

Re: couchapp templating, alternatives to template.js?

2009-09-20 Thread Nathan Stott
+1 for EJS. EJS is great. I'm using it in a project now with jack/narwhal. On Sun, Sep 20, 2009 at 4:34 AM, Benoit Chesneau wrote: > On Sun, Sep 20, 2009 at 10:27 AM, Oliver Oli > > > wrote: > > I've started writing a simple website with couchapp. It took me a few > > hours to grasp the couchd

Re: Futon Improvements

2009-09-10 Thread Nathan Stott
cinnebar, Noah is an established authority in this community. I find your emails to be a bit disparaging as well. You still haven't answered the simple question of why should anyone care that futon has a jQuery dependency? Every post you make that refers only to your squabble with Noah and to a

Re: Futon Improvements

2009-09-10 Thread Nathan Stott
I would really like to know why the jQuery dependency in futon matters at all to anyone. On Thu, Sep 10, 2009 at 12:36 PM, Noah Slater wrote: > On Fri, Sep 11, 2009 at 02:27:02AM +1000, cinnebar wrote: > > nah + jan: > > My name is Noah. > > > o you guys are jumping in because you are defensive

Re: Validation callouts over HTTP[S]

2009-08-15 Thread Nathan Stott
I've been told in IRC before that making HTTP requests from within couchdb JS code is a non-starter. They've considered it and do not want to support it. On Sat, Aug 15, 2009 at 5:34 PM, Sam Johnston wrote: > On Sat, Aug 15, 2009 at 9:07 PM, Nathan Stott wrote: > > > I

Re: Validation callouts over HTTP[S]

2009-08-15 Thread Nathan Stott
If you're talking about using the validate_docs javascript validation of couchdb, making HTTP calls is not supported there. On Sat, Aug 15, 2009 at 1:21 PM, Sam Johnston wrote: > Evening all, > > Understanding the performance implications of doing so (but planning to use > CouchDB for a largely r

Re: starting with couchdb, few general questions

2009-07-04 Thread Nathan Stott
Pawel, it being the 4th of July, I don't have that much time on the comp, but I'll try to get you going in the right direction. A good approach would be to put a doc_type field on your documents. You could fill this in with 'professor', 'student', 'course', 'course_grade', 'enrollement'. Enrollme

Re: starting with couchdb, few general questions

2009-07-03 Thread Nathan Stott
answers/opinions inline 2009/7/3 paweł kamiński > hi, all > I posted this on erlang-questions but I have no response from them so maybe > you can help clarify all this. > > recently I ve started to look at couchDB and what I see sounds great but I > have few general questions > > 1)when it is be

Re: Windows binaries for 0.9.0

2009-06-30 Thread Nathan Stott
We have a version of couchspawnkillable that works on windows. I'm really busy today, but tomorrow I'll jump on IRC or Mark Hammond may be there today. He and I have github branches where you can get the .c file to build couchspawnkillable on windows and build it yourself with a command in the co

Re: Windows binaries for 0.9.0

2009-06-30 Thread Nathan Stott
Mark Hammond and I are working on a couchdb installer for windows. The build is working well. When I have some more time to commit to it, which hopefully will be very soon, there will be an msi installer. If you want to get up and running before then, check out the wiki. It contains instruction

Re: Can I get csv data format from couchDB?

2009-06-25 Thread Nathan Stott
Use show and list functions to return CSV data. http://wiki.apache.org/couchdb/Formatting_with_Show_and_List 2009/6/25 Guozhu.Wen > The data returned from couchDB is usually a json string. Something the json > string is so big that it is time consuming for parseing this string. I use > python's

Re: Win32 installation (building the Couch ERL driver DLL).

2009-06-22 Thread Nathan Stott
you just have > read), now we have created a debug version of SpiderMonkey, use make > DEBUG_OPT=1 -f Makefile.ref to build a normal version of SpiderMonkey, use > the Windows Explorer to view the contents of the c:\js-1.7.0.\src directory, > it contains two new folders (WINNT5.1_DBG.OBJ a

Re: Win32 installation (building the Couch ERL driver DLL).

2009-06-22 Thread Nathan Stott
You're trying to build Erlang from source? I'm very interested in how your experience in following the wiki directions is going. Please advise as to where the directions can be made more clear. On Mon, Jun 22, 2009 at 12:24 PM, Heiden, W van - SPLXL < walter-van.hei...@klm.com> wrote: > Hello, >

futon tests

2009-06-10 Thread Nathan Stott
In couchdb 0.9.0 on win32, I am having some strange futon test suite behavior. The majority of the tests fail when I run them. However, then when I "run with debugger" the majority of the ones that failed then pass! For example, running multiple_rows always fails with *Exception raised:* {"error

couchdb on windows

2009-06-09 Thread Nathan Stott
I'm attempting to get couchdb working on windows. I'm down to an error in couch_util where the call to erl_ddll:load_driver is unable to find my couch_erl_driver. I have tried making this call in the erl console and I just can not get it to work even manually. I moved my couch_erl_driver to c:\pr

Re: I'd like a dish of JavaScript Awesome, please!

2009-05-20 Thread Nathan Stott
Very cool project. On Wed, May 20, 2009 at 8:29 PM, Paul Davis wrote: > Benoit, > > Buzzkill. > > http://www.apache.org/legal/resolved.html > > Looks like a gray area. I wonder if a gzipped version that's > decompressed on the fly is considered binary compatible. Or minified > JS. Didn't I see a