/srv/irclogs.ubuntu.com/2016/01/21/#ubuntu-app-devel.txt

elimiste1eScopes question: is it possible to have a Scope add something to the clipboard on Ubuntu Phone?06:15
elimiste1eI don't see any docs talking about that06:15
elimiste1ehttps://developer.ubuntu.com/en/api/apps/qml/sdk-15.04/Ubuntu.Components.Clipboard/ (404)06:17
elimiste1eAh, https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.Clipboard/06:18
elimiste1eCan I call that from a Scope?06:19
=== chihchun_afk is now known as chihchun
=== lan3y is now known as Laney
=== Laney is now known as Guest80303
=== Guest80303 is now known as Laney
JamesTaitGood morning all; happy Thursday, and happy Hugging Day! 😃09:33
=== lool- is now known as lool
=== _salem is now known as salem_
bartbesmcphail: so I did some more testing with ptrace and the like, I found a way to do more efficient reads using ptrace, by having the tracer and tracee share virtual memory, but speed-wise it didn't benefit much12:14
bartbesbut I just remembered seccomp, and that increases speed drastically, as it only pauses the tracee when calling open12:14
bartbesthough it seems seccomp filter may not be enabled in the current kernel12:15
mcphailbartbes: Gosh - that is interesting. I had never heard of that before, but a bit of Googling took me to https://pdos.csail.mit.edu/archive/mbox/ which seems to do the same thing. I wonder if we could subvert this mbox routine for our own ends?12:51
bartbesit looks like it does that already, though that still requires the kernel support if it wants to use seccomp filtering, of course12:53
bartbesthough it looks like it is largely equivalent to using something like overlayfs, which may have the performance advantage12:53
=== jdstrand_ is now known as jdstrand
mcphailbartbes: yes, I've asked for overlayfs before, but I don't think it is available for the android 4.whatever kernels15:38
bartbesright, overlayfs may not be, but unionfs, aufs or something of that nature might be15:38
mcphailI'd imagine that wouldplay havoc with the app confinement model15:42
mcphailAlthough it might be a better model over all15:43
faenilahayzen: yo, any udpate?15:47
ahayzenfaenil, for which? the scrollview stuff ?15:47
faenilahayzen: yup15:47
faenilusertesting is approaching :)15:47
ahayzenfaenil, not yet, i maybe able to look in a bit/over the weekend15:47
ahayzenfaenil, how soon ? ;-)15:47
faenilahayzen: I think my email said today :D15:48
ahayzenah15:48
faeniland I asked for an ETA but nobody replied :(15:48
ahayzenok i'll have a go in a minute, faenil is all the code in rc-proposed ?15:49
DanChapmani replied ;-)15:49
faenilDanChapman: you had it done already, no ETA needed :D15:49
faenilahayzen: yep...thanks!15:50
faenilahayzen: if you really can't do it don't worry, just let me know and I'll relay the info15:50
ahayzenok, i'm on it now15:50
faenilahayzen: awesome! thanks a lot!15:52
faenilahayzen: if you need help just shout, it should be really quick15:52
ahayzenokies15:52
faeniljust wrap the views in ScrollView { }15:52
faeniland that's it, basically15:52
ahayzenhopefully15:52
faenilheheh15:52
=== chihchun is now known as chihchun_afk
ahayzenfaenil, hmmm, so i put a ScrollView { anchors { fill: parent } ... MyListViewThing {} ... }  then it mucks up the header16:02
ahayzeni shouldn't need to set the flickable of the page to the ScrollView right?16:03
faenilahayzen: what do you mean?16:03
ahayzenfaenil, the content goes over the header and the header doesn't slide in.out16:03
ahayzenin/out16:03
faenilover? :|16:03
ahayzenyup16:04
faenilahayzen: can you link me to the page you're editing?16:04
ahayzenfaenil, http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/ui/Songs.qml16:05
ahayzenfaenil, i put a ScrollView {} around the MultiSelectListView {}16:05
faenilahayzen: try setting the flickable of the page16:06
faenilbut that should be automatic, afaik...16:06
ahayzenwas just trying that16:06
ahayzenfaenil, file:///opt/click.ubuntu.com/com.ubuntu.music/2.3.latest/app/ui/Songs.qml:36:16: Unable to assign ScrollView_QMLTYPE_118 to QQuickFlickable16:06
faenilnot the scrollview, the flickable16:07
faenilscrollview is just a wrapper16:07
ahayzenoh16:07
faenil:D16:07
faenilt1mp: how many levels does the header go down when looking for a flickable?16:07
t1mpfaenil: 1. It must be directly in the Page.16:08
ahayzenfaenil, yeah that seems to work16:08
faenilt1mp: ok16:08
t1mpfaenil: you can set Page.flickable to override the searching16:08
ahayzenfaenil, oh except that the scrollbar goes behind the header sometimes :-)16:08
t1mpfaenil: or with the new PageHeader, set PageHeader.flickable. PageHeader doesn't do any looking so you have to set it yourself.16:08
faenilyes, I had the flickable set in my examples16:08
faenilahayzen: yes that's a known issue, don't worry16:08
ahayzenand yeah can hardly see it as the colour is similar to the background16:08
faenilno design solution yet16:08
faeniland about the colour, visual design tested that already afaik16:09
faenilyou can't have a colour that works amazingly on all surfaces unfortunately16:09
ahayzenas in on mako, you can hardly see it, it must be like Qt.lighter(background, 1.1) or something16:09
faenilthat means it changes colour based on the background16:10
ahayzenwhich would be best :-)16:10
faeniland I think we don't want a scrollbar that can get blue or green :P16:10
ahayzenwell a dark colour for light backgrounds and a light colour for dark backgrounds16:10
ahayzenanyway, faenil shall i do that flickable 'hack' for now, so you can at least test ?16:11
faenilahayzen: sure, I mean, that's probably what everyone will have to do when moving to scrollview16:11
faenilit's not a hack16:11
ahayzenugh16:11
faenilit's just that the header assumes that flickable is directly inside Page16:11
faeniland that's not the case if you have a scrollview16:11
ahayzenwhy can't the Page thing go, if the child is a ScrollView then look at the child of that?16:11
faenilahayzen: sure, of course16:12
faenilahayzen: but that could create problems in other usecases16:12
faenilahayzen: I just didn't want to lean forward and give the trivial solution16:13
faenilt1mp: can you have a closer look at that and change it if it doesn't screw anything else?16:13
faenilahayzen: checking qml types is not exactly cheap, so you usually try to avoid that16:14
t1mpfaenil: are you talking about going down more levels to find a flickable?16:14
t1mpfaenil, ahayzen: with the new PageHeader, basically you have to set the flickable that controls the header yourself.16:14
faenilt1mp: just special handling when the child is a ScrollView16:14
t1mpfaenil, ahayzen: auto-detection can be bad for performance. And often it doesn't work the way you want.16:15
t1mpbesides checking the flickable, it also needs to check the anchors of the flickable (it only makes sense if the flickable anchors to the top of the page), and whether the flickable can actually flick (which can depend on the height and contentHeight of the flickable)16:16
t1mp^all this together can some times cause binding loops16:16
t1mpso making the app developer, who knows what (s)he's doing with the flickable, set PageHeader.flickable, avoids those issues16:16
faenilahayzen: also, what is "background"? you need to sample whatever is behind the scrollbar, which is not always a "Page", right?16:17
faeniland it could have different colours along the height/width of the scrollbar16:18
ahayzenfaenil, yeah, but would we be able to set custom styles for the scrollbar? like with QtQuick.Controls ?16:18
ahayzenfaenil, picking the MainView.backgroundColor or from the MainView.theme.name would be pretty close though16:19
faenilahayzen: not really, you don't know what's behind the scrollbar16:19
ahayzenyeah you don't, but that'd work for most cases16:19
faenil(unless you get the framebuffer before painting the scrollbar and do analysis of that)16:19
faenil(and even then, it's not trivial at all)16:20
faenilahayzen: well, if you want to go that way then you can just sample the current palette16:23
faenilmm no, that wouldn't work16:23
ahayzenthe appdev being allowed to set what they won't as an override would probably work :-)16:23
faenilahayzen: StyleHint is your friend, I don't see why not :)16:24
ahayzen:-)16:24
ahayzenright just need to sort out the GridView's having an incorrect topMargin16:24
faenilahayzen: the problem is we don't currently promise API stability of Styles (afaik)16:27
faenilso, using stylehint could break in the future if the style implementation changes16:27
ahayzenheh, hence why i haven't transitioned music to proper styling yet :')16:27
faenil:)16:27
faenilahayzen: so, for the moment, that's an issue that visual design has to deal with, not ours :)16:27
faeniland the one with the header is for UX designers :)16:28
faenilI already hit my head against the wall enough to find a decent solution :)16:28
faenil(and if you have a good solution, propose it and I will implement it)16:28
ahayzenfaenil, lp:~ahayzen/music-app/use-scrollview :-)16:32
faenilahayzen: awesome, thanks!16:33
ahayzenfaenil, let me know if anything is broken, or you have trouble running etc :-)16:34
faenilahayzen: will do! waiting for a unity8 fix as well16:34
faenilno apps run at all on this laptop atm16:34
faenilthat's being looked into by mzanetti :)16:34
faenilahayzen: and if you happen to find a solution on how to make scrollbar behave with a sliding header, you know where to find me ;)16:36
faeniltaking into account that the scrollbar is draggable on touch when there are >10 pages to scroll16:36
faenil(that's actually the tricky bit, otherwise there would be no issue)16:37
faenilso, basically think what happens when you scroll the flickable by dragging the scrollbar on touch, with a sliding header16:37
ahayzenfaenil, ensure the top of the scrollbar starts below the bottom of the header16:37
faenilthe key point being we can't afford resizing and repositiong the scrollbar while it's being dragged of course16:37
faenilahayzen: see ^16:37
faenilif the header didn't move, the fix would be trivial16:38
ahayzenbut i mean, when the header disappears...don't move the top back up16:38
ahayzenjust keep it at 6.125GU from the top16:38
faeniland in fact it works perfectly when in dual panel mode16:38
faenilahayzen: i.e. *always* leaving a space at the top of the page?16:38
faenileven when the header is hidden?16:39
ahayzenyeah16:39
faenilI proposed that16:39
faenilit wasn't accepted16:39
ahayzenheh16:39
faenil(it's what Whatsapp does on Android, fwiw)16:39
faenilthey have the same issue16:39
faeniland they just leave a space at the top even when the header is smaller16:39
faenilbut I agree that it looks weird16:39
faenilahayzen: let me know if you come up with any other idea :)16:40
ahayzenwill do :-)16:40
faenilthanks :)16:40
faenilahayzen: btw, you probably know this already, this is not a problem if you use the convergent components and you're in multipanel mode16:40
faenilbecause the header should be locked in that situation16:41
faenilheader(s)16:41
faeniland scrollbar aligns properly in that case16:41
ahayzenyeah, we need to get back onto convergent stuff for music :-/16:41
faenil:)16:41
=== BOHverkill_ is now known as BOHverkill
faenilahayzen: would you mind reporting a bug about the scrollbar colour so we can track it and not forget it?16:50
ahayzenfaenil, yup16:51
faenilahayzen: cheers16:51
faenilahayzen: I didn't even know about the MainView.backgroundColour property16:52
faenilbut that could indeed be a slightly more suitable heuristic16:52
faenileven though it would still break in an infinite number of usecases16:52
ahayzenyup tricky :-/16:53
ahayzenfaenil, bug 153672216:55
ubot5bug 1536722 in ubuntu-ui-toolkit (Ubuntu) "ScrollView scrollbar on a dark theme can be difficult to see" [Undecided,New] https://launchpad.net/bugs/153672216:55
faenilahayzen: awesome, cheers16:55
=== chihchun_afk is now known as chihchun
pmcgowanDanChapman, hiya, when will you release a 0.6.x version of dekko?17:16
DanChapmanpmcgowan, hey! as soon as the next OTA is released. Still got a few things to fix and also got to wait on ScrollView component to land in stable17:19
DanChapmanBut it's mostly ready now17:19
pmcgowanDanChapman, awesome17:20
pmcgowanDanChapman, have you a click package for testing?17:23
DanChapmanpmcgowan, you can grab clicks from here http://dekko-ci.cloudapp.net:8080/job/dev-trunk-build/. There's no translations included with those17:35
=== chihchun is now known as chihchun_afk
pmcgowanDanChapman, thanks got it17:37
balloonsahayzen, sorry I didn't get to finishing the experiment on jenkins yesterday18:26
ahayzenballoons, no worries :-)18:26
balloonsahayzen, fiddling with it again, I'll ping when there's something to see18:32
DS-McGuiremcphail, Guess what...? I almost have it working!18:46
robin-herohey all. I'd like to create a scope with JS, but I think this tutorial is really outdated: https://developer.ubuntu.com/en/scopes/tutorials/developing-scopes-javascript/19:53
robin-heroI'm using Ubuntu 16.04 (dev branch), but I only see C++ scope templates19:53
robin-heroin the SDK19:54
robin-heroAnd I can't install the mentioned unity-js-scopes-dev package as well19:54
balloonsdavidcalle, ^^21:17
=== salem_ is now known as _salem
mcphailDS-McGuire: almost?22:42
DS-McGuiremcphail, Yep! Now I just have:22:43
DS-McGuireCMakeLists.txt:1: error: The CMAKE_C_COMPILER: /usr/bin/arm-linux-gnueabihf-gcc is not a full path to an existing compiler tool. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.22:43
DS-McGuireI spent about 12 hours sorting out all the problems on my system and I finally downloaded the  updates I needed.22:44
mcphaildon't know what is going wrong there. The SDK should set up cmake for cross-compiling automatically22:44
DS-McGuireI think Ubuntu doesn't want me to make a JS scope haha!22:44
mcphailDS-McGuire: someone is sabotaging your entry to the competition ;)22:45
* DS-McGuire eyes everyone in the IRC22:45
DS-McGuiremcphail, I've almost given up haha22:45
balloonsDS-McGuire, js scopes? Bug davidcalle!22:46
DS-McGuiredavidcalle, poke! Stuff doesn't work.22:47
=== _salem is now known as salem_
davidcalleDS-McGuire: have you ran the unity-js-scopes-tool setup command?23:20
davidcalleDS-McGuire: do other app templates work fine?23:21
davidcallebzoltan_: any idea about "CMakeLists.txt:1: error: The CMAKE_C_COMPILER: /usr/bin/arm-linux-gnueabihf-gcc is not a full path to an existing compiler tool. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the23:22
davidcallePATH." ? When trying to run/setup a js scope?23:22
DS-McGuiredavidcalle, Sorry I was playing CS:GO. I'll run it again.23:43
DS-McGuiredavidcalle, I ran it. Same problem. Output of the scopetool command gave: Remounting chroots ...sh: 1: click-chroot-agent: not found23:46
DS-McGuireIf that helps at all.23:46
mcphaildavidcalle: whilst I can build JS scopes fine on my machine, I also get an error when running "unity-js-scopes-tool setup" as per http://paste.ubuntu.com/14583740/ . Doesn't seem to cause any problems, though23:49

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