Re: Error Log File on Windows

2011-03-23 Thread Dave Cottlehuber
On 24 March 2011 14:35, Panop S. wrote: > Hello, > >                 I installed CouchDB on windows > (https://github.com/downloads/dch/couchdb/setup-couchdb-1.0.2_otp_R14B01_spi > dermonkey_1.8.5.exe ). > >                 I have run CouchDB and later get the error message as > described below. >

Re: PHP-based SHA1 algorithm?

2011-03-23 Thread Martin Hewitt
Hi Patrick, Thanks for this link, very useful class! I've ended up with much the same code snippet, I think during testing my brain, and database, got a bit muddled. Martin Sent from my iPhone On 23 Mar 2011, at 23:15, Patrick Barnes wrote: > Hi Martin, > > There is an example in php here:

Re: Couchdb - how to search within field or fields?

2011-03-23 Thread Andrew Stuart (SuperCoders)
search seems a relatively important core feature of a database? Damien Katz announcement about the merger says that Membase will be getting Couchdb's indexing features including lucene. http://blog.couchbase.com/couchone-membase-couchbase Is Damien saying lucene is part of couchdb? On 24/03

Re: Couchdb - how to search within field or fields?

2011-03-23 Thread Paul Davis
On Wed, Mar 23, 2011 at 4:25 PM, Robert Newson wrote: > The first person to port Lucene to erlang gets a medal. > > B. I'm still holding my breath that you'd get around to it.

Re: Couchdb - how to search within field or fields?

2011-03-23 Thread Robert Newson
The first person to port Lucene to erlang gets a medal. B. On 23 March 2011 23:22, Andrew Stuart (SuperCoders) wrote: > That's a pity.  Is search on the roadmap to become part of the core product? > > > On 24/03/2011, at 10:19 AM, David Hardtke wrote: > > > No.  For logical queries you need a se

Re: Couchdb - how to search within field or fields?

2011-03-23 Thread Andrew Stuart (SuperCoders)
That's a pity. Is search on the roadmap to become part of the core product? On 24/03/2011, at 10:19 AM, David Hardtke wrote: No. For logical queries you need a search add-on: couchdb-lucene: http://github.com/rnewson/couchdb-lucene ElasticSearch: http://www.elasticsearch.com/ Cloudant Sea

Re: Couchdb - how to search within field or fields?

2011-03-23 Thread David Hardtke
No. For logical queries you need a search add-on: couchdb-lucene: http://github.com/rnewson/couchdb-lucene ElasticSearch: http://www.elasticsearch.com/ Cloudant Search (hosted): http://blog.cloudant.com/developer-preview-cloudant-search-for-couchdb/ On 03/23/11 15:56, Andrew Stuart (SuperCod

Re: PHP-based SHA1 algorithm?

2011-03-23 Thread Patrick Barnes
Hi Martin, There is an example in php here: https://github.com/dready92/PHP-on-Couch/blob/master/lib/couchAdmin.php#L163 On 23/03/2011 2:33 PM, Martin Hewitt wrote: Hi all, I'm writing a build process in Phing, part of which involves creating a new CouchDB user. I'm having trouble logging in

Re: PHP-based SHA1 algorithm?

2011-03-23 Thread David Coallier
Hey there Martin, You should be able to set the value to a normal string, IE: $user['password_sha'] = hash('sha256', $salt . $pass . $salt); or if you really want sha1 and you absolutely can't use sha256 $user['password_sha'] = hash('sha1', $salt . $pass . $salt); or $user['password_sha'] = sha

Couchdb - how to search within field or fields?

2011-03-23 Thread Andrew Stuart (SuperCoders)
hello I have emails stored in a couchdb database and have parsed the major fields into JSON . I'd like to be able to search for emails, here are some examples of the types of searches I need to do: find all emails that have "java OR c++" in the subject line find all emails that have "grad

Re: where is couchDBX storing the actual database file?

2011-03-23 Thread Amedeo Paglione
Actually db files are stored in ~/Library/Application Support/CouchDBX/*.couch -- Amedeo On Wed, Mar 23, 2011 at 20:33, Ido Ran wrote: > Right click on CouchDBX and select Show Content. Dig in there you will find > both config and DB files. > > Ido > > > > ב-17 במרס 2011, בשעה 09:33, Edward

Re: Re: Cross/Joined Database Access?

2011-03-23 Thread Dave Cottlehuber
On 23 March 2011 20:47, Marc Schwering wrote: > So there is no way to span queries along multiple connections right? I > thought there might be a solution using the replication / sharding features > of couch? > > Am 22.03.2011 um 12:26 schrieb dominic.t...@gmail.com: >> >> you would have to do m

Re: where is couchDBX storing the actual database file?

2011-03-23 Thread Ido Ran
Right click on CouchDBX and select Show Content. Dig in there you will find both config and DB files. Ido ב-17 במרס 2011, בשעה 09:33, Edward de Jong כתב/ה: > I have created a database, and playing around with Futon. > i did this on the macintosh OSX system, but where on earth is the couch

Re: _design document conflicts

2011-03-23 Thread Aurélien Bénel
For example, I modify a _design document in DB1. I then modify the same _design document in DB2. I then replicate DB1 to DB2. I would expect that CouchDB would identify a conflict, however after replication, Couch returns no conflicts in DB2. Are you sure the replicator connects to th

Re: _design document conflicts

2011-03-23 Thread Jim Z
Jim Z writes: > > Does Couch handle conflicts with _design documents or just "regular" design > documents? > > I am not seeing the same behavior. For example, I modify a _design document in DB1. I then modify the same _design document in DB2. I then replicate DB1 to DB2. I would expect that C

activation writing mailing list archive

2011-03-23 Thread Mauro Fagnoni
good morning, i would be able to write at http://mail-archives.apache.org/mod_mbox/couchdb-user/ best regards -- --- [---WHOAMI--] Mauro Fagnoni [--ICQ#-] 279572903 [MSNID] maurofagn...@yahoo.it [--YAHOOMSNID--]

Re: Re: Cross/Joined Database Access?

2011-03-23 Thread Marc Schwering
So there is no way to span queries along multiple connections right? I thought there might be a solution using the replication / sharding features of couch? Am 22.03.2011 um 12:26 schrieb dominic.t...@gmail.com: > > you would have to do multiple http requests, i think. > > would it be possible

Re: _design document conflicts

2011-03-23 Thread Robert Newson
a design document is still a document and follows the usual MVCC rules. B. On 23 March 2011 15:30, Jim Z wrote: > Does Couch handle conflicts with _design documents or just "regular" design > documents? > >

Re: loading data

2011-03-23 Thread Christian Polzer
Hi, For what I read, the TCP-x benchmarks are benchmarks for relational Databases: http://www.tpc.org/ Description: "It consists of a suite of business oriented ad-hoc queries and concurrent data modifications. The queries and the data populating the database have been chosen to have broad in

Plausible client-server use case for couchdb?

2011-03-23 Thread Jeroen van Dijk
Hi all, I'm following Couchdb with a lot of interest for a while now, but I don't have any hands on experience. I hope I'm not asking the obvious here. Currently I'm working on an IOS app that communicates with a remove server. This involves a lot of inefficient and unnecessary calls to a backend

Re: loading data

2011-03-23 Thread Nils Breunese
Mauro Fagnoni wrote: > Hi all, i have a question about how can i put into couchdb database a .csv > data file. because i'm trying test the tpch test on nosql database. You could just store the CSV file as an attachment, but that's probably not what your looking for. You'll probably want to write

_design document conflicts

2011-03-23 Thread Jim Z
Does Couch handle conflicts with _design documents or just "regular" design documents?

Re: PHP-based SHA1 algorithm?

2011-03-23 Thread Martin Hewitt
Looks like just using the raw string value works. Not sure if I mis-read the documentation or if it's something to do with PHP's native JSON conversion... Martin On 23 Mar 2011, at 13:13, Stefan Matheis wrote: > Hey again, > > just wondering about the following lines > >> $salt = "qwertyuiop

Re: PHP-based SHA1 algorithm?

2011-03-23 Thread Martin Hewitt
Hi Stefan, From here: http://wiki.apache.org/couchdb/Security_Features_Overview#Authorization "The salt attribute is the hexadecimal representation of the salt used to generate the user's password hash." Might have gotten the wrong end of the stick though... Martin On 23 Mar 2011, at 13:13,

Re: PHP-based SHA1 algorithm?

2011-03-23 Thread Stefan Matheis
Hey again, just wondering about the following lines > $salt = "qwertyuiop"; > $user['salt'] = bin2hex($salt); is that really, what you want to do / what couch requires you to do? $ php -r 'var_dump("qwertyuiop", bin2hex("qwertyuiop"));' string(10) "qwertyuiop" string(20) "71776572747975696f70"

Re: PHP-based SHA1 algorithm?

2011-03-23 Thread Martin Hewitt
Hi all, Just wondering if anyone has done this successfully in PHP and could offer advice? My code is currently: $user = array(); $user['_id'] = "org.couchdb.user:".$newUser; $user['type'] = "user"; $user['name'] = $newUser; $user['roles'] = "numpty"; $salt = "qwertyuiop"; $newPassword = "test

loading data

2011-03-23 Thread Mauro Fagnoni
Hi all, i have a question about how can i put into couchdb database a .csv data file. because i'm trying test the tpch test on nosql database. -- --- [---WHOAMI--] Mauro Fagnoni [--ICQ#-] 279572903 [MSNID] mauro

Re: PHP-based SHA1 algorithm?

2011-03-23 Thread Martin Hewitt
Hi Stefan, Thanks, looks like it's my fault after all! Martin Sent from my iPhone On 23 Mar 2011, at 08:40, Stefan Matheis wrote: > Martin, > > based on > http://wiki.apache.org/couchdb/Security_Features_Overview#Generating_password_sha > what's wrong about php's sha1() function? > > $ php

Re: How to tell if replication is caught up?

2011-03-23 Thread Filipe David Manana
Thanks again Wayne, The error is perfectly clear about what the issue is. I'll commit a fix later today. Do you have any different type of error in the logs? cheers On Tue, Mar 22, 2011 at 9:10 PM, Wayne Conrad wrote: > On 03/22/11 13:02, Filipe David Manana wrote: >> >> On Tue, Mar 22, 2011 a

Re: PHP-based SHA1 algorithm?

2011-03-23 Thread Stefan Matheis
Martin, based on http://wiki.apache.org/couchdb/Security_Features_Overview#Generating_password_sha what's wrong about php's sha1() function? $ php -r "echo sha1('foobar');" 8843d7f92416211de9ebb963ff4ce28125932878 it's the same result as stated there for erlang, ruby & python :) Regards Stefan

Re: blocking during view generation

2011-03-23 Thread Mark Hahn
I am a newbie, but I don't really understand why the views are divided into designs in the first place. I can understand what a design means intuitively, but can someone explain what it is good for? I know it is good for solving my original question, but that is fixing a negative. Is there anyth