/srv/irclogs.ubuntu.com/2009/09/03/#ubuntuone.txt

=== teknico is now known as teknico_away
=== teknico_away is now known as teknico
=== teknico is now known as teknico_away
=== teknico_away is now known as teknico
=== teknico is now known as teknico_away
=== teknico is now known as teknico_away
=== teknico_away is now known as teknico
=== teknico is now known as teknico_away
thisfredmorning12:33
aquarius-> lunch12:48
verterokg'morning12:50
jdoCardinalFang, hi13:08
jdoCardinalFang, this may come in handy: lp:~jdobrien/+junk/ubuntuone_web_api13:09
jdoCardinalFang, right now it will only work with edge, so use it with the --url https://edge.ubuntuone.com/api/account/13:10
=== teknico_away is now known as teknico
thisfredred velvet whoopie pie: breakfast of champions.13:21
aquariuswhatever that is13:22
aquarius:)13:22
thisfredaquarius: I'm eating my way to the US, starting with the South, which, culinarily at least, Maryland seems to belong to. Can't say I'm unhappy with that.13:28
thisfredRed Velvet cake is cake, that is red. whoopie pies are small soft cookies with cream cheese in the center, and apparently they make em in red velvet cake flavour (haven't had the real thing yet) At least they got the color right. (And no, it's not *just* junk food I'm exploring ;)13:30
thisfredI can't resist buying or ordering stuff I've never eaten or even seen before. This is how you get to know what shark, or squid in its own ink tastes like. (neither was really special)13:32
teknicoswordfish otoh is quite good13:33
teknicoor was, I've not eaten it for a while13:33
thisfredyeah, a swordish steak, well prepared, can be excellent13:35
thisfred(I hardly ever eat meat or fish anymore either)13:35
Chipacawhoo, boy13:41
Chipacathisfred: you've got to come to one of our asados13:41
Chipaca:)13:41
thisfredI would love to!13:42
Chipacanoted :)13:46
aquariusthisfred, is your fix-the-tests branch ready for review?13:58
thisfredaquarius: indeed it is!13:58
aquariusI should review it, then. heh. :)13:58
thisfredsince you already fixed it, shouldn't be much work ;) The atexit works beautifully btw, it seems!14:01
thisfredor uglily, really, but it works :)14:01
aquariusthisfred, er. fail14:01
thisfredfail?14:01
aquariusrunning the tests appears to shut down my actual desktopcouch.14:01
thisfredand not the 'test' one?14:02
thisfredor does it not use the test one at all?14:02
thisfredcan you look in /tmp and see if it created a db there somewheres?14:02
aquariusit does use the "test" one (since I don't have a million extra DBs in my real DC)14:02
thisfredaquarius: and is the test one left running, or does it shut down both?14:03
aquariusam just about to check precisely that14:03
thisfred(I guess that)14:03
thisfreds even more ugly, but not a huge problem, right?14:03
thisfredsince anything that wants to talk to dc will start it again14:03
thisfredand not a lot of non developers will be running tests all the time14:04
aquariusok. it seems to shut itself down14:05
aquariusbut it doesn't delete the tmp folder14:05
aquariusand it seems to also shut my DC down14:06
FNDhi there - quick question about DesktopCouch: if I write an app that stores data using desktopcouch, am I correct in assuming it'd be trivial to switch to a generic CouchDB instance?14:06
aquariusFND, yes, pretty trivial; if you use the desktopcouch.records API then you'd need to stub out that API slightly to talk to a static couchdb (so that it doesn't do all the desktopcouch discovery magic and OAuth and so on)14:07
aquariusFND, and if you don't use the desktopcouch.records API then you'll need to do that discovery magic and OAuth yourself if you're talking to desktopcouch14:08
aquarius(assuming your app's in Python, otherwise s/desktopcouch.records/couchdb-glib/ or similar :))14:08
FNDgreat - I haven't done anything with CouchDB yet, mostly because I couldn't be bothered looking into how to set it up - and DC would spare me that trouble14:09
aquariusit will indeed. :)14:09
FNDthanks aquarius14:09
FNDwhat kind of discovery magic are you referring to?14:09
aquariusdesktopcouch runs on a random TCP port, so there's a D-Bus API to discover the port. dc.records calls this API for you and makes sure your data goes to the right place14:10
thisfredaquarius: since it's a tmp dir, it will get cleaned up automatically depending on your system configuration, I thought it would be handy to keep it around for debugging porpoises14:10
aquariusFND, there are a few other things that dc.records does for you, as you saw yesterday in the talk :)14:10
FNDgotcha14:11
thisfredaquarius: it would be trivial to clean it up manually14:12
aquariusthisfred, agreed14:13
aquariusit stopping real DC is pretty annoying ,though :)14:13
thisfredaquarius: well, minorly annoying maybe. It will be started by the first thing that needs it again, no?14:13
aquariusyeah, it will (which was nice :))14:14
aquariusbut the pairing app, for example, doesn't do port rediscovery14:14
thisfred(and this is not by design, no, maybe we should look at the stop_couchdb code)14:14
dobeyChipaca: asado was that place we went to downtown with all the meat?14:14
Chipacadobey: or the place before that with all the meat14:15
thisfredasado means grill, or no?14:15
thisfredgrilled?14:15
ChipacaX asado means grilled X14:16
thisfredright14:16
thisfredwhich has become a pars pro toto14:16
Chipacabut grilled to us means using the embers, not fire14:16
thisfredso barbecue, really :)14:18
jdobrienCardinalFang, let me know if you have questions about that openid script14:23
CardinalFangthisfred, When we in the southern US say barbecue, we mean using smoke and very low heat.14:23
jdobrienCardinalFang, how far south?14:23
jdobrien:)14:23
thisfredthe Timoa indians from mexico would approve14:24
thisfredBarbacoa generally refers to meats or a whole sheep slow-cooked over an open fire, or more traditionally, in a hole dug in the ground covered with maguey leaves, although the interpretation is loose, and in the present day and in some cases may refer to meat steamed until tender.14:24
CardinalFangjdobrien, thisfred suggested it as the name of using embers (and notably not flame).14:25
urbanapeCardinalFang, did you get unblocked with your OAuth stuff?14:26
thisfredin the Netherlands it usually means getting drunk while burning the grossest cheapest meat to a black crisp. On charcoal embers.14:27
CardinalFangurbanape, Not yet.  Maybe in the next two hours or so.14:27
urbanapeso, the js library seems to also not normalize and concatenate the request parameters.14:29
urbanapeat least, judging by the debugging output I'm spitting out.14:29
CardinalFangHrm.14:29
CardinalFangjdobrien, Welcome!14:30
urbanapealthough I can't tell from reading it if 9.1.1 happens on the client or server side.14:30
thisfredOscar for greatest quality disparity between movie and soundtrack goes to "The harder they come". Although "Purple Rain" is a marginally worse movie, the soundtrack to "The Harder They Come" is so freaking awesome that it wins hands down. I thought y'all would like to know.14:30
urbanapeif it happens on the server side, then I should be fine14:30
CardinalFangjdobrien, I'm going to try ticking that accounts API soon.  What should I expect?14:32
dobeyaquarius: sheesh. that's not a blog post, it's an editorial!14:34
aquariusdobey, what is?14:34
dobeyaquarius: your post about the dc irc talk14:34
jdobrienCardinalFang, that script just dumps out a dict of the account information you get14:34
aquariuswell, it's fairly long 'cos it's got a full transcript in :)14:35
aquariusshould have done an excerpt, really.14:35
CardinalFangjdobrien, Okay. Great.14:35
jdobrienCardinalFang, i through in simplejson for kicks14:36
urbanapeaquarius, got a moment or three?14:37
urbanapefor a quick pair?14:37
aquariusurbanape, yeah, give me ten mins14:37
urbanapeta14:37
urbanapeanyone know how to copy multiple lines from the Firefox error console?14:41
aquariusyou can't. it sucks14:45
CardinalFangjdobrien, Hot damn!  It works.  I think.  '{}'14:45
aquariusthisfred, how close are we to having syncing to the cloud work?14:45
dobeydear rhythmbox, Thievery Corporation != Rob Zombie, kthx14:45
thisfredaquarius: we need a proxy set up14:45
aquariusthisfred, becuase that'll require changes on the desktop, even if trivial ones like "set the name of the server", and I dont want to miss the freeze.14:46
aquariusWhy do we need a proxy?14:46
aquariushttp load balancing?14:46
thisfredaquarius: to unwrap ssl, and forward to the right machine14:46
thisfredaquarius: yeah, load balancing in the future14:46
jdobrienCardinalFang, hmm...14:46
jdobrienCardinalFang, did you use --url https://edge.ubuntuone.com/api/account/14:47
thisfredaquarius: but also, until we have per db auth, we can't just open up all of couchdb14:47
CardinalFangjdobrien, no "edge."14:47
jdobrienCardinalFang,  need to use oauth14:48
CardinalFangjdobrien, I think I am.  This machine may not be associated yet, though.14:52
urbanapeaquarius, boo. Man, why software gotta be so suboptimal?14:52
jdobrienCardinalFang, that would be the problem14:53
aquariusthisfred, so, things standing in the way of it being done: ssl unwrapping proxy; precise definition of path to my database in the cloud; implementing database_name_prefix in the pair app; per-db auth. Is there anything else?14:56
aquariusurbanape, all yours14:56
aquariusurbanape, actually, standup in 4 mins, so after that?14:56
CardinalFangjdobrien, I'm not so sure now.  I have two entries in my cimputer list.14:57
CardinalFangjdobrien, I have only two computers.  The IDs in the list are long.  Is there a hidden mapping between those IDs and the OAuth info I have here?14:58
urbanapeaquarius, yeah, after standup, thanks14:58
jdobrienCardinalFang, if you look at the code, you'll see it is looking for a specific token, if you go to your keyring, you should be able to find that token14:59
urbanapeif you want, in the meanwhile, grab a copy of my latest branch: lp:~urbanape/bindwood/using-oauth14:59
jdobrienCardinalFang, if it finds a token and that token is not granted access to ubuntuone, you'll get back {}15:00
urbanapeNow is the time on Sprockets when we DANCE!15:03
urbanapeer, I mean STANDUP. MEETING BEGINS15:03
urbanapeif you're on the Desktop+ team, give us a shout: me15:03
urbanapethen DONE/TODO/BLOCK15:03
urbanapeme15:04
jdobrienCardinalFang, I could add some code to tickle the computer authorization dance15:04
aquariuswtf? you're mental. :)15:04
aquariusme15:04
teknicome15:04
dobeyich bin ein15:04
rodrigo_me15:04
dobeyaquarius: http://www.youtube.com/watch?v=QHZR9SA5pOg15:05
urbanapeDONE: still wrestling with Bindwood and OAuth. Getting more meaningful error messages, but ultimately still failing to get connected.15:05
urbanapeTODO: Finish it up with maybe a little help from aquarius.15:05
urbanapeBLOCK: My own confounded inability to read an RFC.15:05
urbanapeaquarius, if you please15:05
aquariusstatik, CardinalFang?15:05
statikme15:05
aquarius⚀ DONE: did DC talk for UDW; work out what to do about quotas; discuss test-fix branch with thisfred15:05
aquarius⚁ TODO: continue on branch to allow unpairing of servers (bug #419975); continue piston oauth in snowy; work through bug list; implement quota stuff15:05
aquarius⚂ BLOCKED: nothing! except me being a bit thick15:05
aquariusteknico, still teknico, he rounds the defender GOOOOOOOOOOOOOOOOOOOAL15:05
ubottuLaunchpad bug 419975 in desktopcouch "for pairing, do not display hosts or servers that are already paired" [Medium,In progress] https://launchpad.net/bugs/41997515:05
teknicoDONE: did more reviews, more work on deploying phone sync, made improvements to the create_couch_contacts.py script, skipped a test to be able to land a branch15:05
teknicoTODO: implement the details view for the contacts CRUD web ui15:05
teknicoBLOCK: none15:05
tekniconext: dobey15:05
dobeyuhm15:05
dobey☭ DONE: Released 0.94.0, Million duplicates march, Fixed #422771, #40928115:05
dobey☭ TODO: Fix server to use python-oauth, Fix client/protocol to use python-oauth15:05
dobey☭ BLCK: None.15:05
dobeyrodrigo_: se hablar15:06
rodrigo_• DONE: oAuth request signing in couchdb-glib. Fixed certificates issue with Tomboy and u1.com. Submitted branch fixing 2nd and subsequent syncings between Tomboy and U115:06
rodrigo_• TODO: Start upstream discussion for adding social services accounts config to about-me. Talk to Ara about writing mago tests for evo-couchdb. Propose couchdb-glib/evo-couchdb for GNOME 2.29. Store UUIDs for postal addresses. Conflict resolver tool in pair tool. Look at becoming a MOTU (https://wiki.ubuntu.com/UbuntuDevelopers). openSUSE/Fedora packaging with aquarius. Finish oAuth signing. More tomboy syncing fixes15:06
rodrigo_• BLOCKED: none15:06
CardinalFangme15:06
rodrigo_statik: go15:06
aquariusdobey and jdobrien, cool work sorting a million duped bugs btw15:06
rodrigo_dobey: :)15:06
jdobrienaquarius, ?15:06
statikDONE: can't remember TODO: domain name move aka death by a thousand cuts BLOCKED: nope15:06
statikCardinalFang, it's you15:07
urbanapepoor statik. his mind's gone15:07
aquariusjdobrien, I thought that was you on face duty doing loads of bugs. Might have been Chipaca now that I come to think of it :)15:07
jdobrienaquarius, no im a useless lazy bum15:07
aquariusjdobrien, if I was as lazy as you we'd have had DC out the door before Christmas last year :)15:08
jdobrienDC?15:08
jdobrienoh15:08
jdobriennm15:08
jdobrienDesktop Couch I presume15:08
aquariusyeah, they're a comic firm15:08
aquariusnot owned by Disney :)15:08
* dobey pokes CardinalFang 15:11
CardinalFangDONE: learned a lot about OAuth.  Made way for replication daemon to know about static hosts' special needs; U1 isn't a special case.15:11
CardinalFangTODO: Get OAuth client working.  ...So that I can get account info from U1 API.15:11
CardinalFangBLOCKED: AFAIK, API call '/apt/account/' doesn't really work yet.15:11
dobey"Are we there yet?"15:12
statiksounds like everyone15:12
aquariuscoolness15:12
aquariusMEETING ENDS15:12
urbanapeMEETING ENDS15:12
urbanaped'oh15:12
aquariusoops.15:12
urbanape'sall good15:13
statikteknico, great news on the contacts stuff, urbanape same for oauth15:13
urbanapethanks, everyone15:13
urbanapestatik, we're really nearly there.15:13
urbanapeI've added two new libs to Bindwood. One is under Apache, the other is under BSD. Is that a problem?15:13
* urbanape pretty much hates having to even think about licensing.15:13
urbanapeaquarius, skype?15:15
statikrodrigo_, what fixes are left for tomboy sync? it sounds pretty close15:16
rodrigo_statik: locally all seems to work ok, except for notes added from the web ui, which are not synced to tomboy, but that's an easy fix I'll do as soon as the other branch is merged15:17
statikcooooool15:17
rodrigo_statik: as for the u1.com server, I was getting this morning a 400 on one of the oauth urls, need to investigate more15:17
rodrigo_statik: and also, the notes not being shown (they are saved indeed) on the notes page15:17
rodrigo_which I'm not sure what problem is about15:17
statikrodrigo_, btw i am working on moving from ubuntuone.com to one.ubuntu.com next week, so the base URL in tomboy will need to change15:18
rodrigo_ok, let me know when you do that, ad I'll change the tomboy pacjage's patch15:18
statikCardinalFang, ^ this probably affects DC code also15:19
CardinalFangjdobrien, Some status information would be nice.  If auth fails, maybe poke something into the dict, or return a HTTP 403 or something.15:28
CardinalFangThe Ubuntu-trademarker fiends are going to freak out.  ... heh heh heh.15:31
jdobrienCardinalFang, more more...give me more more...i need i need i need :)15:31
dobeyCardinalFang: shouldn't failed auth give a 401?15:31
jdobriendobey, this isn't really failed oauth15:32
dobeyjdobrien: openid?15:32
jdobriendobey, no...it uses oauth tokens to look up account information15:32
dobeyright15:32
dobeyso what's "failed auth" mean then?15:33
=== rmcbride changed the topic of #ubuntuone to: Help contact: urbanape | File Sharing for Ubuntu | https://ubuntuone.com | https://launchpad.net/ubuntuone | Current Beta Client Revno is 198, Protocol Revno is 69 | Release 0.93.0 (protocol) 0.94.0 (client)
jdobrienoh..you said failed oauth :)15:34
dobeyno i didn't15:34
jdobriendobey, hehe...but I did when I was repeating it back :)15:34
jdobrienhehe15:34
dobeyyes15:34
CardinalFangdobey, more like "we have no idea who you are".  And for 401, we definitely do not have a "WWW-Authenticate header field containing a challenge applicable to the requested resource." to send back, right?15:34
jdobrienCardinalFang, I could certainly modify it so it doesn't swallow authentication issues. file a bug15:35
dobeywell the applicable method is oauth15:35
* jdobrien will bbiab15:36
dobeyCardinalFang: i'd really like to know how someone got a valid oauth token without having an account :)15:36
thisfredfell off a truck15:39
CardinalFangdobey, I'm new to OAuth, so I don't really know what "valid" means yet.15:42
dobeyCardinalFang: valid means an access token that lets them access the resource15:42
CardinalFangSounds tautological, then.15:43
urbanapeaquarius, so, I dove through the oauth code a bit more. A full night's sleep does wonders.15:43
urbanapeIt looks like it does sort the parameters properly, but I doesn't seem to skip "OAuth realm"15:43
dobeyCardinalFang: i'm confused how one would get an access token from us that lets them access that resource, and then have the resource fail with "user not found"15:45
CardinalFangdobey, so, assume it's not a valid token.  What should we do?15:46
dobeyCardinalFang: oauth spec says HTTP 401 Unauthorized15:47
CardinalFangjdobrien, Hrm, I'm looking in seahorse, and I don't see anything that matches either of the "Computers on your account" items.15:47
dobeyCardinalFang: looking how? it would be the "Ubuntu One token" and you have to view the password, and parse the string that it contains :)15:48
CardinalFangdobey, so, 401 status code, and empty body?15:48
dobeyCardinalFang: there doesn't need to be anything in the body. so 401 status, WWW-Authenticate header, and empty body would be the correct answer15:49
CardinalFangdobey, Ah, I was looking at the start.  There are two parts in a url-encoded scheme, and the second part matches one.15:49
* jdobrien nods15:49
dobeyCardinalFang: yeah, the "oauth_token=" bit is the important one, not the oauth_token_secret :)15:50
jdobrienCardinalFang, as in the case of the sample code, i just check for a 200 before I do anything,15:50
CardinalFangThen I must be constructing this wrong.  Hrm.15:51
CardinalFangthis == Authorization header15:51
dobeyhow so?15:52
aquariusurbanape, lp:~sil/bindwood/oauth-tests has a test in it which will print the oauth signature from each of JS and Python, which should make it easier for you to tweak the thing to see if it's doing it right15:55
urbanapedanke15:55
urbanapeaquarius, yup, they definitely make different signatures.15:58
aquariusurbanape, indeed. And the python one is correct :)15:59
urbanapenow, to the tweakening!15:59
aquariusurbanape, now just randomly frob the JS oauth code until it generates the right result. A genetic algorithm might be good here ;)15:59
urbanapen00bisms and all, I wonder if it's worth a straight(ish) port of the Python code.16:00
Severity1hi all16:02
Severity1i have a question16:02
Severity1how do i delete a folder in ubuntuone?16:02
jdobriendobey, so if the request has no token, the token is invalid, the token is not authorized, I should return a 401?16:02
urbanapeSeverity1, through the web?16:03
Severity1yeah16:03
urbanapeyou don't, yet.16:03
dobeyjdobrien: http://oauth.net/core/1.0a#http_codes16:03
Severity1so where do i delete it?16:03
Severity1is there another way to delete a folder?16:03
urbanapeyou can delete it on the filesystem, and we can probably compute the URL necessary to delete it directly16:03
jdobriendobey, thanks for th link16:04
Severity1you mean the replica on my local?16:04
urbanapeSeverity1, you can also go to /files/old and get the previous UI.16:04
Severity1urbanape, its loading now16:05
urbanapewe're still in the process of establishing the new UI, and that was one feature we (I) overlooked.16:05
Severity1ahhhh! nice ive been wondering where this UI went! thanks :)16:06
urbanapeaquarius, aha16:08
urbanapeand also, DUHH16:08
urbanapeI thought the keys in the accessor were the actual consumer_secret and token_secret16:09
urbanapenot the strings "consumer_secret" and "token_secret"16:09
aquariusah, that's my fault16:09
aquariusthey should be16:09
urbanapeah, k16:09
aquariuspushed fix to my branch, although you can remove the quotes yourself if you want :)16:10
urbanapestill generate different keys (I did)16:10
aquariusas do I16:10
urbanapeer, different signatures16:10
jdobrienCardinalFang, I am working on a branch to handle OAuth correctly :)16:16
CardinalFangjdobrien, Roger.16:17
jdobrien:) I felt guilty16:17
urbanapewe need to mash all our heads together16:18
CardinalFangjdobrien, No worries.  You da man.16:18
jdobrienurbanape, and make wine?16:18
urbanapesuits me16:18
urbanapegoes down easier than javascript oauth code16:19
* easwar volunteers to help jdobrien CardinalFang aquarius and urbanape ,ash their heads16:19
easwar*mash16:19
Severity1hi easwar16:20
easwarhi Severity116:20
Severity1its my first time here16:20
easwarmine too16:20
easwar:P16:20
Severity1lols16:20
* easwar gets back to writing that article16:21
leonelHello yesterday  I've deleted a file by  1 nautilus and  by the browser  and the file  still there .. any known bug ?16:22
Chipacaleonel: depends. Are you running a new-ish client?16:22
Chipacaleonel: new-ish is what's in karmic right now, or from the beta ppa :)16:23
leonel0.93.1+r194-0ubuntu1~ppa1~jaunty16:23
Chipacahm, jaunty16:23
leonelChipaca: let me delete on karmic ..16:24
Chipacaleonel: 0.94.0 is out there, I think16:24
dobeyaye16:24
leonelyes karmic has 0.9416:24
Chipacadobey: there isn't a 0.94.0 for jaunty?16:25
leonelChipaca:  working fine with karmic ..16:27
dobeyChipaca: there is16:27
dobeyChipaca: it's in the ppa16:28
Chipacaleonel: you probably want to update the jaunty package, then16:28
leonelupgrading ubuntuone on jaunty16:28
Chipacaleonel: if it still refuses to go away it might be another issue, otherwise it's one we fixed :)16:29
leonelon karmic  and on the browser  worked16:30
leonelChipaca:  testing the upgraded package on jaunty16:30
Chipacaleonel: ah, ok16:30
leonelChipaca:  on jaunty  now I got a   file.txt.u1conflict16:31
Severity1leonel, ahhh ive experienced that too16:34
Chipacaleonel: and file.txt is gone?16:34
Chipaca(file.txt is the one you deleted, right?)16:34
leonelChipaca:  yes16:35
Chipacabasically it means the client things that the file changed locally and on the server at the same time16:35
Chipacathinks, even16:35
CardinalFangChipaca, I had a  "My Stuff/foo" folder and now I have a "foo.conflict" folder.  I just renamed it to "foo".16:35
Severity1i think file.txt is also file.txt.u1conflict16:35
aquariusurbanape, I have made the JS lib and the pytohn lib both print out their base strings. they are not hte same. http://paste.ubuntu.com/264482/ is informative and should give you somewhere to direct your efforts, I think :)16:35
leonelChipaca:   yes I've edited that file on  karmic  yesterday  then deleted on jaunty16:36
CardinalFangaquarius, do you mind looking at mine?  I suspect you'll say "use the module already, damnit".16:36
aquariusCardinalFang, I can take a brief look yeah. But, use the module already, dammit :)16:37
aquariuswe have working (although crufty) oauth, and stuff to do that isn't "reimplement the oauth module in a nicer way"...16:37
ChipacaCardinalFang: leonel: Severity1: outside of changing the file locally and on the server at the same time (or with the client disconnected), you shouldn't see too many 'conflcit' files16:38
aquariusthe current module certainly needs a cluebat or nine, I agree, though L)16:38
aquarius:)16:38
CardinalFangMine isn't a file, and I haven't changed it anywhere since upload.16:38
CardinalFangOnly one box accessing it, too.16:38
ChipacaCardinalFang: leonel: Severity1: if you do, it's usually a bug, and the .u1conflict file itself is the ex-local file, and the non-.u1conflict is the one on the server16:38
ChipacaCardinalFang: some causes of spurious conflicts have been fixed in 0.9416:39
CardinalFangI had only one entry, the conflict, and no real directory in parallel.16:39
ChipacaCardinalFang: "foo.conflict" or "foo.u1conflict"?16:40
ChipacaCardinalFang: if the first, that's with an old client and an old server with a lot of bugs fixed since then (in particular, one that would give you a lot of that behavior)16:41
Chipacathere are still many corner cases that will put a file in .u1conflict16:41
CardinalFangChipaca, Er, good question.  I just renamed it and don't remember.16:41
* CardinalFang CCs jdo and urbanape.16:42
Chipacabasically if we suspect we might be about to lose your data, we put it away in a conflict file just in case16:42
leonelother than that ..    really  I'm loving  ubuntuone16:42
Severity1Chipaca, ah so its a problem with the versions of the file in the server and client16:43
Chipacayes16:44
Chipaca(it can also happen if we get an OSError or IOError when operating on the node (file, directory, etc))16:45
Chipacathe client has a little big state machine at its heart16:45
Chipacathings like "if you close a file and made changes to it, upload the file"16:46
Chipacabut also a lot of "if you got here we have no idea what to do, DESPAIR"16:46
Chipacaor is that DISPAIR?16:46
* Chipaca dicts16:46
Chipacayeah, despair (all caps)16:48
dobeybbiab, lunch!16:48
Chipacadunno where I was going with that thing about despair and all...16:52
Chipacaah, yes16:52
Chipacaactually despair is more "I have no idea how you got here"16:52
Chipacaand conflict (and this is why I started talking about despair) is one better than that; it's "I know how you got here, but I don't know how to get you out of here"16:53
Chipacaso we know we aren't broken, but we know we could potentially lose data. So we take the safe approach16:53
Chipacalittle by little we either avoid the conflict states, or realize what to do to get people out of them :)16:53
aquariuschad, I have poked your script a bit...it seems to be generating different signatures from the python oauth code16:54
aquariusCardinalFang, I have poked your script a bit...it seems to be generating different signatures from the python oauth code16:56
aquarius(oops :))16:56
CardinalFangIt's easy to confuse us.16:56
CardinalFangaquarius, Thanks.16:57
aquariusCardinalFang, I can give you the adapted script that I'm using for testing if you want?16:58
CardinalFangaquarius, Yesplease!16:58
urbanapeaquarius, so your pastebin would suggest  that we're missing some keys (callback and verifier (twice)) and incorrectly stashing the token_secret.17:00
urbanapeI've elminated the latter and boosted the former.17:00
aquariusurbanape, ah, verifier's not actually in it twice, that was a cut and paste error. sorry :)17:01
aquariusdo you now get the same signature? (holds breath in antici....pation)17:01
aquariusCardinalFang, sent17:04
urbanapechecking17:08
urbanapestill no.17:09
urbanapedo you have the snippet that spits out what's in the pastebin?17:09
aquariusI assembled it in gedit, sorry -- no script which does it. I just grabbed a private copy of oauth.py and edited oauth.py and oauth.js to both print the basestring out17:13
urbanapeno worries17:13
urbanapeOkay, I've reduced the differences to the initial URL.17:20
urbanapehttp://paste.ubuntu.com/264515/17:21
urbanapetrailing slash17:21
urbanapeis all17:21
urbanapeapparently17:21
urbanapegot it17:23
aquariusand...same signatures?17:24
urbanapeyup17:24
aquariusyaaaaaaaaaa17:25
* aquarius dances17:25
CardinalFangAlright, I'm sending patches for this oauth module.17:27
CardinalFangI'll run it by you first, a.17:27
urbanapehmm, still getting invalid signature from the server (under Bindwood)17:32
urbanapebut I'm adding your tests to my branch. Nicely done.17:32
urbanapeaquarius, okay, so next bit17:39
urbanapeI'm reasonably certain that the signatures are correct.17:39
urbanapeis my code actually doing the right thing here:17:39
dobeyhrmm17:40
urbanapehttp://paste.ubuntu.com/264527/17:41
dobeyurbanape: what are you trying to do?17:41
urbanapeauthenticate and authorize17:41
urbanapeI'm still receiving "Invalid signature" from the server17:42
aquariusurbanape, nope -- couch doesn't use request tokens. It's two-legged auth only17:42
urbanapeokay, well, that's gooder.17:42
* urbanape deletes code17:42
dobeyurbanape: what signature method are you using?17:42
aquariusso you don't need to authorize the token -- the one you have is already authorized17:42
dobeyCardinalFang: what oauth module are you patching?17:43
urbanapeaquarius, swoot.17:43
urbanapeokay, so now, when pushing bookmarks, I'm getting invalid_json. Moving right along.17:43
CardinalFangdobey, Leah Culver's Python module.17:43
dobeywhy?17:43
CardinalFangdobey, two bugs, and a few style problems.17:44
* CardinalFang cc's dobey.17:44
aquariusCardinalFang, auth_header_parts('%s="%s"' % (k, escape(str(v)))) ?? auth_header_parts is a list. shouldn't you be appending to it?17:44
* dobey waits for this cc17:45
aquariusme gets some dinner.17:49
jdodoes anyone understand what bug #423810 is talking about?17:51
ubottuLaunchpad bug 423810 in ubuntuone-client "sharing *** is - sharing with me - working?" [Undecided,New] https://launchpad.net/bugs/42381017:51
leonelJust uploaded a text file on jaunty 0.94   and on karmic I've just got the file but empty17:58
dobeyjdo: apparently he's saying the e-mail isn't getting sent to the other user17:58
dobeyleonel: disconnect/reconnect the client on karmic17:58
jdodobey, i wonder if it's from the desktop or the web UI17:58
dobey(though i'm surprised it appaered)17:58
dobeyjdo: i don't think it matters unless he's not entering an e-mail address in the email field17:59
CardinalFangaquarius, My big problem was that I wasn't passing "sha1" module as a third parameter to hmac.new .17:59
aquariusCardinalFang, aha18:00
dobeyhmm, ok18:03
* dobey kicks oauth.py in the face18:05
dobeywhat to do18:07
urbanapekick it again18:09
dobeygood idea18:10
urbanapeso, I'm getting invalid_json on the query we send to the database before pushing bookmarks.18:10
jdoCardinalFang, I don't know if our server is supporting HMAC18:12
urbanapethe only things that's changed in the query() method is the addition of an optional language parameter. Still defaults to "javascript"18:12
jdodobey, do you know if we switch from PLAINTEXT to HMAC?18:13
dobeyjdo: our server supports both18:13
jdohmm18:13
dobeywell, it supports HMAC-SHA118:14
jdoyes18:14
dobeyand CardinalFang wasn't generating hmac-sha118:14
dobeyluckily (or rather, unluckily) i am poking through the server code right now18:15
dobeybut i've hit a point in the road where the bridge is out18:16
urbanapeheading out to lunch. back in a bit.18:16
leoneldobey: leonel: disconnect/reconnect the client on karmic <-- Ubuntuone finished updating and    the file still empty18:27
dobeyhmm18:28
dobeyleonel: is it empty in the web ui?18:28
leoneluploaded a text file on jaunty  0.9418:28
leonelthen  got sync in karmic  but empty18:28
leoneldisconnected  both machines  waited about 15 mins18:29
dobeyleonel: if you go to https://ubuntuone.com/files and open that file, is it empty?18:29
leonelno file appeared on  ubuntuone.com/files     then  connected  and  all got sync but the file empty   and got a  .conflict  on jaunty18:30
leoneldobey: yes the file on  ubuntuone.com/files is empty18:30
dobeyok, so the problem was it didn't actually get uploaded18:30
leonelyes  that was on jaunty18:30
dobeyleonel: on your jaunty machine, please run "ubuntu-bug ubuntuone-client" to report a bug18:31
dobeyleonel: or just right-click on the applet and choose "Report a Problem"18:31
leoneldobey: ok ..18:33
jdourbanape, ping18:53
jdoI keep getting bad signature when using HMAC-SHA118:54
jdo:(18:54
jdoExpected signature base string18:57
dobeyhow are you generating it?18:58
jdodobey, using our libraries, I think I found the problem19:00
jdowell...using oauth libraries19:00
jdoI don't build it manually19:00
CardinalFangdobey, jdo, I have a script that I *think* should work.  See email.19:00
jdomy oauth_signature has a '=' at the end...it needs to be encoded for the POST19:00
dobeyyeah, that would cause it to fail :)19:01
jdoCardinalFang, is that the one urbanape forwarded?19:01
jdoCardinalFang, I wasn't sure why you did it all manually19:01
CardinalFangjdo, Then, no.19:01
jdohehe19:01
jdothe library does urllib.quote, but not encode19:04
dobeywhy are you using HMAC-SHA1 anyway?19:06
jdodobey, I'm just trying it out19:07
jdodobey, I should be able to use either signature method19:07
CardinalFangdobey, I had to choose one.  Neither worked.19:08
alexander_Is it possible that the software also can download files which is synced from other PCs?19:16
Chipacaalexander_: yes, of course19:17
Chipacaalexander_: in fact, it can do so in two different ways19:19
Chipacaalexander_: on the one hand, if you use both PCs with the same ubuntu one account, all files you upload on one pc will be downloaded on the other(s)19:20
Chipacaalexander_: on the other hand, if you use different accounts for each pcs, you can share a subfolder with any of the other accounts, in either readonly or read/write modes19:20
alexander_Thank you for your answer. But how can I administrat Ubuntu One, because it doens't sync both ways now?19:20
Chipacaalexander_: it doesn't? what version are you using?19:21
alexander_I've installed it yesterday so I guess the newest. But will try to reinstall it, I may know the error. Thank you for taking you time :)19:27
Chipacaalexander_: jaunty, or karmic?19:27
alexander_jaunty. Is karmic released?19:30
dobeyCardinalFang: what error do you get with that script?19:33
CardinalFangdobey, No error.  I do not know if '/api/accounts/' does anything different when it works.19:34
dobeyCardinalFang: not even a json error?19:35
CardinalFangdobey,  received {} has no 'id'19:36
CardinalFangand   None19:36
dobeyhrmm19:36
dobeyalexander__: karmic alpha5 is released today19:37
dobeyhuh19:38
dobeyi thought desktopcouch pulled the oauth token from the gnome keyring?19:38
dobeyCardinalFang: it doesn't?19:38
dobeygrr, java is eating all my cpu19:38
CardinalFangdobey, It does.19:39
dobeydesktopcouch.local_files.NoOAuthTokenException: OAuth details were not found in the ini file (/home/dobey/.config/desktop-couch/desktop-couchdb.ini)19:39
CardinalFangdobey, Or from couchdb,   /me looks.19:39
jdoCardinalFang, I thought we discussed this19:41
jdoCardinalFang, are you working from a computer that has been authorized to access ubuntuone?19:42
CardinalFangjdo, Yes.19:42
jdoCardinalFang, what's your username?19:42
CardinalFang'cmiller'19:43
jdoCardinalFang, if you login to https://edge.ubuntuone.com and then go to /api/account/19:44
jdoCardinalFang, what do you get? ^^19:44
CardinalFangjdo, a nice full dictionary.19:46
jdoCardinalFang, that is what you'll get with the web_api_tool script I sent you a link to19:46
jdoCardinalFang, not that for some reason, HMAC_SHA1 is not working. I haven't determined why19:47
jdos/not/note.19:47
CardinalFangjdo, Okay. Should Plaintext work?19:47
jdothe example code I used was plain text19:48
jdosince it's https, it's not necessarily a security risk19:48
CardinalFangjdo, I don't see what you sent.  I see a reply to mine with a sample Authorixzation header.19:49
jdoCardinalFang, the launchpad branch I sent you earlier19:50
jdoCardinalFang, I found out why HMAC wasn't working though19:50
CardinalFangjdo, In the script I sent you, you may change HMAC_SHA1 to PLAINTEXT , and get the same result, fwiw.19:51
jdoCardinalFang, I used the oauth library to buld my request: http://pastebin.com/m181fad1119:52
thisfredback19:52
jdoCardinalFang, and the problem I was having is I stupidly had POST, when I was doing a GET :)19:53
CardinalFangHrm, sadly, I'm not.19:54
jdoCardinalFang, what not?19:54
CardinalFangPOSTing.19:54
jdoCardinalFang, posting to /api/account/  ?19:55
CardinalFangSadly, I'm my problem is not as simple as using the wrong method for requesting '/api/account/' .19:56
dobeyCardinalFang: how do i get your script to get my oauth token correctly?19:59
jdoCardinalFang, what is the problem you're having?20:00
jdothat script I just pasted pretty much does everything20:00
CardinalFangHrm.  I guess change desktopcouch/local_files.py .  aquarius wrote that function, and I haven't looked at what it needs to do.20:01
CardinalFangdobey, ^20:01
CardinalFangI doubt he would try to store information in two places though.  That's weird.20:01
dobeyhrmm20:03
dobeywell hell20:03
dobeyTHAT is your problem20:03
dobeyCardinalFang: you're trying to use the oauth info for connecting to your local desktop couchdb, to contact the u1 server20:04
CardinalFangHuh.  That would do it, eh?20:05
dobeyyes.20:05
dobey:)20:05
thisfredCardinalFang: I know a little about local_files.py, through no fault of my own, what's the problem20:05
dobeythisfred: the problem is CardinalFang thought it was something that it's not :)20:05
thisfredstop doing that CardinalFang20:05
CardinalFangthisfred,  get_oauth_tokens() isn't as magical as I though.  It gets the wrong tokens.20:06
thisfredmy invoice is in the mail20:06
thisfredCardinalFang: that gets the tokens from the gnome keyring, and is used only once I believe20:06
thisfredbut this area is still a little hazy for me too. It's just too many things talking to too many other things to all fit in my head at once20:07
CardinalFangthisfred, exactly wrong,  :(  It gets the tokens from the INI file that have nothing to do with U1.20:07
thisfredI try to avoid seeing the bigger picture20:07
thisfredCardinalFang: ah, right, or that ;)20:08
jdoCardinalFang, are you looking for different tokens?20:08
CardinalFangjdo, I'm looking to U1 tokens.  I thought I had them.  I do not, until I write a function to get them.20:09
dobeygrr, amazon doesn't have any real vengaboys it seems20:09
jdoCardinalFang, how does the u1 token associate with the couchdb stuff you're doing20:10
jdoCardinalFang, Im wondering, forgetting about oauth tokens, what is this doing with desktopcouch20:11
dobeyjdo: well presumably they'll need a u1 oauth token to sync up the couchdb to ubuntuone.com20:12
CardinalFangjdo, it doesn't directly.  Every machine may want to replicate to U1, and to do that one needs a U1 token.20:12
CardinalFangBut, it's not required.20:12
CardinalFang"it" == replicating to U1.20:12
jdoCardinalFang, so what is the db_name_prefix stuff for?20:13
jdoCardinalFang, to replicate a remote db into a local one?20:13
jdo"it" is such a magical word :)20:13
jdoit's like "them" the people we blame for everything20:13
CardinalFangjdo, db_name_prefix is an effort to make unique names on U1 servers, to preserve RESTful semantics.20:14
jdoCardinalFang, so looking at your script, your really just looking for a user id from U1 right?20:14
CardinalFangjdo, Yes.  *sigh*20:14
jdoCardinalFang, that's the output of all the oauth magic20:14
* CardinalFang sighs deeply.20:14
jdoCardinalFang, please use my script on a machine that is authorized to access Ubuntu One20:15
jdoCardinalFang, by authorized, I mean it uses the syncdaemon to get a token20:15
jdo./web_api_tool.py --url https://edge.ubuntuone.com/api/account will dump out a dictionary of the account, you can used that dictionary to get the U1 userid20:16
lordmetroidHow do I find out the version number of the client?20:17
dobeylordmetroid: dpkg -l ubuntuone-client ?20:17
jdolordmetroid, apt-cache policy ubuntuone-client20:18
jdooh or that :)20:18
dobeypolicy output can be confusing20:18
jdoooh...there's a new one20:18
dobeyespecially if one has multiple PPAs20:18
dobeyor you can do "python -c 'import ubuntuone.clientdefs; print clientdefs.VERSION'20:18
urbanape_feeling a little stabby20:18
Chipacaisn't there a u1sdtool --version20:19
Chipaca?20:19
dobeylivin' the hobo life, with your hobo knife?20:19
dobeyChipaca: there's a bug for it20:19
jblount~/away20:19
jblountor /away20:19
Chipacadobey: close20:19
jblountEither way, I'm back.20:19
statiksing it jblount20:20
Chipacadobey: that is "so close!", not "close the bug" :)20:20
lordmetroidok, thanks20:20
dobeyheh20:20
urbanape_dobey: Some folks call it a Kaiser Blade, I call it a Slingblade. Uh huh.20:20
CardinalFangjdo, once I use the edge host, yours works.20:21
jdoCardinalFang, yes, like I said several times20:21
jdo:)20:21
jdoCardinalFang, the latest and greatest is on edge20:22
urbanape_aquarius, out of curiosity should we be re-instantiating these CouchDB instances in Bindwood?20:24
urbanape_Would it be mo' bettah to just keep one instance around?20:25
aquarius?20:25
aquariusprolly20:25
aquariusI was just being inefficient, I think :)20:25
urbanape_k, I'm trying to eliminate cruft and find a nice way to test this stuff.20:28
=== urbanape_ is now known as urbanape
dobeyurbanape: so yeah, just use PLAINTEXT instead of HMAC-SHA120:35
dobeyand i'll just remove the HMAC-SHA1 support from the server :)20:35
urbanapeis that server setting in a config so I can test it locally?20:36
dobeyno, the adding of signature methods to the oauth server is programmatic20:37
urbanapeso, I'll wait for your branch of desktopcouch to show up?20:38
dobeyi'm not touching desktopcouch, no20:40
dobeyoh, are you trying to muck with tokens from local couchdb?20:41
urbanapeyeah, this is all dealing with desktopcouch20:41
dobeyoh, ok20:43
dobeyhrmm, i don't see HMAC_SHA1 anywhere in desktopcouch (with find/grep)20:45
urbanapeweird. That's what aquarius told me to use.20:45
dobeyi don't see PLAINTEXT either20:45
dobeyso i'm not sure what that means exactly20:45
urbanapeit means IS IT FRIDAY YET?20:46
statikbindwood will be talking straight to couchdb using oauth, and CardinalFang is probably working on adding the Oauth support to desktopcouch as we speak20:46
statikoh man, monday is a US holiday20:46
statiki'm going to have to figure out how to spend it in a boat20:47
urbanapeboat boat boat20:47
urbanapeyou a sailor?20:47
statiki'd like to learn to sail so i can achieve my dream of bareback chartering a 50' bluewater catamaran to somewhere dangerous20:49
statikright now i just have a little tiny broken center console boat20:49
statikbasically only good for scaring people with20:49
urbanapezoom zoom20:50
CardinalFangBe ye well ware of pirates, me hearty.20:50
statikthe thing about a boat is that it should be big enough to hold a compressor to refill the scuba tanks, you know?20:50
urbanapeabsolutely.20:56
jdothe problem here with boars is they won't let go fast in them until you're out in water where going fast in a small boat can be rough20:56
urbanapefriends of ours had a sweet little center console runabout in Key West.20:56
urbanapeManaged to get us out to the reef at least.20:56
jdos/boars/boats/20:56
jdosmae things20:56
jdohehe20:56
jdoarg20:56
jdoIt sure has been a pain typing since I lost my middle fingers in a cooking accident20:57
urbanapeI have trouble getting my boars up to speed.20:57
LordMetroidis 42394420:57
LordMetroidbug 42394420:57
ubottuLaunchpad bug 423944 in ubuntuone-client "Updating files is very slow" [Undecided,New] https://launchpad.net/bugs/42394420:57
LordMetroidis that a feature?20:57
jdoLordMetroid, do you have throttling enabled?20:57
LordMetroidNot in the client20:58
jdowoop...then yes...yes it is a new feature :)20:58
jblountLordMetroid: No, that is not a feature, we are still trying to figure out why it is so slow.20:58
dobeyboars?20:59
jblountThere is another bug with some casual statistics and comparisons to another similar service.20:59
jdojblount, but it is a feature...albeit an undesirable one20:59
dobeyi don't think you would fit inside a boar20:59
jdodobey, yes, I been ticketed 3 times riding my boar on the highway20:59
jdodobey, I was told it was strictly a water boar and not approved for public roads21:00
LordMetroidOk, jblount, thank you21:00
jdostupic lift kit was a waste21:00
* dobey proposes a branch for jdo to review21:00
* jdo reviews21:00
* jdo blindly approves dobey's proposal21:00
jdooh wow21:01
dobeyat least sept 19 is an international holiday21:01
CardinalFangurbanape appeared on my flickr account notices, and looked around a bit and decided that facundobatista has far, far, far more fun than I have.21:21
urbanapeha21:22
dobeythisfred: i see what you meant about pulseaudio and cassettes now21:53
thisfreddobey: weird huh?21:53
dobeythisfred: was just changing songs in rbox, and when it cycled, the volume would go up real quick and then back down21:53
dobeygrmbl pulseaudio21:54
dobeyah well21:55
thisfredoh, well, for me it was definitely playing speed which was wobbly, not volume21:55
dobeyi'm off for now21:55
thisfredlater!21:55
dobeylater21:55
CardinalFangstatik, my desktopcouch/replicate-to-u1 branch relies on one.ubuntu.com and couchdb.one.ubuntu.com , fwiw.22:33
CardinalFangit also relies on couchdb running there, et c, so that shouldn't be a signal that i'm waiting on you or anything.22:34
CardinalFangG'night!22:35
statikCardinalFang, great!22:40
joshuahooveranyone think the applet icon looks blurry in the notification area?22:50
Chipacajoshuahoover: it looks blurry in the notification non-dialogs22:51
Chipacanotification monologues?22:52
joshuahooverChipaca: ahhh...got ya...looking at a bug from chris kenyon and wasn't quite "getting it" :) forgot about the message notifications22:52
joshuahooverChipaca: oh yeah, that is definitely blurry22:53
facundobatistaCardinalFang, why?22:58

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