Re: rewrites not working

2013-11-12 Thread Jim Klo
Like Bob mentioned… the user that runs CouchDB needs to be a sudoer in order to bind to a port less that 1024. On Nov 12, 2013, at 2:27 AM, Alexander Gabriel wrote: > Hi Jim > > I had some trouble configuring my local.ini file. > > Setting > > [httpd] > port = 80 > > doesn't work because

Re: rewrites not working

2013-11-10 Thread Jim Klo
Couple of issues I see, answered inline below. Jim Klo Senior Software Engineer SRI International t: @nsomnac On Nov 10, 2013, at 8:38 PM, "Alexander Gabriel" mailto:a...@barbalex.ch>> wrote: I call: "http://arteigenschaften.ch/artendb/_design/artendb/index.html"; bec

Re: CouchDB vs RethinkDB

2013-11-05 Thread Jim Klo
d. In a sense it does feel a lot like BigCouch + MongoDB… > > On Tue, Nov 5, 2013 at 3:50 AM, Mark Deibert wrote: > >> @Jim: That _is_ interesting. I read a bit of it, will read more later. So >> far it seems like Mongo and Couch had a baby. >> >> >

CouchDB vs RethinkDB

2013-11-04 Thread Jim Klo
Some friends passed this on to me - looks interesting. Wonder if anyone here has any idea how it compares to CouchDB? http://rethinkdb.com Best, - Jim Jim Klo Senior Software Engineer SRI International t: @nsomnac

Re: couchdb crashes silently

2013-10-31 Thread Jim Klo
e script or not - I'd have to hunt through my notes when I get back to a real computer. Something tells me I wrapped in a cron to clean up and restart as I was under a timeline before the world nearly came to an end earlier this month. Jim Klo Senior Software Engineer SRI International t:

Re: Having troubles with rewrites

2013-10-08 Thread Jim Klo
I think your file name needs to be rewrites.json. In couchapps, foo.js translates to key "foo": "contents of foo.js", and foo.json translates to key "foo": { /* contents as JSON */ }. - JK Jim Klo Senior Software Engineer SRI International t: @nsomnac On Oct 8, 2

Re: Erlang vs JavaScript

2013-08-18 Thread Jim Klo
FWIW: this thread has been the best holy war I've read in a long time. :-) On Aug 17, 2013, at 11:51 PM, "Alexander Shorin" wrote: > On Sun, Aug 18, 2013 at 10:29 AM, Benoit Chesneau wrote: >> On Sun, Aug 18, 2013 at 6:51 AM, Thanos Vassilakis wrote: >> >>> Build views performance gains: >>>

Re: is it safe to delete the log file?

2013-07-30 Thread Jim Klo
existing open file handles usually… This is all assuming you are running on some Linux variant. - JK Jim Klo Senior Software Engineer Center for Software Engineering SRI International t. @nsomnac On Jul 30, 2013, at 1:51 PM, Dan Santner wrote: > I know that sounds silly butI'

Re: Is this use case correct for Couchdb

2013-07-24 Thread Jim Klo
On Jul 24, 2013, at 7:11 PM, Richard Schmidt wrote: > Your idea of keeping all the forecasts for (say) a month in a separate > database is neat! We could then simply delete a moths worth of data by simply > dropping the relevant database. > > If we first made a copy of the database file befo

Re: Scaling with filtered replication

2013-07-09 Thread Jim Klo
about 100k docs sequentially. If it took too long to process those 100k docs, replication would stall/timeout. FWIW, this was a different from a "MapReduce taking too long error". I believe this is fixed though. Others could confirm, as we modified our data design to minimize this pro

Timestamp in CouchDB Logs?

2013-05-28 Thread Jim Klo
This seems like it should be pretty trivial, but I can't seem to locate any documentation for doing this… Is there a way to modify the logging format for CouchDB to include a timestamp (of any kind)? Thanks, - JK Jim Klo Senior Software Engineer Center for Software Engineerin

Re: Question about using moment.js in a map function

2013-05-26 Thread Jim Klo
Yep. That sounds about right. I've got a non-kanso couchapp that does exactly that. Sent from my iPhone On May 25, 2013, at 5:55 PM, "Troy Martin" wrote: > If I want to use moment.js in a view, can I just replace " with ' in the > minified source code > (https://raw.github.com/timrwood/mome

Re: OAuth via _users db

2013-05-17 Thread Jim Klo
the OAuth secrets to be used with our API and replication. Effectively we are doing 2-legged OAuth. - JK Jim Klo Senior Software Engineer Center for Software Engineering SRI International t. @nsomnac On May 17, 2013, at 9:16 AM, Martin Higham wrote: > We use OAuth with our apps. The o

Re: tracking changes - how to check what was deleted?

2013-05-17 Thread Jim Klo
If there were a way to enable this sort of feature via a flag, like local_seq that would be a good compromise IMO. :) I don't know what the ramifications of this would be on performance, but would be a 'nice to have'. Jim Klo Senior Software Engineer Center for Software

Re: tracking changes - how to check what was deleted?

2013-05-17 Thread Jim Klo
=1-967a00dff5e02add41819138abb3284d' > -XPUT -d '{"reason":"because I said so","_deleted":true}' > {"ok":true,"id":"bar","rev":"2-6e10b3cc9ea15f6a9d81aa72aaa6e098"} > > And it's really deleted; > >

Re: tracking changes - how to check what was deleted?

2013-05-17 Thread Jim Klo
It's a great tip, my only complaint about it is that the deleted stub doesn't get handed to the VDU function, unless that's changed in 1.3 - Jim On May 17, 2013, at 12:04 AM, "Dave Cottlehuber" wrote: > On 17 May 2013 01:32, Randall Leeds wrote: >> Actually, it's even easier than this. It is

Re: Mass updates

2013-05-09 Thread Jim Klo
Could you not use a VDU function that fixes the structure in a target DB and then replicate from old to new DB? - JK Sent from my iPhone On May 8, 2013, at 8:25 PM, "Charles S. Koppelman-Milstein" wrote: > I am trying to understand whether Couch is the way to go to meet some of > my organiza

Re: Distinct values with range

2013-04-14 Thread Jim Klo
Not sure if its ideal but if you need dates in epoch millis, you could round the timestamp to the floor of the current day (say midnight) in a map function, use a built in reduce... Then use a list function to filter unique countries. If you don't need a real timestamp value, use an integer lik

Re: Tracking doc access

2013-03-14 Thread Jim Klo
One more thing… inserting new doc is also not prone to document conflicts since you're not updating a document when logging access from multiple threads. - JK On Mar 14, 2013, at 7:13 PM, Jim Klo wrote: > I think you'd be better off tracking access by inserting an immutable &g

Re: Tracking doc access

2013-03-14 Thread Jim Klo
the value then requesting with_docs=true if I remember correctly… Updating doc to append a timestamp would be inherently slow if you have a high volume of repeat access and cause your views to consistently have to update… just my 2¢ - Jim Jim Klo Senior Software Engineer Center for Software

Re: Data Visualization

2013-03-13 Thread Jim Klo
Good place to start? https://github.com/mbostock/d3/wiki/Integrating-D3-with-a-CouchDB-database-1 That's a very generalized request... Visualizing what? Google charts is quick and easy, but found it painful to scale. Updating the DataTables has always been a bit awkward IMO when working with Co

Re: Tree like structures in CouchDB

2013-02-22 Thread Jim Klo
> This might be useful. The implementation in the article is SQL, but I think > the algorithm is probably relevant. > > http://www.sitepoint.com/hierarchical-data-database-2/ This is the classic tree traversal taught to most 1st year CS majors.. The largest problem with this specific algorithm

Re: Tree like structures in CouchDB

2013-02-22 Thread Jim Klo
to implement tree structures for messages in > CouchDB? > > Cheers > Michael > > On 23/02/13 11:42, Jim Klo wrote: >> >>> I wanted to give my feedback about what I've learned in this area. >>> >>> First, I don't use the doc _id at

Re: Tree like structures in CouchDB

2013-02-22 Thread Jim Klo
> I wanted to give my feedback about what I've learned in this area. > > First, I don't use the doc _id at all for sorting docs. It solves one single > use-case, but fails if you have others, so instead, I do this: > > Every doc, whether the parent or child has identifying information. So a >

Re: Tree like structures in CouchDB

2013-02-22 Thread Jim Klo
d creating ids at the expense of creating a view... you'll probably also want a view that just lists root messages too… that would be: function(doc) { if (doc.ancestry.length == 0) emit(doc.id, null); } - Jim Jim Klo Senior Software Engineer Center for S

Re: Tree like structures in CouchDB

2013-02-21 Thread Jim Klo
th to root stored as id >> so answers to 1-2 will be say 1-2-5 1-2-6 1-2-33 >> >>> Hi Kim, >>>I don't think using this kind of documents' ids is a viable >>> solution: what if there is more that one message in response to >>> another

Re: Tree like structures in CouchDB

2013-02-21 Thread Jim Klo
1-2-5 : reply to 2 1-2-6 : another reply to 2 >> 1-3 : reply to 1 >> 1-3-4 : reply to 3 1-3-7 : another reply to 4 And that would be without any view! - Jim > On Fri, 2013-02-22 at 07:00 +, Jim Klo wrote: >> In theory you mention infinite depth, but is that realisti

Re: Tree like structures in CouchDB

2013-02-21 Thread Jim Klo
In theory you mention infinite depth, but is that realistic? A simple way is to make ID's a composite serial and chain them together. 1 : orig message 1-2 : reply to 1 1-2-5 : reply to 2 1-3 : reply to 1 1-3-4 : reply to The keys will then sort in order, such that can build the tree DFS and u

Re: Fixed precision of floating point number not respected in views

2013-02-20 Thread Jim Klo
and such unless Erlang is what's at fault for dropping accuracy - assuming precision math is even possible in Erlang. > > I think we've said this every way it can be said now. > We could start in foreign languages... :-) > B. > > > > On 20 February 2013 08

Re: Fixed precision of floating point number not respected in views

2013-02-20 Thread Jim Klo
I'm not sure if this is a terrible idea or not... (As I've never tried it, but got the idea while following this thread) But how about encoding with protocol buffers when storing into couch... There are a few protocol buffers JS libraries that could be used to marshall values within MapReduce, l

Re: Help! 2-legged OAuth Example Anyone?

2013-02-16 Thread Jim Klo
I have a simple couchapp for managing user tokens and secrets here: https://github.com/LearningRegistry/LearningRegistry/blob/master/couchdb/apps/kanso/oauth-key-management.json Albeit it does use the BrowserID plugin for CouchDB. It is specific to our use case however feel free to fork and mod

Re: User registration and email confirmation on CouchDB

2013-01-25 Thread Jim Klo
e via http and https. - Jim Jim Klo Senior Software Engineer Center for Software Engineering SRI International t. @nsomnac On Jan 25, 2013, at 5:11 PM, Jens Alfke wrote: > > On Jan 25, 2013, at 4:27 PM, Pulkit Singhal wrote: > >> @ Marcus - Thank you for your strong affi

Re: Bulk insert-or-update

2013-01-23 Thread Jim Klo
Wouldn't an update handler work that's designed to do something like an UPSERT? http://wiki.apache.org/couchdb/Document_Update_Handlers Not exactly a bulk api… but I think it would do what you are asking... Jim Klo Senior Software Engineer Center for Software Engineering SRI Inter

Re: g+ community

2012-12-14 Thread Jim Klo
>> IMHO the Google Groups wouldn't be any different than the apache list > > Yes it would be. Google Groups has a number of advantages like > > * The list archive is actually useable without having to click back and forth > through three levels of hierarchy to look at threads and messages. It >

Re: g+ community

2012-12-10 Thread Jim Klo
>> Google Groups is also somewhat painful to search > > I have no trouble searching in the google groups app. What problems > have you had? From my experience… on about a dozen groups including several I moderate… the problem is searching through history.. It's fine if all you want is keyword

Re: g+ community

2012-12-10 Thread Jim Klo
ail too. BTW… if you are participating on this list… you ARE doing social… just not the FB, G+, Twitter way… but the old skool email way. Sorry to disappoint. Jim Klo Senior Software Engineer Center for Software Engineering SRI International t. @nsomnac On Dec 10, 2012, at 10:37 AM, Mark Hahn

Re: immutable _id's

2012-11-21 Thread Jim Klo
ery multi-keys using POST too… and some updates are okay in my case). As long as the VDU will let me forbid newDoc._delete, I should be able to not care about blocking access. Jim Klo Senior Software Engineer Center for Software Engineering SRI International t. @nsomnac On Nov 21, 2012, at

Re: immutable _id's

2012-11-21 Thread Jim Klo
sneau" wrote: > just empy the doc instead of deleting it? > > On Wed, Nov 21, 2012 at 2:06 AM, Jim Klo wrote: >> Question: Is there a way in CouchDB to enforce an immutable _id? Say I >> delete a document - which leaves the deleted tombstone around. Is there a &g

immutable _id's

2012-11-20 Thread Jim Klo
\// and prev_doc._deleted != false) I'm not sure if deleted docs get passed to validate update function. Thanks, - Jim Jim Klo Senior Software Engineer Center for Software Engineering SRI International t. @nsomnac smime.p7s Description: S/MIME cryptographic signature

Re: Adding fields to _user db

2012-11-09 Thread Jim Klo
Mark mail also provides excellent archive search http://markmail.org/search/?q=list%3Aorg.apache.couchdb.user Sent from my iPad On Nov 9, 2012, at 4:16 AM, "Aliaksandr Barysiuk" wrote: > Marcus, > > Try this > https://groups.google.com/forum/#!searchin/couchdb-user-archive/userCtx/couchdb-us

Re: CommonJS syntax help

2012-10-05 Thread Jim Klo
..); Sometimes I have to drop the closure and just assign the exports. - Jim Sent from my iPhone On Oct 5, 2012, at 9:56 AM, "Wordit" wrote: > On Fri, Oct 5, 2012 at 8:53 AM, Jim Klo wrote: >> What does jsSHA look like? Does it export something? I think CommonJS uses >

Re: CommonJS syntax help

2012-10-04 Thread Jim Klo
What does jsSHA look like? Does it export something? I think CommonJS uses exports vs export. FWIW, I did something similar in a kanso app [1]. - Jim [1] https://github.com/jimklo/TheCollector/tree/master/dataservices/thecollector-resources Sent from my iPad On Oct 4, 2012, at 12:51 PM,

Re: HTML documentation within a couch application

2012-09-27 Thread Jim Klo
ns like http://{{hostname}}/dbname/_design/myddoc/... - Jim Jim Klo Senior Software Engineer Center for Software Engineering SRI International t. @nsomnac On Sep 27, 2012, at 10:54 AM, Kevin R. Coombes wrote: > Hi, > > I have now built several applications with Couc

Re: ANN: js2json and json2js (for CouchApps)

2012-09-04 Thread Jim Klo
Hi Ben, Granted this is much less framework. But have you seen Kanso? http://kan.so It would be nice if your solution used a command like tool rather than having to script each serialization. - Jim On Sep 4, 2012, at 2:52 AM, "Ben Atkin" wrote: > I made a couple of npm (node.js) modules for

Re: Replicating with two CouchDBs that share the same URL

2012-08-11 Thread Jim Klo
See inline: Sent from my iPad On Aug 11, 2012, at 6:38 AM, "Ladislav Thon" wrote: > Friendly ping? :-) > > LT > > 2012/6/27 Ladislav Thon > >> Hi, >> >> we're using CouchDB (version 1.1.1 currently, but planning to upgrade to >> 1.2.0) because of its multi-master replication. The replicat

Re: How does "local_seq" design doc option work?

2012-08-09 Thread Jim Klo
:-) https://github.com/apache/couchdb/blob/1.2.x/share/www/script/test/design_options.js Jim Klo Senior Software Engineer Center for Software Engineering SRI International t. @nsomnac On Aug 9, 2012, at 10:33 AM, Jens Alfke wrote: > Could someone explain the "local_seq" desi

Re: Using underscorejs in a couchapp list

2012-08-06 Thread Jim Klo
Hmm... I'm using underscore.js in my views and lists... maybe snake the version I'm using? https://github.com/jimklo/TheCollector/blob/master/dataservices/thecollector-resources/views/lib/underscore-min.js Jim Klo Senior Software Engineer Center for Software Engineering SRI Inter

Re: _user db security

2012-07-27 Thread Jim Klo
I believe in 1.2.0 security to _users changed. http://wiki.apache.org/couchdb/Breaking_changes#A_users_database authenticated users can read/update their own record only, delete is possible via update, not directly via delete (unless user is admin). Jim Klo Senior Software Engineer Center for

Re: Cryptograhically signed docs...

2012-07-05 Thread Jim Klo
ect model field names for risk of blowing backwards compatibility. If there was way with your solution, similar to the security object, store an model to XOR against to compute/validate the signature that might be fine. On Jul 3, 2012, at 6:07 PM, Jens Alfke wrote: On Jul 3, 2012, at 10:01 AM

Re: Cryptograhically signed docs...

2012-07-03 Thread Jim Klo
but really your only solution since you can't break the idempotency to fetch additional external public keys. Jim Klo Senior Software Engineer Center for Software Engineering SRI International On Jul 3, 2012, at 8:53 AM, Albin Stigö wrote: Hi, Did anyone experiment with cryptographically

Re: CommonJS in views (aka OpenPGP inside a map function)

2012-07-02 Thread Jim Klo
to export the objects I needed access. FWIW: I've got what I need to work prototyped in SpiderMonkey here: https://gist.github.com/3036199 now trying to translate to CouchDB with this project. (DCH: This might interest you... I recall you asking me about OpenPGP inside Map Reduce...) Thanks,

CommonJS in views

2012-07-02 Thread Jim Klo
quot;, include2: "exports.foo2 = 42" }, my_view: { map: "function(doc) { emit( require('views/lib/include1').foo1, null); }" } } } If it should work what might I be doing wrong? Thanks, Jim Klo Senior Software Engineer Center for Software Engineering SRI International

Re: browserid_couchdb helper files cannot be found aka build_couchdb + plugins issue.

2012-06-13 Thread Jim Klo
n in the path: git://github.com/iriscouch/browserid_couchdb origin/master I found this condition to be true for any of the plugins built using build-couchdb tool, however I think it may only manifest itself for plugins that have private directories. - Jim Jim Klo Senior Software Engi

Re: Is replication across different releases safe?

2012-06-09 Thread Jim Klo
It works - I did this recently myself. However filtered replication may fail for various reasons tho. I'd suggest replicate everything first, then do a local filtered replicate on 1.2.0, if you need to filter replicate. - Jim Sent from my iPad On Jun 8, 2012, at 11:25 PM, "Ramkrishna Kulkar

Re: Migrate htpasswd users to _users?

2012-06-07 Thread Jim Klo
;Keith Gable" wrote: > htpasswd supports several different hash schemes. $apr1$ is the default and > isn't very portable (though is supported by nginx) because it's not exactly > MD5 as generated by crypt(). > On Jun 7, 2012 4:15 PM, "Jim Klo" wrote: > >

Migrate htpasswd users to _users?

2012-06-07 Thread Jim Klo
Jim Klo Senior Software Engineer Center for Software Engineering SRI International smime.p7s Description: S/MIME cryptographic signature

Re: View access during indexing

2012-05-31 Thread Jim Klo
last document in the view). Then once the indexing is complete, update the original design doc to match the alternate and CouchDb should assume using the view that was 'backgrounded'. This will keep all views accessible until you swap in the changes after the modified view is index

Re: how to make queries with logical operators?

2012-05-26 Thread Jim Klo
Yes and No. Yes you can do it, but requires a map function to only emit docs of type a and c. That will create a view with docs that are only of types a and c. And once you have a view - one request of the view will get you what you want. But my guess is - that's probably not what you would li

Re: How does OAuth support, or custom headers, work in the replicator?

2012-05-21 Thread Jim Klo
"token_secret": "...", "token": "", "signature_method": "..." } }

Re: purging documents?

2012-05-21 Thread Jim Klo
his would be to use filtered >> replication to a local db and then rename the .couch files and reboot >> to get it swapped over. >> >> On Fri, May 18, 2012 at 1:02 PM, Jim Klo wrote: >>> Not sure how many docs you have, but can you filter replicate the good >

Re: Hierarchical comments Hacker News style

2012-05-20 Thread Jim Klo
If you're trying to sort hierarchically using integers as id's, assuming the id's grow incrementally with time (say you were using local_seq), the arrays will naturally sort numerically, whereas strings are going to sort alphanumerically, meaning 2, 3, 22, 33 vs "2", "22", "3","33". Hence, [

Re: Call to View returns 405. It's using OPTIONS not GET

2012-05-19 Thread Jim Klo
master/lr-stats/_attachments/scripts/jquery.couch-patched.js but don't recall how complete it is. There's a list and show function modification that can be made to support CORS, but not sure where that snippet lives in the Internet ether. - Jim Sent from my iPad On May 19, 2012, at

Re: Call to View returns 405. It's using OPTIONS not GET

2012-05-19 Thread Jim Klo
An OPTIONS request is made by your browser when you make a Cross Origin Request. Is your App on the same domain and port as CouchDB? Sent from my iPad On May 19, 2012, at 3:51 PM, "Hankey, Chris" wrote: > This is just some more info. Where is "OPTIONS" coming from? It looks like > the view

Re: Hierarchical comments Hacker News style

2012-05-19 Thread Jim Klo
I'm not sure I'm following the whole thread, but why are you storing integers as strings? If you store them as numbers, they would collate right I think. - Jim Sent from my iPhone On May 17, 2012, at 12:37 PM, "Luca Matteis" wrote: > On Thu, May 17, 2012 at 8:19 PM, Matthieu Rakotojaona >

Re: purging documents?

2012-05-18 Thread Jim Klo
Not sure how many docs you have, but can you filter replicate the good docs into a new db? Jim Klo Senior Software Engineer Center for Software Engineering SRI International On May 18, 2012, at 10:39 AM, Tim Tisdall wrote: > After further reading it seems like I could use _purge ... Howe

Re: problems with etc/init.d/couchdb script

2012-05-10 Thread Jim Klo
The init.d script runs suid. Does your CouchDB user have read and write permissions to /var/{log,lib}/couchdb? - Jim Sent from my iPhone On May 10, 2012, at 11:46 AM, "Tim Tisdall" wrote: > I've tried doing lots of Google searches for an answer to this, but I > haven't been successful... > >

CouchDB 1.2.0 replication failing

2012-05-08 Thread Jim Klo
om 1.1.1 instance to 1.2.0 instance to 'top it off'. Any advice? Thanks, - Jim Jim Klo Senior Software Engineer Center for Software Engineering SRI International smime.p7s Description: S/MIME cryptographic signature

Re: can't install couchapp

2012-05-07 Thread Jim Klo
Did you install with NPM? I think 'npm -g remove [package name]' will uninstall the nodejs version. - Jim Sent from my iPad On May 7, 2012, at 4:06 AM, "goog cheng" wrote: > yes, i wanna remove the nodejs > > 在 2012年5月7日星期一,Alexander Shorin 写道: > >> Oh, you're talking about nodejs couch

Replication from 1.1.1 to 1.2.0 failing

2012-05-01 Thread Jim Klo
154.56>] Replicator, request GET to "http://localhost:5984/resource_data/_changes?filter=resources_only%2Fresource_data&feed=normal&style=all_docs&since=1646685&heartbeat=1"; failed due to error req_timedout [Tue, 01 May 2012 18:05:18 GMT] [info] [<0.27154.56>

Re: Need some advice

2012-04-27 Thread Jim Klo
ger limit on that like 14 days before and after.. then post filter the result set using a list function into a smaller range, to dates before or after, and etc. - Jim Jim Klo Senior Software Engineer Center for Software Engineering SRI International On Apr 27, 2012, at 2:06 PM, Stephan Bardubi

Re: Need some advice

2012-04-27 Thread Jim Klo
a bbox to find all events that overlap. Using this method, you'd want to store time as an integer value and not a string. IMHO #2 is probably a cleaner approach, but requires GeoCouch. - Jim Jim Klo Senior Software Engineer Center for Software Engineering SRI International On Apr 27, 201

Re: Running a dev instance of Couch

2012-04-19 Thread Jim Klo
out the same number of configs as queues. - Jim Jim Klo Senior Software Engineer Center for Software Engineering SRI International On Apr 19, 2012, at 12:41 PM, Dave Cottlehuber wrote: > On 19 April 2012 20:57, Heather Airoldi wrote: >> Thanks for the instructions Dave. I followed yo

Command Line Design Doc Testing

2012-03-19 Thread Jim Klo
to use from that perspective. Any questions, comments, criticism please feel free to shoot them my way... Thanks, - Jim Jim Klo Senior Software Engineer Center for Software Engineering SRI International smime.p7s Description: S/MIME cryptographic signature

Re: starkey with multiple values not working as expected

2012-02-29 Thread Jim Klo
ght... [restaurantid, timestamp]... which will then order your view first by restaurantid, then by timestamp... which gives you "timestamps grouped by restaurantid" you'd then use > restaurant_orders_after_date?startkey=["97ee813bfe4dbbf80a48b018b20a08bb","2012-

Re: Are CouchDB filters limited to the _changes feed?

2012-01-29 Thread Jim Klo
since the worst possible case you'd be O = n*m where n is the number of filters, m is the number of docs. Jim Klo Senior Software Engineer Center for Software Engineering SRI International On Jan 29, 2012, at 2:07 PM, Alexander Shorin wrote: > IMHO, that's nice idea to apply filter

Re: Are CouchDB filters limited to the _changes feed?

2012-01-29 Thread Jim Klo
I could see it as a bad idea in that views usually have a different collation from the changes feed. Views also can emit more than 1 key/value per doc, which I'm not sure how that works with filters. I suppose it's possible, but you'd still have to follow the changes sequence, but when applying

Re: Santa Barbara Meetup/Drinkup

2012-01-16 Thread Jim Klo
Hmm... I'm in SLO... SB is a tad far... Somewhere in the middle? :-) Jim Klo Senior Software Engineer Center for Software Engineering SRI International On Jan 16, 2012, at 4:24 PM, Andrey Cherkashin wrote: > Santa Barbara Meetup/Drinkup, anyone? > -- > Andrey Cherkashin > Se

Re: View generation order.

2012-01-04 Thread Jim Klo
milar approach and prioritize which indexes start indexing first if you have resource limitations, otherwise, I think indexing multiple design docs is concurrent. Jim Klo Senior Software Engineer Center for Software Engineering SRI International On Jan 4, 2012, at 2:50 PM, Martin Hewitt wrote:

Re: Delete replication history

2012-01-03 Thread Jim Klo
Thanks. Say I don't know that and it isn't in my log; it looks like it's pretty consistent - what's that a hash of? can I recompute it programmatically, since there's not exactly a way to list _local docs? Jim Klo Senior Software Engineer Center for Software Engi

Re: Delete replication history

2012-01-03 Thread Jim Klo
Do I dare ask what the ETA for 1.2.0 release is? - Jim On Jan 3, 2012, at 8:04 AM, Filipe David Manana wrote: > Also, in 1.2.0 you'll no longer need the hack of editing replication > checkpoint documents in order to bootstrap replications from a > particular sequence number. You can simply spec

Re: browserid support

2011-12-26 Thread Jim Klo
Just thought I'd point out, if you didn't know already, BrowserID is still considered a Draft prototype and all the crypto happens in JS. The actual security of this with the current JS implementation is questionable - it was done this way for quick prototype, and may be prone to XSS. The concep

Delete replication history

2011-12-23 Thread Jim Klo
Trying to test a validate_doc_update function for use in replication. Is there a way to reset or delete the replication history so I don't have to continuously recreate my target db? Thanks, - Jim Jim Klo Senior Software Engineer Center for Software Engineering SRI International

Re: replication using an update handler?

2011-12-21 Thread Jim Klo
r docs, throw: { forbidden: "Your message why you're forbidding the object from your db" } There might be other errors that could be thrown, but I got no idea what they are, and NONE of the above is really documented anywhere - only hinted at in a few places. Now if I can find

Re: replication using an update handler?

2011-12-21 Thread Jim Klo
ror instead of returning true or false; however doing that causes replication to fail. What might I be doing wrong? Thanks, - Jim Jim Klo Senior Software Engineer Center for Software Engineering SRI International On Dec 20, 2011, at 12:57 PM, Dave Cottlehuber wrote: > On 20 December

Re: replication using an update handler?

2011-12-20 Thread Jim Klo
does selection happen? Also if I'm using CouchApp to push - do I just place a file named validate_doc_update.js in the root of my app, or do I need to do that in the couchapp.json? Thanks, - Jim Jim Klo Senior Software Engineer Center for Software Engineering SRI International On Dec 20, 2

replication using an update handler?

2011-12-20 Thread Jim Klo
I'm wondering if I'm able to use replication with an update handler as a method of filtering data from the source, in a case where I can't install a filter on the source db? Are there any examples of this out there that someone can point me to? Thanks, - Jim Jim Klo Senior So

Re: How to get only a field in a document

2011-12-10 Thread Jim Klo
need. On Dec 10, 2011, at 9:02 PM, jack chrispoo wrote: > Thanks Jim, I took a look at show function and it seems to work on single > document. And now my question is: is there a way to range query a show > function using startkey and limit parameters like querying a view? > > T

Re: How to get only a field in a document

2011-12-09 Thread Jim Klo
if you know the document ID that you're after, then a show function can handle what you're asking without a view: http://guide.couchdb.org/draft/show.html Jim Klo Senior Software Engineer Center for Software Engineering SRI International On Dec 9, 2011, at 4:10 PM, jack chri

Re: Handling encryption keys in a disconnected environment

2011-11-09 Thread Jim Klo
group that is in the process of being chartered this month to work out this very issue: http://www.w3.org/wiki/IdentityCharter Jim Klo Senior Software Engineer Center for Software Engineering SRI International On Nov 9, 2011, at 1:13 PM, Jens Alfke wrote: > > On Nov 9, 2011, at

Re: Help installing CouchDB on Ubuntu

2011-10-28 Thread Jim Klo
I tried the Single Server CE on Ubuntu 11.10 ran into issues as well.. started up with an error... didn't have time to debug, so I just rolled back to Lucid and used "Batteries Included" method of install... worked like a charm! - Jim Jim Klo Senior Software Engineer Cent

CouchDB with py-yajl or yajl-py?

2011-08-10 Thread Jim Klo
follow to process docs SAX style? Thanks, - Jim Jim Klo Senior Software Engineer Center for Software Engineering SRI International smime.p7s Description: S/MIME cryptographic signature

NGNIX as a reverse proxy and replication not working

2011-07-11 Thread Jim Klo
der Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } Jim Klo Senior Software Engineer Center for Software Engineering SRI International

Re: when will utf8 handling be fixed?

2011-06-08 Thread Jim Klo
/json; charset=utf-8" .... Jim Klo Senior Software Engineer Center for Software Engineering SRI International On Jun 8, 2011, at 9:35 AM, Paul Davis wrote: > On Wed, Jun 8, 2011 at 12:32 PM, MK wrote: >> Is there any intention to fix couch's handling of "unusual"

Re: Reduce function to perform a Union?

2011-05-23 Thread Jim Klo
Response below: On May 23, 2011, at 4:25 PM, Randall Leeds wrote: > On Fri, May 20, 2011 at 11:11, Jim Klo wrote: > I was trying to not have to perform the merge outside of couch. Ultimately > the problem we are trying to solve is a problem related to supporting the > implementa

Query Local Docs?

2011-05-20 Thread Jim Klo
DELETE /db/_local/local-doc Deletes the non-replicated document COPY /db/_local/local-doc Copies the non-replicated document But is there a way to do a GET /db/_local? or is there some parameter to add to GET /db to include locals? Thanks, - Jim Jim Klo Senior Software Engineer Center for

Re: CouchDBX nightlies are defunkt

2011-05-20 Thread Jim Klo
eems to be dropped in Xcode 4. - Jim Jim Klo Senior Software Engineer Center for Software Engineering SRI International On May 20, 2011, at 12:54 PM, Brian Chamberlain wrote: > Yeah, It looks like you're having trouble compiling the Readline package. > I've had problems

Reduce function to perform a Union?

2011-05-19 Thread Jim Klo
ed docs, were in my map function you can reference the _id of the linked document in the value you can return @ 1 - 1 merge with the include_docs=true, but don't think I can do that with N docs; or can I? Jim Klo Senior Software Engineer Center for Software Engineering SRI International smime.p7s Description: S/MIME cryptographic signature

Re: SQL Query engine with views instead of tables

2011-05-16 Thread Jim Klo
You effectively get close to that if you use CouchDB + Lucene. Alas not a 'native' solution either, but there is a very well defined query language for Lucene. I've wondered as well how difficult it would be to build a query optimizer that would effectively be a dynamic list. One of the stre

Re: fetching data: how to filter?

2011-05-15 Thread Jim Klo
cname/_view/viewname?key=%22Beobachtung%22&include_docs=true See http://wiki.apache.org/couchdb/HTTP_view_API for details on querying views and other options. Jim Klo Senior Software Engineer Center for Software Engineering SRI International On May 15, 2011, at 2:18 PM, Alexander Gabr

Re: fetching data: how to filter?

2011-05-15 Thread Jim Klo
You need to define a view, using the name as at least part of the key or create a list. Then you can filter using the key in a view or some parameter you pass using a list. I suggest taking a look a Max Ogden's talk on CouchDB. It's a great jumpstart for a newbie. http://vimeo.com/18808177

  1   2   >