/srv/irclogs.ubuntu.com/2013/08/23/#ubuntu-app-devel.txt

tryagainIs there a simple tutorial for using the popover element?00:22
GuidoPallemansiBelieve: ?00:41
GuidoPallemansyou needed that oauth right?00:41
GuidoPallemansi think i got it, just need to implement00:41
GuidoPallemansshouldnt be hard00:41
tryagainAll I need is a quick and dirty popup00:49
tryagainNothing fancy.  Just text00:49
GuidoPallemansa popup or a dialog?00:51
GuidoPallemansnormally there's a good example of both in the showcase00:51
GuidoPallemanstryagain: ?00:51
GuidoPallemanstryagain: http://pastebin.ubuntu.com/6015991/00:53
=== _salem is now known as salem_
tryagainGuidoPallemans: the only examples I can find are just code snippets, with no indication of how to run them01:07
GuidoPallemansdo you have the ubuntu showcase?01:07
GuidoPallemansyou can run it as an app if you have the sdk01:08
tryagainI don't think so01:08
tryagainOh the sdk?01:08
GuidoPallemansjust press start + showcase01:08
tryagainHow do I run it as an app then?01:08
GuidoPallemansits also in the qycreator menu01:08
GuidoPallemansits also in the qtcreator menu01:08
GuidoPallemansctrl shift s01:08
GuidoPallemansor01:08
tryagainstart + showcase doesn't bring anything up01:08
GuidoPallemanstools01:08
GuidoPallemanstry gallery in the dash01:08
tryagainOh snap01:09
GuidoPallemansin qtcreator: ctrl shift s, or tools > ubuntu touch > ubuntu touch showcase gallery01:09
GuidoPallemansif you open it in qtcreater it opens the code too, but thats the same code as i posted01:09
GuidoPallemanstryagain: you didnt know about the gallery yet?01:10
tryagain_Oops, accidentally messed up the chat window somehow01:11
tryagain_Thank you GuidoPallemans01:11
GuidoPallemansnp01:11
tryagain_It really seems like there should be something similar to the javascript "alert"01:12
GuidoPallemansthere is01:14
GuidoPallemansdialog01:14
GuidoPallemansyou will be blown away01:14
GuidoPallemanstryagain_: i heard you can also put other content in there than just buttons and text, but I havent tried it yet01:15
tryagain_I'll take a look, thank you so much!01:21
tryagain_Actually, GuidoPallemans, the design guidelines for the Dialog widget say that it should be used when the user needs to make a decision01:28
tryagain_I'm just trying to present information01:28
tryagain_Whoops01:28
AskUbuntuHow do I use OAuth from an Ubuntu Touch app? | http://askubuntu.com/q/33606902:07
tryagain_What's the command in the SDK to upload my code up to launchpad?02:14
tryagain_Nevermind, found it.  It's "push", but I had to specify the remote url as "lp:<projectname>"02:16
AskUbuntuHow to use Arguments in QML without getting qmlscene arguments | http://askubuntu.com/q/33608303:47
=== salem_ is now known as _salem
dholbachgood morning07:00
dinkometalacmorning07:48
dinkometalaccan someone check why ci for sudoku isn't working07:48
dinkometalacis jenkins still down?07:48
crs_jamalhi08:40
=== gusch is now known as gusch|brb
mefrioapp news: Memories 0.1 released http://mefrio.wordpress.com/2013/08/23/memories-updates-first-pre-release-version/ let's test and report issues/suggestions :)09:10
randomcppmefrio ping ping ping09:22
mefriorandomcpp, pong pong pong09:22
=== gusch|brb is now known as gusch
=== chriadam is now known as chriadam|away
clepto1995iBelieve, hey, how are you?10:23
=== gusch is now known as gusch|lunch
kalikianahrm that's a curious bug. would anyone here have an idea what this is about? https://bugs.launchpad.net/u1db-qt/+bug/121583110:41
ubot2`Launchpad bug 1215831 in U1DB Qt/ QML "No documentation that only one element on first level is supported" [Undecided,Incomplete]10:41
kalikianathere's definitely no assumption about what documents look like by design - I'm wondering why one would think so10:42
=== rpadovani is now known as WebbyIT
Josh015Can anyone here make some recommendations on QML app code layout?11:05
Josh015Specifically, I have an app that has three tabs that each have the same toolbar and display options, but show different data. What is the best way to structure the code to share said functionality?11:05
nik90_Josh015: so by what you say, the UI is same with the only difference being the data that it displays?11:13
nik90_Josh015: in that case I would recommend putting that whole UI stuff inside its own component in a new file. When you create a new tab, in that you can call the common component and ask them to display the unique data respective to that tab.11:14
nik90_this way you define the UI code only once11:14
=== MacSlow is now known as MacSlow|lunch
xqwzts_kalikiana: no idea what his "strange behavior" is, I have a lot more than 1 element at the first level [20-ish i think]11:46
nik90_randomcpp: just saw your link towards the new c++ plugin. Nice work! I havent tried running them yet, but I rather wait for it to merge into master first before doing so11:50
nik90_randomcpp: I guess now you can start on the online API to store images and other stuff in its directory11:51
=== gusch|lunch is now known as gusch
=== MacSlow|lunch is now known as MacSlow
=== _salem is now known as salem_
labsinIf I install a click package in 13.10 on the desktop, should it show up in the dash? Cause it doesn't for me.12:44
dholbachlabsin, in unity7 there's no click apps scope13:14
labsintnkx, then i'll add debian packaging.13:15
labsincan I exclude specific files and folders when building click packages from the command?13:15
GuidoPallemansiBelieve: ping13:21
iBelieveGuidoPallemans, pong13:21
GuidoPallemanshey13:21
GuidoPallemansi think i have got oath to work in an app13:21
GuidoPallemansill put it in a pastebin, and then ill tell the issues i still have13:22
iBelieveGuidoPallemans, great!13:22
GuidoPallemanshttp://pastebin.ubuntu.com/6017705/13:22
GuidoPallemansso that is for a GitHub app I'm making13:22
GuidoPallemansthere's still a lot of logging obviously13:23
iBelieveGuidoPallemans, cool! I think I found another way also, using a JavaScript library.13:23
GuidoPallemansbut the main thing is that this page should be pushed to the pagestack, then you get to login on the server, which sends you back to the callback url13:23
GuidoPallemansaha where?13:24
iBelieveGuidoPallemans, I asked on AskUbuntu and nik90 posted it on Google+ - https://plus.google.com/u/0/113051860352311525753/posts/bQ3pvA4wMgC?cfem=113:24
GuidoPallemansbut he says it can be done with only xmlhttprequest?13:25
GuidoPallemansthat's a bit weird13:25
GuidoPallemansthe user should see what resources this application needs from the specific server, and then push a button13:26
GuidoPallemansthen, the server sends the user to the callback url, with in a get statement the token13:26
GuidoPallemansI don't think there's a way of doing that in pure js, you need some html, as the user needs to see these resources13:27
GuidoPallemansiBelieve the issue I still have is that I can't log out for some reason13:29
iBelieveGuidoPallemans, yeah, that is interesting. For now I guess I'll try your method.13:29
GuidoPallemans i signed in once, and now I can't test the flow anymore :D13:29
iBelieveGuidoPallemans, what do you mean log out?13:29
GuidoPallemansor log in for that matter13:30
GuidoPallemansi push the page in my pagestack, and then the server directly redirects me13:30
GuidoPallemansbut I keep getting new Oauth tokens, so I guess it's ok13:30
GuidoPallemansbtw, notify me if you find any other problems with my method, so I can correct them too :D13:31
iBelieveGuidoPallemans, oh, I will13:31
GuidoPallemansthanks13:31
WizardHi13:31
GuidoPallemanshi13:32
WizardWhen I'm developing Qt app with Ubuntu as target OS, are there any hints available how to integrate my app with Ubuntu tightly?13:33
GuidoPallemansa qml qt app?13:40
GuidoPallemansor just qt?13:40
GuidoPallemansiBelieve: that algorithm isn't complete yet13:48
GuidoPallemansi forgot one step13:48
GuidoPallemans(ping back pls)13:48
GuidoPallemansiBelieve: ping13:54
iBelieveGuidoPallemans, pong13:54
GuidoPallemansah13:54
GuidoPallemansyou read the above?13:54
iBelieveGuidoPallemans, now I did :)13:54
GuidoPallemansah13:54
GuidoPallemansso the webpage.token isnt really the oauth token13:55
GuidoPallemansyou still need to do one xmlhttprequest after that13:55
GuidoPallemansbut i'm stuck there13:55
iBelieveGuidoPallemans, well, I'm still trying to figure out how OAuth works in the first place :)13:56
GuidoPallemansoh13:56
GuidoPallemansi watched a really nice video on that yesterday13:56
GuidoPallemansdidnt know how it worked yesterday either13:57
GuidoPallemanshttps://www.youtube.com/watch?v=YLHyeSuBspI13:57
GuidoPallemansits an hour long, but you should only watch until (and including) the client-side part13:57
GuidoPallemansabout 17 mins13:58
iBelieveGuidoPallemans, thanks for the link13:58
iBelieveGuidoPallemans, so you said it isn't reallly the oauth token. Is it the code to get your oauth token and then you need to do a post?13:58
iBelieveGuidoPallemans, step 2 on the GitHub site?13:58
GuidoPallemansyou need to post that code13:59
GuidoPallemansindeed13:59
GuidoPallemansnow im trying to make my callback uri the code page13:59
GuidoPallemansi think its possible to do it all in one step13:59
GuidoPallemansif i replace that zen page by ttps://github.com/login/oauth/access_token14:00
iBelieveGuidoPallemans, Try this to do the post: http://pastebin.ubuntu.com/6017833/14:00
GuidoPallemanshmm14:00
GuidoPallemansbut what should i put in the callback parameter?14:01
iBelieveGuidoPallemans, a function to call when the POST is completed14:02
GuidoPallemansthe post should be the last thing to do14:02
iBelieveGuidoPallemans, for example post("<whatever>", function(response) {print(response)})14:02
GuidoPallemansah yes now i see14:03
GuidoPallemansthat function makes the post14:03
GuidoPallemansim gonna keep that open14:03
GuidoPallemansbut im gonna try my all-in-one step first14:03
abhidoeslinuxhi how can i use java in QT?14:16
boikoom26er: would you mind enabling autopilot on CI for lp:messaging-app?14:16
om26erboiko, sure14:17
om26erboiko, what about daily release? is the packaging already reviewed ?14:17
boikoom26er: nope, not yet, I have to review that14:17
boikoom26er: and again the autopilot failed for the calculator app, https://code.launchpad.net/~boiko/ubuntu-calculator-app/fix_autopilot_tests/+merge/18159614:20
GuidoPallemansiBelieve: ?14:20
GuidoPallemansi get sent to https://api.github.com/zen?error=redirect_uri_mismatch14:21
GuidoPallemanswhen i try to connect to https://github.com/login/oauth/authorize?client_id=5b8705dc0775845bd721&scope=user,repo,notifications,gist&redirect_uri=%22https://github.com/login/oauth/access_token?client_secret=1b5826605af32b20414a1f6909090b239ac3c3fb&redirect_uri=https://api.github.com/zen%2214:21
GuidoPallemansprobably because I'm not correctly passing the first redirect url14:21
GuidoPallemansuri*14:21
GuidoPallemans%22https://github.com/login/oauth/access_token?client_secret=1b5826605af32b20414a1f6909090b239ac3c3fb&redirect_uri=https://api.github.com/zen%2214:21
om26erboiko, right, a few hours ago when the mediumtests where failing I tried to run them on my laptop and they ran fine, so the problem is I believe in the jenkins setup14:22
GuidoPallemansah, need urlencode14:22
boikoom26er: can you help with that or is this something only fginther can solve?14:23
om26erboiko, yeah, this is fginther's thing. I already pinged him14:24
boikoom26er: thanks!14:24
iBelieveGuidoPallemans, yes?14:28
GuidoPallemansah no, i'm still having the last problem :D14:28
popeynik90_: you around for calculator meeting? We're over-running a bit with RSS reader14:31
boikodpm: joining the calculator design meeting?14:34
popeyboiko: I'll be there in a bit, still on rss call14:37
dpmboiko, I wasn't planning to today, but if popey can't make it, I can join14:37
popeybe there in ~5m14:38
boikopopey: thanks14:39
popeynik90_: sorry, brain fart14:40
GuidoPallemansiBelieve: I found a way to test the logging-in, just revoke the app, so that the user has to accept the authorization again14:53
GuidoPallemansI'm now going to try your function, as I keep getting reffered to https://api.github.com/zen?error=redirect_uri_mismatch14:54
iBelieveGuidoPallemans, cool, glad you're figuring out how to do it. For now I'm skipping OAuth, and just using the form that opens and the user clicks accept and then has to copy a token back to my app. Not pretty, but a working temporary solution14:55
GuidoPallemansyeah, I should do that too :D, but beware the rate limits14:56
iBelieveGuidoPallemans, don't know if Trello has rate limits. They don't seem to have docs about restrictions/legal stuff at all15:00
=== WebbyIT is now known as op
=== op is now known as WebbyIT
GuidoPallemansiBelieve: I FUCKING HAVE IT!15:28
iBelieveGuidoPallemans, glad to here that you got it to work15:32
iBelieve** hear15:32
GuidoPallemansill paste it15:33
GuidoPallemanshttp://pastebin.ubuntu.com/6018190/15:33
iBelieveGuidoPallemans, thanks15:34
GuidoPallemanscan you do something with that?15:34
iBelieveGuidoPallemans, don't know. The Trello docs mention three different URLs, a request, access, and authorize URL15:36
GuidoPallemansthe zen url can be anything15:36
=== dholbach__ is now known as dholbach
GuidoPallemansbut youll probably need the seperate authorize and access_token pages15:37
skyitachihello everyone, I want to know something ubuntu sdk qml extensions library15:50
skyitachicreate a sample project with ubuntu sdk qml extensions library, when run it ,it will a dialog popsup, how to use it15:52
AskUbuntuI want to use Ubuntu for developing my application - pl help | http://askubuntu.com/q/33630615:57
xqwztsskyitachi: someone explained it pretty well in this blog post: http://rschroll.github.io/beru/2013/08/14/reading-files-with-a-c%2B%2B-plugin-in-qml.html15:59
om26erany ubuntu-calculator-app developer around ?16:04
=== jounih_ is now known as jounih
nik90_Chocanto: ping18:09
Chocantonik90: pong18:11
nik90_Chocanto: I almost finished my read c++ plugin18:12
nik90_Chocanto: how do I test it?18:12
nik90_Chocanto: I did qmake and make and now have .so file18:12
nik90_I copied that file into the clock-app folder18:13
nik90_but when I run it, it says unable to find plugin18:13
Chocantonik90: You can do a sudo make install :)18:13
nik90_Chocanto: would that copy the .so file to the correct place?18:13
nik90_or any other files?18:13
Chocantoyes, the .so18:13
Chocantoand the qmldir18:13
nik90_do you know where it will copy it to?18:14
Chocantoin something like org/docviewer/file18:14
nik90_ah18:14
nik90_Chocanto: btw i replied to your MP18:14
nik90_and also proposed my own18:14
nik90_will test and see if it works18:14
Chocantoyes I saw :) I will test it ! Thank you18:14
nik90_Chocanto: its still very basic, but it is a start :)18:15
Chocantonik90_: Every project need a simple start ! :)18:16
nik90_:)18:16
Chocantonik90_: I read something about click package end reading files on g+18:17
Chocantonik90_: DO you think the new permissions system will be a problem ?18:17
nik90_Chocanto: It depends. As long as it is in the same folder as the app, it should be fine18:18
nik90_Chocanto: outside files however will be restricted18:18
nik90_Chocanto: for the core apps it should not be an issue18:18
nik90_Chocanto: if it is, then we can get them resolved18:18
nik90_Chocanto: so I did sudo make install, and it copies them into the right directory.18:19
nik90_Chocanto: on running I get "module "org.docviewer.file" plugin "DocviewerFile" not found"18:19
nik90_Chocanto: i imported it using import org.docviewer.file 1.018:19
Chocantonik90_: Hum... you moved the .so before doing make install ?18:20
nik90_Chocanto: no, it moved it automatically18:20
nik90_Chocanto: in that org/docviewer/file folder, I see the .so and qmldir files18:21
Chocantonik90_: /usr/lib/i386-linux-gnu/qt5/qml/org/docviewer/file18:22
Chocanto?18:22
nik90_Chocanto: yes18:22
Chocantonik90_: Wait, I'm checking how I used it18:22
Chocantonik90_: How your .so is named ?18:24
Chocantonik90_: And in which branch are you working ?18:25
nik90_Chocanto: it is called libfilePlugin.so18:25
nik90_Chocanto: the main branch lp:file-qml-plugin18:25
Chocantonik90_: Only the one I proposed for merging work18:25
nik90_are there any other branches18:25
nik90_oh18:25
Chocantonik90_: Yes, before modification it wasn't working18:26
nik90_Chocanto: will copy your modification to my branch18:27
Chocantonik90_: Do a simple merge with your branch, it should work fine18:28
Chocantonik90_: And I was thinking about the name problem18:29
nik90_Chocanto: why did you name it filePlugin in the qmldir?18:30
Chocantonik90_: Maybe we can do something like a unique File object and in this object other objects like Metadata, Reader and Writer18:30
nik90_I thought your class was file18:30
nik90_or is that a convention18:30
Chocantonik90_: The qmldir is looking for the .so name, not the class :)18:30
Chocantonik90_: That's why you had the error that Qt could not find your module18:31
nik90_ah18:31
nik90_Chocanto: so it doesnt matter how many classes are there (metadata, filereader)18:31
nik90_it still is called filePlugin18:31
Chocantonik90_: You have one plugin, but many objects created by this plugin18:32
nik90_Chocanto: ah yes. Nice I am beginning to get a hang of this :)18:32
Chocantonik90_: I think you can created multiple modules in one plugin but I don't tried this18:32
Chocanto-d18:32
Chocantocreate plugin with Qt is not easy ^^18:33
nik90_Chocanto: It works! And even better my read class also works :)18:34
nik90_Chocanto: thnx man!18:34
Chocantonik90_: Good ! :D18:34
Chocantonik90_: I did the edit you ask for18:34
* nik90_ is checking now18:34
Chocantonik90_: I didn't send it, wait ^^18:34
nik90_let me know when you push it18:35
Chocantonik90_: But I don't changed the name18:35
Chocantonik90_: I get it temporary, I think it will be better to do like the Ubuntu SDK so18:35
Chocanto*do18:35
nik90_How does the ubuntu sdk do it?18:35
Chocantonik90_: A big object (File) and sub-object inside (Metadata, Reader, Writer)18:36
ChocantoIn the file object you have the metadata object, is's more logic18:36
nik90_Chocanto: oh okay18:36
nik90_Chocanto: but right now we have 2 objects right?18:36
Chocantonik90_: I don't really know how to implement it but.. anyway18:36
Chocantonik90_: Yes :)18:37
Chocantonik90_: We have File (I can rename in FileMetadata) and FileReader18:37
nik90_Chocanto: In that case, let's merge our stuff after all the corrections and whatever, and then figure out how to do that :)18:37
=== om26er is now known as om26er|afk
Chocantonik90_: Yes, I pushed :)18:40
Chocantonik90_: I have to go, I will merge your stuff later if you want18:40
nik90_me too..going for dinner18:40
nik90_talk 2 u later18:40
nik90_bye18:40
Chocantonik90_: bye18:41
=== om26er|afk is now known as om26er
wellsbIs there no way for a drop shadow on a rectangle to inherit the corner radius of the source rectangle?21:34
wellsbnevermind.  I suspect it is, but my container is cutting it off21:39
=== salem_ is now known as _salem

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