/srv/irclogs.ubuntu.com/2014/02/17/#ubuntu-app-devel.txt

=== chriadam|away is now known as chriadam
dholbachgood morning07:20
dholbachdpm, do you think we could add some more of current good apps to lp:ubuntu-sdk-tutorials?07:43
dholbachdpm, I'm just trying to reply to https://twitter.com/tom_ubuntu/status/43386626441544089607:43
dpmdholbach, kyle is adding some html5 tutorials to that project, perhaps we should point him to those. I agree with adding more apps to the examples, it's just having the time :)07:45
dholbachsure07:46
dholbachmaybe I should point the guy on twitter to https://wiki.ubuntu.com/Touch/CoreApps/DevelopmentGuide?07:46
dholbachor something07:46
dholbachdpm, ^ what do you think?07:48
dpmdholbach, yes, or perhaps to https://launchpad.net/ubuntu-phone-coreapps/07:48
dholbachok, thanks07:48
mptLaney, no, I meant Header as in http://design.ubuntu.com/apps/building-blocks/header08:21
mpt(for the set time/date sheet)08:22
=== alblasch is now known as ablasche
Laneympt: hmm, I don't know how to do that within a dialog09:03
=== chriadam is now known as chriadam|away
=== Ursinha is now known as Ursinha-afk
nik90dpm: do you have any other qml ideas for the ubuntu sdk tutorials?09:36
bzoltan1nik90: hello09:41
bzoltan1nik90: about that qtdeclarative5-qtgrilo0.1 package09:41
nik90bzoltan1: hi09:43
bzoltan1nik90: The qtdeclarative5-qtgrilo0.1 is not included in the phablet image, it is not integrated to the SDK, and it is not backported to the LTS09:44
bzoltan1nik90: so :) quite a few reasons to wonder why a core app is using it ... and if it is using it, then why it was not flagged out to us?09:44
nik90bzoltan1: I agree to the "not integrated to the sdk or backported to the LTS part". But I think it should be part of the phone image considering that the music app runs it.09:44
nik90bzoltan1: I am not a music dev, but I thinnk the plan was to move away from Grillo09:45
bzoltan1nik90: It is a bit more complex issue ...09:45
nik90bzoltan1: I see grilo-plugins-0.2-mediascanner and qtdeclarative5-qtgrilo0.1 added as dependencies in the debian/control file09:46
bzoltan1nik90: by who?09:47
bzoltan1nik90: and why?09:47
nik90bzoltan1: in the music app by music devs09:47
dpmhi nik90, bzoltan109:48
nik90bzoltan1: also those 2 packages are part of the core apps ppa09:48
dpmbzoltan1, what's up with grilo?09:48
mptLaney, if you can’t do everything in a dialog that you can do in a stack page, again that’s a toolkit bug. The print dialog will also use a header, for example: https://wiki.ubuntu.com/Printing#dialog09:49
bzoltan1nik90:  nik90 core apss PPA andd debian/controll does not help to land packages on the  phone image and SDK integration09:51
nik90mpt: The dialog does not provide the same support as a page. It does not provide a pageheader, toolbar etc..Looking at the Printing Dialog, I think they should be using the Sheets Component instead of a dialog.09:51
Laneywhat is the Sheets component?09:52
nik90Laney: Check out the SDK Gallery app. They have a sheets example there. I do not see it at design.ubunut.com however I remember the designers saying that they will be adding it soon enough (during the last vUDS)09:53
=== Ursinha-afk is now known as Ursinha
mptnik90, sounds good to me. :)10:06
JamesTaitGood morning all; happy World Human Spirit Day! :-D10:12
nik90rpadovani: ping10:19
nik90any calendar devs hanging about? I am trying to figure out arguments support for the clock app and need your help10:30
nik90for alarms10:30
rpadovaninik90, pong10:39
nik90rpadovani: hey, good morning10:41
rpadovanio/10:41
nik90rpadovani: I wanted to talk to you about your argument's support MP for the clock app at https://code.launchpad.net/~rpadovani/ubuntu-clock-app/09Oct2013/+merge/19013910:41
nik90rpadovani: it got reverted at the end of the 13.10 cycle since it stopped the clock app from starting on the phone10:41
nik90rpadovani: Now I am revisiting that since I need to definitely implement support for arguments for the alarms feature10:42
dpmnik90, morning!10:42
nik90dpm: morning :)10:42
nik90rpadovani: as I review your MP again, I understand you defined "alarms:///" as the default argument. Why?10:43
dpmnik90, I'll be running an Ubuntu App Developer Week session on internationalizing apps, so that will force me to write a tutorial on it :)10:43
nik90rpadovani: I would expect "alarms:///" to be an optional argument10:44
nik90rpadovani: +110:44
nik90sry that was meant for dpm: +110:44
nik90dpm: me and kalikiana will be hosting a u1db session together. I need to start work on it as well :)10:44
dpmNICE!10:45
rpadovaninik90, mhh, no, wait, I'm not sure to remember well, but it is optional, because if there is no option it works10:45
dpmnik90, so regarding the thread in the mailing list: I think we should not compromise the developer experience for pure qml projects for automation. I'm thinking that one easy thing we could do to get rid of the dependency on cmake to run projects on the device is to simply commit a dummy .desktop file on bzr10:45
rpadovaninik90, I have to check api10:45
nik90dpm: +1...because this cmake migration happened at the wrong time just before the MWC...10:46
dpmthis way Qt Creator would work, and the CI could still generate click packages with cmake and overwrite the .desktop file. What do you think? I think the only issue was with Qt Creator not finding it, wasn't it?10:46
kalikianadpm: how does qml without cmake get translated then?10:46
nik90dpm: yes the issue was that Qt Creator was not finding it. I will try just adding a .desktop file and see if that works10:47
nik90rpadovani: I see 2 apps using arguments atm, which are calendar and music-app10:47
nik90rpadovani: http://bazaar.launchpad.net/~ubuntu-calendar-dev/ubuntu-calendar-app/trunk/view/head:/calendar.qml10:47
nik90rpadovani: http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/music-app.qml10:47
nik90rpadovani: Both use different approaches...calendar uses what you did for clock app. While music app defines them as optional arguments10:48
nik90rpadovani: confused as to what approach I should take10:48
dpmnik90, cool. Please let me know your findings, and then if it works, I'll propose it as the alternative on the mailing list10:49
rpadovaninik90, mhh, I don't remember why I chose this approach10:49
nik90rpadovani: Do you have some time to look at this? Or should I take over this bug?10:52
nik90rpadovani: It is a critical priority task and needs to be done asap.10:52
rpadovaninik90, well, calendar is equal to clock because I implemented both :P10:52
rpadovaninik90, after a grep on logs:10:52
rpadovaniZnc-#ubuntu-calc-app.log:Oct 09 21:33:34 <boiko>WebbyIT: if no arguments are passed, then the %u does nothing10:52
rpadovaninik90, yap, I look at it now10:53
nik90dpm: adding a ubuntu-clock-app.desktop worked11:02
nik90dpm: I didn''t have to cmake or modify any other file11:02
dpmnik90, ok, let's go for that, then. Can you send a MP and I'll approve it?11:05
nik90dpm: yeah sure..1 min11:05
dpmcool, thanks11:05
rpadovaninik90, ok, so, I chose to use dafaultArguments so you have only to write alarm to invoke it: if you use normal argument you have to set alarm=true11:19
rpadovaninik90, the branch you linked works well with qmlscene on PC11:19
rpadovaninik90, I have no idea on how test it with cmake11:20
rpadovanidpm ^^11:21
rpadovanidpm, how can I pass an argument to an app with cmake>11:22
dpmrpadovani, can you give me some more context on what you are trying to make?11:22
rpadovanidpm, so, we want to start clock app on alarm tab if during the startup an argument is passed11:23
rpadovaniwith qmlscene I simply do: qmlscene alarm ubuntu-clock-app.qml11:23
rpadovanidpm, but I want to be sure that it works also as in normal installation. How can I test it?11:24
nik90rpadovani: but doesn't optional arguments allow you to state the url such as alarm:"alarmid"11:25
dpmlet me have a look11:26
rpadovaninik90, is a question?  What arguments do you want to implement? Because on old branch there is only alarm to open alarm tab11:27
dpmrpadovani, you can specify additional launch arguments here: http://bazaar.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/trunk/view/head:/CMakeLists.txt#L2611:27
dpmon the EXEC line11:27
nik90rpadovani: that's a question11:28
rpadovanidpm, thanks!11:28
dpmbtw, any cmake expert could clarify the following to me?11:28
dpmhttp://bazaar.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/trunk/view/head:/CMakeLists.txt#L1811:28
dpmif (CLICK_MODE)11:28
dpm...11:28
dpmelse (CLICK_MODE)11:28
dpm...11:28
dpmThat doesn't make sense to me, but it might be something obvious I'm missing11:29
rpadovaninik90, if you want I can implement an argument like --alarm=name:Try/date:2313121242111:30
kalikianadpm: option(CLICK_MODE11:30
kalikianaat the top11:30
dpmkalikiana, yes, but the if and the else look for the same value - that's the part I'm not getting11:31
kalikianadpm: pretend it says else() and endif()11:32
dpmah, I see...11:32
timpdpm: that's the spec of cmake if: http://www.cmake.org/cmake/help/cmake2.6docs.html#command:if11:32
dpmgot it, thanks kalikiana and timp11:33
nik90rpadovani: so in your current implementation, what argument should I pass?11:33
rpadovaninik90, only alarm11:33
rpadovaniqmlscene alarm ubuntu-clock-app.qml11:33
nik90rpadovani: so qmlscene alarm ubuntu-clock-app.qml ?11:33
rpadovaniand it opens alarm tab11:33
nik90ok11:38
nik90rpadovani: this time I will ask charles to take a look before merging11:38
nik90do you have link to mp?11:38
rpadovaninik90, just a sec, I update cmake and then I'll do a mr11:39
rpadovaninik90, https://code.launchpad.net/~rpadovani/ubuntu-clock-app/17Feb2014/+merge/20669311:42
dpmhey m-b-o :)11:52
popeym-b-o: you have mail ☻12:06
nik90You guys are in for a treat. Going to publish some details about a new patch to the clock app on my blog in an hour hopefully with some videos. Let's just say colin king is going to be delighted ;-)13:04
popey\o/13:07
dpmnice :)13:16
=== Pici` is now known as Pici
nik90http://nik90.com/killing-an-ancient-clock-app-bug/14:21
popeynice one nik90 !14:31
nik90popey: thnx :)14:32
=== gatox is now known as gatox_lunch
nik90m-b-o: ping15:52
=== gatox_lunch is now known as gatox
rpadovanimzanetti, hey :-)17:48
kalikiananik90: are you aware of PerformanceOverlay?18:09
nik90kalikiana: ah yes, I recently tried it..pretty cool :)18:14
nik90kalikiana: I wasn't sure of what some graphs indicated18:14
kalikiananik90: in that case I'm sure Kaleo will be very interested in making it clearer18:15
kalikianamaybe it even make sense to have a short demo in the app week18:15
nik90kalikiana: let me take a closer look at it and then identify any points that is not clear18:16
nik90kalikiana: looking at #ubuntu-touch channel, it seems both timp and Kaleo are busy during that week (carnival)18:16
nik90kalikiana: so let's see if zsombi can do that..if yes then that would be nice18:16
kalikianathose brazilians what can you say, one month inofficial holidays18:17
nik90kalikiana: lol18:18
MRRpchello19:49
mrgoodcathello to you as well19:50
MRRpccan u help me19:50
mrgoodcatthat depends strongly on what you need help with19:50
MRRpc:D its easy look at this code19:51
MRRpca.write("asdj",4);19:51
MRRpci want dont use the size and this done automatcly19:51
mrgoodcati don't understand the question19:52
MRRpci use fstream in c++19:54
MRRpc    fstream a;     a.open("/home/mrr/Desktop/out2.txt",ios_base::out);     a.write("asdj",4);     a.close(); }19:54
MRRpcnumber 4 is size of the character19:54
mrgoodcatoh, you want it to automatically figure out the size?19:54
MRRpchell yeah19:55
MRRpc:D19:55
MRRpcare u there what happend19:57
mrgoodcatsorry my internet went out19:58
mrgoodcati just use write so i don't know what to tell you19:58
MRRpcnp19:58
mrgoodcatmaybe one of these guys can help19:58
MRRpcok ty19:58
mrgoodcati like the control of using an explicit streamsize19:59
mrgoodcattry fprintf19:59
MRRpcok let me try19:59
MRRpchow to use fprintf20:00
mrgoodcatFILE *f = fopen("file.txt", "w"); const char *text = "asdf"; fprintf(f, "Some text: %s\n", text); fclose(f);20:02
mzanettirpadovani: hey, new nick :)20:02
MRRpcty i love u thats work20:04
MRRpc<320:04
mrgoodcatglad to hear it20:05
MRRpc"w " what is this?20:07
MRRpc"w"20:07
mrgoodcatfile mode20:07
mrgoodcatw stands for write20:07
MRRpcdoes it work for binary20:08
mrgoodcathttp://www.cplusplus.com/reference/cstdio/fopen/20:08
mrgoodcatwriting to binary files is going to require a streamsize i'm pretty sure. since binary files don't care what data is written to them20:10
mrgoodcati gotta go20:10
MRRpcoh ty , sorry i am so Curious20:10
mrgoodcatno problem20:10
mrgoodcatgood luck20:10
MRRpcgl20:10
rpadovanimzanetti, yap, long story :-)20:22
rpadovanimzanetti, so, did you read backlog? I started working on camera, I added camera confirm, and now I'm focused on design20:23
nik90Kaleo: regarding bug https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1280359, is it crashing because of the dialer widget?20:28
ubot2`Launchpad bug 1280359 in Ubuntu UI Toolkit "Ubuntu Layouts causes application to crash while switching from one layout to the other" [Critical,In progress]20:28
nik90kalikiana: I noticed that other apps seem to use layouts without any such crash20:28
nik90Kaleo: ^^20:29
nik90sry not kalikiana20:29
Kaleonik90, hey20:39
nik90Kaleo: hi20:39
Kaleonik90, I have just attached an even smaller test program20:39
Kaleonik90, I have not investigated further yet but there must be some sort of race condition20:39
nik90Kaleo: yes I noticed20:39
nik90Kaleo: Were you able to notice it without the Dialer?20:40
Kaleonik90, yes20:40
Kaleonik90, with that even smaller test program20:40
Kaleonik90, I posted 220:40
Kaleonik90, a ShaderEffectSource suffices20:40
nik90Kaleo: ah okay..I only saw saw the first small program20:40
Kaleonik90, at least you have a "workaround" for now20:42
Kaleonik90, not using the Dialer :)20:42
nik90Kaleo: lol :) I cannot really do that :P20:42
Kaleonik90, for tonight it might be your only hope :)20:43
Kaleonik90, but between now and tomorrow I'm sure we'll find a fix20:43
nik90Kaleo: that's fast enough for me :)20:43
nik90Kaleo: I don't really need the fix on the phone. Just need it on the desktop because that's where the user will try to change the layout20:44
Kaleonik90, understood20:44
Kaleonik90, however it's the same for us20:44
Kaleonik90, there is only one ubuntu :)20:44
nik90Kaleo: true, but SDK doesn't get updated on phone too often20:44
Kaleonik90, that is giong to change20:45
Kaleonik90, we will probably have something daily now20:45
nik90Kaleo: wow..awesome!20:45
Kaleonik90, on trusty that is20:45
Kaleonik90, and I mean for the ubuntu-ui-toolkit20:45
nik90Kaleo: yeah yeah..20:46
Kaleo:)20:46
mzanettirpadovani: no... lost the backlog somehow. But cool stuff. Is there already something to review?21:27
nik90Kaleo: Is it possible to add a Flickable inside a conditional layout instead of a row or column?21:31
Elleoif something is started from the command line does it bypass the containment stuff?21:37
mrgoodcatif i'm interested in creating a desktop application (because i don't have an ubuntu phone) am I still best off going to developer.ubuntu.com? it seems mostly targeted at phablet21:37
Kaleonik90, I have no idea21:40
Kaleonik90, I'm not too familiar with these APIs21:40
Kaleonik90, zsombi tomorrow will know21:40
nik90Kaleo: np..I will ask him tomorrow21:41
rpadovanimzanetti, I put the code online, but I want to implement design for camera. My question is: design is equal to camera app, what is the best way to implement it? Take camera-app code? I looked at it, and it simply qml21:57
rpadovanihttps://code.launchpad.net/~rpadovani/reminders-app/cameraImprovement21:57
mrgoodcati can't get the ubuntu touch templates to show up in the sdk. I have tried a few "solutions" from the internet but nothing has worked. anybody have this issue?21:58
mzanettirpadovani: yeah, I guess you can steal a bit from the camera app. However, please don't just pull all the stuff over, but only the things we really need.21:58
rpadovanimzanetti, yes, of course! In design doc there are 5 buttons, are they the same of camera app?21:59
mzanettirpadovani: I'd say so, yes22:00
mzanettirpadovani: but not sure we want to implement all the features22:00
mzanettirpadovani: for example, video is not supported (I think)22:01
rpadovanimzanetti, ok, mhh, I think the best is to implement flash,  zoom (and shoot, of course). We can add others in the future22:02
mzanettirpadovani: +122:02
rpadovanimzanetti, great, thanks, I try to implement them before wednsday22:03
mzanettirpadovani: cool22:04
mzanettirpadovani: https://code.launchpad.net/~mzanetti/reminders-app/fix-attaching-images/+merge/20681622:06
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
mzanettirpadovani: here's another one: https://code.launchpad.net/~mzanetti/reminders-app/reminders-sorting/+merge/20681922:51
rpadovanimzanetti, just finished playing Dota, I'm going to review them :-)22:52
RyuGunsWhere do I store application files?22:53
RyuGunsI need to store a text file for my application on all user-accounts as well as icons and such used by my application, where do I put that?22:55
RyuGunsThis is for desktop ubuntu by the way.22:55
mzanettiRyuGuns: text files per user: /home/user/.config/ or /home/user/.cache/, depending if settings or cached data22:56
mzanettiRyuGuns: icons and other application data: /usr/share/applicationname/22:56
RyuGunsmzanetti: Thank you, but I need it to be the same text file accessible by all users.22:57
RyuGunsIs /usr/share/ appropriate for that?22:57
mzanettithen its appdata and goes to /usr/share/applicationname/22:57
RyuGunsAlright, thank you very much!22:57
rpadovanimzanetti, need fixing both, I'm sorry23:18
mzanettirpadovani: :D don't be23:18
rpadovanimzanetti, I'm not sure what is wrong with attach file23:18
mzanettirpadovani: "First of all, the gallery is open, and I have to return to the app using a swype."23:19
mzanettiwhat do you mean with that?23:19
mzanettidi you minimize the gallery yourself?23:19
rpadovanimzanetti, yap23:21
rpadovanimzanetti, swipe right to change from gallery to reminder23:21
mzanettirpadovani: hmm... when the gallery is open, you should select a picture and then press the confirm button23:21
rpadovanimzanetti, yes, after I press the confirm button it disappear, and nothing happens23:22
rpadovanithe confirm button disappears23:22
mzanettirpadovani: only the confirm button disappears?23:22
mzanettithe whole gallery should disappear23:22
rpadovanimzanetti, yap, only confirm button disappears23:23
rpadovanimzanetti, it becomes standard gallery23:24
mzanettirpadovani: strange. that sounds like a bug in the gallery picker23:24
rpadovanimzanetti, I can try to update to today image23:24
mzanettirpadovani: when did you last flash?23:24
rpadovanimzanetti, total reset before r 170, now I'm on 18123:25
rpadovanimzanetti, I can do new reflash23:25
mzanettirpadovani: please try. I don't think that's something in reminders, and it works here23:25
rpadovanimzanetti, ubuntu-device-flash is going on devel channel, please be patience, I have not a good connection :)23:29
mzanettiok :)23:29
mzanettiWellark: https://code.launchpad.net/~mzanetti/reminders-app/reminders-sorting/+merge/206819/comments/48496323:33
mzanettirpadovani: https://code.launchpad.net/~mzanetti/reminders-app/reminders-sorting/+merge/206819/comments/48496323:33
rpadovanimzanetti, approved and top approved23:36
mzanettirpadovani: thanks :)23:36
rpadovanimzanetti, mhh, I'm travellink at ~200KB/s, I'll reflash and retest your branch tomorrow, I need to sleep23:45
rpadovanimzanetti, good night :-)23:45
mzanettirpadovani: no problem. good night23:46

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