[00:36] <aquarius> mhall119, once there's some documentation on *how*, I'm more than happy to try :)
[01:20] <mhall119> aquarius: how to write a scope?
[05:59] <Mirv> kalikiana: I wonder why the CI didn't autotrigger itself when it was changed
[06:57] <ahoneybun> akiva-thinkpad: is there a way to make 1 button change 2 properies?
[06:58] <akiva-thinkpad> ahoneybun, yes
[06:59] <ahoneybun> oh?
[06:59] <akiva-thinkpad> ahoneybun, so like, "onButtonPressed: dostuff"?
[06:59] <akiva-thinkpad> thats what you are trying to do?
[06:59] <ahoneybun> akiva-thinkpad: onClicked: dostuff
[06:59] <ahoneybun> should it be onButtonPressed?
[07:00] <akiva-thinkpad> ahoneybun, yep; its been awhile since Ive done qml, but I think just doing && works
[07:00] <ahoneybun> I want 1 button to change 2 different textfields defaults
[07:00] <akiva-thinkpad> so onclicked: a.color = "black" && b.color = "red"
[07:00] <ahoneybun> that I have set as "property int actualValue = 0"
[07:00] <ahoneybun> oh!
[07:00] <ahoneybun> let me try
[07:01] <akiva-thinkpad> ahoneybun, && means and, || means or
[07:01] <ahoneybun> Expected token `,'
[07:01] <ahoneybun> I remembered that from C+++
[07:01] <ahoneybun> C++
[07:02] <akiva-thinkpad> hmmmmm
[07:02] <ahoneybun> onClicked: score1.actualValue = 8000 && score2.actualValue = 8000
[07:02] <akiva-thinkpad> ahoneybun, try this
[07:02] <akiva-thinkpad> onClicked: { score1.actualValue = 8000; score2.actualValue = 9000 }
[07:03] <akiva-thinkpad> I think && is more about comparisons actually
[07:03] <akiva-thinkpad> so
[07:03] <ahoneybun>  onClicked: { score1.actualValue = 8000 && score2.actualValue = 8000 }
[07:03] <ahoneybun> Expected token `,'
[07:03] <akiva-thinkpad> no, I removed &&
[07:03] <ahoneybun> yea if 1 is true then the 2 is
[07:03] <ahoneybun> oh
[07:04] <ahoneybun> works!
[07:04] <akiva-thinkpad> i think its actually onClicked: score1.actualValue < 8000 && score2.actualValue < 8000 ? something : something
[07:04] <ahoneybun> akiva-thinkpad: I'm setting modes for common games
[07:05] <ahoneybun> yea ahayzen gave me something similar
[07:05] <akiva-thinkpad> ahoneybun, yah sorry my initial thing is about making comparisons.
[07:05] <akiva-thinkpad> && is and, || is or
[07:05] <ahoneybun> akiva-thinkpad: that was what I was thinking in the beginning as well lol so no big
[07:06] <akiva-thinkpad> ahoneybun, best way to learn is to teach :P (I learned why I was wrong by trying to teach)
[07:06] <ahoneybun> lol
[07:07] <ahoneybun> thanks akiva-thinkpad
[07:07] <akiva-thinkpad> np
[07:07] <ahoneybun> almost 320 users on uBeginner app akiva-thinkpad
[07:08] <akiva-thinkpad> now your just bragging :P
[07:08]  * akiva-thinkpad cries as he tries to finish autopilot
[07:08] <ahoneybun> akiva-thinkpad: no just happy
[07:08] <akiva-thinkpad> {:
[07:08] <ahoneybun> https://appstore.bhdouglass.com/app/gazeteer.aaronhoneycutt
[07:21] <akiva-thinkpad> ahoneybun, oh this is your scorecard app; yah ! thats neat
[07:21] <akiva-thinkpad> I thought you were speaking about your very first app :P
[07:25] <ahoneybun> akiva-thinkpad: the users is for uBeginner
[07:25] <ahoneybun> 320
[07:25] <ahoneybun> that is my new app
[07:25] <akiva-thinkpad> :)
[07:26] <ahoneybun> akiva-thinkpad: http://imgur.com/DhKC7ci
[07:26] <ahoneybun> current work
[07:27] <akiva-thinkpad> Ha! ever play dominion?
[07:27] <ahoneybun> no
[07:27] <ahoneybun> I really don't play any of those games lol
[07:27] <akiva-thinkpad> Magic is on there though :P
[07:28] <ahoneybun> my friend does and he has a app on his iPod Touch and I thought we should have one on Ubuntu as well
[07:28] <akiva-thinkpad> Same guy made dominion
[07:28] <akiva-thinkpad> Ah cool :P
[07:28] <ahoneybun> he plays yugioh
[07:28] <ahoneybun> does dominion have a score system?
[07:28] <akiva-thinkpad> ahoneybun, sort of
[07:28] <akiva-thinkpad> ahoneybun, we'd have to play a game for you to understand. Want to?
[07:29] <akiva-thinkpad> takes like 10 minutes to do one
[07:29] <ahoneybun> online I'm guessing?
[07:29] <ahoneybun> akiva-thinkpad: any exp with including C++ ?
[07:29] <ahoneybun> http://www.cplusplus.com/forum/beginner/1304/
[07:29] <akiva-thinkpad> ahoneybun, a little
[07:30] <ahoneybun> I want to include a coin flip as you see
[07:31] <akiva-thinkpad> ahoneybun, and so you just need a random number generator?
[07:31] <ahoneybun> yea pretty much
[07:31] <akiva-thinkpad> I'd imagine that you wouldnt need to use c++ for that.
[07:31] <ahoneybun> oh?
[07:33] <ahoneybun> some c++ : srand((unsigned)time(NULL));
[07:33] <akiva-thinkpad> ahoneybun, lookup qml math.random
[07:34] <ahoneybun> http://doc.qt.io/qt-5/qtquick-usecase-integratingjs.html?
[07:35] <akiva-thinkpad> ahoneybun, try it
[07:35] <dholbach> good morning
[07:35] <ahoneybun> hey dholbach
[07:35] <akiva-thinkpad> might need to import math
[07:35] <dholbach> hi ahoneybun
[07:36] <zsombi> hai folks
[07:36] <ahoneybun> good old 3:30 am!
[07:42] <ahoneybun> akiva-thinkpad: it is not making much sense for me but I think I'm going to stop on it for this morning
[07:44] <ahoneybun> thanks akiva-thinkpad
[07:50] <akiva-thinkpad> later
[07:50] <ahoneybun> later
[08:37] <nik90> zsombi: the results are positive, I tested your MP 15-20 times and no crashes :)
[08:37] <nik90> zsombi: oh and good morning ;-)
[08:37] <zsombi> nik90: awesome!
[08:37] <zsombi> nik90: yeah, I'm already here for >3h ;)
[08:37] <zsombi> nik90: good morning to U too
[08:39] <nik90> :)
[08:39] <nik90> zsombi: yeah I have no intention of coming online here at 06:00 AM :P
[08:50] <zsombi> nik90: :D
[08:50] <aquarius> mhall119, in go, in Ubuntu SDK, without cmake misery
[08:53] <zsombi> kalikiana: ogra_: haha... seems qmlscene is also setting the application name before anybody else would do that!!!!
[08:53] <zsombi> kalikiana: ogra_: I have now the same problem with the state files
[09:00] <dholbach> balloons, can you check my comments on https://code.launchpad.net/~dholbach/help-app/1434415/+merge/253844?
[09:00] <dholbach> balloons, 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 again
[09:19] <kalikiana> zsombi: is that a new issue?
[09:19] <zsombi> kalikiana: I don't think so, I just encountered this while doing unit test for StateSaver
[09:20] <zsombi> kalikiana: I think the qmlscene always set the app name and org name
[09:20] <zsombi> kalikiana: before loading the QML file
[09:23] <zsombi> kalikiana: 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 file
[09:24] <zsombi> kalikiana: ah, btw, an alarm MR is waiting for your review ;) https://code.launchpad.net/~zsombi/ubuntu-ui-toolkit/alarmmodel-get-crash/+merge/253981
[09:25] <zzarr> hello! how do I get WiFi signal strength and battery information in QML?
[09:26] <zzarr> should I use B2Qt WifiManager?
[09:27] <kalikiana> zsombi: I'm on it
[09:27] <zsombi> kalikiana: thx!!!
[09:31] <ogra_> zsombi, ha ! awesome ...
[09:34] <zsombi> ogra_: kalikiana: I think it would be the time either to distropatch the qmlscene or to really have our own launcher
[09:35] <ogra_> i think long term the latter makes sense
[09:35] <ogra_> short term rather the former :)
[09:35] <zsombi> ogra_: this has been discussed many many times, and the decision was always to go with qmlscene
[09:35] <kalikiana> I've stopped counting how often this question comes up…
[09:36] <zsombi> yeah, as kalikiana said
[09:36] <ogra_> haha
[09:36] <zsombi> even upstream doesn't like we use this binary to run the apps...
[09:43] <ogra_> do we have a bu open about the fact that anchorToKeyboard isnt respected if you rotate to landscape ?
[09:44] <ogra_> (or is there any programming trick to work around this)
[09:44] <ogra_> *a bug
[09:49] <kalikiana> zsombi: did somebody disable ci again? staging has flake8 errors :-(
[09:50] <kalikiana> ./tests/autopilot/ubuntuuitoolkit/tests/components/test_urihandler.py:22:5 F401 mock imported but unused
[09:50] <zsombi> kalikiana: Mirv was also wondering this morning about it
[09:51] <kalikiana> we really need ci for ci at one point…
[09:51] <kalikiana> or maybe cuffs for whoever does the disabling
[09:51] <zsombi> kalikiana: btw, Popovers vs OrientationHelper...
[09:52] <zsombi> kalikiana: have you tried to move OrientationHelper from PopupBase's base type to the foreground only?
[09:58] <kalikiana> zsombi: I can't see any crashes with staging in ubuntu-clock-app
[09:59] <nik90> kalikiana: just plain staging without zsombi's MP?
[09:59] <kalikiana> nik90: yes
[09:59] <kalikiana> which you suggested should be crashing left and right
[09:59] <zsombi> kalikiana: that's weird.... especially that the only alarm fix did land beginning of March, and with that Clock was still crashing
[10:00] <zsombi> kalikiana: pmcgowan reported crashes every time
[10:00] <nik90> kalikiana: yeah me too..on my vivid phone and desktop, i can make the clock app crash with my mind
[10:00] <kalikiana> the force must be too weak in me…
[10:01] <zsombi> kalikiana: I just got one
[10:01] <nik90> :P
[10:01] <Mirv> kalikiana: I didn't know what's up but I ran CI manually for your u1db-qt branch
[10:01] <zsombi> kalikiana: so, you need to have alarms, the open the settings, move here'n'there, you will get a crash
[10:01] <nik90> kalikiana: easy way to get it to crash would be to create a new alarm and then do what zsombi says ^^
[10:02] <zsombi> kalikiana: believe me, it crashes
[10:02] <zsombi> kalikiana: 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:03] <zsombi> kalikiana: the best case, sometimes crashes straight away, without returning teh value
[10:03] <zsombi> kalikiana: nik90: so it crashes somewhere in the middle of the meta object calls
[10:04] <zsombi> bzoltan_: I think you should update the UITK gallery in the store :)
[10:04] <bzoltan_> zsombi:  good idea
[10:05]  * kalikiana I wonder if these are related, I get hundreds of them:
[10:05] <kalikiana> qml: [CLOCK] Error saving alarm, code: 2
[10:05] <kalikiana> file:///usr/share/ubuntu-clock-app/common/AnalogClockMarker.qml:40: TypeError: Cannot read property of null
[10:06] <zsombi> bzoltan_: for some reason the new list items page is empty... and I guess it's because the API
[10:06] <zsombi> kalikiana: that might also be the reason get() returned null
[10:07] <zsombi> kalikiana: the error code 2 is EarlyDate, meaning the date for your alarm is not right
[10:08] <nik90> kalikiana: 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 AM
[10:09] <nik90> well atleast I have a function that checks the validity of the date and does that for the user
[10:10] <zsombi> nik90: 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 alarms
[10:10] <zsombi> nik90: never the less all alarms are saved, so the error might be some false alarm somewhere
[10:10] <zsombi> or there might be some collision of which alarm object the save is called on
[10:11] <nik90> hmm I guess
[10:13] <kalikiana> nik90: zsombi with the branch the errors are all gone
[10:16] <nik90> kalikiana: what about crashes?
[10:24] <kalikiana> nik90: none. I'm guessing the values get garbage collected, and since it's copied in the branch it works fine
[10:27] <akiva-thinkpad> bzoltan_, zbenjamin Holy macaroni, am I dumb! I got the damn thing embedded; my mistake was to manually call the createConfigurationWidget()
[10:27] <akiva-thinkpad> holy hell
[10:27] <akiva-thinkpad> okay this thing SHOULD be done pretty quickly then
[10:45] <zsombi> bzoltan_: next candidate for landing https://code.launchpad.net/~zsombi/ubuntu-ui-toolkit/alarmmodel-get-crash/+merge/253981
[11:08] <popey> ooh
[11:08] <kalikiana> zsombi: review, please https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/sphinxSysPath/+merge/252891
[11:08] <bzoltan_> zsombi:  you got ot nailed? Cool
[11:09] <bzoltan_> akiva-thinkpad:  nice job, dude :)
[11:09] <kalikiana> zsombi: 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 it
[11:09] <akiva-thinkpad> bzoltan_, ;_; 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:10] <akiva-thinkpad> via a screencast?
[11:10] <bzoltan_> akiva-thinkpad:  I love demos :)
[11:10] <akiva-thinkpad> okay stand by
[11:10] <kalikiana> zsombi: also: feast your eyes on the PASSING CI, I don't remember when I last saw that
[11:11] <zsombi> kalikiana: long ago... but all those seem to be mako related
[11:14] <kalikiana> zsombi: I got used to seeing "unstable" always…
[11:15] <bzoltan_> zsombi: Do you want me to push it to the ongoing landing once it got merged to the staging?
[11:18] <zsombi> bzoltan_: let's wait for CI to finish with it
[11:18] <bzoltan_> zsombi:  J has approved it
[11:20] <zsombi> bzoltan_: I see it's merged, so do the monkey :)
[11:20] <bzoltan_> zsombi: I do that :)
[11:21] <bzoltan_> zsombi: I top approved it ...
[11:21] <zsombi> bzoltan_: well, kalikiana did that 51 mins ago :D
[11:21] <karni> SDK 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/252891
[11:22] <karni> I 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 whatever
[11:23] <bzoltan_> karni:  It is indeed QtC question... I suggest you the #qt-creator channel
[11:23] <zsombi> bzoltan_: ah, that one... I had not checked that, I thought you talked about the alarm stuff
[11:23] <karni> bzoltan_: thanks!
[11:23] <zsombi> bzoltan_: but yeah, that's ok as well
[11:29] <akiva-thinkpad> bzoltan_, https://www.youtube.com/watch?v=Ox7pj5MjGec&feature=youtu.be
[11:29] <akiva-thinkpad> i don't think its private :P
[11:32] <bzoltan_> akiva-thinkpad: awesome! MR it right away :D
[11:32] <akiva-thinkpad> :)
[11:32] <akiva-thinkpad> bzoltan_, anything you want added before that?
[11:36] <bzoltan_> akiva-thinkpad:  By looking at the video it is good. Let me see the code :)
[11:36] <akiva-thinkpad> okay, in a bit
[12:37] <pieter2627> Hi, 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:39] <pieter2627> The normal QtQuick.Dialogs' FileDialog also works on desktop, but not the emulator - am a bit stuck
[12:50] <balloons> dholbach, I see https://code.launchpad.net/~dholbach/help-app/1434415/+merge/253844 is happy :-)
[12:51] <dholbach> balloons, yes :)
[12:51] <dholbach> balloons, the question is: what to do about the Exception you mentioned
[12:51] <dholbach> balloons, the tempfile question I think is solved
[12:51] <dholbach> (did you see my comments?)
[12:51] <balloons> dholbach, I don't see any comments
[12:52] <dholbach> weird
[12:52] <dholbach> it says "unsaved comment"
[12:52] <dholbach> ok...
[12:52] <balloons> I did see the pep8 proposal
[12:52] <dholbach> I'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 question
[12:52] <dholbach> regarding tempfile: http://paste.ubuntu.com/10677461/
[12:53] <dholbach> balloons, if you think it makes sense to use exceptions, I'll look into it
[12:53] <balloons> dholbach, 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 it
[12:53] <dholbach> right
[12:53] <balloons> I know this isn't the only case with them, so I wouldn't hold this mp for it. Something to think about though
[12:54] <dholbach> ok... shall I file a separate bug for it?
[12:54] <balloons> I guess that might be best so we don't forget, heh
[12:54] <dholbach> done... bug 1436316
[12:54] <dholbach> thanks balloons for the reviews!
[12:55] <balloons> cool, so I'll approve
[12:55] <balloons> I approved both. Jenkins should merge it all :-)
[12:55] <dholbach> oh...
[12:56] <dholbach> is it going to autoland the branches?
[12:56] <balloons> dholbach, yes.. Do you not want that?
[12:56] <dholbach> no no that's fine
[12:56] <balloons> easier that way methinks
[12:56] <dholbach> absolutely :)
[12:56] <dholbach> nice!
[12:56] <ahayzen> popey, 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:58] <popey> ahayzen: hmm
[12:58] <balloons> ahayzen, https://bugs.launchpad.net/developer-ubuntu-com/+bug/1436317. I didn't forget about you
[12:58] <ahayzen> balloons, sweet thanks that'll be useful for pointing new devs to :)
[12:59] <ahayzen> popey, 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 :/
[13:02] <popey> ugh
[13:06] <dholbach> balloons, do you know how long it roughly takes until the landing happens? I know I'm getting overly excited :)
[13:08] <ahayzen> popey, 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:15] <balloons> dholbach, to be fair we haven;t tested that jib yet, hehe
[13:15] <popey> ahayzen: for the small set of paths, potentially, yes.
[13:15] <balloons> dholbach, http://91.189.93.70:8080/job/help-app-autolanding/
[13:15] <dholbach> balloons, https://code.launchpad.net/~dholbach/help-app/run-pep8-and-pyflakes3/+merge/254059 failed, but that was expected
[13:15] <ahayzen> popey, /media/*/*/Music and /home/*/Music ?
[13:15] <balloons> bah, it ran them in the wrong order
[13:15] <balloons> i tried to be sneaky
[13:15] <dholbach> :)
[13:16] <dholbach> it appears to be doing something :)
[13:19] <popey> ahayzen: yeah, worth a bug in file manager :)
[13:19] <ahayzen> popey, or do we reopen that one that was closed lol ?
[13:19] <popey> oh, we have one already, don't we. Yeah, a comment on that.
[13:19] <ahayzen> popey, bug 1413821 :)
[13:21] <ahayzen> popey, commenting :)
[13:21] <popey> thanks
[13:21] <dholbach> balloons, landed! :)
[13:21] <dholbach> can't believe it
[13:24] <ahayzen> popey, ah bugger i can't reopen the bug lol
[13:24] <ahayzen> popey, do you have permission to flip it from won't fix -> new?
[13:24] <popey> ya
[13:25] <popey> done
[13:25] <ahayzen> thanks popey :)
[13:25] <balloons> dholbach, excellent :-)
[14:07] <xhoch3> I upgraded to 15.04 yesterday and could build Ubuntu Touch app with qmake
[14:07] <xhoch3> with 15.04 click target
[14:08] <xhoch3> however, 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] <xhoch3> ubuntu-core-15.04 armhf or the like
[14:08] <xhoch3> any idea how to enable this?
[14:10] <nik90> xhoch3: obvious question, are you trying this on the devel images on the phone?
[14:10] <xhoch3> nik90, no, stock image
[14:11] <xhoch3> when will those be able to to run on ordinary devices?
[14:11] <nik90> xhoch3: ha that's the issue then..the current stock image (RTM) is based on utopic
[14:11] <nik90> xhoch3: the stable phone images will switch over to the 15.04 framework only when it is deemed fit and stable and without regressions
[14:11] <xhoch3> ok, since I bought the Aquaris E4.5, I'd like to work with the vanilla environment
[14:12] <nik90> xhoch3: 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 framework
[14:12] <nik90> xhoch3: 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 brings
[14:12] <xhoch3> ok, 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 estimate
[14:13] <xhoch3> unfortunately 14.10 is feature-incomplete for me, so I cannot use this
[14:13] <nik90> xhoch3: 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 weeks
[14:14] <nik90> xhoch3: there are lot of bugs that need to be fixed in vivid before it will make it to the stable images
[14:14] <daker> nik90: wow https://i.imgur.com/7jdN4y4.png
[14:14] <nik90> daker: you got lxc setup?
[14:15] <daker> yes
[14:15] <xhoch3> ok, 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] <xhoch3> by accepting the latest dev version
[14:15] <nik90> daker: excellent! enjoy!
[14:15] <nik90> xhoch3: no you wouldn't need to erase your phone
[14:16] <nik90> xhoch3: you can switch to vivid easily. However in big caps "THINGS MIGHT BREAK" .. so obviously it cant be used as a daily phone any longer
[14:16] <nik90> s/cant/shouldnt
[14:17] <xhoch3> ok, no risk no fun
[14:17] <xhoch3> :D
[14:17] <xhoch3> how do I do it?
[14:17] <nik90> xhoch3: 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.04
[14:17] <nik90> xhoch3: I presume you know how to restore it if something goes wrong?
[14:18] <xhoch3> too late
[14:19] <xhoch3> :D
[14:19]  * nik90 brb in 15 mins
[14:19] <nik90> xhoch3: same command but with the channel name ubuntu-touch/stable or bqaquarius_en I think
[14:19] <nik90> ppl in the #ubuntu-touch channel will know for sure
[14:24] <xhoch3> 2015/03/25 15:21:59 Rebooting into recovery to flash
[14:24] <xhoch3> Failed to enter Recovery
[14:25] <xhoch3> now I have the orange ball spinning
[14:25] <xhoch3> can I safely shutdown the phone?
[14:26] <xhoch3> oh it rebooted
[14:28] <xhoch3> nik90, ok, cool I have 15.04 now
[14:28] <xhoch3> thanks
[14:32] <xhoch3> 15.04 is snappier, isn't it? feels smoother
[14:50] <zsombi> charles: ping
[14:51] <zsombi> nik90: do you remember, have you agreed with charles about any EDS tags to be set for application ID and alarm ID?
[14:53] <nik90> zsombi: https://code.launchpad.net/~charlesk/indicator-datetime/lp-1426519-add-tag-for-menuitem-activation-url/+merge/253997
[14:54] <nik90> zsombi: 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] <nik90> charles: can you confirm ^^
[14:56] <zsombi> nik90: charles: uhm... how should I encode it? $(appid):///$(alarmId)?
[14:56] <nik90> hmm that was the discussion we had with ted, but I cannot remember the outcome we decided upon
[15:19] <zsombi> nik90: checking charles' comments on teh bug, I think we should decide what to place in the URL
[15:19] <charles> zsombi, oops, didn't see your pings from earlier, looking now
[15:19] <zsombi> nik90: so url-dispatcher would expect sthing like $(appid):///URL
[15:20] <charles> zsombi, nik90, we should also get renatu in on this converation, he had some opinions on this yesterday
[15:20] <zsombi> nik90: charles: where URL should be somethiong containing the alarm ID
[15:21] <zsombi> nik90: charles: reading this https://developer.ubuntu.com/en/apps/platform/guides/url-dispatcher-guide/ the format is well defined: $(appId):///$(URI)
[15:21] <zsombi> where $(URI) is something the app should understand
[15:21] <charles> iirc renaut suggested not use appid as the url scheme, rather something like 'alarm'
[15:22] <nik90> charles: how do we then know which app to open?
[15:22] <zsombi> charles: well, the thing is url-dispatcher needs appid as protocol
[15:22] <zsombi> nik90: exactly
[15:22] <charles> ah. :)
[15:22] <charles> nik90, yes, confirming "X-CANONICAL-ACTIVATION-URL" is the x-prop to use
[15:22] <renatu> zsombi, no you can register your app to handle any url prefix
[15:23] <nik90> renatu: true, but if there are multiple apps registering for "alarm" url prefix then we get into trouble
[15:23] <zsombi> renatu: right, but then any app can override the url dispatcher...
[15:23] <renatu> for example the dialer app register itself for dilaer-app:/// and cal://
[15:23] <zsombi> exactly
[15:23] <charles> zsombi, 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 QOrganizer
[15:24] <zsombi> charles: yes, I am making the changes on Alarm based on that
[15:24] <nik90> renatu: the idea here is to allow alarms created by app-1 to be opened by *only* app-1
[15:24] <renatu> zsombi, 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 url
[15:24] <charles> zsombi, cool :)
[15:24] <nik90> renatu: if we use the standard "alarm" then app-1 could get app-2's alarms
[15:25] <renatu> but 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 it
[15:25] <charles> I thought we wanted to be able to let 3rd parties make their own clock, calendar, etc apps to supplant the default ones?
[15:25] <zsombi> nik90: I see some rational in renatu's idea, because then it would be easier to "replace" Clock app
[15:25] <charles> +1
[15:26] <nik90> zsombi: 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:27] <zsombi> charles: 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] <zsombi> nik90: right, as I wrote :)
[15:28] <renatu> nik90, 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 creating
[15:28] <renatu> creation
[15:28] <zsombi> nik90: renatu: charles: so, if separate apps can register their own alarms, then appid is the one we need
[15:28] <charles> zsombi, I think we'd want them to all go through the same alarm API; otherwise, they wouldn't get notifications
[15:28] <zsombi> renatu: I do not want to provide complete URL specifying freedome to the alarm user...
[15:28] <charles> zsombi, 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 alarm
[15:29] <zsombi> renatu: you mix Alarm API with QtOrganizer one
[15:30] <zsombi> charles: 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 URL
[15:30] <zsombi> charles: so in that sense each app can have its own URL
[15:32] <renatu> whats happen if the app get removed?
[15:33] <zsombi> charles: nik90: renatu: it would be too ugly if the develoiper would need to set the protocol for each alarm saved...
[15:33] <renatu> who will remove the alarms created by this app
[15:33] <zsombi> renatu: same question with a generic "alarm" protocol
[15:33] <zsombi> renatu: what if I remove the Clock app, and I don't install anything else?
[15:34] <renatu> clock app can not be removed
[15:34] <zsombi> renatu: so then?
[15:34] <zsombi> renatu: if you cannot remove, how do you override?
[15:34] <nik90> zsombi: 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 app
[15:35] <renatu> I am saying if I intall a new clock app would be nice if this new app can handle the allarms created by clock app
[15:35] <zsombi> nik90: but wo decided which app to open in case you install a 3rd party Clock app?
[15:35] <zsombi> decides
[15:36] <renatu> we 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 one
[15:36] <nik90> hmm true..we don't have a mechanism like the content-hub which shows which apps can handle a specific url
[15:36] <zsombi> exactly...
[15:36] <renatu> if more than one app register the same url prefix
[15:36] <renatu> I do not know whats happen today
[15:36] <zsombi> renatu: will I get that dialog each time it is invoked? that'd suck, sorry to say
[15:37] <renatu> zsombi, you can set the default one
[15:37] <renatu> like android does
[15:37] <renatu> and it will never appear again
[15:37] <renatu> until you reset it
[15:37] <nik90> zsombi: 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 it
[15:38] <akiva-thinkpad> how do you revert in bazaar, other than deleting and rebranching it?
[15:39] <renatu> today 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 app
[15:39] <zsombi> nik90: 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 much
[15:40] <renatu> zsombi, we can define that alarm:// is the default value the devel can chage it to the app id if he wants
[15:40] <zsombi> renatu: well, I'd need to expose some AlarmConfig API then...
[15:40] <zsombi> renatu: or I could give it as a property to each alarm...
[15:41] <renatu> zsombi, for alarms I do not see much benefit on it, but for calendar events I think this is very useful
[15:41] <zsombi> renatu: well, the idea was to let several apps to be able to create alarms individually, and I do no tmean overriding teh Clock app
[15:42] <renatu> zsombi, will the alarms created on others app visible on clock app?
[15:43] <renatu> if not they are individual alarms and should use the app-id on it
[15:43] <zsombi> renatu: no, clock app should only see Clock alarms, they should never collide
[15:43] <nik90> zsombi: renatu : All this boils down to one question, "Will apps creating alarms using the same db as clock app or not? "
[15:43] <nik90> s/using/use
[15:44] <zsombi> nik90: well, this may hopefully get solved when charles will start the new Alarm backend :)
[15:44] <charles> yeah... :)
[15:44] <charles> I'd like to that sooner rather than later, but it's not happening this sprint
[15:45] <renatu> zsombi, whell if they still using qtorganizer you can have different address-books for each app
[15:45] <renatu> s/address-book/calendars
[15:45] <charles> anyway my 2 cents is that apps creating alarms should use the same db as clock app
[15:46] <renatu> charles, they can still using the same db but different "eds sources"
[15:46] <charles> renatu, true. datetime will pick them all up anyway
[15:46] <nik90> charles: not sure I agree to that since seeing the reminder's app alarms in the clock app would look strange
[15:46] <renatu> this is how we intend to separate contacts
[15:47] <charles> renatu, I'm not sure why you'd want to keep alarms under a separate sources?
[15:47] <renatu> nik90, the alarm API can filter the alarms based on the application
[15:47] <renatu> charles, security :D, you can block apps to access different sources
[15:48] <charles> nik90, 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 apps
[15:48] <charles> but not mix reminders with clock apps
[15:48] <zsombi> charles: renatu: yet I'm using only one collection for all alarms, I can create separate ones
[15:49] <renatu> charles, +1
[15:49] <charles> renatu, that gets back to the same question, of letting a replacement calendar app edit pre-existing calendar events
[15:49] <zsombi> renatu: I filter alarms based on collection
[15:50] <zsombi> renatu: so far I use only one collection for all alarms
[15:50] <renatu> charles, with the new changes on qtorganizer the calendar app will be able to replace the event url
[15:51] <renatu> charles, and we need to have some fallback url in case of events synced from google, etc...
[15:51] <charles> renatu, yes, maybe I should have used alarms or reminders as the example there
[15:52] <charles> you're right that calendars are a special case b/c we need to handle 'no url provided' case for imported events
[15:52] <zsombi> nik90: renatu: charles: ok, so the protocol I'll chose to be 'alarm'
[15:53] <nik90> zsombi: so "alarm:///alarm-id" which the corresponding app can get and open the correct alarm
[15:54] <charles> mzanetti: ^ this is relevant to reminders as well
[15:54] <zsombi> nik90: would you like the alarm-id to be encoded in some fancy way, or plain alarm-id is fine?
[15:54] <charles> mzanetti, wrt choosing the url scheme and using the "X-CANONICAL-ACTIVATION-URL" x-prop
[15:55] <zsombi> nik90: like canonicak.com/alarmId?=
[15:55] <renatu> then reminder will be: "reminder://reminder-id"
[15:55] <mzanetti> charles, where would I add that?
[15:55] <charles> and calendar is cal://, yes?
[15:55] <nik90> zsombi: erm I think alarmId?= shoudl be sufficient
[15:55] <zsombi> renatu: as far as charles specified, it can be anything, charles wil only call that URL given in the X-* detail
[15:56] <charles> mzanetti, you're using QOrganizer right now?
[15:56] <mzanetti> charles, yep
[15:56] <nik90> zsombi: this way it would make sense for alternative clock app as well
[15:56] <renatu> mzanetti, you need to register this on url handler for your app
[15:57] <mzanetti> ok, reminders supports "evernote://note/<noteid>" already
[15:57] <zsombi> nik90: 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 handled
[15:57] <renatu> If I remember correct there is a json file for url-handler
[15:58] <charles> mzanetti, renatu has a patch @ https://code.launchpad.net/~renatofilho/qtorganizer5-eds/fix-1426519/+merge/253985 that will convert QOrganizerItemExtendedDetails into x-props
[15:58] <zsombi> nik90: 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 those
[15:58] <nik90> zsombi: true so I will get only alarmId="somevalue" .. which I will parse and extract?
[15:58] <charles> mzanetti, so you'd create an extended detail and add it to your QOrganizerItem
[15:58] <zsombi> nik90: so alarm://alarmId?=<uuid>
[15:58] <nik90> zsombi: yes
[15:58] <zsombi> nik90: deal
[15:58] <mzanetti> perfect
[15:58] <mzanetti> I can specify the url?
[15:58] <mzanetti> completely, I mean?
[15:59] <zsombi> mzanetti: yep
[15:59] <mzanetti> perfect!
[15:59] <charles> oh, and I should ping popey too, calendar-app will complete the three apps that should follow this approach
[15:59] <zsombi> charles: alarms is comin' ;)
[16:00] <charles> popey: 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 event
[16:01] <charles> what you do is create a QOrganizerItemExtendedDetails where the key is X-CANONICAL-ACTIVATION-URL and the value is the url
[16:01] <charles> datetime 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 page
[16:01] <renatu> charles, he can leave it empty too :D, since we will have the fallback url, correct?
[16:01] <charles> yes, was just about to get to that :)
[16:02] <zsombi> charles: renatu: does the key need to be all capitals?
[16:03] <charles> popey, since we have to handle imported calendar events too, datetime will still have to have a fallback url to handle
[16:03] <zsombi> charles: asking as the x-canonical-alarm and x-canonical-disabled is specified as small caps
[16:03] <charles> zsombi: no
[16:03] <charles> it doesn't have to be all caps
[16:03] <zsombi> ok
[16:05] <charles> I just did it that way because all the other properties in ical are all caps
[16:05] <charles> no biggie
[16:06] <zsombi> kalikiana: seems the statesaver fix works, I only need to get a proper test for the urihandler...
[16:11] <zsombi> charles: ouhhh.... what are we gonna do with the existing alarms?
[16:12] <zsombi> charles: like the ones people already created in the phone?
[16:19] <charles> zsombi, I'll leave the old logic in datetime so that those don't break
[16:20] <zsombi> charles: ok
[16:20] <charles> zsombi, they just won't be launchable as the new ones are
[16:20] <charles> or rather, they will launch to the app just as they do now, not to the alarm itself
[16:20] <zsombi> charles: 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 updated
[16:21] <charles> zsombi, that would be wonderful
[16:21] <zsombi> +1
[16:21] <charles> so nice of us to agree on new work for clock-app :D
[16:22] <zsombi> LOL right
[16:22] <zsombi> charles: any huch when would you have time for the v2 backend?
[16:22] <zsombi> hunch
[16:22] <nik90> charles: lol :P
[16:23] <charles> zsombi, not unless I do it on my own time
[16:23] <zsombi> charles: ouhh...
[16:23] <charles> two weeks ago it seemed so close :)
[16:23] <zsombi> hah
[16:23] <zsombi> two weeks ago I thought we can get subtheming into Vivid
[16:26] <nik90> bzoltan_: hey what's the planned ETA for the UITK vivid update? Just curious :-)
[16:27] <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 light
[16:28] <nik90> bzoltan_: Awesome! thnx :)
[17:25] <xhoch3> nik90, I updated to 15.04, but I still get WARNING:root:Signature check failed, but installing anyway as requested
[17:25] <xhoch3> Cannot 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] <xhoch3> Sdk-Launcher> Installing the application failed
[17:26] <nik90> xhoch3: hmm that's strange..let me try it
[17:26] <popey> xhoch3: wrong framework
[17:26] <popey> ubuntu-core is for snappy
[17:26] <nik90> popey: that's what the qtcreator atm is setting for new projects in vivid
[17:27] <popey> wat
[17:27] <popey> it should be ubuntu-sdk-15.04, not ubuntu-core-15.04
[17:27] <popey> unless I am mistaken?
[17:28] <nik90> popey: atm there are only two 15.04 frameworks listed by qtc, which are ubuntu-core-15.04 and ubuntu-core-15.04-dev1
[17:28] <popey> huh
[17:28] <xhoch3> in qtc it is listed as ubuntu-sdk-15.04
[17:28] <popey> ubuntu-core-15.04-dev1 is the one I believe
[17:28] <popey> https://docs.google.com/a/canonical.com/spreadsheets/d/1t_JGpg4r8BLluzfzmqa-gAbcKUjKUOufSCTSdPpFc5g/edit#gid=0
[17:28] <popey> last one in that list
[17:28] <nik90> xhoch3: hmm I dont see ubuntu-sdk-15.04 on my brand new vivid desktop install
[17:29] <xhoch3> http://www11.pic-upload.de/25.03.15/xwxx2jknupm.png
[17:29] <nik90> xhoch3: no that's not what me and popey are referring to
[17:30] <nik90> xhoch3: open manifest.json file in qtc
[17:30] <nik90> xhoch3: in the framework field, there is only ubuntu-core-15.04 and -dev1 version listed
[17:30] <xhoch3> yes, exactly
[17:30] <xhoch3> so take the dev one
[17:30] <popey> the 15.04-dev1 framework isn't even on my vivid device
[17:30] <nik90> xhoch3: anyway let me test the 15.04 frameworks and see if that works on the phone
[17:31] <xhoch3> nik90, same result
[17:31] <popey> so it will fail to install
[17:31] <popey> brb
[17:31] <xhoch3> yes
[17:33] <nik90> popey: http://imgur.com/iRXIWPW,KgbvQeH
[17:33] <xhoch3> nik90, did it work for you?
[17:33] <nik90> xhoch3: just a moment
[17:33] <popey> bzoltan_: ^
[17:34] <xhoch3> I just created the qmake sample (Simple UI), left everything as default and tried to run
[17:34] <akiva-thinkpad> bzoltan_, https://code.launchpad.net/~akiva/qtcreator-plugin-autopilot/trunk -- it seems well stable. What branch am I merging with?
[17:35] <nik90> xhoch3: yup I get that error
[17:35] <nik90> bzoltan_, popey: I cannot install a default project app created by qtc
[17:36] <nik90> xhoch3: it works if you set the framework to 14.10.
[17:36] <nik90> xhoch3: *and* you can still import Ubuntu.Components 1.2
[17:37] <xhoch3> nik90, thanks, that works
[17:39] <nik90> xhoch3: 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 before
[17:40] <xhoch3> ok thx
[17:41] <akiva-thinkpad> okay I got to go for a bit. bbl
[17:48] <ahoneybun> hey ahayzen
[17:48] <ahayzen> ahoneybun, yo
[17:49] <ahoneybun> http://i.imgur.com/DhKC7ci.png ^
[17:50] <ahayzen> ahoneybun, thats looking awesome :D
[17:51] <ahoneybun> the coin flip is not working atm (no code behind it)
[17:51] <ahayzen> ahoneybun, OCDness tells me that the coin flip button is not as wide as the others? (right alignment is wrong) ;)
[17:52] <ahayzen> or all the others are too big :)
[17:52] <ahoneybun> yea I know I'm wondering about that
[17:54] <popey> nik90: ugh, can you file a bug please?
[17:54] <nik90> popey: sure, on it now
[17:54] <popey> thanks!
[17:59] <nik90> popey: bug 1436470
[17:59] <ahoneybun> ahayzen: right alignment?
[17:59] <ahayzen> ahoneybun, yeah the right side is off
[18:00] <ahayzen> ahoneybun, 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 them
[18:00] <ahoneybun> ahayzen: http://pastebin.ubuntu.com/10679604/
[18:03] <ahayzen> ahoneybun, 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 account
[18:05] <ahayzen> ahoneybun, 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 divide
[18:07] <ahoneybun> ahayzen: thats how it is
[18:07] <ahoneybun> (parent.width - units.gu(2)) / 3
[18:08] <ahayzen> ahoneybun, not in the pastebin you gave me ;)
[18:08] <ahayzen> ahoneybun, so does that work?
[18:09] <ahoneybun> http://pastebin.ubuntu.com/10679648/
[18:09] <ahoneybun> still offset
[18:10] <ahayzen> ahoneybun, are the numbered buttons now right though?
[18:10] <ahoneybun> right?
[18:10] <ahayzen> ahoneybun, like the items in your Row at L56 need the same width set
[18:10] <ahayzen> ahoneybun, at L80 those ones need -1GU
[18:11] <ahayzen> ahoneybun, at L189 those need -1GU
[18:11] <ahayzen> then it all should be aligned correctly
[18:11] <ahayzen> ...hopefully...
[18:14] <ahoneybun> don;t think so
[18:15] <ahoneybun> http://pastebin.ubuntu.com/10679689/
[18:15] <ahayzen> ahoneybun, what does that look like?
[18:16] <ahoneybun> let me grab a screenie
[18:16] <ahoneybun> http://imgur.com/pwXfDSj
[18:17] <ahayzen> ahoneybun, so some of them are correct lol
[18:18] <ahoneybun> lol
[18:18] <ahayzen> ahoneybun, so L62, L69, L75 should read width: (parent.width - units.gu(2) / 3
[18:19] <ahayzen> ahoneybun, then all the number ones should be - units.gu(2) not 1
[18:19] <ahayzen> then it should be correct :)
[18:19] <ahoneybun> all in one ( )?
[18:19] <ahayzen> ahoneybun, sorry extra bracket (parent.width - units.gu(2)) / 3
[18:26] <nik90> t1mp: 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:27] <ahoneybun> ahayzen: fixed it temp
[18:29] <nik90> zsombi: 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:35] <akiva-thinkpad> back
[19:18] <t1mp> nik90: I will add that in the next week or two
[19:19] <nik90> t1mp: cool thnx
[19:41] <mhall119> does anyone know if it's possible to change Page.head.sections when the PageHeadState changes?
[19:44] <nik90> mhall119: have you tried setting the selectedIndex property based on the pageheadstate changes?
[19:48] <mhall119> nik90: I want to change the model and onSelectedIndexChanged handler
[19:48] <mhall119> I think I have to do with with code in Page.onStateChanged, rather than through PageHeadState
[20:06] <nik90> ah yeah that's tricky
[21:51] <ahoneybun> does anyone done a random number in qml or c++
[21:51] <ahoneybun> ?
[21:52] <ahayzen_> ahoneybun, use Math.random() in JS? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
[21:53] <ahayzen_> (which you can use in QML)
[21:54] <ahoneybun> I have to import something right ahayzen_?
[21:54] <ahayzen_> no just create a function somewhere and use it IIRC
[21:55] <ahoneybun> seems to work
[21:55] <ahoneybun> just need to output the number in a Label
[21:55] <ahayzen_> ahoneybun, http://doc.qt.io/qt-5/qtqml-javascript-expressions.html
[21:56] <ahoneybun> in that example in the first link it was returning it
[21:56] <ahayzen_> \o/
[21:57] <ahoneybun> it shots no errors
[21:57] <ahoneybun> just to output the result
[21:58] <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 make
[21:58] <ahoneybun> 0 or 1
[21:59] <ahayzen_> you could just round that number
[21:59] <ahayzen_> ahoneybun, like Math.round(Math.random()) would give 0 or 1 IIRC
[21:59] <ahoneybun> its like heads or tails
[22:01] <ahayzen_> ahoneybun, something like ... Math.round(Math.random()) [22:01] <ahoneybun> I need to define myRandomMethod().toString()
[22:01] <ahoneybun> oh wait
[22:02] <ahayzen_> depends how you want todo it... ^^ is the onliner way lol
[22:02] <ahoneybun> so lost
[22:02] <ahoneybun> http://pastebin.ubuntu.com/10680820/
[22:03] <ahayzen_> haha just try things see where you get ;)
[22:03] <ahoneybun> ReferenceError: myRandomMethod is not defined
[22:03] <ahayzen_> ahoneybun, define your function () {} somewhere else don't set it to the onClicked:
[22:04] <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.html
[22:06] <ahoneybun> sorry ahayzen_
[22:08] <ahoneybun> yay
[22:10] <ahoneybun> ahayzen_: http://imgur.com/a/ajo6J
[22:10] <ahayzen_> ahoneybun, looks like fun :)
[22:10] <ahoneybun> now to set them as 0 to 1
[22:11] <ahoneybun> I'm looking at what you wrote
[22:11] <ahayzen_> ahoneybun, you probably need to put the Math.round() around your Math.random()
[22:11] <ahoneybun> around?
[22:11] <ahayzen_> Math.round(Math.random())
[22:11] <ahoneybun> ok
[22:11] <ahayzen_> output of random goes into the input of round
[22:12] <ahoneybun> works!
[22:12] <ahayzen_> \o/
[22:12] <ahoneybun> 1 or 0
[22:12] <ahoneybun> should I set a variable 0  = Head or soemthing like that
[22:12] <ahoneybun> ?
[22:14] <ahoneybun> ahayzen_: I'll be back brb
[22:58] <ahoneybun> ahayzen_: btw Math.round(Math.random()) [22:59] <tushard> Hello!
[22:59] <tushard> I wanted to contribute to ubuntu app development.
[23:00] <tushard> I am a complete begginer.
[23:01] <tushard> are there any easy projects which are suitable for begginers?
[23:02] <ahayzen_> ahoneybun, awesome :)
[23:03] <ahoneybun> ahayzen_: uploading code to lp with credits of course
[23:03] <ahoneybun> https://launchpad.net/gazeteer
[23:04] <jplatte> tushard: 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:05] <ahoneybun> ahayzen_: http://bazaar.launchpad.net/~aaronhoneycutt/gazeteer/1.0/files
[23: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 well
[23:06] <ahayzen_> ahoneybun, \o/
[23:06] <jplatte> ahayzen_: Though to contribute, you have to sign the Ubuntu Code of Conduct before, I think.. Right?
[23:07] <ahayzen_> jplatte, yup and for canonical projects usually CLA as well
[23:07] <ahoneybun> jplatte: uploading to LP and such
[23:07] <jplatte> Yeah, a good reason to not contribute to anything Canonical does :P
[23:07] <ahayzen_> depends on your views ;)
[23:08]  * ahayzen_ doesn't want to start a flame war
[23:09] <jplatte> Well, I don't want to either
[23:10] <jplatte> Just 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 them
[23:11] <ahayzen_> jplatte, define power
[23:11] <jplatte> It's still the case that you have to attribute the copyright to canonical, right?
[23:11] <AlanBell> you are best off using the stuff that is there as a platform on which to do your own thing
[23:11] <ahayzen_> jplatte, well look at the coreapps some do some don't directly mention canonical in the license header
[23:12] <jplatte> Okay, that's interesting
[23:12] <AlanBell> you 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 do
[23:12] <jplatte> But 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 there
[23:13] <AlanBell> no need to sign anything much to use the SDK to make an app for the platform as far as I am aware
[23:13] <jplatte> Yeah I know they still maintain everything as open source and I can look at it
[23:14] <tushard> jplatte: i want to contribute to an already existing projects preferably.
[23:14] <AlanBell> and the CLA isn't particularly obnoxious if you read it
[23:14] <tushard> although the main reason is learning.
[23:15] <AlanBell> I 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 friend
[23:15] <AlanBell> but if you want to just fix a little thing that annoys you and contribute that fix, then meh, it is fine
[23:16] <ahayzen_> tushard, coreapps are probably best to look at as they are built by other community people :)
[23:17] <jplatte> tushard: 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:18] <tushard> ahayzen_: 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 well
[23:19] <ahayzen_> most, if not all, you can run on the desktop at least for development purposes
[23:19] <jplatte> AlanBell: 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:20] <tushard> I 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] <jplatte> tushard: 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:21] <tushard> ohh...Thanks then.  :)
[23:22] <jplatte> By 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-app
[23:23] <jplatte> The core music app? :O
[23:23]  * nik90 waves
[23:23] <ahayzen_> yup
[23:23] <ahayzen_> nik90, o/
[23:23] <nik90> hey tushard, welcome :-)
[23:23] <nik90> ahayzen_: hey
[23:23] <jplatte> Oooh, nice! That's like, the best app that came with my Ubuntu Phone ^-^
[23:23] <jplatte> Thanks for creating such an awesome app!
[23:23] <ahayzen_> jplatte, haha awesome that means alot :)
[23:23] <tushard> ahayzen_: its in the link you posted right?
[23:24] <ahayzen_> tushard, yeah https://launchpad.net/ubuntu-phone-coreapps
[23:24] <tushard> nik90: 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] <nik90> tushard: as ahayzen_ said, get familiarized with the ubuntu sdk and pushing to github/launchpad .. and feel free to raise questions here.
[23:25] <tushard> Gonna do that then....Thanks guys!!
[23:25] <jplatte> ahayzen_: 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] <nik90> tushard: 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 soon
[23:26] <jplatte> Lol, are helf of the people talking here working on the core apps? :D
[23: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:27] <ahayzen_> well me and nik90 are ... so yeah 50% of the folks talking are :)
[23:27] <nik90> jplatte: actually more like ppl working on the core apps in the nite, hanging out in this channel atm :P
[23:27] <jplatte> No, I don't have a bug, only some small feature requests
[23:27] <ahayzen_> jplatte, they can sometimes turn into bugs ... but mailing list is probably best
[23:28] <jplatte> which ML?
[23:28]  * ahayzen_ tries to find the link
[23:28] <jplatte> And do I have to be subscribed to post to it? ^^
[23:28] <ahayzen_> yup i think its on launchpad...where is it
[23:28] <nik90> ahayzen_: https://lists.launchpad.net/ubuntu-phone/
[23:28] <ahayzen_> nik90, where is the coreapps mailing list? i can never find it
[23:28] <jplatte> Also, could we just get all devs to use http://discourse.ubuntu.com/ ?
[23:29] <nik90> ahayzen_: core apps mailing list? 1 sec
[23:29] <ahayzen_> nik90, i was thinking coreapps one may be more relevant to discussion of apps specifically? what do you think?
[23:29] <jplatte> That things has just 10x the UX of mailing lists, and thrice the UX of forums
[23:29] <ahayzen_> https://lists.launchpad.net/ubuntu-touch-coreapps/ thats the archive...
[23:29] <nik90> ahayzen_: https://lists.launchpad.net/ubuntu-touch-coreapps/
[23:29] <nik90> ahayzen_: https://launchpad.net/~ubuntu-touch-coreapps
[23:30] <ahayzen_> subscribe on the second link :)
[23:30] <ahayzen_> jplatte, ^^
[23:30] <nik90> jplatte: You would need to join the group at https://launchpad.net/~ubuntu-touch-coreapps and then subscribe to the mailing list from there
[23:30] <jplatte> Yeah, what I expected
[23:30] <ahayzen_> jplatte, and the ubuntu phone one is a good one as well if you are generally interested in other discussions
[23:30] <jplatte> Yay, more mails ^^°
[23:30] <ahayzen_> \o/
[23:30] <ahayzen_> jplatte, what specific features are you looking for?
[23:31] <jplatte> Being 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 indicator
[23:31] <ahayzen_> jplatte, well the plan is eventually to do it in the sound-indicator
[23:32] <ahayzen_> jplatte, but i'm also trying to convince support on the lock screen as well
[23:32] <jplatte> and 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 that
[23:32] <ahayzen_> jplatte, basically we are waiting for one platform feature before this can work
[23:32] <jplatte> Okay
[23:32] <ahayzen_> ...and the way random works will change with this new platform feature :)
[23:32] <jplatte> Well, an indicator would already be nice
[23:32] <ahayzen_> (random is pretty poor at the moment)
[23:32] <jplatte> Huh? Why?
[23:33] <ahayzen_> jplatte, because we won't be handling it the platform will ...or we will have to give it a preshuffled list
[23:33] <jplatte> What??
[23:33] <jplatte> I don't understand what you're saying
[23:34] <jplatte> You 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] <jplatte> but... why is this handled by the platform? :D
[23:35] <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 it
[23:35] <jplatte> Okay...
[23:35] <ahayzen_> "its complicated" is probably the best answer
[23:35] <jplatte> Well, that explanation was understandable
[23:36] <jplatte> I still don't get why that changes the order of the random playlist significantly
[23:37] <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:38] <ahayzen_> jplatte, is that clear enough? lol
[23:39] <jplatte> I understood that before :D
[23:39] <jplatte> But maybe you referred to the random implementation before.
[23:39] <jplatte> I definitely favor the precomputed list though, and that wouldn't need any new platform features, right?
[23:40] <ahayzen_> yeah but then what happens when you switch shuffle off?
[23:40] <ahayzen_> does it flip back to the 'ordered' list
[23:40] <ahayzen_> and what happens if you reorder things
[23:41] <jplatte> Reorder things? I didn't even know you could do that :D
[23:41] <jplatte> But I think the way gmusicbrowser implements it is the best
[23:42] <jplatte> There reordering things simply turns off the random mode
[23:42] <jplatte> The only problem I see with the way it is there is that the random list is never automatically changesd
[23:42] <jplatte> *changed
[23:42] <jplatte> Which has a big advantage too, though
[23:43] <ahayzen_> press and hold an item in the queue then you can drag them up/down (only within the viewport)
[23:43] <jplatte> Okay
[23:44] <jplatte> I won't need that, but good to know anyway :D
[23:44] <ahayzen_> same way to multiselect things to add to queue/playlist or remove from playlist/queue
[23:44] <ahayzen_> (which you may use)
[23:44] <jplatte> haha, not really
[23:45] <jplatte> The 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/artist
[23:45] <jplatte> well, it is like that on my smartphone
[23:45] <jplatte> it was like that on my last smartphone
[23:45] <ahayzen_> heh
[23:46] <jplatte> What I do on my computer is way cooler, but I don't see that being doable on smartphones in this year, if ever :D
[23:47] <jplatte> Because 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 songs
[23:48] <ahayzen_> yeah exactly
[23: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 road
[23:49] <jplatte> Okay
[23:49] <ahayzen_> would that be something you would use though?
[23:49] <jplatte> Depends on whether you also add ratings
[23:49] <ahayzen_> we are always trying to figure out actual usecases of people other than us lol
[23:50] <jplatte> Well, I guess I have stated my perfect use case ^^
[23:50] <ahayzen_> :)
[23:51] <ahayzen_> maybe something we can do for the tablet/desktop version ;)
[23:51]  * ahayzen_ takes note
[23:51] <jplatte> I 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 filters
[23:52] <jplatte> Instead 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 regexp
[23:52] <ahayzen_> if you know what you are typing you could do some cleaver stuff hehe
[23:52] <jplatte> lol :D
[23:52] <jplatte> I see you running into problems with that though ^^
[23:52] <ahayzen_> such as ? hehe
[23:53] <jplatte> searching for "(live)" which some tracks have in their title for example
[23:53] <jplatte> it would kind of work, but also match things that have the word "live" outside of brackets
[23:54] <jplatte> for me, it would totally break
[23:54] <ahayzen_> yeah
[23:54] <jplatte> because I've changed all (live)'s and (instrumental)'s in my musics tags to [live] and [instrumental]
[23:54] <jplatte> so () is reserved for (whatever remix) and things like that
[23:55] <ahayzen_> ah i see
[23:55] <jplatte> or (XY edition)