[05:01] <dale_> I have an app with C++ backend which tries to access the screen service to change brightness via the system DBus, but I get apparmor errors.  Does anyone know how to write the click apparmor file to get around this?
[05:01] <dale_> appdevs ?
[05:09] <dale_> Are any appdevs here?
[07:16] <dholbach> good morning
[08:07] <Nymerea> Hello guys
[08:07] <Nymerea> I've ear than some expert are here in european office hours
[08:07] <Nymerea> I need help with my application
[08:09] <Nymerea> If some appdevs can help me, I will be very honoured
[08:22] <davidcalle> Nymerea, hi, blocking on something with your app?
[09:29] <Nymerea> davidcalle, yep I have some trouble
[09:30] <Nymerea> 1) my application doesn't work on smartphone but work on desktop
[09:30] <Nymerea> 2) my camera is rotated by 90° by default
[09:31] <Nymerea> I want create a simple application that read barcode
[09:31] <Nymerea> https://github.com/Nymerea/uBarcodeReader/tree/feature/autoCapture
[09:32] <brunch875>   Is there a way to make QApplication work on the device? I want to skip QML and use the graphics view framework...
[09:32] <brunch875>   Or... any non-horrible way to do qtquick on c++ entirely? :P
[09:33] <davidcalle> Nymerea, let me give it a try
[09:34] <Nymerea> brunch875, http://doc.qt.io/qt-5/qtqml-cppintegration-topic.html ???
[09:34] <Nymerea> davidcalle, dont forget to use feature/autoCapture branch
[09:35] <Nymerea> davidcalle, The application run on smartphone, but when I click on image I have a referenceError
[09:35] <brunch875> I've considered that, but I thought it might be a pretty bad idea
[09:35] <brunch875> but I'm glad someone has the same second-opinion!
[09:35] <Nymerea> this error doesn't occur in desktop
[09:35] <Nymerea> brunch875, personnaly I think QML is much better than C++ for writing UI
[09:36] <brunch875> thing is I want to port one of my games from scratch
[09:36] <brunch875> feels like QML gets on the way
[09:37] <brunch875> the graphics view framework seems perfect for the job, but I can't get it to work on utouch
[09:37] <brunch875> maybe I should wait a bit for mir and convergence? :)
[09:38] <Nymerea> brunch875, scope are entierly written in c++
[09:38] <Nymerea> so it shouldn't be a problem
[09:38] <Nymerea> (use only c++)
[09:39] <brunch875> is there some source code I can peek at?
[09:39] <brunch875> I sank in information yesterday... so extense
[09:41] <Nymerea> If you run ubuntu-sdk
[09:41] <Nymerea> you have some auto-generate source code that use c++
[09:45] <davidcalle> Nymerea, sorry, I'm having an issue with my QtCreator, I can't add a device kit at the moment to test on my phone. I'll get back to you if I manage to fix that and test today :)
[09:46] <Nymerea> davidcalle, lot of problem with qt creator
[09:48] <davidcalle> Nymerea, in my case that's mostly a case of bleeding edge packages and SDK ones not being recent enough
[09:48] <Nymerea> But
[09:49] <Nymerea> Maybe you can help me with the error
[09:49] <Nymerea> I know exactly what happen
[09:49] <Nymerea> but I don't understand why
[09:49] <davidcalle> Nymerea, I can try
[09:50] <Nymerea> Okay, look my main.cpp : extense
[09:50] <Nymerea> https://github.com/Nymerea/uBarcodeReader/blob/feature/autoCapture/OpenFoodFacts/main.cpp **
[09:51] <Nymerea> I give to my Qml file a reference : view.rootContext()->setContextProperty("qDecoder", &decoder);
[09:51] <Nymerea> In my Main.qml file, I use this reference
[09:52] <Nymerea> On desktop it's work properly but in smartphone i have : ReferenceError with qDecoder
[09:52] <Nymerea> davidcalle, any idea why it's happen ?
[09:53] <Nymerea> ReferenceError : qDecoder is not defined
[09:58] <davidcalle> Nymerea, that's odd. I don't see anything wrong with it. I guess someone with more cpp experience on the device can help, mzanetti? ^
[09:58]  * mzanetti reads scrollback
[09:59] <mzanetti> view.rootContext()->setContextProperty("qDecoder", &decoder);
[10:00] <mzanetti> should be:
[10:00] <mzanetti> view.engine()->rootContext()->setContextProperty("qDecoder", &decoder);
[10:00] <mzanetti> not sure why the first works at all
[10:00] <Nymerea> hum
[10:00] <mzanetti> maybe it's the same... dunno
[10:01] <mzanetti> Nymerea, what does this better than Tagger?
[10:01] <Nymerea> The barcorde reader is just the proof of concept
[10:02] <Nymerea> OpenFoodFacts is read barcode from food a get nutritional information
[10:02] <Nymerea> I cannot use tagger as "provider of barcode"
[10:02] <mzanetti> mhm...
[10:02] <Nymerea> and barcode reader is to hard to use when you haven't a lot of experience in c++ developpement
[10:02] <mzanetti> Authenticator does
[10:03] <Nymerea> what is authenticator ?
[10:03] <Nymerea> It's not installed by default on my device
[10:03] <mzanetti> https://uappexplorer.com/app/com.ubuntu.developer.mzanetti.ubuntu-authenticator
[10:04] <Nymerea> I don't want login by using qrcode
[10:06] <mzanetti> you do want a QR code scanner, no?
[10:06] <Nymerea> mzanetti, do you know why my camera is rotated by 90° by default ?
[10:06] <Nymerea> mzanetti, no, EAN8/13 scanner
[10:06] <mzanetti> yeah well... that's the *same*
[10:06] <mzanetti> from the scanner POV. it reads all
[10:09] <Nymerea> let me try
[10:09] <Nymerea> the problem is : authentificator is not installed by default
[10:11] <Nymerea> there is any way to install a third application as dependences ?
[10:12] <popey> clicks don't have dependencies
[10:15] <Nymerea>  popey thank you
[10:20] <Nymerea> mzanetti, I've just looked your code source on launchpad
[10:20] <Nymerea> I didn't understand how you provide your QZBar dependences
[10:21] <Nymerea> because I use ZXing but it has very poor performances compare to Zbar
[10:25] <mzanetti> Nymerea, I use static linking
[10:25] <Nymerea> If I kew it before
[10:26] <Nymerea> I spent like 1 month with fuckin ZXing library
[10:26] <Nymerea> and tagger cmake was too complicated for me
[10:27] <Nymerea> (I mean qMake is so easy to read compare to cmake)
[10:30] <mzanetti> authenticator uses qmake
[10:44] <Nymerea> mzanetti, is it normal the camera is rotated by default ?
[10:44] <mzanetti> dunno
[10:46] <mzanetti> Nymerea, seems yes: http://bazaar.launchpad.net/~mzanetti/authenticator/trunk/view/head:/app/qml/ubuntu-authenticator.qml#L444
[10:47] <Nymerea> mzanetti,  no, if the smartphone is in portrait mode you rotate by 90°
[10:47] <Nymerea> that normal
[10:48] <Nymerea> but for me, by default it's rotated by 90°
[10:48] <mzanetti> I rotate -90, to compensate the 90
[10:49] <Nymerea> yes, if it's in portrait mode
[10:49] <Nymerea> but by default i'm in "normal" mode
[10:49] <Nymerea> isn't ?
[10:49] <mzanetti> isn't portrait the normal one?
[10:50] <Nymerea> hum
[10:50] <Nymerea> maybe my english the problem :-D
[10:51] <Nymerea> mzanetti, you're rith : http://www.geckogeek.fr/wp-content/uploads/2010/09/LandscapePortrait.png
[10:51] <Nymerea> I'm very sorry
[10:51] <mzanetti> :)
[10:51] <mzanetti> no problem
[10:51] <Nymerea> I will check you're trick this afternoon
[10:51] <Nymerea> Thank you for you're help
[10:52] <Nymerea> Maybe I will re-use your code for reading barcode
[10:52] <Nymerea> because I didn't success to use zbar
[10:56] <Nymerea> mzanetti, I just tryed -90°
[10:56] <Nymerea> device.naturalOrientation [10:57] <Nymerea> and now it's rotated by -90°
[10:58] <brunch875> urrrgh I'm still unable to paint a qtquick rectangle entirely on c++
[10:58] <brunch875> this api is harsh
[10:58] <Nymerea> actually, what ever the number is, the screen is rotated -90°
[11:03] <mzanetti> brunch875, not sure what you're trying to do
[11:04] <mzanetti> but wouldn't it just be subclassing QQuickPaintedItem and then just painRect() inside the paint() or update() method?
[11:05] <brunch875> that's a great hint, thanks! I'm kinda lost
[11:05] <Nymerea> mzanetti, Okay I got it, I have "ReferenceError : screen is not defined"
[11:05] <mzanetti> you're missing an import I guess
[11:08] <Nymerea> mzanetti, you're right
[11:08] <Nymerea> Thank you for you're precious help
[11:08] <Nymerea> you're always right
[11:14] <mzanetti> :D
[11:14] <mzanetti> no problem, you're welcome
[12:18] <dholbach> davidcalle, how are things in the deployment department? :)
[12:40] <davidcalle> dholbach, reverted everything to r122 :( Sent an email for help.
[12:40] <davidcalle> r122 because it's the one that deploys.
[12:41] <dholbach> :-/
[12:41] <dholbach> davidcalle, r122 is without the mojo changes?
[12:44] <davidcalle> dholbach, yep, but it also has a bunch of extra files, like a db dump (it's not a clean pull from trunk at r122). Ideally, I should try to extract it, merge manually evertyhing we have done and try again with a tarball based on it. Haven't found time to do it yet.
[12:46] <dholbach> davidcalle, can Caio or anyone from webops help?
[12:47] <dholbach> it looks a bit like we're fishing in the dark :-(
[12:48] <davidcalle> dholbach, I know. Emailed caio, mike and jacek
[12:50] <dholbach> cool *crossing fingers*
[13:48] <mcphail> jhodapp: I think I'm going to have to give up chasing that media-hub bug with the # symbols in the path
[13:49] <jhodapp> mcphail, alright no worries, just make sure all of what you discovered is on the comment log for that bug
[13:49] <jhodapp> mcphail, learned a few things I'm sure :)
[13:50] <mcphail> jhodapp: absolutely :) Most of all, I learned that C++ and debuggers are a deadly mix :)
[13:50] <jhodapp> lol
[13:50] <jhodapp> indeed, C++ feels very insane at times
[15:42] <ubik__> Helo, how can I detect screen rotation with QML?
[15:42] <ubik__> (if it is vertical or horizontal)
[15:43] <ahayzen> https://developer.ubuntu.com/api/apps/qml/sdk-15.04/QtSensors.OrientationReading/ or just measure the width vs height of the page
[15:43] <ubik__> thx
[15:59] <ubik__> uhm
[15:59] <ubik__> my app crashes, when i add the code from this page
[16:00] <ubik__> isn't it possible to use accelerometer and OrientationSensor at the same time?
[16:01] <ahayzen> ubik__, what is the error it crashes with ?
[16:02] <ubik__> Sdk-Launcher> Application started: 947
[16:03] <ubik__> Sdk-Launcher> Received a failed event
[16:03] <ubik__> Sdk-Launcher> The Application exited, cleaning up
[16:03] <ubik__> Sdk-Launcher> Finished
[16:03] <ahayzen> ubik__, there should be the actual apps output somewhere, maybe in one of the other panels
[16:04] <ahayzen> you have .. import QtSensors 5.0 .. at the top of the file right?
[16:04] <ubik__> I have import QtSensors 5.2
[16:05] <ahayzen> yup that should be ok
[16:05] <ubik__> i try to uncomment my accelerometer
[16:05] <ahayzen> ubik__, if its a pure qml app have you tried running $ qmlscene path/to/app.qml  ?
[16:07] <ubik__> nope
[16:10] <ubik__> I dont know how to debug
[16:10] <ubik__> because im a newbie to ubuntu-sdk
[16:10] <ubik__> but maybe my code is just wrong
[16:11] <ahayzen> if your using Qt Creator is there anything in the "application output" panel at the bottom?
[16:11] <ubik__> http://pastebin.com/BYztNsED
[16:11] <ubik__> yes, thats what i posted already
[16:12] <ahayzen> hmm you'd usually get something more useful than that
[16:13] <ubik__> I just need to set colums = 1 and rows = 2 of the Grid when I rotate my device
[16:13] <ubik__> It's something stupid, but I don't know how to do it
[16:14] <ahayzen> ubik__, when running the code you provided me... property string teststring: 0 .. fails with Invalid property assignment: string expected
[16:14] <ubik__> oh
[16:14] <ubik__> lol
[16:14] <ubik__> :D
[16:15] <ahayzen> :-)
[16:15] <ubik__> now my application starts
[16:15] <ubik__> thx
[16:15] <ahayzen> yey no problem
[20:23] <taiebot> mzanetti cool update for kodimote. Would it be possible to put a next playing on this screen? http://i.imgur.com/h1hmm51.png it would be nice to have this info here.
[20:52] <mzanetti> taiebot, longpress
[20:52] <taiebot> mzanetti: i already know for this is just it would be intersting to know what will play next on this screen.
[20:53] <mzanetti> ah, i see
[20:53] <mzanetti> ok, will think about it
[20:56] <taiebot> mzanetti: yeah the long press shows me what play next but it starts a day in the past for me
[20:57] <mzanetti> taiebot, right... that's a bit odd. I can't really know where to scroll the list to without lots of fancy maths and I never found the motivation to do that
[21:00] <taiebot> mzanetti: yeah i do understand. If i had the skills would do a tvheadend scope (backend PVR for Kodi)  it would be much more appropriate for TV channels