Re: Ben Rowland Out Of Office

2014-09-13 Thread Vivek Pathak
To *unsubscribe*, send empty email to . On 09/13/2014 11:28 PM, Giovanni P wrote: please stop this madness. On Sun, Sep 14, 2014 at 12:22 AM, wrote: I am out of the office from Monday, September 15th through Friday, September 19th, returning Monday, September 22nd. In my absence, please c

Re: Alivemod.com looking for CouchDB ninja

2014-08-31 Thread Vivek Pathak
Hi I would be able to review and suggest. I have significant systems background and implementation experience. Please suggest how to move forward Thanks Vivek Sent from my iPhone > On Aug 31, 2014, at 1:27 AM, Tupolov wrote: > > We are a volunteer game modding team working on ALiVE Mod

Re: Testing map/reduce functions

2013-12-15 Thread Vivek Pathak
Unit testing and debugging view functions without any code changes can be done, as discussed here: https://github.com/vivekpathak/casters Since the "todo list" talking about test cases - while trivial - is over three years old, it probably is okay to share here. Thanks!

Re: use startkey/endkey to discribe a range problem

2013-12-14 Thread Vivek Pathak
example? Link to working code would be a bonus! Also, geocouch is hardly experimental these days, it's at least 2 years old and has been well used. A+ Dave On 12 December 2013 04:02, Vivek Pathak wrote: Hi I have been using this approach successfully via a view. The view emits the g

tool for management of couchdb design docs/code

2013-12-14 Thread Vivek Pathak
Hi I had some couchdb projects (since ~ 2007) which had significant computation within views/lists etc.I had read about couchapp - which although is totally great - did not serve my purpose satisfactorily (reasons/details below). Hence I had developed various scripts which were project s

Re: use startkey/endkey to discribe a range problem

2013-12-13 Thread Vivek Pathak
And to come to think of it "Geohash" doesnt sound right - because the mapping does not have the properties typically associated with "hash" functions. On 12/13/2013 03:36 PM, Vivek Pathak wrote: Thanks Luca I did not think the solution is significant or novel. It wa

Re: use startkey/endkey to discribe a range problem

2013-12-13 Thread Vivek Pathak
Thanks Luca I did not think the solution is significant or novel. It was a question on the forum, and I thought I had a reasonable answer. I had been used it for a while thinking it is a "natural extension of binary search". But yes - this seems to have a name, and also seems to have pate

Re: use startkey/endkey to discribe a range problem

2013-12-12 Thread Vivek Pathak
to working code would be a bonus! Also, geocouch is hardly experimental these days, it's at least 2 years old and has been well used. A+ Dave On 12 December 2013 04:02, Vivek Pathak wrote: Hi I have been using this approach successfully via a view. The view emits the geokey bas

Re: use startkey/endkey to discribe a range problem

2013-12-11 Thread Vivek Pathak
Hi I have been using this approach successfully via a view. The view emits the geokey based on latitude and longitude of the document (document has a location). The idea is to traverse the view in ascending and descending orders - from a start key corresponding to center of bounding box - a

Re: use startkey/endkey to discribe a range problem

2013-12-08 Thread Vivek Pathak
You can replicate the two dimensional neighborhood by mapping the resursive partitioning of the lat-lon range into key components. Eg: lets say you start with north south axis first, if your location is north of equator, add the first caharacter n to the key, else add s. Next check if your lo

Re: CouchDB sharding orchestration

2013-12-01 Thread Vivek Pathak
On 11/28/13, 11:59 PM, Vivek Pathak wrote: Hi Just curious when you say this is a problem: 2. Inconsistent views; While transferring documents from one shard to another there will be a moment when a document resides on two databases. Are you talking about the view that shows which

Re: CouchDB sharding orchestration

2013-11-28 Thread Vivek Pathak
Hi Just curious when you say this is a problem: 2. Inconsistent views; While transferring documents from one shard to another there will be a moment when a document resides on two databases. Are you talking about the view that shows which document do not belong - or you are talking abou

Re: building couchdb 1.5 on centos 6.4

2013-11-21 Thread Vivek Pathak
! There was a reason to not have just yum install erlang since it gets also, for example, wxwidget dependencies which aren't uses in CouchDB and almost useless on servers. Is the erlang-asn1 the only missed component? -- ,,,^..^,,, On Thu, Nov 21, 2013 at 7:51 PM, Vivek Pathak wrote: Yes

building couchdb 1.5 on centos 6.4

2013-11-21 Thread Vivek Pathak
Hi I was following the steps given in http://docs.couchdb.org/en/latest/install/unix.html for couchdb 1.5 install from source. After installing dependencies through the yum commands, I could build and install couchdb. Next I made changes to its home directory and gave permissions for user

Re: building couchdb 1.5 on centos 6.4

2013-11-21 Thread Vivek Pathak
27;ll probably do this a few times before finding the thing that fails to start. Likely, it will be one that requires zlib or libssl or something. B. On 21 November 2013 14:31, Vivek Pathak wrote: Hi I was following the steps given in http://docs.couchdb.org/en/latest/install/unix.html f

Re: building couchdb 1.5 on centos 6.4

2013-11-21 Thread Vivek Pathak
g-asn1" and probably others. The policy that forces package maintainers to subdivide erlang because it's possible but not wise irks me. B. On 21 November 2013 14:58, Vivek Pathak wrote: Thanks - I tried it. There is something odd going on. It says there is no such app, and while couch

Re: simultaneously run update handler and update doc content

2013-11-20 Thread Vivek Pathak
e PUT loop...or care about maintaining revisions On Wed, Nov 20, 2013 at 12:44 AM, Vivek Pathak wrote: I would like to do both update and run update handler - without having a window of time between the client update and sever side update handler. What is wrong with this ? On 11/20/2013 03

Re: simultaneously run update handler and update doc content

2013-11-20 Thread Vivek Pathak
tid' side notepipe it into python -mjson.tool for nice json formatting On Wed, Nov 20, 2013 at 12:16 AM, Vivek Pathak wrote: Ok - got it I should have used var newdoc = JSON.parse(req.body) ; I guess returning string as the first arg was somehow silently ignored. Also the pe

Re: simultaneously run update handler and update doc content

2013-11-20 Thread Vivek Pathak
o world" js> var d = new Date(); js> newdoc.serverISO8601time = d.toISOString(); "2013-11-20T08:14:55.731Z" js> newdoc.serverTime = d.getTime() / 1000 ; 1384935295.731 js> newdoc "hello world" Thanks On 11/20/2013 03:10 AM, Vivek Pathak wrote: Ok - so we

Re: simultaneously run update handler and update doc content

2013-11-20 Thread Vivek Pathak
oISOString(); newdoc.serverTime = d.getTime() / 1000 ; log( toJSON(newdoc) ) ; return [newdoc , "OK"] ; } } What is wrong here? On 11/20/2013 03:04 AM, Alexander Shorin wrote: On Wed, Nov 20, 2013 at 12:01 PM, Vivek Pathak wrote: On 11/20/2013 02:48 AM, Alexander Shorin wrot

Re: simultaneously run update handler and update doc content

2013-11-20 Thread Vivek Pathak
80710ef15d0df6dd6320","type":"profile","text":"hello 123", "serverISO8601time":"2013-11-20T07:31:58.351Z","serverTime":1384932718.351706} -- ,,,^..^,,, On Wed, Nov 20, 2013 at 11:40 AM, Vivek Pathak wrote: I have an

Re: simultaneously run update handler and update doc content

2013-11-19 Thread Vivek Pathak
On 11/20/2013 02:40 AM, Vivek Pathak wrote: I have an update handler. |{ "|_id|":|"_design/compnbd"|, "|_rev|":|"36-3321da9588a5a7b3fef8789bdfefe18d"|, "|updates|":|{ "|timestamp|":|"function(doc, req) {\n

Re: simultaneously run update handler and update doc content

2013-11-19 Thread Vivek Pathak
123","serverISO8601time":"2013-11-20T07:31:58.351Z","serverTime":1384932718.351706} I was expecting both text and timestamp to change. Is that correct? Thanks On 11/20/2013 01:38 AM, Stanley Iriele wrote: Are you asking how to update a document with an update handler? Like...what the pattern looks like? On Nov 19, 2013 10:31 PM, "Alexander Shorin" wrote: The update handlers does document update already with single http request. To update document content or not is the question of function implementation. -- ,,,^..^,,, On Wed, Nov 20, 2013 at 10:26 AM, Vivek Pathak wrote: Hi I have couchdb 1.2.1 - and wanted to update document content and also run a update handler using only one http call. Is it possible to do this? Thanks Vivek

simultaneously run update handler and update doc content

2013-11-19 Thread Vivek Pathak
Hi I have couchdb 1.2.1 - and wanted to update document content and also run a update handler using only one http call. Is it possible to do this? Thanks Vivek

Re: Contribution: CouchDb dump and reload

2013-10-05 Thread Vivek Pathak
at 1:28 AM, Jens Alfke wrote: On Oct 3, 2013, at 11:43 AM, Vivek Pathak wrote: Just fyi, there is couchdb-dump available in tihttp://code.google.com/p/couchdb-python/ Looks like these two tools use entirely different data formats. Has anyone thought of defining a common format for database

Re: Contribution: CouchDb dump and reload

2013-10-03 Thread Vivek Pathak
Just fyi, there is couchdb-dump available in http://code.google.com/p/couchdb-python/ On 10/03/2013 02:35 PM, Jean-Pierre Fiset wrote: I am working on the project Nunaliit (http://nunaliit.org). As part of the project, we have developed tools that allow a user to dump an instance of CouchDb t

Re: Map view

2013-09-17 Thread Vivek Pathak
If by script you mean as a command line script, you can do: curl -O For formatting the output you should use a list function or process the downloaded through other programs. On Tue, Sep 17, 2013 at 3:06 PM, Rana Bunnni wrote: > Hi guys, > Please , i need help : > I have the following map

Re: accessing common data within show function

2011-07-21 Thread Vivek Pathak
s like you are doing something similar but navigating the object path of the design document instead of a require() call. On Wed, Jul 20, 2011 at 5:47 PM, Vivek Pathak wrote: It is static data. thanks, i already got it working by using the "this" object within show function (which points

Re: accessing common data within show function

2011-07-20 Thread Vivek Pathak
uld not be present in the document being transformed? Or is this static data? On Wed, Jul 20, 2011 at 5:18 PM, Vivek Pathak wrote: Hi I would like access common data within my show functions. What I need is very much like accessing common code using the require() function as shown he

accessing common data within show function

2011-07-20 Thread Vivek Pathak
variable. Is there a simple way to do it? Thanks Vivek Pathak