/srv/irclogs.ubuntu.com/2015/09/14/#ubuntu-app-devel.txt

dholbachgood morning07:31
dholbachpopey, do you think you can upload http://people.canonical.com/~dholbach/tmp/help.ubuntucoredev_0.5_all.click with "Updated translations."?07:34
popeydholbach: sure thing07:46
* dholbach hugs popey07:47
popeyall done dholbach07:50
dholbachthanks a bunch!07:51
popeynp07:54
JamesTaitGood morning all; happy Monday, and happy Eat a Hoagie Day! 😃08:31
popeyJamesTait: single handedly driving traffic to the subway sandwich page of wikipedia08:32
JamesTait😃08:32
JamesTaitI'm not on commission from Greggs.08:33
davmor2Honest gov'nor09:01
brendanddavmor2, wouldn't it be more like 'tis truth i tell thee' :)09:03
popeyballoons: seems calculator also still has utopic building, can this please be disabled (across all apps?)? https://code.launchpad.net/~gang65/ubuntu-calculator-app/ubuntu-calculator-app-mathjs-2-upgrade/+merge/26804612:11
ahayzenpopey, OWM radar seems pretty accurate as well... rain just beyond Oxford (it just stopped raining :-) )12:19
popeyhah12:19
popeyahayzen: what's the api like?12:20
ahayzennot sure, haven't looked yet12:20
popeykk12:20
popeymorning balloons ^^ :D13:14
balloonsaye-aye13:20
popeyta13:21
mcphailnemo: I'll be back from work around 2230 UK time this evening. If you're around and free we can have another look at hw13:51
nemom'k13:56
nemomcphail: well first thing that would be nice to have would be verbose build logs to look into that link error13:57
nemowhich seems likely due to using libs from wrong location, or else you wouldn'tve gotten to linking13:57
mcphailnemo: OK. I've got a tarball of the tweaked source from my backup machine. I'll ping you later when I've got it building again. Remind me of the build flags to get a verbose log output?13:59
nemomcphail: make VERBOSE=1 oughta do the trick14:00
mcphailnemo: ack14:00
justCarakaslooks like ubuntu started an add campain on android  :D https://scontent-ams2-1.xx.fbcdn.net/hphotos-xaf1/v/t35.0-12/12011693_10206563951450537_2014479127_o.jpg?oh=e515a8ae9d301e189b815fbce73905be&oe=55F8F97915:14
carlduke2Hi everyone, I'm working on a open source project for ubuntu, it's called IntelligentSecurity15:27
carlduke2and provides face authentication using a webcam15:28
carlduke2if you want to check it out, its hosted on github15:28
carlduke2https://github.com/charslab/IntelligentSecurity15:28
nemohuh. kinda neat15:28
nemoI've never had any luck w/ that on my phone which was why I switched to swipe pattern and fingerprint, but still fun15:29
nemo(my android phone)15:29
nemomight work better on a laptop too15:29
nemomore reliable positioning and such15:29
carlduke2check it out, it works on any desktop/laptop15:31
carlduke2I must say it works pretty well too, after some training it can recognize my face even with low light and a shitty webcam15:32
carlduke2its based on opencv15:32
nemocarlduke2: well, problem w/ that is always false positives I 'spose15:35
nemocarlduke2: does it do clever things to cut down on the photo trick? like trying to see if the image seems live?15:35
carlduke2Nothing still implemented against photo trick, although it seems not to recognize them as positive (but it may happen with me only)15:36
carlduke2so that's one thing which has to be implemented15:36
carlduke2but you may try it for yourself15:37
carlduke2do you have qt creator installed?15:37
nemocarlduke2: well. I do have qt build env for Hedgewars ☺15:38
nemocarlduke2: but I'm not physically at my machine so wouldn't do much good.15:38
carlduke2just install qtcreator, clone the repo, run configure_env.sh and build it :D15:38
nemop'raps someone here might be interested15:38
carlduke2yeah that would be nice15:39
carlduke2you develop hedgewars?15:39
carlduke2nemo: np, test it when you can :D16:16
nemocarlduke2: ah. yeah16:16
nemocarlduke2: been poking code into hedgewars since jan 200916:16
nemobut. what w/ the kids now my commit rate has fallen way off16:16
nemoso has unc0rr's so we definitely have a bit of a problem there16:16
carlduke2wow, that's cool16:16
carlduke2oh yaeh i can image16:17
=== carloalberto is now known as carlduke
=== ahayzen_ is now known as ahayzen
maxvancefferHello to all spent 4 hours, and can not play any sound from app... can some body help18:45
maxvanceffer???18:45
balloonsping nik9021:04
rschrollaquarius: I'm around if you'd like to chat.21:11
aquariusheya rschroll!21:12
aquariusyou've been making lots of progress )21:12
aquariusand I'm too busy to do anything :(21:12
rschrollThat's what boredom does...21:13
aquariusrschroll, but the container (in my fork) roughly works -- what I don't know is how to wire up all the cmake stuff21:13
aquariusI did manage to establish that one can loop in cmake, so we can basically loop from 1 to 20 and create a container-${n}.desktop and container-${n}.url-dispatcher for each, I think21:13
aquariusbut I think the thing I'd best do is actually get this all running on the phone, which is why I wanted to talk to you :)21:14
rschrollsounds good.21:14
rschrollI hadn't seen your webapp branch yet.  Taking a look now21:15
aquariusrschroll, first, stupid, question: to open a cmake project in Ubuntu SDK, I browse to and open CMakeLists.txt in the root, right21:16
aquarius?21:16
rschrollYes.  And then it will complain about not being able to find a .user file and offer you a non-sensical dialog21:17
rschrollLet me clone the project myself and see what happens21:19
aquariusOK. If I do that, I get this: http://pastebin.ubuntu.com/12412293/21:19
rschrollor just look at your message, I guess....21:20
aquariuswhich claims to be missing sqlite3, but I don't know how to add that, and I have no idea where it's looking for it (it should be in some sort of chroot, since I've only chosen the Kit for my Bq phone, not for the desktop)21:20
rschrollyeah.  sqplite is the problem21:21
rschrollIn Qt Creator Tools > Options21:21
rschrollChoose "Ubuntu" from the left-hand side21:21
rschroll"Click" should be the first tab on the right.  It should list "Click build targets"21:22
aquariusit does21:22
rschrollthere should be on with armhf architecture.  Click the maintain button21:22
aquariusyup21:23
rschrollYou should have a root shell in the chroot now21:23
aquariusdo I then just apt-get install sqlite3?21:23
aquarius(I do have a root shell in the chroot)21:23
rschrolllibsqlite3-dev21:24
aquariusinstalling...21:24
nik90balloons: pong21:24
aquarius(sorry you have to give me the little kids class in compiling things. This is why I write stuff in Python :))21:24
rschrollAfter that, you can close the chroot shell.  Then, on your machine run 'click-chroot-agent -r'21:24
rschrollIt does some magic I don't understand to make things work.21:25
rschroll(I still don't understand why we're not writing scopes in javascript....)21:25
aquariusOK. I closed Qt Creator, ran click-chroot-agent -r, opened Qt Creator again, and... same error.21:26
aquariusso, maybe I configured the wrong chroot, although I don't think I did.21:26
aquariusWill try again.21:26
rschrollI've screwed that up before.21:27
rschrollI'll check my chroot to see if other sqlite stuff is installed21:27
rschrollWait -- I screwed things up for you21:28
rschrollUninstall libsqlite3-dev21:29
rschrollInstall instead libsqlite3-dev:armhf21:29
rschroll(I've wasted hours tracking down that mistake before....)21:29
rschrollWell, if that's a thing.  I'm not sure the dev packages are architecture dependent....21:30
aquariusahaha!21:30
aquariusthat has fixed it :)21:30
aquariusnice one21:30
rschroll*sigh of relief*21:31
aquariusok. Now to work out how to run it on the device...21:31
rschrollClick projects on the left column21:31
aquariushm, Qt Creator makes me choose one of addtodash or addtodash-scope to deploy.21:31
aquarius(that's a question: both the scope and the app know how to create the initial database, yes?)21:32
rschrollI've chosen addtodash myself21:32
aquariusok, deploying the app21:32
rschrollThe scope cannot.  It looks like it doesn't even have write access to that directory21:32
aquariusah, yes, you said that21:33
aquariusso if they open the scope first we just display the "Manage your apps" button which launches the app?21:33
rschrollWe should check the behavior of the scope when the database does not exist, and show a usage message21:33
aquarius(which we'd need to display somehow anyway)21:33
rschrollor that21:33
aquariustreat it the same as "the DB exists but there's no apps in it"21:33
rschrollyeah, probably21:34
rschrollI already have the manage button working in the query branch.21:34
rschrollWe just need to see what happens when the database is gone.21:34
rschrollbrb21:34
aquariusah, we haven't got the content hub stuff wired up yet.21:34
aquariusso, how do you fancy adding the cmake stuff to the container folder? (I'll send a pull request first so you can review the code, natch)21:36
rschrollThe content hub should be working....21:37
aquariusaddtodash wasn't showing up in the Share menu from the browser21:37
aquariuswill try again :)21:37
aquariusoh, haha, it is now21:38
rschrollGreat!21:38
rschrollYeah, if you have the containers in place, I can try to get things wired together21:39
aquariusonce I've added an app, should the scope work?21:39
rschrollIt should21:39
aquarius(once I've deployed the scope, which I shall try now)21:39
rschrollIt should be running as long as the app is21:39
rschrolllook for it in the scopes list21:40
aquariusI don't have to deploy addtodash-scope to get it on the phone?21:40
rschrollThe both get installed together.  The question is which gets run with output going back to Qt creator21:40
aquariusoh, gotcha21:41
rschroll(I think)21:41
aquariuswell, would you look at that. Works! Nice.21:42
mcphailnemo: ping21:42
rschrollwhadaya know...21:42
aquariusthe "Settings" stuff in the menu is built into the scope API, yes? Or can we make that open the app?21:42
aquariusthis is cool.21:42
rschrollScope settings are very limited.21:43
rschrollI don't think we can trigger the app from them.21:43
aquariusbah humbug.21:43
rschrollBut we can put a result at the bottom of the scope that launches the app21:44
rschrollsee the query branch21:44
aquariusya, that was my thought21:44
aquariusNeed to save the images, but I think we're probably best if that's done from C++? I can do it in pure QML if I have to but it's hassle; it'd be a lot easier for you to just do a Qt HTTP request and bang the result in the DB... or maybe even on the filesystem, then we can use the new Thumbnailer?21:44
aquariusso I'll hand you an image URL somehow21:45
rschrollI don't know if it makes sense to get the image in the webview, base64-encode it, and pass it out that way?21:45
rschrollShould we store them base64 encoded in the database?21:46
rschrollOr write them to the filesystem and store the path in the database?21:46
rschrollOr store the binaries in the database?  But then what?21:47
aquariusthat's hard, because of cross-origin issues; reading an image's actual data requires either XHRing it off the server with a good XHR implementation (the one *in* the webview, and then we don't have base64) or writing it into a canvas and then toDataURLing it back out21:47
aquariusI can do both of those if need be, and if you reckon that fetching the image in Qt would be harder, I will do21:48
aquariusIt's worth investigating the new Ubuntu thumbnailer service, I think; if that turns out to be worth using, I think we'll need to store the images on the filesystem and store the path in the DB21:48
aquariushttps://michihenning.wordpress.com/2015/08/15/a-fast-thumbnailer-for-ubuntu/21:49
aquariusif it's *not* worth using that then we can probably store base64 URLs in the DB... but can we give a data URL to the scope to display an image?21:49
rschrollWill the scope take advantage of the thumbnailer?21:49
aquariusI don't know.21:50
aquariusit *ought* to21:50
rschrollNot our problem, really.21:50
aquariusthe point of the thumbnailer is to be super fast so scopes can use it21:50
rschrollI've managed to pass data URLs to scope things before, so that should work21:50
aquariushuh21:50
aquariusinterestingly, it looks like it provides a Magic URL Type21:51
aquariuswhich there'd be nothing stopping us using in the app too21:51
rschrollwhat does?21:51
aquariusthe thumbnailer21:51
rschrollnifty21:51
aquariusOne API is a QML plugin that registers itself as an image provider for QQuickAsyncImageProvider. This allows the caller to to pass a URI that encodes a query for a local or remote thumbnail at a particular size; if the URI matches the registered provider, QML transfers control to the entry points in our plugin.21:51
aquariusthat *suggests* that one can set the source of a QML Image to thumbnailer:http://example.com/img.jpg or something21:52
aquariusand then the thumbnailer will cache it21:52
aquariusand then it'll be available to the scope too21:52
aquariusand we didn't have to do any work at all; we just store the upstream image21:52
aquariusbut... the docs don't actually *say* that works, they just imply it ;)21:53
rschrollof course.  Documentation is for weenies.21:53
aquariusneed to ping michi or jamesh21:53
aquariusneither of whom hang in this channel, it seems21:53
* aquarius pings jamesh21:54
aquariusalthough it's a bit early for him :)21:54
aquariusOK. So, I should change the container to not do all the chaining stuff, but instead to save its status every time it's made active, yes?21:55
rschrollI'm not too worried about the icons.  One way or another we'll get it to work.21:55
aquariushow does the container know where the database is?21:55
aquariusI don't think QML LocalStorage can open an arbitrarily named database, can it?21:55
rschrollNo.  But you give it a name and that reliably maps to the same location on the filesystem21:56
aquariusno.21:56
aquariusactually...21:56
aquariusthey get different appids.21:56
aquariusis that going to mean they get different .local/share folders?21:56
aquariusI hope not.21:56
aquariusneed to check that!21:56
rschrollI think that the .local/share comes from the package name21:56
rschrollnot the app_id21:56
aquariusyeah. Hope so :)21:56
aquariusok, I will make that change before sending a pull request for the containers21:57
aquariusbut... this is cool. Nice work21:57
rschrollAbout the containers:21:57
rschrollShould they keep updating their current URL?21:57
aquariusI don't think so.21:58
rschrollIf they started at nyt.com, but you follow links to guardian.co.uk, should the next trigger of nyt.com use this container?21:58
aquariusah, you can't do that21:58
aquariusif you navigate outside the domain, it opens in the browser.21:58
rschrollsounds good21:58
rschrollno worries there, then21:58
aquariusyup21:58
aquariuswe can pass a more or less limiting URL pattern to a container if need be and it'll honour it, but for the moment I'm inclined to not make that a configurable thing, and we'll expose it later if need be21:59
rschrollyeah, so I think the container just has to write its id, url, and current time to the database everytime it gets focus21:59
aquariusand then we're good21:59
rschrollthen the launcher has to figure out what to do with that....22:00
aquariusexcellent.22:00
aquariusyeah. Did you establish whether the scope code can decide on the URL to launch after the user chooses something?22:00
rschrollI've been reading the docs, but it's not clear.22:01
rschrollI'll have to try and see what happens22:01
aquariusyeah22:01
rschrollBTW, a cool trick:22:02
aquarius(have asked michi about the thumbnailer on g+)22:03
rschrollIf you make a bookmark with URL application:///<app-id>_<version>.desktop, you can use our scope to launch an app22:03
aquariusoh yes!22:03
rschrollOr scope://app-id to launch scopes22:03
aquariusso if we can be faster than the app scope then that'd be a good demo :)22:03
rschrollLet's try not to break this as we add the containers...22:03
aquariusI think we'd need a little special handling for that in the scope, otherwise the container will get launched and then look empty :)22:04
aquariusbut that's a neat trick22:04
rschrollYeah.  I don't know if we put it in the docs.  But as an easter egg it's sorta cool.22:05
rschrollWe can't get icons for them automatically due to confinement, so making it look nice would take some work22:05
rschrollAnd you have to update the URL everytime there's a new version....22:06
rschrollHave you used the new ListItems yet?22:08
aquariusyou can say current-user-version instead of a version number, so that bit's not a problem, although icons are :)22:08
aquariusI haven't used the new ListItems; every time I try to use the provided nice ListItems they don't do a thing I want and I end up implementing my own on top of ListItems.Empty anyway :(22:09
rschroll:(22:09
rschrollI saw they had drag-and-drop support, which would be nice for ordering favorites22:09
rschrollBut when I tried to use them, they looked ugly22:09
aquariusyeah. It did occur to me that maybe we should try to look really really nice, to encourage people to use this22:11
rschrollThere's definitely a lot of polish we can add once things are working.22:11
aquariusmight be worth talking to super-skill design people; snwh or kevin feyder or someone22:12
aquariuslots of cool ideas to add once things are working, yeah. Recommendations sourced from a server; sharing; etc. But we'll get it working first :)22:12
rschrollOne design project I already anticipate -- it'd be nice to have similar but distinguishable icons for the various containers22:13
aquariusoh?22:13
rschrollSo when you have several open, you don't have the same icon 5 times in your icon bar thing on the left.22:14
rschroll(there's probably an official name for that)22:14
aquarius(the Launcher)22:14
aquariusyes. That would be good.22:14
aquariusWhat we really want there, of course, is a dynamic icon so it looks like the actual icon for the webapp22:15
aquariusbut I don't believe that's possible :(22:15
rschrollWith our database technique, the oft-used webapps will end up using the same container each time, so you might started to get to know htem22:15
rschrollThe website icon would be better, of course, but not possible...22:15
aquariuswho would know about this, I wonder?22:16
aquariustedg, ping: is there any way that a phone app can set its Launcher icon? For example, could it set its Icon line in its .desktop file to be /home/phablet/.local/share/appid/mydynamicicon.png and then overwrite that if it wanted?22:17
aquariusI suspect it *has* to be a name which gets looked up on the icon path, which isn't anywhere we can write to :(22:18
aquariusthe desktop file *spec* says it can be an absolute path22:19
aquariusthat'd be sweet if it works.22:19
rschrollAnother thing to try.22:19
aquariusgotta hardcode the path to our app directory, which will sod us up in multi-user, but that's a problem for five years from now :)22:20
rschrollSo for now: I'll see about launching containers from the scope.  You'll get containers recording progress to a database.22:20
rschrollWe'll find out about thumbnailer URLs.22:21
aquariusok. the thumbnailer can only read filesystem files.22:21
aquarius(got an answer from michi)22:21
rschrollthat was quick22:21
aquariusso if we want to *use* the thumbnailer then we'll need to write the icons to the filesystem22:21
aquariusnot sure if we want to use it or whether we're faster to read our own database. I *suspect* the thumbnailer is faster22:22
aquariusbut that'll need testing.22:22
rschrollI'll start futzing with a C++ downloader22:23
aquariuscool22:23
aquariusthe app already does some work to get an icon, but it needs to do more (in particular, it doesn't look for shortcut icons, or yet read any manifest)22:23
rschrollThat's a place where we can just keep adding search locations as we think of them.22:24
rschrollThe API from the qML side won't change.22:25
aquariusyup22:25
rschrollBut now, time for me to make dinner.22:25
rschrollI'll try to hang around here more often, so we can chat again as things come up.22:28
aquariuscheers, pal22:28
aquariusif you're on Telegram, you could join the Ubuntu Apps group? Lots of useful discussion there22:29
aquariusI can invite you if you want.22:29
rschrollYou kids and your crazy new technologies.22:29
rschrollI'll try to check it out.22:30
aquariusI know! I'm just so l33t22:30
rschrollthanks22:30
aquariuslet me know if you wanna join and I'll do an invite. I think there's a link you can click somewhere to join it but I don't know what it is :)22:30
rschrollmight as well see what the fuss is about.  Thanks.22:30
popeyaquarius: gary wang made a patch / recommendation for changing the calendar icon iirc22:51
popeyif thats any use22:51
popeyhttps://bugs.launchpad.net/ubuntu/+source/unity8/+bug/145379522:52
ubot5Ubuntu bug 1453795 in unity8 (Ubuntu) "Apps can't change their own app icon" [Undecided,Confirmed]22:52
popeybah22:52
popeypretty sure I saw a patch somewhere22:52
aquariusthat absolutely would be of use, if it works :)22:54
aquariuswe'll try the absolute path trick :)22:54
mcphailit would be nice if there was a framework for "dynamic" icons. They seem quite useful22:58
aquariusWhat's the best way to react to my app being switched to? (That is, made the foreground focused app?)23:02
aquariusMainView.onActiveChanged?23:02
aquariusah23:05
aquariusQt.application.state == Qt.ApplicationActive23:06
aquariushttp://doc.qt.io/qt-5/qml-qtqml-qt.html#application-prop23:06
aquariusthat took a long time to find.23:06

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