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

newsagesZbar?00:00
nik90zsombi, popey: It seems we got another crash in the clock app, https://bugs.launchpad.net/ubuntu-clock-app/+bug/143157900:30
ubot5Ubuntu bug 1431579 in Ubuntu Clock App "Clock App crashes when clicking on the settings icon" [Critical,Confirmed]00:30
nik90zsombi, popey: I will investigate this tomorrow morning when I find some time. Just letting you know in advance.00:31
=== chriadam|away is now known as chriadam
newsageszxing?00:49
=== aaron_ is now known as ahoneybun
=== chihchun_afk is now known as chihchun
dpmbzoltan_, zbenjamin, morning! Quick question: when running QML unit tests with qmltestrunner. Can they be executed from QtC?07:39
=== chriadam is now known as chriadam|away
zbenjamindpm: you could create yourself a custom runconfiguration to execute whatever you want, but only on the desktop07:45
zbenjamindpm: currently we do not automatically create a runconfig for tests07:45
dpmzbenjamin, thanks! Is this something that you think would make sense to add as an additional runconfig to the QML templates? Is there anything stopping us from doing it (other than the fact that needs to be planned, etc.)?07:48
zbenjamindpm: the fact that there is no standard how to define and where to put tests. The project files do not contain them so its guesswork what and where to start the tests from07:51
dpmzbenjamin, ok, that makes it clear. So I guess that's the first step we need to fix before looking at the templates. Do we have the same situation for Autopilot tests?07:52
zbenjamindpm: exactly the same07:52
dpmzbenjamin, ok, got it. Expect to hear more from us on the subject of testing soon, then :)07:52
zbenjamindpm: its also questionable if it really makes sense as a runconfiguration... you want to see the output after all so maybe a testing mode would be better.07:54
dpmzbenjamin, when you say "mode", what do you exactly mean? As a separate Testing tab?07:55
zbenjaminyes07:55
dpmzbenjamin, is this something upstream haven't looked at implementing? I think what you're saying makes sense, but it strikes me that it'd be an Ubuntu-specific tab07:56
zbenjamindpm: nop, there is no Testing tab07:56
zbenjamindpm: i think tests is usually something you would run from the console07:57
dpmyeah, that's what you do now, but then it forces you to get out of the IDE07:57
dpmwhich also sort of implies that tests are something like an afterthought07:57
dpmwhich is probably not what we want to promote07:58
dholbachgood morning08:10
mzanettirpadovani, hey ho. look what DanChapman created for us :) https://code.launchpad.net/~dpniel/component-store/liwa-xtra-props/+merge/25283908:54
zygahey, how  the "developer namespace" on https://myapps.developer.ubuntu.com/dev/account/ is supposed to look like09:41
zygaI tried reverse domain names -- that doesn't work09:41
zygaI tried 'zygoon' but then it rejected zygoon.myapp09:41
zygaany ideas?09:41
JamesTaitzyga, your namespace should be a single word, no dots, IIRC lower-case alphanumeric.09:44
JamesTaitzyga, and then your pkg name needs to be like $pkg_name.$namespace09:44
JamesTaitzyga, so e.g. calculator.zygoon09:45
zygaah09:47
zygathanks09:47
zygadocs are very stale09:47
zygathey still talk about reverse domain name things09:47
JamesTaitzyga, do you have a URL? We need to get that fixed.09:48
zygahttp://askubuntu.com/questions/343491/what-is-the-naming-convention-for-click-packages + random google for the errors I got09:48
zygawait09:48
JamesTaitzyga, we're in the process of transitioning from old-style reverse-DNS namespaces to the new short namespaces; so if a dev has already uploaded a package with the old-style namespace, it'll continue to have that namespace for now, even though that namespace isn't visible any more AFAIK.09:51
JamesTaitBut new packages require the new-style namespace.09:52
zygaJamesTait: I see, thanks09:53
zygaJamesTait: it would be excellent if there was a short example next to each of the forms on the website09:53
zygaJamesTait: e.g. myapp.example09:53
zygaJamesTait: and the same next to the namespace form09:53
JamesTaitzyga, then watch that space - there's work ongoing to improve that right now.09:54
JamesTaitzyga, it's an area that has caused some mild confusion, so we're in the process of cleaning it up.09:55
zygaJamesTait: cool, thanks a lot!09:56
* zyga just published an app for safari books online09:56
=== JMulholland_ is now known as JMulholland
nik90dpm: Hey, good morning, when you got a moment can you review https://code.launchpad.net/~nik90/ubuntu-clock-app/fix-translation-plural-forms/+merge/25283810:17
dpmnik90, approved, thanks!10:22
dholbachdpm, https://code.launchpad.net/~dholbach/help-app/1430735/10:22
nik90dpm: thnx a lot :)10:22
dholbachdpm, run 'make web' and have a look at the HTML10:22
dholbachdpm, ".image" is not implemented yet, but I did the ".textonly" according to your specification :)10:23
dpmdholbach, oh wow, nice!10:23
nik90dpm: yup I explained that to the bug reporter, but he offered a explanation in https://bugs.launchpad.net/ubuntu-clock-app/+bug/1431446/comments/2. So I figured I might as well do this10:24
ubot5Ubuntu bug 1431446 in Ubuntu Clock App ""%1 minutes" Needs proper plural forms for translations" [Low,In progress]10:24
dpmdholbach, I was thinking something else seeing DS-McGuire's screenshot the other day. It might still be useful to have the python-markdown's attribute list support we dropped a few days ago. For example if we want to give a link class="button", so perhaps it might make sense to re-add it. But step by step, first let's test .textonly10:25
dpmok, thanks nik9010:25
dholbachdpm, I'm not sure I understand10:26
dpmlet me put together an example10:26
dpmon this screenshot, the buttons at the bottom:10:27
dpmhttps://lh5.googleusercontent.com/-u4yjLmcthAY/VQCGoD9Q2WI/AAAAAAAAIjs/AqNShovl6go/w512-h830-no/xzUDQl1.png10:27
dpmthey are links with the "button" class10:27
dholbachok...10:28
dpmi.e. the html markup is something like <a class="button" href=http://example.com>Get in touch<a>10:28
dholbachright10:28
dpmand on the .md files we could have:10:28
dpm[Get in touch](http://example.com) {: .button}10:29
dholbachsure10:29
dholbachthat's easy to do10:29
dholbachbut what's changing in terms of the Q&A entries?10:30
dpmnothing10:30
dholbachok10:30
dpmthat's just another feature10:30
dpmwe didn't have a use case for it, but perhaps we might have found one :)10:30
dholbachmaybe we should start thinking of shorter markup10:31
dholbach{: .button}, {: .textonly}, {: .image} get a bit long10:31
dholbachespecially if you type them for every question/answer pair10:31
dholbachbut sure, let me add the button thing now10:32
dpmdholbach, let's get the .textonly first, though. I didn't want to distract you from that, just thought I'd give you a heads up that we might have a use case for that branch (or was it just a revision) we dropped10:33
dholbach.textonly is done in the branch10:34
dpmah, I thought you were still working on it10:34
dpmregarding the markup, two things: python-markdown can also use this syntax: {: class="button textonly"}10:35
dpmthat'd be shorter10:35
dpmhowever10:35
dpmI'm not sure we should be mixing the two things10:35
dpm- attribute lists just add classes to the final markup10:36
dpm- our textonly extension adds divs to have separate rows in the final markup10:36
dholbachright10:36
dholbachso the button use-case will be dealt with differently, right?10:36
dholbachthat'll just be the plain old attr-list thing?10:37
dpmyes10:37
dholbachok10:37
JamesTaitdpm, ping re https://translations.launchpad.net/software-center-agent/trunk/+pots/click-feed when you have a minute or three.10:38
dpmdholbach, this might be a crazy idea, but, perhaps something like...10:38
dpm{: rows="eight-col"} for text only columns10:38
dpmand {: rows= "eight-col four-col"} for text+pictures10:39
dpmit'd be kind of reusing the attr-lists syntax10:39
dholbachI was more thinking of something like !!T and !!I10:39
dholbachor something10:39
dpmbut still keeping it separate10:39
dpmthat could work too10:39
dholbachyes, less to type, less to memorise10:39
dholbachand instead of having editors to think of what the html markup might be like, just go with a definition of "text layout" and "image layout"10:40
dpmyeah, I like that point. The thing I'd like perhaps is to make it more generic, i.e. think in terms of columns and not Text or Image10:40
dholbachmh10:41
dpmdholbach, in any case, it's just a question of the syntax, I'll test the branch for now, the important thing is that the markup conversion works10:41
dpmwe can still decide the exact syntax later10:41
dholbachright, I wasn't getting hooked up on the specific naming10:41
dholbachit's more that I think it'd make sense (and make it easy for editors) if we nail the default cases and keep that part easy10:42
dpmIt's nothing I feel strongly about, just a suggestion10:42
dholbachif we need special cases which need a more generic approach I think that's fine10:42
dholbachand we'll find a way10:42
dpmok10:42
dholbachwe might need our own markup for that too, as attr-list and our extension might conflict10:42
dpmyeah10:43
dholbachor might both pick up that syntax :)10:43
dpmhi JamesTait, what's up with it?10:43
JamesTaitdpm, I have a confession.10:43
dholbachthanks dpm - I'll go with what we talked about - it should be easy to change the exact syntax later on and add a more generic case10:43
JamesTaitdpm, it was very green, it's now very red, and I think that's because we changed the .pot file.10:43
dpmdholbach, sounds like a plan10:44
dholbachrock on10:44
dpmJamesTait, yeah, just noticed the slightly different colour :) what did you change in the .pot file?10:44
dpmdo you have a diff somewhere?10:45
=== chihchun is now known as chihchun_afk
dpmI'd have expected the translations to stay the same unless the original strings changed10:45
JamesTaitdpm, we have an endpoint in devportal that generates the .pot file based on what's in the DB.  Previously, that wasn't committed to source code control, because it didn't make sense to, since it wasn't changes in the source that caused those strings to update, but changes in the DB.10:46
JamesTaitdpm, that endpoint now adds a msgctxt to each entry, and we have a tool to auto-import the .po files into our db and push to click index.10:46
JamesTaitdpm, I suspect that's the breaking change, since the strings are still the same in the majority of cases.10:47
dpmJamesTait, that all sounds good so far. Adding a msgctxt shouldn't affect translations10:47
dpmhave you changed the name of the template in LP?10:47
dpmoh, actually10:47
dpmyes, adding a msgctxt might affect the translations10:48
dpmas gettext then thinks it cannot reuse the original translations for a different context10:48
dpmand expects translators to review it10:48
JamesTaitdpm, now, we have the old translations, and I have poedit and the new .pot - I can load the old translations, update them to the new template and upload them to lp for review, perhaps.10:49
zygaJamesTait: the "your account" section doesn't display paypal email correctly, it's only visible when clicking on the edit button10:50
dpmJamesTait, I think there are two options:10:50
JamesTaitdpm, I've done the first part of that for Catalan, but haven't uploaded anything because - well, I'm not on the right translations team, not 100% certain of the process, and didn't want to further break things.10:50
dpm1) What you are describing10:51
dpm2) Ask translators to retranslate10:51
dpmTBH, I think 2) might be the safest bet10:51
dpmIt's not a long translation, it's easy to do, and since the messages are generic enough there are global suggestions from other projects10:51
dpmso in many cases, it'll just be a matter of pointing and clicking10:52
JamesTaitdpm, I thought that as well. :)10:52
dpmJamesTait, I can send an e-mail to the translators list and we can probably get this fixed in a matter of hours10:52
dpmJamesTait, however,10:52
dpmIt's not yet clear to me how these translations are uploaded to the server10:52
JamesTaitdpm, that would be fantastic. I'm sorry we broke it, we expected lp to gracefully handle this.10:53
dpmi.e. on my phone they are still in English10:53
JamesTaitdpm, OK, I can explain that part.10:53
dpmJamesTait, so I think we need to explain that to translators and ensure that they are uploaded10:53
JamesTaitzyga, in https://myapps.developer.ubuntu.com/dev/account/ ?10:54
dpmJamesTait, no worries about breaking it, it's not that you did it on purpose, and it makes sense to have context. But I think we need to explain it well to translators and make sure their translations are used10:54
JamesTaitdpm, the basic process is: we periodically (i.e. whenever an admin changes highglights or departments) run a script to export a .pot file based on what's in the devportal db.10:55
JamesTaitdpm, that gets commited to sca trunk, and lp picks up the change.10:55
JamesTaitdpm, our (frankly amazing) translators do their magic.10:56
zygaJamesTait: no, there it is displayed10:56
zygaJamesTait: on... https://myapps.developer.ubuntu.com/dev/click-apps/1755/10:56
zygaJamesTait: (per app page)10:57
JamesTaitdpm, the updated translations end up in a bzr branch.10:57
zygaJamesTait: there's a "Your account" section at the bottom10:57
JamesTaitdpm, we have a tool that iterates over those files, parses them and updates the devportal db, pushing them out to click index.10:57
JamesTaitdpm, the next time the phone talks to click index (via the store scope), the departments and highlights will have updated translations.10:58
JamesTaitzyga, ah, I see it. Could you file a bug report against software-center-agent and I'll see that it gets picked up.10:59
zygaJamesTait: sure11:00
JamesTaitThanks, zyga. :)11:00
dpmJamesTait, ok, that's clear now. One last question: once the translations end up in the bzr branch, how often are they uploaded to the db?11:01
zygahttps://bugs.launchpad.net/software-center-agent/+bug/143181811:01
ubot5Ubuntu bug 1431818 in Software Center Agent "PayPal email is not displayed in the per-app summary page" [Undecided,New]11:01
JamesTaitdpm, I'm not quite sure about that. The process is new, so it might still be manual right now, but I know nessita is pushing hard to get this all running smoothly right now, so it might become a daily cron job or something.11:03
JamesTaitThanks, zyga!11:03
dpmJamesTait, ok thanks. Could you try to clarify that before I send the e-mail to translators?11:04
JamesTaitdpm, certainly will. :)11:04
dpmcool, thanks!11:05
JamesTaitdpm, apologies again for the breakage, and thanks for the support.11:06
dpmno worries :)11:06
* JamesTait adds dpm to the cake list.11:06
dpm:-)11:06
=== MacSlow is now known as MacSlow|lunch
rpadovanimzanetti, cool!11:49
AskUbuntu_Ubuntu touch how to get HTML 5 app template running? | http://askubuntu.com/q/59631012:50
nik90zsombi: During my clock app test on vivid, I am still getting crashes consistently at different parts of the app like opening/closing the settings page, swiping up the bottom edge etc..I have a feeling that the way I am passing the alarmModel across the app from mainView seems to be the cause.12:52
nik90zsombi: though this all happens only on vivid :/12:53
zsombinik90: because on vivid we have different way on using the model...12:54
nik90zsombi: hmmm..I will look through the alarm example app that you use in the test suite to see if I can spot the difference.12:57
zsombinik90: my sample still uses the single page alarm management, I did not push the changes I made when I tried your page stack way...13:02
zsombinik90: however you can check how the things are done13:03
nik90zsombi: yeah I noticed...the only other difference I see is that I load the alarm model using a QML Loader while you load it normally and pass it on to different part of your sample app. The usage otherwise seems pretty much the same.13:03
zsombinik90: eventually I could prepare the page stack mode I made13:04
dobeydoes oxide not support javascript dialogs?13:20
zygahey, I have a question about webapp-container's option --webappUrlPatterns=URL_PATTERNS -- what is the pattern exactly supposed to be? a glob or a regular expression13:21
zygathe --help page suggests a glob13:21
zygabut the example in generated app suggests it's regexp13:21
zygaand finally it's a weird regexp at that, trailing characters are /*13:22
zygaso what is it?13:22
popeyhave you looked at other webapps?13:23
zygapopey: no, where can I find them?13:23
zygais there a launchpad project group for webapps?13:23
popeyhttp://bazaar.launchpad.net/~popey/webapps-core/bbcnews/view/head:/bbcnews.desktop13:24
popeyhttp://bazaar.launchpad.net/~popey/webapps-core/youtube/view/head:/youtube.desktop13:24
popeytwo examples of mine13:24
zygahmm13:24
zygaok, so what does ? mean13:24
zygais it regexp or glob ?13:24
zygaand ditto for .13:24
popey^ dbarth_13:24
dbarth_zyga: there is a slide deck where this is defined, and documentation on developer.ubuntu.com13:28
dbarth_1 sec.13:28
* nik90 is pissed at vivid UT..steps out to cool down13:28
dbarth_https://developer.ubuntu.com/en/web/tutorials/13:28
dbarth_zyga: ^^13:28
dbarth_this should help you with the url pattern13:29
dbarth_specifically, this is a list of regexps, but with some constraints on the extent of the pattern you can use (for security reasons)13:29
zygadbarth_: if it's a regexp then how can http://bazaar.launchpad.net/~popey/webapps-core/bbcnews/view/head:/bbcnews.desktop work?13:31
zygadbarth_: news* ?13:31
zygadbarth_: that will match "new" followed by any number of 's'13:31
zygadbarth_: is that true?13:32
popeyit works.13:32
zygapopey: then it's not a regexp13:32
popey(I don't care)13:32
zygapopey: I'm trying to understand what it is exactly13:32
zygapopey: so that I can write what I want exactly13:32
zygapopey: without apt-get source'ing the code to check13:32
popeyI made a webapp based on other webapps.13:32
zygain any case the --help message is ambigous and could be improved13:32
dbarth_zyga: calling alexabreu who has the fine details of the regexp engine13:33
zygadbarth_: thanks!13:33
dbarth_zyga: the bbc one should work with any number of symbols after 'new'13:34
zygadbarth_: yeah, It looks like some weird syntax that's neither glob nor regexp, or a regexp that's preprocessed to correct some things13:34
dbarth_it is yes, it's not a true / full regexp13:36
zygaalexabreu: hey!13:42
alexabreuzyga, hey :)13:42
zygaalexabreu: how does the pattern matching on webapps work?13:43
zygaalexabreu: what's the syntax exactly?13:43
alexabreuzyga, what do you want to do?13:44
zygaalexabreu: understand the syntax to know what my patterns mean in practice13:44
alexabreuzyga, what patterns do you have?13:44
zygaalexabreu: looking at http://bazaar.launchpad.net/~popey/webapps-core/bbcnews/view/head:/bbcnews.desktop it's niehther a regexp nor a glob13:44
zygaalexabreu: that's irrelevant, I want to know what the system does13:44
zygaalexabreu: (and I want this to be documented on the webapps-container launcher for others)13:45
alexabreuzyga, basically you cannot have patterns for TLD/SLD, the subdomain wildcards are basically replaced by [^/]* and for the path its "free for all", the widlcard really means .*13:46
zygaalexabreu: hmm, what do you mean by the first part of your statement?13:46
zygaalexabreu: *.foo.com/* is invalid?13:46
zygaalexabreu: how about (m|ssl).foo.com/*13:47
alexabreuzyga, no *.foo.com/* is valid13:47
zygaalexabreu: can you point me to the source that has all the rules or a document that has those rules please?13:47
alexabreuzyga, dont see those as full regexps, more like wildards w/ restricted semantics depending on the location13:47
zygaalexabreu: the problem is that this is not specified anywhere and I don't know what restrictions apply without testing case-by-case13:48
alexabreuzyga, there are some docs here https://developer.ubuntu.com/en/web/ubuntu-webapps-guide/13:49
alexabreuzyga, if you see some missing pieces, or some parts that are unclear please tell me13:49
zygaalexabreu: thanks, looking!13:50
zygaalexabreu: may I suggest to link to that website from w-c --help?13:50
alexabreuzyga, and yes, your use case is relevant since I can help you on a case by case basis and see if things can be improved on the pattern side13:51
alexabreuzyga, yes, very much so :)13:51
zygaalexabreu: ok, I'm debugging this... https://github.com/zyga/SafariBooksOnline/blob/master/SafariBooks.desktop13:51
=== MacSlow|lunch is now known as MacSlow
zygaalexabreu: I realized that m. wasn't enough13:51
zygaalexabreu: added (ssl|m). instead13:51
zygaalexabreu: now I added *. because desktop version (that you can bump into) is going to endlessly redirect between the container and browser13:52
zygaalexabreu: so I started reading about how to describe everything and I realized this is not a regexp anymore by looking at the trailing /*13:52
zygaalexabreu: don't get me wrong, this is okay, it's just hard to discover what it really is at first glance13:52
alexabreuzyga, right, we wanted it to be simpler than regexps13:53
zygaalexabreu: after decates of globs and various regexp implementations I was expecting exactly one or the other13:53
zygaalexabreu: that's fine, this is similar to adblock somewhat13:53
alexabreuzyga, people can easily mess up regexps (also that are quite simple there), so ...13:53
zygaalexabreu: it just needs clear and discoverable explanation on what the pattern means13:53
alexabreuzyga, right, ...13:54
alexabreuzyga, so now on your side https?://*.safaribooksonline.com/* would do the work?13:54
alexabreuzyga, one thing that I might do is add a little "url pattern tester" in the docs13:55
alexabreubut I am not sure how it would help since you have to test it against something13:55
zygaalexabreu: I'm checking that now13:55
zygaalexabreu: yeah!13:55
zygaalexabreu: or a small app that you can run against a list of URLs13:55
alexabreuzyga, right ... something like that13:56
zygaalexabreu: I think just improving --help might be good13:56
akiva-thinkpadHi all13:56
alexabreuzyga, yes13:57
zygaalexabreu: thanks for your help!13:58
zygaalexabreu: yeah, the updated pattern works ok13:59
alexabreuzyga, np, I'll take a note to improve the doc13:59
zygaalexabreu: https://developer.ubuntu.com/en/web/api/ ? 404?14:05
zygaalexabreu: semi-offtopic, is it possible to navigate from the generic browser to a webapp?14:06
zygaalexabreu: say, I google for example.org14:06
zygaalexabreu: click on a link from google14:06
zygaalexabreu: and instead of following there inside the browser14:06
zygaalexabreu: switch to example.org webapp14:06
zygaalexabreu: ?14:07
alexabreuzyga, unfortunatley no, ... not from the webbrowser (but from other apps yes)14:07
zygaalexabreu: that would imply that a global (or per user) list of patterns exist and that conflicts have a handler that can resolve them14:08
alexabreuzyga, mmmh the 404 is a bug indeed14:08
zygaalexabreu: the same thing happens on the next tab (cookbook)14:09
alexabreuzyga, yeah14:09
ogra_we hade too many cooks that broke it ;)14:09
ogra_*had14:09
alexabreuzyga, well we have that (list of handlers), the list is not queryable though per se by an external app, which makes it has to know if an app outside the webbrowser can handle the url per se14:10
alexabreuzyga, it is a good suggestion though14:10
zygaalexabreu: oh, that's great then14:10
zygaalexabreu: I think it would be a great way to fix some navigation issues14:10
zygaalexabreu: like clicking on g+ from gmail14:11
zygaalexabreu: having to re-authenticate in the basic browser14:11
zygaalexabreu: and then clicking on gmail14:11
zygaalexabreu: and ending up with two gmails14:11
alexabreuzyga, well, it is debatable though, kind of hard to know what the user wants, and might be disturbing to the user all those app changes14:12
zygaalexabreu: yeah, I'm sure this is not the final perfect design but auth issues are also problematic14:12
alexabreuzyga, having a ui option to open a tab as a webapp if one exists for that website could be interesting14:12
zygaalexabreu: double so if you have 2fa14:12
* zyga is totally psyched by insta-reviews14:21
zygaupload, refresh, published14:21
zygaI found a bug in unity 8, install app, rename desktop file, push to store, update, tap on sidebar14:30
zygait slows down (freezes) heavily14:30
zygaafter unpinning the launcher and re-launching it's okay14:30
=== chihchun_afk is now known as chihchun
dholbachdpm, lp:~dholbach/help-app/1430735/ now can do class='button' and does the .textonly thing according to what we said in the bug report14:59
dholbachmarkup is "{: .button }" (using attr_list)14:59
dholbachand !!T and !!I14:59
dholbach... which we can obviously change to whatever else14:59
dholbachbut it seems to work reliably in the branch now15:00
dholbachshall I propose it as a partial fix for bug 1430735?15:00
ubot5bug 1430735 in Ubuntu Help App "Allow richer styling of questions/answers" [High,In progress] https://launchpad.net/bugs/143073515:00
dpmdholbach, awesome! I won't probably have time to test this today, but I'll have some time Monday morning15:00
dholbachI know that !!I still needs to be implemented15:00
dpmdholbach, yeah, makes sense to propose it15:00
dholbachok15:00
dholbachdpm, balloons: https://code.launchpad.net/~dholbach/help-app/1430735/+merge/252910 :)15:01
balloonsdholbach, Text conflict in edit-here/translations.py15:05
dholbachyep15:05
dholbachI'll merge from trunk15:05
dholbachthat'll fix it15:05
dholbachdone15:06
dholbachballoons, I added a commit message with a bit more explanation15:16
balloonsdanke15:17
nik90dpm: Any idea why bug 1431914 happens where it loads the translations of another language than the one chosen in system settings?15:27
ubot5bug 1431914 in Ubuntu Clock App "System language is pt_BR, but some strings are in pt" [Undecided,New] https://launchpad.net/bugs/143191415:27
doflahertyI've got an app and I want it to be able to export pictures created in it via the content hub - where can I save the file on the device?15:46
dobeydoflaherty: $XDG_DATA_HOME16:06
dpmnik90, I don't know, I suspect bad translations? I'll check it out later16:07
dpmthe system should deal with loading the correct translations for the right lang code16:08
dobeynik90: what version of the clock app is that in?16:08
nik90dpm: the bug reporter has provided strings which have been translated into pt_BR and pt...and yet it defaults to pt incorrectly sometimes16:08
nik90dpm: the current version in the store is 3.3.19216:09
dobeynik90: that string was translated in pt_BR after that revision16:09
nik90dpm: oh .. so if translations are not present in pt_BR, it then defaults to pt?16:10
nik90I mean dobey ^^16:10
dpmthat could well be, but I'm not sure16:10
dobeygettext automatically falls back to xx when the lang is xx_YY and xx_YY doesn't have the translation. if xx has the translation, then it is displayed. if not, then it is displayed untranslated16:10
dpmI know it's the behaviour for ca and ca@valencia16:10
dpmok, then that it is16:11
dobeynik90: so afaict, simply releasing an update will fix it16:11
dpmthanks dobey16:11
nik90dobey, dpm: ack. thnx16:11
doflahertydobey - is that available from QML?  I am saving a canvas, which works if I save it as /tmp/foo.png but I'm not sure if that is only working because I'm running from QtC16:11
nik90dobey: yeah releasing to the store is pending QA feedback atm :)16:11
dobeynik90: sure. just being clear what the "fix" is for that bug :)16:12
dobeydoflaherty: you need to write c++ to use QStandardPaths afaik16:12
doflahertydobey, yeah that's what the camera-app seems to do16:12
doflahertyI didn't think confined apps could write to temp though16:17
dobeydoflaherty: they can't16:31
dobeydoflaherty: they can write to their confined cache and data directories16:31
doflahertydobey: and that's what XDG_DATA_HOME points to?16:31
dobeydoflaherty: i'm pretty sure it is overridden for confined apps to point to their confined directory, yes. as is $XDG_CACHE_HOME16:32
dobeyQStandardPaths::writableLocation(StandardLocation::GenericDataLocation) for example should give you the $XDG_DATA_HOME you can write to16:33
dobeyand ::GenericCacheLocation for the cache dir16:33
dobeyanyway, i need to go get lunch16:34
doflahertyalright, thanks16:34
ogra_why oh why is the QT-project forum css so broken ...16:36
rpadovaniDanChapman o/ Do you know a C++ class to create a "QmlMergeModel" where you can merge more than on model? gcollura says you're the right person to ask to :-)16:36
nik90ogra_: that's their new design :P16:37
ogra_nik90, one that makes all code look crappy as well ?16:37
nik90hehehe16:37
nik90ogra_: although I love what they did with the qt docs though ..for instance http://doc.qt.io/qt-5/qml-qtquick-listview.html16:38
dholbachdpm, balloons: I updated https://code.launchpad.net/~dholbach/help-app/1430735/+merge/252910 - we're almost there16:39
ogra_http://forum.qt.io/topic/39756/qml-and-js-reading-json-file-and-change-content-on-the-go/816:39
ogra_something like this16:39
dholbachdpm, balloons: just need to figure out how to parse the image from the markdown, so we can safely put it into its own <div>16:39
ogra_where all indendation is one and you have parts with scrollbars in the middle of code blocks etc16:39
nik90ogra_: yeah that looks hideous with no indentation16:40
ogra_yep16:40
dholbachand with that....... I call it a day - have a great weekend everyone!16:43
nik90dholbach: enjoy your weekend :)16:45
dholbachthanks nik90 - you too!16:46
mzanettiseb128, look at that... .5 appeared here :)16:47
seb128mzanetti, go figure ... better later than not though ;-)16:49
mzanettiindeed :D16:49
=== rickspencer3_ is now known as rickspencer3
JamesTaitdpm, still around?17:01
nik90rpadovani: hey, if you got time, can you review https://code.launchpad.net/~nik90/ubuntu-clock-app/improve-setting-listitem/+merge/25293017:07
rpadovaninik90, on Sunday night, sorry, out of home17:08
nik90rpadovani: np17:08
mzanettiseb128, confirming that it works again. thanks a lot17:47
dpmJamesTait, around, but about to call it a day17:48
JamesTaitdpm, nm, sent you mail, otherwise I'll forget. :)17:48
* JamesTait is getting old.17:49
dpmJamesTait, ok, perfect, thanks! I saw the e-mail on my inbox, haven't had the chance to read it yet17:49
seb128mzanetti, yw!17:49
dpmballoons, http://pastebin.ubuntu.com/10592112/ (the output you were asking for on your comment in the tutorial)17:50
balloonsdpm, thanks.. I managed to recreate.. though I don't know why. It'll likely ship like that for now unless I find a fix. Going to try and pages published :-)17:51
mzanettiballoons, can I help?17:51
mzanetti(assuming this is about the qmltests)17:51
dpmballoons, yeah, I think it'd be good to investigate it, but I don't see it as much of an issue, shouldn't block publishing the tutorials17:52
balloonsmzanetti, sure.. Just a weird error being given by qmltestrunner before the testrun17:52
mzanettiah, the <unknown file>17:52
balloonsright17:52
mzanettiweird indeed... let me have a look17:52
balloonsthere's a few updates I'm going to push, but they didn't change anything so you should be good17:52
balloonsmzanetti, if you also want to lend an eyeball to the tutorials, I'll share the link17:57
nik90balloons: what was the website where you can see all the necessary autopilot bug requests?18:14
nik90for core apps18:14
balloonsnik90, qml tests too! http://people.canonical.com/~nskaggs/core-apps-test-sponsoring.html18:14
nik90thnx18:14
nik90balloons: :-)18:14
ahayzen_balloons, what is that list sorted by?18:16
boghisonHi! Could someone help me in regards to OAs?18:16
balloonsahayzen_, should be by priority then age18:17
balloonsclicking a column will resort18:17
ahayzen_hmmm18:17
ahayzen_ah18:17
ahayzen_it was like totally random for me lol18:17
balloonslol18:20
=== aaron_ is now known as ahoneybun
balloonsso ahayzen_ nik90 about?19:29
ahayzen_balloons, yup19:29
balloonsahayzen_, what do you think? https://developer.ubuntu.com/en/apps/quality/19:29
balloonsthere's a couple new qml testing tutorials there19:29
ahayzen_ooo :D19:29
balloonshttps://developer.ubuntu.com/en/apps/qml/tutorials/qml-unit-testing/ and https://developer.ubuntu.com/en/apps/qml/tutorials/qml-integration-testing/19:29
ahayzen_balloons, thats gonna help sooooooo much :)19:31
balloonsahayzen_, I hope so. The autopilot tests too in the example are much updated19:39
ahayzen_:)19:39
balloonsthey were old and didn't incorporate all the new goodies.19:40
zygaballoons: woot, that's pretty nice!19:45
balloonsI hope so.. now to go on mission and get folks to write some unit tests!19:46
zygaballoons: we're strugging with checkbox unit tests19:47
zygaballoons: autopilot crashes on mesa/llvm when we run our tests on vms19:47
zygaballoons: we're pretty stuck with that19:48
balloonszyga, struggling because?19:48
balloonsohh.. well, nothing with qmltestrunner then, just autopilot?19:48
zygaballoons: everything works on device and on non-virtualized desktops and on virtualized machines19:48
zygaballoons: stuff crashes on canonistack19:48
zygaballoons: with xvfb19:48
zygaballoons: qt crashes there on some low level mesa/llvm bug19:48
* zyga looks for the link19:48
zyga(in essence, we cannot run our tests in CI)19:48
zygaI was wondering how core apps get CId19:49
zygaballoons: http://paste.ubuntu.com/10585366/19:51
zygaballoons: LLVM ERROR: Cannot select: intrinsic %llvm.x86.sse41.pblendvb19:51
zygaballoons: have you seen anything like that?19:51
balloonszyga, this is on canonistack where exactly? is this CI run?19:53
balloonsthe core apps all run in CI supported environments19:53
balloonswhat that amounts to though is a desktop vm with Xfvb19:54
zygaballoons: we have a juju-spawned tarmac instance19:54
balloonswhy not run on device directly?19:54
zygaballoons: we don't have that and this is not device-centric19:54
balloonsI know CI has had some trouble with virtualizing some of these apps19:54
zygaballoons: our tree has many components that get tested uniformly on multiple releases19:55
zygaballoons: and we're not using anything the CI team came up with as back when we started CI story was poor and what we wanted didn't work19:55
zygaballoons: so we've built our own and sticked to it19:55
zygaballoons: tarmac spawns lxc/vm for each supported release19:55
zygaballoons: inside we provision dependencies and run our tests19:56
zygaballoons: (for lots of thingds)19:56
zygaballoons: adding autopilot is a new thing and it fails for us now :/19:56
balloonsahh.. well, such is life rolling your own I guess, heh ;-(19:57
zygaballoons: well, hence the question, how does CI run tests for core apps?19:57
balloonscan you run inside a different environment? does it matter?19:57
balloonszyga, Xvfb19:57
zygaballoons: that's what we're using19:57
zygaballoons: and it works everywhere except for canonistack somehow19:57
zygaballoons: we suspect it might be the raw hardware (old machines?)19:57
zygaballoons: as it all works on 1st gen core i7 and younger19:58
zygaballoons: we can run it on any laptop in the back like we used to19:58
balloonszyga, well what if you run it on bare metal, even provisioned?19:59
balloonsdoes it change things?19:59
zygaballoons: it works everywhere except for canonistack so far19:59
zygaballoons: we cannot provision bare metal on canonistac, can we>20:00
balloonszyga, no; no magic powers there afaik20:04
zygaballoons: we'll keep digging20:05
zygaballoons: there are reports of bug like that all over the place but it seems to be fixed20:05
balloonszyga, I guess I was saying 2 things. 1, talk to CI as they have had similar issues and they might have a solution. 2) find somewhere else to run the tests for now if you can20:05
balloonsafaik, for now CI is sticking with bare metal, but I recall someone calling they had it working  . . .20:06
zygaballoons: yeah, I plan on working closer with the CI team starting from this month20:06
zygaballoons: to unify what we do20:06
dobeyzyga: you are trying to run autopilot tests without a dbus session?20:10
zygadobey: oh, curious question, I don't know, let me look20:10
zygahttps://code.launchpad.net/~kissiel/checkbox/autopilot-testing/+merge/25273120:10
zygathis is the merge request that triggered this20:10
dobeyzyga: well, the python trace is clearly complaining about an issue trying to get the dbus address :)20:11
zygaI suspect so20:11
zyga+xvfb-run --server-args='-screen 0 1024x768x24 -ac +render -noreset' make autopilot20:11
zygathat's what we run20:11
zyga(+ is from the diff)20:11
balloonszyga, you need a window manager too20:11
zygaohh :)20:11
zygaso what's the minimal set of this to do?20:11
balloonswell, probably not for checkbox, but it will simulate better using one20:11
dobeyrunning autopilot tests in CI like this is a pain in general20:11
balloonswe use a modified autopilot3-sandbox script, and use ratpoison20:12
zygaballoons: where can I get that?20:12
zygaand what is ratpoison?20:12
zygawe could use dbus-launch to get a session bus20:12
zygabut to me that still looks like it will crash on llvm :/20:13
balloonszyga, also have you used or looked at adt?20:13
zygaoh, yes, we use that but not for CI20:13
dobeyzyga: this is to test checkbox built as a click?20:13
zygathis is before packaging20:13
zygano, this gets a merged but not commited branch20:13
balloonszyga, http://bazaar.launchpad.net/~autopilot/autopilot/trunk/view/head:/bin/autopilot3-sandbox-run20:13
zygaruns all tests on all components (python, C++, jobs, etc)20:13
zygaone of that is autopilot20:14
dobeyzyga: you're running your own tarmac setup for checkbox, and not having your branches landed by the CI team's stuff?20:14
zygadobey: yes20:14
balloonszyga, ratposion is a simple autofocusing window manager. it plays real nice with autopilot and touch apps20:14
zygadobey: this has been running for 2+ years now20:14
zygaballoons: ah, I get it20:14
zygadobey: we'd love to discuss how to simplify what we need to run20:14
zygadobey: but bear in mind we're not just running click20:14
dobeyzyga: sure. i wish i could run my own taramc for the stuff i have to work on20:15
zygadobey: we run tests on 12.04, 14.04, 14.10 and 15.04 for mobile, desktop and server components20:15
zygadobey: well, what stops you?20:15
dobeyzyga: sure, but CI has jobs which build a click, install it on a device, and run the autopilot tests on an actual running device20:15
zygadobey: we have our stuff charmed20:15
zygadobey: with documented configs and scripts20:15
zygadobey: ah, yeah20:15
zygadobey: we'd love that iff that was a service we can tie into20:16
dobeyzyga: management and the whole "fitting into the standard UE-wide processes" bit is what stops me really20:16
zygadobey: not a all-or-nothing :/20:16
zygadobey: yeah, I understand20:16
zygadobey: I'd love travis-like service for all ubuntu engineering20:16
zygadobey: where you just stick a trivial file in your git tree20:16
zygadobey: and magic happens elsewhere20:16
dobeyzyga: i'm not sure what you'd specifically need that wouldn't be doable with the UE CI setup20:16
zygadobey: supporting all the ad-hoc CI costs a lot20:16
dobeyugh yaml20:17
zygadobey: well, whatever20:17
zygadobey: yaml is irrelevant20:17
zygadobey: it's the amount of automation on the other hand20:17
zygaother *side*20:17
dobeyyeah, i'm just a little annoyed that we're actually using it for things :)20:17
zygawe have nothing like that in ubuntu20:17
zygausing what? travis?20:17
dobeyyaml20:17
zygawell, could have been worse20:18
dobeyhow is the UE CI nothing like travis?20:18
zygaat least it's not xml :P20:18
dobeyi mean, setup isn't trivial, but it should be able to do everything that's needed20:18
zygayaml is moredately easier to write and has support for comments, parses are all bad and had a history of buffer overflows and such20:18
zygadobey: yeah, but there's nothing that provides an integrated package like travis+github20:19
dobeyi don't understand that20:19
zygadobey: where anyone can start a new project, write 3 lines and have total CI support20:19
zygadobey: do you know what travis is?20:19
dobeyoh well20:19
dobeyyes i know what travis is20:19
zygadobey: sorry, I'm not making much sense, it's late and I'm tired20:19
zygadobey: I just wish there was something like that for folks working on ubuntu20:20
dobeybut complaining that it's not a 3 line file you dump in the repo that gets you set up in the current CI train, is not a useful complaint as to why we shouldn't use UE CI20:20
zygadobey: or at least for canonical folks at first, when it is in beta20:20
zygadobey: I don't even know how to begin using UE CI20:20
dobeyzyga: it's more than 3 lines and not directly in your tree, but we have something like that20:20
zygadobey: I wish I could20:20
zygadobey: I tried to find out many times20:20
zygadobey: it's not discoverable20:20
zygadobey: and I don't even know what the CI train does in practice, if that covers what we're using so far20:21
dobeyok, "not discoverable" is a useful complaint that you should make to the CI team (or just your manager, so they can complain to the CI team)20:21
dobeyzyga: #ubuntu-ci-eng and "cihelp: i need help understanding how to get a project set up in CI train" :)20:21
dobeyzyga: but maybe better for you to do on monday at this point :)20:22
zygadobey: cihelp is a bot or something?20:23
dobeyno, it's just a term that all the ci folks have highlighted in their clients20:23
dobeyto get the attention of the ci vanguard20:23
=== aaron_ is now known as ahoneybun
=== aaron_ is now known as ahoneybun
mhall119popey: docviewer appears to have lot URL dispatcher/Arguements support22:19
popeyhmm?22:19
popeyque?22:19
mhall119lost22:19
mhall119not lot22:19
popeyfile a bug pls22:20
mhall119maybe it's content-hub it's missing22:24
mhall119popey: https://bugs.launchpad.net/ubuntu-docviewer-app/+bug/143206622:26
ubot5Ubuntu bug 1432066 in Ubuntu Document Viewer App "Opening images from Content Hub request does nothing" [Undecided,New]22:26
popeythanks22:26
popeyah no22:26
popeyimage support is removed22:26
popeydocument viewer is a document viewer22:26
popeynot an image viewer.22:27
mhall119it used to be an image viewer22:31
mhall119sounds like we need a new core app project :)22:31
popeywe have gallery22:32
popeythats what it's for22:32
mhall119I just want to *view* an image, not add it to my collection22:33
mhall119you don't add image attachments to Shotwell on the desktop22:34
=== aaron_ is now known as ahoneybun
popeymhall119: some do23:03
popeymhall119: an image is not a document though23:03
popeydocviewer is too heavyweight for mere images.23:04
popeyyes, make an image viewer :)23:04
=== aaron_ is now known as ahoneybun
nik90balloons: ping23:48

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