/srv/irclogs.ubuntu.com/2015/03/24/#ubuntu-app-devel.txt

=== salem_ is now known as _salem
newbie-13442hi!00:57
newbie-13442I'm trying to write my first web-app. For this I need to modify the user agent. but --user-agent-string="test" does not seem to work. Any suggestions?00:58
newbie-13442Plus I would like to test it on my Ubuntu Phone (the bq e4.5 thing). But every time I connect it to my pc I get: Checking installed emulator package. ii ubuntu-emulator 0.16-0~136~ubuntu14.04.1  Search configured emulator instances. Detecting device..; And then it vanishes again01:00
newbie-13442Anyone online?01:03
newbie-13442I'm trying to write my first web-app. For this I need to modify the user agent. but --user-agent-string="test" does not seem to work. Any suggestions?01:11
ahoneybunhey newbie-1344201:12
jplattenewbie-13442: There are people online; I am one of them though this is the first time for me writing something here01:12
newbie-13442Okay, thanks for the feedback :)01:13
jplatteIf you're not getting help immediately, I'd recommend you to get yourself an IRC bouncer so you can read things that are written here while you're away, so you can get answers without actually being online01:13
ahoneybunnewbie-13442: if you have a device you don't need the emulator really01:13
* ahoneybun needs one01:13
jplatteThough I guess you'll have to have your own virtual server for that01:13
jplatteHm, why would one need the emulator at all, you can build apps for x86 / x86_64 ...01:14
jplatteIn my Ubuntu VM, the 'Computer' build target or whatever it's called was there from the beginning01:15
ahoneybunI've never had it built for the desktop01:15
jplattewhy not?01:16
ahoneybunjplatte: I use the the computer icon01:16
ahoneybunhard to explain01:16
ahoneybundeployed it local01:16
ahoneybunbut never built it01:16
jplatteUhm, wat01:17
jplatteIt has to be built before you can 'deploy' it. It's just done automatically01:17
ahoneybundeploying does not really build01:17
ahoneybunyou can't run it outside of the sdk anyway01:17
jplatteI'm pretty sure you can01:17
jplatteThough I wouldn't want to, anyway01:18
newbie-13442Locally it runs. Still I would like to test it on my phone. But i could not find any instructions online how to configure the use of a mobile01:20
ahoneybunnewbie-13443: same person01:27
ahoneybun?01:27
newbie-13443yes, just switched browser01:32
ahoneybunnewbie-13443: I'm looking for the docs01:37
=== ahoneycutt is now known as ahoneybun
newbie-13443editing the /usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Extras/Browser/ua-overrides-desktop.js file and adding rules for the websites worked. Locally. For now. Not a nice solution though.01:53
newbie-13443editing the /usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Extras/Browser/ua-overrides-desktop.js file and adding rules for the websites worked. Locally. For now. Not a nice solution though.01:56
newbie-13443@ahoneycutt01:57
newbie-13443remains the problem, that I don't get the app onto my device01:57
=== ahoneycutt is now known as ahoneybun
ahoneybunnewbie-13443: what side are you making a web app for?01:57
ahoneybun*website01:58
=== chihchun_afk is now known as chihchun
mardyMirv: hi! I forgot to follow-up: indeed copying the qmake-cross + mkspecs works, I could build my app :-)07:57
Mirvmardy: wow, not that I didn't believe it'd work, but I'm positively surprised anyway ;)08:12
Mirvmardy: my main concern was that the qmake could say that it wants qt 5.3.2 instead of rtm's 5.3.0, but luckily that wasn't the case then08:13
=== chriadam is now known as chriadam|away
davidcalleMorning all o/08:22
dholbachgood morning08:26
justCarakasmorning :)08:47
ogra_against what package do i file sdk bugs ?09:54
ogra_(do we have some generic product ?)09:54
* ogra_ looks on developer.u.c to see if there is any bug guidance for sdk issues10:08
ogra_doesnt seem like :(10:10
Mirvogra_: qtcreator-plugin-ubuntu if IDE and ubuntu-ui-toolkit if UITK10:11
Mirvno generic product otherwise10:12
=== JMulholland_ is now known as JMulholland
ogra_Mirv, thanks !10:32
ogra_the docs should really provide some links for that10:32
ogra_davidcalle, ^^^10:32
davidcalleogra_, +110:33
dholbachballoons, it'd be great if you could review/test https://code.launchpad.net/~dholbach/help-app/1434415/+merge/25384410:39
* ogra_ files bug 143577810:39
ubot5bug 1435778 in ubuntu-ui-toolkit (Ubuntu) "can not set applicationName property from variable" [Undecided,New] https://launchpad.net/bugs/143577810:39
ogra_kalikiana, ^^^ this is the issue we talked about yesterday btw ...10:47
ogra_(i tried an alternative method too, that fails the same way)10:48
zsombiogra_: kalikiana: from the logs I do see the app name being set to foo-bar.ogra10:59
zsombiogra_: kalikiana: however the organization name is still QtProject...10:59
ogra_right11:00
ogra_something uses the empty "applicationName" before using the imports11:00
ogra_and seems to fall back to QtProject11:00
dholbachdpm, balloons: there's also https://code.launchpad.net/~dholbach/help-app/1435783/+merge/253952 if you have a bit of time11:01
zsombiogra_: actually the applicationName when changed also alters the organizationName, so seems that is not set at all...11:01
kalikiana"~/.cache/QtProject/foo-bar.ogra/Cache" is clearly using the correct name in some manner11:02
kalikianabut it's odd that the other values don't match11:02
kalikianait might be whatever uses this Cache folder is using APP_ID11:03
zsombikalikiana: shouldn't the QtProject be missing as we set the org name to an invalid string?11:05
kalikianazsombi: that's why I said it might be something using APP_ID directly11:09
zsombikalikiana: ah, yea, sorry11:09
dpmdholbach, what does make -s do?11:10
dpmre: your merge proposal11:10
zsombikalikiana: afaik we don't have our own launcher, do we?11:10
zsombikalikiana: meaning we still use qmlscene11:10
dholbachdpm, "quiet"11:11
dholbachit's irrelevant11:11
dholbachor "silent" rather11:11
dpmok, thanks11:11
kalikianazsombi: outside of testing, yes11:11
mcphaildholbach: I was using your excellent tutorial on producing .debs for a PPA. You use bzr-specific commands. I prefer git and note there are debian-package git extensions. Have you used them? Do they work as well as bzr?11:17
=== ara is now known as Guest75262
ogra_zsombi, this app definitely runs "qmlscene $@ Main.qml"11:31
ogra_the code without the global var stuff (and still quite messy, its just a prototype yet) is at http://bazaar.launchpad.net/~ogra/junk/alternate-webapp-container/files/head:/11:32
LangeOortjescan I get the entire document from a delegate of a ListView that has a U1db.Database as its model? I can get to docId and contents individually, but I'd like to pass on the entire Document to a method11:55
=== _salem is now known as salem_
dpmpopey, dholbach, mhall119, I just noticed this: http://ubports.com/12:11
dpmdavidcalle, balloons ^12:11
dpmit seems the guy who is working on the oneplus one port created it12:12
dpmthey've got a nice feature where one can request for a port, and see which ones are the most popular12:12
dpmperhaps we could work with them to keep the list of devices?12:13
nik90zsombi: ping12:19
zsombinik90: meeting, will ping U later12:20
davidcalledpm, that's nice. Maybe I could make a list of recently enabled devices and open a thread on their forum? As a first step to build a common list and maintain it together?12:22
nik90zsombi: ok12:24
dpmdavidcalle, could be a good idea12:24
dholbachdpm, nice :)12:37
dholbachand there's https://code.launchpad.net/~dholbach/help-app/1435772/+merge/253954 too12:44
dholbach^ balloons12:44
balloonsack dholbach12:52
dholbachthanks :)12:53
charlesrenatu, ping13:02
dholbachballoons, did you see the mail I sent? I'm not quite sure what we can do to fix the jenkins builds...13:04
renatucharles, ping13:04
dholbachboth pyflakes/pyflakes3 and the missing PPA looks like stuff not in the control of lp:help-app13:04
balloonsdholbach, I looked yesterday at the build issues and thought it was on our end, but we can fix if not13:05
balloonsit should be using the coreapps ppa for pelican13:05
balloonsfor pyflakes, we can change it to pyflakes3, it's not running pyflakes313:05
dholbachok... so we need to move away from https://code.launchpad.net/~ubuntu-touch-coreapps-drivers/+archive/ubuntu/collection?13:06
balloonswhere is pelican?13:06
balloonsit uses https://launchpad.net/~ubuntu-touch-coreapps-drivers/+archive/ubuntu/daily13:06
dholbachok, I'll upload pelican to that one then13:06
dholbachballoons, shall I also direct the daily build over to ppa:ubuntutouch-coreapps-drivers/daily?13:08
dholbachor shall I stop the daily build altogether?13:09
dholbachpelican is now building in the right ppa: https://code.launchpad.net/~ubuntu-touch-coreapps-drivers/+archive/ubuntu/daily/+build/710505013:09
balloonsdholbach, we can swap the ppa ci uses if you wish, but the other core apps use that ppa, so it makes more sense to swap to it I think13:09
balloonsso yes, add builds to it13:10
dholbachno, I'll move everything13:10
dholbachcool13:10
dholbachhttps://code.launchpad.net/~dholbach/help-app/1434415/+merge/253844 will need to be landed to make the build pass on utopic13:12
dholbach(separate from the pelican requirement)13:12
dholbachnow that I merged from trunk the diff should be smaller as well13:15
dholbachall in all we also have more tests in the pipe now :)13:15
balloonsworking on getting pyflakes changed to pyflakes313:32
dholbachwhere is that defined?13:34
balloonsin the jenkins job. Should be done in just a sec and we can re-run13:38
dholbachis that in a branch somewhere?13:42
dholbachor in a jenkins ui somewhere?13:43
balloonsthe latter13:43
dholbachok13:43
balloonswell.. actually it might be in the branch config13:43
dholbachlet me know when you found it - I'd be interested to learn more about that bit as well :)13:45
balloonswell I've simply asked CI to swap it. At one point there jobs read from a config we could make an mp against in bzr, but they still have the power13:46
balloonsmeaning, they could just change the value in jenkins anyway13:46
dholbachok13:47
dholbachdavidcalle, popey, mhall119, dpm: who's up for the Q&A today?13:47
dpmdholbach, popey, would you be up for it? Mike and I have a call at that time13:48
dholbachok13:48
dholbachdpm, is it in 1h10m or 2h10m?13:49
dpmdholbach, in 2h10, despite what our calendar says13:49
balloons:-) DST <313:50
dholbachcool13:50
popeydpm: I'm up for it13:52
dpmgreat, we have a plan, then13:52
popey#blamemhall11913:52
popeyits at the right time in the UOA calendar13:52
balloonsdholbach, why do you suspect we need pyflakes3 though?13:56
* balloons is curious now and wondering as pyflakes2 seems to work fine locally13:57
dholbachmh?13:57
dholbachwe use python313:57
balloonssure.. the weird part is, so do all the other core apps and we've not had an issue13:57
dholbachdaniel@daydream:~/dev/apps/help$ pyflakes internals/*.py internals/tests/*.py internals/translations/*.py13:58
dholbachinternals/translations/build.py:314: undefined name 'NotADirectoryError'13:58
dholbachdaniel@daydream:~/dev/apps/help$ pyflakes3 internals/*.py internals/tests/*.py internals/translations/*.py13:58
dholbachdaniel@daydream:~/dev/apps/help$13:58
dholbachNotADirectoryError is builtin in python313:59
dholbachmaybe the other core apps only use features and classes which exist in both (and are imported from the same modules)14:01
balloonssome use only py3 code and modules actually14:01
balloonsbut anyways, we'll use py314:02
dholbachright14:02
dholbachI was just saying that they might be using code where the written code imports modules and classes which are the same on python2 and python314:03
zzarrhello! I can't get the webview to work, I've copy pasted the example in the documentation14:07
zsombinik90: I'm back, sorry, it took a bit more than expected14:22
nik90zsombi: hey np...I figured out the source of the clock app crasher and while trying to fix it I ran into some stuff that I wasn't sure about14:24
nik90zsombi: so it turns out that clock app is crashign due to the bottom edge which uses the get() function to find out the next closest active alarm14:24
nik90zsombi: and it checks every minute (which sucks)14:25
zsombinik90: so it crashes when it calls the get()?14:25
nik90zsombi: yes14:25
zsombihmm!!!14:25
nik90zsombi: and that's why the clock app pretty much crashes randomly at different places...it doesnt matter if the user is in the settings page, or the add world city page..it still crashes because of the bottom edge14:26
nik90zsombi: so I figured that I would use the signals provided by alarm model which include dataChanged, countChanged and modelReset to update the bottom edge14:27
zsombinik90: if teh crash comes due to the get(), then we are in trouble...14:27
zsombinik90: yes, you coudl use that, however this get is a crazy dude14:27
nik90zsombi: the thing is I need to use the get() to iterate through the alarm list and figure out the most recent active alarm14:29
nik90I can't use any other method14:29
nik90zsombi: and guess what, to do that I am using the same method that caused the crash in the edit alarm page14:29
nik90where I passed the alarm mode14:29
nik90s/mode/model14:29
nik90zsombi: so I figured I would better solve this crash by using the signals to retrieve the recent alarm and pass the *alarm date* alone which can then be used to display "next alarm in 3h 40m" etc..14:30
zsombinik90: then we are still having issues in the model...14:31
nik90zsombi: there by no more alarm model passing (which is the cause of the crash)14:31
=== om26er_ is now known as om26er
zsombinik90: get() should never crash14:31
nik90zsombi: could get() perhaps be crashing when it is called before the alarm model is fully initiated?14:32
nik90zsombi: so in essence it is trying to read a null state or something?14:32
zsombinik90: nope, it's a different thing then... last time I saw some QHash hickup, it does not run in a separate thread, so there shouldn't be any fancy problems like that14:33
popeypmcgowan: ^14:33
zsombinik90: do you have the bug for the app for this?14:34
zsombinik90: let's assign toolkit for it as well14:34
nik90zsombi: yeah, 1 sec.. there are 2 bugs reported14:35
zsombinik90: one is enough :D14:35
nik90zsombi: bug 1431579 and bug 143450414:35
ubot5bug 1431579 in Ubuntu Clock App "Clock App crashes when clicking on the settings icon" [Critical,Confirmed] https://launchpad.net/bugs/143157914:35
ubot5bug 1434504 in Ubuntu Clock App "Clock app crashes when trying to set a new alarm" [Critical,Confirmed] https://launchpad.net/bugs/143450414:35
pmcgowanzsombi, ok will start tracking that as a blocker14:36
zsombipmcgowan: right14:36
zsombinik90: does the New Alarm bug also call AlarmModel.get()?14:39
zsombinik90: or is the bottom-egde swipe which tips in there as well?14:39
nik90zsombi: well the code bottomEdgeTitle: alarmUtils.set_bottom_edge_title(alarmModel, currentTime) is called every minute which in turns calls the alarm model get function14:40
zsombinik90: ok, so if you comment that code out, does the New Alarm crash still?14:41
nik90http://bazaar.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/utopic-3.0/view/head:/app/alarm/AlarmUtils.qml#L13714:41
nik90zsombi: nope it doesn't crash anymore14:41
zsombinik90: excellent, so the get() is our monster14:41
nik90yeah definitely14:42
zsombinik90: so smells like all teh crashes are having teh same root cause14:43
popeynik90: we have 3 bugs for this it seems - shall we mark them dupes and add a task for uitk?14:44
popeybug 1422693 bug 1429273 bug 143450414:44
ubot5bug 1422693 in Ubuntu Clock App vivid-15.04 "[Vivid][Regression]Cannot change alarm switch status (enable/disable alarms)" [High,Fix released] https://launchpad.net/bugs/142269314:44
ubot5bug 1429273 in Ubuntu Clock App "Clock App crashes when editing on alarm on vivid" [Critical,Fix committed] https://launchpad.net/bugs/142927314:44
ubot5bug 1434504 in Ubuntu Clock App "Clock app crashes when trying to set a new alarm" [Critical,Confirmed] https://launchpad.net/bugs/143450414:44
zsombinik90: I just need a good minimalistic QML file to repro this14:44
nik90zsombi: I will try to create a minimalistic project for that14:45
nik90popey: bug 1422693 is fixed and no longer relevant, no?14:45
zsombinik90: no project, a QML file... :)14:46
ubot5bug 1422693 in Ubuntu Clock App vivid-15.04 "[Vivid][Regression]Cannot change alarm switch status (enable/disable alarms)" [High,Fix released] https://launchpad.net/bugs/142269314:46
popeyah right14:46
popeythe other two though.14:46
nik90zsombi: well since it happens only with pagestack and passing alarm model around, I need multiple qml files ;P14:46
* popey dupes14:46
nik90popey: yes, they can be marked dupes14:46
zsombinik90: perhaps a component loaded dynamically would also do teh job14:47
nik90zsombi: ack14:47
popeyok, lets use bug 1429273 - task added pmcgowan14:47
ubot5bug 1429273 in ubuntu-ui-toolkit (Ubuntu) "Clock App crashes when editing on alarm on vivid" [Critical,In progress] https://launchpad.net/bugs/142927314:48
pmcgowanpopey, thanks14:48
zsombipopey: haha, I added one to https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/143157914:49
ubot5Ubuntu bug 1431579 in Ubuntu Clock App "Clock App crashes when clicking on the settings icon" [Critical,Confirmed]14:49
zsombipopey: that is also a dupe of teh same toolkit issue14:50
popeyalso marked dupe14:50
zsombinik90: interesting! seems get() sometimes returns null, so if you dereference a null pointer then crash can happen15:00
zsombinik90: so beware of the null result get() may return15:06
nik90zsombi: oh..so if I do,  var currentAlarm = alarmModel.get(i).. .I need to check the validity of currentAlarm by if(currentAlarm) ?15:13
=== chihchun is now known as chihchun_afk
zsombinik90: this is crazy! I made a simple test with a model, initTestCase generates 10 alarms and 10 test alarms, when I start to remove the test alarms in clearTestCase, I get null atth e3rd test alarm removal15:31
zsombinik90: the alarmList[0] sais the Alarm is a valid pointer, and that pointer is passed across the whole chain, fromadapter to model, and by the time arrives in QML is null... wth?15:32
nik90hmmm15:32
zsombinik90: QDEBUG : components::AlarmModelStressTest::cleanupTestCase() (ucalarmmodel.cpp:217, UCAlarmModel::get) - get 4 UCAlarm(0x1a37350) "testAlarm_4"15:35
zsombiQDEBUG : components::AlarmModelStressTest::cleanupTestCase() (file:///home/zsombor/CloudStation/projects/alarms/alarmmodel-get-crash/tests/unit_x11/tst_components/tst_stress_alarmmodel.qml:73, clearTestAlarms) - null15:35
zsombinik90: the first line is the trace from teh AlarmModel::get() just before returns the alarm15:35
zsombinik90: the second trace is from teh QML right after the get() returns15:35
zsombinik90: and that oen is null15:35
nik90zsombi: it fails while accessing from the qml side..have you noticed this before (in any other projects) ?15:40
zsombinik90: not really... I don't recall any such weirdness15:41
zsombinik90: and the thing is that it is not teh first one which fails...15:43
zsombinik90: it si random...15:43
zsombiis15:43
nik90yeah the crash happens at different times as well for me.. sometimes straight on app startupp .. sometimes while navigating to another page15:46
nik90and surprise surprise..it doesn't crash when there are 0 alarms15:46
zsombinik90: hmm... I just added a mutex into the AlarmList.... and seem sdelete is the guilty one15:54
zsombiseems15:54
nik90zsombi: but I don't call delete though during my crashes15:56
zsombinik90: right.... and you still get NULL pointer15:56
zsombiwhich is weird, you shouldn't15:56
zsombinik90: or you may, if the given index is out of model.count15:57
zsombinik90: but even then you;d get a crash...15:57
nik90zsombi: well I do check (!alarmModel || !alarmModel.count)15:57
nik90before trying to access the alarm model15:57
zsombinik90: but the thing is you most likely call ... yes L)15:57
zsombinik90: ok, mutexes don't help at all, as I thought....15:59
zsombinik90: the only thing I can foresee is that the alarm is deleted... for some reason15:59
nik90zsombi: I can't get the sample app to crash.. I used a Loader to load the alarmModel, passed it around to the function and accessed it pretty much the same way as the clock app does16:01
nik90I added debug statements after pretty much every line of the function that causes the crash and it promptly crashes at the  "var currentAlarm = alarmModel.get(i)" line16:02
zsombinik90: so you cannot get it repro with a sample code?16:07
nik90yes16:08
zsombinik90: damn....16:08
zsombinik90: I can clearly see it returning null...16:08
zsombinik90: I hav etraces in Alarm destructor, the alarm that is supposed to be returned is not deleted :/16:11
zsombithsi stupid backend is killing me...16:14
nik90zsombi: let me using the alarm model signals to update the bottom edge title and avoid passing alarm model as an argument to other functions16:21
nik90zsombi: since that was the cause of the crash in the edit alarm page that we fixed16:22
zsombinik90: ok, but beside that, calling a get() which has a valid return value in C++ and in QML a null result is utmost brainkiller16:22
zsombinik90: DAMN IT!16:28
zsombinik90: if I create a temporary Alarm object and not the stock one, it works16:29
zsombinik90: ok, so seems we have a solution16:38
nik90zsombi: ?16:38
zsombinik90: you make sure you don't pass any model in between the pages16:39
zsombinik90: and I have to create temporary Alarm objects each time get() is called16:39
zsombinik90: I'll have an MR from toolkit16:40
nik90zsombi: well I instantiate the alarm model in MainView and have to pass it to the alarm list page. If not I need to declare a AlarmModel twice16:41
nik90zsombi: and if I don't instantiate the alarm model in MainView then the bottom edge wont work16:41
zsombinik90: ah... hmm16:41
nik90zsombi: the crash appears when I pass the alarm model and use the get() function.. Fortunately I don't do this in the alarm list page since I use a listview to get the alarm objects and show them16:42
nik90that combination is what I previously mentioned that I will try to avoid16:42
zsombinik90: bzoltan_: https://code.launchpad.net/~zsombi/ubuntu-ui-toolkit/alarmmodel-get-crash/+merge/25398116:53
zsombinik90: get this MR before ytou do anything with your app16:54
nik90zsombi: ack. Testing it now16:54
zsombinik90: thx, lemme know what happened, I most likelly will see it tiomorrow morning16:55
nik90zsombi: ok. I need to grab dinner soon but I will definitely have the results by tonight16:55
zsombinik90: the test I have it with teh MR reproduced the get() crap16:55
zsombinik90: thx!!!16:56
* zsombi eod16:56
dholbachdavidcalle, what can we do about bugs 1313764, 1434887, 1435473, 1435471, 1317065?16:56
ubot5bug 1435473 in Ubuntu App Developer site "API page empty" [Undecided,New] https://launchpad.net/bugs/143547316:57
ubot5bug 1313764 in Ubuntu App Developer site "Unity Web API does not have a 14.04 framework doc" [High,Confirmed] https://launchpad.net/bugs/131376416:57
ubot5bug 1317065 in Unity Website "Move old indicator docs to unity.ubuntu.com" [Undecided,Confirmed] https://launchpad.net/bugs/131706516:57
ubot5bug 1434887 in Ubuntu App Developer site "links in unity webapps dev portal have broken (404) links" [Undecided,New] https://launchpad.net/bugs/143488716:57
ubot5bug 1435471 in Ubuntu App Developer site "cookbook page empty" [Undecided,New] https://launchpad.net/bugs/143547116:57
RisikorukHello anyone, anyone I can ask about QTCreator not detecting the Aquaris Ubuntu?17:02
davidcalledholbach, for web api and cookbook, we could probably redirect to the guide page.17:02
dholbachI'm wondering what kind of content is missing now17:03
RisikorukDoes anyone have any idea why a Aquaris Ubuntu Edition doesn't appear in the Ubuntu Device section of the Ubuntu-SDK?17:03
dholbachis this stuff that should be on unity.u.c or am I conflating two different issues?17:03
dholbachdavidcalle, ^17:04
davidcalledholbach, it's not the same thing (afaik), the web api was docs put together by the old webapp team, standalone html files, with how to integrate website into the launcher (count), indicators (messaging, music control), notifications17:05
davidcallewebsites*17:05
davidcalledholbach, it's still somewhere on lp, and is deprecated (13.10 only)17:06
davidcalledholbach, that's why I think we should redirect to the guide.17:08
dholbachAlanBell, which docs are you missing there?^17:08
dpmkalikiana, t1mp, zsombi, perhaps one of you guys can help Risikoruk? ^^17:08
bzoltan_dpm: davidcalle: dholbach: if you see Risikoruk back would you proxy him that he needs to enable development mode in the Settings → About this device → Developer mode.17:15
dholbachbzoltan_: I don't know Risikoruk :/17:16
dholbachand need to run now17:16
davidcallebzoltan_, I'm out in a few minutes, but sure, if I see him17:17
dpmsame here17:18
ogra_i think he found help in -touch17:19
=== balloons is now known as iwishiwasascoola
=== iwishiwasascoola is now known as balloons
nik90zsombi: hmm that seems to have done the trick. The app did crash *once* at startup. I will keep testing throughout the night to see if I can reproduce it.17:24
nik90zsombi: without your MP it crashes pretty much on every run which I don't see now17:24
dakernik90: faced another issue http://paste.ubuntu.com/10671409/17:53
nik90daker: I have seen those errors as well, but it still installs the necessary packages required by the sdk18:06
nik90daker: just ignore them and proceed to create the desktop file and open the app using lxc18:07
akiva-thinkpad... qtcreator is still compiling...18:09
mhall119bzoltan_: kalikiana: what else is needed to merge https://code.launchpad.net/~kalikiana/u1db-qt/qmlDocs/+merge/208818 ?18:31
keefBit stuck using the Ubuntu SDK.  I just got my Ubuntu phone this morning & I'm trying to copy an application I've written to it.  Can't seem to work out what to do.  Is there a tutorial or an explanation of what to do?19:05
dobeykeef: have you enabled developer mode on the phone?19:20
kalikianamhall119: I need to tweak the docs as per marco's comments, I'll do that now, then it can be passed to ci19:23
mhall119thanks kalikiana19:23
kalikianamhall119: thank you for checking, sometimes I just have too many tabs open…19:24
* mhall119 looks at his tab bar19:25
mhall119I understand completely :)19:25
dobeywhenever i see "tab bar" all i can think is that someone is dyslexic19:28
dobeyor it's time they should pay it and go home19:28
mhall119lol19:29
keefdobey: I've got  a bit further, I'm using a different cable to connect the device & it's detected it, but the Ubuntu>Install application on device... comes up with a progress bar, but it doesn't appear on the device19:32
dobeykeef: ah ok. i'm not quite sure how all that works exactly, and i've not used it. maybe someone else can help you though19:34
keefdobey: Thanks anyway :) I'll keep bashing my head against it19:35
nik90keef: if that progress bar comes up, then it means that the SDK hasn't detected your device19:35
nik90keef: Can you run "adb devices" in the terminal and see if your device is listed19:35
nik90rpadovani: ping19:36
dobeykeef: make sure your screen is unlocked when you do the "install on device' perhaps ^^19:36
dobeybased on what nik90 said19:37
kalikianaMirv: still around? mind passing this on to ci? https://code.launchpad.net/~kalikiana/u1db-qt/qmlDocs/+merge/20881819:43
justCarakasakiva-thinkpad:  what was that name of the help app again on launchpad ,19:53
=== greyback__ is now known as greyback
akiva-thinkpadjustCarakas, hmmm?19:54
akiva-thinkpadhelp app? I think that is ahoney's project19:54
akiva-thinkpador are you talking about my autopilot plugin?19:54
balloonsjustCarakas, https://code.launchpad.net/help-app?19:55
justCarakasyes balloons that one thx :)19:56
nik90seb128: I might finally have a fix for your bug 138143220:01
ubot5bug 1381432 in Ubuntu Clock App "Display "no active alarm" while checking" [Medium,In progress] https://launchpad.net/bugs/138143220:01
rpadovaninik90, pong20:13
nik90rpadovani: hey, how is it going?20:13
rpadovaninik90, busy as hell, but all it's more than good :-) What about you?20:14
nik90rpadovani: Good. I saw your g+ post about getting your glasses removed..I was thinking of doing the same later this year using a lasik surgery20:14
nik90rpadovani: hey, when you find time, could you review https://code.launchpad.net/~nik90/ubuntu-clock-app/improve-setting-listitem/+merge/25293020:16
rpadovaninik90, you totally have to do it: no pain at all. I had 10 dioctries for each eye, so the surgery was a bit long, but I had no problem. Two days of blind to a life without glasses20:16
rpadovaninik90, sure, I do it tonight :-)20:16
nik90rpadovani: yeah I was planning to do it in feb what I went to india, but didnt have time to get it done20:17
nik90s/what/when20:18
nik90rpadovani: well enjoy a glass free experience :-)20:18
rpadovani\o/ ty20:18
aquariusWho's feeling knowledgeable about QML? Specifically, I have a checkbox which, when changed, gets its value (true or false) written to the database. However, that checkbox's initial value depends on that read *from* the database. So, if you create a variable isEnabled, set CheckBox { checked: isEnabled; onCheckedChanged: updateDB(checked); } and updateDB() saves the value and then updates the isEnabled var...20:23
aquariusyou get an infinite loop.20:23
aquariusHow is one *meant* to do this?20:23
aquariusit'd be easier using u1db rather than sql, but I don't think that a scope can read a u1db database.20:23
=== ahoneycutt is now known as ahoneybun
nik90aquarius: hey20:29
nik90aquarius: why don't you instead use the onClicked signal instead20:29
* nik90 has run into this paradox before :P20:29
aquariusnik90, because there's also a Label next to the checkbox, and clicking the label should also toggle the checkbox20:30
nik90hmm ok20:31
aquariusthe Label contains a MouseArea which calls checkbox.clicked(), but I am exceedingly mistrustful of the idea that programmatically invoking .clicked on a thing will properly fire its onClicked handler :)20:32
nik90aquarius: let me try it on my end, 1 min'20:32
nik90aquarius: then when you click the label, change the checkbox's checked value and also update the database20:36
aquariusya, but then if the database write *fails*, I have to switch the checkbox back agan, from inside the db update function, which is a massive layer violation :)20:37
nik90aquarius: I tried setting the label's mouse area to call checkbox.clicked() and verified that it does call the onClicked signal correctly20:38
nik90I mean you are firing a signal, so I don't see why its handler wouldn't be called by qml20:39
aquariushuh. Maybe what I do is *cancel* the clicked handler20:39
aquariusand *only* set the checkbox value from the db function20:39
aquariusnope; you can't cancel a clicked handler20:40
aquariuswell, not by returning false, anyway20:40
aquariusis that possible?20:41
nik90aquarius: well since you set the checkbox value to the database's value, if the db write fails, wouldn't the checkbox also return to its original value?20:41
nik90I am not sure how to cancel the clicked handler20:41
aquariusyep. but that's what I *want* it to do, because the db value didn't change20:41
nik90aquarius: paste.ubuntu.com/1067257220:43
nik90I am not sure how to simulate db write fails thouhg20:44
nik90s/thouhg/though20:44
aquariusyeah, that's what I'm basically planning to do, I think20:45
dobeywrite a mock for the DB API which fails20:45
dobeyreturns an error, or whatever20:46
aquariusyeah. I think I was just overcomplicating things and I didn't need to. It works with onClicked20:49
aquariussweet. So, app basically works20:50
aquariusnow all I need is the scope to go with it :)20:50
ogra_hmm, is there a way to make a qml app fullscreen without having to use a window ?20:51
aquariusfor which cwayne has said he'll write some docs, if he gets a chance.20:51
ogra_MainView doesnt seem to support something like toggling fullscren20:51
aquariusogra_, um, how does it not have a window? :)20:51
ogra_well, none i have defind20:52
ogra_*defined20:52
ogra_i mean the qml Window element :)20:52
aquariusoh!20:52
aquariusthat makes more sense ;-)20:52
aquariusI don't *think* so. MainView imports Qt.Window, but it is not itself an ApplicationWindow :(20:54
ogra_i have a webview inside a page inside a mainview ... if the webview goes fullscreen, it only does that inside the mainview ... so the panel stays visible and the app behaves like maximized20:54
aquariusbecause your app isn't creating the window; qmlscene is20:54
ogra_right20:54
aquariusqmlscene --fullscreen will run it fullscreen, wooo, but that's not toggleable from code inside that window, I don't think20:55
ogra_lol20:55
ogra_yeah, not what i want20:55
ogra_well, if it bothersme enough i might try to use a Window ...20:56
nik90ogra_: I heard that's planned in the SDK to add Mainview support for fullscreen apps20:56
ogra_how does the browser do that i wonder20:56
nik90ogra_: the gallery apps does this using c++ code afaik20:56
aquariusif you were a horrible person you could start the app with qmlscene --resize-to-root and then resize your root item to be the size *of* the screen, but that is doom20:56
ogra_yeah20:56
nik90lol20:56
ogra_i dont want to use C++ :)20:56
aquariusthe browser is a c++ app, so I suspect it creates a Window20:56
aquariusor actually it'll create a QtWindow and handle fullscreening itself20:56
ogra_the browser is 80% QML ...20:57
aquariusif I had to guess.20:57
ogra_but yeah, quite a bit of C++20:57
aquariusbet you a quid that the fullscreen stuff is in the 20%20:57
aquariusdoes the browser go actual fullscreen on a desktop?20:57
ogra_hmm, looks like it actually uses the Window element from QML20:57
nik90ogra_: well use your powers to convince sdk devs to implement this feature in MainView20:58
aquariusF11 doesn't toggle webbrowser-app to be fullscreen for me20:58
aquariusI wonder if the JS API does?20:58
ogra_nik90, i need all my powers to get bug 1435778 fixed first ;)20:58
ubot5bug 1435778 in ubuntu-ui-toolkit (Ubuntu) "can not set applicationName property from variable" [Undecided,New] https://launchpad.net/bugs/143577820:58
aquariusyeah. I wanted to do that, a while back, and got mocked20:59
ogra_(thats a really annoyign onne if you want to build somthing generic)20:59
aquariuspartially because the appid gets read out of other stuff and used by upstart-app-launch, or at least it did, so changing it after startup was useless :)20:59
ogra_well, it gets read before the import stanzas are processed21:00
ogra_but ovbiously after the app has actually started21:00
ogra_judging by what i see in the logs21:00
ogra_so i think it is just a matter of ordering21:00
aquariusI admire your optimism ;)21:03
ogra_heh21:04
ogra_well, i started by poking mr.mendoza ... who pointed me to ted ... who pointed me to sdk team :)21:04
justCarakasdoes anyone know if you can use a tags with hrefs to other html files in an HTML5 app ?21:05
ogra_i guess i'll end up at the mir team in the end :)21:05
nik90rofl21:05
ogra_justCarakas, why not ... with relative paths and inside your appp dir that should work21:06
justCarakasok thx :)21:06
nik90ogra_: its ironic how you work on the lower level stack of ubuntu touch and yet go to the highest level (sdk) to raise questions :P21:06
ogra_nik90, well, i try to know the whole stack ... also, if i dont write the apps i want nobod does or i have to wait :)21:06
ogra_its after all just my impatience ;)21:07
nik90;)21:07
ogra_the webapp-container annoys me since a long time, thats why i write my own now :)21:07
ogra_or rather glue it together from code of others :)21:09
ogra_one thing that really annoys me is that it is really hard to find documentation if you try to do something non-standard21:09
ogra_we all need to blog more :)21:10
nik90hmm true, its been ages since I blogged21:10
ogra_(it took me a day to find out how to properly intercept a click on a link in the webview so i can validate the url before going forward)21:11
mhall119ogra_: a week?21:12
ogra_theere are wonderful blogs from daker and chrisccoulson ... but exactly the info i needed was in neither of them ... yet ... no matter how you enhance or adjust your google search ... all you hit is their blogs :)21:12
ogra_... because there simply isnt more documentation :)21:12
chrisccoulsonOxide seriously lacks documentation. I'd love somebody to come along and write some :)21:12
ogra_well, i'll surely blog about my experience and put some code examples in21:13
ogra_so the next person looking for that info can find something21:13
ogra_mhall119, a week ?21:13
ogra_(context ?)21:14
=== salem_ is now known as _salem
mhall119sorry, s/week/day/21:14
ogra_yeah21:15
mhall119which is quite a bit more reasonable :)21:15
nik90ogra_: I have to say your g+ app provides an almost native g+ experience .. one wouldn't be able to tell the difference without looking hard21:15
mhall119don't know how I read "week"21:15
ogra_nik90, my local one is already better :) i need to push to the branch again .. (removed the menu handle in fullscreen videos, rotates properly)21:15
nik90balloons: can you kick jenkins again for https://code.launchpad.net/~nik90/ubuntu-clock-app/fixed-bottomedge-status/+merge/253998 .. not sure what the failure is about as it passes that part locally for me21:16
nik90ogra_: oh21:16
ogra_i dont really want to make another G+ app in the store though, i'd like more if someone who has one switches to my framework :)21:16
nik90ogra_: yeah hopefully szymon would adapt his g+ app using your framework21:18
ogra_right21:18
ogra_he is not much on IRC, is he ?21:18
nik90nope21:18
ahoneycuttmhall119: hey21:19
balloonsnik90, sure21:19
nik90balloons: curious but how does one see the object names for the location prompt dialog when it is only possible to test that while running on the phone?21:21
nik90balloons: I mean autopilot vis cant be used here21:21
balloonsnik90, true, vis doesn't work21:22
balloonsif all else fails, run on device and use print_tree21:22
balloonsbut I would probably look at the qml source if I could as well21:22
nik90balloons: hmm I will have to scour the trust-store project for the qml source then21:24
mhall119hey ahoneycutt21:25
aquariusogra_, I may use your container thing :)21:25
ahoneycuttmhall119: https://launchpad.net/gazeteer21:25
ogra_aquarius, awesome .... its still a little prototypish and not cleaned up yet ... but already usable :)21:25
aquariusogra_, well, my little "add web apps to the home screen" app, which now mostly works, needs a way to run those apps when they're started by the scope21:26
ogra_sweet !21:26
aquariusI could have it start the existing webapp container21:26
balloonsnik90, can you not use print_tree? does it not prompt on the emulator (I assume location service means no). Do you need a dump of the object?21:26
aquariusbut I also want to start them from within the app itself as well21:26
balloonsI could help if you just need an object dump21:27
aquariusand I don't believe that I can start up a webapp container from inside my own QML app21:27
ogra_not easily i think21:27
aquariusbut do correct me if I'm wrong here -- does webapp-container register a magic URL scneme?21:27
aquarius(it should, if it doesn't, but I bet it doesn't ;))21:27
nik90balloons: I will just use the print_tree method..seems easy enough.21:27
ogra_it has some validation checks by default21:27
ogra_but you have to define a pattern if you want it to do more21:28
aquariusactually...21:29
aquariusI want to start a new applicationName, don't I?21:29
aquariusI don't want to invoke it in my own app.21:29
aquariusdarn it.21:29
ogra_technically yes, but that wont work21:29
aquariuswhich I can't do, because I can't edit the applicationName on the fly21:29
aquariusas per above bug ;)21:29
ogra_yeah, even if you could ... you couldnt "fork" into a new ubuntu-app-launch session21:30
aquariussure I can21:30
aquariusI ship two apps in my click package; one is my app, the other is the new webapp container21:30
ogra_ah21:30
aquariuswebapp container registers for url scheme sil-webapp-container://21:30
ogra_except that you end up with a useless icon in the app scope ...21:31
aquariusand to start a web app in it, I Qt.openUrlExternally("sil-webapp-container://kryogenix.org") or whatever21:31
ogra_one more mediaplayer :)21:31
aquariuscan't I just not give it a desktop file or something?21:31
ogra_but right, that combo will indeed work21:31
aquariusor X-Only-Show-In: gnome or something so it doesn't show in unity? ;-)21:31
ogra_you cant make a desktop file without providing an icon21:31
ogra_and there is no "OnlyShowIn"21:32
aquariusthat sucks21:32
ogra_thats why we have the mediaplayer in the app scope ...21:32
aquariusso I can't ship helper apps which register for a URL scheme?21:32
aquariusBAH.21:32
ogra_which cant d anything but show you an error if you tap itr21:32
ogra_*do21:32
ogra_you can, but you have to ship a proper .desktop file and need to handle the case where the user taps it21:33
aquariusyeah, Readability has the same problem, as does AddToHome which is what I'm doing right now -- they're installed to be Share destinations, not to be directly invoked21:33
aquariuson the other hand, if they don't show up in the apps scope then they can't be uninstalled ;-)21:33
ogra_well21:33
ogra_you dont really want to have half of your scope/app combo uninstalled21:33
ogra_while the other half stays around ...21:34
aquariuswell, no, but Uninstall surely uninstalls the click package it came in....21:34
ogra_right21:34
aquariuswebapp-container doesn't even ship a desktop file at all!21:36
aquariushow does anyone start it?21:36
ogra_you call it from your desktop file21:36
ogra_its also not a click ... its is part fo the system21:37
ogra_*of21:37
aquariusoh, it's Special Magic because it's a default package21:37
ogra_right21:37
aquariusthere is, I have to say, quite a lot of Special Magic going on21:37
=== ahoneycutt is now known as ahoneybun
mhall119aquarius: yes you can22:16
mhall119I *believe* in you :)22:16
mhall119you can do it!22:16
=== ahoneycutt is now known as ahoneybun
AskUbuntuHow to solve Bazaar error bzr: ERROR: unknown command "<ID>"? | http://askubuntu.com/q/60088722:39
rpadovaninik90, sorry, I haven't time 2night for the review, could you please ping me in 8 hours? Need a shower and some sleep22:54
nik90rpadovani: no worries mate, its not urgent22:55
rpadovanithanks, see you o/22:55

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