Language integration mail groups

2010-04-15 Thread Darran White
Hi, It might be a good idea to have some mail groups for couchdb and some common languages. E.g Couch-php-integration Couch-jvm-integration Couch-dotnet-integration The main mailing list would then be core couchdb. I think this would have the following benefits:- The main mailing list will then

List functions and headers using send, getRow

2010-04-15 Thread Anh
Hi, I'm a little confused on how to set the content-type header for list functions which return HTML. I'm using the send() and getRow() functions: function(head, req) { send('htmlbodyul'); var row; while (row = getRow()) { send('li' + row.id + '/li'); }

Re: Search for city by name, order by population

2010-04-15 Thread Magnus Ottosson
The problem with sorting on the client side is that I have a lot of entities! Say that I want to fetch all cities starting with the name new it could potentially be thousands and the performance would not be that great. I know it's a hack and that it might not be suitable but I found that if I

[ANN] CouchDB-Python 0.7

2010-04-15 Thread Dirkjan Ochtman
Hello all, We have a new release of CouchDB-Python for you today: 0.7. In this release, we've gotten rid of our dependency on httplib2, replacing it by a thin couchdb.http layer based on httplib. This means some API changes have been made; we have improved some other API inconsistencies at the

Re: couchdb-lucene reindexes when restarted

2010-04-15 Thread Robert Newson
Hi, You need to modify log4j.xml and change the word INFO to DEBUG and then restart couchdb. Please send all the output that it gives. B. On Wed, Apr 14, 2010 at 1:58 PM, Manokaran K manoka...@gmail.com wrote: I tried with the latest src. This time its starts from update_seq 7621. There's a

Re: Language integration mail groups

2010-04-15 Thread Paul Davis
Darran, I don't think there's an issue with users starting a specific language list, but I don't think its something I'd want to ask infrastructure to setup and maintain. HTH, Paul Davis On Thu, Apr 15, 2010 at 3:54 AM, Darran White darran.m.wh...@googlemail.com wrote: Hi, It might be a good

Running on port 80

2010-04-15 Thread Zachary Zolton
Hi, How does one run CouchDB on port 80 without changing the COUCHDB_USER to root? FYI, I'm running Ubuntu 9.10. Cheers, Zach

Re: List functions and headers using send, getRow

2010-04-15 Thread Zachary Zolton
You can use the provides() helper function in your list _functions: function(head, req) { provides('html', function() { send('htmlbodyul'); var row; while (row = getRow()) { send('li' + row.id + '/li'); } return '/ul/body/html'; }); } The fun part is that you can

Re: Searching a schema-free-friendly PHP framework

2010-04-15 Thread Martin Kirchgessner
For those interested I also discovered via CakePHP's mailing-list that the project has been forked last year, as Lithium (a fork formerly known as Cake3). http://rad-dev.org/lithium This project, among other things, aims to be linked to document- oriented DBs like CouchDB. Martin

Re: Running on port 80

2010-04-15 Thread Noah Slater
You don't. But you can proxy backwards from a HTTP daemon running on port 80. See the wiki for reverse proxy configurations.

Re: couchdb-lucene reindexes when restarted

2010-04-15 Thread Manokaran K
On Thu, Apr 15, 2010 at 8:08 PM, Robert Newson robert.new...@gmail.comwrote: Hi, You need to modify log4j.xml and change the word INFO to DEBUG and then restart couchdb. Please send all the output that it gives. Its here: http://pastie.org/921404 regds, mano

updated docs for .11/rewrite

2010-04-15 Thread Jim Woodgate
Is there updated documentation for 0.11? I'm primarily interested in the security and possibly url rewrite updates. On previous versions I manually added hooks to get silverlight to talk to couch (namely http://localhost:5984/clientaccesspolicy.xml has to return the clientaccesspolicy.xml file)

Re: Running on port 80

2010-04-15 Thread Mikhail A. Pokidko
On Thu, Apr 15, 2010 at 7:54 PM, Noah Slater nsla...@me.com wrote: You don't. Technically you can - you can start with root privileges to bind to port 80 and drop them to _couchdb but its a bit too complicated. Zachary, its more convinient to use some frontend - nginx, lighttpd or what ever.

Re: updated docs for .11/rewrite

2010-04-15 Thread J Chris Anderson
On Apr 15, 2010, at 9:00 AM, Jim Woodgate wrote: Is there updated documentation for 0.11? I'm primarily interested in the security and possibly url rewrite updates. On previous versions I manually added hooks to get silverlight to talk to couch (namely

Re: Language integration mail groups

2010-04-15 Thread Darran White
Paul, Fair enough. In that case when I get a chance I'll create a jvm integration group probably on google groups. It may be worth listing the different user groups on your mailing list page though. Regards Darran Sent from my iPhone On 15 Apr 2010, at 15:54, Paul Davis

Re: couchdb-lucene reindexes when restarted

2010-04-15 Thread Robert Newson
can you confirm that you altered some of these lines before you sent them? The existence of the string dbname is confusing me. B. On Thu, Apr 15, 2010 at 5:00 PM, Manokaran K manoka...@gmail.com wrote: On Thu, Apr 15, 2010 at 9:25 PM, Manokaran K manoka...@gmail.com wrote: On Thu, Apr 15,

Re: couchdb-lucene reindexes when restarted

2010-04-15 Thread Robert Newson
I can't reproduce this. My setup always picks up where I left off, so there must be some step I'm not doing to trigger this. Can you delete the target/indexes and reproduce this from scratch? If so, could you list all the steps? B. On Thu, Apr 15, 2010 at 5:55 PM, Robert Newson

Re: Running on port 80

2010-04-15 Thread Robert Newson
there's also authbind. http://en.wikipedia.org/wiki/Authbind On Thu, Apr 15, 2010 at 5:15 PM, Mikhail A. Pokidko mikhail.poki...@gmail.com wrote: On Thu, Apr 15, 2010 at 7:54 PM, Noah Slater nsla...@me.com wrote: You don't. Technically you can - you can start with root privileges to bind to

Re: List functions and headers using send, getRow

2010-04-15 Thread J Chris Anderson
On Apr 15, 2010, at 8:22 AM, Zachary Zolton wrote: You can use the provides() helper function in your list _functions: function(head, req) { provides('html', function() { send('htmlbodyul'); var row; while (row = getRow()) { send('li' + row.id + '/li'); } return

Re: List functions and headers using send, getRow

2010-04-15 Thread Anh
On Thu, Apr 15, 2010 at 9:48 AM, J Chris Anderson jch...@gmail.com wrote: On Apr 15, 2010, at 8:22 AM, Zachary Zolton wrote: You can use the provides() helper function in your list _functions: function(head, req) {  provides('html', function() {    send('htmlbodyul');    var row;    

Re: couchdb-lucene reindexes when restarted

2010-04-15 Thread Manokaran K
On Thu, Apr 15, 2010 at 10:25 PM, Robert Newson robert.new...@gmail.comwrote: can you confirm that you altered some of these lines before you sent them? The existence of the string dbname is confusing me. I should've mentioned it!! Yes, changed the db name from the actual string. Its late

Re: Language integration mail groups

2010-04-15 Thread Paul Davis
Darran, How about a link to a wiki page that lists mailing lists of interest to the couchdb community? Could even include lists that are only indirectly related like nosql-discuss and the book lists. Anyone else have thoughts or concerns? Paul On Thu, Apr 15, 2010 at 12:25 PM, Darran White

Re: Language integration mail groups

2010-04-15 Thread J Chris Anderson
On Apr 15, 2010, at 12:31 PM, Paul Davis wrote: Darran, How about a link to a wiki page that lists mailing lists of interest to the couchdb community? Could even include lists that are only indirectly related like nosql-discuss and the book lists. Anyone else have thoughts or concerns?

Re: Language integration mail groups

2010-04-15 Thread Darran White
Paul, Sounds good maybe a link on your mail lists page to the wiki so it's easy to find. The grails guys do something similar. Darran Sent from my iPhone On 15 Apr 2010, at 20:42, J Chris Anderson jch...@gmail.com wrote: On Apr 15, 2010, at 12:31 PM, Paul Davis wrote: Darran, How about a

what's up with _all_docs_by_seq?

2010-04-15 Thread Julian Moritz
hi, i'm fixing some bugs on a couchdb lib. one test's accessing the view /database/_all_docs_by_seq/ As the couchdb wiki reads: http://wiki.apache.org/couchdb/HTTP_Document_API#all_docs_by_seq this should return something, but not as in my couchdb (version 0.11)

Re: what's up with _all_docs_by_seq?

2010-04-15 Thread J Chris Anderson
On Apr 15, 2010, at 1:43 PM, Julian Moritz wrote: hi, i'm fixing some bugs on a couchdb lib. one test's accessing the view /database/_all_docs_by_seq/ As the couchdb wiki reads: http://wiki.apache.org/couchdb/HTTP_Document_API#all_docs_by_seq this should return something, but not

Re: what's up with _all_docs_by_seq?

2010-04-15 Thread Julian Moritz
Hi, Julian Moritz schrieb: hi, i'm fixing some bugs on a couchdb lib. one test's accessing the view /database/_all_docs_by_seq/ As the couchdb wiki reads: http://wiki.apache.org/couchdb/HTTP_Document_API#all_docs_by_seq this should return something, but not as in my couchdb

Problem with Ubuntu, new xulrunner lib

2010-04-15 Thread Julian Moritz
Hi, I've had couchdb running under ubuntu, but not with the libmozjs-dev package installed, but configured with xulrunner. With version 1.9.1.8 it worked all fine, but with the new version 1.9.1.9 of xulrunner, couchdb is crashing running the test suite: [Thu, 15 Apr 2010 21:25:25 GMT] [error]

Limit user access via proxy

2010-04-15 Thread faust 1111
I run Couch and nginx as proxy users can download files directly from couch But how i can limit access only read from my db (limit to remote ip)? Маy be it's better catch requests to files in my ruby app? but directly to couch is faster.

Re: Problem with Ubuntu, new xulrunner lib

2010-04-15 Thread faust 1111
Try edit /etc/ld.so.conf.d/xulrunner.conf /usr/lib/xulrunner-1.9.1.9/ /usr/lib/xulrunner-devel-1.9.1.9/ ldconfig and then reinstall couch 2010/4/16 Julian Moritz maili...@julianmoritz.de: Hi, I've had couchdb running under ubuntu, but not with the libmozjs-dev package installed, but

getting most recent doc

2010-04-15 Thread wolfgang haefelinger
My apologies for asking a probably rather stupid question .. Docs in my database are events. An event has a category name, a time stamp and lots of other details. I am looking for the most recent event. I started with something like function (doc) { // map emit(doc.name,doc) }

Re: getting most recent doc

2010-04-15 Thread Robert Newson
Something like; map; function(doc) { emit([doc.name, doc.timestamp], null); } no reduce method. with calls like; http://localhost:5984/db/_design/ddoc/_view/view?startkey=[name,{}]endkey=[name]descending=truelimit=1 should get you the latest (highest timestamp) for document with doc.name of

Re: Limit user access via proxy

2010-04-15 Thread Alexandre Leray
Hi, I'm not an expert so don't take my words for granted :-) You might use some firewall like iptables or uncomplicated firewall (ufw) to restrict access to localhost. What do you think? Best ALexandre Leray Le 16/04/10 00:03, faust a écrit : I run Couch and nginx as proxy users can

Re: Limit user access via proxy

2010-04-15 Thread J Chris Anderson
On Apr 15, 2010, at 3:03 PM, faust wrote: I run Couch and nginx as proxy users can download files directly from couch If you are on CouchDB 0.11 you can navigate to the database in Futon, click security settings, and set some reader names or roles. This way users will need to log in

CouchDB and Hadoop

2010-04-15 Thread Steve-Mustafa Ismail Mustafa
I swear, I spent over an hour going through the mailing list trying to find an answer. I know that CouchDB is a document oriented DB and I know that Hadoop is a File System and that both implement Map/Reduce. But is it possible to have them stacked with Hadoop being the FS in use and CouchDB

Re: Limit user access via proxy

2010-04-15 Thread Randall Leeds
Or use the nignx config to block PUT/POST/DELETE/COPY from foreign ips. 2010/4/15 J Chris Anderson jch...@gmail.com: On Apr 15, 2010, at 3:03 PM, faust wrote: I run Couch and nginx as proxy users can download files directly from couch If you are on CouchDB 0.11 you can navigate to