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

=== chriadam|away is now known as chriadam
=== salem_ is now known as _salem
AkivaAvraham!ping06:04
ubot5pong!06:04
dholbachgood morning07:49
AkivaAvraham!ping08:34
ubot5pong!08:34
AkivaAvrahamdholbach, morning08:34
dholbachhi AkivaAvraham08:36
AkivaAvrahamo/08:36
justCarakasAkivaAvraham:  o/08:40
AkivaAvrahamjustCarakas, \o08:40
=== rmescandon is now known as rmescandon|brb
=== VDVsx_ is now known as VDVsx
=== chriadam is now known as chriadam|away
=== rmescandon|brb is now known as rmescandon
JamesTaitGood morning all; happy Organise Your Home Day! :-D09:37
sturmflut-workJamesTait: Apparently today is also "Dress Up Your Pet Day" and "Hot Pastrami Sandwich Day"09:49
JamesTaitOh noes! sturmflut-work found my secret source of celebrations! :-P09:50
* sturmflut-work Master of the Interwebs09:52
davmor2JamesTait: yeah but we don't listen to sturmflut-work for morning greetings so it's okay09:58
davidcallepopey, hey, is there a way to install store apps from the cli?09:58
JamesTaitdavidcalle, do you have the .click downloaded from the store already?09:59
* JamesTait pretends to be popey09:59
davmor2davidcalle: you can not sure how you would get the click package from the store though10:00
davidcalleJamesTait, nope10:00
davmor2popey^WJamesTait can help you though daker10:00
davmor2davidcalle: not daker sorry10:00
JamesTaitdavidcalle (and davmor2), I have a hacked-together script that will let you download the .click if you know the package name: https://code.launchpad.net/~jamestait/+junk/click-support-tools10:01
davidcalleJamesTait, that's exactly the kind of thing I was looking for, nice :)10:01
popeyyes10:01
popey10:02
JamesTaitdavidcalle, I don't have a script to do the search, and I think you'll need to use pkcon to actually install it when it's downloaded.10:02
davidcalleJamesTait, I don't mind the lack of search, I'm just tired of having to reinstall packages manually everytime I push my luck a bit too far with system tweaks. Thanks :)10:04
mivoligomzanetti: I've seen you've done the last level :) great stuff!10:17
mzanettimivoligo: for the underwater world I still need to prove one can get 3 stars at every level10:18
mzanettiso far I'm missing a few10:18
mzanettiand actually I haven't managed to win level 30 yet either10:19
mivoligo:D10:19
mivoligomzanetti: I had a look at the testplans in google drive. That timon is a mastermind of some sort :D10:20
mzanettimivoligo: well, he started to play it when there were only 4 levels10:21
mzanettiso he has been playing the first levels for many times10:22
mivoligostill impressive for me10:22
davmor2davidcalle: I think the secret there is don't do system tweaks :P10:36
davidcalledavmor2, don't say that, I've just started working on a new devices porting guide and "tweaks" are going to be a huge part of my life for the next two weeks :p10:37
davmor2davidcalle: hahahaha10:38
=== _salem is now known as salem_
=== penk_ is now known as penk
=== MacSlow is now known as MacSlow|lunch
GrayShadehello. i'm working on a daemon that will normally run under upstart. i'm planning to use the "expect stop" method for readiness notification. can i check for UPSTART_JOB in the environment to detect upstart? i'd rather not add a command-line argument for this12:24
sturmflut-workGrayShade: According to http://upstart.ubuntu.com/cookbook/#standard-environment-variables that should be okay. I just checked: I switched my system to systemd today and all daemons started by systemd do NOT have any UPSTART_* variables in their environment. Standard processes (e.g. my X11 terminal) only have UPSTART_SESSION set, and the daemons started by my user upstart session have all UPSTART_* variables set.12:44
sturmflut-workGrayShade: But the days of Upstart are numbered, you will probably have to detect systemd as well, and this may not even be the right way to do what you're intending to do12:46
GrayShadesturmflut-work: i see, thanks12:50
GrayShadewell, this will run on 14.04 lts, so..12:50
sturmflut-workGrayShade: I think I've found a good solution: D-Bus. If you can query Upstart on the system bus, the system is using upstart. If not, then not.13:00
sturmflut-workExample: dbus-send --system --type=method_call --print-reply --dest=com.ubuntu.Upstart /com/ubuntu/Upstart com.ubuntu.Upstart0_6.version13:00
GrayShadesturmflut-work: right. as for UPSTART_JOB, i'd still have to check the value (running env in a terminal gives UPSTART_JOB=unity7)13:03
sturmflut-workHm but that D-Bus example is also not completely correct across all my machines13:04
sturmflut-workSecond example: dbus-send --system --type=method_call --print-reply --dest=com.ubuntu.Upstart /com/ubuntu/Upstart org.freedesktop.DBus.Introspectable.Introspect13:05
sturmflut-workThat one just lists all methods offered by Upstart via D-Bus. If Upstart is there and listening, you will get a result, if not then it returns with org.freedesktop.DBus.Error.ServiceUnknown13:06
=== rmescandon is now known as rmescandon|lunch
sturmflut-workSo therefore it should work across all versions of Upstart, it works if called by an unprivileged user and it yields a proper return code indicating what happened13:08
=== kalikiana_ is now known as kalikiana
GrayShadean env variable still seems better, as i want to know whether my daemon was started by upstart, not if upstart is actually running13:21
sturmflut-workGrayShade: Correct13:21
=== rmescandon|lunch is now known as rmescandon
=== jdstrand_ is now known as jdstrand
mivoligomzanetti: I pushed some small fixes to some backgrounds specially  for Andi :)14:18
mzanettimivoligo: ack, thanks14:19
mzanettiwill merge them tonight14:20
mivoligomeanwhile struggling with level 9 :P14:21
=== MacSlow|lunch is now known as MacSlow
=== charles_ is now known as charles
popeygcollura: heya, just testing your fix for keyboard rotation in calculator -- thanks for that!14:55
popeygcollura: strangely click-buddy builds an amd64 package, not an "all" one...14:56
popeyCMakeLists.txt:    COMMAND dpkg-architecture -qDEB_HOST_ARCH14:57
popeythat doesn't look right14:57
gcollurapopey, thank you! I wish I saw it in the first place14:57
gcollurapopey, use click-buddy and set the --arch to armhf14:57
gcolluraor all14:57
popeyshouldn't it do that by default?14:57
vitimitiWhat's the reason for a C++ backend to be "instantiated recursively" in QML?14:57
popeythere's no binary in there?14:57
gcollurapopey, there's no binary you're right14:58
gcollurait's just that I've used a cmake macro to compile in manifest.json.in14:58
popeye.g. the old lp:ubuntu-calculator-app builds an "all" click just fine14:58
gcollurapopey, I'm updating the MP with this change too15:00
popeynice one!15:00
gcolluranow the "architecture" value in manifest is hardcoded to "all"15:00
popeylooks like the cmake file came from clock15:00
popeyand that does use the same code for detecting arch15:01
popeyso just a copy/paste mistake, that's all15:01
gcollurayep probably15:01
gcollurapopey, done :)15:04
popeytesting!15:05
popeySuccessfully built package in './com.ubuntu.calculator_0.1_all.click'.15:05
popey\o/15:05
gcollurapopey, also tell me how you like the scrolling performance improvements I've introduced in my previous commits :)15:05
popeyheh, will do!15:05
popeyam writing up some test cases15:06
popeydiscovered the rotation bug about 10 mins before I saw your merge fixing it :)15:06
popeyso nice timing! :)15:06
gcollurathanks to rpadovani, who saw the bug first :)15:07
popeygcollura: http://people.canonical.com/~alan/screenshots/device-2015-01-14-150924.png15:10
popeyuh http://people.canonical.com/~alan/screenshots/device-2015-01-14-150931.png15:10
popey\o/15:10
gcollurapopey, which device are you testing? :p15:11
popeyuhhhh15:11
gcolluraehehe15:11
popeygcollura: seen calculations go off screen?15:14
popeygcollura: http://people.canonical.com/~alan/screenshots/device-2015-01-14-151333.png15:14
popeythe 6 is _just_ off screen15:14
gcollurapopey, yep known bug :)15:15
popeyk15:15
popeyand we can't yet scroll that field, right?15:15
gcollurayep you're right15:15
popeyk15:16
gcolluratoo bad this upcoming weeks I'll be busy with my exams, so it will be difficult for me to make new features in calculator-app15:22
gcolluras/this/these15:22
popeyThanks for what you've done so far, good luck with the exams!15:28
gcollurapopey, thanks!15:34
gcollurapopey, btw, is the scrolling in calculator smooth enough?15:34
popeygcollura: yes, its smooth even on this low end phone15:35
gcolluraok great :)15:35
gcolluramhall119, you may need another parameter in the avconv command15:55
gcolluramhall119, like -filter:v "setpts=N/(fps*TB)" change fps with the number of frames you want in the converted video (this parameter must go after -i out)15:57
kalikianahm. I feel I should at this point report this weird button somewhere. in my update screen it says "5 updates are being installed..." - that's a lie, nothing is happening. unless I hit that red button first16:52
mhall119gcollura: you can edit the page if it needs it, just login with your Ubuntu SSO account17:05
kalikianalost in translation apparently… for any other confused users of German locale https://bugs.launchpad.net/ubuntu/+source/ubuntu-system-settings/+bug/141087117:07
ubot5Launchpad bug 1410871 in ubuntu-system-settings (Ubuntu) "Puzzling red button says 5 updates are being installed in German locale" [High,New]17:07
gcolluramhall119, are you using the avconv command or the mencoder one?17:07
mhall119gcollura: I haven't tried either, I just copied what you told aquarius to use17:08
mhall119on IRC17:08
mhall119days ago17:08
gcolluramhall119, ok I've updated the wiki page, feel free to correct it if you find any mistakes :)17:14
gcollurapopey, could you please update the mp status too https://code.launchpad.net/~gcollura/ubuntu-calculator-app/reboot-fix-keyboard-rotation/+merge/246430 ? then the bots can do their job :)17:24
popeyapproved17:24
rpadovanipopey, could I suggest to add gcollura to calculator developers team?17:25
popey+117:25
gcollurathanks popey17:26
popeydone17:26
gcollurathanks popey rpadovani :)17:26
rpadovani\o/17:26
rpadovanigcollura, now you can review gang65 branches and I do not feel guilty because I don't have time to do it :D17:27
Laneykalikiana: you can suggest new translations on LP, e.g: https://translations.launchpad.net/ubuntu/utopic/+source/ubuntu-system-settings/+pots/ubuntu-system-settings/de/+translate?batch=10&show=all&search=update17:29
gcollurarpadovani, eheh :)17:29
t1mppmcgowan: hello. I had a look at this bug that you reported https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/140205417:44
ubot5Launchpad bug 1402054 in ubuntu-ui-toolkit (Ubuntu) "Page header with no title does not have a back button" [High,In progress]17:44
t1mppmcgowan: the problem is there that the whole header is hidden when the title is set to ""17:44
t1mppmcgowan: I have a fix, but some apps might use that "feature" to intentionally hide the header17:45
pmcgowant1mp, I assume there is an easy way to properly not have a header18:06
pmcgowant1mp, may want to try out a bunch of apps from store  to see18:06
t1mppmcgowan: I have to add that easy way and make sure the apps will use it18:10
t1mppmcgowan: for now, I can make it so that the header is visible if there is a pageStack with depth>1, even if there is no title18:10
pmcgowant1mp, the only other thing I could think of is to add a new property like "show header when title is blank" so folks pt in for it18:12
pmcgowanbut seems the default should be to show it not the other way around18:12
t1mpyes it seems more logical if the default is to show18:14
t1mpthen apps that want to hide the header will have to update the code, to set (probably) Page.head.visible to false instead of setting Page.title to ""18:15
popeymzanetti: level 9 is hard!18:15
t1mppmcgowan: it was already known that setting the title to "" would be temporarily (before we had a proper header configuration api), but it has been like that for a while now18:16
pmcgowant1mp, ok not sure the best course then, may need to test some apps18:17
t1mppmcgowan: ok. I'll figure something out and test the apps with my solution18:20
pmcgowant1mp, ok thanks18:23
mzanettipopey: muahaha18:36
mzanettipopey: I'll try it after dinner. could be that I made it impossible with some tower fixes18:36
mzanettipopey: but no... on medium it should definitely be possible18:37
mzanettithink it's too hard? should I make it easier?18:37
popeymzanetti: I've tried a few times, but it's the first level I've had to really try hard on18:58
aquariusAm I dim? Is there no way to record sound from the mic with a QML app?19:00
nik90_aquarius: nope, some other people found that the hard way19:00
aquariusthere isn't? that's a bit strange.19:00
nik90_it is....may be we could ask someone to write a qml C++ plugin that we can all use19:01
=== chihchun_afk is now known as chihchun
aquariushuh. Cordova apps can do it.19:02
aquariusnik90_, what I wanted was basically a tiny voice control thing that lets me say "alarm, 30 minutes" which will then go off 30 minutes from now -- I use this for putting things in the oven19:08
aquariusbut QML can't record the mic, and HTML5 can't set alarms.19:08
aquariusaha! I lie!19:09
aquariushttps://developer.ubuntu.com/api/html5/sdk-14.10/AlarmApi.Alarm/19:09
nik90_yeah, a very simple qml mic recording is very much required19:09
nik90_I believe jono bacon wanted that19:09
nik90_iirc19:09
nik90_aquarius: hey, btw what's left in your branch?19:09
nik90_is it ready to be merge?19:09
aquariusas far as I am aware it is ready19:10
aquariusunless I've missed something19:10
nik90_okay, the only thing tht I haven't tested is uploading a community component19:11
nik90_I will try a simple hello component19:12
aquariuscool!19:13
aquariusok, html5 apps seem confusing. In particular, the default script seems to do a bunch of checking for cordova, and it's checking stuff that doesn't exist in index.html as far as I can tell.19:14
aquariusdaker, ping -- are you the html5 apps bloke? :)19:14
aquariushm. According to https://developer.ubuntu.com/en/apps/html-5/tutorials/cordova-camera-app-tutorial/ I shouldn't be using Ubuntu SDK to create a cordova app at all; I should be using the cordova command line tool. Is that right?19:44
=== salem_ is now known as _salem
aquariusalso, we have webkitSpeechRecognition in the browser, but it doesn't work.21:56
mivoligomzanetti: around?22:09
mzanettimivoligo: yes22:10
mivoligomzanetti: what do you think about this sound for the cannon? http://www.freesound.org/people/ReadeOnly/sounds/186951/22:10
mzanettimivoligo: yeah, could work.22:11
mzanettihave you tried it?22:11
mivoligono yet, just searching22:12
mivoligomzanetti: not bad when testing (on the level 9) ;) Goes well with the enemy explosion sound22:17
mzanetticool22:18
mzanettibtw. I figured I introduced a bug shortly before creating the package I distributed :/22:18
mzanettisome towers are totally not behaving as they should22:18
mivoligomzanetti: that's on the phone only?22:19
mzanettino, it's in trunk too22:19
mzanettiI've just fixed it...22:19
mzanettialthough I broke an animation again with that22:19
mzanettistill fiddling around22:20
mivoligook22:20
dakeraquarius: yo22:21
mivoligomzanetti: I'm under impression that Electro does not really slow down the enemies, or if it does, it's not very visible22:21
mzanettiyeah... 2 is not much22:21
aquariusdaker, heya! Is the "HTML app" option when creating a new project in Ubuntu SDK supposed to create a cordova app?22:21
mzanettionce you upgrade it, it should become better22:22
mivoligomzanetti: right, with 3 is more visible22:27
mivoligomzanetti: I just thought it will be almost stopping those pesky enemies :D22:28
mzanettimivoligo: hehe, I remember in some early stages it could make them run backwards :D22:29
mivoligo:D22:30
mzanettimivoligo: to make them stop you need like 3 or 4 of the electro towers22:31
mzanettibut it's possible22:31
mivoligofirst I need to bit that level 9!!!!22:32
dakeraquarius: no but in theory their is a "Add Cordova runtime to HTML5 project" menu item in Tools > Ubuntu.22:33
aquariusdaker, oh! really? I did not think to look for that.22:34
aquariusdaker, maybe a comment in the source about that would be cool :)22:34
dakeraquarius: well their should be a comment https://code.launchpad.net/~abreu-alexandre/qtcreator-plugin-ubuntu/add-doc-for-html5-cordova-import/+merge/22733022:34
aquariusanyway, I have given up on the little app idea because qml can't use the mic and html just hangs half the time when I try it :(22:34
dakeraquarius: yes22:35
aquariusdaker, hm. Maybe what I have is older than that, but... I didn't have that comment, unless I'm blind22:36
dakeraquarius: for me too but i am running 14.1022:37
aquariusI'm running 14.04. :)22:37
aquariusbut this stuff is in a PPA, I thought.22:38
aquariusStill, if it's there, then great; other people won't be as confused as I was :)22:38
dakeraquarius: well i'll check with Alex22:44
aquariusdaker, no worries -- given that that's in trunk, it'll hit people's development environment eventually, so that problem's solved. :)22:44
mivoligomzanetti: should I convert that sound to ogg before pushing?22:45
dakeraquarius: ha! https://bugs.launchpad.net/ubuntu-html5-theme/+bug/1338445/comments/522:45
ubot5Launchpad bug 1338445 in qtcreator-plugin-ubuntu (Ubuntu) "Cordova runtime not installed when creating an HTML5 app template" [Undecided,Fix released]22:45
aquariusyeah -- possibly some dots haven't been connected quite right22:45
mzanettimivoligo: yes please22:47
mzanettimivoligo: just open it in audacity and export it again22:47
mzanettithen you can also adjust its volume if its too loud compared to the others22:48
mivoligomzanetti: volume seams to be fine, I think22:52
mivoligomzanetti: ok, pushed :)22:53
mivoligomzanetti: I'll catch you tomorrow, see you o/22:55
dakeraquarius: that's why https://bazaar.launchpad.net/~ubuntu-sdk-team/qtcreator-plugin-ubuntu/trunk/revision/28822:55
mzanettimivoligo: bye22:55
dakerzbenjamin: do you know why cordova was removed ?22:55
aquariusdaker, I'm OK with cordova being removed, but it wasn't entirely removed: specifically, the default app.js file walks through index.html looking for a cordova.js script element. So I assumed that there was some way to provide it :)22:57
aquariusif the answer is that "HTML5 app" in the Ubuntu SDK project creator does not and should not create Cordova apps and if you want a Cordova app then you use the command line cordova tool (as per developer.ubuntu.com) then I think that's OK, although we might wanna be clearer about it :)22:57
dakeri think so22:59

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