/srv/irclogs.ubuntu.com/2013/11/26/#ubuntu-app-devel.txt

=== philipballew is now known as philip
=== chriadam is now known as chriadam|away
dholbachgood morning08:42
dpmmorning all08:44
mardydpm: hi! Do you think you can try the same .service experiment on the phone?08:45
dpmmorning mardy, sure. Was the result on the desktop what you were expecting?08:46
mardydpm: yes08:46
dpmcool08:46
dpmon it, testing it on the phone as soon as unity8 recovers :)08:47
=== dholbach_ is now known as dholbach
dpmmardy, good news: it works on the phone too :)08:53
dpmmardy, quite similar steps as on the desktop:08:53
dpm1. Deleted old Evernote account on system settings08:54
dpm2. Updated the .service file with the new API key08:54
dpm3. Added a new Evernote account on system settings08:54
dpm4. Started app, tapped on the account to authorize it08:54
dpm5. Got a prompt from system settings to authorize (Evernote's embedded login page)08:55
dpm6. The app resumed and communicated to the Evernote service, fetching notes as expected08:55
mardydpm: cool! Then I think that this is the way to go!08:56
mardydpm: then you should reduce the scopes (permissions) for the key in the .provider file08:56
dpmmardy, great. Time for a quick hangout? I'd like to understand what exactly we need to change both in the auth plugin and in the app itself (if we have to change anything in there at all)08:58
mardydpm: sure08:58
dpmthanks, let me set that up08:58
JamesTaitGood morning all; happy Shopping Reminder Day! :-D09:27
mzanettidpm: o/09:30
dpmmorning mzanetti!09:31
mzanettidpm: good morning09:31
mzanettidpm: do you think this is good enough for a start? https://code.launchpad.net/~mzanetti/reminders-app/html2enml/+merge/19661609:31
* dpm looks09:31
popeydpm:  mzanetti I tried evernote this morning, and signed into sandbox via the accounts plugin (but it didn't show in the list of accounts after I had authorised), and in reminders doesn't show my account in "select evernote account"09:32
mzanettipopey: hmm... that sounds like an issue with the accounts plugin09:33
popeypossibly, yes09:33
mzanettipopey: I don't know much about that yet tbh... Maybe mardy or cwayne can help you09:34
mardypopey: desktop of phone?09:37
popeyphone09:38
mardypopey: can you see the account with "account-console list"?09:38
popeyno09:38
popeybut I got an email from evernote09:39
popey"You have authorized Evernote app on Ubuntu to access your Evernote account with these permissions"09:39
dpmpopey, did you install both the authentication plugin package and the updated signon package from the PPA?09:39
* popey checks09:40
popeyah, not since updating.. drat09:40
popeyphew09:40
dpmmzanetti, your MP looks like the way to go to me for now. In the future though, we'll need to display images and tables, and I understand that the TextArea won't help us there. What do you think we should eventually do? Use a WebView?09:45
oSoMoNnerochiaro, hey, I updated https://code.launchpad.net/~osomon/notes-app/robust-test-server/+merge/196174 according to your suggestion09:49
nerochiarooSoMoN: ok, looking into it09:50
oSoMoNnerochiaro, thanks, after that one is merged, it would be good to request a release of notes-app, hopefully this will improve the test results in the QA dashboard09:52
popeydpm: mzanetti added ppa, re-authed and re-ran the app.. http://popey.com/~alan/phablet/device-2013-11-26-100108.png10:01
mzanettipopey: yep. this is known10:01
popeyah k10:01
mzanettipopey: it's on my todo to enable the accounts plugin fetching the account name10:02
mzanettipopey: should still work, just that the text is not there10:02
popeyoh, i didnt realiser there was actually an entry there10:02
mzanetti:)10:02
nerochiarooSoMoN: approved10:02
nerochiaroom26er: hello. seen my email ?10:03
oSoMoNnerochiaro, thanks10:04
popeymzanetti: http://popey.com/~alan/phablet/device-2013-11-26-100532.png10:13
popeynot showing the single note I have - "Getting Started"10:13
mzanettipopey: hmm... can you paste the debug output?10:13
popeymzanetti: https://pastebin.canonical.com/101046/10:15
popeyphablet@ubuntu-phablet:~$ account-console list10:15
popeyaccount: id 4, enabled, provider: evernote10:15
om26ernerochiaro, right, so I think you might need to talk to vruiz on how they are using autopilot to test webapps.10:22
nerochiaroom26er: it's not a webapp problem. it's a very plain QML problem: how do you access in autopilot a component instantance when this instance is dynamically created by a 3rd party component you don't control10:28
nerochiaroom26er: if i had autopilot vis working and not crashing I would probably be able to just go through the tree and find it and then figure out a way to do the same from the test code.10:29
nerochiaroom26er: but vis is currently broken, so i can't do that10:29
dpmpopey, could you review https://code.launchpad.net/~dpm/reminders-app/fix-dependencies/+merge/196696 ? It should fix the issue you had earlier on whereby you had to install the dependencies for authentication manually11:31
popeysure11:31
dpmsuper, thanks11:32
=== _salem is now known as salem_
nerochiaro_om26er: mzanetti: any news on that saucy vesrsion of AP that will allow me to run tests using ubuntuuitoolkit on the desktop ?12:11
om26ernerochiaro_, isnt that the case already12:13
nerochiaro_om26er: i'm updating now, didn't notice there was a release. i'll let you know in a miniute12:16
dpmpopey, did you have any luck getting the notes displayed? Looking at the log, it seems authentication with the service worked, but not the actual notes fetching12:20
popeydpm: nope12:21
dpmpopey, which branch are you using?12:23
popeyi was using the mzanetti branch with the script in12:23
nerochiaro_om26er: no, it's not working. ubuntu-ui-toolkit-autopilot needs python-autopilot > 1.4, but python-autopilot > 1.4 isn't compatible with libautopilot-qt which is also needed. I can't have both installed. so I can't install ubunut-ui-toolkit-autopilot12:23
popeybrb -> post office12:23
nerochiaro_om26er: i mentioned this yesterday already, with mzanetti too12:24
nerochiaro_who's working on it ?12:24
* mzanetti is not12:25
=== MacSlow_ is now known as MacSlow|lunch
nerochiaro_om26er: are you working on it or planning to ?12:29
=== MacSlow is now known as MacSlow|lunch
om26ernerochiaro_, right, I left a bit early yesterday. Will take that to autopilot devs today. Can you file a bug for the packaging issue so that we can track12:41
popeydpm: should I have used a differnt branch?12:43
nerochiaro_om26er: ok, against what package in lp ?12:46
om26ernerochiaro_, report for upstream autopilot-qt12:46
om26ernerochiaro_, https://bugs.launchpad.net/autopilot-qt/+filebug12:46
dpmpopey, no, that one should have worked already (or at least worked for me when I tried), it's just that in the latest tests I did, I locally merged all pending branches. Let me try again with a clean checkout of the same branch you're using12:47
popeydpm: i wiped my phone to #31 so will need to re-setup to test again later12:47
nerochiaro_om26er: https://bugs.launchpad.net/autopilot-qt/+bug/1255077 let me know if you need more info12:50
ubot2Launchpad bug 1255077 in Autopilot Qt Support "Dependency conflict for ubuntu-ui-toolkit-autopilot on Saucy" [Undecided,New]12:50
JamesTaitWhat's the "proper" name for the Ubuntu OS on touch-enabled devices, the one we released last month?  Is it still Ubuntu Touch, or is it Ubuntu for Phones now?  Or is it something else that I missed?12:50
popeyboth12:51
popeyWe still call it Ubuntu Touch all over the wiki and in various other places.12:51
popeybut the website calls it "Ubuntu for phones" (not "Ubuntu for Phones")12:52
JamesTaitHrm, the capitalisation aspect introduces another variable I hadn't taken account of - with a capital P it looks like a formal brand ("Ubuntu for Phones"), but with a lower-case p it looks more like a qualifier ("Ubuntu" for phones).12:54
JamesTaitI'll stick with Ubuntu Touch for now, I think.12:54
nerochiaro_om26er: also any news on how to interact with other apps in AP integration tests ? interact in the sense of finding a button in the other app's tree and clicking it12:57
om26ernerochiaro_, sorry missed that. I was working on that on friday but got distracted with other work. I can give you a sample by the end of day12:58
nerochiaro_om26er: thank you,that would help a lot12:58
=== MacSlow|lunch is now known as MacSlow
=== ara is now known as Guest1754
rickspencer3Kaleo, hey, do you know someone who can help me with animating transition inside of a listview?13:32
rickspencer3I have a listview item that expands by loading a component inline13:32
rickspencer3and I can't figure out how to tell the items in the listview to animate their transition13:32
Kaleorickspencer3, nerochiaro_ has some experience with it I believe13:32
rickspencer3they don't seem to get onYChanged13:32
Kaleorickspencer3, though Saviq is probably the master :)13:32
rickspencer3and Behvior on y doesn't do anything either :/13:33
Kaleoah13:33
rickspencer3hey Saviq thoughts?13:33
Kaleorickspencer3, do you have a code sample?13:33
Saviqrickspencer3, what are you after?13:33
Saviqrickspencer3, we've an Expandable coming into the SDK soon https://code.launchpad.net/~mzanetti/ubuntu-ui-toolkit/expanding-listitem/+merge/19560213:34
Saviqrickspencer3, which implements the expansion pattern https://docs.google.com/a/canonical.com/document/d/1_c4029C6Jwll_ng8gqp3SRnF4DgXRA3tR_LL3J-zOD8/edit13:34
rickspencer3mu listview starts at line 22313:34
rickspencer3http://bazaar.launchpad.net/~rick-rickspencer3/+junk/DCBusit/view/head:/DCBusit.qml13:34
rickspencer3Saviq, ok, so the expansion pattern is what I am after13:35
rickspencer3but when it expands, I can't make the items animate13:35
rickspencer3so it's not smooth at all13:35
rickspencer3just BAM13:35
mzanetti:)13:35
Saviqrickspencer3, you just need a Behavior on height of the item that expands13:35
nerochiaro_rickspencer3: what Saviq said13:36
* rickspencer3 tries13:36
=== ara_ is now known as ara
=== ara is now known as Guest55288
rickspencer3Saviq, nerochiaro_ ok, closer13:37
rickspencer3!13:37
rickspencer3the problem is that the other list items don't move at the same rate, and there are some weird overlaps13:37
rickspencer3should I just tweak the duration of the PropertyAnimation?13:37
Saviqrickspencer3, weird, something else must influence it13:38
Saviqrickspencer3, by default a ListView would just push other items down all in concert13:39
rickspencer3Saviq, well, I think the items moving out of the way must have some default animation13:39
rickspencer3like a NumberAnimation13:39
rickspencer3they are columns though13:39
Saviqrickspencer3, they don't, it's all driven by the height of the expanding one13:39
rickspencer3oh, I see what's happening13:39
Saviqrickspencer3, ListView just stacks items on top of one another13:39
rickspencer3Saviq, so the height changes several times13:39
Saviqrickspencer3, so if one of them grows, the rest are pushed down13:40
rickspencer3like once when it loads the image and then again when it loads the label13:40
rickspencer3so I just need to figure out how to set the height only once in the component13:40
Saviqrickspencer3, that's possible, yes13:40
mzanettiI think it's the missing clipping on the column13:40
rickspencer3Saviq, well, I slowed it way down and I can see what's happening13:40
Saviqrickspencer3, you can also use SmoothedAnimation on the height, that should deal ~ nicely with multiple height changes13:40
* rickspencer3 tries13:41
Saviqrickspencer3, and what mzanetti said - you need clip: true on the item13:41
mzanettirickspencer3: wrap the Column into an Item, set clip: true on that item and make it height: column.height13:41
rickspencer3hey!13:41
rickspencer3now we're talking13:41
Saviqmzanetti, that shouldn't be necessary, why wouldn't you just apply a Behavior directly on the column?13:41
Saviqmzanetti, and clipping, too?13:42
Saviqrickspencer3, btw, there's a *lot* of indentation going on there, you should think of splitting stuff into smaller chunks13:42
rickspencer3the clip: true did it, i think13:42
rickspencer3Saviq, can you explain more?13:42
rickspencer3oh, in my code, you mean?13:43
rickspencer3yeah, I'll refactor it into comonents13:43
rickspencer3components13:43
Saviqrickspencer3, yeah, that13:43
rickspencer3I've just totally reworked the UI based on some design feedback13:43
mzanettiah right... the wrapping might indeed not be necessary13:43
rickspencer3so, it's all over the place now13:43
Saviqrickspencer3, about tr.i18n().replace13:43
rickspencer3mzanetti, it was the clipping ;)13:43
* rickspencer3 braces13:44
Saviqrickspencer3, Qt's way is "%1 %2".arg('one').arg('two')13:44
=== Guest55288 is now known as ara_
mzanettirickspencer3: you would be welcome to use the expanding listitems branch and give some feedback13:44
rickspencer3mzanetti, well, my code is working, but if you want me to try it out, I will13:44
Saviqrickspencer3, predictionsList.model[index]["RouteID"] should be unnecessary, just "RouteID" should be available, assuming the model exposes that as a role13:45
Saviqrickspencer3, so:13:46
Saviqi18n.tr("{{t}} minutes  until bus {{rt}} to {{dir}} in ").replace("{{rt}}",predictionsList.model[index]["RouteID"]).replace("{{dir}}",predictionsList.model[index]["DirectionText"]).replace("{{t}}", predictionsList.model[index]["Minutes"])13:46
Saviqshould be:13:46
mzanettirickspencer3: it also adds some convenience stuff. like make the item scrollable if the expanded height is too big to fit one the screen, scroll it into the visible area on expansion etc. So if you face such issues you know where you find the fixes :)13:46
rickspencer3mzanetti, maybe I'll try it later13:47
Saviqi18n.tr("%1 minute until bus %2 to %3 in ").arg(Minutes).arg(RouteID).arg(DirectionText)13:47
rickspencer3after I reconstitute the rest of my app13:47
rickspencer3Saviq, cool, thanks13:47
rickspencer3Saviq, is there a replace() in there/13:48
rickspencer3?13:48
Saviqrickspencer3, no need13:48
rickspencer3coolio13:48
Saviqrickspencer3, .arg() replaces %1 etc. with its argument13:48
rickspencer3yeah, I get it13:48
rickspencer3weird, but cool13:48
rickspencer3:)13:48
rickspencer3every environment has it's own system for this, not sure that any has really improved on C that much ;)13:49
Saviqrickspencer3, also, you should use the plural variant of i18n13:49
rickspencer3what is the plural variant?13:49
Saviqrickspencer3, i.e. i18n.tr("%1 minute...", "%1 minutes...", Minutes).arg(Minutes)...13:49
Saviqrickspencer3, which will display "1 minute...", but "2 minutes..."13:50
rickspencer3wow, that looks nicely complicated lol13:50
rickspencer3I'll give that a try13:50
rickspencer3maybe write a little post about it13:50
Saviqrickspencer3, it doesn't when you try to do that in Polish ;)13:50
rickspencer3hehe13:50
Saviqrickspencer3, we have three different versions ;)13:50
rickspencer3nice13:51
Saviqrickspencer3, singular, then 2-4, then 5-1013:51
Saviqrickspencer3, so no amount of concatenation of "minute" + "s" works for us :)13:51
rickspencer3Saviq, Poles don't count past 10?13:51
rickspencer3lol13:51
Saviqrickspencer3, nah, it's just "lots" by then13:51
rickspencer3:)13:51
Saviqrickspencer3, here's the rule:13:52
Saviqnplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);13:52
Saviq;)13:52
Saviqrickspencer3, and if you want to look at them, here's the set for different languages http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html13:53
rickspencer3Saviq, I'll just use your suggestions13:53
Saviqrickspencer3, sure :)13:53
rickspencer3anyway, thanks for your help you guys13:53
rickspencer3I just need to clean up the code and add a few features back, and I have a nicer version13:54
rickspencer3:)13:54
dpmpopey, try to pull from reminders-app trunk now: a bunch of branches have landed, see if it improves things14:10
popeydpm: will do when I get back, need to go afk for a bit. need to finish dogfooding14:11
dpmack14:11
=== ara_ is now known as ara
dpmhi nik90, around? Just a quick question: is there anything blocking the alarms feature in the clock app right now from the qt eds plugin side of things?15:11
randomcppCan anyone give me some hints with Ubuntu.Content? I'm trying the sample in the docs and after selecting the photos the app freezes/goes blank without a reason15:31
dpmkenvandine, perhaps? ^15:32
kenvandinerandomcpp, i can try?15:33
kenvandinerandomcpp, is this on the device or your desktop?15:33
randomcppon device15:33
randomcppon desktop Ubuntu.Content does nothing15:33
kenvandineand what kind of content are you requesting?15:33
kenvandinerandomcpp, it can, if you run it right :)15:33
kenvandinebut easier on the device15:33
randomcpphttp://paste.ubuntu.com/6479511/15:34
randomcppignore qtlocation15:34
kenvandinerandomcpp, and how are you running your app? starting it from unity8?15:35
randomcppctrl+f12 from qtcreator :|15:35
kenvandinezsombi, do you know if that runs it with all the right APP_ID info?15:36
kenvandineor anyone from the sdk team? ^^15:36
kenvandinerandomcpp, for the content hub to work, it really relies on the environment click provides15:37
kenvandinewe need to make sure that works when run from qtcreator15:37
zsombikenvandine: eventually Kaleo might know, it wasn't made by us, haven't checked what it requires to get it working...15:37
kenvandinebut i haven't tried myself15:37
kenvandineah15:37
kenvandineKaleo, ^^15:37
kenvandinei know he is a bit stuck atm :)15:37
randomcppI try creating a click pkg with content_exchange policy15:38
kenvandinegood15:38
kenvandinethat is going to be more reliable15:38
KaleoI cannot help now trusty laptop broken15:38
kenvandineimo qtcreator should do that to run with ctrl+f1215:38
kenvandineKaleo, i heard... sorry :/15:39
randomcppkenvandine, ok with "Install application on device" seems to work15:48
randomcpphow can I uninstall click pkgs now? :)15:53
kenvandinewith pkcon15:58
kenvandinerandomcpp, i don't recall exactly atm15:59
kenvandinepkcon remove APP_PKG_ID15:59
kenvandinemaybe15:59
randomcpp:/16:03
randomcppkenvandine, do you knows how to read debug outputs when an app is running on device?16:28
nik90dpm: nothing from the clock side..just the qt eds plugin side of things16:44
nik90dpm: actually more specifically the indicator-datetime package16:44
kenvandinerandomcpp, look in ~/.cache/upstart for logs16:52
kenvandinerandomcpp, the log file will be application-click-APP_ID16:52
randomcpphere they are, thank you kenvandine :)16:53
kenvandinerandomcpp, np17:01
mzanettidpm: what is the copyright to be used in reminders-app? GPLv3 Canonical Ltd.?17:08
=== greyback is now known as greyback|away
dpmmzanetti, exactly17:46
mzanettidpm: https://code.launchpad.net/~mzanetti/reminders-app/fix-copyright-headers/+merge/19675717:47
mzanettidpm: tbh I haven't really ever seen a bash script with a copyright header17:47
dpm:)17:48
dpmpopey, mzanetti, could one of you review and top-approve if everything is ok? https://code.launchpad.net/~dpm/reminders-app/fix-dependencies/+merge/19669617:54
mzanettidpm: done. I was just waiting for jenkins to give green light17:54
dpmexcellent, thanks!18:00
mzanettidpm: I'm trying to reenable ssl. which lib did you install to get away with the unresolved symbol GENERAL_NAME_free?18:11
dpmmzanetti, I didn't install any particular library, I had to add explicit includes to libssl, which was a bit weird, since I think they're redundant. Let me check the commit where I added them to see where they were added18:12
dpmmzanetti, http://bazaar.launchpad.net/~dpm/reminders-app/evernote-api-plugin/revision/518:14
mzanettidpm: hmm... that's in here but I still get the failure18:14
dpmmzanetti, I guess you've taken trunk and started by setting use_SSL to true ?18:20
mzanettidpm: yep18:20
* dpm tries that18:20
mzanettidpm: in notesstore.cpp, not userstore.cpp18:20
mzanettibut shouldn't make a difference with this error18:21
dpmindeed, but notesstore.cpp is the one I was looking at in any case18:21
dpmhm, getting the same error now: ""Evernote": Cannot load library /home/dpm/dev/coreapps/build-reminders-app-Desktop-Debug/src/plugin/Evernote/libevernoteplugin.so: (/home/dpm/dev/coreapps/build-reminders-app-Desktop-Debug/src/plugin/Evernote/libevernoteplugin.so: undefined symbol: GENERAL_NAME_free)""18:23
dpmmzanetti, this won't solve the "undefined symbol" error, but it might offer a way to getting SSL to work (right now we seem to be having the same "SSL_connect: certificate verify failed" as them) http://discussion.evernote.com/topic/39169-userstore-connecting-error-ssl-connect-certificate-verify-failed/?p=21278518:43
dpmin any case, one thing that we seem to be missing is the loading of the trusted certificates: https://github.com/apache/thrift/blob/master/lib/cpp/README.SSL#L2618:44
mzanettiI see18:45
dpmmzanetti, I've filed bug 1255234 with some more background after digging a bit deeper. I'm not an expert on SSL, but I think this might point us in the right direction19:00
ubot2Launchpad bug 1255234 in Ubuntu Reminders app "[Evernote plugin] Enable SSL communication with the Evernote service" [High,Triaged] https://launchpad.net/bugs/125523419:00
mzanettidpm: cool. I'm still stuck at the linking :/19:00
mzanettidpm: according to some folrum threads I think the onnection drops might go away once we use ssl19:01
dpmmzanetti, yeah, this bug with the undefined symbol is extremely annoying, I've no idea what to look at :/19:01
dpmthat sounds promising19:01
=== salem_ is now known as _salem
randomcppwhy is http://developer.ubuntu.com/api/qml/sdk-1.0/Ubuntu.Content.ContentItem/#name-prop always empty?20:58
randomcppurl isn't empty, but it's an object without properties or functions20:59
randomcpppopey, ping xD22:31
popeyrandomcpp: yo22:31
randomcppthat package I've uploaded doesn't work22:32
popeyoh?22:32
randomcppor better, it works, but it has a bug22:32
popeythats unfortunate ☻22:32
randomcppyeah I know..I'm wasting a lot of time because of it22:32
randomcppbecause Ubuntu.Content copy the files I request in a .cache directory22:33
randomcppbut those file are deleted eventually22:33
randomcppso I need to copy (move doesn't work) the contents to .local/share/<pkgname>/ dir22:34
randomcppto have them accessible the next time22:35
randomcppI'm thus creating a armhf chroot22:35
randomcppand it takes ages to download all the packaged22:35
randomcpppackages*22:35
randomcpppopey, should I remove accounts and sharing features?22:45
popeypersonally I would, I expect that infrastructure to change this cycle22:45
randomcppook22:45
randomcpppopey, do you have some knowledge of Ubuntu.Content23:14
randomcpp?23:14
popeynope23:14
randomcppor at least how it works23:14
randomcppbecause I can choose pictures, but then I can't do anything with them,23:15
randomcpponly show them in the app, as long as they are saved in .cache folder23:15
randomcppok goodnight popey :)23:20

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