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

ahoneybundamn my app is going to hit 1100 downloads02:49
sturmflut2http://blog.meizu.it/arriva-il-meizu-mx4-ubuntu-edition/ The Meizu MX4 with Ubuntu will launch in europe on thursday06:25
dholbachgood morning07:08
=== chriadam is now known as chriadam|away
dholbachdpm, regarding the clock app build - I think disabling the test that require network is the way to go08:09
dholbachor I guess you could mock a reply from the test server08:10
dholbachI mean save the reply and use that08:10
dpmdholbach, thanks. That's what I was thinking as well, but I wasn't sure whether the test failure was causing the build failure for starters08:11
dholbach(and maybe add something which updates the saved server reply for every release)08:11
dpmdo you think that's the case?08:11
dholbachyes, network is disabled08:11
dpmok08:11
dholbachit could introduce all kinds of security ugliness08:11
dpmack08:11
dpmdholbach, I've got another build issue on that core apps PPA - both the terminal app and the file manager app have some duplicate code in their repos: a QML PAM plugin. Back then we did it that way as it was easier for Jenkins to build directly from each individual repo, as it couldn't easily pull from an external common repo that would contain the plugin. This means each package build (terminal and file manager) builds the QML PAM plugin and tries08:14
dpmto upload it to the PPA. As the package version is based on bzr rev, these packages have got different versions, so one of them fails if the last one uploaded has a higher version08:14
dpmdholbach, while explaining this I guess I had an idea, we should probably just change the name of the qml plugin package08:15
dpmqml-plugin-terminal and qml-plugin-filemanager or something like that?08:15
dpmor is there a way to ensure both packages have got the same version even if they're build as part of their apps' source package?08:16
dholbachthe clean way would be to separate it out into its own source package08:20
dholbachand then just let both apps depend on the binary package it produces08:20
dholbachthat'll avoid duplication and having to update the code in multiple places, but yeah - it should also work to rename it to qml-plugin-$APP08:21
dpmdholbach, where would the separate source package be created. In the source tree of just one of the apps?08:23
dholbachseparate source package would mean separate project08:24
dpmyeah, that's what jenkins was having trouble with08:24
dholbachcouldn't it just live in the archive?08:24
dholbachand be pulled in like any other package?08:24
popeyor in the ppa?08:24
dpmI can't remember all the details when we set it up. In theory, yes, but it would still be a separate package for the .deb, whereas the click would still need to ship its binary. And while building the binary from source in the same repo was easy, it wasn't if it was in a separate repo08:28
dpmi.e to put it in the .click08:28
dholbachah ok08:34
dholbachor you'd need something in the build click hook which downloads and extracts the library08:35
dholbachsalut davidcalle08:41
* dholbach relocates to the office, brb08:41
mardyzsombi_: hi! Since installing the OTA-4, my app logs get filled with lines like "<Unknown File>: QML UCDeprecatedTheme: Theme.palette is deprecated. Use ThemeSettings instead."08:53
mardyzsombi_: is there a bug for that?08:53
mzanettimardy, zsombi_ is on holidays.08:53
mzanettimardy, it is known, will be gone with Components 1.3. t1mp might know more details08:54
mardymzanetti: thanks08:54
mardyt1mp: hi :-)08:54
mardyt1mp: well, I don't care if it goes with 1.3, but since my app is using 1.0 it should continue working without warnings, as long as the 14.10 framework is installed08:55
seb128mardy, mzanetti, I opened https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1457528 about that08:57
ubot5Launchpad bug 1457528 in ubuntu-ui-toolkit (Ubuntu) "Theme.createStyleComponent deprecation useless warnings are displayed" [High,Fix committed]08:57
mardyseb128: thanks!08:58
seb128yw!08:58
mardyseb128: actually, mine is a bit different case: I *am* using the Theme class, but still I don't think I should see any of these warnings09:04
mardyseb128: I'll comment on the bug, let's see if they prefer me to open a new one09:04
t1mpmardy: I guess it is a separate bug, since there is a fix that doesn't print the warning when you don't use Theme directly09:24
t1mpmardy: but I do agree that if you are importing Ubuntu.Components < 1.3, the warning should not be printed because it is valid to use Theme there.09:24
mardyt1mp: thanks, I'll file a separate bug then09:25
mardyt1mp: FYI: bug 146785109:27
ubot5bug 1467851 in ubuntu-ui-toolkit (Ubuntu) "Remove warning on deprecated theme for versions < 1.3" [Undecided,New] https://launchpad.net/bugs/146785109:27
t1mpmardy: thanks for reporting. I confirmed it.09:39
dubstar_04can anyone advise the best way to get canvas coordinates? i'm using onClicked: {mouse.x, mouse.y} and i have tried mapToItem(canvas, mouse.x, mouse.y) which returns the same values. these values are not where the tip of the mouse is on the canves.09:56
dubstar_04I end up with this when drawing lines: https://lh3.googleusercontent.com/hKnHlobEIqEsai90XBBSA2VLb6FCqEVuPt3svD9_rjoq=w620-h446-no10:02
ZacharyIgielmanI made a webapp as per the tutorial: https://developer.ubuntu.com/en/web/tutorials/web-app-tutorial/ but there are a few problems with my web app. Firstly, how can I block pop ups? Secondly, how can I enable it to play video (video works fine when simulating on my laptop, but on my uTouch N4 I get MEDIA_ERR_SRC_NOT_SUPPORTED)?10:08
brendandZacharyIgielman, the N4 has a different set of supported codecs to your laptop10:11
brendandZacharyIgielman, so it depends on the format10:11
ZacharyIgielmanHow can I block popups? Secondly how can I get the codecs on the n4?10:12
brendandZacharyIgielman, i'm not sure for either. for the codec it might be a matter of hw support so you may not be able to even if you do install extra things. and besides if it's an app you want end users to use, that won't be possible anyway10:17
brendand(to install extra packages)10:17
ZacharyIgielmanright ok thanks10:17
ZacharyIgielmandoes anyone know how to block popups?10:18
brendandZacharyIgielman, i assume you don't control the source of the site10:18
DanChapmandubstar_04: does your mousearea fill the canvas? then you should be able to just use mouseX & mouseY with no need to use mapToItem10:19
DanChapmandubstar_04: let me try and do a quick example, give me a few minutes10:20
ZacharyIgielmanI am not sure what webapp-container does10:20
dubstar_04DanChapman mouse area looks something like this: http://paste.ubuntu.com/11761458/10:22
popeyZacharyIgielman: don't think you can block popups yet, unless you inject some funky js10:24
ogra_greasemonkey scripts definitely work10:26
* ogra_ isnt sure what level of funkyness that has though :) 10:27
DanChapmandubstar_04: here is an example of getting mouse position to draw rectangles http://pastebin.ubuntu.com/11761514/10:36
dubstar_04DanChapman Thanks for that. Its still not working for me. if i draw a line (or rect) and then try and position another relative to the original its offset. Maybe i have messed up something else in my code?10:44
dubstar_04DanChapman can you download this: https://www.danielwood.me/owncloud/public.php?service=files&t=vTduj8LbbZ6jD3x10:46
DanChapmandubstar_04: ahh i see how this works now. I couldn't figure it out at first. Seems i have to re-select a tool each time10:59
dubstar_04for now. there will be a polyline tool eventually that draws many lines...11:01
mihirpopey: ping11:07
dubstar_04DanChapman I know its really scrappy. I'm just messing at the moment to see what i can get working.11:07
DanChapmandubstar_04: that's cool :-) just trying to figure out why the line ends overshoot the the mouse positions. They keep appearing longer, but they are at least on the correct path11:11
popeymihir: pong!11:12
popeydpm: got that libreoffice thing working with a relocatable libreoffice binary11:12
popeydpm: one step closer to libreoffice in a click :)11:13
mihirpopey: got some time, need to discuss for the bugs that are open , I mean priortizing and if required or not11:13
popeyok,pm...11:13
=== MacSlow is now known as MacSlow|lunch
dubstar_04DanChapman its driving me mad. it seems to be consistent. its 20px offset from the click position but only if that axis has changed and its -20 at the start point and + 20 at the end point.11:14
dpmpopey, \o/ I was just pushing it into a branch to point Stefano to it11:14
popeydpm: I've asked them for a different meeting time.11:14
popeyalso asked riccardo to help, he's happy to but at a conf this week11:14
dpmawesome11:15
popeydpm: I have only been playing with the amd64 build on the desktop (because there's no armhf 5.0 build I can find, and this is faster to prototype an amd64 click)11:17
popeybut once we prove on desktop, it shouldn't be hard to migrate to an armhf package11:17
popey(wouldn't recommend a fat package as that would be gigantic)11:17
dpmpopey, yeah, I was thinking the same, the first easiest thing will be to test on the desktop11:17
dpmshould also work on a unity7 desktop11:17
popeywell, yes, I am on unity7 :)11:21
dpmpopey, I put the code online. You might want to comment on your relocatable lib investigation there: https://code.launchpad.net/~ubuntu-docviewer-dev/ubuntu-docviewer-app/lo-viewer/+merge/26268611:22
dpmit's in a shared branch, so anyone in the team can push to it11:23
popeyok11:24
* dpm is really excited about the LO viewer \o/11:25
davmor2dpm: all you have to do is come on here and say hello you'll be bombarded by LO's ;)11:26
dpmhey davmor2 ;)11:26
DanChapmandubstar_04: try this in your main.qml http://paste.ubuntu.com/11761702/11:28
DanChapmandubstar_04: this little app is bringing out my inner artist! http://i.imgur.com/zEnVmhq.png check out that masterpiece :-D11:38
popeyheh11:41
davmor2DanChapman: wow how did you manage that without the line linking them together ala etchasketch11:48
dubstar_04DanChapman What do you think to the new ubuntu logo? https://lh3.googleusercontent.com/7IKMQMPKYk6ZteyVDtWbbhM0EOcD-XF2Im2p0alGd3ug=w585-h374-no11:53
dubstar_04DanChapman Thanks for you help. I'm not really sure what was going on there.11:53
DanChapmandavmor2: hah, i used the one knock-off one with the line-breaker!! http://www.perlesdechine.com/1628-thickbox/easy-writer-buddy-l-telecran.jpg12:18
DanChapmanwe need an etchasketch app on the phone!12:18
balloonsping rpadovani12:19
dubstar_04shake to clear the canvas. Thats a feature.12:21
DanChapmandubstar_04: :-D that must have took a while selecting the line tool each time. I'm not really sure what the issue was I just removed the things that wern't needed to draw a line. :-)12:22
DanChapmanballoons: sorry i missed you ping last night. I'm just heading out now but i'll give you a ping when i get back.12:22
balloonsDanChapman, ack. no worries12:24
zbenjaminwhere is nik90 btw?12:35
=== _salem is now known as salem_
=== MacSlow|lunch is now known as MacSlow
didrocksdavidcalle: hey, under https://developer.ubuntu.com/en/apps/qml/cookbook/ "Files and Storage", seems a little bit misplaced (links refers more to traditional apps dev than ubuntu touch/sandboxed one)13:16
didrocksI was wondering if we have any touch-specific "storing files" tutorials?13:17
=== boiko_ is now known as boiko
davidcalledidrocks, we don't :(13:27
didrocksdavidcalle: we don't have anything beside localstorage for a pure-qml approach, am I right?13:28
davidcalledidrocks, afaik, yes, but maybe someone else in here has another idea?13:30
* didrocks is all ears opened13:31
didrocksdobey: hey, should we promote u1db to store json-pure local storage objects directly from QML? ^13:40
dobeydidrocks: sure, u1db is designed entirely around storing json documents, so it makes sense to store data there. if what you want is caching of json docs though, i might recommend trying to find another solution13:45
didrocksdobey: no, it's really store json doc, not caching. Sounds good then, thanks!13:46
dobeydidrocks: yeah, and with u1db you can create index queries on the docs, which can make searching and finding the data you want to show the user, much faster13:48
dobeyinstead of parsing json all the time13:48
didrocksdobey: yeah, I saw that, sounds exactly what I want! Excellent. Now, digging into the docs :)13:49
mihirpopey: this requires your approval , https://code.launchpad.net/~gary-wzl77/ubuntu-calendar-app/fix_1460433_new/+merge/26235714:35
mihiri have verified it and tested it14:35
popeymihir: lemme see14:35
mihirpopey: I don't know it should work , he has kept explicit reviewers14:36
popeymihir: surely it should have merged because you approved and top approved?14:36
popeyI'll approve anyway14:36
popeythanks mihir14:37
mihirHmm I thought same way, i guess by mistake I might have top approved after it get merged, need to check14:37
bregmahey folks, I'm trying to develop a QML app and I seem to have a problem I can't sort out:15:04
bregmaI have a Page in a PageStack containing a UbuntuListView,15:04
bregmaand I switched from ListItems.Standard to the new ListItem to get leadingActions15:04
bregmaand now when the page is first drawn, the list is half way down the page but gets redrawn correctly as soon as I touch the screen15:05
bregmaanyone have any idea what I'm doing wrong here?15:05
dpmbzoltan_, perhaps? ^15:11
balloonsprobably a layout thing15:18
dpmpopey, when you set up the meeting with bjoern for docviewer, can you add me as optional? I.e. don't block on me when trying to find a time, but I'd like to try and join15:31
popeysure15:31
dpmgreat, thanks!15:31
=== dpm is now known as dpm-afk
kalikianat1mp: updated, no gallery changes in there now, note that I force pushed the branch https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/lessColumnApi/+merge/26264116:57
davmor2popey: can you add an evernote account at the minute?17:29
popeydavmor2: which phone / image?17:29
davmor2popey: krillin ota4 + notes update17:30
davmor2popey: image 2317:31
* popey tries this17:31
popeyusing my retail device17:31
popeyno, something's busted17:32
popeyit allows me to add it, then redirects me back17:32
popeybut it did actually do it.17:32
davmor2popey: I don't even get that17:32
popeyso if I cancel, it goes back to my notes17:32
popeywhat happens for you?17:32
davmor2popey: I get the popup on opening the notes app I click on yes it does nothing, I open the setting app accounts add an evernote account nothing happens17:33
davmor2let me reboot17:34
popeywell it added here, on my retail device with normal packages installed17:34
davmor2popey: it needed a reboot after the change from reminders to notes by the look of it17:36
popeyah17:36
popeythats why we tried to time the rename along with OTA417:36
popeyso the chances are people would reboot anyway :)17:36
mihirpopey: small MP to review , if you get time today17:47
mihirhttps://code.launchpad.net/~mihirsoni/ubuntu-calendar-app/1466667/+merge/26276317:47
mihirresolved the issue regarding event Duration.17:48
popeyah17:50
popeyi see:-17:50
popeyhttps://code.launchpad.net/~mihirsoni/ubuntu-calendar-app/146666717:50
popeyhttps://code.launchpad.net/~gary-wzl77/ubuntu-calendar-app/fix_146666717:50
popeywhich one is best? :)17:50
rararahi guys, is this a good place to ask some questions about a simple qml app I've been doing? for example, i can't figure out how to extract all the components in to different files.17:50
popeyrarara: yeah, ask away, if nobody answers try askubuntu.com17:51
rararapopey: thanks!17:51
rararaI want the popover to set a string property to a certain value when clicked and then close:17:52
rararahttps://github.com/medium-endian/libriBox/blob/master/Main.qml17:52
rararathat text property is used to search the librivox api. atm, the popover is above the list and cannot be seen.17:53
rararathat is issue number 1. Second issue I have is, I don't know how to split out the popover(for example) in order to have everything cleaned up. I would need to communicate somehow.17:54
mihirit seems we had some reworked , i have emailed gazw-117 regarding the same17:59
mihiri feel he has made some unnecceary changes , and I kept it simple , bot solve the issues :)18:00
rararaok, i found out that I had to move the component containing the popover to the root of the window. Is there some 'best place' to do instantiation of popovers, popups, dialogs and the like?18:00
mihirpopey: ^^18:00
rararaor rather, a best place for 'global variables' ?18:03
t1mpkalikiana: cool. Will the update to gallery come next?19:43
ahayzent1mp, have you ever seen this happen to the new listitems? https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/146810020:30
ubot5Launchpad bug 1468100 in ubuntu-ui-toolkit (Ubuntu) "ListItems with trailing but no leading, after swiping right break selectMode" [Undecided,New]20:30
dubstar_04davidcalle http://developer.ubuntu.com/api/apps/qml/sdk-15.04/Ubuntu.Components.Label/ Clicking the inherits link (Text) refers to the 14.10 sdk.21:05
davidcalledubstar_04, thanks, various linking issues have popped up recently, looking into it21:08
dubstar_04davidcalle I didn't realise how much information there was in the SDK docs. its a monster.21:10
popeyyeah, and davidcalle wrote a lot of it!21:10
davidcalleNah, just the interesting parts :p21:12
mcphailGrr - oh for a proper interweb connection. Updating click chroots is painful21:15
popeyyou update them? :)21:16
mcphailpopey: :) - unfortunately so old I couldn't download the .debs didn't exist on server21:17
popeyah21:17
=== salem_ is now known as _salem
popeymcphail: overwhelming urge to find a conways game of life in sdl21:44
mcphailpopey: I'm currently trying to get a wee version of pong running. I'm not sure the cheap French lager is helping21:54
popeyrioja is impeding me21:54
popeyfound one, got it built but it needs keyboard for some ui21:54
mcphailI could have aspired to greatness, had it not been for the curse of the bottle21:55
mcphailpopey: working on t'phone? cool21:56
mcphailI'd written the pong thing for the keyboard. When I get it running I'll add some mouse input to see if that is mimicked by the touchscreen21:58

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