/srv/irclogs.ubuntu.com/2015/06/25/#ubuntu-app-devel.txt

=== chriadam|away is now known as chriadam
=== salem_ is now known as _salem
=== chriadam is now known as chriadam|away
=== hypera1r is now known as hyperair
dholbachgood morning07:10
=== chriadam is now known as chriadam|away
justCarakasgood morning dholbach08:31
mivoligohi all, I'm looking for a nice and simple example of using ContentHub. I tried the one on https://developer.ubuntu.com/api/apps/qml/sdk-15.04/Ubuntu.Content.index/ but it only worked with Pictures and Videos ContentType. I want to be able to import Music08:38
faenilDanChapman: actually, let's move it here :)08:53
faenilI'll be visiting a flat during Dekko meeting today, so I was wondering if I could help you with anything ;)08:53
faenillike, if you have questions, need help, or anything like that :)08:53
faenilsince I won't be able to attend the meeting08:53
rhuddieElleo, hello, would you be able to give this MP for ubuntu-keyboard a review please? https://code.launchpad.net/~canonical-platform-qa/ubuntu-keyboard/fix-1467449-autopilot-key-names/+merge/26257608:59
dholbachhey justCarakas09:04
DanChapmanfaenil: sorry delivery arrived. anyway.... ok that's cool. I don't have any specific questions right now. If any come up during the meeting I'll try and grab you at some other point :-)09:20
DanChapmanfaenil, actually quick question. What's the plans with the bottom edge component?09:22
DanChapmanlike will it just be an empty container for developers to fill, or will it have ways to define multiple views depending on which tab is pulled up in a multicolumnview.09:25
snizzomhall119: have I to play the game to get an invite for the mx4 also if I'm a (more less) longtime app dev?09:26
faenilDanChapman: afaik there will be a bottom edge hint provided in the SDK....just the hint (i.e. the button at the bottom), all thought with convergency in mind09:26
DanChapmanfaenil: oh just the hint09:26
faenilyes...there is a discussion ongoing about whether we should provide a default template for the panel as well09:26
faenilit depends on our resources, we've got a lot of stuff to work on, and the bottom edge is something that should be up to the application by design09:27
faenilbut at the same time, it'd be good to have some default bottom edge panel template09:27
faenilwhich covers the "normal" usecases09:28
faenilDanChapman: ^09:28
mcphailfaenil: can I +1 that idea. The developer docs emphasise the role of the bottom edge but it isn't apparent how you actually implement one09:28
faenilmcphail: because at the moment there isn't even a bottom edge hint (button, whatever) provided in the sdk, it's all up to the app09:29
faenilthere will be a hint, I'm just not sure whether we'll be providing a panel as well...we'd like to09:29
mcphailfaenil: and just about every app does it "badly" (to a greater or lesser extent) so a default panel would be good09:30
faenilmcphail: most of the apps at the moment are using the same component, PageWithBottomEdge, which is not an sdk one09:31
DanChapmanfaenil: ok great thanks. Probably easier right now that it is something custom made as dekko is still some way from moving to 1.3+. But i do agree it would be nice to have something default09:31
mcphailfaenil: yes09:31
faeniland every app copies the qml into its project, something which we all agree is really suboptimal :D09:31
mcphailfaenil: absolutely, although when the UCS gets properly integrated it will be ledd of a problem09:32
mcphail*less09:32
faenilmcphail: it would be good to have a panel as well, we're just so packed with tasks at the moment about the convergence story that we're finding it difficult to find a slot for that as well09:32
DanChapmanhmm do we have SplitView as part of the sdk09:32
DanChapmanahh no that QQUick Controls09:32
faenilyeah that's QQC09:32
mcphailUnfortunately, PageWithBottomEdge makes the pixels on either side of the hint "dead" to touch and obscures the bottom part of the UI09:34
snizzopopey: same question: is there an easy way for developers to get just an invite for a mx4?09:35
faenilmcphail: yes and we need a component which behaves "decently" in a convergent world anyway09:46
faenils/decently/reasonably09:46
mcphailfaenil: will converged desktop have bottom edge?09:46
faenilmcphail: at the moment, it seems it will09:46
mcphail"interesting" decision...09:47
faenilit's not that easy09:47
faenileveryone agrees that it's not ideal, alternatives are being researched09:48
Elleorhuddie: can do next week, away on holiday at the moment09:48
mcphailfaenil: I'm quite happy with important UI elements at the bottom, but it goes against the "top left" mantra we've been hearing for years09:49
rhuddieElleo, oh, no problem! enjoy.09:51
ogra_mcphail, http://www.markshuttleworth.com/archives/1328 mark about the bottom edge ... "...the place you really express the single most important aspects of your application, because it’s the fastest, grooviest gesture in the book, and it’s all yours on Ubuntu."09:52
ogra_mcphail, there is really no way to have something like a "translation layer" if every developer is encouraged to implement his own custom thing09:53
mcphailogra_: I quite agree it should be an SDK component. Problem is, the developer docs push the bottom edge very heavily and there isn't an easy way to implement it beyond the component from UCS. So it needs to go in to the SDK or UCS needs to become tightly integrated09:55
mcphailogra_: if it was the latter, the component in UCS would attract bug fixes09:56
mcphailBest bottom edge I've used is dekko09:57
DanChapman\o/09:57
mcphailha!09:57
ogra_mcphail, how could it be an SDK component if we give the developer "absolute freedom" ?10:07
ogra_UCS wont help either if i develop my complete own idea and dont push it to UCS10:08
melesHow can I purge an app on the phone?10:09
mcphailogra_: tbh, I don't see how having an SDK component for a bottom edge is any less restricting than having an SDK component for a Page. The latter still gives freedom10:11
mcphailand even sabdfl's blog post imposes (voluntary) restrictions on the absolute freedom by pointing at the design guidelines10:13
ogra_mcphail, well, i personally have never used the SDK at all for my QML apps ... i just throw together my QML code as it fits and push it to the store ... while the toolbar is an SDK component ... if i implement a "triangilar menu" in the bottom edge there wont be any generic way to translate that to a desktop app10:13
mcphailogra_: so having the component in the SDK isn't going to hinder you at all. Evryone is a winner!10:14
mcphailogra_: whereas it will make life easier for numpties like me10:15
ogra_no, the desktop user loses, since they will have to use my "triangular menu" that is optimized for touch10:15
ogra_and has no way to do a generic translation to a usable desktop thing10:15
mcphailogra_: but that is a design decision you have made...10:15
ogra_because i followed the "it's all yours" paradigm we promote10:15
mcphailogra_: If you choose to avoid the SDK, you won't get the benefits of the SDK. I can't see that's a problem10:16
ogra_if it isnt all mine, we need to say that ... if i can only use SDK components so it works in convergence, we need to promote that restriction ... but we don't currently10:16
mcphailogra_: difficult to promote an SDK component which doesn't exist :)10:17
mcphailogra_: the triangular menus in dekko work well on the desktop anyway10:18
ogra_i'm not saying that ... i'm saying we should tell devs that they have not the ultimate freedom ... but have to operate within the SDK boundaries10:18
ogra_mcphail, i meant a hypothetical triangular menu that doesnt exist and is possibly implemented in a 1000 line javascript in my app10:19
mcphailogra_: I'm all for pointing people towards the SDK. Sound's like you'll need to persuade sabdfl about that, though, as he seems to think that will stifle innovation10:20
ogra_well, i think we need to make clear in our docs that it isnt all that freedom we promote currently10:21
ogra_meles, press and hold the icon in the app scope and you get a "remove" option10:22
mcphailogra_: developers are going to ignore the guidance anyway. Look what happened with android, despite strict guidance on UI components10:22
ogra_well, i doubt our development can go as much out of bounds as androids ... but yeah, i understand what you mean10:24
melesogra_ does this remove the cached install files? I'm having an issue with the clock app, which I build myself. Now I would like to clean it up and install it fully from the software center.10:27
ogra_meles, ah, well, take a look under ~/.cache/ and ~/.cache/QML/Apps/ ... and also in ~/.config ... might well be that some data stays around there10:29
mcphailand ~/.local/share10:30
meles#ogra_ thanks it was indeed in ~/.cache/QML/Apps I only checked /var/cache.10:36
=== athairus is now known as athairuzzz
nik90Is there a way to trigger a manual listview model refresh?11:02
nik90the model I am using doesn't seem to fire the changed signal and thereby the listview is showing old data11:03
DanChapmannik90: is it a qml ListModel or a QAIM based model?11:24
=== MacSlow is now known as MacSlow|lunch
dholbachI'll have a look at your dev.u.c MP, so I get a bit more familiar with how the importers work11:57
dholbachmhall119, ^11:57
dholbachmhall119, maybe you can have another look at mine later on?11:57
nik90DanChapman: strangely it was a QT LocalStorage database whose data was returned as a var which was used as the listitem's model.12:18
nik90DanChapman: I worked around it by converted the var into a ListModel and then feeding that to the ListView.12:18
nik90s/converted/converting12:18
=== _salem is now known as salem_
dholbachmhall119, can you maybe give me a bit of background, so I can review the docs importer?12:27
dholbachmhall119, from a fresh branch with imported docs, I can't run "manage.py import_sphinx" (api_docs.models.DoesNotExist)12:28
dholbachmhall119, and ./update-apidocs.sh gives a lot of warnings/errors too12:28
=== Neo31` is now known as Neo31
balloonsmhall119, are you wanting me to review lp:~mhall119/developer-ubuntu-com/add-autopilot-scopes-docs?13:26
dpmballoons, after seeing dholbach's reply about the clock unit tests and accessing the network... one thing I don't understand is why the tests don't fail on the core apps PPA. Even if Jenkins triggers the build... ultimately the PPA builders with no network access will do the build13:53
popeynik90: Elleo any thing you can do about unsupported media types in podbird?14:09
popeye.g. http://static.aboveandbeyond.nu/grouptherapy/podcast.xml contains m4a files.14:09
popeywhich don't play14:09
balloonsdpm, it's unclear how the tests in trunk started failing. nik90 any insights for why trunk clock unit tests fail? In theory it simply means the last time they merged / built, they did pass. Since the tests didn't change, something else did14:10
Elleopopey: don't think there's much we can do, just needs support adding in media-hub14:11
Elleopopey: and iirc it's not actually that m4a is unsupported14:11
Elleopopey: it's specifically m4a with jpeg streams (for cover art)14:11
Elleopopey: there's a media-hub bug logged for that somewhere iirc14:11
Elleopopey: an ocean o14:11
Elleooops14:11
Elleopopey: https://bugs.launchpad.net/media-hub/+bug/140868114:12
ubot5Launchpad bug 1408681 in Media Hub "Certain m4a files with an embedded cover art jpeg stream are not playable" [High,Triaged]14:12
popeyhaha, the guy asking me about this filed that bug :)14:12
Elleoheh14:12
=== iphone is now known as Guest54540
nik90Elleo: hey did you already merge lp:~nik90/podbird/17-migrate-mainpage-listitems ?16:56
nik90Elleo: if you haven't then I would recommend not doing just yet. I noticed one issue with it that I fixed locally, but haven't pushed yet. Let me do a couple more tests before it gets merged in trunk.16:57
Elleonik90: okay, haven't done anything with that one yet16:57
nik90Elleo: I'm hitting this bug https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1465582. The fix for it is to show the episode description in a dialog and change the default click behavior to play the episode.16:59
ubot5Launchpad bug 1465582 in ubuntu-ui-toolkit (Ubuntu) "TrailingAction widths needs to be clamped" [High,Triaged]16:59
Elleonik90: okay, I'd like play to be the default anyway with the move to swiping to the side; otherwise the thing that people want to do most frequently seems a bit hidden17:00
nik90Elleo: true I discussed this extensively with Kevin..initially we thought of showing the play button always..but then people might think that's the only button and might not know about the trailling edge actions.17:01
nik90so yeah default click to play seems like a good idea.17:02
Elleookay, cool17:03
=== dpm_ is now known as dpm
=== athairuzzz is now known as athairus
nik90Elleo: alrite finished patching the branches.19:52
Elleonik90: cool20:20
nik90Elleo: btw I think I might have an idea to workaround the app freeze on startup. At the moment it refreshes the list *every* time the app is started which is a bit of a waste. May be we should refresh the episodes list once every 4 hours or something.20:22
nik90It doesn't fix the issue, but definitely improves the experience quite a bit I think20:22
Elleonik90: sure, sounds reasonable20:23
zbenjaminnik90: hey20:49
zbenjaminnik90: i hacked some example projects for ucs https://code.launchpad.net/~zeller-benjamin/+junk/ucstemplate20:49
zbenjaminnik90: there is a qml-only case, a c++-only case and a mixed case. Only the mixed case does not completely work. Code completion somehow is broken20:50
nik90zbenjamin: wow awesome20:51
nik90zbenjamin: what do you mean by mixed case?20:51
zbenjaminnik90: like a c++ component that also has qml files20:51
zbenjaminnik90: sadly it requires some code in the plugin that is not yet released to completely work20:51
zbenjaminnik90: executing won't work yet20:51
nik90ah ok20:51
zbenjaminnik90: but you can already see that code completion works nicely20:52
nik90zbenjamin: I will try it out tomorrow morning. Looking at the code at the moment.20:53
zbenjaminnik90: ok, the baseapp is just a plain app from one of our templates20:54
zbenjaminnik90: the other 3 are the provided components20:54
nik90zbenjamin: so you added the qml component with the correct qmldir definitions and also edited the pro file?20:54
zbenjaminnik90: yeah, the important thing is that the source folders are structured correctly20:55
zbenjaminnik90: they need to look like a correct qml import path20:56
zbenjaminotherwise code completion breaks20:56
zbenjaminthats something the component authors need to be aware of20:56
nik90yes I noticed that20:58
nik90zbenjamin: We can check that when they submit the component20:58
nik90zbenjamin: do you know any good links to learn more about qmake?20:59
zbenjaminnot rly, only the qt documentation20:59
nik90I tried it out with some of my new projects but at some points couldn't figure out how to inform qmake to install certain directories at a certain place20:59
nik90ok20:59
nik90I will check it in more detail20:59
zbenjaminnik90: thats a install target21:00
zbenjaminnik90: http://doc.qt.io/qt-5/qmake-advanced-usage.html#installing-files21:00
zbenjaminnik90: http://doc.qt.io/qt-5/qmake-manual.html21:00
nik90the qmake manual seems really well described..thnx a lot21:01
zbenjaminnik90: yw21:02
Elleonik90: http://mikeasoft.com/~mike/podbird-sync.png synced from my phone to the web service :)21:17
Elleonik90: next step, getting the server to poll them all regularly and issue notifications...21:18
nik90Elleo: ooooh awesome!21:43
Elleo:)21:43
nik90Elleo: does it use the ubuntu one account to create user accounts?21:44
Elleonik90: it just has its own accounts at the moment, will probably switch to something oauth based with future versions though21:44
nik90ok. this is cool stuff.21:45
nik90Elleo: btw will your server be able to handle polling and sending notifications to 2000+ users?21:48
nik90I guess the common podcasts wil be polled only once while the notifications will be sent individually to each user21:48
Elleoyeah, its setup so it'll poll all podcasts once and send notifications to all users subscribed to them based on that user's last update time (so they don't get notifications for things they already know about)21:51
Elleowe can see how the server copes, I need to shift onto bytemarks cloud system at some point anyway which will give a bit more flexibility if we need to up the resources dedicated to it in the future21:52
Elleobut in the podbird settings it also lets you specify the server address, so if it gets unsustainably large people can run their own servers as a fallback21:52
Elleo(or if people have privacy concerns or similar)21:53
nik90Elleo: yeah I was thinking of that since people with privacy concerns might not like sharing their subscriptions21:53
nik90Elleo: also pretty sure that if it goes to the point where we cannot sustain large userbase, we could open it up for donations.21:54
nik90It seems people *really* want to donate to podbird ;P21:54
Elleoheh, yeah21:54
Elleowe manage to run libre.fm mostly on donations21:54
Elleoalthough there we get a lot of server stuff donated to us too21:54
nik90ah21:55
nik90hey you never know what will happen..people might surprise us21:55
Elleoyeah, well I don't mind backing it financially myself up to a point as long as canonical keep paying me generously ;)21:56
nik90haha21:57
Elleobut I expect my old VM will cope with the current number of users21:57
Elleoespecially since they probably won't all bother registering for accounts21:57
nik90Elleo: well if you want push notifications then you need a account, no?21:58
Elleoyeah21:58
nik90but I guess not all users might not want push notifications21:58
Elleoyeah, some people just won't care enough about that to want to go through the hassle of signing up to yet another service21:58
nik90true21:59
nik90btw feel free to share your progress on the g+ page to generate interest21:59
Elleoplus we can probably fund it by demanding that popey gives us back-handers to feature the ubuntu uk podcast as the pick of the week for all time ;)21:59
Elleogood idea22:00
nik90lol ... yes22:00
Elleoset up a bidding war between them and bad voltage22:00
Elleothen we'll be set for life22:00
nik90;)22:00
* nik90 adds it to his plan of world domination22:01
nik90s/his/podbird22:01
Elleoheh22:01
=== salem_ is now known as _salem
popey\o/22:06
nik90popey: so much fun to pull you into everything ;P22:10
* nik90 is curious as to when that started to happen in the community ;)22:10
nik90popey, mhall119: Could you check why Podbird page shares on Ubuntu App Developer community are not visible. It only works if either me or Elleo share the post. May be its stuck in the review queue to prevent spam?22:14
Elleoah yeah, I forgot about that22:14
akiva_I have returned23:20
=== akiva_ is now known as akiva-thinkpad

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