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

=== chriadam|away is now known as chriadam
aquariusmhall119, once there's some documentation on *how*, I'm more than happy to try :)00:36
mhall119aquarius: how to write a scope?01:20
=== ahoneycutt is now known as ahoneybun
=== ahoneycutt is now known as ahoneybun
Mirvkalikiana: I wonder why the CI didn't autotrigger itself when it was changed05:59
ahoneybunakiva-thinkpad: is there a way to make 1 button change 2 properies?06:57
akiva-thinkpadahoneybun, yes06:58
ahoneybunoh?06:59
akiva-thinkpadahoneybun, so like, "onButtonPressed: dostuff"?06:59
akiva-thinkpadthats what you are trying to do?06:59
ahoneybunakiva-thinkpad: onClicked: dostuff06:59
ahoneybunshould it be onButtonPressed?06:59
akiva-thinkpadahoneybun, yep; its been awhile since Ive done qml, but I think just doing && works07:00
=== ara is now known as Guest58945
ahoneybunI want 1 button to change 2 different textfields defaults07:00
akiva-thinkpadso onclicked: a.color = "black" && b.color = "red"07:00
ahoneybunthat I have set as "property int actualValue = 0"07:00
ahoneybunoh!07:00
ahoneybunlet me try07:00
akiva-thinkpadahoneybun, && means and, || means or07:01
ahoneybunExpected token `,'07:01
ahoneybunI remembered that from C+++07:01
ahoneybunC++07:01
akiva-thinkpadhmmmmm07:02
ahoneybunonClicked: score1.actualValue = 8000 && score2.actualValue = 800007:02
akiva-thinkpadahoneybun, try this07:02
akiva-thinkpadonClicked: { score1.actualValue = 8000; score2.actualValue = 9000 }07:02
akiva-thinkpadI think && is more about comparisons actually07:03
akiva-thinkpadso07:03
ahoneybun onClicked: { score1.actualValue = 8000 && score2.actualValue = 8000 }07:03
ahoneybunExpected token `,'07:03
akiva-thinkpadno, I removed &&07:03
ahoneybunyea if 1 is true then the 2 is07:03
ahoneybunoh07:03
ahoneybunworks!07:04
akiva-thinkpadi think its actually onClicked: score1.actualValue < 8000 && score2.actualValue < 8000 ? something : something07:04
ahoneybunakiva-thinkpad: I'm setting modes for common games07:04
ahoneybunyea ahayzen gave me something similar07:05
akiva-thinkpadahoneybun, yah sorry my initial thing is about making comparisons.07:05
akiva-thinkpad&& is and, || is or07:05
ahoneybunakiva-thinkpad: that was what I was thinking in the beginning as well lol so no big07:05
akiva-thinkpadahoneybun, best way to learn is to teach :P (I learned why I was wrong by trying to teach)07:06
ahoneybunlol07:06
ahoneybunthanks akiva-thinkpad07:07
akiva-thinkpadnp07:07
ahoneybunalmost 320 users on uBeginner app akiva-thinkpad07:07
akiva-thinkpadnow your just bragging :P07:08
* akiva-thinkpad cries as he tries to finish autopilot07:08
ahoneybunakiva-thinkpad: no just happy07:08
akiva-thinkpad{:07:08
ahoneybunhttps://appstore.bhdouglass.com/app/gazeteer.aaronhoneycutt07:08
akiva-thinkpadahoneybun, oh this is your scorecard app; yah ! thats neat07:21
akiva-thinkpadI thought you were speaking about your very first app :P07:21
ahoneybunakiva-thinkpad: the users is for uBeginner07:25
ahoneybun32007:25
ahoneybunthat is my new app07:25
akiva-thinkpad:)07:25
ahoneybunakiva-thinkpad: http://imgur.com/DhKC7ci07:26
ahoneybuncurrent work07:26
=== chihchun_afk is now known as chihchun
akiva-thinkpadHa! ever play dominion?07:27
ahoneybunno07:27
ahoneybunI really don't play any of those games lol07:27
akiva-thinkpadMagic is on there though :P07:27
ahoneybunmy friend does and he has a app on his iPod Touch and I thought we should have one on Ubuntu as well07:28
akiva-thinkpadSame guy made dominion07:28
akiva-thinkpadAh cool :P07:28
ahoneybunhe plays yugioh07:28
ahoneybundoes dominion have a score system?07:28
akiva-thinkpadahoneybun, sort of07:28
akiva-thinkpadahoneybun, we'd have to play a game for you to understand. Want to?07:28
akiva-thinkpadtakes like 10 minutes to do one07:29
ahoneybunonline I'm guessing?07:29
ahoneybunakiva-thinkpad: any exp with including C++ ?07:29
ahoneybunhttp://www.cplusplus.com/forum/beginner/1304/07:29
akiva-thinkpadahoneybun, a little07:29
ahoneybunI want to include a coin flip as you see07:30
akiva-thinkpadahoneybun, and so you just need a random number generator?07:31
ahoneybunyea pretty much07:31
akiva-thinkpadI'd imagine that you wouldnt need to use c++ for that.07:31
ahoneybunoh?07:31
ahoneybunsome c++ : srand((unsigned)time(NULL));07:33
akiva-thinkpadahoneybun, lookup qml math.random07:33
ahoneybunhttp://doc.qt.io/qt-5/qtquick-usecase-integratingjs.html?07:34
akiva-thinkpadahoneybun, try it07:35
dholbachgood morning07:35
ahoneybunhey dholbach07:35
akiva-thinkpadmight need to import math07:35
dholbachhi ahoneybun07:35
zsombihai folks07:36
ahoneybungood old 3:30 am!07:36
ahoneybunakiva-thinkpad: it is not making much sense for me but I think I'm going to stop on it for this morning07:42
ahoneybunthanks akiva-thinkpad07:44
akiva-thinkpadlater07:50
ahoneybunlater07:50
nik90zsombi: the results are positive, I tested your MP 15-20 times and no crashes :)08:37
nik90zsombi: oh and good morning ;-)08:37
zsombinik90: awesome!08:37
zsombinik90: yeah, I'm already here for >3h ;)08:37
zsombinik90: good morning to U too08:37
nik90:)08:39
nik90zsombi: yeah I have no intention of coming online here at 06:00 AM :P08:39
zsombinik90: :D08:50
aquariusmhall119, in go, in Ubuntu SDK, without cmake misery08:50
zsombikalikiana: ogra_: haha... seems qmlscene is also setting the application name before anybody else would do that!!!!08:53
zsombikalikiana: ogra_: I have now the same problem with the state files08:53
dholbachballoons, can you check my comments on https://code.launchpad.net/~dholbach/help-app/1434415/+merge/253844?09:00
dholbachballoons, I don't know how to best solve them, but I think it'd be good if we could land something soon, so everything builds again09:00
kalikianazsombi: is that a new issue?09:19
zsombikalikiana: I don't think so, I just encountered this while doing unit test for StateSaver09:19
zsombikalikiana: I think the qmlscene always set the app name and org name09:20
zsombikalikiana: before loading the QML file09:20
zsombikalikiana: what is weird on the state saver is that while the logs clearly state that the state file exists, the QFile::exists(statefile) returns false for the same file09:23
zsombikalikiana: ah, btw, an alarm MR is waiting for your review ;) https://code.launchpad.net/~zsombi/ubuntu-ui-toolkit/alarmmodel-get-crash/+merge/25398109:24
zzarrhello! how do I get WiFi signal strength and battery information in QML?09:25
zzarrshould I use B2Qt WifiManager?09:26
kalikianazsombi: I'm on it09:27
zsombikalikiana: thx!!!09:27
ogra_zsombi, ha ! awesome ...09:31
zsombiogra_: kalikiana: I think it would be the time either to distropatch the qmlscene or to really have our own launcher09:34
ogra_i think long term the latter makes sense09:35
ogra_short term rather the former :)09:35
zsombiogra_: this has been discussed many many times, and the decision was always to go with qmlscene09:35
kalikianaI've stopped counting how often this question comes up…09:35
zsombiyeah, as kalikiana said09:36
ogra_haha09:36
zsombieven upstream doesn't like we use this binary to run the apps...09:36
=== dbarth_ is now known as dbarth-afk
ogra_do we have a bu open about the fact that anchorToKeyboard isnt respected if you rotate to landscape ?09:43
ogra_(or is there any programming trick to work around this)09:44
ogra_*a bug09:44
kalikianazsombi: did somebody disable ci again? staging has flake8 errors :-(09:49
kalikiana./tests/autopilot/ubuntuuitoolkit/tests/components/test_urihandler.py:22:5 F401 mock imported but unused09:50
zsombikalikiana: Mirv was also wondering this morning about it09:50
kalikianawe really need ci for ci at one point…09:51
kalikianaor maybe cuffs for whoever does the disabling09:51
zsombikalikiana: btw, Popovers vs OrientationHelper...09:51
zsombikalikiana: have you tried to move OrientationHelper from PopupBase's base type to the foreground only?09:52
kalikianazsombi: I can't see any crashes with staging in ubuntu-clock-app09:58
nik90kalikiana: just plain staging without zsombi's MP?09:59
kalikiananik90: yes09:59
kalikianawhich you suggested should be crashing left and right09:59
zsombikalikiana: that's weird.... especially that the only alarm fix did land beginning of March, and with that Clock was still crashing09:59
zsombikalikiana: pmcgowan reported crashes every time10:00
nik90kalikiana: yeah me too..on my vivid phone and desktop, i can make the clock app crash with my mind10:00
kalikianathe force must be too weak in me…10:00
zsombikalikiana: I just got one10:01
nik90:P10:01
Mirvkalikiana: I didn't know what's up but I ran CI manually for your u1db-qt branch10:01
zsombikalikiana: so, you need to have alarms, the open the settings, move here'n'there, you will get a crash10:01
nik90kalikiana: easy way to get it to crash would be to create a new alarm and then do what zsombi says ^^10:01
zsombikalikiana: believe me, it crashes10:02
zsombikalikiana: the weird thing is that the last line in get() still has a valid Alarm pointer, but once reaches QML, the ret value is null...10:02
zsombikalikiana: the best case, sometimes crashes straight away, without returning teh value10:03
zsombikalikiana: nik90: so it crashes somewhere in the middle of the meta object calls10:03
zsombibzoltan_: I think you should update the UITK gallery in the store :)10:04
bzoltan_zsombi:  good idea10:04
* kalikiana I wonder if these are related, I get hundreds of them:10:05
kalikianaqml: [CLOCK] Error saving alarm, code: 210:05
kalikianafile:///usr/share/ubuntu-clock-app/common/AnalogClockMarker.qml:40: TypeError: Cannot read property of null10:05
zsombibzoltan_: for some reason the new list items page is empty... and I guess it's because the API10:06
zsombikalikiana: that might also be the reason get() returned null10:06
zsombikalikiana: the error code 2 is EarlyDate, meaning the date for your alarm is not right10:07
nik90kalikiana: zsombi: hmm you shouldn't see error code 2 either since clock app automatically should adjust it to the next day. So for instance if the current time is 25th March 11:00 AM and if you set an alarm for 10:00 AM, clock app should automatically set it to 26th March 10:00 AM10:08
nik90well atleast I have a function that checks the validity of the date and does that for the user10:09
zsombinik90: well, the error is shown at the time teh save is called, so the date adjustment is wrong then. and this is only for one-time alarms10:10
zsombinik90: never the less all alarms are saved, so the error might be some false alarm somewhere10:10
zsombior there might be some collision of which alarm object the save is called on10:10
nik90hmm I guess10:11
kalikiananik90: zsombi with the branch the errors are all gone10:13
nik90kalikiana: what about crashes?10:16
kalikiananik90: none. I'm guessing the values get garbage collected, and since it's copied in the branch it works fine10:24
akiva-thinkpadbzoltan_, zbenjamin Holy macaroni, am I dumb! I got the damn thing embedded; my mistake was to manually call the createConfigurationWidget()10:27
akiva-thinkpadholy hell10:27
akiva-thinkpadokay this thing SHOULD be done pretty quickly then10:27
zsombibzoltan_: next candidate for landing https://code.launchpad.net/~zsombi/ubuntu-ui-toolkit/alarmmodel-get-crash/+merge/25398110:45
popeyooh11:08
kalikianazsombi: review, please https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/sphinxSysPath/+merge/25289111:08
bzoltan_zsombi:  you got ot nailed? Cool11:08
bzoltan_akiva-thinkpad:  nice job, dude :)11:09
kalikianazsombi: note that it's not easy to repro locally because you'd have to uninstall both autopilot and uitoolkit, I used the CI logs to verify it11:09
akiva-thinkpadbzoltan_, ;_; tears literally in my eyes, I was so happy. Do you want a demo, and you can let me know what else you want to see before sending it over to you for review?11:09
akiva-thinkpadvia a screencast?11:10
bzoltan_akiva-thinkpad:  I love demos :)11:10
akiva-thinkpadokay stand by11:10
kalikianazsombi: also: feast your eyes on the PASSING CI, I don't remember when I last saw that11:10
zsombikalikiana: long ago... but all those seem to be mako related11:11
kalikianazsombi: I got used to seeing "unstable" always…11:14
bzoltan_zsombi: Do you want me to push it to the ongoing landing once it got merged to the staging?11:15
zsombibzoltan_: let's wait for CI to finish with it11:18
bzoltan_zsombi:  J has approved it11:18
zsombibzoltan_: I see it's merged, so do the monkey :)11:20
bzoltan_zsombi: I do that :)11:20
bzoltan_zsombi: I top approved it ...11:21
zsombibzoltan_: well, kalikiana did that 51 mins ago :D11:21
karniSDK folks, question - how can I turn off this behavior: have window split in two, I scroll one pane to some part of code with the scrollbar, then I focus the other pane -- first pane scrolls back to where the cursor was initially.11:21
bzoltan_zsombi: https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/sphinxSysPath/+merge/25289111:21
karniI know this is a QtC question, but maybe you'll be able to help.11:22
bzoltan_zsombi:  I reloaded it and it was still "need review" ... but whatever11:22
bzoltan_karni:  It is indeed QtC question... I suggest you the #qt-creator channel11:23
zsombibzoltan_: ah, that one... I had not checked that, I thought you talked about the alarm stuff11:23
karnibzoltan_: thanks!11:23
zsombibzoltan_: but yeah, that's ok as well11:23
akiva-thinkpadbzoltan_, https://www.youtube.com/watch?v=Ox7pj5MjGec&feature=youtu.be11:29
akiva-thinkpadi don't think its private :P11:29
bzoltan_akiva-thinkpad: awesome! MR it right away :D11:32
akiva-thinkpad:)11:32
akiva-thinkpadbzoltan_, anything you want added before that?11:32
=== _salem is now known as salem_
bzoltan_akiva-thinkpad:  By looking at the video it is good. Let me see the code :)11:36
akiva-thinkpadokay, in a bit11:36
=== chriadam is now known as chriadam|away
pieter2627Hi, could someone tell me how I would me able to present a file dialog to a user to be able to open a file for an app (I already know about the ContentHub, but can't see a type more specific to text files) ?12:37
pieter2627The normal QtQuick.Dialogs' FileDialog also works on desktop, but not the emulator - am a bit stuck12:39
balloonsdholbach, I see https://code.launchpad.net/~dholbach/help-app/1434415/+merge/253844 is happy :-)12:50
dholbachballoons, yes :)12:51
dholbachballoons, the question is: what to do about the Exception you mentioned12:51
dholbachballoons, the tempfile question I think is solved12:51
dholbach(did you see my comments?)12:51
balloonsdholbach, I don't see any comments12:51
dholbachweird12:52
dholbachit says "unsaved comment"12:52
dholbachok...12:52
balloonsI did see the pep8 proposal12:52
dholbachI'm not quite sure how to best do this... if we raise an exception, we will have to instantiate our Markdown() object everywhere in try/except stanzas.12:52
dholbach^ this is what I replied to your exception question12:52
dholbachregarding tempfile: http://paste.ubuntu.com/10677461/12:52
dholbachballoons, if you think it makes sense to use exceptions, I'll look into it12:53
balloonsdholbach, ahh yes. So I raised the question because it appeared like you were reusing the object in tests. So it would make sense to raise an exception and send it back. The print isn't the biggest deal; it's the sys.exit() to go with it12:53
dholbachright12:53
balloonsI know this isn't the only case with them, so I wouldn't hold this mp for it. Something to think about though12:53
dholbachok... shall I file a separate bug for it?12:54
balloonsI guess that might be best so we don't forget, heh12:54
dholbachdone... bug 143631612:54
ubot5bug 1436316 in Ubuntu Help App "Don't sys.exit() in Markdown() instantiation" [Undecided,New] https://launchpad.net/bugs/143631612:54
dholbachthanks balloons for the reviews!12:54
balloonscool, so I'll approve12:55
balloonsI approved both. Jenkins should merge it all :-)12:55
dholbachoh...12:55
dholbachis it going to autoland the branches?12:56
balloonsdholbach, yes.. Do you not want that?12:56
dholbachno no that's fine12:56
balloonseasier that way methinks12:56
dholbachabsolutely :)12:56
dholbachnice!12:56
ahayzenpopey, in light of bug 1436110 as stated in the comments why can't the file manager call url-handler for anything in /sd_card/Music/ or ~/Music and content-hub for anything outside ? ... i see bug 1413821 has been marked as won't fix :/12:56
ubot5bug 1436110 in Ubuntu Music App "Music refuses to play file opened via file manager" [Undecided,New] https://launchpad.net/bugs/143611012:56
ubot5bug 1413821 in Ubuntu File Manager App "Music files are imported into the Music app, rather than simply opened" [Undecided,Won't fix] https://launchpad.net/bugs/141382112:56
=== chihchun is now known as chihchun_afk
popeyahayzen: hmm12:58
balloonsahayzen, https://bugs.launchpad.net/developer-ubuntu-com/+bug/1436317. I didn't forget about you12:58
ubot5Ubuntu bug 1436317 in Ubuntu App Developer site "Add pyflakes / pep8 documentation" [Undecided,New]12:58
ahayzenballoons, sweet thanks that'll be useful for pointing new devs to :)12:58
ahayzenpopey, the problem with content-hub is not that it is slow ... it is the fact that we import that music again ... so say you open a file that is already in ~/Music via content hub...you'll then have two inside ~/Music and a duplicate in your library :/12:59
popeyugh13:02
=== dbarth-afk is now known as dbarth
dholbachballoons, do you know how long it roughly takes until the landing happens? I know I'm getting overly excited :)13:06
ahayzenpopey, surely file manager can just have a whitelist of paths that if a audio/video file is tried to be opened from, it then uses url-handler rather than content-hub?13:08
balloonsdholbach, to be fair we haven;t tested that jib yet, hehe13:15
popeyahayzen: for the small set of paths, potentially, yes.13:15
balloonsdholbach, http://91.189.93.70:8080/job/help-app-autolanding/13:15
dholbachballoons, https://code.launchpad.net/~dholbach/help-app/run-pep8-and-pyflakes3/+merge/254059 failed, but that was expected13:15
ahayzenpopey, /media/*/*/Music and /home/*/Music ?13:15
balloonsbah, it ran them in the wrong order13:15
balloonsi tried to be sneaky13:15
dholbach:)13:15
dholbachit appears to be doing something :)13:16
popeyahayzen: yeah, worth a bug in file manager :)13:19
ahayzenpopey, or do we reopen that one that was closed lol ?13:19
popeyoh, we have one already, don't we. Yeah, a comment on that.13:19
ahayzenpopey, bug 1413821 :)13:19
ubot5bug 1413821 in Ubuntu File Manager App "Music files are imported into the Music app, rather than simply opened" [Undecided,Won't fix] https://launchpad.net/bugs/141382113:19
ahayzenpopey, commenting :)13:21
popeythanks13:21
dholbachballoons, landed! :)13:21
dholbachcan't believe it13:21
ahayzenpopey, ah bugger i can't reopen the bug lol13:24
ahayzenpopey, do you have permission to flip it from won't fix -> new?13:24
popeyya13:24
popeydone13:25
ahayzenthanks popey :)13:25
balloonsdholbach, excellent :-)13:25
xhoch3I upgraded to 15.04 yesterday and could build Ubuntu Touch app with qmake14:07
xhoch3with 15.04 click target14:07
xhoch3however, when deploying, it says it can't find the runtime for 15.04 on the device (or similar, don't remember the exact error message)14:08
xhoch3ubuntu-core-15.04 armhf or the like14:08
xhoch3any idea how to enable this?14:08
nik90xhoch3: obvious question, are you trying this on the devel images on the phone?14:10
xhoch3nik90, no, stock image14:10
xhoch3when will those be able to to run on ordinary devices?14:11
nik90xhoch3: ha that's the issue then..the current stock image (RTM) is based on utopic14:11
nik90xhoch3: the stable phone images will switch over to the 15.04 framework only when it is deemed fit and stable and without regressions14:11
xhoch3ok, since I bought the Aquaris E4.5, I'd like to work with the vanilla environment14:11
nik90xhoch3: as a developer if you want to target users with the Aquaris E4.5 which runs the stable images, you will have to use the 14.10 framework14:12
nik90xhoch3: and then when the E4.5 switches to 15.04, you can update your app and make use of the new features that 15.04 brings14:12
xhoch3ok, since I ultimately need qmake, I also need 15.04, so my question is when the 15.04 image is expected to appear? just an estimate14:12
xhoch3unfortunately 14.10 is feature-incomplete for me, so I cannot use this14:13
nik90xhoch3: too hard to say..but the current focus is to get 15.04 stable and ready. so some say the ETA is between 5-10 weeks14:13
nik90xhoch3: there are lot of bugs that need to be fixed in vivid before it will make it to the stable images14:14
dakernik90: wow https://i.imgur.com/7jdN4y4.png14:14
nik90daker: you got lxc setup?14:14
dakeryes14:15
xhoch3ok, and in order to work with 15.04, I would have to erase my device? Or can I switch to 15.04 on my phone like I did with my desktop?14:15
xhoch3by accepting the latest dev version14:15
nik90daker: excellent! enjoy!14:15
nik90xhoch3: no you wouldn't need to erase your phone14:15
nik90xhoch3: you can switch to vivid easily. However in big caps "THINGS MIGHT BREAK" .. so obviously it cant be used as a daily phone any longer14:16
nik90s/cant/shouldnt14:16
xhoch3ok, no risk no fun14:17
xhoch3:D14:17
xhoch3how do I do it?14:17
nik90xhoch3: if you run "ubuntu-device-flash touch --channel=ubuntu-touch/devel" in the terminal after connecting your phone to your laptop, you should be upgraded to 15.0414:17
nik90xhoch3: I presume you know how to restore it if something goes wrong?14:17
xhoch3too late14:18
xhoch3:D14:19
* nik90 brb in 15 mins14:19
nik90xhoch3: same command but with the channel name ubuntu-touch/stable or bqaquarius_en I think14:19
nik90ppl in the #ubuntu-touch channel will know for sure14:19
xhoch32015/03/25 15:21:59 Rebooting into recovery to flash14:24
xhoch3Failed to enter Recovery14:24
xhoch3now I have the orange ball spinning14:25
xhoch3can I safely shutdown the phone?14:25
xhoch3oh it rebooted14:26
xhoch3nik90, ok, cool I have 15.04 now14:28
xhoch3thanks14:28
xhoch315.04 is snappier, isn't it? feels smoother14:32
zsombicharles: ping14:50
zsombinik90: do you remember, have you agreed with charles about any EDS tags to be set for application ID and alarm ID?14:51
nik90zsombi: https://code.launchpad.net/~charlesk/indicator-datetime/lp-1426519-add-tag-for-menuitem-activation-url/+merge/25399714:53
nik90zsombi: I guess if alarms specify com.ubuntu.clock along with the alarm ID in the X-CANONICAL-ACTIVIATION-URL EDS tag that should be it?14:54
nik90charles: can you confirm ^^14:54
zsombinik90: charles: uhm... how should I encode it? $(appid):///$(alarmId)?14:56
nik90hmm that was the discussion we had with ted, but I cannot remember the outcome we decided upon14:56
zsombinik90: checking charles' comments on teh bug, I think we should decide what to place in the URL15:19
charleszsombi, oops, didn't see your pings from earlier, looking now15:19
zsombinik90: so url-dispatcher would expect sthing like $(appid):///URL15:19
charleszsombi, nik90, we should also get renatu in on this converation, he had some opinions on this yesterday15:20
zsombinik90: charles: where URL should be somethiong containing the alarm ID15:20
zsombinik90: charles: reading this https://developer.ubuntu.com/en/apps/platform/guides/url-dispatcher-guide/ the format is well defined: $(appId):///$(URI)15:21
zsombiwhere $(URI) is something the app should understand15:21
charlesiirc renaut suggested not use appid as the url scheme, rather something like 'alarm'15:21
nik90charles: how do we then know which app to open?15:22
zsombicharles: well, the thing is url-dispatcher needs appid as protocol15:22
zsombinik90: exactly15:22
charlesah. :)15:22
charlesnik90, yes, confirming "X-CANONICAL-ACTIVATION-URL" is the x-prop to use15:22
renatuzsombi, no you can register your app to handle any url prefix15:22
nik90renatu: true, but if there are multiple apps registering for "alarm" url prefix then we get into trouble15:23
zsombirenatu: right, but then any app can override the url dispatcher...15:23
renatufor example the dialer app register itself for dilaer-app:/// and cal://15:23
zsombiexactly15:23
charleszsombi, renatu has a patch at https://code.launchpad.net/~renatofilho/qtorganizer5-eds/fix-1426519/+merge/253985 to generate x-prop entries in ical from QOrganizerItemExtendedDetail in QOrganizer15:23
zsombicharles: yes, I am making the changes on Alarm based on that15:24
nik90renatu: the idea here is to allow alarms created by app-1 to be opened by *only* app-115:24
renatuzsombi, my opinion is that if the app create the event/alarm and it is a app especific thing then the app should set the event url15:24
charleszsombi, cool :)15:24
nik90renatu: if we use the standard "alarm" then app-1 could get app-2's alarms15:24
renatubut if it is  a generic stuff like a google calendar event then the user should be able to choose which app to use to open it15:25
charlesI thought we wanted to be able to let 3rd parties make their own clock, calendar, etc apps to supplant the default ones?15:25
zsombinik90: I see some rational in renatu's idea, because then it would be easier to "replace" Clock app15:25
charles+115:25
nik90zsombi: I agree but I remember having this discussion some time back where we wanted to make each app's alarms to be accessible by the concerned app only?15:26
zsombicharles: renatu: nik90: the question is shouldn't we support the ability for multiple apps to create their own alarms? which should be in a separate DB than the clock app?15:27
zsombinik90: right, as I wrote :)15:27
renatunik90, if you want the alarms created by the clock app to accessible only by the clock app you can set the url by yourself during the alarm creating15:28
renatucreation15:28
zsombinik90: renatu: charles: so, if separate apps can register their own alarms, then appid is the one we need15:28
charleszsombi, I think we'd want them to all go through the same alarm API; otherwise, they wouldn't get notifications15:28
zsombirenatu: I do not want to provide complete URL specifying freedome to the alarm user...15:28
charleszsombi, I don't think datetime is something we'd want to supplant, because even after we have custom indicators, datetime still is responsible for hw wakeups on alarm15:28
zsombirenatu: you mix Alarm API with QtOrganizer one15:29
zsombicharles: yes. What I planned is to provide Alarm API to access the alarmId, and to have a lookup for it, and use APP_ID to encode the URL15:30
zsombicharles: so in that sense each app can have its own URL15:30
renatuwhats happen if the app get removed?15:32
zsombicharles: nik90: renatu: it would be too ugly if the develoiper would need to set the protocol for each alarm saved...15:33
renatuwho will remove the alarms created by this app15:33
zsombirenatu: same question with a generic "alarm" protocol15:33
zsombirenatu: what if I remove the Clock app, and I don't install anything else?15:33
renatuclock app can not be removed15:34
zsombirenatu: so then?15:34
zsombirenatu: if you cannot remove, how do you override?15:34
nik90zsombi: well if we go with a generic "alarm" protocol, deleting a 3rd party app wouldn't affect the user since he would then use the clock app to handle those alarms created by the other app15:34
renatuI am saying if I intall a new clock app would be nice if this new app can handle the allarms created by clock app15:35
zsombinik90: but wo decided which app to open in case you install a 3rd party Clock app?15:35
zsombidecides15:35
renatuwe do not have support for that yet :D. But the url-handler will provider a dialog where you can choose which app to use and set the default one15:36
nik90hmm true..we don't have a mechanism like the content-hub which shows which apps can handle a specific url15:36
zsombiexactly...15:36
renatuif more than one app register the same url prefix15:36
renatuI do not know whats happen today15:36
zsombirenatu: will I get that dialog each time it is invoked? that'd suck, sorry to say15:36
renatuzsombi, you can set the default one15:37
renatulike android does15:37
renatuand it will never appear again15:37
renatuuntil you reset it15:37
nik90zsombi: considering that the use case where multiple apps register for the same url prefix is something that's going to become common..(multiple reddit apps etc) .. the dialog allowing the user to choose the app to open and set a default is inevitable..UT definitely needs it15:37
akiva-thinkpadhow do you revert in bazaar, other than deleting and rebranching it?15:38
renatutoday I do not know whats happen if more then one app register the same url prefix, and I think there is nothing blockin the user to install a app with the same app id from a already installed app15:39
zsombinik90: I understand that, and it sounds right, the problem is that it feel the app developer to provide the protocol and the format every time it saves the alarm si too much15:39
renatuzsombi, we can define that alarm:// is the default value the devel can chage it to the app id if he wants15:40
zsombirenatu: well, I'd need to expose some AlarmConfig API then...15:40
zsombirenatu: or I could give it as a property to each alarm...15:40
renatuzsombi, for alarms I do not see much benefit on it, but for calendar events I think this is very useful15:41
zsombirenatu: well, the idea was to let several apps to be able to create alarms individually, and I do no tmean overriding teh Clock app15:41
renatuzsombi, will the alarms created on others app visible on clock app?15:42
renatuif not they are individual alarms and should use the app-id on it15:43
zsombirenatu: no, clock app should only see Clock alarms, they should never collide15:43
nik90zsombi: renatu : All this boils down to one question, "Will apps creating alarms using the same db as clock app or not? "15:43
nik90s/using/use15:43
zsombinik90: well, this may hopefully get solved when charles will start the new Alarm backend :)15:44
charlesyeah... :)15:44
charlesI'd like to that sooner rather than later, but it's not happening this sprint15:44
renatuzsombi, whell if they still using qtorganizer you can have different address-books for each app15:45
renatus/address-book/calendars15:45
charlesanyway my 2 cents is that apps creating alarms should use the same db as clock app15:45
renatucharles, they can still using the same db but different "eds sources"15:46
charlesrenatu, true. datetime will pick them all up anyway15:46
nik90charles: not sure I agree to that since seeing the reminder's app alarms in the clock app would look strange15:46
renatuthis is how we intend to separate contacts15:46
charlesrenatu, I'm not sure why you'd want to keep alarms under a separate sources?15:47
renatunik90, the alarm API can filter the alarms based on the application15:47
renatucharles, security :D, you can block apps to access different sources15:47
charlesnik90, the reminder would use a different scheme, IMO we'd want to be able to mix reminders between reminder apps, alarms between clock apps, events between calendar apps15:48
charlesbut not mix reminders with clock apps15:48
zsombicharles: renatu: yet I'm using only one collection for all alarms, I can create separate ones15:48
renatucharles, +115:49
charlesrenatu, that gets back to the same question, of letting a replacement calendar app edit pre-existing calendar events15:49
=== chihchun_afk is now known as chihchun
zsombirenatu: I filter alarms based on collection15:49
zsombirenatu: so far I use only one collection for all alarms15:50
renatucharles, with the new changes on qtorganizer the calendar app will be able to replace the event url15:50
renatucharles, and we need to have some fallback url in case of events synced from google, etc...15:51
charlesrenatu, yes, maybe I should have used alarms or reminders as the example there15:51
charlesyou're right that calendars are a special case b/c we need to handle 'no url provided' case for imported events15:52
zsombinik90: renatu: charles: ok, so the protocol I'll chose to be 'alarm'15:52
nik90zsombi: so "alarm:///alarm-id" which the corresponding app can get and open the correct alarm15:53
charlesmzanetti: ^ this is relevant to reminders as well15:54
zsombinik90: would you like the alarm-id to be encoded in some fancy way, or plain alarm-id is fine?15:54
charlesmzanetti, wrt choosing the url scheme and using the "X-CANONICAL-ACTIVATION-URL" x-prop15:54
zsombinik90: like canonicak.com/alarmId?=15:55
renatuthen reminder will be: "reminder://reminder-id"15:55
mzanetticharles, where would I add that?15:55
charlesand calendar is cal://, yes?15:55
nik90zsombi: erm I think alarmId?= shoudl be sufficient15:55
zsombirenatu: as far as charles specified, it can be anything, charles wil only call that URL given in the X-* detail15:55
charlesmzanetti, you're using QOrganizer right now?15:56
mzanetticharles, yep15:56
nik90zsombi: this way it would make sense for alternative clock app as well15:56
renatumzanetti, you need to register this on url handler for your app15:56
mzanettiok, reminders supports "evernote://note/<noteid>" already15:57
zsombinik90: the thing is that you will get the second part of the URL without the protocol, so it's up to you how you see it easily handled15:57
renatuIf I remember correct there is a json file for url-handler15:57
charlesmzanetti, renatu has a patch @ https://code.launchpad.net/~renatofilho/qtorganizer5-eds/fix-1426519/+merge/253985 that will convert QOrganizerItemExtendedDetails into x-props15:58
zsombinik90: I'd say some identification on what came  should be given so if eventual alarm overrides wil want to handle sthing else, they can also provide identification on those15:58
nik90zsombi: true so I will get only alarmId="somevalue" .. which I will parse and extract?15:58
charlesmzanetti, so you'd create an extended detail and add it to your QOrganizerItem15:58
zsombinik90: so alarm://alarmId?=<uuid>15:58
nik90zsombi: yes15:58
zsombinik90: deal15:58
mzanettiperfect15:58
mzanettiI can specify the url?15:58
mzanetticompletely, I mean?15:58
zsombimzanetti: yep15:59
mzanettiperfect!15:59
charlesoh, and I should ping popey too, calendar-app will complete the three apps that should follow this approach15:59
zsombicharles: alarms is comin' ;)15:59
charlespopey: long discussion above, short summary is if you want clicking on a calendar event menuitem in the indicator to launch calendar-app to that specific event16:00
charleswhat you do is create a QOrganizerItemExtendedDetails where the key is X-CANONICAL-ACTIVATION-URL and the value is the url16:01
charlesdatetime will pass that url to url_dispatch() when clicked, so calendar-app can register to handle that scheme and process it to go to the right page16:01
renatucharles, he can leave it empty too :D, since we will have the fallback url, correct?16:01
charlesyes, was just about to get to that :)16:01
zsombicharles: renatu: does the key need to be all capitals?16:02
charlespopey, since we have to handle imported calendar events too, datetime will still have to have a fallback url to handle16:03
zsombicharles: asking as the x-canonical-alarm and x-canonical-disabled is specified as small caps16:03
charleszsombi: no16:03
charlesit doesn't have to be all caps16:03
zsombiok16:03
charlesI just did it that way because all the other properties in ical are all caps16:05
charlesno biggie16:05
zsombikalikiana: seems the statesaver fix works, I only need to get a proper test for the urihandler...16:06
zsombicharles: ouhhh.... what are we gonna do with the existing alarms?16:11
zsombicharles: like the ones people already created in the phone?16:12
charleszsombi, I'll leave the old logic in datetime so that those don't break16:19
zsombicharles: ok16:20
charleszsombi, they just won't be launchable as the new ones are16:20
charlesor rather, they will launch to the app just as they do now, not to the alarm itself16:20
zsombicharles: I was thinking to do an update when the app starts, so when the Clock is started first time it would take a bit longer but all Alarms would be updated16:20
charleszsombi, that would be wonderful16:21
zsombi+116:21
charlesso nice of us to agree on new work for clock-app :D16:21
zsombiLOL right16:22
zsombicharles: any huch when would you have time for the v2 backend?16:22
zsombihunch16:22
nik90charles: lol :P16:22
charleszsombi, not unless I do it on my own time16:23
zsombicharles: ouhh...16:23
charlestwo weeks ago it seemed so close :)16:23
zsombihah16:23
zsombitwo weeks ago I thought we can get subtheming into Vivid16:23
nik90bzoltan_: hey what's the planned ETA for the UITK vivid update? Just curious :-)16:26
bzoltan_nik90: Excellent timing of the question :) The silo12 has the release candidate. I have finished today the testing and now it is up to the QA team's queue when they will give it green light16:27
nik90bzoltan_: Awesome! thnx :)16:28
xhoch3nik90, I updated to 15.04, but I still get WARNING:root:Signature check failed, but installing anyway as requested17:25
xhoch3Cannot install /tmp/untitled.username_0.1_armhf.click: Framework "ubuntu-core-15.04" not present on system (use --force-missing-framework option to override)17:25
xhoch3Sdk-Launcher> Installing the application failed17:25
nik90xhoch3: hmm that's strange..let me try it17:26
popeyxhoch3: wrong framework17:26
popeyubuntu-core is for snappy17:26
nik90popey: that's what the qtcreator atm is setting for new projects in vivid17:26
popeywat17:27
popeyit should be ubuntu-sdk-15.04, not ubuntu-core-15.0417:27
popeyunless I am mistaken?17:27
nik90popey: atm there are only two 15.04 frameworks listed by qtc, which are ubuntu-core-15.04 and ubuntu-core-15.04-dev117:28
popeyhuh17:28
xhoch3in qtc it is listed as ubuntu-sdk-15.0417:28
popeyubuntu-core-15.04-dev1 is the one I believe17:28
popeyhttps://docs.google.com/a/canonical.com/spreadsheets/d/1t_JGpg4r8BLluzfzmqa-gAbcKUjKUOufSCTSdPpFc5g/edit#gid=017:28
popeylast one in that list17:28
nik90xhoch3: hmm I dont see ubuntu-sdk-15.04 on my brand new vivid desktop install17:28
xhoch3http://www11.pic-upload.de/25.03.15/xwxx2jknupm.png17:29
nik90xhoch3: no that's not what me and popey are referring to17:29
nik90xhoch3: open manifest.json file in qtc17:30
nik90xhoch3: in the framework field, there is only ubuntu-core-15.04 and -dev1 version listed17:30
xhoch3yes, exactly17:30
xhoch3so take the dev one17:30
popeythe 15.04-dev1 framework isn't even on my vivid device17:30
nik90xhoch3: anyway let me test the 15.04 frameworks and see if that works on the phone17:30
xhoch3nik90, same result17:31
popeyso it will fail to install17:31
popeybrb17:31
xhoch3yes17:31
nik90popey: http://imgur.com/iRXIWPW,KgbvQeH17:33
xhoch3nik90, did it work for you?17:33
nik90xhoch3: just a moment17:33
popeybzoltan_: ^17:33
xhoch3I just created the qmake sample (Simple UI), left everything as default and tried to run17:34
akiva-thinkpadbzoltan_, https://code.launchpad.net/~akiva/qtcreator-plugin-autopilot/trunk -- it seems well stable. What branch am I merging with?17:34
nik90xhoch3: yup I get that error17:35
nik90bzoltan_, popey: I cannot install a default project app created by qtc17:35
nik90xhoch3: it works if you set the framework to 14.10.17:36
nik90xhoch3: *and* you can still import Ubuntu.Components 1.217:36
xhoch3nik90, thanks, that works17:37
nik90xhoch3: just remember that while you may be using the 14.10 framework, you are still using Ubuntu.Components 1.2 which is not on the BQ stable images yet. So devel images are still needed until we make the transition that I mentioned before17:39
xhoch3ok thx17:40
akiva-thinkpadokay I got to go for a bit. bbl17:41
ahoneybunhey ahayzen17:48
ahayzenahoneybun, yo17:48
ahoneybunhttp://i.imgur.com/DhKC7ci.png ^17:49
ahayzenahoneybun, thats looking awesome :D17:50
ahoneybunthe coin flip is not working atm (no code behind it)17:51
ahayzenahoneybun, OCDness tells me that the coin flip button is not as wide as the others? (right alignment is wrong) ;)17:51
ahayzenor all the others are too big :)17:52
ahoneybunyea I know I'm wondering about that17:52
popeynik90: ugh, can you file a bug please?17:54
nik90popey: sure, on it now17:54
popeythanks!17:54
nik90popey: bug 143647017:59
ubot5bug 1436470 in qtcreator-plugin-ubuntu (Ubuntu) "Project template defaults to invalid ubuntu-core-15.04 framework in the manifest file" [Undecided,New] https://launchpad.net/bugs/143647017:59
ahoneybunahayzen: right alignment?17:59
ahayzenahoneybun, yeah the right side is off17:59
ahayzenahoneybun, tbh it looks like the buttons below are actually slightly too big in width as the margin on the left is larger than the right for them18:00
ahoneybunahayzen: http://pastebin.ubuntu.com/10679604/18:00
ahayzenahoneybun, try for the buttons in the rows where you have done  - units.gu(1) put - units.gu(2) ... i think your not taking both of the spaces into account18:03
ahayzenahoneybun, so in the rows where you have 2 items you need todo - 1GU before the divide ... and where you have 3 items do -2GU before the divide18:05
ahoneybunahayzen: thats how it is18:07
ahoneybun(parent.width - units.gu(2)) / 318:07
ahayzenahoneybun, not in the pastebin you gave me ;)18:08
ahayzenahoneybun, so does that work?18:08
=== JamesTai1 is now known as JamesTait
ahoneybunhttp://pastebin.ubuntu.com/10679648/18:09
ahoneybunstill offset18:09
ahayzenahoneybun, are the numbered buttons now right though?18:10
ahoneybunright?18:10
ahayzenahoneybun, like the items in your Row at L56 need the same width set18:10
ahayzenahoneybun, at L80 those ones need -1GU18:10
ahayzenahoneybun, at L189 those need -1GU18:11
ahayzenthen it all should be aligned correctly18:11
ahayzen...hopefully...18:11
ahoneybundon;t think so18:14
ahoneybunhttp://pastebin.ubuntu.com/10679689/18:15
ahayzenahoneybun, what does that look like?18:15
ahoneybunlet me grab a screenie18:16
ahoneybunhttp://imgur.com/pwXfDSj18:16
ahayzenahoneybun, so some of them are correct lol18:17
ahoneybunlol18:18
ahayzenahoneybun, so L62, L69, L75 should read width: (parent.width - units.gu(2) / 318:18
ahayzenahoneybun, then all the number ones should be - units.gu(2) not 118:19
ahayzenthen it should be correct :)18:19
ahoneybunall in one ( )?18:19
ahayzenahoneybun, sorry extra bracket (parent.width - units.gu(2)) / 318:19
nik90t1mp: hey, I just figured out how to use the PageHeadStyle component. Can I make request here to add backgroundColor property to it..that's all I need :)18:26
ahoneybunahayzen: fixed it temp18:27
nik90zsombi: hey quick suggestion, in PageHeadStyle wouldn't it better to indicate in the docs which theme it has been defined in? Currently I did a trial and error to check if can be imported from the SuruDark theme or the Ambiance theme. It would be handy if this was stated in the docs itself.18:29
akiva-thinkpadback18:35
t1mpnik90: I will add that in the next week or two19:18
nik90t1mp: cool thnx19:19
mhall119does anyone know if it's possible to change Page.head.sections when the PageHeadState changes?19:41
nik90mhall119: have you tried setting the selectedIndex property based on the pageheadstate changes?19:44
mhall119nik90: I want to change the model and onSelectedIndexChanged handler19:48
mhall119I think I have to do with with code in Page.onStateChanged, rather than through PageHeadState19:48
nik90ah yeah that's tricky20:06
=== salem_ is now known as _salem
=== _salem is now known as salem_
=== ahoneycutt is now known as ahoneybun
=== chihchun is now known as chihchun_afk
ahoneybundoes anyone done a random number in qml or c++21:51
ahoneybun?21:51
ahayzen_ahoneybun, use Math.random() in JS? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random21:52
ahayzen_(which you can use in QML)21:53
ahoneybunI have to import something right ahayzen_?21:54
ahayzen_no just create a function somewhere and use it IIRC21:54
ahoneybunseems to work21:55
ahoneybunjust need to output the number in a Label21:55
ahayzen_ahoneybun, http://doc.qt.io/qt-5/qtqml-javascript-expressions.html21:55
ahoneybunin that example in the first link it was returning it21:56
ahayzen_\o/21:56
ahoneybunit shots no errors21:57
ahoneybunjust to output the result21:57
ahayzen_ahoneybun, so like to set it to the label do ... myLabel.text = myRandomMethod().toString()21:58
ahayzen_or myLabel.text = Math.random().toString() directly would work but depends what number you wnat to make21:58
ahoneybun0 or 121:58
ahayzen_you could just round that number21:59
ahayzen_ahoneybun, like Math.round(Math.random()) would give 0 or 1 IIRC21:59
ahoneybunits like heads or tails21:59
ahayzen_ahoneybun, something like ... Math.round(Math.random()) === 0 ? "Heads" : "Tails"22:01
ahoneybunI need to define myRandomMethod().toString()22:01
ahoneybunoh wait22:01
ahayzen_depends how you want todo it... ^^ is the onliner way lol22:02
ahoneybunso lost22:02
ahoneybunhttp://pastebin.ubuntu.com/10680820/22:02
ahayzen_haha just try things see where you get ;)22:03
ahoneybunReferenceError: myRandomMethod is not defined22:03
ahayzen_ahoneybun, define your function () {} somewhere else don't set it to the onClicked:22:03
ahayzen_ahoneybun, then called it from the onClicked: myMethod()22:04
ahayzen_ahoneybun, look at the section "JavaScript in Standalone Functions" on http://doc.qt.io/qt-5/qtqml-javascript-expressions.html22:04
ahoneybunsorry ahayzen_22:06
ahoneybunyay22:08
ahoneybunahayzen_: http://imgur.com/a/ajo6J22:10
ahayzen_ahoneybun, looks like fun :)22:10
ahoneybunnow to set them as 0 to 122:10
ahoneybunI'm looking at what you wrote22:11
ahayzen_ahoneybun, you probably need to put the Math.round() around your Math.random()22:11
ahoneybunaround?22:11
ahayzen_Math.round(Math.random())22:11
ahoneybunok22:11
ahayzen_output of random goes into the input of round22:11
ahoneybunworks!22:12
ahayzen_\o/22:12
ahoneybun1 or 022:12
ahoneybunshould I set a variable 0  = Head or soemthing like that22:12
ahoneybun?22:12
ahoneybunahayzen_: I'll be back brb22:14
=== salem_ is now known as _salem
ahoneybunahayzen_: btw Math.round(Math.random()) === 0 ? "Heads" : "Tails" works perfect22:58
tushardHello!22:59
tushardI wanted to contribute to ubuntu app development.22:59
tushardI am a complete begginer.23:00
tushardare there any easy projects which are suitable for begginers?23:01
ahayzen_ahoneybun, awesome :)23:02
ahoneybunahayzen_: uploading code to lp with credits of course23:03
ahoneybunhttps://launchpad.net/gazeteer23:03
jplattetushard: What do you mean? You want to create your own Apps, or you want to contribute to Canonicals projects, e.g. the Ubuntu SDK which is used for ubuntu app development?23:04
ahayzen_tushard, if you are a complete beginner probably best to start with the guide https://developer.ubuntu.com/en/start/ and https://developer.ubuntu.com/en/apps/qml/tutorials/building-your-first-qml-app/23:04
ahoneybunahayzen_: http://bazaar.launchpad.net/~aaronhoneycutt/gazeteer/1.0/files23:05
* ahoneybun sees he spelled your name wrong...23:05
ahayzen_tushard, then if you want to help out the coreapps are probably the best projects to contribute to https://launchpad.net/ubuntu-phone-coreapps ... look for a 'bitesize' tag of bugs as well23:05
ahayzen_ahoneybun, \o/23:06
jplatteahayzen_: Though to contribute, you have to sign the Ubuntu Code of Conduct before, I think.. Right?23:06
ahayzen_jplatte, yup and for canonical projects usually CLA as well23:07
ahoneybunjplatte: uploading to LP and such23:07
jplatteYeah, a good reason to not contribute to anything Canonical does :P23:07
ahayzen_depends on your views ;)23:07
* ahayzen_ doesn't want to start a flame war23:08
jplatteWell, I don't want to either23:09
jplatteJust wanted to have mentioned that there's no use in even looking at the code of any Canonical project if you want to have the power over the code you might write for them23:10
ahayzen_jplatte, define power23:11
jplatteIt's still the case that you have to attribute the copyright to canonical, right?23:11
AlanBellyou are best off using the stuff that is there as a platform on which to do your own thing23:11
ahayzen_jplatte, well look at the coreapps some do some don't directly mention canonical in the license header23:11
jplatteOkay, that's interesting23:12
AlanBellyou can absolutely inspect all the code, and contribute fixes, but Canonical create and curate the code of the operating system and unity and so on, which is fine, that is what they do23:12
jplatteBut no, I won't look at the code because I just don't get how launchpad works and it would take me 10 minutes to just find it there23:12
AlanBellno need to sign anything much to use the SDK to make an app for the platform as far as I am aware23:13
jplatteYeah I know they still maintain everything as open source and I can look at it23:13
tushardjplatte: i want to contribute to an already existing projects preferably.23:14
AlanBelland the CLA isn't particularly obnoxious if you read it23:14
tushardalthough the main reason is learning.23:14
AlanBellI guess if you were planning to do a *heap* of work on a canonical curated project and you want to have control/ownership over the work you did so you can monetise it later then yeah, CLA might not be your friend23:15
AlanBellbut if you want to just fix a little thing that annoys you and contribute that fix, then meh, it is fine23:15
ahayzen_tushard, coreapps are probably best to look at as they are built by other community people :)23:16
jplattetushard: I think it mostly depends on what you want to learn then. Are you talking about 'Ubuntu device' apps only? Then have a look at the core apps or ask if someone here needs help with their app (I'm sure a lot of people in here would value people helping them with the development of their apps). You could also contribute to the Ubuntu SDK itself, though I don't even know in which language this QtCreator-plugin stuff (if it'23:17
tushardahayzen_: thanks man.  But they are for ubuntu's phone version ?23:18
ahayzen_tushard, yes they are for the phone primarily, some work on the desktop as well23:18
ahayzen_most, if not all, you can run on the desktop at least for development purposes23:19
jplatteAlanBell: TBH, I'm not informed that well. I just thought you'd have to attribute copyright to Canonical, which would allow them to use your code in non-openSource projects / stop developing the software you contributed to as OSS altogether.23:19
tushardI am inclined to work on the apps then.  How to ask people if they need help. is there another irc channel?23:20
ahayzen_tushard, this is the channel :)23:20
jplattetushard: There are some, I think; but you're in the right one already AFAIK. there should be a lot of app developers in here :)23:20
* ahayzen_ waves o/23:20
tushardohh...Thanks then.  :)23:21
jplatteBy the way.. What apps are all you guys working on?23:22
ahayzen_tushard, i would get yourself familiar with the SDK first ... and run yourself through the tutorial of that example app (currency converter IIRC?)23:22
ahayzen_i'm working primarily on the music-app23:22
jplatteThe core music app? :O23:23
* nik90 waves23:23
ahayzen_yup23:23
ahayzen_nik90, o/23:23
nik90hey tushard, welcome :-)23:23
nik90ahayzen_: hey23:23
jplatteOooh, nice! That's like, the best app that came with my Ubuntu Phone ^-^23:23
jplatteThanks for creating such an awesome app!23:23
ahayzen_jplatte, haha awesome that means alot :)23:23
tushardahayzen_: its in the link you posted right?23:23
ahayzen_tushard, yeah https://launchpad.net/ubuntu-phone-coreapps23:24
tushardnik90: Hi!  :)23:24
ahayzen_tushard, popey, may be able to tell you which apps need to most help or have 'low hanging fruit' ?23:24
nik90tushard: as ahayzen_ said, get familiarized with the ubuntu sdk and pushing to github/launchpad .. and feel free to raise questions here.23:24
tushardGonna do that then....Thanks guys!!23:25
jplatteahayzen_: Well then, should I contact you directly here (/msg) if I want to talk about the app or are there better places for that? I'd use the rating form in the Ubuntu Store, but writing on the Smartphone is quite annoying, especially for long texts like my feedback would have been (until I lost what I had written already, but that's a different topic).23:25
nik90tushard: I don't remember marking bugs as bitesize to point you to it, but that's something we should probably do in the core apps soon23:25
jplatteLol, are helf of the people talking here working on the core apps? :D23:26
ahayzen_jplatte, if you have a bug then raise it here https://bugs.launchpad.net/music-app ... otherwise the mailing list can bee good for generic discussions... or pinging devs directly :)23:26
ahayzen_well me and nik90 are ... so yeah 50% of the folks talking are :)23:27
nik90jplatte: actually more like ppl working on the core apps in the nite, hanging out in this channel atm :P23:27
jplatteNo, I don't have a bug, only some small feature requests23:27
ahayzen_jplatte, they can sometimes turn into bugs ... but mailing list is probably best23:27
jplattewhich ML?23:28
* ahayzen_ tries to find the link23:28
jplatteAnd do I have to be subscribed to post to it? ^^23:28
ahayzen_yup i think its on launchpad...where is it23:28
nik90ahayzen_: https://lists.launchpad.net/ubuntu-phone/23:28
ahayzen_nik90, where is the coreapps mailing list? i can never find it23:28
jplatteAlso, could we just get all devs to use http://discourse.ubuntu.com/ ?23:28
nik90ahayzen_: core apps mailing list? 1 sec23:29
ahayzen_nik90, i was thinking coreapps one may be more relevant to discussion of apps specifically? what do you think?23:29
jplatteThat things has just 10x the UX of mailing lists, and thrice the UX of forums23:29
ahayzen_https://lists.launchpad.net/ubuntu-touch-coreapps/ thats the archive...23:29
nik90ahayzen_: https://lists.launchpad.net/ubuntu-touch-coreapps/23:29
nik90ahayzen_: https://launchpad.net/~ubuntu-touch-coreapps23:29
ahayzen_subscribe on the second link :)23:30
ahayzen_jplatte, ^^23:30
nik90jplatte: You would need to join the group at https://launchpad.net/~ubuntu-touch-coreapps and then subscribe to the mailing list from there23:30
jplatteYeah, what I expected23:30
ahayzen_jplatte, and the ubuntu phone one is a good one as well if you are generally interested in other discussions23:30
jplatteYay, more mails ^^°23:30
ahayzen_\o/23:30
ahayzen_jplatte, what specific features are you looking for?23:30
jplatteBeing able to control the music player from the lock screen (I know Canonical doesn't want it to be a lock screen, but for me it is :D), e.g. through an indicator23:31
ahayzen_jplatte, well the plan is eventually to do it in the sound-indicator23:31
ahayzen_jplatte, but i'm also trying to convince support on the lock screen as well23:32
jplatteand having random mode precompute the song order for the whole playlist so you don't get Song A -> Song B -> Song A -> Song C or stuff like that23:32
ahayzen_jplatte, basically we are waiting for one platform feature before this can work23:32
jplatteOkay23:32
ahayzen_...and the way random works will change with this new platform feature :)23:32
jplatteWell, an indicator would already be nice23:32
ahayzen_(random is pretty poor at the moment)23:32
jplatteHuh? Why?23:32
ahayzen_jplatte, because we won't be handling it the platform will ...or we will have to give it a preshuffled list23:33
jplatteWhat??23:33
jplatteI don't understand what you're saying23:33
jplatteYou mean you'll just use a different rng (with a more even distribution) or what?23:34
ahayzen_jplatte, basically it may change :) .... and probably will either be a precomputed random list or the random maybe more intelligent (no duplicates)23:34
jplattebut... why is this handled by the platform? :D23:34
ahayzen_jplatte, no at the moment we handle the shuffling as our app is never suspended when playing audio ... but soon our app will be suspended and the platform will play the list of tracks we tell it23:35
jplatteOkay...23:35
ahayzen_"its complicated" is probably the best answer23:35
jplatteWell, that explanation was understandable23:35
jplatteI still don't get why that changes the order of the random playlist significantly23:36
ahayzen_jplatte, at the moment it just picks a random number between 0 and queue size... so you can get duplicates as you said. i see us either moving to a precomputed list (which would stop them) or the platforms implementation of shuffle maybe better than ours and track which have been played (again stopping duplicates)23:37
ahayzen_jplatte, is that clear enough? lol23:38
jplatteI understood that before :D23:39
jplatteBut maybe you referred to the random implementation before.23:39
jplatteI definitely favor the precomputed list though, and that wouldn't need any new platform features, right?23:39
ahayzen_yeah but then what happens when you switch shuffle off?23:40
ahayzen_does it flip back to the 'ordered' list23:40
ahayzen_and what happens if you reorder things23:40
jplatteReorder things? I didn't even know you could do that :D23:41
jplatteBut I think the way gmusicbrowser implements it is the best23:41
jplatteThere reordering things simply turns off the random mode23:42
jplatteThe only problem I see with the way it is there is that the random list is never automatically changesd23:42
jplatte*changed23:42
jplatteWhich has a big advantage too, though23:42
ahayzen_press and hold an item in the queue then you can drag them up/down (only within the viewport)23:43
jplatteOkay23:43
jplatteI won't need that, but good to know anyway :D23:44
ahayzen_same way to multiselect things to add to queue/playlist or remove from playlist/queue23:44
ahayzen_(which you may use)23:44
jplattehaha, not really23:44
jplatteThe only thing I do is select an interpret and then click the random button ^^23:45
ahayzen_or your just like me and play an album/artist23:45
jplattewell, it is like that on my smartphone23:45
jplatteit was like that on my last smartphone23:45
ahayzen_heh23:45
jplatteWhat I do on my computer is way cooler, but I don't see that being doable on smartphones in this year, if ever :D23:46
jplatteBecause those smartphone apps are all about simplicity, and on my PC I use a filter in gmusicbrowser (like smart playlists in other players) which plays all my tracks with a rating of either 0 (my default) or >= 70, on all my songs23:47
ahayzen_yeah exactly23:48
ahayzen_but we are looking into like smart playlists, so "play me my most/least played tracks".. "play me recently added tracks" etc ... but thats further down the road23:48
jplatteOkay23:49
ahayzen_would that be something you would use though?23:49
jplatteDepends on whether you also add ratings23:49
ahayzen_we are always trying to figure out actual usecases of people other than us lol23:49
jplatteWell, I guess I have stated my perfect use case ^^23:50
ahayzen_:)23:50
ahayzen_maybe something we can do for the tablet/desktop version ;)23:51
* ahayzen_ takes note23:51
jplatteI think smart playlists with && and || wouldn't even be that hard to do in a simple interface if you just do it like Thunderbird does with their email filters23:51
jplatteInstead of allowing nesting of &&'s and ||'s like gmusicbrowser, just allow the user to create a set of rules, and select whether to && them together or to || them together (all or any)23:52
ahayzen_well the search at the moment is just a regexp23:52
ahayzen_if you know what you are typing you could do some cleaver stuff hehe23:52
jplattelol :D23:52
jplatteI see you running into problems with that though ^^23:52
ahayzen_such as ? hehe23:52
jplattesearching for "(live)" which some tracks have in their title for example23:53
jplatteit would kind of work, but also match things that have the word "live" outside of brackets23:53
jplattefor me, it would totally break23:54
ahayzen_yeah23:54
jplattebecause I've changed all (live)'s and (instrumental)'s in my musics tags to [live] and [instrumental]23:54
jplatteso () is reserved for (whatever remix) and things like that23:54
ahayzen_ah i see23:55
jplatteor (XY edition)23:55

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