Re: Filtering of view results

2010-09-13 Thread J Chris Anderson
On Sep 13, 2010, at 12:12 AM, Henrik Skupin wrote: > > But how can I re-use the view to only show results for branch:4.0 sorted by > date or even combined branch:4.0 & platform=Mac? I tried with > ?key=[{},"4.0",{}] but none results get returned. Does the key option not > allow to specify catcha

Re: Testing map/reduce functions

2010-09-13 Thread J Chris Anderson
On Sep 13, 2010, at 9:11 AM, Thomas Rampelberg wrote: > It would be epically awsome to have unit test functionality for > map/reduce baked into couchapp . > On my infinite todo list is the idea to implement CouchApp in Node.js, which would make adding extensions like this "trivial." I dou

Re: reduce.py with newline in the end

2010-09-13 Thread J Chris Anderson
On Sep 13, 2010, at 11:01 AM, Noah Slater wrote: > > On 13 Sep 2010, at 18:00, Julian Moritz wrote: > >> Hi, >> >> I've got a problem with a view: my editors (gedit, nano) add a newline >> to the end of the reduce.py file (with a builtin reduce function), which >> lets couchdb crash. > > Acco

Re: endkey doesn't obey limit parameter and always returns entries starting with offset 0

2010-09-12 Thread J Chris Anderson
On Sep 12, 2010, at 9:39 AM, Mikeal Rogers wrote: > For pagination you can use the skip parameter instead of trying to change > the startkey for each pagination. > > http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options > > ?startkey="foo"&limit=10 > ?startkey="foo"&limit=10&skip=10 > ?

Re: Query parameters in rewrites.json not handled as default values

2010-09-12 Thread J Chris Anderson
On Sep 12, 2010, at 9:00 AM, Benoit Chesneau wrote: > On Sun, Sep 12, 2010 at 5:43 PM, Henrik Skupin wrote: >> On Sun, Sep 12, 2010 at 4:08 AM, Benoit Chesneau wrote: >> >>> >>> Well it will be a regression then. It has worked like this, and after >>> your request, we discussed about changed i

Re: Query parameters in rewrites.json not handled as default values

2010-09-12 Thread J Chris Anderson
On Sep 12, 2010, at 12:35 AM, Henrik Skupin wrote: > Hi, > > During this week while being at Couchcamp I have already talked to Chris and > we decided to follow-up on the topic in the mailing list. > I'm seeing this behavior also, and agree it should be fixed. Do you mind filing a bug report

Re: not a server admin

2010-09-11 Thread J Chris Anderson
;authentication_handlers":["oauth","cookie","default"],"authenticated":"cookie"}} > > you should be able to create a database then, as you have the _admin role. does it help to clear your brower cache? Chris > > ken >

Re: not a server admin

2010-09-11 Thread J Chris Anderson
On Sep 11, 2010, at 10:41 AM, Kenneth Tyler wrote: > ;admin = mysecretpassword > ken5 = -hashed-135a.. > > in order to fix admin party i edited local.ini as above > i restarted couch (it hashed the password) > > but when i log into futon with that account and try to crea

Re: android couchdb: how are you using it ?

2010-09-11 Thread J Chris Anderson
On Sep 11, 2010, at 2:04 AM, Dennis Geurts wrote: > > > Hi sam, > > The android apps i created up to now (internal hobby projects) all connect to > couchdb @127.0.0.1. > > Via replication, i preload the database from a remote instance. > > The documents i add to the local instance can also

Re: CouchDB The Definitive Guide - Part III

2010-09-06 Thread J Chris Anderson
it using Github) let us know how Pages goes! Chris > Thank you, > Ido > > On Mon, Sep 6, 2010 at 6:14 PM, J Chris Anderson wrote: > >> >> On Sep 5, 2010, at 11:37 PM, Ido Ran wrote: >> >>> Hi, >>> I'm learning CouchDB using the CouchDB D

Re: Best performing login implementation?

2010-09-06 Thread J Chris Anderson
On Sep 6, 2010, at 11:07 AM, Dmitry Yakimov wrote: > On 06.09.2010 21:34, Tiago Freire wrote: >> It's a mix, and additionally there are specific documents from each client >> which may be shared with one or more of the other users, or even made >> public, but that's casa-by-case. Flexible, granul

Re: Best performing login implementation?

2010-09-06 Thread J Chris Anderson
On Sep 6, 2010, at 8:50 AM, Wout Mertens wrote: > On Sep 6, 2010, at 17:24 , J Chris Anderson wrote: > >> Also it is worth noting that CouchDB has a builtin authentication system >> that gets this right, and you might just be able to piggyback on it, >> depen

Re: Best performing login implementation?

2010-09-06 Thread J Chris Anderson
On Sep 6, 2010, at 8:10 AM, Matt Goodall wrote: > On 6 September 2010 15:18, Wout Mertens wrote: > >> >> On Sep 6, 2010, at 15:39 , Tiago Freire wrote: >> >>> I am wondering about the best method for >>> implementing this. >>> >>> 1) Each username+login in a document. >>> 2) One document for

Re: CouchDB The Definitive Guide - Part III

2010-09-06 Thread J Chris Anderson
On Sep 5, 2010, at 11:37 PM, Ido Ran wrote: > Hi, > I'm learning CouchDB using the CouchDB Definitive Guide (draft edition). > I've got to part III where I start playing with Sofa application to get my > hand on real CouchApp, but there are some prolems: > > > 1. The code presented in the boo

Re: Using _update function on a design document

2010-09-02 Thread J Chris Anderson
On Sep 2, 2010, at 12:33 PM, Ben Damman wrote: > Hi everyone. > > Exactly how "special" are design documents and what can and can't one do > with them? And why are certain restrictions placed on them? > > I am trying to write an update function that will make changes to design > documents. This

Re: couchdb filters and function_clause error

2010-09-02 Thread J Chris Anderson
On Sep 2, 2010, at 9:51 AM, wrote: > > > i have a problem with couchdb filters. > > $curl > 'http://HOST/mydb/_changes?filter=app/important' > > the response i get is > the following error: > > {"error": "unknown_error", "reason": > "function_clause"} > looks like it should work to me

Re: purely curious - couch/spidermonkey vs node/v8

2010-09-02 Thread J Chris Anderson
On Sep 1, 2010, at 11:17 PM, Paul Davis wrote: > On Thu, Sep 2, 2010 at 1:47 AM, andy e wrote: >> I've got no real issue or concern, was just purely curious and was >> thinking about couch's use of SpiderMonkey as the JS engine tonight. >> >> Is there a reason why couchdb uses spidermonkey, vs

Re: list function "head" and "req" arguments

2010-09-01 Thread J Chris Anderson
On Sep 1, 2010, at 11:23 AM, Catherine Jones wrote: > Thanks, Aurelien. I'll try that approach. (I'd got confused before > working with relative urls by the extra slashes in the > _design/design_doc and _list/list_name parts of the path.) But I'm still > curious about those req and head arguments

Re: Seamless view rebuilding?

2010-08-26 Thread J Chris Anderson
On Aug 26, 2010, at 7:43 AM, Patrick Barnes wrote: > What about a staging db? > > If I had: > * Continuous replication from production->staging (for those piecemeal > updates) > * Made major batch updates to the staging server > * Rebuilt the staging server views, then > * Replicated from stagi

Re: _changes response in a custom format

2010-08-26 Thread J Chris Anderson
On Aug 26, 2010, at 7:48 AM, Zachary Zolton wrote: > Zsolt, > > There is currently no built-in functionality to transform the _changes > feed. Your best bet would be to use your favorite web scripting tools > (Rails, PHP, CGI, etc) in between CouchDB's _changes and Solr. > I would love to see

Re: what's the max size of the doc json ?

2010-08-25 Thread J Chris Anderson
On Aug 25, 2010, at 4:22 PM, sgoto wrote: > hey everyone, > > i need to store some large blobs in the doc json (base64 encoded), is > there any documentation on how large the json doc can be ? > configurable at 4GB by default > long story: attachments are not sent to function validato

Re: using _delete = true with PUT to delete documents and query servers

2010-08-25 Thread J Chris Anderson
On Aug 25, 2010, at 2:41 PM, sgoto wrote: > hey everyone, > >in some versions of couchdb (1.0.1), sending a PUT request with the > document containing a _delete = true field deletes the document and sends > the full doc json to query server validators. however, in some versions > (1.0.0 - w

Re: jsonp vs json for view

2010-08-25 Thread J Chris Anderson
On Aug 25, 2010, at 4:06 AM, Nils Breunese wrote: > Wout Mertens wrote: > >> On Aug 25, 2010, at 9:44 , Nils Breunese wrote: >> >>> J Chris Anderson wrote: >>> >>>> You also need to activate JSONP in the configuration. It's off by defaul

Re: validation oldDoc

2010-08-24 Thread J Chris Anderson
On Aug 24, 2010, at 4:03 PM, Deistl Ross wrote: > The oldDoc id should be passed to the validation function per the wiki as > part of the http request. How is that oldDoc id added to the http? Is there > a structure like "_design" or " _rev" that should be used in the http string? CouchDB h

Re: jsonp vs json for view

2010-08-24 Thread J Chris Anderson
On Aug 24, 2010, at 2:35 AM, Nils Breunese wrote: > Dan wrote: > >> If I wanted to get a view I could do this >> >> localhost:5984/mydatabase/_view/myview >> and that would return some json >> >> What would I do if I wanted it to return jsonp? >> or if that question doesn't make sense. >> How

Re: let me introduce myself .. Paul G

2010-08-22 Thread J Chris Anderson
aren't too long in coming! Chris > ken tyler > > > On Sat, Aug 21, 2010 at 4:24 PM, J Chris Anderson wrote: > >> >> On Aug 21, 2010, at 12:06 PM, Noah Slater wrote: >> >>> >>> On 21 Aug 2010, at 08:47, Paul Gydos wrote: >>>

Re: Scala view server?

2010-08-21 Thread J Chris Anderson
On Aug 21, 2010, at 6:08 AM, Jon Brisbin wrote: > > On Aug 20, 2010, at 6:21 PM, Kenny Stone wrote: > >> Couldn't you leverage the hovercraft API with JInterface pretty easily? > > Wasn't aware of it but read through the README. It seems to be missing some > pretty important functionality (li

Re: ok so I've introduced myself - here is problem one

2010-08-21 Thread J Chris Anderson
Paul, This screencast may help as well: http://www.youtube.com/watch?v=oHKvV3Nh-CI On Aug 21, 2010, at 7:37 AM, Kenneth Tyler wrote: > Paul, > This may be one way to do what you want: > Reader Access > > To protect document contents, CouchDB documents can have a reader list. This > is an opti

Re: let me introduce myself .. Paul G

2010-08-21 Thread J Chris Anderson
On Aug 21, 2010, at 12:06 PM, Noah Slater wrote: > > On 21 Aug 2010, at 08:47, Paul Gydos wrote: > >> Anyway happy couching y'all. I get the feeling eventually this document >> database platform will be more accessible and those funny words you all >> decided to attach to your marketing won't

Re: What are the contents of userCtx in validators ?

2010-08-21 Thread J Chris Anderson
On Aug 21, 2010, at 12:45 AM, sgoto wrote: > On Sat, Aug 21, 2010 at 12:43 AM, sgoto wrote: > >> as far as i can understand, validation functions can't change either, >> unless all previous documents get reapplied the same validation function, or >> else replication will create a non-backward c

Re: What are the contents of userCtx in validators ?

2010-08-20 Thread J Chris Anderson
On Aug 20, 2010, at 9:31 PM, sgoto wrote: >> >> Hard part is getting something to sign. I have started this project here: >> >> http://github.com/jchris/canonical-json >> >> > this is a very interesting library @jchris. i'm not sure a canonical > representation of a json is absolutely necessar

Re: replication users

2010-08-20 Thread J Chris Anderson
On Aug 20, 2010, at 7:14 AM, zecat wrote: > Hi everyone, > > I'm very interested to get any information on this topic too, and in security > replication in general. > I plan to deploy several couchdb instance, and I plan to implement different > users and roles to use on this cloud. > I think,

Re: couchdb on OS X asks for user/password when using curl

2010-08-15 Thread J Chris Anderson
On Aug 10, 2010, at 12:24 PM, Christian Noack wrote: > Today I installed couchdb on OS X (Snow Leopard) via MacPorts. I started > couchdb and can connect to via the web browser (http://127.0.0.1:5984/). I > got the expected result: > "{"couchdb":"Welcome","version":"1.0.0"}" > > But when I tr

Re: confused about authentication in php vs couchdb

2010-08-15 Thread J Chris Anderson
On Aug 15, 2010, at 7:40 AM, Sebastian Cohnen wrote: > Hey Dan, > > I just wanted to note that CouchDB does only provide per database reader ACL. > So you need to have one database per user in order to protect a users content > from unauthorized access (remember any user with read access can r

Re: File system data representation

2010-08-15 Thread J Chris Anderson
On Aug 15, 2010, at 2:32 PM, Gregory Tappero wrote: > Hello couchers, > > I was looking in a way to build S3 like with couchdb. > > - buckets and files > - sharing between users > - update/move folders in buckets > > Using a separate doc for Each File with the pathj of the file in json > seem

Re: confused about authentication in php vs couchdb

2010-08-13 Thread J Chris Anderson
On Aug 13, 2010, at 8:06 PM, whims...@aol.com wrote: > How do you do the sort of authentication that happens in php mysql with > couchdb? > > I sort of understand how php authentication works sort of...you can > dynamically write pages depending on the credentials > of a user. The credentials

Re: can't upgrade from .10 to .11

2010-08-13 Thread J Chris Anderson
On Aug 13, 2010, at 12:00 PM, whims...@aol.com wrote: > I can install 1.0 from a package .bin but it tries to install in myname/home. it's ok to install there if you are just testing / learning. when you get to install for production you can take the next step. also, if you want to avoid deal

Re: can't upgrade from .10 to .11

2010-08-13 Thread J Chris Anderson
On Aug 13, 2010, at 11:53 AM, Randall Leeds wrote: > The easiest way to upgrade on Ubuntu is to follow the source install > procedure and leave the system-wide couchdb intact. > The system couchdb will not clash because the source install goes to > /usr/local by default. > > Then just replace th

Re: Map/reduce and transactions

2010-08-13 Thread J Chris Anderson
On Aug 13, 2010, at 7:55 AM, Simon Woodhead wrote: > Hi folks > > As we explore more ways to migrate to CouchDB we're exploring alternatives to > transactions. The books shows a bank where transfers are stored as a single > document with the balance being the result of a map/reduce function. T

Re: bad utf8 character

2010-08-12 Thread J Chris Anderson
On Aug 12, 2010, at 5:37 PM, Kenneth Tyler wrote: >> the tests can be a bit finicky. I'd say a 99% success rate means you have >> nothing to worry about. > > ok, thanks > > looks like i'll just have to try and avoid documents with the unknown > "bad" text in them when i import > The upgrade

Re: bad utf8 character

2010-08-12 Thread J Chris Anderson
ks is causing > it > > thanks > ken > > On Thu, Aug 12, 2010 at 2:57 PM, J Chris Anderson wrote: >> >> On Aug 12, 2010, at 2:54 PM, Kenneth Tyler wrote: >> >>> so i tried importing some data from ms sql server2005 into couchdb 1.0.0 >>> th

Re: bad utf8 character

2010-08-12 Thread J Chris Anderson
On Aug 12, 2010, at 2:54 PM, Kenneth Tyler wrote: > so i tried importing some data from ms sql server2005 into couchdb 1.0.0 > the data imports fine > > but when i try to open custom views in futon i get a "bad utf8 > character" message, and futon is trashed, after that it won't display > anythi

Re: Template file names

2010-08-12 Thread J Chris Anderson
On Aug 12, 2010, at 11:00 AM, David Goodenough wrote: > On Thursday 12 August 2010, J Chris Anderson wrote: >> On Aug 12, 2010, at 5:27 AM, David Goodenough wrote: >>> My question was not so much about which template system to use >>> as about whether the template sy

Re: couchdb and extjs problems accepting json

2010-08-12 Thread J Chris Anderson
On Aug 12, 2010, at 9:20 AM, whims...@aol.com wrote: > 405 Method not allowed is the problem > > I'm now using firebug and tracking the NET responses. > > when the extjs calls > http://localhost:5984/wikiha/_design/view1/_view/myview.json This URL isn't proper. The Couch View will be at http

Re: Template file names

2010-08-12 Thread J Chris Anderson
On Aug 12, 2010, at 5:27 AM, David Goodenough wrote: > My question was not so much about which template system to use > as about whether the template system had any sensitivity to the > file extension of the template files, in particular does it set the > content-type from the extension. > No,

Re: application/json header requirements

2010-08-11 Thread J Chris Anderson
On Aug 11, 2010, at 11:25 PM, Sebastian Cohnen wrote: > Are you really sure that checking for content-type header prevents CSS/CSRF > attacks? The only thing I can think of to "really" protect cookie-based > authentication from this kind of attacks is to use a non-guessable one-time > token to

Re: Post-1.0 version confusion

2010-08-11 Thread J Chris Anderson
On Aug 11, 2010, at 4:49 PM, Randall Leeds wrote: > 0.11.2 is the latest release in the 0.11.x series. > It will be maintained with bug fixes until 1.1 comes out (and possibly > beyond, depending on community need). > No version of the 0.11.x branch ever suffered data loss. > See the changelog fo

Re: [ANNOUNCE] Apache CouchDB 0.11.2 has been released

2010-08-11 Thread J Chris Anderson
On Aug 11, 2010, at 12:20 PM, Paweł Stawicki wrote: > My congrats for the new release, but I am confused. Why is there > 0.11.2 after 1.0? Shouldn't it be 1.1 or something like that? > The 0.11.2 is a maintenance release of the 0.11.x branch. We'll continue to maintain the 0.11 line until 1.1

Re: CouchDB Huh! What is it good for?

2010-08-11 Thread J Chris Anderson
On Aug 11, 2010, at 10:43 AM, Victor Stan wrote: > So in going through the CouchDB book, and playing a bit more with it, > as well as thinking about the needs of my own projects I came to > realize that perhaps there are some things that I need to better > understand or that couch db may not be a

[NOTICE] Data loss bug (and fix)

2010-08-08 Thread J Chris Anderson
Over the weekend of August 7th–8th, 2010 we discovered and fixed a nasty bug in CouchDB 1.0.0. There is potential data-loss for users of 1.0.0, running with the default configuration of delayed_commits=true. We've issued an in-place fix and details about the data loss bug here: http://couchdb.a

Re: expected behaviour of changes feed

2010-08-08 Thread J Chris Anderson
t prevent the versioning technique in that article from working out of the box. The bug has been fixed in trunk and the 1.0.x branch, and the fix will be in the 1.0.1 release which is coming out this week. Chris > Thank you all for your help > > very best regards > > Cliff &

Re: Data loss

2010-08-07 Thread J Chris Anderson
On Aug 7, 2010, at 1:38 PM, Benoit Chesneau wrote: > On Sat, Aug 7, 2010 at 10:35 PM, J Chris Anderson wrote: >> >> On Aug 7, 2010, at 1:24 PM, Noah Slater wrote: >> >>> This sounds moderately serious. >>> >>> Would you like me to abort the cur

Re: Data loss

2010-08-07 Thread J Chris Anderson
On Aug 7, 2010, at 1:24 PM, Noah Slater wrote: > This sounds moderately serious. > > Would you like me to abort the current vote in leu of a fix? I was planning to -1 the vote once we figure out what the deal is. There's a chance the bug only strikes in certain time zones (weird huh?) which mi

Re: Scalability of _changes api?

2010-08-07 Thread J Chris Anderson
On Aug 7, 2010, at 10:39 AM, J Chris Anderson wrote: > > On Aug 7, 2010, at 4:37 AM, Sivan Greenberg wrote: > >> As I am also using a JS filter and fear the performance and load >> consequences, how does one go about writing an erlang filter? >> > > The E

Re: Data loss

2010-08-07 Thread J Chris Anderson
A solution will be to to POST to /db/_ensure_full_commit with a content type of application/json and an empty body, before doing any restart. Chris On Aug 7, 2010, at 11:56 AM, Randall Leeds wrote: > I agree completely! I immediately thought of this because I wrote that > change. I spent a wh

Re: expected behaviour of changes feed

2010-08-07 Thread J Chris Anderson
For your use case you might look at these versioning techniques: http://blog.couch.io/post/632718824/simple-document-versioning-with-couchdb On Aug 7, 2010, at 9:55 AM, Mikeal Rogers wrote: > the changes feed only shows the update sequences for the current documents > in the database. it doesn'

Re: Scalability of _changes api?

2010-08-07 Thread J Chris Anderson
> -SIvan > > On Fri, Aug 6, 2010 at 11:55 PM, J Chris Anderson wrote: >> >> On Aug 6, 2010, at 1:38 PM, Talib Sharif wrote: >> >>> Hey All, >>> >>> Do people have experience with the scalability and performance of the >>> _changes

Re: Data loss

2010-08-07 Thread J Chris Anderson
Am 07.08.2010 um 06:37 schrieb J Chris Anderson : > >> >> On Aug 6, 2010, at 9:02 PM, Yue Chuan Lim wrote: >> >>> Sorry to reply myself so quickly. >>> >>> Peeking inside the .couch file and searching for the documents I have >>> missing turn up

Re: Data loss

2010-08-06 Thread J Chris Anderson
On Aug 6, 2010, at 9:02 PM, Yue Chuan Lim wrote: > Sorry to reply myself so quickly. > > Peeking inside the .couch file and searching for the documents I have > missing turn up results. Offhand I am noticing 4 instances of the string > gsc_test_03. Which is ID of the document I am missing. > Y

Re: Crash when using builtin reduce _stats

2010-08-06 Thread J Chris Anderson
t/reduce_builtin.js It may be that Futon is trimming the whitespace for you. I bet a tempview with more whitespace (when sent to couch) would also break. Chris > Thanks for your help in tracking this down, much appreciated! > Yue Chuan > > On Sat, Aug 7, 2010 at 8:50 AM, J Chris

Re: Crash when using builtin reduce _stats

2010-08-06 Thread J Chris Anderson
javascript", > "views": { > "active_power": { > "map": "function(doc) {\u000a if(doc.data[12] > 0) {\u000a > key = doc._id.split(\"|\")[0];\u000aemit(key, doc.data[12]);\u000a > }\u000a}\u000a\u000a", >

Re: Crash when using builtin reduce _stats

2010-08-06 Thread J Chris Anderson
;sum":411391,"count":1000,"min":187,"max":761,"sumsqr":178307983}} > ]} > > So it appears that _stats doesn't like value sets without 0s :P (or maybe > reduce + group=true has something against unequal count values) > > Thanks f

Re: Crash when using builtin reduce _stats

2010-08-06 Thread J Chris Anderson
sum":411391,"count":1000,"min":187,"max":761,"sumsqr":178307983}} > ]} > > So it appears that _stats doesn't like value sets without 0s :P (or maybe > reduce + group=true has something against unequal count values) > > Thanks for

Re: Crash when using builtin reduce _stats

2010-08-06 Thread J Chris Anderson
On Aug 6, 2010, at 5:09 PM, Yue Chuan Lim wrote: > Further tested on the couch.io windows installer as well as a > couch.ioinstance with the same results, works on a temp view, crashes > on a actual > view. > > shasderias.couchone_remove_me_.com/_utils/database.html?gsc_lt2/_design/stats/_view/a

Re: Scalability of _changes api?

2010-08-06 Thread J Chris Anderson
On Aug 6, 2010, at 1:38 PM, Talib Sharif wrote: > Hey All, > > Do people have experience with the scalability and performance of the > _changes api in general, and especially when using with filters? > > How many connections can be kept open? > If you use a JavaScript filter, you will have m

Re: Issues while using couchdb http cookie auth

2010-08-05 Thread J Chris Anderson
On Aug 5, 2010, at 7:11 AM, Mahendra M wrote: > Hi, > > I was trying to setup and use couchdb http cookie auth. I could > not find any "official" documentation for the same. A bit of searching around > gave me these. > > 1. http://pierrel.posterous.com/securing-couchdb (seems new) > 2. http://w

Re: Check View Status

2010-08-04 Thread J Chris Anderson
On Aug 4, 2010, at 11:15 AM, Gordon Leland Hempton wrote: > Is there a way to check the status of the generation of a view? > GET http://192.168.1.10:5984/_active_tasks I think that will show it. > We have a db with ~10 mil docs/30GB and we are introducing a new view that > is just a single f

Re: 409 document conflict... but rev is correct

2010-08-04 Thread J Chris Anderson
rev 1005-xxx >> > > $ curl > http://user:passw...@127.0.0.1:5984/stream/ee0477b5d9323304cd2033521fae5fa6c185ca92 > {"_id":"ee0477b5d9323304cd2033521fae5fa6c185ca92","_rev":"1005-f02accd95cc3dab487a7674083c8a3dd","server_name":"Africa

Re: 409 document conflict... but rev is correct

2010-08-04 Thread J Chris Anderson
On Aug 3, 2010, at 9:57 PM, Erick Johnson wrote: > Hi all, > > I have an automated job that runs hourly updating the documents in a single > couch database. The job has been running perfectly fine for about 2 months > now. > However today, on updating one of the documents, couch consistently r

Re: What are the contents of userCtx in validators ?

2010-08-04 Thread J Chris Anderson
On Aug 3, 2010, at 8:30 PM, sgoto wrote: > Hey everyone, > > According to this page: > > http://books.couchdb.org/relax/design-documents/validation-functions > > An administrator could write validation function to ensure the data that > gets written to couchdb is validated. I'm interested

Re: missing user

2010-08-03 Thread J Chris Anderson
On Aug 3, 2010, at 6:03 AM, tyler gillies wrote: > localhost:5984/_users/org.couchdb.user:tyler is 404 > > i am logged into futon as tyler > I don't know what to say without more context. What happens when you try signing up as another user in Futon. Does that user doc get created? Chris >

Re: Appropriate use of batch=ok?

2010-08-02 Thread J Chris Anderson
On Aug 2, 2010, at 11:03 AM, Michael Beam wrote: > Hi All, > > CouchDB is used throughout an application that I work on, and I was thinking > of using it for a new implementation of an old feature. The feature involves > other applications reporting progress of "jobs" to a progress DB via > d

Re: startkey_docid and "wildcard" paging

2010-08-01 Thread J Chris Anderson
On Aug 1, 2010, at 4:38 PM, Avi Flax wrote: > On Sun, Aug 1, 2010 at 19:26, J Chris Anderson wrote: > >> first query is just ?limit=10 >> >> second query uses the key of the last row of the first query as the startkey >> (and the id of that row's doc as

Re: startkey_docid and "wildcard" paging

2010-08-01 Thread J Chris Anderson
t; and > "2", each with a different date and a different doc_id, and I'm paging in > groups of 10 — if I can't use startkey_docid, then what can I do? > first query is just ?limit=10 second query uses the key of the last row of the first query as the startkey (and th

Re: startkey_docid and "wildcard" paging

2010-08-01 Thread J Chris Anderson
On Aug 1, 2010, at 2:43 PM, Avi Flax wrote: > Hi all, quick question — i'm having a little trouble with paging with > startkey_docid > > I have a view whose keys look like: ["foo", "bar", "2010-06-10T12:14:35Z"] > > I'm querying the view with startkey=["foo", "bar"] and endkey=["foo","bar",{}]

Re: geocouch: limit number of points in an area

2010-08-01 Thread J Chris Anderson
On Aug 1, 2010, at 1:43 PM, Volker Mische wrote: > On 01.08.2010 17:24, Benoit Chesneau wrote: >> On Sun, Aug 1, 2010 at 2:17 PM, Volker Mische >> wrote: >>> On 01.08.2010 10:53, Benoit Chesneau wrote: I'm looking for a way to limit number of points retrieved for an area dependi

Re: Hello / Archiving

2010-07-31 Thread J Chris Anderson
On Jul 31, 2010, at 10:45 AM, Simon Woodhead wrote: > Hi folks, > > First off: thanks! CouchDB is something I found out about by accident by > virtue of my g/f breaking her toe but that's another story, although I'm > really glad she did. I've been reading about it lots and have finally > deploy

Re: Linked Documents

2010-07-31 Thread J Chris Anderson
On Jul 31, 2010, at 2:40 AM, Sebastian Cohnen wrote: > John, > > The Design aims to be as side effect free as possible. For validations it > would be ok to do network, for other functions like show, list, Map reduce > this would mess up with the cacheabilty of results... > also, validations

Re: what does batch=ok really mean

2010-07-30 Thread J Chris Anderson
On Jul 29, 2010, at 11:22 PM, Raghuveer Kancherla wrote: > Hi, > > In batch=ok mode, from the dicussion on the wiki / couchdb book it seems > like the document is written into the memory and then flushed to disk at a > later time. I dont really care about the possible data losses in this short >

Re: WillPaginate compatible pagination for CouchPotato views (Ruby)

2010-07-30 Thread J Chris Anderson
On Jul 29, 2010, at 10:51 PM, Karel Minařík wrote: > Hi Chris, > > thanks for the feedback. I am well aware of the shortcoming. Two reasons, > mainly: > > a) I had the code ready from previous implementation for the RelaxDB gem. > > b) I had not enough time to figure out/translate the abstrac

Re: Where is the data stored during "offline periods"

2010-07-27 Thread J Chris Anderson
On Jul 23, 2010, at 3:27 AM, olet...@stud.ntnu.no wrote: > Hi > > I'm currently doing some research about CouchDB and I find it has some really > cool features, especially the possibility to work offline! However, I don't > understand where the data is stored when the connection is down, how c

Re: external handlers are not in sync with commits

2010-07-27 Thread J Chris Anderson
On Jul 27, 2010, at 2:30 PM, Norman Barker wrote: > Hi, > > I have written couchdb-clucene > (http://github.com/normanb/couchdb-clucene) and am doing a lot of > testing with heavy datasets where I am sending a bulk doc request with > 10 docs at a time, a couple of these every second for a couple

Re: scheduled tasks

2010-07-26 Thread J Chris Anderson
On Jul 26, 2010, at 2:28 PM, Mark J. Reed wrote: > The "fun and ease of Python" is not at issue here. Glad you're having > fun programming in your favorite language, but it's not as if you can > just do 'from scheduler import magic' and be done. > > The point is, cron didn't work for you becaus

Re: question on CouchDB views: how to use a query sting (formula) in the view

2010-07-26 Thread J Chris Anderson
On Jul 26, 2010, at 11:23 AM, Fink Mark wrote: > Hi there, > > I am using CouchDB for some time now and now I am stuck with the following > question. > > Lets say I store some values from some Physics experiments in couchdb: > > ID x1 x2 > 1 1 1.1 > 2 2 1.2 > 3 3 1.

Re: Job working with CouchDB in Bristol, UK

2010-07-26 Thread J Chris Anderson
. > Sorry about that -- I'll make sure we ACK the folks in the pool, so you at least know what's going on. Our partner manager is on much deserved vacation right now but I'll get the message through. Chris > John > > On 26 Jul 2010, at 19:13, J Chris Anderson wrote:

Re: scheduled tasks

2010-07-26 Thread J Chris Anderson
On Jul 26, 2010, at 9:49 AM, Kenneth Tyler wrote: > is there any way to run a scheduled task in couchdb? > There is a technique which uses the changes feed. I believe Jason from Couchio is working on an in-depth blog post about it, which this channel there should be some info later this week:

Re: Job working with CouchDB in Bristol, UK

2010-07-26 Thread J Chris Anderson
On Jul 26, 2010, at 10:36 AM, Noah Slater wrote: > > On 26 Jul 2010, at 18:34, Simon Metson wrote: > >> Sorry for the slightly spammy nature of this email. > > Until the job market for CouchDB really starts to take off, I am +1 on > posting jobs to the mailing lists. +1 keep em coming. Also

Re: couchdb and millions of records

2010-07-26 Thread J Chris Anderson
On Jul 26, 2010, at 10:41 AM, Simon Metson wrote: > Hi, > We've done things at this scale with CouchDB. The key thing is to do > bulk inserts, and to trigger view indexing as you go. For instance our code > by default will bulk insert 5000 records, then hit a view, then do the next > 500

Re: My first few days of using couchdb

2010-07-25 Thread J Chris Anderson
AND. He'd then have to do the intersection on the client. I do think this is still a pretty pragmatic solution as long as there aren't too many docs tagged "camping" and not "holiday" > Wrote this code on my iPhone so I hope it's correct. :) > >

Re: My first few days of using couchdb

2010-07-25 Thread J Chris Anderson
On Jul 25, 2010, at 10:18 AM, Joe Bloggs wrote: > I have been impressed with couchdb so far but I have now hit the first > problem > that I cannot see how to resolve easily. > > I have a few test documents with a photo attached to each. I want to tag > these > photos so I have a field called

Re: posting to _bulk_docs throws Unsupported Media Type error

2010-07-25 Thread J Chris Anderson
On Jul 24, 2010, at 11:05 PM, Manokaran K wrote: > On Sun, Jul 25, 2010 at 11:08 AM, Randall Leeds > wrote: > >> I should add, with curl this is -H"Content-Type: application/json" >> >> > Thanks :-) That solved the issue. > > I followed what was shown here: > http://wiki.apache.org/couchdb/H

Re: Large lists of data

2010-07-24 Thread J Chris Anderson
') > oh well in that case (you know all the keys in advance) you can do a multi-key query. we tunnel a semantic GET over an http POST, so you post { "keys" : [array of keys] } to the view. For some reason I thought you were looking for a special kind of range query. Chris

Re: Large lists of data

2010-07-24 Thread J Chris Anderson
t; with inclusive_end = false should work, except it will bring in eg "0123457" If "0123457" is not OK then I'm flummoxed as to how to describe your key requirements in a simple way, regardless of technology. > Hope that makes sense! > > John > > On 24 J

Re: Large lists of data

2010-07-24 Thread J Chris Anderson
ar number 012 is the same as 12. > This is a typical telecom problem and it would be good to document a Design > Pattern for this Use Case. In fact there's a discussion for another day on > how/where we could document this patterns and get peer reviews on them. > > Thanks aga

Re: Large lists of data

2010-07-24 Thread J Chris Anderson
On Jul 24, 2010, at 7:41 AM, mickael.bai...@free.fr wrote: > Hello, > > 1/ it's a little hard to answer this question, your setup is certainly a > little more complex than what you expose in your email :-) However thousands > of documents are gracefuly handled by CouchDB. > > 2/ At first sigh

Re: Some stats about couch DB

2010-07-23 Thread J Chris Anderson
On Jul 23, 2010, at 5:01 PM, Talib Sharif wrote: > Hi All, > > As I am playing more and more with couchdb (it is relaxing and fun), i just > am trying to understand the limits and the expectations in large production > system environment. > > Right now i have about 100K documents and i have a

Re: georss atom feed

2010-07-23 Thread J Chris Anderson
led "loc", since this > is the way suggested by Volker > (http://vmx.cx/cgi-bin/blog/index.cgi/geocouch-the-future-is-now:2010-05-03:en,CouchDB,Python,Erlang,geo) > and more in line with geojson. > > However, I've been tripped up by my lack of knowledge in couch

windows - hard crash

2010-07-22 Thread J Chris Anderson
Yue Chuan Lim reports that he's seeing a hard crash in the design_docs test on windows. Here's his mail. He sent it to me b/c of spam blocking the original attempt to send. (The pastebin logs were also in the message. I stripped those b/c all the URLs might be what's triggering the spam filte

Re: list function output

2010-07-22 Thread J Chris Anderson
On Jul 22, 2010, at 8:33 AM, Jyoti Venkatesh wrote: > I have 3 documents in my database, a view and a list function. The list > function shows the consolidated output from all 3 documents as expected. > But when i update the document, the output from list function is not updated. > I added a new

Re: granting read-only access to anonymous users

2010-07-22 Thread J Chris Anderson
On Jul 22, 2010, at 2:47 PM, Catherine Jones wrote: > I have a couch database (with an admin and and an admin password > defined) that's sitting behind an nginx proxy. The ngin proxy routes > traffic between http://127.0.0.1:5984 on my VPS and the public address > of http://my_domain_name/subdire

  1   2   3   4   >