/srv/irclogs.ubuntu.com/2011/12/14/#ubuntuone.txt

=== M0hi is now known as IAmNotThatGuy
=== mpt_ is now known as mpt
JamesTaitGood morning, everyone! :)09:38
gatoxmorning everyone11:07
mandelmorning!11:07
mandelgatox, we have a small issue with the xdg in trunk and rye11:08
gatoxmandel, fighting with P?11:08
gatox:P11:08
mandelcan I haz help11:08
mandelgatox, a little, not too much :)11:08
gatoxmandel, shoot11:08
mandelgatox, is better to ask rye11:09
mandelgatox, how is it with the windows api?11:12
gatoxrye, hi11:12
gatoxmandel, a bloody mess11:12
gatoxjejejeje11:12
gatoxand pywin32 is incomplete11:12
mandelgatox, I know that already :)11:12
gatox:P11:12
mandelgatox, go go ctypes!11:13
mandelgatox, the problem with ctypes is when you use them in an x64  and you used py2exe.. things break11:13
mandel:(11:13
gatoxcrap11:13
mandelgatox, yeah... I'm getting lots of knowledge out of this project :)11:15
gatoxmandel, i know..... if i search for windows and  python on google..... you are the guy!! jejejeje11:17
mandelgatox, shhh don't tell anyone :P11:18
mandelgatox, so what was the issue you had?11:19
gatoxmandel, na..... i'm fighting trying to make a link to a folder...... the way that it's now, don't allow unicode targets, and the one that i'm trying to use that it's kind of more low level don't have the Folder constants, and hardcoding the constants is not working... soo... now i'm going to take a look to pywin if that could be implemented there.... or go with ctypes (that it's kind of more difficult and annoying)11:21
mandelgatox, which are the constants?11:22
mandelgatox, and can  see the funtion you are using, for curiosity mainly :)11:22
gatoxyep..... let me give you a paste11:22
gatoxmandel, http://paste.ubuntu.com/769935/11:25
gatoxmandel, according the api, changing "shell.CLSID_ShellLink"  for "shell.CLSID_FolderShortcut" should work... but, shell.CLSID_FolderShortcut is not defined..... and if i put the constant value, directly there, doesn't work11:26
mandelgatox, what error do you get?11:27
gatoxmandel, the constant value i take it from here: http://www.capo-nord.org/soci/xmav/articolo.php?id=2007061411:27
mandelgatox, may I see the code qhen you add the constant?11:27
gatoxmandel, i have tested this, and its creating the link, but it's a file link, not a foldeer link: http://paste.ubuntu.com/769940/11:30
gatoxmandel, i'm reading this doc: http://msdn.microsoft.com/en-us/library/aa969393.aspx Using Shell Links section11:30
gatoxTo create a folder shortcut using the CreateLink sample function, call CoCreateInstance using CLSID_FolderShortcut, instead of CLSID_ShellLink (CLSID_FolderShortcut supports IShellLink)11:30
gatoxmandel, the other thing is to use IShellLinkW.... but again, it's not implemented11:31
mandelgatox, why do you say it is creating a file link?11:32
gatoxmandel, if a try to open that link is not resolved and try to find a file11:34
mandelgatox, hm.. let me 5 mins to play a little with it :)11:34
mandelI'm waiting for natty to install de build-deps of control panel :)11:34
gatoxmandel, ok..... i'll be looking to pywin code..... if there is any hope to avoid ctypes :P11:35
gatoxmandel, crap...... the create_shortcut method in pywin is doing exactly the same11:37
gatoxEXACTLY!11:37
gatoxwhy i didn't start looking at that!!??  jeje11:38
gatoxsooo..... pywin is having the same problem as me11:38
mandelgatox, an the issue is unicode related11:40
gatoxmandel, of course!!! jejejee you are talking to me11:41
gatoxjejje11:41
mandelgatox, let me take a small look11:41
gatoxAHHHHHHH WAITTTTTTTTTT11:43
gatox¬¬ it's not having problems to create folder shortcuts just the way it is...... it's having problem to find the setPath argument11:43
gatoxthat happens to test everything in a really weird unicode environment11:44
mandelgatox, tell me you do have the folder..11:44
gatoxyes yes...... but if i try with another folder with a path that doesn't contain unicode chars, it works fine...... but if the argument in setPath contains unicode chars, there is the problem11:45
mandelgatox, I've got it working11:48
mandelgatox, let me paste you what i did :P11:49
gatoxmandel, with unicode?11:49
gatoxmandel, don't play with my feelings11:49
gatoxjejejee11:49
mandelgatox, paste.ubuntu.com/76995711:49
mandelgatox, you can see that there I'm using unicode in the program location, right?11:50
mandel(I needed to use that name because I have a 'decent' username)11:50
mandelgatox, the problem you have is that the shell in windows does not use unicode but mbcs, so probably when reading the target path it was going, wtf!? I don't understand utf8!!!11:51
mandelgatox, while python is smart and does the right way when doing an open(unicode) the pywin32 does not and you have to be explicit11:51
gatoxmandel, not working for me11:52
gatoxi'm the corner case of the programming world!11:52
gatoxjjje11:52
mandelgatox, ok, can you change the script adding the username in the path to let me check in mine?11:52
gatoxmandel, test with this: 雄鳥お人好し ñandú11:53
mandelgatox, also, open the shortcut, and look at the target property, where does it point?11:53
ralsinagood morning!11:53
gatoxralsina, morning11:53
mandelralsina, buenos dias!11:54
ralsinamandel, gatox: do either of you have a clean windows 7 vm?11:54
gatoxralsina, nop.... i'm going to install one.... it seems that it's needed :P11:54
ralsinabecause the broken release works just fine on XP, seems to me :-(11:54
ralsinagatox: please11:54
gatoxmandel, nowhere11:54
gatoxjust blank11:54
mandelgatox, so it getting confused by the encoding and ignoring it, lovely windows :)11:55
mandelralsina, I do have a clean windows for testing :)11:55
mandelralsina, let me finish helping gatox and I'll move to you11:55
mandel:)11:55
gatoxmandel, ñ and ú.... not much problem....... but: 雄鳥お人好し   frak windows11:55
ralsinamandel: ack11:55
gatoxmandel, i think that if we could use IShellLinkW maybe would be easier11:56
mandelgatox, I don't think that method exists..11:56
gatoxnot method, interface11:57
gatoxhttp://msdn.microsoft.com/en-us/library/bb774950(VS.85).aspx11:57
gatoxmandel, and i have the constant value: "{000214F9-0000-0000-C000-000000000046}"11:57
gatoxbut it saays that there is not an interface registered that supports that id11:58
gatoxiid11:58
gatoxmmmmmm but it's accepting the id for IShellLinksA11:59
gatox"{000214EE-0000-0000-C000-000000000046}"11:59
nessitagood morning!12:00
gatoxahhhh this constants are for windowsXP, they probably change... and that's way the old ones are still valid maybe12:01
mandelnessita, morning!12:01
gatoxnessita, morning12:01
gatoxmandel, i'll try to obtain the new IID12:01
mandelgatox, the problem is that you have to be super careful with that, the reason to prefer pywin32 is exactly that..12:01
gatoxmandel, yes, i know......12:01
gatoxbut....... it's not working :S12:01
gatoxmandel, i just want to know if it works, and then i'll look for a nice way to obtain that value12:02
mandelgatox, it is certainly possible to use it, especially because windows explorer can :)12:04
gatoxyep12:04
ralsinamorning nessita12:07
gatoxnessita, hi12:08
ralsinagatox: +1 on what mandel said, those constants are evil12:08
gatoxralsina, yep.... i know that part12:08
nessitagatox: two hellos? wow, I feel special :-)12:08
gatoxbut...... pywin is not working just the way it is.... and using ctypes will be the same....... and with some more confusing code12:08
ralsinagatox: you can instantiate IShellLink using pythoncom12:08
ralsinagatox: http://timgolden.me.uk/python/win32_how_do_i/create-a-shortcut.html12:08
nessitahola mandel, ralsina12:09
gatoxnessita, jejeje in this moment i just don't know what i say :P12:09
mandelnessita, buenos dias :)12:09
mandelgatox, http://www.codeproject.com/KB/shell/create_shortcut.aspx12:10
gatoxralsina, yes, that what i'm doing..... but i need IID_IShellLinkW which is not there12:10
* gatox looking.....12:10
mandelgatox, this is the trick: MultiByteToWideChar12:11
ralsinagatox: it's there in windows 712:12
gatoxmandel, wowwwwww :O12:12
gatoxralsina, not following....12:12
ralsinagatox: well, if I print shell.IID_IShellLink it's there :-)12:12
gatoxralsina, yes it is..... but not in pywin i mean12:12
gatoxralsina, yesss...... that one is there, i mean IShellLinkW12:13
ralsinagatox: unless you mean you can't instantiate it (sorry I missed the first part of the cnversation)12:13
ralsinagatox: it's there too12:13
ralsinagatox: and it's the same value12:13
ralsinagatox: Wait, not the same value12:13
gatoxyep..... but it's not recognized as an interface with that iid12:14
ralsinaIID('{00214F9-0000-C000-000000000046}')12:14
ralsinaACK12:14
gatoxi'll try mandel suggestion about MultiByteToWideChar12:14
ralsinaok12:15
mandelgatox, try that code using ctypes, if it work, find out how to that with unicode on python and see if you have luck with the pywin32 calls12:15
mandelif, not, do use ctypes and let me know so that we test the code in an x64 windows machine12:16
* mandel would like guest additions for kvm virtual machines...12:28
mandelgatox, to run the test for control panel with qt is ./run-tests -qt right?12:30
mandelnessita, did you have a ppa with the qtreactor that I can use for N?12:31
gatoxmandel, yep12:31
nessitamandel: yes, is there in the email I sent to u1discuss. The .deb is also there (subject qt4reactor).12:31
* mandel looks12:32
mandelnessita, got it!12:40
nessitamandel: yey!12:41
mandelnessita, I'm suurprised I did a build-dep ubuntuone-control-panel and it did no complain about qt4reactor missing, is that a known issue?12:42
nessitamandel: we're not packaging anything related qt yet12:43
mandelnessita, ok :)12:43
nessitaso, strictily speaking is not an issue :-P12:43
mandelnessita, and.. one more thing, do you have bugs for me, otherwise I'll work on proxy :)12:43
nessitathe issue would be: "no qt packages"12:43
mandela more general one :)12:43
nessitamandel: work on proxy please! I will re-review the system folder branch soon12:44
mandelnessita, sweet, I'll move to that then, the other branch has also been updated :)12:44
=== alecu__ is now known as alecu
nessitamandel: when you have a moment, you could also fix this proposal: https://code.launchpad.net/~mandel/ubuntuone-dev-tools/proxy-testcase/+merge/8501913:10
nessitamandel: so we can have rodney re-reviewing today13:10
mandelnessita, that is the proxy work I'm doing :)13:10
nessitamandel: great!!!13:11
mandelnessita, getting twisted to use the uath was giving me some headaches :(13:11
nessitamandel: any reason to do this:13:13
nessita        expected_result = []13:13
nessita        expected_result.extend(self.dirs)13:13
nessita        expected_result.extend(self.files)13:13
nessitainstead of:13:13
nessita        expected_result = self.dirs + self.files13:13
nessita?13:13
mandelnessita, no real reason, bad code from my side13:14
nessitamandel: another question, any reason to prepend "native" to this method? native_is_system_path13:15
mandelnessita, so that we know that the are no decorators in it13:15
mandelI followed the naming convention we used in the other methods with no decorators13:15
nessitaah, I see13:15
mandelnessita, pushing a new revno with that stupid list operation fixed13:18
nessitathanks13:18
mandelrevno 116913:19
nessitare branching13:27
mandelalecu, is there a way to know why I'm getting a 400 error when using an HTTPClientFactory?13:34
alecumandel, surely there is13:35
mandelalecu, can you point me to it?13:35
mandelalecu, docs should be enough :)13:35
alecumandel, is the server a test twisted.web.server running in the same process?13:35
mandelalecu, no.. is bloody squid the one that is giving me that :(13:36
mandelalecu, te molesto post lunch13:40
* mandel lunch13:40
Yanch0 guys anyone managing to fix the 'Calling Stale Broker' problem on a windows 7 client when trying to synch to ubuntu one ?13:42
mandelnessita, ^13:43
gatoxbrb!13:44
nessitaYanch0: hi there, not ATM, but as far as I know it means syncdaemon has stopped working13:44
nessitaYanch0: is this happening all the time?13:44
Yanch0yes nessita rarely works ifne13:45
nessitaYanch0: what's you windows locale and version?13:45
Yanch0ver 6.1 build : 7601 - windows 7 x64 professional - en locale13:46
=== yofel_ is now known as yofel
alecumandel, I found out how to do that, by digging into the twisted sourcecode. Here's how: http://pastebin.ubuntu.com/770054/13:51
nessitaalecu: any idea how to debug further the problem that Yanch0 is having?13:59
nessitaYanch0: the "Calling Stale Broker" appears on the controlpanel?14:00
nessitaI mean, in the graphical UI14:00
Yanch0yes nessita14:00
nessitaYanch0: can you tell if that happens at a certain point, of after doing something specific? can you reproduce?14:00
aleculooking14:01
Yanch0File Sync starting ... then after minutes of nothing happening that error14:02
alecuYanch0, we should take a look at your logs, to see what's causing syncdaemon to die14:03
nessitaYanch0: can you please monitor the memory consumption?14:04
Yanch0cool alecu - how can i get u those?14:04
nessitaalecu: perhaps killed by the OS by mem usage? :-/14:04
alecuYanch0, let me find the right folder...14:04
nessitaalecu, Yanch0: C:\Users\<username>\AppData\Local\xdg\cache\14:04
alecunessita, sounds reasonable, and that might be it if there's no other error14:05
nessitaalecu: right14:05
Yanch0ubuntuone-syncdaemon.exe *32 is currently @ 26 cpu and 400 mb14:05
nessitaYanch0: can you monitor if the mem usage grows, and see the value when the process is killed/terminated?14:05
Yanch0ok nessita will keep an eye on that .. in the mean time which logs u need?14:06
Yanch0going to 530mb14:06
alecuYanch0, and whenever you get that message it means that the control panel is not connecting to syncdaemon anymore. You should try killing the control panel process and running it again.14:06
Yanch0alecu, thats what im doing now after i asked the qs again - to try to reproduce14:07
alecuYanch0, useful logs would be the syncdaemon logs just before the problem started (you can check that by looking at the date&time inside the files)14:07
nessitaYanch0: everything under C:\Users\<username>\AppData\Local\xdg\cache\14:07
nessita(I need to run a quick errand, brb in 15 minutes)14:07
alecuor just everything, right :-)14:07
Yanch0we're at 1gb memory14:08
Yanch0(documents folder is 34mb all in all)14:08
gatoxback14:11
Yanch02gb memory - out of 8 total14:12
Yanch0stuck at 1949620K memory for a bit .. cpu sticking to 25 /2614:13
* nessita is back14:24
nessitaYanch0: let us know if the syncdaemon process dissapears (gets killed)14:25
Yanch0nessita, still alive, but stuck to 196027614:26
nessitamandel: branch approved, IRL tested the listdir function and works as expected14:26
nessitaYanch0: is controlpanel failing, if you open it?14:26
Yanch0no nessita .. top right still says starting14:27
Yanch0i now just clicked on settings .. and pam14:27
nessitaYanch0: pam == stale broker error?14:27
Yanch0eror appeared  - ram 1960 36414:27
Yanch0yep14:27
Yanch0---------------------------14:27
Yanch0Ubuntu One experienced an error14:27
Yanch0---------------------------14:27
Yanch0Sorry, an error has occurred and Ubuntu One needs to close.14:27
Yanch0---------------------------14:27
Yanch0Close   Hide Details...14:27
Yanch0---------------------------14:27
nessitaYanch0: is the syncdaemon process still running?14:27
Yanch0sorry for multi line paste!!14:28
Yanch0yes still running14:28
nessitabut seems is not responding...14:28
nessitaalecu: any ideas?14:30
Yanch0in taskmgr still running ( 1960 500) ram14:30
Yanch0and top right still says it's starting14:30
nessitaYanch0: if you close and re-open the UI, same error?14:31
alecunessita, no idea either :-(14:31
Yanch0ok i closed the ui .. syncdaemon still alive14:31
Yanch0different error now14:32
Yanch0attribute error , "nonetype object has no attributed 'get_root_dir'14:32
nessitaYanch0: and is the syncdaemon process still "alive"?14:32
Yanch0same if i click Settings14:32
Yanch0yes still cpu 26 and same ram as before 32mb more14:33
nessitaYanch0: let's stry this. Please kill syncdaemon, and close everything related to U114:35
nessitaYanch0: then, move the current logs to another folder, so they don't get rotated. Once that's done please re-open the controlpanel and in the Folders tab (the first one shown), unclick the Documents folder14:36
nessitaYanch0: I'm guessing you're suffering from https://bugs.launchpad.net/ubuntuone-client/+bug/88392614:36
ubot4Launchpad bug 883926 in ubuntuone-client "[windows] Breaks on system directories My Music, My Videos dirs in ~\Documents folder on Win7 (affects: 6) (dups: 3) (heat: 55)" [Critical,In progress]14:36
nessitaalecu: in that bug, syncdaemon never finished Local Rescan, it keeps cycling and cycling over the system folder, so that's why Yanch0 may be seeing "File sync starting" all the time14:37
Yanch0unchecked documents14:38
nessitaYanch0: ok, let me know how that goes, if file sync progress, then we have more info :-)14:38
Yanch0click settings get that error again14:38
nessitaYanch0: can you kill everything and re-open? and confirm the Documents folder is not selected to be synch14:39
Yanch0ok will do14:39
nessitaYanch0: thanks for helping debug!14:39
alecunessita, oh, I see. I remember the discussion regarding this bug at the sprint14:40
Yanch0file sync in progress14:40
Yanch0and syncing ubuntu one (empty folder)14:40
nessitaalecu: we're working on 2 fixes: on windows, ignore system folders, on linux, avoid LR cycling for ever (have a limit)14:40
nessitaYanch0: then, despite this not being good news for you, you're suffering from the bug linked above. We're working on fixing this, as we speak14:41
Yanch0great :)14:41
nessitaYanch0: wanna click on "affects me too", in the bug? (at the top)14:41
Yanch0funny thing is that i cant sync other folders except the documents14:42
nessitaYanch0: yes, that's because the DOcuments folder have system folders in it14:43
nessitaYanch0: which are making a given stage of syncdaemon startup fail, and retry indefinitely14:43
nessitaYanch0: that's why it never progresses after the "File sync starting" stage14:43
Yanch0gotcha .. same issue as this guy with cpu usage14:43
Yanch0where is the affects me ?14:44
nessitaYanch0: in the bug report, at the top left corner14:44
nessitaThis bug affects 6 persons. Does this bug affect you?14:44
nessitaYanch0: so, a immediate workaround would be to move the things you want to be synched to another folder and choose that to be synched14:45
Yanch0i wanted also to sycn d:\projects14:45
nessitaYanch0: and that worked?14:46
Yanch0but i can only choose a folder inside c:\users\matthew pulis directory and not overlapping with existing folder14:46
nessitaYanch0: ah, yes, sorry, I misread the path you pasted before14:46
nessitaYanch0: only things in inside your profile path14:46
Yanch0pity14:47
nessitaYanch0: master bug for that last thing is https://bugs.launchpad.net/ubuntuone-client/+bug/85414314:47
ubot4Launchpad bug 854143 in ubuntuone-client "Can't sync symbolic links, or folders outside my profile (home folder). (affects: 6) (dups: 4) (heat: 38)" [Wishlist,Confirmed]14:47
nessitaYanch0: you can also click affects me to to that bug :-/14:47
Yanch0waiting the confirmation code14:47
Yanch0yes i tried to act funy and create a symbolic link to d:\projects14:47
Yanch0but received complaints too14:47
Yanch0anything u want me to submit ?14:49
Yanch0as in logs14:50
nessitaYanch0: no need, thanks. The first issue is already diagnosed, and the second one involves a redesign of current syncdaemon and sadly it will not happen before the next ubuntu release14:50
nessitaYanch0: but thanks, a lot, for helping debugging this14:51
Yanch0wish u luck on debugging this .. seems a pain14:52
* mandel back14:53
mandelnessita, super, thx alot!14:53
Yanch0nessita, im gonna idle here - feel free to ping if u want more debugfs14:55
nessitaYanch0: great, thanks :-) let me know if you run into another issue14:55
nessitaalecu: I'm loving the webclient sso branch :-)14:55
mandelgatox, alecu, care to take a look at: https://code.launchpad.net/~mandel/ubuntuone-client/ignore-system-folders/+merge/8484814:56
nessitaalecu: looks very clean and understandable, in particular the tests14:56
gatoxmandel, no......14:56
gatox:P14:56
gatoxjeje14:56
mandelgatox, te odio!14:56
gatoxjeje14:56
alecunessita, thanks for the compliment :-)14:56
* gatox looking....14:56
gatoxme15:00
nessitame15:00
nessitache, y ralsina?15:00
gatoxniiiiii idea15:00
mandelnessita, he was here a while back15:01
mandelme15:01
mandelmaybe a network issues?15:01
nessitaalecu: stdp?15:02
alecume15:02
nessitadobey: welcome back! standup?15:02
dobeyno :)15:02
gatoxcylon15:02
dobeylol15:02
alecuhehehehe15:02
nessitadobey: let's play a game, where you can't say no :-D15:03
nessitagatox: go15:03
gatoxme go?15:03
gatoxDONE:15:03
gatoxWorked on make link.15:03
gatoxTODO:15:03
gatoxKeep working on make link and hope to finish it15:03
gatoxBLOCKED:15:03
gatoxNo15:03
gatoxnessita, go15:03
nessitaDONE: reviews, started with bug #834730 (is getting interesting)15:03
nessitaTODO: more reviews, more on bug #834730, 1-1 with ralsina when he comes back15:03
nessitaBLOCKED: nopes15:03
nessitaNEXT: mandel15:03
ubot4Launchpad bug 834730 in ubuntuone-client (and 1 other project) "Use SignalBroadcaster and RemoteMeta from ubuntu sso client (affects: 1) (heat: 6)" [High,In progress] https://launchpad.net/bugs/83473015:03
mandelDONE: Fixed MPS for ignored-system-paths and autoupdate-looping-call. Looked at my ProxyWebClient code to firxt the proxy testcase branch to use twisted webclient and not urrlib215:03
mandelTODO: more on the ProxyWebClient work (nearly got it).15:03
mandelBLOCKED: no but got to ask some stupid questions to alecu about twisted :)15:03
mandelalecu, please!15:03
alecuDONE: many fixes for merge proposals, more webclient for proxy15:03
alecuTODO: finish some internal branches so they can be reviewed tomorrow15:03
alecuBLOCKED: no15:03
alecuNOTE: today we are celebrating amelia's birthday with her friends at the pelotero, so I'll be out a bit earlier than usual15:03
alecuNEXT: dobey15:03
dobeyλ DONE: sprint, swap days15:03
dobeyλ TODO: get twisted patch upstream, help nessita with qtreactor packages15:03
dobeyλ BLCK: No.15:03
gatoxmandel, +115:03
gatoxbranch15:03
mandelgatox, thx!15:03
alecumandel, "<alecu> mandel, I found out how to do that, by digging into the twisted sourcecode. Here's how: http://pastebin.ubuntu.com/770054/"15:04
nessitaany comments anyone?15:04
nessitadobey: we have a problematic bug on precise, regarding a glib flag15:05
nessitadobey: I've assigned the bug to you, I would guess is not difficult to solve15:05
alecuguys, tomorrow's my EOY, so make sure you point me at all reviews I should be doing15:05
dobeyflag? no. typo15:05
alecumandel, gatox ^15:05
gatoxalecu, ack15:05
dobeyit's because precise has the new glib which just aborts15:05
nessitamandel: ^ make sure alecu re-reviews the autoupdate branch15:05
nessitadobey: ah, ok. Can you fix? :-)15:05
mandelalecu, so, I have another stupid question, when I do deferred.errback(error.Error) it get converted in a Failure with an error.error in it, is that the correct way to do it, or is there a way to re throw the error.Error15:05
mandelnessita, ack15:06
nessitadobey: when you have a moment, please15:06
gatoxalecu, nothing from me15:06
mandelalecu, ack :)15:06
dobeyyes15:06
alecumandel, can you point me at a bit of code?15:06
nessitadobey: thanks!15:06
mandelalecu, sure let me push it so that we are talking about the same :)15:06
alecumandel, yes, it's the right thing for exceptions to be wrapped in a Failure when they are sent thru errbacks15:06
alecumandel, but I'm not sure what you mean by "re-throw"15:07
mandelalecu, let me push it :)15:07
nessitaok, eom!15:07
alecuralsina, go!15:07
ralsinaDONE: mgmt call, canonicaladmin, worked on debugging windows brokenness (rye found it!)15:08
ralsinaTODO: build a working windows release15:08
ralsinaBLOCKED: no15:08
gatoxok, lunch for me!! go back in a while...15:08
nessitaralsina: todo bien? we had the 1-1 at 11:3015:08
ralsinasorry about not being here, but windows rebooted :-)15:08
dobeyMS has had the same TODO for 20 years ;)15:08
ralsinadobey: ha!15:08
ralsinanessita: the reboot was not exactly smooth ;-)15:08
mandelalecu, can you pull from lp:~mandel/ubuntuone-dev-tools/proxy-testcase and look at line 92 of ubuntuone/devtools/testcases/tests/test_squid.py15:09
nessitaralsina: the reboot took 35 minutes? :-/15:09
nessitaralsina: what happened?15:09
=== gatox is now known as gatox_lunch
mandelI guess that probably updates..15:09
ralsinanessita: yes. Windows needed to reconfigure stuf because of an update. Took 38 minutes15:09
nessitaralsina: oh my god...15:09
ralsinanessita: indeed15:09
mandelnessita, yeah, I usually avoid updated til EOD, otherwise you waist soooooo much time :(15:10
nessitaright15:10
alecumandel, you probably mean this file, right? ubuntuone/devtools/testcases/tests/test_squid_testcase.py15:11
mandelalecu, sorry, yes..15:11
ralsinamandel: me too, but ubuntuone's uninstaller asked me to reboot and I clicked without thinking :-(15:11
alecumandel, ok, looking at line 92... you are trying to re-throw the failure, right?15:11
mandelalecu, so there i get an error.Error then I check if it is 407, if not I want to pass it to the deferred_result15:11
mandelalecu, exactly, is that the correct way to do it?15:12
dobeywhoot. new RAM is "out for delivery"15:12
dobeyi wonder how fast pbuilder would be, if i ran it all in ram15:13
mandeldobey, bohh I though you bought a new pet :(15:13
* mandel imagines the cylon riding a ram15:13
mandeldobey, this one to be precise: http://the-tech-guy.net/wp-content/uploads/2011/11/ram-merino.jpg15:14
alecumandel, well, _process_auth_error is already an errback handler (from factory.deferred in _get_auth_page), right?15:15
nessitaalecu: tiny needs fixing on https://code.launchpad.net/~alecu/ubuntu-sso-client/proxy-web-client/+merge/85135, with that I'll approve15:15
mandelalecu, yes it is15:15
ralsinamandel, nessita: bug #90430015:15
ubot4Launchpad bug 904300 in ubuntuone-client "Don't start syncdaemon on windows vista or later if running with escalated privileges (affects: 1) (heat: 6)" [High,Triaged] https://launchpad.net/bugs/90430015:15
alecumandel, so, what happens when factory.deferred throws an error that is not a error.Error?15:15
alecumandel, say, a connection error15:15
mandelalecu, exactly, I want to be able to pass it to the deferred_result, and there is where my test fails15:16
alecumandel, I'm not sure I like passing the deferred_result between _get_auth_page and _process_auth_error15:16
mandelralsina, nessita that looks like a feature that we are missing on windows yet have on linux, do not run as root (unless you really really want to)15:16
ralsinamandel: yes, the check should be made crossplatform15:17
mandelalecu, the issue there is that I want to be able to do the retry so that in the second round I send the base auth15:17
mandelalecu, so, returning the original deferred does no good, right?15:17
nessitaralsina: but how can we make that check? there are some "regular" users that are also admin15:18
nessitaralsina: and we want to let those users running syncdaemon, no?15:18
ralsinanessita: you have to check for privilege elevation15:18
ralsinanessita: admin users don't start processes as admin, normally15:18
nessitaah, I see15:19
ralsinabeing admin on windows is more like being in sudoers than being root15:19
nessitaralsina: well, FYI, in trunk/ubuntuone/platform/windows/os_helper.py, there is:15:19
nessitadef is_root():15:19
nessita    """Return if the user is running as root."""15:19
nessita    # TODO: Do check if we are running as admin15:19
nessita    return False15:19
ralsinawell, that's the mising bit :-)15:19
nessitaralsina: so if we just implement that, the rest is solved15:19
ralsinaexxxxxactly15:20
nessitaralsina: I'll add that to the report15:20
ralsinacool, thx15:20
mandelherb, at least we did forsee the issue :)15:20
ralsinaOr we can switch that False to True and problem solved forever ;-)15:20
mandelralsina, no no no, that would not work, it wont let any user run sd15:21
nessitaralsina: another FYI, the "official" windows tag is "u1-windows"15:21
ralsinanessita: I know, sorry, my mistake15:21
ralsinamandel: I know. Solves *all* windows bugs ;-)15:21
mandelralsina, well we get back to the first bug, it does not work on windows :P15:21
ralsinamandel: so, only one bug? progress!15:22
mandelmanagers...15:22
ralsinametrics!15:22
mandelalecu, so, is there a common pattern to follow in this cases?15:23
dobeybah, trying to find a picture of something in the original battlestar series, is really hard to do now on google15:24
dobey"oh hi, here are more pictures of tricia helfler"15:24
alecuwhere!15:24
alecumandel, I'm trying to figure out the pattern for this15:26
alecumandel, anyway, I don't like the deferred_result being passed back and forth, and I don't like the .called being checked each time.15:26
mandelalecu, sweet thx! I've been thinking about it and I always get a fail in the assert because I get a failure and not an error15:26
mandelalecu, true, I don't think is needed to be checked, is just for safety15:27
alecumandel, I think that this could be much simpler if we used the deferred chaining in a different way.15:27
mandelalecu, and return the original deferred? the problem is the second request by the second HTTPClientFactory15:28
alecunessita, just pushed the fix to https://code.launchpad.net/~alecu/ubuntu-sso-client/proxy-web-client/+merge/8513515:29
nessitaalecu: thanks!15:29
alecumandel, yup, I think returning the original deferred would be the right thing, and chaining the callbacks so the result is passed through15:30
mandelalecu, I'll also be looking down that path..15:33
alecumandel, I think 1) _get_auth_page should be returning the factory.deferred, 2) _process_success is not needed15:35
alecu3) the retrying should happen in an errback on that deferred15:35
mandelalecu, that was just used to return the other deferred, if you remove it, it goes awaya15:35
alecumandel, right. And the main problem with the current code is that if there's an error other than error.Error, then deferred_result.errback never gets called.15:37
mandelexactly15:37
alecumandel, and it's very verbose too :-)15:37
mandelwell,m I dont mind it being verbose, I'm more worried about the error :)15:37
ralsinaIN YOUR FACE, UAC!15:46
ralsinamandel, rye, elopio: I think I solved everything :-)15:46
mandelralsina, no, I'm still single and not rich :(15:46
nessitaalecu: bug A for you on webclient branch!15:46
ralsinamandel: file a bug!15:46
ralsinamandel:  ;-)15:46
alecu\o/15:47
ralsinamandel: I found a way to start an unelevated process from an elevated process15:47
dobeydon't file a bug; you might assign it to someone15:47
=== gatox_lunch is now known as gatox
dobeynessita: https://code.launchpad.net/~dobey/ubuntuone-client-gnome/convert-typo/+merge/8568816:12
ralsinamandel, gatox, nessita: I have a hack, but the "real" solution for starting unescalated processes is probably something like this: https://pastebin.canonical.com/57119/16:16
ralsinamandel, gatox, nessita: and that's a real pain16:16
alecusounds hurtful16:17
mandelralsina, and you plan to do that with pywin32 , ctypes or c?16:19
ralsinamandel: good question16:19
gatoxor Go?16:19
gatox:P16:19
alecuralsina, mandel: probably ctypes + patience!16:19
ralsinaThe current hack I prposed for testing uses an external DLL to do the trick16:19
ralsinahere's the hack: http://www.codeproject.com/KB/vista-security/RunNonElevated.aspx16:19
mandelralsina, what about the legal issues?16:20
ralsinamandel: it's under MIT license16:20
mandeland, if we are doing that, we might as well compile a module in python rather than adding the dll16:20
mandel:P16:20
ralsinamandel: I have to start a non-elevated process from InstallBuilder16:21
ralsinaif we do it in python, it has to be added to -installer so it "de-elevates" itself and respawn16:21
mandelouch16:21
ralsinamandel: thus my "that's a real pain" comment16:23
mandelralsina, is there a way to tell squid I'm debugging and that I want to see the auth header he got?16:38
ralsinamandel: not that I know of16:39
ralsinamandel: if you are using firefox, you can check using firebug16:39
nessitadobey: approved16:39
dobeymuchas gracias16:40
mandelralsina, I'm using twisted16:41
ralsinamandel: no idea then16:41
ralsinamandel: but why are you using twisted as client? I thought the choices were libsoup and qtnetwork?16:42
mandelralsina, I was preciously using urllib2 for the tests for the squid testcase but I was required to use twisted instead16:42
ralsinamandel: ack16:43
mandelok, I need to go a say happy birthday to the little brother, bbl16:56
dobeymake sure you pay disney for the rights to sing the song16:56
dobeylunch time; bbiab17:18
=== lamal666 is now known as lamalex
dobeybrb, new RAM :)18:17
dobeyhrmm18:27
dobeythat didn't work out so well18:27
dobeyi just put another 6GB in, and linux thinks i only have 3.218:28
dobey:-/18:29
alecuan early EOD for me today19:41
alecubye all!19:41
ryegatox, btw, the issue with home dir was me, i failed to update the bzr tree19:41
ryedobey, 32bit system?19:41
gatoxalecu, bye19:41
gatoxrye, fiuuuuuuuuu :P19:41
ryef19:41
dobeyrye: yes19:41
ryegatox, i know, i know... but then i found why sd was hanging so it makes me good again.19:41
gatoxdobey, you can update the kernel to recognize the whole memory19:41
gatoxrye, good! :D19:42
ryegatox, pae?19:42
dobeygatox: not if it doesn't boot :)19:42
gatoxdobey, ahhhhh that's a problem :P19:42
* rye never used pae kernels, either simple i386 or x86_6419:42
gatoxrye, pae?19:42
gatoxahhhhh19:42
ryephysical address extension19:42
gatoxrye, once i updated to a server kernel19:42
dobeyand i can't install the amd64 kernel on oneiric19:42
gatoxbut i start using 64bits19:42
ryegatox, once loooong ago i spent a week recompiling the whole slackware for 64 bit cpu. It was fun.19:43
ryewill never do again.19:43
gatoxjejeje19:43
ryeZOMG battery weights almost as the rest of the netbook19:44
gatoxdobey, cof cof clean install cof cof19:44
dobeyyeah no19:44
gatoxrye, well..... i'm still trying to get my new laptop to work properly19:44
ryeit turns out it is not that much ZOMG19:44
gatoxdamn nvidia19:44
dobeyi don't want a 64 bit userspace19:44
ryegatox, nouveau?19:44
ryedobey, why? RAM usage?19:44
dobeyram, proprietary software, no need for it19:45
gatoxrye, i've try nouveau..... but no..... i think that  maybe the intel driver is missing.... this laptop uses both.....19:45
gatoxit's weird19:45
ryei guess i don't have any proprietary software except for nvidia driver... and some bits for tax office running under wine19:45
gatoxit's working..... but i can not use the vga or hdmi properly..... i'm fighting with xorg.conf19:46
gatoxamong other things19:46
dobeyrye: flash19:46
dobeyrye: the plug-ins are the real pain19:46
ryedobey, works using magic on my machine (nspluginwrapper, as I read your description above)19:46
ryewell, at the moment it does not work using magic because i uninstalled it19:47
dobeynspluginwrapper isn't magic. it's insanity19:47
dobeyi will not install that thing19:47
ryethankfully, neither of my banks uses flash for anything but banners. One uses Java for certificate check and signing though19:48
ryeand youtube... if it is not popular and not available in webm, then I am not waching it or use minitube19:48
ryeralsina, when you tweeted about lighting up the battery, did you meen it looks like it is broken?19:49
ralsinarye: 6 hours to charge means it's broken19:49
ryeralsina, it is nearly completely depleted19:49
ralsinarye: unless it's like 8800maH or something19:49
ryeralsina, 7000mAh19:49
ralsinarye: then maybe it's ok :-)19:49
ryetherefore it is called ZOMG-cell battery.19:50
ryegatox, yeeeah, i still want to grab my friend's laptop to see how it does this internal/discrete gpu magic19:51
cjohnstonlisettte: ping19:51
gatoxrye, i've to tested...... with a really powerfull game :P19:53
gatoxtest it19:53
dobeyheck, solaris got this right 8 years ago; why can't linux? :-/19:53
ryedobey, define:this19:54
dobeyrye: 64 bit kernel with 32 bit userspace19:54
ryedobey, well, i had this when i started converting the slackware... it is definitely possible19:54
dobeyyes i know it's possible19:55
dobeyactually, i think we did do it on suse way back when, but all of my own machines were 32 bit then, so didn't really matter19:56
dobeyand firefox didn't constantly eat all my ram, either19:56
gatoxEOD for  me!! see you guys tomorrow..... or later if i can't resist and get back to fight with the f$%#ing make link issue :P20:03
dobeymake link issue?20:04
dobeylint i presume20:04
gatoxlink20:04
gatoxcreate folder links with really weird unicode paths is not working20:05
dobeyoh20:05
gatoxyep.....20:05
dobeynot make as in /usr/bin/make20:05
gatoxnot, make as: mklink :P20:05
JanCdobey: you can already install many 32-bit packages on a 64-bit Ubuntu system right now20:16
dobeyJanC: yes; but i *only* want the kernel to be 64 bit20:17
dobeyand you can't do that.20:18
dobeyat least, not easily20:18
JanCdobey: I guess once all packages are modified to support multiarch, that should be doable20:18
JanCI'm not sure if they are far enough to start a 32-bit desktop system though20:19
JanC32-bit userspace desktop20:19
JanCpartly depends on Debian too, I guess20:20
dobeyyou don't need anyting special to start the 32 bit userspace20:20
dobeyof course, if the pae kernel worked, i would be fine with that too20:21
dobeybut alas20:21
JanCdobey: I think that at least libc needs to be different?20:21
JanCalso, some applications can use 64-bit support too20:22
dobeylibc doesn't need to be different afaik; lest something in the kernel requires the 64bit libc to be installed20:22
dobeyi guess i might need it for the nvidia driver to work or something20:23
dobeybut i don't much care about that; as long as it works20:23
dobeyall applications "can use" 64 bit, so long as they are compiled for it, yes20:23
dobeybut for 99.9999999999999999999% of them, it's totally useless20:24
JanCby "can use" I mean it's useful for them20:24
JanCthings like video/image editing in some cases20:24
dobeyin what cases?20:25
JanC64-bit is much faster for many such tasks (actually, amd64 can be much faster than ia32--this is not true for all architectures)20:26
dobeythey would benefit more from developers not being afraid of threads20:26
ralsinadobey: most developers *should* be afraid of threads.20:27
JanCI am afraid of developers who aren't afraid of threads ;)20:27
dobeyralsina: most developers shouldn't be writing code :)20:27
ralsinadobey: just like they should be afraid of lightning and big rocks on hills ;-)20:27
dobeyi love how CPU manufacturers started adding more cores, and developers stopped writing multithreaded code20:28
dobeymore CPUs you can't use!20:28
JanCdobey: that's because suddenly their multithreaded code broke down with more than one core...  ;)20:28
dobeyanyway, when i get 10 million dollars to make a movie, i'll buy a million dollar SGI to edit it on20:29
* JanC thinks about the infamous ralink drivers for example...20:29
ralsinadobey: just in case question: if I delete this branch, that pisses you off, right? https://code.launchpad.net/~ralsina/ubuntuone-control-panel/unique_snowflake20:31
dobeydeleting branches is annoying, yes20:32
dobeybut whatever20:32
ralsinawith many cores comes great deadlocks20:32
ralsinadobey: so, want me to delete the merge proposal first instead? Just want to do it right20:32
dobeyif your threaded code breaks on 2 cores, it probably breaks on 120:32
ralsinadobey: well... it breaks faster!20:32
dobeyralsina: if you're going to delete it, then just delete it; deleting the proposal first makes more work20:33
ralsinadobey: if there is something better instead of deleting it, since it's useless now, I am all ears20:33
JanCdobey: 1 core can never run 2 threads at the same time, so there certainly is code that only breaks on multi-core systems...20:33
dobeyralsina: not really20:35
ralsinadobey: ok, then sorry dude!20:35
dobeyJanC: breaks and breaks in an obvious way aren't the same thing; it was still broken on the single core, even if it wasn't obvious20:36
ralsinacan I get reviews forthis one of these days? https://code.launchpad.net/~ralsina/ubuntuone-windows-installer/quote_autostart20:52
dobeyone of these days maybe20:54
ralsinadobey: ok, no rush ;-)20:55
dobeylooks ok to me. i won't even try to pretend that windows would be sane about that20:57
ralsinadobey: yeah, so quoting doesn t hurt. I expect.21:01
dobeywell, now that lp let me, +1 from m21:03
dobeyme21:03
ralsinathanks dobey!21:05
dobeyugh contacts picker21:09
* nessita -> eod21:30
nessitabye all!21:30
ralsinabye nessita!21:31
nessitaralsina: have a nice holiday!21:31
* nessita -> run to pilates21:31
ralsinanessita: thanks!21:31
dobeywhy did gtktable have to get deprecated21:49
dobeygrubmle21:49
dobeyi think i'll just add a -Wno-error= to ubuntuone-client-gnome for now at least22:00
mfischIs there a way to set U1 to sync files who's name that start with a # sign?  like my bip logs?22:06
dobeylater all22:08

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