=== chihchun_afk is now known as chihchun === chriadam is now known as chriadam|away [07:30] good morning [07:50] dholbach: Good morning [07:50] hi sturmflut-work [08:11] mzanetti: who was the designer again of machines vs machines ? [08:53] salut davidcalle [08:59] dholbach, hey :) === rmescandon is now known as rmescandon|brb === rmescandon|brb is now known as rmescandon === JamesTait is now known as Guest34404 === chihchun is now known as chihchun_afk === Guest34404 is now known as JamesTait [09:50] justCarakas: mivoligo === dpm_ is now known as dpm === chihchun_afk is now known as chihchun [10:11] mzanetti: thx :) I found the last visual thing he hid :D [10:20] justCarakas: what did you find? [10:30] the ubuntu logo :) [10:31] mzanetti: it was hidden in plain sight :p [10:32] justCarakas: hmm... ok, I guess I don't know about it :D [10:32] justCarakas: there's something else too :D [10:32] its the third one I found :) [10:32] I you are talking bout tux ? [10:33] geez, I really need to look closer to those levels :D [10:33] mzanetti: or something else ? :p [10:33] yeah [10:33] I spoted tux on my nexus 4, and that wasn't easy :p [10:35] I had a question about the avil tower btw mzanetti should it be possible for the bad guys sometimes not to be hit when they walk by it ? [10:35] which tower? [10:35] mzanetti: I especially notice it when I'm on x2, on x1 I pass the round but on x2 they all have just a tiny bit left [10:35] the hammer smashing thing [10:36] I also noticed that sometimes they wouldn't get hit what caused me to lose a leven :p [10:36] level [10:36] justCarakas: yeah, if the tower is not upgraded, it's range isn't big enough to catch them when they're in the corners [10:36] which is on purpose [10:36] hehe, you meany === chihchun is now known as chihchun_afk [11:51] mzanetti, you know the volume indicator keeps appearing randomly? === _salem is now known as salem_ === ara is now known as Guest32645 === rmescandon is now known as rmescandon|lunch [13:23] dholbach: The only comment I have about ubuntu-devices-help is that I was a bit confused as to why the filename extension for the markup files is ".html" and not ".markup" [13:23] dholbach: But that's just minor details [13:26] sturmflut-work, let me add something to the HACKING doc [13:39] balloons, the beekeeping workshop - absolutely amazing! [13:39] there is an "r" missing [14:03] ogra_, no :) [14:04] :) [14:04] mhall119, do you know when/how we can update the html bits on the api website? iirc there was a fix which made it into trunk already, but didn't get on to the website yet [14:05] arg, can anyone remind me where the docs are for Ubuntu.Components.Extras? [14:05] I recall a very nice wiki page, but can't find it :/ === rmescandon|lunch is now known as rmescandon [14:26] I'm not sure where they are, mhall119, do you perhaps know where the Ubuntu.Components.Extras live? They might we outside of d.u.c ^ [14:26] dholbach, excellent! I have my own fun this week. I have 111 trees to plant! [14:26] what?! [14:26] 111? [14:26] holy cow - what kind of trees do you have? [14:26] are you trying to re-forest your state? [14:26] balloons for Florida! [14:27] dpm, dholbach that's just the start, lol.. I have more to order but my wife told me to get these planted first, hehe. These are all native trees, so :-) [14:28] yeah, starting with the 111 might be a good start already :-P [14:28] I also wanted to order some orchard non-native stuff so they'll be next; apples, pears, figs, that sort of thing. [14:29] woah, nice :) [14:29] sounds like you could do with a beehive too :) [14:29] dholbach, indeed I could! Going to have lots of blossoms soon enough [14:29] beautiful :) [14:29] I'll have to tap your new foud knowledge for that [14:30] take some pictures of your 111 trees! :) [14:47] https://www.adjust.com/assets/downloads/the-undead-app-store.pdf [14:59] balloons, is this MP still needed? https://code.launchpad.net/~canonical-platform-qa/sudoku-app/autopilot-workaround_dialog/+merge/246255 [15:02] I don't think elopio is going to get around to finishing that === charles_ is now known as charles === ken_ is now known as kenvandine [15:34] nik90, PageWithBottomEdge is not quite working for me, for some reason I seem to recall you wrote this component, right? === rmescandon is now known as rmescandon|afk [16:18] Hey, does anyone know how to use pt for font size in a Label, i've tried using font.pointSize: but that doesn't seem to have any affect? [16:42] ahayzen: is there a reason you need points? I'm not sure its possible to use points, and even if you could, it would be highly discouraged. See the bottom of https://developer.ubuntu.com/api/devel/ubuntu-12.04/qml/ui-toolkit/resolution-independence.html [16:42] josharenson, we have a pt size from design ... its too large to use fontSize: "x-large" ... maybe i can ask them for a GU size instead [16:43] * ahayzen would prefer GU as well :) [16:44] ahayzen: Thanks a good reason I suppose, even though its resolution dependent... I know there exist approximate conversions between font point and pixels.... [16:45] josharenson, yeah but you are right we should be using GU instead ... i'll see if i can get design to give me the size in GU or figure it out myself ;) [16:45] ahayzen: :-p good luck [16:56] timp: are you still around? I have an API addition to i18n here, to allow for tagging of translations that will be localized by a library later https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/i18nctag/+merge/248260 and I also added it to https://docs.google.com/a/canonical.com/document/d/1qDcfbu9aAj7uU9qzjXCOJn8zGexBnXwZCgO8pLDsO5M/edit# [16:58] kalikiana: yes I'm here [16:58] kalikiana: uhhm.. yeah I'll need to figure out the use cases for noop [17:01] kalikiana: since it is not immediately clear to me from the docs you added to the code, maybe the docs can be extended a bit? === brendand is now known as road-slightly-ru === road-slightly-ru is now known as brendand [17:03] timp: so, the use case for Pete for instance is this: UserMetrics look somewhat like this: Metric { format: "Read %1 book"; emptyFormat: "No books today"; domain: "foobar" } [17:03] the problem with the above is that nothing will pick up the strings as translatable [17:03] so you would need to add something like i18n.tag("Read %1 book") to make things work [17:03] even though that won't be translated right there [17:08] timp: do you think it would make sense to add a proper QML example such as the above to the docs in the code? [17:14] kalikiana: why don't you use dtr() in that case? [17:15] hmm I'm not sure how to use singular/plural translations for 0/1/more [17:16] timp: forget plural here, long story short, Metric can't use plurals because gettext doesn't support floating point numbers [17:16] the %1 is just a number, and format is just gettext [17:16] timp: why not dtr - because the translation must be done by UserMetrics, using the domain, NOT in the app itself [17:17] kalikiana: again, why not use dtr()? [17:18] my irc client is a bit weird. I sent a question, then you answered it, then I see my question appearing.. [17:18] kalikiana: isn't that the whole reason for having dtr? So that translations can be part of libraries, not of the app itself? [17:18] timp: UserMetrics uses dtr here [17:18] in its implementation [17:19] so it will do i18n.tr('foobar','Read %1 book'.arg(count)) [17:19] however [17:19] the app itself must pass the original string [17:20] kalikiana: yes, I think a proper qml example in the docs may help:) [17:23] kalikiana: so UserMetric has some logic inside to decide between 0/singular/plural/.... depending on the string it gets, that's why you don't use dtr() directly [17:34] timp: no it doesn't. it simply pass in a number as I showed above :-) [17:34] there's no support for floating point numbers in gettext [17:34] that's an issue beyond this particular API, though [17:35] timp: more obvious example to reflect this "Ran %c miles" could be rendered as "Ran 0.5 miles" but gettext isn't aware of decimals [17:36] sorry "Ran %f miles" [17:38] timp: we might generally want a plural version of i18n.tag such as i18n.tag(singular, plural, count), I didn't add it here because there's no known use case for now [17:38] and if no app uses it… it's hard to be sure it works [17:39] maybe I should add it for completeness? [17:40] kalikiana: yeah probably. Since tr() can accept one or three (singular, plural, n) parameters, maybe tag should also [17:41] true [17:41] kalikiana: still the use of tag() is not clear to me. I understand the problem that gettext doesn't support floats, but not how tag() solves that issue [17:41] kalikiana: probably a full code example helps with making it clear to me [17:41] kalikiana, we had to change "%1 " + i18n.tr("songs played today") to i18n.noop("Songs played today: %1") because we couldn't have the singluar case ... would your above solution allow us to have a singular case and plural case working with inforgraphics? [17:42] timp, ahayzen: i18n.tag does not solve the issue of plural here, it's fundamentally impossible to use floating point plurals with gettext because they don't exist in the .po file structure [17:43] I pointed it out to clarify the use case of the example code [17:44] timp: ahayzen: what i18n.tag *does* is let you make it known that strings must be localized even if you will not do it yourself [17:44] the one displaying the strings is not the app [17:44] they show up in the lockscreen [17:44] kalikiana, ah ok ... so we are just using the infographic count like an int (even though it is actually a float) as all we do is increment it ... sorry i understand now :) [17:46] ahayzen: yes. it would be good enough for the case of music. but it'll cause funny results in cases like "Walked 0.5km" or "Ate 2.5kg chocolates" [17:46] kalikiana, yeah i see the issue now [17:47] ahayzen: it does vex me that there's no viable work-around :-D enhancing gettext isn't easily done, though [17:49] ahayzen: what you did is exactly what the gettext docs recommend, at the bottom of https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html [17:51] ahayzen: you could of course do something like: str = n > 0 ? dtr("1 song played", "%n songs played", n) : tr("No songs played") [17:51] heh...there was still a minor 'discussion' whether that was grammatically right and whether it 'read' right ;) [17:52] ahayzen: maybe dpm knows how your translation in this case should be done [17:52] timp, surely that would not work ... isn't that what kalikiana was saying? they are floats...and we need it to be done by usermetrics [17:53] ahayzen: ah.. I thought your variable was a float, but you will display only its integer part? [17:53] ahayzen: true, if you want to show "songs played: 2.5" then my solution doesn't work [17:54] timp, idk its the Metric thing? this is the mp with the change https://code.launchpad.net/~unity-team/music-app/infographics-translations/+merge/248251 [17:54] timp, all we do is go metrics.increment() to increase it....and then do %1 in the string [17:54] ahayzen: hey dude https://bugs.launchpad.net/music-app/+bug/1416373 the click app in there is much easier to tap the continue button however it looks like if you tap it four times and go back a page you can't tap on it again. :) off by one error maybe :) [17:55] Launchpad bug 1416373 in Ubuntu Music App "Minor issue on the initial start up screen" [Medium,Fix committed] [17:55] this is the first time I see the metrics [17:55] ahayzen, kalikiana I have to leave now, I will have a look at it later [17:56] davmor2, we were confused what you meant, and i couldn't reproduce with the landed code.... the continue button should disappear when you get to the 3rd slide? [17:56] ahayzen: so on the click package it doesn't disappear just sits there :( [17:57] davmor2, i'm half convinced that victor added that change after the click he built ;) [17:57] ahayzen: might be [17:58] ahayzen: other than that it looks good to me I can now tap roughly in the area of the arrow and it continues nicely [17:59] timp: I'll expand the docs to show an example [17:59] ahayzen: also swiping works fine but isn't as obvious when there is a button, those shiny shiny button demand pressing :) [18:00] davmor2, cool :) ... also would you have any time in the short term todo another round of music-app QA as we have a sortof half critical bug we need to land into the store at some point soon :) ..and possibly this infographic fix [18:02] ahayzen: well I guess it can't land till popey is back anyway :) but that shouldn't be an issue but I'm not sure how it will land now as we are only targetting monthly ota's aiui, so I guess it will land in the store be added to the monthly ota when that happens :) [18:03] davmor2, yeah i guess we'll target ww07? === rmescandon|afk is now known as rmescandon [20:11] balloons, is there current AutoPilot documentation available on d.u.c now? [20:14] rickspencer3, not quite yet. mhall119 and I are working on getting it integrated to the site, in the same way the other API docs are, but it's requiring some work. mhall119 could give more details. http://developer.ubuntu.com/api/devel/ubuntu-14.10/python/autopilot/ has the slightly older documentation [20:14] thanks balloons [20:14] I threw up http://people.canonical.com/~nskaggs/autopilot/, which is the latest and greatest [20:17] balloons, fyi, 404 ;) [20:18] 404? with my people link? [20:18] perhaps your browser needs http://people.canonical.com/~nskaggs/autopilot/index.html [20:19] balloons, any idea how to AP to do a bottom edge swipe? [20:21] rickspencer3, yes. bottom edge swipe was a contested helper. The issue is the bottom edge can be done different ways. for that reason I believe it's been left as something done by app devs in each app, as a specific implementation. Anyways, to answer your question, use the drag method on pointer [20:24] so for example, here's how the clock does it. Albeit, it uses an object on the bottom you swipe: http://paste.ubuntu.com/10021543/ [20:24] more or less self.pointing_device.drag(start_x, start_y, stop_x, stop_y, rate=2) is what you need to know [20:25] ok [20:25] I thought there might be a convenience function for it [20:26] right, since swiping the bottom edge is implemented many ways, it's a bit hard to have a common method [20:33] rickspencer3: the tl;dr on getting Autopilot docs into the API website is that they require changes to data models and CSS, so it's going to take more work to get that first import going [20:56] balloons, is there a "sleep" function in AP? [20:57] rickspencer3, why not use the system sleep? [20:57] brendand, I dunno, I thought there might be something built in :) [20:57] time.sleep(