Re: query parameters in Update Handler functions

2011-10-06 Thread Ron Dyck
Yup single quotes like so ?'foo=bar&baz=faz' works fine. Thanks for the help! ron On Thu, Oct 6, 2011 at 7:20 PM, Robert Newson wrote: > & is a shell metacharacter causing curl to run in the background. > Everything after it is ignored. > > try; > > curl -vX PUT > 'http://localhost:5984//_desig

Re: query parameters in Update Handler functions

2011-10-06 Thread Robert Newson
& is a shell metacharacter causing curl to run in the background. Everything after it is ignored. try; curl -vX PUT 'http://localhost:5984//_design//_update/test-qparams/?foo=bar&baz=faz' B. On 7 October 2011 00:08, Ron Dyck wrote: > I think it must be how I was using curl, discovered it was

Re: query parameters in Update Handler functions

2011-10-06 Thread Ron Dyck
I think it must be how I was using curl, discovered it was not a problem within my php application. Thanks for the help. Am curious what I'm doing wrong with curl though. Here's my curl statement: curl -vX PUT http://localhost:5984//_design//_update/test-qparams/?foo=bar&baz=faz On Thu, Oct 6, 2

Re: [Erlang] Logging

2011-10-06 Thread Paul Davis
Its not the prettiest, but you can do this: Log(lists:flatten(io_lib:format("~p", [Val]))) On Thu, Oct 6, 2011 at 5:34 PM, Thomas Van de Velde wrote: > Hi, > > Is there a way to log from within an Erlang view? I am trying to reproduce > the unit test for the list function and am getting an erro

[Erlang] Logging

2011-10-06 Thread Thomas Van de Velde
Hi, Is there a way to log from within an Erlang view? I am trying to reproduce the unit test for the list function and am getting an error. I'd like to log the value of "Val" so I can understand the underlying data structure. I tried error_logger:info_report(Val). Thanks! Output from view: {"tot

Re: Getting to start!

2011-10-06 Thread Randall Leeds
On Thu, Oct 6, 2011 at 12:35, Sean Copenhaver wrote: > I don't have any experience with this but what you are requesting sounds > similar to hovercraft. > > https://github.com/jchris/hovercraft > Hovercraft hasn't been updated in over a year, though :( CouchDB is not a perfect OTP app yet, but ch

Re: query parameters in Update Handler functions

2011-10-06 Thread Ryan Ramage
Works for me on 1.1 are you on a recent couch? Maybe this might help you debug: function(doc, req) { var resp = { headers : { 'Content-Type' : 'application/json' }, body : JSON.stringify(req.query) }; return [null, resp]

query parameters in Update Handler functions

2011-10-06 Thread Ron Dyck
I was attempting to use theĀ "in-place" Update Handler function and ran into an issue with the number of query parameters. After copying the function from the test suite to ensure I had the proper code, I found that I was only able to use the first of the query parameters. The documentation shows t

Re: Getting to start!

2011-10-06 Thread Sean Copenhaver
I don't have any experience with this but what you are requesting sounds similar to hovercraft. https://github.com/jchris/hovercraft On Thu, Oct 6, 2011 at 3:25 PM, Amir Almasi wrote: > Dear all, > > I am new to CouchDB. Already, I know Erlang programming language, and now, > I > want to connec

Getting to start!

2011-10-06 Thread Amir Almasi
Dear all, I am new to CouchDB. Already, I know Erlang programming language, and now, I want to connect to couchDB in Erlang programming language. Currently, I am using windows! and Erlang/OTP (R14B04) I appreciate, if you leave me any sources or documents to start. I was confused, I should Instal

Re: Compactation and resource fighing problems

2011-10-06 Thread CGS
Correct. I would choose the same. ;) I'm glad I could help and good luck! Cheers, CGS On Thu, Oct 6, 2011 at 10:43 AM, Pau Freixes wrote: > Hi, > > On Thu, Oct 6, 2011 at 9:14 AM, CGS wrote: > > Hi, > > > > Unfortunately, there isn't too much to do about but to change a bit the > > design o

Re: Compactation and resource fighing problems

2011-10-06 Thread Pau Freixes
Hi, On Thu, Oct 6, 2011 at 9:14 AM, CGS wrote: > Hi, > > Unfortunately, there isn't too much to do about but to change a bit the > design of your DB. That means: > > Option 1: > Change from continuous writing to bulk writing. That means you should create > a buffer for your writers in your applic

Mobile replication when there is read access control per document on the server side

2011-10-06 Thread Reynaud, Claire
Hi, We are investigating the viability of replication with android and iOS couchbase when there is read access control per document on the server side. Right now we have implemented an android application that replicates a server couchdb database to the mobile and it works pretty well. Problem i

Re: Compactation and resource fighing problems

2011-10-06 Thread CGS
Hi, Unfortunately, there isn't too much to do about but to change a bit the design of your DB. That means: Option 1: Change from continuous writing to bulk writing. That means you should create a buffer for your writers in your application and when the buffer is full, flush it to DB by the mean o