RE: Standalone App vs Server Side

2009-08-27 Thread Nils Breunese
Open source doesn't necessarily mean insecure. But yes, it can be insecure if you're doing things like this: if (password == 'secret') { showSecretStuff(); } If you want to restrict certain types of URL's or things like that, I recommend using a reverse proxy in front of CouchDB to

Re: Standalone App vs Server Side

2009-08-27 Thread Benoit Chesneau
On Thu, Aug 27, 2009 at 5:31 AM, Elton Okadaeltonok...@gmail.com wrote: developing a standalone couchdb application, without a server side like python or ruby can be insecure ? I mean, a user can see the design document code with all my aplication logic, can i restrict access to a design

Re: underscores in json keys

2009-08-27 Thread Brian Candler
On Wed, Aug 26, 2009 at 06:16:10PM -0400, Paul Davis wrote: I wouldn't say that. There's nothing that keeps your library from reserving a prefix for its internal use. You're free to use anything like $ or # or even use a _ suffix. Is there any way I can define such a key, in order to

Re: Standalone App vs Server Side

2009-08-27 Thread Federico
I think its called: Security through obscurity. On Thu, Aug 27, 2009 at 5:04 AM, Benoit Chesneaubchesn...@gmail.com wrote: On Thu, Aug 27, 2009 at 5:31 AM, Elton Okadaeltonok...@gmail.com wrote: developing a standalone couchdb application, without a server side like python or ruby can be

Re: Standalone App vs Server Side

2009-08-27 Thread Jim Tarvid
Frankly, I'd like to have ACLs and a way to verify the public key of the user On Thu, Aug 27, 2009 at 10:19 AM, Federico federi...@gmail.com wrote: I think its called: Security through obscurity. On Thu, Aug 27, 2009 at 5:04 AM, Benoit Chesneaubchesn...@gmail.com wrote: On Thu, Aug 27,

Re: Standalone App vs Server Side

2009-08-27 Thread Elton Okada
Imagine that my application is some kind of a game, or trivia and i need to restrict the access to logic On Thu, Aug 27, 2009 at 5:04 AM, Benoit Chesneau bchesn...@gmail.comwrote: On Thu, Aug 27, 2009 at 5:31 AM, Elton Okadaeltonok...@gmail.com wrote: developing a standalone couchdb

Re: Standalone App vs Server Side

2009-08-27 Thread cinnebar
Frankly, I'd like to have ACLs and a way to verify the public key of the user do you mean ACL query on narrow map of user/contact documents collection?

Re: 0.9 to 0.10 breaking changes

2009-08-27 Thread Paul Davis
On Thu, Aug 27, 2009 at 2:06 PM, Zachary Zoltonzachary.zol...@gmail.com wrote: Ohai, I'm prepping my app for the 0.10 release, and on the Breaking Changes wiki page, I came across this: Stricter enforcing of reduciness in reduce-functions Reduce functions are now required to reduce the

Re: 0.9 to 0.10 breaking changes

2009-08-27 Thread Paul Davis
On Thu, Aug 27, 2009 at 3:08 PM, Adam Wolffawo...@gmail.com wrote: How is reduce size computed? Is it strictly number of bytes? Thanks, A The basic algorithm is: lenght1 = JSON.stringify(input).length; length2 = JSON.stringify(output).length if(enforce_reduce_limit length2 200 (length2 *

Re: 0.9 to 0.10 breaking changes

2009-08-27 Thread Adam Wolff
How is reduce size computed? Is it strictly number of bytes? Thanks, A On Thu, Aug 27, 2009 at 11:11 AM, Paul Davis paul.joseph.da...@gmail.comwrote: On Thu, Aug 27, 2009 at 2:06 PM, Zachary Zoltonzachary.zol...@gmail.com wrote: Ohai, I'm prepping my app for the 0.10 release, and on the

Standalone App vs Server Side

2009-08-27 Thread Elton Okada
developing a standalone couchdb application, without a server side like python or ruby can be insecure ? I mean, a user can see the design document code with all my aplication logic, can i restrict access to a design document, and still get it working ? Elton Okada

Re: Collaborative Network Forensics

2009-08-27 Thread Chris Anderson
On Mon, Aug 24, 2009 at 9:47 PM, kowsikkow...@gmail.com wrote: We set out to build pcapr as packets meet web 2.0. Historically packets have been relegated to tools written to be more command-line oriented and we wanted to change that. Packets carry a wealth of information and nothing better

Re: validation and filtered replication

2009-08-27 Thread Chris Anderson
On Tue, Aug 25, 2009 at 3:08 PM, Matt Aimonettimattaimone...@gmail.com wrote: Hi guys,  I'm on CouchDB 0.9.1 and here is what I am trying to do: - node A, database A (docs have a node flag) - node B, database B (docs have a node flag) - node C, database C I need db A to replicate to db C

Re: ids starting with _ disallowed via Futon but not via HTTP doc api ?

2009-08-27 Thread Chris Anderson
On Tue, Aug 25, 2009 at 2:39 AM, francisco treacyfrancisco.tre...@gmail.com wrote: Hi all, I'm afraid I don't understand what is the current state of handling underscore on keys. When I PUT documents containing a key that starts with an underscore... it works fine for me on CouchDB 0.9.

multiple reduces on same index

2009-08-27 Thread Adam Wolff
Hi list,One of our indices (map functions) is particularly data intensive. We're generating roughly n^2/2 map entries for each document, so it's impractical to generate this index twice. It would be nice to be able to write multiple reduce functions against this one index. Anyone else encountered

Re: validation and filtered replication

2009-08-27 Thread Jan Lehnardt
On 27 Aug 2009, at 22:52, Chris Anderson wrote: On Tue, Aug 25, 2009 at 3:08 PM, Matt Aimonettimattaimone...@gmail.com wrote: Hi guys, I'm on CouchDB 0.9.1 and here is what I am trying to do: - node A, database A (docs have a node flag) - node B, database B (docs have a node flag) - node

Re: multiple reduces on same index

2009-08-27 Thread Paul Davis
If you create multiple map/reduce views, and each of those views contains byte-identical copies of the same map, then only one map view is generated. I think I've heard of people using CouchApp and symlinks to guarantee the identities. HTH, Paul Davis On Thu, Aug 27, 2009 at 5:14 PM, Adam

Re: multiple reduces on same index

2009-08-27 Thread Jan Lehnardt
Hi Adam, On 27 Aug 2009, at 23:14, Adam Wolff wrote: Hi list,One of our indices (map functions) is particularly data intensive. We're generating roughly n^2/2 map entries for each document, so it's impractical to generate this index twice. It would be nice to be able to write multiple

Re: multiple reduces on same index

2009-08-27 Thread Adam Wolff
couchdb rules! On Thu, Aug 27, 2009 at 2:20 PM, Jan Lehnardt j...@apache.org wrote: Hi Adam, On 27 Aug 2009, at 23:14, Adam Wolff wrote: Hi list,One of our indices (map functions) is particularly data intensive. We're generating roughly n^2/2 map entries for each document, so it's

Re: 0.9 to 0.10 breaking changes

2009-08-27 Thread Chris Anderson
On Thu, Aug 27, 2009 at 12:13 PM, Paul Davispaul.joseph.da...@gmail.com wrote: On Thu, Aug 27, 2009 at 3:08 PM, Adam Wolffawo...@gmail.com wrote: How is reduce size computed? Is it strictly number of bytes? Thanks, A The basic algorithm is: lenght1 = JSON.stringify(input).length; length2

Re: Understanding couchdb error messages

2009-08-27 Thread Mirsal Ennaime
On Wed, Aug 26, 2009 at 7:35 AM, Nitin Borwankarni...@borwankar.com wrote: Hadley, Also you need semicolons at line ends - your Ruby is showing ( :-) ). For small one-liners this may not bite you but in general safer to add ;. Yes, and I'd even say you should never omit semicolons in

Re: multiple reduces on same index

2009-08-27 Thread Jesse Hallett
I have been wishing for the same thing. It is exceedingly awesome that view map-sharing is already implemented! On Aug 27, 2009 2:54 PM, Adam Wolff awo...@gmail.com wrote: couchdb rules! On Thu, Aug 27, 2009 at 2:20 PM, Jan Lehnardt j...@apache.org wrote: Hi Adam,On 27 Aug 2...