/srv/irclogs.ubuntu.com/2015/02/03/#ubuntu-app-devel.txt

=== chriadam|away is now known as chriadam
=== _salem is now known as salem_
=== salem_ is now known as _salem
diego7319hi02:46
diego7319developer tools are not installed.02:50
diego7319i cant run touch emulator because that02:50
=== chihchun_afk is now known as chihchun
dholbachgood morning08:20
AkivaAvrahamdholbach, o/08:40
dholbachhi AkivaAvraham08:42
=== chriadam is now known as chriadam|away
=== rmescandon is now known as rmescandon|brb
=== JamesTait is now known as Guest62637
=== Guest62637 is now known as JamesTait
=== rmescandon|brb is now known as rmescandon
JamesTaitGood morning all; happy Eileen Collins Day! :-D09:33
bzoltannik90: hello there. How much are you involved with the clock app development?09:43
nik90bzoltan: hi...pretty much the only maintainer of clock app :)09:46
nik90bzoltan: although I am on a personal hols to india09:46
bzoltannik90:  all right :) than you are trhe right man... so there is a little problem with the autopilot tests. The app asks for permission to acces the lovation... what is not necessaryly granted by default. So the automatic tests can fail on that.09:47
nik90bzoltan: yes that's why the clock app tests are failing in the qa dashboard as well09:52
nik90bzoltan: I can only take a look at it when I get back on the Feb 10th I am afraif09:52
nik90Although there is currently a mp under review to fix that issue by brendand09:53
nik90bzoltan: may be you can use that ^^09:53
kalikianatimp: up for another look? https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/i18nctag/+merge/24826010:04
bzoltannik90:  okey, for the UITK landings I can not use patched/fixed autopilot tests, so i wait for the fix to lan10:09
=== chihchun is now known as chihchun_afk
dholbachhey jdstrand, do you have an opinion on https://code.launchpad.net/~abreu-alexandre/click-reviewers-tools/fix-local-url-patterns-override-rule/+merge/248273?10:18
=== rmescandon is now known as rmescandon|brb
=== rmescandon|brb is now known as rmescandon
=== chihchun_afk is now known as chihchun
=== marcoceppi_ is now known as marcoceppi-sast
=== _salem is now known as salem_
=== MacSlow is now known as MacSlow|lunch
=== salem_ is now known as _salem
=== chihchun_ is now known as chihchun
=== rmescandon is now known as rmescandon|lunch
=== MacSlow|lunch is now known as MacSlow
=== rmescandon|lunch is now known as rmescandon
AkivaAvraham\o/ woo hoo!14:03
AkivaAvrahamfinished big hurdle in autopilot plugin!14:04
renatuseb128, hi about this MR: https://code.launchpad.net/~renatofilho/ubuntu/vivid/syncevolution/default-syncInterval/+merge/24776814:07
seb128renatu, hey14:08
renatuseb128, your last question was about the desktop14:08
renatuseb128, well on desktop the sync of a full calendar is faster than the device14:09
renatuseb128, do you think that is possible to apply this patch only on the device?14:09
seb128renatu, well, the package is not specific to phone and we want convergence14:09
seb128renatu, so we shouldn't change a default because it makes sense on the phone14:09
renatuseb128, how we can solve that?14:10
seb128renatu, what's the issue with the full sync? data download? cpu use? did we quantify that somewhere?14:10
renatuseb128, it takes about 40 min on the device14:11
renatuseb128, up to 5 min on desktop14:11
renatuseb128, the time is to big, consume a lot of cpu and battery14:12
seb128renatu, is that cpu bounded? how many events are we talking about?14:12
renatuseb128, my calendar is very small, but bfiller and pmcgowan has the problem while syncing his calendars14:13
renatuseb128, I believe they have about 5 events every day, for about 5 years14:14
seb128renatu, are we talking about past events?14:15
seb128why do we even sync those at all?14:15
renatuseb128, yes14:15
renatuseb128, this is how syncevolution works14:15
renatuseb128, with this patch we create a limit to sync only the last 90 days14:16
dpmhi davidcalle, we haven't caught up this week yet - how's the porting guide coming along?14:16
seb128renatu, ok, sounds good then, for desktop as well14:17
seb128renatu, seems still worth forwarding upstream, it doesn't make sense to sync years of old events14:18
renatuseb128, ok nice. boiko is requesting a silo for it.14:18
davidcalledpm, ogra_ directed me to rsalveti for help. I'm currently working on the mir section, trying to write something that makes sense. So all good, afaict. Can't hangout right now as I don't have my headphones, but tomorrow if you want ?14:18
renatuWe will test it a bit more14:18
dpmdavidcalle, sounds good. Are we still on track for having it ready for the UGJ?14:19
renatuseb128, thanks14:20
seb128renatu, yw!14:20
davidcalledpm, My plan is to be ready for friday, still on track :)14:20
davidcalledpm, when is going to be the UGJ (or dev event) after this one?14:21
davidcalledpm, because we should really do something with snappy and the new raspi, there is still time to think about it of course, but I'd love to plan that.14:26
=== davidcalle_ is now known as davidcalle
karniHi folks o/ What would be the attached property in OptionSelectorDelegate indicating a value from model: [0, 1, 2, 3] (just a sample), if I'm not using a custom ListModel?15:35
karniI know 'index' is a delegate attached property, but is the value accessible right away, without puttling from the model based on index?15:35
AkivaAvrahamkarni, indix?15:35
AkivaAvrahamindex*15:36
karniAkivaAvraham: right, but ↑  :)15:36
karnisay, model: [0, 23, 345, 567]15:36
AkivaAvrahamkarni, I believe it is. Its been awhile though.15:36
karniif I have OptionSelectorDelegate, how do I tell the value is 345 (without using index)15:36
AkivaAvrahamkarni, good question...15:37
* karni blindly tests 'value' property15:37
karniI'll live with modelName[index], thanks anyway, AkivaAvraham15:48
AkivaAvrahamkarni, :/ its been like 2 months since I touched qml ; SORRY!15:48
karniAkivaAvraham: no prob at all ^_^15:48
AkivaAvrahamkarni, btw; what are you developing?15:48
karniAkivaAvraham: let's say one of preloaded Ubuntu apps ;)15:49
AkivaAvrahamkarni, so its secret? Otherwise I was going to ask for a favour.15:49
AkivaAvrahamI was hoping you'd post what you are working on at http://www.reddit.com/r/ubuntuappdev15:49
AkivaAvrahamkarni, oh btw; ubuntu on air happens in 10 minutes15:50
karnioh, that's cool15:50
karniit's semi secret, but we can put it up there in a week or two :)15:50
AkivaAvrahamHey all: Live Ask Ubuntu Anything live in 10 minutes: http://ubuntuonair.com | #ubuntu-on-air15:53
=== justCarakas1 is now known as justCarkas
mixailflashI am here.15:57
AkivaAvrahammixailflash, o/15:57
AkivaAvrahamin an hour though; first the session15:57
mixailflashok15:57
=== chihchun is now known as chihchun_afk
mixailflashhi16:04
AkivaAvrahammixailflash, hello16:16
mixailflashhello16:16
AkivaAvrahammixailflash, after the video :)16:17
mixailflashcan you give me some links for tutorials, like create application for desktop step by step?16:17
AkivaAvrahammixailflash, I will but I need to iron some things out; A desktop app... may not be what you think it is.16:19
mixailflashAkivaAvraham I mean desktop gui applications16:20
AkivaAvrahammixailflash, I know; but there is two types16:21
mixailflashok, but somebody create applications, for 386 and 64. and it work. If I right understand you,16:22
mixailflashAkivaAvraham ok, but somebody create applications, for 386 and 64. and it work. If I right understand you16:26
AkivaAvrahammixailflash, no not that.16:27
AkivaAvrahammixailflash, Basically its pure qt vs qml/qt16:27
AkivaAvrahampure qt won't converge.16:27
mixailflashAkivaAvraham ok, but wath about links?16:27
AkivaAvrahammixailflash, in 30 minutes; i'm watching ubuntu-on-air16:27
AkivaAvrahamhttps://www.youtube.com/watch?v=VY5InoyLeao#t=47716:28
mixailflashAkivaAvraham ok16:28
mixailflashAkivaAvraham I have to go. But after one hour I am back, ok. If you want I can leave my email.16:29
AkivaAvrahammixailflash, come back to this irc channel16:30
AkivaAvrahamand when you see me on; just ping me16:30
AkivaAvrahammixailflash, short answer though; http://www.reddit.com/r/ubuntuappdev may be a good start16:30
mixailflashthanks16:31
mixailflashAkivaAvraham thanks16:31
AkivaAvrahamnp16:31
=== rmescandon is now known as rmescandon|brb
=== rmescandon|brb is now known as rmescandon
=== chihchun_afk is now known as chihchun
maqboolhello17:05
balloonspopey, mhall119 when you play machine vs machines does your device turn off while playing?17:05
popeyyes17:08
popeyballoons: https://bugs.launchpad.net/machines-vs-machines :)17:08
maqboolwhere to get code samples i am new to the community how do i get started?17:09
balloonspopey, I don't see it in there.. I was going to file it assuming I'm not alone17:09
AkivaAvrahammaqbool, ah hey17:09
AkivaAvrahammaqbool, what kind of development do you want to do?17:09
maqboolUbuntu phone dev17:10
AkivaAvrahammaqbool, do you want to build your own app, contribute to ubuntu (A good idea), or some more internal complicated stuff?17:10
maqbooli want build my own app17:10
AkivaAvrahammaqbool, if you contribute to the ubuntu core apps; you will learn a lot on proper coding practices for QML17:10
AkivaAvrahammaqbool, okay cool. What version of ubuntu do you have?17:11
maqbool14.0417:11
AkivaAvrahamokay doke. one sec17:11
AkivaAvrahammaqbool, do you know any programming languages?17:11
AkivaAvrahamor are you starting somewhat fresh?17:11
maqbooljavascript and python17:11
maqboolkind of fresh17:12
maqbooli am student17:12
AkivaAvrahammaqbool, okay cool. Well first you want the updated version of the SDK. You can find it here: https://developer.ubuntu.com/en/start/ubuntu-sdk/installing-the-sdk/17:12
AkivaAvrahamAlternatively you could install 14.10 or 15.0417:12
AkivaAvrahamerm17:12
AkivaAvrahampopey, are you using 15.04?17:13
popeyon my desktop, no, on 14.10 right now17:13
popeywill go to 15.04 at some point17:13
AkivaAvrahampopey, okay thanks.17:13
AkivaAvrahammaqbool, yah 14.10 then. Although 14.04 should work fine.17:14
maqbool14.04 pretty unstable on my machine17:14
AkivaAvrahammaqbool, it is ubuntu, right?17:14
AkivaAvrahamnot kubuntu, or xubuntu17:15
AkivaAvrahamor lubuntu17:15
maqboolyep17:15
AkivaAvrahamokay17:15
AkivaAvrahamWell you can choose to upgrade or stay.17:15
AkivaAvraham14.10 works good for me.17:15
AkivaAvrahammaqbool, because you know javascript, you will feel right at home with qml. Very similar.17:15
AkivaAvrahammaqbool, are you planning to learn c++?17:16
maqbooli am learning right now in school17:16
AkivaAvrahammaqbool, c++?17:16
maqboolc++ yep17:16
AkivaAvrahamokay well I was going to suggest a manual that teaches you c++ with Qt in mind. Interested?17:16
maqboolalright17:17
AkivaAvrahammaqbool, and you might as well switch to ubuntu sdk as your c++ development environment. I assume they have you using eclipse or something.17:17
AkivaAvrahammaqbool, here: http://www.reddit.com/r/UbuntuAppDev/comments/2qy5ko/guide_for_new_ubuntu_developers/ link at the bottom.17:18
maqboolcodeblocks17:18
AkivaAvrahammaqbool, ah yah definitely switch then :)17:18
AkivaAvrahammaqbool, okay i'm going to head off; any other questions?17:22
AkivaAvrahambzoltan, zbenjamin http://i.imgur.com/6eJt30x.png :) I'm getting closer. I just need to add a widget in the run config now with a list of tests.17:34
timpkalikiana: I assume the motivation for adding the tag() function is correct, but I'm still trying to understand it better17:39
timpkalikiana: in https://code.launchpad.net/~unity-team/music-app/infographics-translations/+merge/248251 why not use the string i18n.tr("Songs played today: ") + "<b>%1</b>"17:39
timpahayzen, pete-woods: ^17:40
ahayzentimp, RTL and LTR languages17:40
timpah. good point :)17:40
timpahayzen: and with an i18n.tag() function all the problems are solved?17:41
timpahayzen: tag() is the name proposed for noop()17:41
ahayzentimp, apparently :) ... assuming the singular debate is a separate debate/issue ;)17:42
timpahayzen: I'm just reading all the comments now. It appears that dpm disapproved a similar change before17:43
ahayzenyup17:43
dpmtimp, kalikiana, as per the bug, could we call the function i18n.noop() instead of i18n.tag()?17:44
kalikianatimp: never ever do string manipulation in context of localization, this is unrelated to tag, tr or plurals17:45
kalikianadpm: we could. though it looks like everyone prefers tag17:45
dpmkalikiana, I didn't see any discussion17:45
timpdpm: why? when we discussed the API for i18n (see https://docs.google.com/a/canonical.com/document/d/1qDcfbu9aAj7uU9qzjXCOJn8zGexBnXwZCgO8pLDsO5M/edit# ) we decided not to stick with the gettext function names17:45
timpdpm: see the "Votes" at the top.. because we couldn't get everyone to agree in the end we just voted17:46
timpdpm: it was i18n.tr() vs i18n.gettext() and we ended up using tr()17:46
kalikianadpm: tag was originally proposed and including me and pete 3 people consider it more intuitive than noop - noop isn't even used in C17:46
dpmtimp, that was many months ago, I'm talking about .tag17:46
kalikianadpm: that's what I mean by "everyone prefers"17:47
kalikianawhere that means, everyone who is involved17:47
dpmnevermind, I don't feel strongly enough to argue on that one17:47
timpdpm: yes, I know. Just saying that back then we kind of decided that we don't have to stick with the gettext naming that people know if we can come up with a clearer or more convenient function name17:47
dpmtimp, as per the question:  i18n.tr("Songs played today: ") + "<b>%1</b>" would for example break for RTL languages17:51
timpwhy would i18n.dtr("metric", "Songs played today: %1") instead of i18n.tag("Songs played today: %1") not work?17:59
timpdpm, ahayzen, kalikiana: ^17:59
popeyElleo: i listened to podcasts in your app all the way back from fosdem on the eurostar, thank you for making it. It's very stable.18:01
kalikianatimp: because the string is displayed in the lockscreen and the language can be changed when the app isn't running18:02
timpkalikiana: ah, so the string does not even exist in the list of translateable strings for the metrics?18:04
Elleopopey: cool, glad you found it handy :)18:07
kalikianatimp: the string is in the app's .mo files, and the domain is set in the metrics API18:13
kalikianatimp: merged ctag into tag https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/i18nctag/+merge/24826018:13
timpkalikiana: so the metrics somewhere call i18n.dtr("music-app", "Songs played today: %1")?18:14
kalikianatimp: yes18:15
sverzegnassiI'd need some help with setting "read_path" in docviewer-app, which should be authorized to read file stored in "@{HOME}/Documents". However I don't know how to convince ContentHub to read files from user's folder.18:17
=== corecomic_ is now known as corecomic
timpkalikiana: I have a lot of questions for this MR ;)18:25
timpkalikiana: here is the next one https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/i18nctag/+merge/24826018:26
kalikianatimp: true. they need to be added as needed like any other function18:27
kalikianatimp: I have wondered at one point why we don't have a re-usable script for this because for apps it's kinda stupid18:27
kalikianain the uitk we have even 3 separate places where that may be considered18:28
timpkalikiana: so each app duplicates our update-pot.sh ?18:28
timpahayzen: how do you generate the .pot files for apps?18:28
kalikianatimp: either that or they make up their own or they hope QtC performs some magic18:28
kalikiananeed to run, will be back later18:29
dpmtimp, http://bazaar.launchpad.net/~music-app-dev/music-app/remix/view/head:/README.translations and http://bazaar.launchpad.net/~music-app-dev/music-app/remix/view/head:/po/CMakeLists.txt18:30
ahayzentimp, its in the readme.translations18:30
timpdpm, ahayzen that explains what launchpad does with the pot files, but not how the pot files are generated18:33
ahayzentimp, i just do the click-buddy thing and then cp the generated .pot over :)18:34
timpahayzen: ah I see in your po/CMakeLists you use xgettext18:34
timpit has this line,         --keyword=tr --keyword=tr:1,2 --keyword=N_18:35
ahayzenyup18:35
timpahayzen: so I think you will need to add i18n.tag there as well18:35
ahayzentimp, is that not what the mp did?18:35
dpmtimp, it's explained both in the readme and you can see it in the cmake rules18:36
timpahayzen: yes, true. I was only looking at the UITK MR now18:36
timpdpm: okay, thanks. It is clear now18:36
dpmtimp, pete-woods already sent a MP for music-app to add .tag18:36
ahayzentimp, https://code.launchpad.net/~unity-team/music-app/infographics-translations/+merge/248251 ... L23 in the diff18:36
dpmthat one :)18:36
timpok, clear.18:37
timpahayzen: didn't everybody vote to use tag() not noop()? ;)18:37
ahayzenthe mp hasn't been updated18:37
timpok18:37
ahayzenit is pending on the sdk work18:37
timpkalikiana: do you want to update update-pot.sh? Or we leave it like this since we are not using tag() anyway?18:39
timpkalikiana: so we do have that script. I think it is best to update it with tag() in case apps copy it from us.18:48
* timp bbl18:49
josharensonDid something recently change WRT location and permissions? I have a simple app that uses a PositionSource, and it used to work fine (still works on desktop), but it recently returns no coordinates. I have "location" in my app armor.19:19
sverzegnassipopey: document history -> https://imgur.com/lsYzc3D,6OlTRkL19:41
popeysverzegnassi: oh man, that is so awesome!19:41
popeyrickspencer3: check that out ^^ :D19:41
* rickspencer3 looks19:42
rickspencer3nice!19:42
popeythis is gonna make the doc viewer so much more appealing19:42
sverzegnassiI'd like to merge it for tomorrow. Still need to finish some work on ResponsiveGridView and SortFilterModel (for some reason, it's not sorting)19:44
popeyoh, someone else had problems with lists not sorting correctly19:44
popeysverzegnassi: if you ask rpadovani for a review, and he has time, I'm sure he'd love to take a look.19:45
popey(he told me he likes your code, it's easy to read)19:45
sverzegnassiHe already knows that, if he wants, there's always a new MP waiting for him :P19:49
sverzegnassiAbout SortFilterModel, I had the same problem in quick-memo because of U1DB but this time I'm using a standard QML ListModel19:50
rpadovanipopey, sverzegnassi just finished dinner, I'm on the zoom branch already :_)19:54
rpadovani:-)19:54
popey\o/19:58
=== salem_ is now known as _salem
rickspencer3does anyone know if there are helper functions for writing AP tests for OptionSelector?21:55
rpadovanirickspencer3, I think you maybe could start from here - not the same thing, but better than nothing :-)22:25
rpadovanihttps://bazaar.launchpad.net/~phablet-team/address-book-app/trunk/view/head:/tests/autopilot/address_book_app/pages/_contact_editor.py#L6322:25
rickspencer3hi rpadovani22:25
rickspencer3I kinda faked it by clicking on the selector, finding the item and clicking on the item, then sleeping a bit22:26
rickspencer3worked ok22:26
rpadovanirickspencer3, did you consider the case where the value you want isn't in the view after the option selector has been expanded? :-)22:26
rickspencer3rpadovani, no22:27
rickspencer3I just chose something near the top :)22:27
rpadovanirickspencer3, atm I don't find the documentation, but there is an helper named 'swipe_into_view()' to have it in view, so you could select the element, and then do element.swipe_into_view().. Just for your information :-)22:34
rickspencer3oh cool22:34
rickspencer3rpadovani, that sounds perfect, hopefully I'll be able to find out later22:34
rickspencer3I am finding it very strange to be developing with Autopilot22:34
rpadovanirickspencer3, it works for every element in a flickable, so I suppose works also for option selector22:35
rickspencer3I write a few lines of qml, then a few lines of test code22:35
rpadovaniwell, tbh I think it's very useful, but I don't like to write tests. Luckly, there is the QA team :D22:35
rickspencer3I already wrapped my u1db in unit tests, so now it's just autopilot22:36
rpadovanigreat!22:36
rickspencer3rpadovani, I think all developers should develop tests along with their code22:36
rickspencer3no t hat we have such a developed CI system for Ubuntu, the tests are a critical consumer to keep us moving forward quickly without regressions22:37
rickspencer3also, if you have tests, then if someone underneath breaks you, the tests catch it, and it's their problem, not yours ;)22:37
rickspencer3in the end, I actually don't think it's more work22:37
rickspencer3I think that ultimately, if you have a good test suite, you can go faster22:38
rickspencer3</soapbox>22:38
rpadovaniI completely agree with you, just, I don't like to write them. But since they are necessary, I just do them :-)22:39
rickspencer3hehe22:49
rpadovanirickspencer3, will you be in London for the launch event?22:55
rickspencer3rpadovani, planning on it!22:55
rpadovani\o/22:55
sverzegnassinow i am happy! \o/ https://imgur.com/mJQtDtO23:34
popeyoh man sverzegnassi !23:48
balloonssverzegnassi, excellent!23:57
sverzegnassity! just a quick check about performance, and document history is ready to land (as soon as the poppler plugin MP is merged) :D23:59

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