Re: Peer2Peer CouchbaseListener

2013-12-26 Thread Jens Alfke
That code looks OK. Are you sure the two devices are on the same WiFi network and the router isn’t blocking P2P traffic? A useful app for troubleshooting this kind of problem is Bonjour Browser (http://www.tildesoft.com). It shows all the available Bonjour services of all types. —Jens --

Re: [Ann]: support for JavaScript show and list functions

2013-12-27 Thread Jens Alfke
On Dec 27, 2013, at 2:08 AM, Alexander Gabriel a...@barbalex.chmailto:a...@barbalex.ch wrote: why only for webapps? I use it to convert data for exports in an existing couchapp. It hurts, not to have this functionality It’s just a simple templating system, really. What makes it valuable in

Re: Querying an embedded document in a Map Reduce function

2013-12-27 Thread Jens Alfke
On Dec 27, 2013, at 4:49 AM, Endika Montejo endika.mont...@smoobility.commailto:endika.mont...@smoobility.com wrote: How can I query so to retrieve all the documents where userName b has written a comment? I ask this cause I could easily query by postName or content, but I don't find any way

Re: Future proof transition to CouchBase

2013-12-28 Thread Jens Alfke
On Dec 28, 2013, at 4:09 AM, Francisco Garcia pub...@francisco-garcia.netmailto:pub...@francisco-garcia.net wrote: So far I have been developing only with CouchDB as backend. Since the final version of CBL seems to be close, I really wanted to give CouchBase a try. Up until now, I assumed a

Re: Memory increase when query multi times

2014-01-02 Thread Jens Alfke
On Dec 31, 2013, at 10:51 PM, Dương Văn Thạch thachonl...@gmail.com wrote: I am using CBL beta 2,my data is 200MB. How many documents? How big are the attachments, if any? when I query database with multi query using CBLQuery, the memory increase up to 100MB and not reduce when I do not

Re: how to delete a revision

2014-01-07 Thread Jens Alfke
On Jan 7, 2014, at 1:32 PM, Sören Havemester resh...@gmail.com wrote: Can somebody give me a hint on how to delete a revision - I guess by some REST command - but I can't get any REST working via the TouchDBListener framework as indicated in the couchbase lite wiki. What platform/API are

Re: Pull filter / Unknown filter

2014-01-08 Thread Jens Alfke
On Jan 8, 2014, at 8:35 AM, Adam Zieliński aziel...@gmail.commailto:aziel...@gmail.com wrote: Is it ok that sync gateway can't see _design doc? Why i can't use filter? The Sync Gateway doesn’t support CouchDB-style filters (or design documents.) Channels are intended to serve the same purpose

Re: Couchbase Lite and TouchDB iOS Data Storage Compatibility

2014-01-13 Thread Jens Alfke
On Jan 13, 2014, at 11:33 AM, len.kaw...@timeboxapp.com wrote: This may have been answered already, but I can't seem to find it stated anywhere: do Couchbase Lite 1.0 and TouchDB 1.02 on iOS use the same data storage format? Yes, except that Couchbase Lite uses the filename suffix

Re: TouchDB lastSequenceNumber usage

2014-01-14 Thread Jens Alfke
I found a better query to get the latest sequence number: SELECT seq FROM sqlite_sequence WHERE name=‘revs' This makes use of the ‘sqlite_sequencehttp://www.sqlite.org/fileformat2.html#seqtab’ table, which is where SQLite stores the last primary key that was generated. I’ve just committed a

Re: Why is properties on my object nil after save?

2014-01-15 Thread Jens Alfke
On Jan 15, 2014, at 2:04 AM, Ole Ventzel Davidsen ole.david...@gmail.commailto:ole.david...@gmail.com wrote: I need to send an object to my server using a complete json graph. But I can't get related models out correctly. I just get their ids. That’s how relations between models are stored.

Re: Regarding CBLModel and how it saves relationships as documentIDs

2014-01-17 Thread Jens Alfke
On Jan 17, 2014, at 8:35 AM, K Beyer kyle.be...@gmail.commailto:kyle.be...@gmail.com wrote: I'd like to do the same thing ... have support for child models that don't need to be separate docs. Currently, we have a base class which takes a NSDictionary to set up the properties ... it's used

Re: First encounter with the sync gateway

2014-01-18 Thread Jens Alfke
On Jan 17, 2014, at 11:52 PM, Francisco Garcia pub...@francisco-garcia.netmailto:pub...@francisco-garcia.net wrote: Now everything makes sense. When testing the gateway installation, the whole time my mind was set to Gateway running, look for the Gateway API when actually, the API was inside

Re: What is the best architecture for synchronizing user data across devices where user data is unique to them using couchbase server and sync gateway?

2014-01-20 Thread Jens Alfke
On Jan 20, 2014, at 10:25 AM, Akeem P akeem.philb...@wepala.commailto:akeem.philb...@wepala.com wrote: My initial thought was each user get's their own database and use sync gateway to sync them (that seems to have been the prescribed couchdb way though this isn't necessarily couchdb) but I'm

Re: What is the best architecture for synchronizing user data across devices where user data is unique to them using couchbase server and sync gateway?

2014-01-20 Thread Jens Alfke
On Jan 20, 2014, at 12:42 PM, Akeem P akeem.philb...@wepala.commailto:akeem.philb...@wepala.com wrote: WIth respect to the doc ids I shouldn't be worried about a generated id on one person's phone conflicting with the id that someone else's phone generated? Well, UUID stands for Universally

Re: Updating a locally stored document CBL IOS

2014-01-20 Thread Jens Alfke
On Jan 20, 2014, at 6:31 AM, paul Orsillo paul.orsi...@gmail.com wrote: CBLUnsavedRevision *newRev = [tgtDoc newRevision]; [propSet setValue:newRev forKey:@_rev]; This doesn't make sense. The value of a _rev property is a string, not a CBLUnsavedRevision object. (Remember, a document's

Re: Token Vending Machine - User Account Creation

2014-01-20 Thread Jens Alfke
Hm, I'm not sure what aspect your question is focusing on. Are you asking about user registration and authentication, or about how your Java code can access the documents managed by the Sync Gateway? If the question is authentication: The answer is to have the client communicate with your Java

Re: Flush couchbase database content

2014-01-20 Thread Jens Alfke
On Jan 20, 2014, at 1:07 PM, Frederic Yesid Peña Sánchez fredericp...@gmail.commailto:fredericp...@gmail.com wrote: I'm facing another issue, i need to close my session and drop all my data, but don't know which is the correct approach, how to clean de existing database? I've using

Re: Question about document/attachment size

2014-01-20 Thread Jens Alfke
On Jan 20, 2014, at 2:14 PM, Ryan Payne ryanpayneandr...@gmail.commailto:ryanpayneandr...@gmail.com wrote: I have a generic base document class that I use for inserting, and it has an _attachments property. Not every document has attachments, so it gets inserted with _attachments: null null

Re: Database storage capacity

2014-01-21 Thread Jens Alfke
On Jan 21, 2014, at 3:00 AM, Endika Montejo endika.mont...@smoobility.commailto:endika.mont...@smoobility.com wrote: I have just got a error in CBL due to the database was full. I just have 150 documents inside of it which are moreless 2MB. ... Does anybody know the capacity of CouchBase Lite.

Re: FullText : query with REST API

2014-01-21 Thread Jens Alfke
On Jan 21, 2014, at 4:31 AM, pierre houlle pierre2p...@gmail.commailto:pierre2p...@gmail.com wrote: http://lite.couchbase./mybucket/_design/mydoc/_view/myview?full_text=mysearchstring I receive all the results of my view (the full text search does not work). Hm, that query looks correct. I

Re: Continuous Replication Issues

2014-01-21 Thread Jens Alfke
On Jan 21, 2014, at 8:26 AM, Scott Ahten lightandshado...@gmail.commailto:lightandshado...@gmail.com wrote: After updating the latest version of CBL, I've noticed the .rows property is showing up as deprecated. What is the replacement property to observe? It's only deprecated on CBLQuery, in

Re: Continuous Replication - Stop Replication - Update Object - Delete Object - Create Object again - Start replication - CONFLICTS !!

2014-01-21 Thread Jens Alfke
On Jan 21, 2014, at 12:20 PM, Diogo Júnior drjunior@gmail.commailto:drjunior@gmail.com wrote: The push replicator will only send to the target database the latest revision of A object (rev 1). I think this is a bug in the replication algorithm, at least as implemented on Android. The

Re: Inserting a document with CBLModel

2014-01-22 Thread Jens Alfke
On Jan 22, 2014, at 9:15 AM, endika.mont...@gmail.commailto:endika.mont...@gmail.com wrote: Please let me know if you fix this. File an issue on Github, and you'll get notified when it's updated or resolved. —Jens -- You received this message because you are subscribed to the Google Groups

Re: Observing documentchanges

2014-01-22 Thread Jens Alfke
On Jan 22, 2014, at 11:52 AM, Ajith ajithrna...@icloud.commailto:ajithrna...@icloud.com wrote: I've an iOS app with multiple databases in it. The App, using Couchbase-Lite-iOS, replicates with CouchDB server. I've classified different documents using a type property.Now, I'd like to add a

Re: Observing documentchanges

2014-01-22 Thread Jens Alfke
On Jan 22, 2014, at 11:58 AM, wbi...@attic.nlmailto:wbi...@attic.nl wrote: Maybe storing the rev's (along with the _id) isn't such a bad idea after all ? Each time .rows is changed, loop through the rows and update the UI for rows with a higher _rev ? I looked through the API some more —

Re: Question about additional user fields not being saved via Sync Gateway Admin API.

2014-01-22 Thread Jens Alfke
On Jan 22, 2014, at 1:12 PM, Derek Donnelly de...@codex9.com wrote: • How come the other fields are missing? A user account isn't a document — you can't put arbitrary JSON into it. I think what's confusing you is that the API for accessing users is REST and JSON based, so it looks like

Re: Question about additional user fields not being saved via Sync Gateway Admin API.

2014-01-22 Thread Jens Alfke
On Jan 22, 2014, at 2:24 PM, Derek Donnelly de...@codex9.commailto:de...@codex9.com wrote: 1: As I need some sort of actual user document to query for the remainder of the user and device registration process, would I be right to assume it's standard then to create some sort of linked user

Re: Issue with replication

2014-01-27 Thread Jens Alfke
On Jan 27, 2014, at 8:53 AM, Endika Montejo endika.mont...@smoobility.com wrote: And about the Unable to save remote checkpoint: Error Domain=NSURLErrorDomain Code=-999 The operation couldn’t be completed. (NSURLErrorDomain error -999.) Can this issue come cause I set NSArray* repls =

Re: Sync Gateway

2014-01-27 Thread Jens Alfke
On Jan 27, 2014, at 12:06 PM, Francisco Garcia pub...@francisco-garcia.netmailto:pub...@francisco-garcia.net wrote: Looking at some generated documents and the _sync property. I noticed that the channels property looks strange. Repeated multiple times like: That's part of the revision history

Re: NSDate inside NSDictionary?

2014-01-28 Thread Jens Alfke
On Jan 28, 2014, at 8:45 AM, Endika Montejo endika.mont...@smoobility.commailto:endika.mont...@smoobility.com wrote: Can't I add this kind of property? No. Dates are not a valid data type in JSON. Only strings, numbers, booleans, null (and arrays and dictionaries.) You can use the utility

Re: Pull filter / Unknown filter

2014-01-28 Thread Jens Alfke
On Jan 28, 2014, at 10:26 AM, Adam Zieliński aziel...@gmail.commailto:aziel...@gmail.com wrote: When I call pull replication it doesnt work. Push replication works without any problems. Any idea? What does it doesn't work mean, exactly? Have you tried turning on any client-side sync logging?

Re: Using sync gateway with couchbase lite and phonegap

2014-01-28 Thread Jens Alfke
On Jan 28, 2014, at 3:58 PM, Alex Reynolds alex.reyno...@thinksolid.commailto:alex.reyno...@thinksolid.com wrote: Looks like it wasn't synced because removed is true. Why is that true? The document is no different from the other 100 that were synced. That's strange. _removed is an indication

Re: Using sync gateway with couchbase lite and phonegap

2014-01-28 Thread Jens Alfke
On Jan 28, 2014, at 4:39 PM, Alex Reynolds alex.reyno...@thinksolid.commailto:alex.reyno...@thinksolid.com wrote: Working with this will be the end of me. I purged the app and re-installed and now it only shows 1 doc in the changes feed. Why would it on a new replication with no docs in the

Re: P2P replication

2014-01-29 Thread Jens Alfke
On Jan 28, 2014, at 11:33 PM, Akbar Ali akbarali1...@gmail.commailto:akbarali1...@gmail.com wrote: I am interested to know if the local couchdb in android device can be synced with another local couchdb in another device, possibly via wifi or some other technology Please

Re: Using CouchCocoa with Cloudant

2014-01-29 Thread Jens Alfke
On Jan 29, 2014, at 6:55 AM, Pulkit Singhal pulkitsing...@gmail.commailto:pulkitsing...@gmail.com wrote: Did this by any chance get resolved already? Did what get resolved? I can't tell from the snippet you quoted. (But CouchCocoa hasn't been updated in six months.) --Jens -- You received

Re: Using CouchCocoa with Cloudant

2014-01-29 Thread Jens Alfke
On Jan 29, 2014, at 7:09 AM, Pulkit Singhal pulkitsing...@gmail.commailto:pulkitsing...@gmail.com wrote: So I'm asking if you recall someone submitting a pull-request to you, which was merged into the main code branch? Nope, no one has come forward. Pull requests are public, by the way; if

Re: TODO lite..

2014-01-29 Thread Jens Alfke
On Jan 29, 2014, at 7:36 AM, Adam Zieliński aziel...@gmail.commailto:aziel...@gmail.com wrote: In todo lite there is authentication by facebook. When the user account on gateway is created? In other words I just want to be sure that when facebook finishes authentication user account on

Re: testing in browser..

2014-01-29 Thread Jens Alfke
On Jan 29, 2014, at 7:56 AM, Adam Zieliński aziel...@gmail.commailto:aziel...@gmail.com wrote: I just wonder if there is some mock couchbase JS lib that we can use in browser. It would be great to have simple CRUD functionality and keep documents only in memory [without replication and other

Re: Using sync gateway with couchbase lite and phonegap

2014-01-29 Thread Jens Alfke
On Jan 29, 2014, at 9:04 AM, Alex Reynolds alex.reyno...@thinksolid.commailto:alex.reyno...@thinksolid.com wrote: Here's a doc. The process is / was that we get a feed into the Admin REST on couchbase server from a MSSQL then we added the sync gateway and did the import_docs. Thanks for the

Re: Using sync gateway with couchbase lite and phonegap

2014-01-29 Thread Jens Alfke
On Jan 29, 2014, at 10:54 AM, michael.fenw...@thinksolid.com wrote: One thing I've noticed that when I change the sync function in the config file in any way, including removing it, and then try to restart the sync gateway, I get the following error. When the sync function changes, the

Re: Using sync gateway with couchbase lite and phonegap

2014-01-29 Thread Jens Alfke
On Jan 29, 2014, at 12:32 PM, I wrote: What version/build of the gateway are you running? Beta 2? After some investigation: The line numbers in the crash log don't make any sense for beta 2, and they don't quite make sense for the current master branch. I'm going to need to know the exact

Re: Couchbase lite beta 2 creating Design Docs via Javascript, phonegap

2014-01-29 Thread Jens Alfke
On Jan 29, 2014, at 4:37 PM, Alex Reynolds alex.reyno...@thinksolid.commailto:alex.reyno...@thinksolid.com wrote: However trying to get the view gives me a 404 $.ajax({url:http://lite.couchbase./jdb/_design/dev_jdb/_view/foo,contentType:application/json,datatype:json}) That looks OK ... The

Re: Attachment images

2014-01-30 Thread Jens Alfke
On Jan 30, 2014, at 6:53 AM, PRASASNNA KUMAR prasannakumar.pg...@gmail.commailto:prasannakumar.pg...@gmail.com wrote: In Android couchdb beta 2version, how we can retrive the an atchaments images from document and how to set to the an Image View.I could not found any such methods in new api.

Re: Couchbase lite beta 2 creating Design Docs via Javascript, phonegap

2014-01-30 Thread Jens Alfke
On Jan 30, 2014, at 8:59 AM, Alex Reynolds alex.reyno...@thinksolid.commailto:alex.reyno...@thinksolid.com wrote: You know I just updated to beta two and didn't include the extra js file. Shouldn't the end point still respond just err vs a 404? You're right, 404 is misleading ... it should

Re: How to Retrive an images from couchdb on an android

2014-01-30 Thread Jens Alfke
On Jan 30, 2014, at 7:11 AM, PRASASNNA KUMAR prasannakumar.pg...@gmail.commailto:prasannakumar.pg...@gmail.com wrote: 1) How we can Retrive an images from documentation in coucdb on an android with available New Api..?.I could not found any such method to retrive an images and also

Re: GUEST user disabled?

2014-01-30 Thread Jens Alfke
Hmmm ... looks like the permissions for doc app may be wrong. As guest can you do GET :4984/todos/? This should return database stats, not a 401 error, if you're authorized to see the database. And can you use the Couchbase admin UI to look at the document app in the bucket? Post the JSON in a

Re: Using couple of keys in MapReduce functions

2014-01-31 Thread Jens Alfke
On Jan 31, 2014, at 8:26 AM, endika.mont...@gmail.commailto:endika.mont...@gmail.com wrote: My problem is that I am coding this but can't just emit ([doc.name, doc.surname], doc); as I get an Expected identifier error. If I just emit (doc.name, doc) I get no error as I am just giving one

Re: Provide _rev on document creation.

2014-01-31 Thread Jens Alfke
On Jan 31, 2014, at 8:27 AM, Frederic Yesid Peña Sánchez fredericp...@gmail.commailto:fredericp...@gmail.com wrote: Currently we have an application that does his first data sync over a REST api, then when the REST calls are finished, the app starts replicating to SyncGateway. That seems

Re: Using couple of keys in MapReduce functions

2014-01-31 Thread Jens Alfke
On Jan 31, 2014, at 8:37 AM, endika.mont...@gmail.commailto:endika.mont...@gmail.com wrote: I am developing in objective c OK. It would help if you'd show the actual source code of your map block when you're asking for help with it, instead of posting a JavaScript translation of it :)

Re: Provide _rev on document creation.

2014-01-31 Thread Jens Alfke
On Jan 31, 2014, at 10:23 AM, Frederic Yesid Peña Sánchez fredericp...@gmail.commailto:fredericp...@gmail.com wrote: The REST service IS the origin server, the api we made can be queried from REST or synced by cronjob. Hm, so it's conceptually the same as pulling the docs from the server,

Re: Provide _rev on document creation.

2014-02-03 Thread Jens Alfke
On Feb 3, 2014, at 2:26 PM, Frederic Yesid Peña Sánchez fredericp...@gmail.commailto:fredericp...@gmail.com wrote: So here comes the first headache as the replication for 4k records being pushed from iOS device is VERY slow, even when the server is not even at 25% load. I would really like

Re: Provide _rev on document creation.

2014-02-04 Thread Jens Alfke
On Feb 4, 2014, at 5:54 AM, Frederic Yesid Peña Sánchez fredericp...@gmail.commailto:fredericp...@gmail.com wrote: On the first item, I will make a dump of my data, although don't know which format will be useful for you. Best would be the .cblite file from the app's Application

Re: CBL Replication states

2014-02-04 Thread Jens Alfke
On Feb 4, 2014, at 7:47 AM, Matt Quinn m...@mjquinn.camailto:m...@mjquinn.ca wrote: If a one-shot replication hits an error, does it retry itself as well, The intention is that it should retry on some classes of error that are likely to be transitory, like host-not-found* or

Re: CBLModel write to disk (time taken)

2014-02-04 Thread Jens Alfke
On Feb 4, 2014, at 7:11 PM, Manikandan Ramamoorthy mani.ios...@gmail.com wrote: Could you please tell me first of all, whether 10 secs to save around 500 documents is an acceptable one? What version of Couchbase Lite, what OS, what device? Also, does the time you quoted include just the

Re: Replication with authorization

2014-02-05 Thread Jens Alfke
On Feb 5, 2014, at 4:18 AM, Endika Montejo endika.mont...@smoobility.com wrote: What I don't know is how can I get an NSURL to can do the replication. You have to know the URL of the remote database ahead of time. Just as if you weren't using authentication. --Jens -- You received this

Re: Replication with authorization

2014-02-05 Thread Jens Alfke
On Feb 5, 2014, at 7:26 AM, Endika Montejo endika.mont...@smoobility.commailto:endika.mont...@smoobility.com wrote: Yes, I have tried self.remoteDBURL = [NSURL URLWithString:[NSString stringWithFormat:@%@://%@:%ld/%@,space.protocol, space.host, space.port, space.realm]]; But doesn't work for

Re: Replication with authorization

2014-02-05 Thread Jens Alfke
On Feb 5, 2014, at 7:49 AM, endika.mont...@gmail.com wrote: I send the URL of my replication with the following params: What do you mean by send here? Who is sending those parameters to who? So with this I can get the URL for example: https://...com:port/dbName. That sounds reasonable.

Re: _bulk_docs Speed

2014-02-05 Thread Jens Alfke
On Feb 5, 2014, at 8:58 AM, Frederic Yesid Peña Sánchez fredericp...@gmail.commailto:fredericp...@gmail.com wrote: I'm wondering if there is noticeable speedup on using a single _bulk_docs over several PUT requests. Yes; that's why it exists :) --Jens -- You received this message because

Re: Replication with authorization

2014-02-05 Thread Jens Alfke
In your code you're mixing up database names and server realms: space = [[NSURLProtectionSpace alloc] initWithHost: remoteHost port: [remotePort intValue] protocol: channel realm: remoteDBName authenticationMethod:

Re: Infinite iteration on _changes request.

2014-02-05 Thread Jens Alfke
It could be either a client or a gateway bug. To be able to tell, I'll need to see the response from the gateway. Is there a way you can view the response, e.g. by sniffing the traffic or getting some middleware to log it? If the client is iOS (or Mac) you can run it with ChangeTracker and

Re: Reflecting changes from Cloudbase Server to Sync Gateway to CBLite: Bucket Shadowing?

2014-02-06 Thread Jens Alfke
On Feb 6, 2014, at 12:46 AM, Rajagopal V rajas...@gmail.commailto:rajas...@gmail.com wrote: Im very new to Cloudbase, so please excuse my usage of terminologies. Welcome! But it's Couchbase. :) I then tried to use the Python SDK to make some changes to a document on the cloudbase server and

Re: Infinite iteration on _changes request.

2014-02-06 Thread Jens Alfke
On Feb 6, 2014, at 8:25 AM, Traun Leyden traun.ley...@gmail.commailto:traun.ley...@gmail.com wrote: 4) Go compiles faster. Much, much faster. Oh yeah, I forgot about that! This was actually one of the big reasons Go was invented -- IIRC, Rob Pike said once that they used to work on

Re: Sync Gateway Users

2014-02-07 Thread Jens Alfke
On Feb 7, 2014, at 2:11 AM, Nicolas Lapomarda n...@conceited.netmailto:n...@conceited.net wrote: The gateway doesn't seem to persist user accounts, so I need to recreate them everytime I start the gateway (via POST /_user { name: username, password: userpw }). That's news to me! Can you

Re: Controlling _id for document connected to CBLModel

2014-02-10 Thread Jens Alfke
On Feb 10, 2014, at 1:45 PM, Alan McKean alanmck...@me.com wrote: It looks like I will have to create the CBLModel before I create the CBLDocument so that it will pick up the overridden version of idForNewDocumentInDatabase:. Yes? If you create the document first, it's even easier. Just

Re: Controlling _id for document connected to CBLModel

2014-02-10 Thread Jens Alfke
On Feb 10, 2014, at 3:06 PM, Alan McKean alanmck...@me.com wrote: Creating doc with [database documentWIthId::]. All good. But if I keep the _rev in the dictionary when I putProperties, it fails. Take the _rev out, and it succeeds but sets the _rev to 1-xx. Is there a way to

Re: CBLReplicaton and conflicts

2014-02-13 Thread Jens Alfke
On Feb 13, 2014, at 9:50 AM, Alan McKean alanmck...@me.commailto:alanmck...@me.com wrote: I checked the wiki but didn't see anything about the SYNC keyword. I enabled logging with -LOG YES but don't see anything new. The wiki home page links to the doc section Enabling

Re: CBLReplicaton and conflicts

2014-02-13 Thread Jens Alfke
Overriding -save: like that isn't going to work. The two immediate problems I see are: (1) In the encrypted case you don't call the original save method, so in turn -didSave doesn't get called, which does some important bookkeeping like clearing the needsSave flag. (2) There are code paths,

Re: OR Mapper for CBLite in Android?

2014-02-14 Thread Jens Alfke
Traun wrote: One problem with OR mapping frameworks is that developers have so many differing/conflicting requirements that it's almost impossible to create one that everyone likes. I'm leaning heavily towards making this a separate module rather than putting it in the core codebase, with

Re: curl example for creating a user

2014-02-14 Thread Jens Alfke
On Feb 14, 2014, at 8:01 AM, Joel Saltzman saltzmanjo...@gmail.com wrote: I tried: curl -X POST -u Administrator:mypass http://127.0.0.1:8091/beer-sample/_user/jens --data '{name:jens,email:j...@someemail.com,password:1234}}' Port 8091 is Couchbase Server, not the Sync Gateway. I also

Re: curl example for creating a user

2014-02-14 Thread Jens Alfke
On Feb 14, 2014, at 9:11 AM, Joel Saltzman saltzmanjo...@gmail.commailto:saltzmanjo...@gmail.com wrote: Now when I put to the gateway (port 4985) I get: {error:not_found,reason:no such database \default\} However, I definitely have a default bucket with no authentication * The default

Re: Is it possible to start PullReplication with mulitple filters - Couchbase Lite Android?

2014-02-17 Thread Jens Alfke
On Feb 16, 2014, at 11:15 PM, Pankaj Jakhar pankajjakh...@gmail.commailto:pankajjakh...@gmail.com wrote: In CouchDB function is written as: function(doc){ emit(doc._id, null); } Where would I specify extra param in CouchDB which will accept filterparams? That's a map function, which is for

Re: Problems with replication

2014-02-17 Thread Jens Alfke
On Feb 17, 2014, at 4:23 AM, Endika Montejo endika.mont...@smoobility.com wrote: I have downloaded the framework from: http://www.couchbase.com/download#cb-mobile That's the right location. What I have seen is that until the whole replication is done I get the following error :

Re: Calling map for sequence

2014-02-17 Thread Jens Alfke
On Feb 17, 2014, at 6:20 AM, Frederic Yesid Peña Sánchez fredericp...@gmail.commailto:fredericp...@gmail.com wrote: But there is my view B, that keeps logging me call map for sequence every time is queried, noticing my app slows down here. It shouldn't be doing that -- the view should only be

Re: New to couchbase-build error on IOS when using 64 bits

2014-02-17 Thread Jens Alfke
On Feb 17, 2014, at 5:19 AM, Charlie Woloszynski cwoloszyn...@gmail.commailto:cwoloszyn...@gmail.com wrote: I just pulled the latest and I don't see a CBL iOS, I do see a 'Continuous iOS' and a 'CBL iOS Library'. Is there a different version I should be looking at? Hmm, looks like in a clean

Re: Array handling in document properties

2014-02-17 Thread Jens Alfke
On Feb 17, 2014, at 6:28 PM, Alan McKean alanmck...@me.commailto:alanmck...@me.com wrote: (lldb) po self.charges nil ``` I have a property in my model: ``` @property (nonatomic, strong) NSArray * charges; I'll bet you forgot to declare the property as @dynamic in the implementation. If

Re: Problems with replication

2014-02-18 Thread Jens Alfke
On Feb 18, 2014, at 7:04 AM, Endika Montejo endika.mont...@smoobility.commailto:endika.mont...@smoobility.com wrote: 2014-02-18 16:00:23.530 newIOSReplication[21698:70b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason:

Re: Problems with replication

2014-02-19 Thread Jens Alfke
On Feb 19, 2014, at 1:41 AM, Endika Montejo endika.mont...@smoobility.com wrote: I have just had an error which is similar to the previous one, but adds some more information The first part of the exception message is a description of the object that was sent the observe message but

Re: FullText : query with REST API

2014-02-19 Thread Jens Alfke
On Feb 19, 2014, at 6:15 AM, pierre houlle pierre2p...@gmail.com wrote: So, my question is : can we index some fields in a view by using rest api. Please see the wiki page on full-text search for details. —Jens smime.p7s Description: S/MIME cryptographic signature

Re: null channels when sync gateway is down

2014-02-19 Thread Jens Alfke
On Feb 19, 2014, at 12:43 PM, Rajagopal V rajas...@gmail.commailto:rajas...@gmail.com wrote: Im creating a simple document and also updating it via iOS when the Sync Gateway is down. Upon restarting SG, the document (original and update revision) are both pushed to Couchbase server through

Re: Replication hanging half-way through

2014-02-19 Thread Jens Alfke
On Feb 19, 2014, at 6:10 PM, dyowee csharpenthusi...@gmail.commailto:csharpenthusi...@gmail.com wrote: I'm hosting my own CouchDB behind an nginx reverse proxy, but somehow, half way through or at the end of the replication, it just hangs. In the nginx log, I see this last line PUT

Re: How should LiveQuery handle rapid fire change requests?

2014-02-19 Thread Jens Alfke
On Feb 19, 2014, at 6:26 PM, Traun Leyden tley...@couchbase.commailto:tley...@couchbase.com wrote: From what I can tell, in the iOS version it doesn't have this issue. Instead: * Rapid fire calls to LiveQuery.databaseChanged will result in multiple queries getting queued up, and they will

Re: Replication hanging half-way through

2014-02-19 Thread Jens Alfke
On Feb 19, 2014, at 8:15 PM, dyowee csharpenthusi...@gmail.com wrote: Thanks sir. But is there a way to know if CouchDB or the mobile device is the one that hangs? Well, what do you mean by hangs? Is CouchDB responding to HTTP requests? Is the mobile app handling user input? If the

Re: Replication hanging half-way through

2014-02-19 Thread Jens Alfke
On Feb 19, 2014, at 8:47 PM, dyowee csharpenthusi...@gmail.commailto:csharpenthusi...@gmail.com wrote: But a couple of users are complaining that the replication doesn't complete. And based on the nginx log, from what I mentioned earlier, a PUT is the last log seen. If I ask the user to

Re: Keep local document from Syncing to gateway

2014-02-20 Thread Jens Alfke
On Feb 20, 2014, at 5:01 PM, Alex Reynolds alex.reyno...@thinksolid.commailto:alex.reyno...@thinksolid.com wrote: I want to create a document in couchbase lite but I don't want it to sync to the gateway under certain circumstance. Write and register a filter block, then set that filter in

Re: document disappeared after sync

2014-02-21 Thread Jens Alfke
On Feb 21, 2014, at 7:44 AM, J. Chris Anderson jch...@couchbase.com wrote: I have a doc in a channel I have access right. It was marked as _removed:true after a sync. I checked the document on couchbase the found the document is: The structure of the data in the gateway's private bucket is

Re: Invalid type in JSON write (CBLQueryRow)

2014-02-21 Thread Jens Alfke
On Feb 21, 2014, at 4:59 PM, Frederic Yesid Peña Sánchez fredericp...@gmail.com wrote: 2014-02-21 19:57:05.212 XX[993:461b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write (CBLQueryRow)' Invalid type doesn't appear

Re: Full Text Search and CBLTableViewDataSource

2014-02-23 Thread Jens Alfke
On Feb 22, 2014, at 11:23 PM, Todd Freese to...@filmworkers.com wrote: Can CBLTableViewDataSource be used with Full Text Searching? Can't seem to get it working and thought it might have something to do with the fact that the results are CBLFullTextQueryRows. It should work fine, as far as

Re: Filter CBLView by keys

2014-02-23 Thread Jens Alfke
On Feb 23, 2014, at 1:17 PM, Eduardo Scoz eduardos...@gmail.com wrote: How can I set up the startkey/endkey/key so that the view only returns rows with keys starting with @[@A, @Car] ? view.startKey = @[@A, @Car]; view.endKey = @[@A, @Car, @{}]; The trick is that an empty dictionary sorts

Re: Full Text Search and CBLTableViewDataSource

2014-02-23 Thread Jens Alfke
On Feb 23, 2014, at 1:25 PM, Todd Freese to...@filmworkers.com wrote: It always returns all the docs. If I break the full text query code out into a test method, it shows that it is in fact returning the correct docs. But the tableview is showing the wrong docs. I think the way you

Re: Full Text Search and CBLTableViewDataSource

2014-02-23 Thread Jens Alfke
On Feb 23, 2014, at 4:36 PM, Todd Freese to...@filmworkers.com wrote: Also, do I need to import something for stripHTMLTags? It that a defined in a category on NSString? I don't know anything about that method; I assumed it was something in your code. If you saw it in an example in our

Re: Full Text Search and CBLTableViewDataSource

2014-02-24 Thread Jens Alfke
On Feb 24, 2014, at 9:10 AM, Todd Freese to...@filmworkers.com wrote: One more issue with Full Text Query. It seems that it can't handle indexing on a field if one of the docs contain a property that is null if that property is being queried. CBLTextKey doesn't allow nil as a parameter.

Re: Full Text Search and CBLTableViewDataSource

2014-02-24 Thread Jens Alfke
On Feb 24, 2014, at 10:56 AM, Todd Freese to...@filmworkers.com wrote: Is there no way to do a contains search? *test* does not seem to work. The docs mention doing a prefix like test* which works. Apparently you can't search on substrings within words; I think this is a side effect of the

Re: Full Text Search and CBLTableViewDataSource

2014-02-24 Thread Jens Alfke
On Feb 24, 2014, at 1:50 PM, Todd Freese to...@filmworkers.com wrote: Rather than use FTS for this, maybe a NSPredicate on the datasource might be better? Do you think that would work? Not sure what the predicate string would be to drill down into the rows to get at the data You mean

Re: my_map from CBL source

2014-02-25 Thread Jens Alfke
On Feb 25, 2014, at 8:05 AM, Todd Freese to...@filmworkers.com wrote: The code is calling the my_map method from CollectionUtils.h and it can't find this method. It's in CollectionUtils.h, inside the Couchbase Lite sources. I'm calling #import CouchbaseLite/CouchbaseLite.h which I would

Re: Crash - datasource on new rows update

2014-02-26 Thread Jens Alfke
You also filed an identical issue on this at the same time. Please use the mailing list or the issue tracker, but don't be redundant. (In general it's best to use the mailing list unless you believe what you're seeing is a bug in Couchbase Lite.) --Jens -- You received this message because

Re: Knowing if a pull is necessary

2014-02-27 Thread Jens Alfke
On Feb 27, 2014, at 3:17 PM, Alan McKean alanmck...@me.com wrote: I am starting a pull replication on app launch and I put up a progress indicator to show progress. I hide the progress indicator in my observer (observeValueForKeyPath:ofObject:change:context:). The first time I launch all

ANN: Support for document encryption (iOS)

2014-02-28 Thread Jens Alfke
Alan McKean and I just implemented some hooks for transforming documents during replication. The intended use for this feature is to let apps implement server-side encryption of documents. An app would implement these hooks to transform a document into encrypted form during a push replication,

FYI: Apple iOS security white-paper

2014-02-28 Thread Jens Alfke
A few days ago Apple released a white paper [PDF link] describing the security features of iOS. It's a must-read if you're interested in keeping app data secure, or just curious how the security features work. It goes into quite a lot of detail about the hardware encryption support, the

Re: ANN: Support for document encryption (iOS)

2014-03-02 Thread Jens Alfke
On Mar 2, 2014, at 3:18 PM, Nate n...@pixelauthorityllc.com wrote: 1. I saw an older commit to TouchDB where you added support for the data protection APIs. I still see some references to this in the current codebase, but I'd like to confirm that Couchbase Lite is still encrypting local

Re: MAP Reduce - Querying on multiple parameters (Select OR Clause)

2014-03-04 Thread Jens Alfke
On Mar 4, 2014, at 2:08 AM, archit agarwal archit...@gmail.com wrote: When you say smart queries to do joins - can you give an example of this? And can I in some way ensure that I always have the document of the user who sent a new chat message. I.e user doc + chat doc together.

  1   2   3   4   5   6   7   8   9   10   >