/srv/irclogs.ubuntu.com/2012/10/30/#ubuntuone.txt

=== yofel_ is now known as yofel
karniGood morning team!11:01
gatoxgood morning!11:17
karniMorning gatox11:21
gatoxkarni, o/11:22
gatoxkarni, if you have a moment please :D https://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/share-indicator/+merge/13197311:24
gatoxkarni, also, if you have any branches pending for reviews..... feel free to through it to me11:24
karnigatox: I have one coming very soon, not just yet. But thanks :) Yeah, I'll have a look.11:27
karnigatox: Does that mean we're moving out from the notifications tray menu?11:28
gatoxkarni, nono..... this is a functionality that is intended for windows and mac..... but if you want to test it, you can use it on linux too with the --with-icon arg11:32
karniI see.11:32
karnigatox: +1'ed11:33
gatoxkarni, the notification tray menu is from u1 client..... and this is integrated with control panel..... which is always running on windows and mca..... not the case for linux11:33
karnigatox: I trust the tests pass on your machine, I still haven't gone through the developer set up for the desktop.11:33
gatoxkarni, thx11:33
karnigatox: I see. np!11:33
gatoxkarni, great11:34
dobeywhee conf wifi13:55
aquarius:)13:56
gatoxkarni, another review (really small one) for when you have a moment (no rush): https://code.launchpad.net/~diegosarmentero/ubuntuone-client/menu-new-options/+merge/13210613:58
aquariusactually trying a different irc client13:58
karnigatox: sure14:01
gatoxkarni, thx!14:02
karniaquarius: Be right there with you.14:02
=== m_conley_away is now known as m_conley
karnigatox: /s/Ubuntu One Website/Ubuntu One website or even 'web site' ? You'd have to ask a native speaker.14:04
gatoxkarni, that is in that way in the design document14:05
karnigatox: Looks like a capitalization convention you're using there consistently. "Open the Ubuntu One Folder" (Folder), "Share a File" (File).14:05
karnigatox: roger that!14:05
gatoxkarni, i just copy the string from design14:05
karnigatox: k :)14:05
karnigatox: "webbrowser.open(self._syncdaemon_service.get_rootdir())" -- this contains full "rootdir" url?14:06
karnigatox: such as http://one.ubuntu.com/files/~/Ubuntu One ? (or similar)14:06
gatoxkarni, that contains the absolute path to the user ubuntu one folder in the disk14:07
karniaha14:07
gatoxas: /home/gatox/Ubuntu One14:07
karnigatox: So it'd spawn the default file browser, although it says "webbrowser" ?14:07
gatoxkarni, yap14:07
karnineat14:07
gatoxkarni, that implementation actually works on windows and linux....... for mac you need to add file:// at the start.... but THIS sync menu is only for linux.... so....14:08
karnigatox: This one's for linux, yep?14:09
karnigatox: +1'ed14:09
dobeyugh14:09
gatoxkarni, awesome, thx14:09
karninp14:10
gatoxbrb..... need to buy some vegetables in the fair downstairs14:10
gatoxs/in/at14:11
=== txwikinger2 is now known as txwikinger
gatoxback14:21
mmcchi folks14:42
gatoxmmcc, hi14:43
gatoxmmcc, when you have a time, can you re-review this one? https://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/share-indicator/+merge/13197314:45
mmccgatox, yep, it's on my list.14:45
gatoxmmcc, great, thanks!14:45
karnihi mmcc14:51
mmcchi, karni14:52
karnime15:00
gatoxme15:00
briancurtinme15:00
rockstarme15:01
karnidobey: me?15:01
karnimmcc: ↑15:01
* karni is not sure who's around and who's not, sorry! :)15:02
karniDONE: shuffle, repeat TODO: pause when headset unplugged, pause/resume on incoming call NEXT: gatox15:02
gatoxDONE:15:02
gatoxCouple of branches to improve the Control Panel Share tab. Add Share tab and Ubuntu One folder access from the U1 sync menu indicator and the windows/mac implementation, both in control panel and ubuntu one client.15:02
gatoxTODO:15:02
gatoxKeep fixing control panel bugs, and figure it out how to fix the failing test on nightlies.15:02
gatoxBLOCKED:15:02
gatoxNo15:02
gatoxbriancurtin, go15:02
briancurtinDONE: reviews for share branch, ubuntuone-client test debugging since 110 tests are failing15:03
briancurtinTODO: fix ubuntuone-client tests so i can continue with the release and get an installer to QA15:03
briancurtinNEXT: rockstar15:03
rockstarDONE: convert hand crafted view into xib15:03
rockstarTODO: continue work on the v2 api15:03
rockstarBLOCKED: No15:03
rockstarNEXT: ?15:03
karniUDS has kicked off, dunno who might be there as well.15:03
gatoxbriancurtin, when you have a moment.... this branch has been updated with the latests changes: https://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/new-share-design/+merge/13139715:04
gatoxeom?15:04
karnieom15:05
briancurtingatox: yeah i saw that update yesterday. i ran the tests and everything is fine, but im having trouble running on windows (unrelated to your branch - SD doesnt want to run)15:05
dobeyoh snap15:05
briancurtingatox: once i get ubuntuone-client tests cleaned up and running, i'll try it again. working on it now15:05
gatoxbriancurtin, thx15:06
mmccwhoops. completely forgot standup, was making coffee…15:06
dobeyDONE: script to tweak series/branch statuses15:06
dobeyTODO: create next stable branches15:06
dobeyBLCK: None.15:06
mmccDONE: tests/polish on mac menu — TODO: continue, reviews — BLOCK: no15:07
karninp, thanks guys15:08
* gatox lunch15:26
=== gatox is now known as gatox_lunch
dobeylunch time, bbiab15:33
mmccbriancurtin - are you still having hangs because syncdaemon won't load? I'm testing gatox' branch on windows now and syncdaemon is complaining that one of the tritcask files is owned by another process (even though all the other u1 processes are dead) - is that familiar?15:53
briancurtinmmcc: i'm not seeing that particular issue right now, but i think this whole thing is related. i was seeing that for a while, then i was seeing a KeyError inside tritcask during local rescan, and now nothing obvious shows up in the logs but SD starts disconnected when i start U1CP15:54
briancurtinalso u1client tests still fail big time on windows, so im trying to figure that out first15:55
mmccit starts disconnected when you start CP with credentials or without credentials?15:55
briancurtinwith15:55
mmccok, so probably not related to my cloud-folders fix15:55
mmccoh crap, that still needs to be merged15:55
briancurtinmmcc: we never got back to fixing that up. it just seemed to hang forever for me IIRC15:56
mmccright… ok I'll re-review that one myself now. assuming I can get things to start again :\15:56
mmccok, trying again with nuking all u1 processes got me a working CP15:58
mmcc(sans my cloud-folders fix)15:59
diogobaederGuys, I found a problem. None of the songs from this album are loading for preview: http://goo.gl/0qytW16:00
mmccdiogobaeder that does sound like a problem (I see it too) - did you mean to send to u1-internal?16:01
=== m_conley is now known as m_conley_away
diogobaedermmcc, I was not sure what would be the best channel for it, so I sent it here. Will send further problems to #u1-internal next time :-)16:02
mmccdiogobaeder - this channel's pretty quiet wrt server-side stuff, even though I think most people are in both16:03
diogobaedermmcc, ack16:04
diogobaederI'll resend the message there16:04
mmccbriancurtin, gatox_lunch - on windows with current u1-client trunk and https://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/share-indicator/+merge/131973 , the systray menu 'share a file' menu item will open the shares tab, but the shares tab doesn't load… hung on the overlay, no useful log messages or tracebacks in either CP or SD16:08
mmccgatox - share-indicator should have the code to use the new search_files stuff in u1-client, right16:08
mmcc?16:08
gatox_lunchmmcc, no, this part doesn't depend on that16:09
mmccgatox_lunch - ok, so the share-indicator branch doesn't contain the changes from search-shared-files, I see…16:12
gatox_lunchmmcc, aaja16:12
mmccwhich might be why the shares tab doesn't load when I'm testing share-indicator… although I expect it to still work, since it was doing file scanning itself before you switched to the new api…16:14
mmccanyway, I'll look at it. sorry to bug you during lunch16:14
gatox_lunchmmcc, no problem..... let me know if you find something16:17
=== gatox_lunch is now known as gatox
mmccoh this is frustrating. last time I quit U1CP on windows, it left the python icon in the taskbar. when I started it up again, it didn't put a new one in, and the old one doesn't work. and using the systray menu to bring up the CP window worked once but now it doesn't work16:21
briancurtinwindows sucks16:21
karni+116:21
karni:P heheh16:21
mmccoh it was minimized or whatever? there's some real mismatch between how windows works and how I expect it to work16:22
mmccI'm sure some of this is just me not knowing what it's supposed to be doing16:22
karnimmcc: I appreciate you guys do this (so that we don't have to do it ;P)16:22
briancurtinah, windows is bad about knowing when to clear out taskbar icons of closed/crashed/etc applications16:22
briancurtini'll look in there and it'll have 10 U1 icons16:22
mmcckarni - "you guys". the irony here is that I'm the Mac guy. :}16:25
mmccI was about to say "it even says that in my job title", but it actually says "Mac/Win", so there you are16:27
karnimmcc: ha ;D (I am aware youre the 'Mac guy', still, you're helping out with Windows. Or it looks like so ;) )16:28
mmccbriancurtin - I'm seeing the thing where it's disconnected when it starts up. and the thing where the account info doesn't load, and when you minimize it to the taskbar and then re-show it, it tries to connect (?!)16:29
mmcclots of fun on windows today16:30
briancurtinyeah the whole thing is just a ton of fun16:31
mmcchappy fun windows (do not taunt, etc. etc.)16:31
briancurtinahhah16:31
briancurtini guess this is all failing due to IPC16:35
mmcckind of looks like syncdaemon is not getting the credentials found signal16:37
mmccIPC, sigh16:37
mmccno, I guess it got the creds ,since it pushes the USER_CONNECT event… but SD hangs at state='with user not network'16:42
mmcclooks like two different parts of the code are concurrently trying to popen ubuntu-sso-login16:47
mmccand the last call to interaction_interfaces's connect() appears to have autoconnecting=False, even though my settings show that it should be true… (unless I'm misunderstanding that argument's meaning16:51
mmcc)16:51
mmccbrb, have to watch the kid for a minute16:51
mmccbriancurtin, so when I start syncdaemon first in a separate console, it doesn't complain, and CP seems to be respecting the auto-connect setting17:22
briancurtinhm, let me try that17:23
mmcc - but it only gets to 'file sync starting' - it doesn't make it to idle17:23
mmccyeah, controlpanel.backend.connect_files doesn't appear to be returning17:26
briancurtinnice17:29
briancurtinyeah i see the same thing here, file sync starting17:29
karniI'll run an errand, afk maybe 30"17:30
mmccsame issue, calling credentials.CredentialsManagementTool().login() from request_token is just returning a deferred that I guess is never firing17:33
mmccalthough if you put a print after the line in interaction_interfaces in connect(), where it says token=yield self._request_token, it will get called once when you start syncdaemon, but *not* when you then later start CP17:35
mmccno, now I'm not sure that's true17:37
mmccyeah, that wasn't it17:38
mmccit does get the right token from _request_token both times17:38
briancurtini'm looking back through revisions to see when this stuff might've changed. this was working early last week17:38
dobeyhrmm17:41
mmccgotta love how all the comments in ipc_service.py reference dbus17:48
mmccI'm getting a hunch that we are registering for signals incorrectly in ipc_service.py (in ubuntuone/platform/credentials) but I don't really understand what's going on in RemovableSignal, which we're calling with the signal name 'on_credentials_found_cb', and grepping for that in all the projects doesn't give any useful results18:04
mmcctrying a little instrumentation to see what's going on there18:11
mmccit looks like we're registering for 'on_credentials_found_cb', and sso is sending 'CredentialsFound'18:13
mmccthere's a mapping between the two in ipc_service.py, but it's not clear why18:13
briancurtinis that affecting mac as well, or is this only on windows?18:13
mmccthat is, a mapping from CredentialsFound (and similar) to 'on_credentials_found_cb' and similar18:13
mmccbriancurtin only windows, afaict. that's a big WTF, for sure.18:14
mmccA difference is that we're using unix sockets on mac, and tcp on windows, so maybe there's something different about how it handles multiple connections that makes it work on macs despite this18:15
gatoxdobey, i just answered to your need info18:15
dobeyok18:17
mmccwhoops, have to go for lunch now.18:19
* briancurtin back in a bit18:29
dobeyhave to run for a few, brb18:33
karniWas slighly longer. Will make it up now.18:39
dobeyhey karni19:17
karnihi dobey19:17
gatoxback..... little internet issue19:29
dobeygatox: and we are not showing the newly accepted shares in there at all are we?19:38
gatoxdobey, no..... i suggested that..... but it was decided that doing that seems to be adding a feature just to fill the space.... and it's true19:39
gatoxso it was decided to not do tha19:39
gatoxthat19:39
dobeywell that's good at least; having that in 2 places would be weird19:40
dobeymeh; between uds and holidays, finding the right people to talk to about some things isn't exactly easy :-/19:41
gatoxdobey, if you have any question about this..... ask me.... maybe i can help you.... my last branches in particular are based in a lot of stuff we have been discusing lately19:42
dobeyi have some questions about launchpad/bzr; was writing an awesome script to make my life easier, but i guess i'll have to make stable branches the hard way for now :-/19:44
gatoxahh19:45
dobeyi guess i still have some questions about your branch (and i guess, the indicator menu in general)19:46
gatoxdobey, shoot19:47
dobeygatox: what happens if a user clicks on that "share a file" entry, and control panel is already running (and is behind a bunch of firefox windows or something)?19:48
gatoxdobey, in the u1-client or the control panel implementation?19:51
gatoxdobey, basically..... is going to do the same as it does when you choose the "open ubuntu one" optoin...... but moving the current tab to the "share" tab19:51
dobeywell i imagine it will be less problematic in the control panel implementation.19:52
dobeygatox: yes, but my question is about when cp is already open19:52
dobeygatox: in which case it seems the desired behavior is broken19:53
gatoxdobey, on linux at least..... it just shows the icon in the launcher jumping to notify that the application is trying to request the focus19:53
dobeygatox: not here it doesn't (quantal)19:54
gatoxdobey, mmm.... i'm in quantal too19:54
dobeyi get no shaking icon19:55
gatoxahhhh right..... for the open ubuntu one.... i get the icon..... for share a file the application just popup to the front19:56
dobeysee bug #106392719:56
ubot5Launchpad bug 1063927 in Ubuntu One Client ""Open U1" menu item should restore a minimized U1 control panel" [Undecided,New] https://launchpad.net/bugs/106392719:56
dobeygatox: i don't get the icon doing anything special, for either case19:57
dobeythe window does get raised (if it's not minimized) though; however, it doesn't have focus19:57
dobeynot sure how/why that is, but we should fix it19:58
gatoxdobey, either way..... i think that is not related to this branch....... we should fix that in the part from control panel or whatever where the process is spawned19:58
mmccbriancurtin, any new news on that windows IPC issue?19:58
gatoxdobey, i mean..... the one which receive the call19:59
briancurtinmmcc: none from my end, im working on getting SD tests fixed up at the moment19:59
mmccbriancurtin ok, I'll keep poking then. will let you know if I learn anything useful19:59
dobeygatox: even so, there is no way to fix the --switch-to case, without making the control panel a service19:59
gatoxdobey, mmh20:00
briancurtindumb bzr question: how can i tell what revision i'm currently at? all i can tell right now is that im not at the tip20:00
briancurtinoh there we go, bzr revno20:00
gatoxdobey, yes....20:00
dobeygatox: this will also be an issue on mac, where the menu will be a separate process, and not part of cp20:00
mmccdobey - right, but we're going to have to use a separate mechanism to bring cp to the front, and I'm not sure yet how to handle showing the shares tab20:01
gatoxdobey, wait..... which branch are you reviewing..... the one from u1-client is only valid for linux20:01
mmccer, that is - dobey is right, *and* it's my problem, not gatox's :)20:02
dobeymmcc: the mechanism isn't just "run the control panel" like it is in this code?20:02
briancurtinha, well either bzr revno is wrong or my tree is wrong...so rm -Rf i guess20:02
gatoxdobey, for this branch: https://code.launchpad.net/~diegosarmentero/ubuntuone-client/menu-new-options/+merge/132106 the behavior is only valid for linux..... because that is to interact with the sync menu indicator..... which we only have on Ubuntu20:03
dobeygatox: no, the behavior is supposed to be the same across all the menu implementations (which we now have to have 3 of, which also sucks)20:03
mmccbriancurtin - comparing bzr revno to the trunk revno is problematic… can be higher than trunk revno if you have lots of local commits20:04
gatoxdobey, no, because the other menu implementations are in the control panel, the one in u1-client is just for ubuntu20:04
briancurtinmmcc: i'm just going backward from trunk with no changes at all. i thought i was on 1350, it claimed 1355, now i have no idea. whatever, bzr is awful.20:04
gatoxdobey, because the other one is using qt..... which we don't have in u1-client20:04
mmccbriancurtin bzr qlog  is probably your friend here. revnos are not usually helpful IMO20:04
dobeygatox: no, the mac menu won't be the cp --with-icon thing. mmcc has written a proper menu with pyobjc for mac.20:06
gatoxdobey, that is because on linux we have u1-client running all the time...... and on windows/mac we have also the u1-cp running all the time..... and in those platforms, cp is the one who adds the syncmenu20:06
mmccdobey: causing CP to run / come to the front is basically "run CP", but making it do that, then open the share tab, even if it's already running, is not easy. I can't do what he's doing in open_share_tab, because I'm in a different process…20:06
gatoxdobey, ah yes....... but i don't see how is that related to this20:06
mmccgatox  -well, for one, we won't have CP running all the time any more20:07
mmccon osx20:07
dobeymmcc: what he's doing in open_share_tab is running "ubuntuone-control-panel-qt --switch-to share_links"20:07
gatoxmmcc, you can do what i do on u1-client..... spawn the u1-cp process with: --switch-to tab-share20:07
dobeymmcc: the problem is that argument is ignored in cp, if it's already running20:07
gatoxmmcc, sorry..... share_links20:07
mmccI must be looking at a different branch…20:07
briancurtinooh, qlog is nice20:07
* dobey does wish this one branch was 2 branches instead20:08
mmccI was looking at this: ~diegosarmentero/ubuntuone-control-panel/share-indicator20:08
gatoxmmcc, dobey is talking about this one: https://code.launchpad.net/~diegosarmentero/ubuntuone-client/menu-new-options/+merge/13210620:08
mmccoh20:08
mmccso yeah, what happens when you do that and cp is already running? …20:10
mmccalso, not new in that branch, but open_go_to_web has "Ubuntu" misspelled in its docstring :)20:11
dobeybasically, not the desired thing :)20:11
mmccright…20:11
dobeyso it does20:11
gatoxdobey, ahhhhh now i see what you mean... the problem wasn't if it opens or don't u1..... the problem was that it doesn't change to the propre tab20:12
gatoxdobey, i wasn't understand what you mean20:12
dobeygatox: it doesn't change to the tab; nor does the window grab focus20:12
gatoxdobey, well..... in my case doesn't grab focus..... but the icon in the launcher get highlighted, and in awn start jumping20:13
dobeygatox: well, it's supposed to grab focus. if it's not already running, then the right thing happens, and the window has focus20:13
karnirockstar: Do you also have shuffle play in iOS music app? I just realized the "prev" button in case of shuffle enabled doesn't do the job well.20:14
karnirockstar: If you do, how do you approach it? Randomizing a list of songs? I try to keep as little in memory as possible. Even my play queue is persisted and queried (SQLite) only on demand.20:14
gatoxdobey, ok..... but the place to fix that wouldn't be u1-cp?20:14
rockstarkarni, trunk might, but this 2.0 branch doesn't currently.20:14
karnirockstar: trunk - whatever is on App Store?20:15
karniurbanape: Hi hi!20:15
karniurbanape: Do you also have shuffle play in iOS music app? I just realized the "prev" button in case of shuffle enabled doesn't do the job well.20:15
dobeygatox: well i don't think the tab not switching is fixable in just u1-cp at least20:15
karniurbanape: If you do, how do you approach it? Randomizing a list of songs? I try to keep as little in memory as possible. Even my play queue is persisted and queried (SQLite) only on demand.20:15
dobeygatox: admittedly i don't know that code all that well either20:16
rockstarkarni, yes. I'd check, but i have my current branch on my phone, so it would require deleting that first.20:16
dobeygatox: also, i'm not really sure we should have these things in the menus20:17
dobeygatox: also also, one can't share a file, anyway. one can only share folders :)20:17
karnirockstar: Whenever/if you have time. I'm actually more interested how that's solved than if it is in the app at all (if it is) :) If you know what I mean.20:17
rockstarkarni, as I recall from the web player, a good shuffle is relatively non-trivial.20:17
karnirockstar: I'll try to grap urbanape.20:17
dobeyso there is some language issues i think we need to take up with design20:17
karnirockstar: Indeed.20:17
urbanapekarni: I'm heading out just now, but I'll be back later tonight20:18
karniurbanape: Ah cool! no problem :)20:18
karniTalk to you then.20:18
rockstarBasically, you'd have to keep track of the songs that you've played, in the order, and when it chooses another random song, it needs to ensure that the song it picked hasn't played until they've all played.20:18
gatoxdobey, well....... share a file..... technically will be "publish a file"..... but....... for that...... and include or not include that in the menu we should talk with someone from the design team....... did you take a look at the document i mentioned? where it specifies what the menu should have and do?20:18
dobeyi did20:19
dobeybut it doesn't mean the design itself doesn't need a bit more review :)20:19
gatoxdobey, yes....... i understand...... so....... are you suggesting to freeze this until we have roberto or alecuu here to discuss it further?20:20
dobeyalso that doc doesn't really say anything about *why* the various things need to be there20:20
dobeyjust that they should be there20:20
gatoxdobey, all the documents i got from design are like that :P20:21
dobey:(20:21
gatoxdobey, ok.......  do you want to freeze this to discuss it with the rest of the team later and take a well informed decision?20:22
mmcchrm. "later" is kind of far off, you're basically saying "London"…20:22
dobeywell there are things that need fixing otherwise too, i think20:22
mmccI'm going to have to make some choices for the mac menu sooner than that20:23
gatoxyes..... later is really far away20:23
dobeymmcc: well, there's tomorrow; i don't think all of design are on vacation, or in .dk20:23
gatoxdobey, yes...... but at least lisette that was working on this is not in our team anymore20:24
mmccdobey, that's true. as for 'open control panel and switch to the share files tab', I am happy tabling that until London, since it'll need some CP changes I think20:24
gatoxdobey, ok....... we can try to start pinging people tomorrow..... let me know when you are here..... i'll be earlier20:25
gatox'll be here earlier20:25
dobeyi'll probably just e-mail20:25
gatoxdobey, can you cc me?20:25
dobeyyes20:25
gatoxdobey, thx20:26
mmccme too, please…20:26
gatoxdobey, i don't have any problem if it is decided that this shouldn't be included..... but..... i did it because it was in the document, and was dicussed a couple of time that it should be done after the freeze.... that's why20:26
mmccgatox, what else is on your plate now? Are you familiar with the Windows IPC stuff? can you see how things are working for you in windows land - see if you get similar problems with trunk to what brian and I have been seeing?20:26
gatoxmmcc, nothing major here....... so i can take a look at that....... probably tomorrow because i already pass my eod here....... it would be very helpful if you or briancurtin can sent me an short email telling me which are the problems..... i'm familiar with the ipc part so i can try to figure it out if i know what i should be looking for20:28
mmccgatox, ok. here's the email: "running control panel from source hangs on the loading overlay at various places. most recently in the shares tab, for me."20:29
mmccI will send more details when I'm done poking at it today20:29
gatoxmmcc, awesome, thx!! i'll start looking at that first time tomorrow.... if you find any other thing please send me an email20:30
gatoxok..... eod here! i'll specting some emails tomorrow from you :D20:30
gatoxbyeeeeeee20:30
mmccok, thanks gatox :) bye20:30
mmccI wonder if this is related to the problem mandel had to hack around on osx with the 'credentials found' signal not being sent when you first log in -- there are apparently a few different ways that we're returning results in IPC calls - sometimes via signals, sometimes via return values…20:41
briancurtinam i missing something or does this change look to be fairly harmless? http://bazaar.launchpad.net/~ubuntuone-control-tower/ubuntuone-client/trunk/revision/1351 - this is where the tests picked up 110 failures20:42
karnirockstar: Right. I'll tell you what my problem is. First of all, I don't want to do the shuffle in memory. So I flag the songs which have been already played, and pick the next random one from the rest.20:44
karnirockstar: As you can see, it's easy to pick the next random one, but I'd have to track the previous one as well, so that you can hit "prev".20:44
karnirockstar: SO, I can use this column that I have, shuffle_order, which contains random ints, and sorting by it would give me the order of the queue.20:45
rockstarWhat if they hit "prev" twice, or three times?20:45
karnirockstar: Even worse. No way. But listen up.20:45
mmccbriancurtin, yeah, that seems very harmless… hm20:46
karnirockstar: The problem/disadventage is that if the user hits "shuffle" I should update that column for all tracks on that list, which would be equivalent of doing something like Collections.shuffle(playQueue) on the playQueue (in memory).20:46
rockstarYeah, I think that's the solution you want.20:46
karnirockstar: So, if I want prev/next, I think it's either in memory solution (easier, but more memory), or update that shuffle_order column (slighly more complex, but memory efficient).20:47
mmccbriancurtin - what are the failures that's causing?20:47
karnirockstar: Yeah.. k, I wanted a sanity check. Thanks.20:47
briancurtinmmcc: they're all in test.platform.test_tools. no real indication of whats happening except that the defer never fires, or something..."still running at 5.0 secs"20:48
mmccbriancurtin oh yeah, I saw those too20:48
mmccso if you revert that change, everything's OK? whoa20:48
briancurtinmmcc: yep, going back to the previous revision, everything's cool20:49
mmccbriancurtin weird.20:51
mmcckind of does seem like the network manager should be mocked out for tests though. It's spawning threads for each of these tests, and doesn't need to20:54
mmccnot sure why that's changed though20:55
mmccI mean, why that rev would change things20:55
mmccbriancurtin - fwiw, the corresponding changes in sso are here: https://code.launchpad.net/~dobey/ubuntu-sso-client/lint-roller/+merge/13101620:56
briancurtinyeah i saw those, and made sure i have an up-to-date sso to match20:57
mmccwell, one thing is that networkstate/windows.py has its own internal definitions of ONLINE,OFFLINE,UNKNOWN still -- despite those being defined in networkstates now20:59
mmcc(that's my fault !)20:59
mmccso if the tests are comparing the return values of networkmanager anywhere to networkstates.ONLINE, for instance, it won't work as expected21:00
briancurtingood catch. hmm.21:00
mmccoh, not really totally my fault! I didn't create networkstates.py… I had plenty of missed chances to notice though :(21:02
dobeyhmm21:02
mmccok, I'm going back to looking at IPC. as usual, asking the question "how does this ever work?"21:03
briancurtini pushed that little networkstates branch at https://code.launchpad.net/~brian.curtin/ubuntu-sso-client/networkstates-update/+merge/132206 if anyone can do a super-small review21:18
briancurtini need to head out a bit early and pick up my girlfriend. i'll either come back later on or more likely start work earlier tomorrow21:19
mmccgood news - that windows networkstates branch also fixed the ipc errors I was seeing. I guess the problem must have been that it thought there was no network, so it decided it couldn't connect.22:00
karnimmcc: \o/22:00
mmccwe don't handle telling the user about that error condition very well (ie, not at all)22:00
dobeybriancurtin: lint issue in that branch :)22:06
briancurtindobey: just pushed a fix22:06
dobeygreat22:06
dobeyalright, need to get away from here for a bit. still need to send that e-mail though, so will be back later22:29
dobeylater22:29
briancurtinsee ya22:29
mmccok, I have to go carve a pumpkin before it gets dark. I'll be back later too…22:32
* karni triages an SQL update issue23:04
karniSomething's up with resolving playlist content, but I've temporarily worked it around using full (verbose) song URIs, which works.23:21
karniPremature optimization is the source of all evil, isn't it.23:21
* karni EODs, night all!23:24

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