fluid-work IRC Logs-2009-11-30

[03:11:03 EST(-0500)] * boyan1 (n=boyan@62.44.108.2) has joined #fluid-work
[03:33:40 EST(-0500)] * joan2 (n=jgarci@120.Red-213-96-26.staticIP.rima-tde.net) has joined #fluid-work
[06:15:02 EST(-0500)] * sveto (n=sveto@62.44.108.2) has joined #fluid-work
[08:04:46 EST(-0500)] * Justin_o (n=Justin@142.150.154.171) has joined #fluid-work
[08:12:10 EST(-0500)] <sveto> joan2: hi, joan, I was wondering if you had some breakthrough with couchdb, I still can't do a POST, but succeeded in doing a DELETE
[08:12:23 EST(-0500)]

<sveto> by using something like - curl -X DELETE http://localhost:5984/users/cc0b744d22559197a589578e69a58d8f?rev=

Unknown macro: {2-7051cbe5c8faecd085a3fa619e6e6337}

[08:14:27 EST(-0500)] * athena (n=athena@adsl-75-58-127-15.dsl.wlfrct.sbcglobal.net) has joined #fluid-work
[08:14:28 EST(-0500)] <joan2> hi.
[08:15:19 EST(-0500)] <joan2> (in js) I have insert, get.
[08:17:38 EST(-0500)] <joan2> sveto: (in js) i fail with update (i have an idea to check) and also fail on delete.
[08:17:38 EST(-0500)] <joan2> sveto: today i tell you ...
[08:17:58 EST(-0500)] <joan2> sveto: delete, I got and error "conflict", documentation says nothing about the version.
[08:18:16 EST(-0500)] <joan2> sveto: latter i told you ...
[08:19:33 EST(-0500)] <sveto> ok, I also got the conflict error for delete, still can't figure out how to make it in js...
[08:22:51 EST(-0500)] <sveto> for POST I found that the Content-Type header should be "multipart/form-data". don't know if that is the case with the latest couchdb, but using it makes an error about content type dissappear, so I guess it is required.
[08:30:09 EST(-0500)] * laurel (n=Laurel@142.150.154.178) has joined #fluid-work
[08:37:58 EST(-0500)] <Justin_o> joan2: just noticed that you sent James a question on the list. James is away this week, so you may not get a response from him till next week.
[08:43:00 EST(-0500)] <joan2> thxs justin. i'll do a cleanup of parade component and also i'll try to get a reasonable persistence api for comments (using couchdb as db server).
[08:43:21 EST(-0500)] <Justin_o> joan2: sounds good
[09:01:41 EST(-0500)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined #fluid-work
[09:07:21 EST(-0500)] * anastasiac (n=team@142.150.154.189) has joined #fluid-work
[09:19:51 EST(-0500)] * fj4000 (n=Jacob@142.150.154.164) has joined #fluid-work
[09:23:07 EST(-0500)] <joan2> sveto: I think I have the update resolved.
[09:23:27 EST(-0500)] <sveto> great! I'm still stuck (sad) how did you make it?
[09:23:28 EST(-0500)] <joan2> sveto: to couchdb using ajax.
[09:25:11 EST(-0500)] <joan2> sveto: scratchpad/bug-parade, see database.html and database.js.
[09:25:41 EST(-0500)] <joan2> sveto: there was no error in api none in elsewhere.
[09:26:35 EST(-0500)] <joan2> sveto: the trick is think in document with it's version (revision). Right now where I put a document in database I update the _rev field with the new one.
[09:27:36 EST(-0500)] <joan2> sveto: this way you can modify and save your object many times. The conflict arises only when it exists.
[09:28:27 EST(-0500)] <sveto> joan2: and when doing an update the document gets updated and not rewritten?
[09:28:43 EST(-0500)] <joan2> sveto: now i go for the delete. (smile)
[09:30:38 EST(-0500)] <joan2> sveto: this database never "never" rewrites an stored document, it always store a new document with the same id and the new _rev ("revision") and latter with his compactation algorithm removes older versions.
[09:31:21 EST(-0500)] <joan2> sveto: or, at least, this is what I've read
[09:31:56 EST(-0500)] <sveto> joan2: I think I read about that... but can I supply only some fields in the update or do I have to supply the whole document?
[09:33:32 EST(-0500)] <joan2> sveto: I suppose that all is trying. Don't know. Could you check it (if you like you can give the database.js a try) ?
[09:34:28 EST(-0500)] * boyan1 (n=boyan@62.44.108.2) has left #fluid-work
[09:34:45 EST(-0500)] <sveto> joan2: ok, I'll try it.
[09:42:54 EST(-0500)] * yura1 (n=yura@142.150.154.132) has joined #fluid-work
[09:45:17 EST(-0500)] * jessm (n=Jess@c-71-232-1-65.hsd1.ma.comcast.net) has joined #fluid-work
[09:51:58 EST(-0500)] * clown (n=clown@142.150.154.101) has joined #fluid-work
[10:03:16 EST(-0500)] * michelled (n=michelle@142.150.154.193) has joined #fluid-work
[10:12:54 EST(-0500)] * colinclark (n=colin@142.150.154.101) has joined #fluid-work
[10:22:37 EST(-0500)] * sveto (n=sveto@62.44.108.2) has left #fluid-work
[11:24:36 EST(-0500)] * jessm (n=Jess@c-71-232-1-65.hsd1.ma.comcast.net) has joined #fluid-work
[11:56:33 EST(-0500)] * fj4000 (n=Jacob@142.150.154.164) has joined #fluid-work
[11:56:46 EST(-0500)] * fj4000 (n=Jacob@142.150.154.164) has left #fluid-work
[11:58:05 EST(-0500)] * Justin_o (n=Justin@142.150.154.171) has joined #fluid-work
[12:03:09 EST(-0500)] * elicochran (n=elicochr@dhcp-169-229-212-15.LIPS.Berkeley.EDU) has joined #fluid-work
[12:14:10 EST(-0500)] * fj4000 (n=Jacob@142.150.154.164) has joined #fluid-work
[13:33:06 EST(-0500)] * anastasiac (n=team@142.150.154.189) has left #fluid-work
[13:36:51 EST(-0500)] * fj4000 (n=Jacob@142.150.154.164) has joined #fluid-work
[14:22:44 EST(-0500)] * Justin_o (n=Justin@142.150.154.171) has joined #fluid-work
[14:31:59 EST(-0500)] * laurel2 (n=Laurel@142.150.154.178) has joined #fluid-work
[14:39:45 EST(-0500)] * colinclark (n=colin@142.150.154.101) has joined #fluid-work
[15:15:06 EST(-0500)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined #fluid-work
[16:20:02 EST(-0500)] * anastasiac (n=stasia@dsl-173-206-254-165.tor.primus.ca) has joined #fluid-work
[16:21:33 EST(-0500)] * laurel2 (n=Laurel@142.150.154.178) has left #fluid-work
[17:14:46 EST(-0500)] * clown (n=clown@142.150.154.101) has left #fluid-work
[17:23:19 EST(-0500)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined #fluid-work