/srv/irclogs.ubuntu.com/2009/12/07/#ubuntuone.txt

=== mthaddon` is now known as mthaddon
mihahello peoples :D11:01
aquariushi miha11:09
mihahey, instace of NWO. no new age for you.11:09
mihahehe11:09
aquarius:)11:10
miha(last time "in this New World Order" was mentioned on CNN.. i guess it's official now)11:10
=== miha is now known as wolfeysi
homeasvs_rodrigo_, ping13:32
rodrigo_homeasvs_: pong13:32
homeasvs_rodrigo_, so, I have packages for n90013:32
homeasvs_rodrigo_, but13:32
homeasvs_I have a cryptic erlang error on couchdb startup13:32
homeasvs_http://pastebin.com/d287f37b913:32
rodrigo_hmm, what error is it?13:32
homeasvs_any idea what that's about ?13:32
rodrigo_no, we'd better ask on the #couchdb channel13:33
rodrigo_can you do it please? I'm out for a lunch, bbiab13:33
homeasvs_sure13:33
homeasvs_hm, some googling suggests I did not compile erlang with ssl13:33
rodrigo_oh, yopu already did :)13:33
homeasvs_that would, uhm, 'suck' to figure out now13:33
rodrigo_yeah13:34
rodrigo_ok, bbiab13:34
aquariushomeasvs_, "init terminating in do_boot" is a generic "it didn't start up properly for some reason" error :(13:37
aquariushomeasvs_, quite often it means "I tried to use a library and it wasn't there", which lends weight to your SSL theory13:37
aquariushomeasvs_, although I've had it do the same thing when spidermonkey wasn't available too13:37
homeasvs_aquarius, it looks like ssl, not sure though why it was not built, investigating now13:38
homeasvs_aquarius,                    --enable-dynamic-ssl-lib \13:39
homeasvs_                    --without-ssl-zlib13:39
homeasvs_that's in the deb build13:39
homeasvs_aquarius, any idea what exactly that then does ?13:39
aquariushomeasvs_, I haven't, sorry. I don't know about the build stuff; you want cardinalfang for that, I think13:40
aquarius#couchdb may be more helpful13:40
aquariusheh, in fact they are already being more helpful :)13:40
homeasvs_aquarius, rodrigo_ ok, one crash further13:58
homeasvs_it's so close I can smell it13:58
homeasvs_aquarius, will you be getting an n900 if this works ? :)13:58
aquariusprogress by crashing! :)13:58
aquariushomeasvs_, I don't like physical keyboards, otherwise I'd already be agitating for one, I think :)13:58
homeasvs_aquarius, you don't have to use the physical one :)13:59
aquariushomeasvs_, yeah, but then I've got a phone which is half an inch thicker than it needs to be....13:59
homeasvs_aquarius, if half of that is couchdb, why does it matter ? :)13:59
homeasvs_but I feel you, this phone is big in comparison to my e51 from before14:00
* aquarius grins. I do rather like the idea of couch on the phone, I admit it14:00
urbanapemorning, all14:20
rtgzmornin.gz14:33
rodrigo_homeasvs_: cool :)14:39
homeasvs_sweet baby jesus14:42
homeasvs_I just browsed to futon running from my phone14:42
homeasvs_this calls for some food14:42
rodrigo_woohoo!14:44
=== jcastro_ is now known as jcastro
dobeyhmm14:58
CardinalFangDesktop+ MEETING BEGINS.  Say 'me' to claim a slice of the stand-up meeting, then take your turn by saying DONE/TODO/BLOCKED.15:01
rodrigo_me15:04
CardinalFangme15:05
aquariusme15:05
dobeyrodrigo_: should i comment on your blog or your facebook? I don't know any more what the cool thing to do is :)15:05
dobeyme15:05
rodrigo_dobey: up to you, I'll get notifications on both :)15:05
rodrigo_dobey: the cool thing though is to do it via your Palm Pre :D15:06
rodrigo_dobey: and it would be super cool if you could re-review my libubutuone branch you commented on last Friday :)15:07
dobeyyes i will15:07
dobeywhere is everyone else?15:07
aquariusjblount is off ill15:07
dobeyChipAway, urbanape: ping15:07
dobeyvds: ping15:09
dobeyjblount is sick and teknico is on holiday15:09
dobeyrodrigo_: eh, let's get this over with :)15:10
rodrigo_ok15:10
rodrigo_• DONE: Started adding search to contacts picker. Conboy unstable testing. XML<->HTML fixes15:10
rodrigo_• TODO: Conflict resolver tool in pair tool. Look at becoming a MOTU (https://wiki.ubuntu.com/UbuntuDevelopers). Make sandy's snowy test suite work with our server (http://git.gnome.org/cgit/snowy/tree/api/tests.py). Discuss with jdo and aquarius about oauth token per app, not per machine?15:10
rodrigo_• BLOCKED: no15:10
rodrigo_CardinalFang: go!15:10
urbanapeme15:10
CardinalFangDONE: Attachments.  Finally figure it out.  Played with GTG started writing desktopcouch backend storage.15:11
CardinalFangTODO: Still testing weird edge cases.  May have to harass python-couchdb upstream.15:11
CardinalFangBLOCKED: None15:11
CardinalFangaquarius.15:11
aquarius⚀ DONE:  talk to thisfred and vds about sequence numbers etc; talk to #couchdb about sequence numbers; review duty; decide on lxml, not BeautifulSoup, for html parsing with rodrigo15:11
aquarius⚁ TODO: make tomboy first-sync experience nicer; continue work on desktopcouch developer docs; write up things learned at UDS/sprint; work with rodrigo on Music Store, much more music store architecture planning; step-by-step guide to what happens during contact sync15:11
aquarius⚂ BLOCKED:15:11
aquariusdobey: go15:11
dobey☺ DONE: Reviews, SSO call, Triage15:11
dobey☹ TODO: Homework, Review/Fix #479375, Finish Backporting, Triage, Prepare releases/SRUs15:11
dobey☹ BLCK: None.15:11
dobeyurbanape: rock on15:11
urbanapeDONE: Got ubuntuone-servers branch back from the dead, handed off to jblount for some CSS lovin15:11
urbanapeTODO: Get it landed. Move on to other bugs and Bindwood.15:11
urbanapeEOM?15:11
urbanapeBLOCK: None15:11
rodrigo_sandy|lurk, aquarius: around here?15:17
aquariusya15:17
sandy|lurkyup15:17
rodrigo_ok, so about storing HTML vs XML on our database, sandy|lurk, could you please share your concerns with aquarius?15:18
sandy|lurksure15:18
sandy|lurkso currently there's this bug in the XML<->HTML parser15:18
sandy|lurkwhich messes up bulleted lists a bit15:18
aquariusyes15:18
sandy|lurkat first I thought, okay, no big deal, should only affect users who edit notes in U115:18
sandy|lurkbut then I realized that actually, you store HTML, and the conversion happens on each sync15:19
sandy|lurkwell, this means anyone syncing experiences the bug15:19
sandy|lurkso even though I'm sure this will be fixed soon15:19
sandy|lurkthis sort of thing could easily come up again15:19
aquariusyes.15:19
aquariusYour proposed alternative is, I imagine, store tomboy's XML in the DB, yes?15:19
sandy|lurkso I'd advocate storing the native XML format of the REST API instead15:19
sandy|lurkyup15:19
aquariusmy problem with doing that is that we have to have a working html-to-xml converter for the web UI anyway.15:20
rodrigo_aquarius: well, it makes sense, since it's the format used by tomboy, conboy, tomdroid, etc15:20
sandy|lurkas I explained to rodrigo, I woudl guess that most users using Tomboy+U1 are using it for syncing, then a subset uses it for viewing too, and then a smaller subset uses it for editing15:20
rodrigo_aquarius: or an editor that knows about the XML format, would that be too hard?15:20
homeasvs_rodrigo_, check my facebook :)15:20
sandy|lurkaquarius: yeah, I sympathize with that issue15:20
aquariusrodrigo_, yep, it's too hard. I tried that. Without writing a widget completely, completely from scratch, whcih is horrific pain15:20
sandy|lurkyes, the rich editors all use HTML15:21
sandy|lurkthat makes sense15:21
sandy|lurkaquarius: you could have a cache, of course15:21
aquariussandy|lurk, I'm trying to avoid the web UI falling behind if there's a problem. This way, if there's a problem we see it immediately and can fix it immediately15:21
sandy|lurkgenerate the HTML only when the user actually views the note...slowish the first time15:21
aquariuscache?15:21
sandy|lurkyeah, store both15:21
aquariusyeah, but we have to back-translate15:21
aquariusfrom arbitrary random HTML to tomboy XML15:21
sandy|lurkaquarius: only if they edit15:22
sandy|lurkaquarius: I understand that this way you see bugs faster15:22
sandy|lurkbut users see bugs immediately that they woudl not expect15:22
aquariusyeah. I'm not completely averse to the idea of storing tomboy XML in the DB, I admit15:22
sandy|lurkI would not expect simply syncing my notes to modify them in any way15:22
sandy|lurk(as a user)15:22
rodrigo_storing both formats might be ok, I guess15:23
aquariusoh, I agree15:23
sandy|lurkyeah, I don't know what your space constraints are15:23
rodrigo_homeasvs_: in a minute...15:23
sandy|lurktext is small but doubling the storage could hurt, I dunno15:23
aquariusspace isn't a problem; my issue is that storing the same data twice is a flat-out invitation for them to get out of sync :)15:24
sandy|lurkbut ideally, storing both would be my favorite soution15:24
aquariusif they're translatable, then you don't need to store them twice. If they're not translatable, then the web UI is irretrievably broken anyway15:24
rodrigo_yeah, and whenever you sync a note from tomboy, we need to convert, and the same when editing on the web15:24
rodrigo_which gives us the same problem, if there are new tags in the tomboy xml not understood by the converter15:24
sandy|lurkwell you already convert every note during a sync15:25
aquariusmy original intention was, as above, to make it so if it broke then it'd break for everyone and we'd notice and fix it fast15:25
rodrigo_yeah15:25
sandy|lurkeven though most users will nver usethe HTML15:25
rodrigo_but if the converter is buggy, we have the same problem15:25
sandy|lurkaquarius: yeah, I understand that15:25
sandy|lurkbut that seems pretty risky to me15:25
aquariusbut I am starting to think that the better approach is to have it so when it breaks, it doesn't necessarily break everything15:25
aquariusso at least a subset of users won't experience the problem.15:25
sandy|lurkI think users using different editors on the same file may expect some weirdness15:26
sandy|lurkif I use Word and OO.o I expect formatting issues15:26
sandy|lurkditto Tomboy and U1's note editor15:26
rodrigo_sandy|lurk: you mentioned some time ago that plugins would use their own XML markup if needed, right?15:26
sandy|lurkrodrigo_: yeah, many plugins add new XML tags15:26
sandy|lurkif your converter doesn't know about them today, I don't know what you guys do15:27
rodrigo_homeasvs_: yay!15:27
sandy|lurkif I write a custom add-in15:27
sandy|lurkthat only I know about15:27
sandy|lurkand I don't share it15:27
sandy|lurkand it adds a new XML tag15:27
sandy|lurkand then I sync to U1 and it gets lost even though I don't use the editor15:27
sandy|lurkI'd be sad15:27
aquariusit should, in theory, handle it (<sandy> gets converted to <span class="sandy"> and then gets converted back)15:27
sandy|lurkaquarius: ah, cool :-_)15:27
homeasvs_rodrigo_, I'll see about getting my packages done properly, cleaning up, and putting them somewhere15:27
aquariusI did try to not have it throw away information ;)15:27
homeasvs_rodrigo_, then next step would be desktopcouch stuff15:27
sandy|lurkaquarius: thanks15:28
sandy|lurkso then the only real concern is converter bugs15:28
aquariusthe current parser doesn't eat indented notes because it throws away information, it eats indented notes because it's appending children to the wrong place in the tree15:28
sandy|lurkif the bug was limited to the editor it would just be annoying15:29
sandy|lurksince it's not, it's critical15:29
rodrigo_sandy|lurk: yay, I marked it as such15:29
sandy|lurkso a bug in the converter becomes a much bigger deal all of the sudden15:29
aquariusyeah, so it comes down to a straight-up choice between 1. converter bugs get noticed quickly because they break everyone, and 2. converter bugs only affect a subset of users but are less likely to get fixed when they do happen15:29
sandy|lurkwell maybe I can help with 2) by providing good complex test notes15:30
aquariusI was leaning towards 1 (that's why we store HTML), but I am now leaning towards 2, with the caveat that we have to convert everyone's existing notes :)15:30
sandy|lurkI assume you guys have unit tests15:30
rodrigo_homeasvs_: desktopcouch should be easier, I think, since python modules should be easy, right?15:30
sandy|lurkso better note data to test could help with 215:30
aquariusgood complex test notes would be good -- we do have unit tests for the converter, but they're not totally comprehensive (that's how we missed the nested-lists bug :))15:30
sandy|lurkcool, I'll try to get to that before next week then15:30
rodrigo_sandy|lurk: we have unit tests, but they don't test everything, so we're adding them15:31
aquariusdo you have a set of complex notes for tomboy's own unit tests?15:31
sandy|lurkso Tomboy sucks wrt unit testing15:31
sandy|lurkbut I do have complex notes in my own collection for ad-hoc testing15:31
* aquarius grins15:31
aquariusus having them would help quite a lot :)15:32
homeasvs_rodrigo_, yeah15:32
sandy|lurkwhen we were rewriting printing we came up with some fun gnarly notes to test with15:32
homeasvs_rodrigo_, I guess it will depend on whether we need ubuntuone-storage-protocol15:32
aquariuswe need to have a working converter first, though, so we can convert the stored format for current notes15:32
sandy|lurkokay, I've got to run...employee meeting starting15:32
aquariussandy|lurk, cheers!15:32
rodrigo_homeasvs_: that's for file sharing, so I guess not15:32
homeasvs_but even then, should still be doable.  Just want to clean up the current mess first before moving on, since I will probably need to pull in some couchdb patches as well for oauth15:32
sandy|lurkI also want to talk to you guys about note attachments at some point15:32
homeasvs_rodrigo_, right, but I want to easily pair with u1 on the phone15:33
aquariushomeasvs_, you don't need any ubuntu one stuff at all for desktopcouch.15:33
rodrigo_homeasvs_: ah, ok15:33
rodrigo_go homeasvs_ go! :D15:33
aquariushomeasvs_, you need a little bit of it in order to replicate couch to u1, but not much (just enough to get the oauth tokens)15:33
rodrigo_sandy|lurk: are attachments supported already in tomboy?15:33
sandy|lurkie, how should we modify the REST API to support notes having files attached to them (images for example)15:33
rodrigo_sandy|lurk: ah ok15:33
aquariussandy|lurk, that sounds like it'll be a fun conversation :)15:33
sandy|lurkrodrigo_: no, but I was working on it the other day15:34
aquariussandy|lurk, ah! ok, good, I thought it was going to be a kicking for us about not supporting them ;)15:34
rodrigo_sandy|lurk: for images, I guess we need them15:34
aquariussandy|lurk, happy to think about that, definitely :)15:34
sandy|lurkcool, thanks for the chat guys15:34
rodrigo_from our POV it should be easy, since we can store attachments with the couchdb documents15:34
aquariusyeah, as long as no-one attaches an iso image to a note or something ;)15:34
rodrigo_sandy|lurk: thanks to you :D15:34
rodrigo_aquarius: :)15:35
rodrigo_homeasvs_: oh, you mentioned the sdk repo in some facebook message, where is that?15:35
rodrigo_homeasvs_: I haven't seen anything about it when looking for repos15:35
homeasvs_rodrigo_, it's the one that is in your scratchbox15:36
homeasvs_deb http://repository.maemo.org/ fremantle/sdk free non-free15:36
rodrigo_homeasvs_: ah15:36
aquariusrodrigo_, so I think that we should 1. get the converter working 2. change the back-end storage format to tomboy XML 3. convert all the currently-stored notes15:37
rodrigo_aquarius: step by step, I'll work on 1 first :)15:37
mandelCardinalFang: ping15:39
CardinalFangmandel, hi15:39
mandelCardinalFang: hello, did u see my message regarding the record_id branch?15:40
mandelCardinalFang, all that conversation about the if statement and at the end I used to wrong logic <embarrassed>15:41
CardinalFangmandel, I haven't seen that message yet, no.15:41
mandelhttps://code.edge.launchpad.net/~mandel/desktopcouch/record_id/+merge/1542415:41
mandelCardinalFang, last message15:41
mandelCardinalFang, guillermo just changed to approved, but the code will not work15:42
verterokmandel, CardinalFang sorry :/15:42
verterokit has 2 approves...15:42
verterokmandel: CardinalFang: should I cange it back to Needs review/reject?15:43
sandy|lurkrodrigo_: here's a test note that was great for printing, though it only goes two-levels deep for bulleted lists: http://bugzilla-attachments.gnome.org/attachment.cgi?id=12765415:43
mandelverterok, CardinalFang, I would, you can blame me, it was my fault :P15:43
verterokmandel: should I change it to needs review?15:43
mandelverterok, I would15:44
verterokok, done15:44
verterokmandel: thanks for pinting this out :)15:44
mandelverterok, no problem, the new version in the branch has the correct logic plus a test to avoid any other problems like this15:44
mandelverterok, totalmente mi culpa ;)15:45
verterokmandel: ooh, I see. you should "resubmit" the branch ;-)15:45
mandelverterok, will do15:45
mandelverterok, I just have to do a second merge proposal?15:46
verterokmandel: no, from the merge proposal pag you can resubmit it, and launchpad creates a new merge proposal that superseeds the current15:47
CardinalFangverterok, mandel, usually it is best to push a new branch, but there's no reason to bother now.  Everyone who cares is here listening and knows what's going on.15:47
CardinalFangmandel, there's no red tape here.  Let's worry about the bug instead.15:47
mandelCardinalFang, so I just do a superseed merge, ok15:48
CardinalFangverterok, (I don't think one can resubmit a merged branch.  I may be wrong.)15:48
verterokCardinalFang: it's merged?15:49
CardinalFangYes.15:49
verterokooh, that's a different story15:49
verterokmandel: ^15:49
CardinalFangmandel, just push it as you intended to.  It's all good.15:49
mandelCardinalFang, verterok, so I do not do anything, right?15:50
mandelCardinalFang, verterok, I feel kind of stupid for that error...15:50
verterokmandel: what CardinalFang said15:51
mandelok15:51
verterokmandel: no worries, I reviewed the branch and didn't see it :/15:51
mandelCardinalFang, I have pushed a new version of the branch with the changes + test15:55
mandelCardinalFang, although I can always push to a diff branch to make it explicit15:55
CardinalFangmandel, there's a problem with your test.  I'm adding a comment.16:06
CardinalFangmandel, comment added.  Needs fixing.16:15
CardinalFanghttps://code.edge.launchpad.net/~mandel/desktopcouch/record_id/+merge/1575316:15
mandelCardinalFang, cool I sort it out right away, I di dnot know that :D16:17
mandelCardinalFang, changed made, sorry for the pain in the ass16:31
urbanapeaquarius: you aboot?17:47
aquariusotp17:47
urbanapek17:47
urbanapealso for CardinalFang and thisfred: was thinking more about the way we'll handle delete in the future. If clients push content that has been seen before, presumably we'll need to provide a recognizable response so the client knows it can deal with the record properly.17:48
urbanape"Hi, here's this bookmark."17:49
urbanape"Bah, our user deleted that weeks ago. Begone!"17:49
urbanapewhat HTTP response code would you use? Bad Request?17:49
urbanape406 Not Acceptable?17:50
urbanape410 Gone17:50
urbanapeI think 410 matches that story.17:51
rmcbride411 "highly embarrassing"?17:51
* rmcbride makes up HTTP response codes at randome17:51
CardinalFangurbanape, I think upstream couchdb will be a better place to handle that, and I bet they will have something already planned.  Maybe jan____ knows.17:51
urbanapedo you know off-hand what the conditions will be for determining identity? presumably the couch _id, right?17:52
urbanapesoftware is hard. let's go shopping.17:53
CardinalFangjan____, without consulting #couchdb at all, we've been tossing around ideas for understanding and dealing with documents that are expunged from a database, so that replication doesn't reintroduce them.17:56
urbanapejan____: particularly when Couch isn't the primary storage, but is the replication medium.17:57
thisfredagain: replication does not reintroduce deleted documents...17:58
CardinalFangAh.17:58
urbanapethisfred: it's not about the replication17:58
thisfredright17:59
CardinalFangSo it is a positive event.  Sorry.17:59
urbanapein Bindwood17:59
urbanapeso that other clients don't reintroduce them17:59
urbanape(not replication, correct)17:59
thisfredI think the way to solve this is to monitor _changes, and act accordingly18:00
urbanapeyes, but the question is what to monitor in changes? There has to be a there there to monitor18:00
urbanapeif deletions show up as a document in the _changes feed, we're fine18:00
thisfredurbanape: ah, do delete events not show up?18:00
thisfredthat would be an unfortunate omission18:00
urbanapeI don't know, we don't delete documents18:00
urbanapelessee18:01
thisfredright, so we don't have the problem yet, or do we?18:01
urbanapeyes, they show up in changes18:02
urbanapewith a deleted flag18:02
urbanapeyay, we're done.18:02
urbanapechampagne and caviar, for everyone!18:02
thisfredCan I have double champagne if I pass on the caviar? :)18:02
urbanapeno. Eat your fish eggs and like 'em.18:03
* thisfred mopes18:03
urbanapeCardinalFang: we (at least Bindwood) have no problems in this regard any longer.18:03
urbanapeforget I ever ranted and/or raved.18:03
urbanapewe'll actually just do delete documents and pull those changes from _changes when we normally poll.18:04
aquariusurbanape, yo18:05
urbanapeaquarius: never mind, we solved it.18:05
aquariusurbanape, oh, good. I shall read the scrollback :P18:06
urbanapesummary: deleted docs show up in _changes with a deleted: True field in the record.18:08
urbanapeso we don't need to tag records with deleted, now that we're polling _changes. We can just tell Couch to delete the doc, and it'll show up for other clients in _changes.18:09
urbanapeWe don't need to wait for history.18:09
aquariusas long as bindwood polls _changes, yeah. Excellent. That's just excellent, is what that is18:13
aquariusnow all we need is chromium support for shelling out and then I can have my bookmarks back again :P18:14
urbanapeyes, I need to hang out in #chromium some more.18:25
urbanapeI just think it might be beyond their scope.18:26
urbanapeExpeciallly in light of Chrome OS.18:26
urbanape"What would you shell out to? There is only the browser. What would you gain from an environment (in an env sense) that is only the browser?"18:27
urbanapeand I don't think they want to entertain the notion of extensions that only run on "desktop OSes"18:28
dobeyNOT A DESKTOP18:30
dobeykthx18:31
dobey:)18:32
urbanapeyour pedantry is quaint, but I don't think you're going to convince the world.18:32
urbanapeI'm gonna start just calling everything jeejahs.18:34
dobeydesktop jihad18:34
dobeyconvert or die :)18:34
dobeycan we not get bookmarks and passwords out of chrome?18:35
dobeyif not, it sounds like an antitrust suit waiting to happen :)18:36
urbanapewe can get bookmarks. Not sure about passwords.18:37
urbanapethe problem is we can't shell out to get our dbus couch port or get at our oauth tokens.18:37
dobeyoh we can't run python?18:38
urbanapewe can't shell out period.18:38
urbanapewe can't run an external process18:38
dobeyyes, that's what i was saying18:39
dobeydo they provide some way to access local disk data from internals?18:39
dobey(please don't say "HTML5 storage")18:39
urbanapeI believe you can get to file:/// resources, but I don't think there's a way to get to $USER from javascript, so per-user files would be hard to do.18:40
urbanapestill learning some of this stuff, so it might be possible.18:40
dobeyand you probably can't do things like read/write from/to unix sockets18:41
urbanapehmm, you can use NPAPI for "legacy" stuff.18:41
dobeywhat the heck is "legacy"?18:41
dobeycertainly not a 2TB hard disk18:41
urbanapehttp://code.google.com/chrome/extensions/npapi.html18:42
aquarius"legacy": "anything that we don't explicitly provide as an extension API"18:42
dobey"anything that isn't google docs"18:45
CardinalFangaquarius, thisfred, mandel,  https://code.edge.launchpad.net/~cmiller/desktopcouch/attachments/+merge/1576519:00
CardinalFangReview?  Complain?19:00
* CardinalFang acquires comestibles.19:00
aquariusCardinalFang, why block overwriting of an existing attachment? to stop people doing it by accident?19:04
CardinalFangaquarius, Yes.  I want anything that destructive to be explicit.19:14
aquariusbut record["foo"] = "bar" is destructive too, no? even if record["foo"] == "quux"19:14
aquariusand changes aren't *saved*19:14
rtgz_Just a thing I wanted to ask some days ago. Where does the diff containing debian/ directory come from for ubuntuone-client lp trunk?19:15
CardinalFangaquarius, They may understand index or key assignments, but the verb "attach" doesn't convey "be sure not to have the same name already, or you lose".19:17
CardinalFangreplace() ?19:17
aquariusI see your point.19:17
aquariusdon;t want replace() since most of the time you're not replacing anything19:18
aquariusyeah, maybe you're right. :)19:18
mandelCardinalFang, looking at it right now19:39
mandelCardinalFang: what about using an update rather than detach, attach???19:44
thisfredCardinalFang: looks good to me. Just one questions: Why do we not want CouchDB to provide ids for documents?19:46
CardinalFangthisfred, they say it's a bad idea.19:46
thisfredreally?19:47
mandelthisfred, yes, it should be done in the client side, I had to do the same in my code19:48
thisfredIs the algorithm broken, or are there collission issues?19:48
CardinalFangFrom python-couchdb cleint.py  :  """Note that it is generally better to avoid the `create()` method and instead generate document IDs on the client side. This is due to the fact that the underlying HTTP ``POST`` method is not idempotent, and an automatic retry due to a problem somewhere on the networking stack may cause multiple documents being created in the database."""19:48
thisfredanyway, that's just curiosity. If it's a better idea not to, I'll change the server side code not to do it either19:49
thisfredCardinalFang: ah yes, that makes sense19:49
thisfredNot having transactions is the price we pay19:50
CardinalFangthisfred, I changed the server class, "put record".19:50
mandelthisfred, adding to what CardinalFang said: http://www.atypical.net/archive/2009/05/12/couchdb-090-bulk-document-post-performance19:51
thisfredCardinalFang: right, should be enough, just checking that I'm not putting anything else bypassing the API19:51
thisfredlike users19:51
urbanapehmm, I was just about to noodle on how bindwood could drop the FF-generated UUIDs in favor of getting the next id from Couch and use that as the unifying foreign key.19:51
urbanapeor am I misunderstanding that? Are they suggesting that clients generate ids for documents?19:52
mandelurbanape, yes, from my understanding, the client should generate the id19:53
urbanapeeven on id-less PUTs?19:54
mandelCardinalFang, got a question, why do you have a try block in list_attachments??19:55
CardinalFangurbanape, Yes.  HTTP isn't smart enough.  If you're going to be stateless, you have to be able to handle when you're redirected several times.  A (e.g.) proxy between you could PUT more than once, and that would cause problems.19:55
urbanapeCardinalFang: fair enough, I suppose19:56
CardinalFangmandel, good find.  No reason, now.  I was creating _attachments somewhere else.  Now I make it at __init__(), and so I can be sure it exists.  I'll remove it.19:57
mandelCardinalFang: in the detach, you will have a keyword error when poping, do you want to give the default message or put your own? Maybe  "not existent attachment or empty" or something of the kind20:00
mandelCardinalFang, of course when working with an empty dict or none existing keyword, but I'm sure you knew what I meant ;)20:01
CardinalFangmandel, Okay, I added more descriptive KeyErrors.  Thank you.20:11
mandelCardinalFang, One last thing, if you are going to generate the id in the client side, why not moving that to the record constructor when the record_id or data["_id"] is none.20:17
mandelCardinalFang, I know it is less lazy, but from my point of view it looks nicer20:18
mandelCardinalFang, one stored the other one takes care of the id, but this is just my opinion20:18
CardinalFangmandel, I want to keep as much as possible like the old behavior.20:19
mandelCardinalFang, ok, I understand. Then everything looks great!20:20
mandelCardinalFang, I'l use it as soon as it is merged, thanks!20:21
BlackPhoHello21:03
CardinalFangPhở?  Yum.21:04
=== verterok is now known as verterok|brb
=== verterok|brb is now known as verterok
kjollerI have just gotten a (well, two) share-e-mails, but when I press the link, I get a "Something has gone wrong (500)". Nothing is available through the Ubuntu One folder either.21:35
verterokkjoller: hi, yes it's a known issue, it will be fixed real soon21:39
kjollerverterok: ok, great, thanks21:39
statikverterok, pfibiger: do we need a rollout before sharing is fixed?21:54
statiki am so woefully behind on things21:55
dobeystatik: "A plan is just a list of things that don't get done."21:56
verterokstatik: yes, the fix already landed21:56
statikcool, thanks21:57
chatZillahow do i relocate my files on ubuntuone to a different folder or rename a folder?22:16
homeasvs_sweet, python-couchdb is now also working on maemo22:31
homeasvs_and my commandline app runs too22:31
homeasvs_next up, a gui22:31
jan____CardinalFang: urbanape: ping me tomorrow CST time for discussion, sorry!22:33
=== sandy_ is now known as sandy|lurk

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!