/srv/irclogs.ubuntu.com/2015/07/17/#ubuntu-app-devel.txt

=== chriadam|away is now known as chriadam
=== frecel_ is now known as frecel
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== salem_ is now known as _salem
=== chihchun_afk is now known as chihchun
akiva-thinkpadello all05:59
dubstar_04good morning!!06:08
DanChapmanMorning o/06:08
DanChapmandubstar_04: how's your CAD like app coming along?06:10
dubstar_04Really well!!06:14
DanChapmanawesome! looking forward to giving it another spin at some point :-D06:15
dubstar_04Old screencast here: https://www.youtube.com/watch?v=kSDSSAkDtcE06:15
dubstar_04Been loads of progress since.06:15
DanChapmanthat's awesome! I love the position snapping. would be a cool app for the ubucontest06:19
dubstar_04I've not listened to the podcast yet so I am still unaware what UbuContest is...06:20
akiva-thinkpaddubstar_04: wow that looks great!06:24
akiva-thinkpadI've listened to it :) I'm thinking whether I can add my sdk autopilot plugin as a technical entry.06:25
dubstar_04akiva-thinkpad: thanks!! The latest version is much better with integrated file browsing and settings.06:26
dubstar_04Just listening to the podcast. I'm excited to hear what ubuContest is....06:27
akiva-thinkpadthe wobsite is down atm unfortunately for me06:27
* svij knows what the UbuContest is :P06:30
SturmFlutakiva-thinkpad: It's not down, it's just not "unlocked" yet. We are facing some last-minute troubles with the Terms of Entry :/ Nothing serious, but it needs the last "okay" from some people.06:35
SturmFlutUnlucky timing.06:35
akiva-thinkpadSturmFlut: blast!06:35
SturmFlutTime for yet another website picture ;)06:35
akiva-thinkpadSturmFlut: did you have to start the app when the contest starts to be able to qualify?06:36
akiva-thinkpadbecause Ive been working on the plugin for awhile~06:36
SturmFlutakiva-thinkpad: No, you can register an existing app, but we will look at how much progress you make during the contest so people don't just register all their old apps06:36
akiva-thinkpadokay good approach06:36
SturmFlutWe have it all thought out!06:37
akiva-thinkpadSturmFlut: *confetti*06:37
=== chihchun is now known as chihchun_afk
justCarakasakiva-thinkpad:  o/ didn't see it :)06:54
akiva-thinkpadjustCarakas: ah hey06:54
akiva-thinkpadit might be in the repos by now06:54
akiva-thinkpadyep it is. :)06:55
dubstar_04SturmFlut: what is the 'Convergence Hero' part of the UbuContest?07:38
dubstar_04davidcalle: I have been trying to work out how to access an app storage directory. The SDK docs: https://developer.ubuntu.com/en/apps/qml/cookbook/ point to this: http://askubuntu.com/questions/4420/where-do-applications-typically-store-data07:52
dubstar_04and http://askubuntu.com/questions/42438/what-is-the-preferred-way-to-store-application-settings seem miss placed.07:53
dubstar_04I want to use a FolderListModel to display a list of file in a GridView but I can't seem to access the apps storage in: ".local/share/cadmium.marthamengineering/"07:55
dubstar_04I just seem to get the root of the app from /opt/07:56
davidcalledubstar_04, hello, what do you mean by miss placed?07:58
davidcalledubstar_04, that it doesn't really apply to the click world?07:59
dubstar_04davidcalle: They don't seem relevant to QML or the SDK.07:59
davidcalleRight07:59
dubstar_04If I wasn't a coding genius *cough* I could of easily got miss led... :)08:00
davidcalledubstar_04, indeed the cookbook seem quite outdated... Hmm, regarding your specific question, let me find an app doing it, this way you'll have a full example08:01
dubstar_04davidcalle: that would be fantastic!!08:01
dubstar_04FWIW I am trying to do this from QML and Javascript.08:03
dubstar_04Here is what i have so far: http://paste.ubuntu.com/11891765/08:18
davidcalledubstar_04, here is a quick and dirty example : http://paste.ubuntu.com/11891776/08:20
davidcalledubstar_04, I've just created a file in the requested folder and it works fine08:21
dubstar_04so its just the resolved url bit i was missing by the look of it!!08:22
dubstar_04https://lh3.googleusercontent.com/XB6R_6cVceoRb8eaBUMjsD-V8JFqpzcVYnYm2CG_ItNs=w432-h768-no08:22
dubstar_04thats a screenshot of what i was getting.08:22
dubstar_04Davidcalle: thankyou for your help. I really appreciate it.08:24
davidcalledubstar_04, note that I'm specifying an absolute path for the folder (/home/phablet etc.). I've looked around and the edIt app is avoiding this with a bit of cpp (if you want to dig into this : https://code.launchpad.net/~pawstr/edit/trunk )08:25
davidcalledubstar_04, there must be a way to do an equivalent to $XDG folders in QML but I'm not aware of it. zbenjamin, do you know one?08:26
davidcalledubstar_04, np!08:26
zbenjaminthere should be08:26
dubstar_04I was hoping to keep to just qml and javascript, i'm pretty impressed with the performance so far, but i haven't got to the point where i can start opening large files!!08:27
zbenjamindavidcalle: i know there is QStandardPaths in the C++ API08:28
zbenjaminkalikiana: t1mp: ^^ any idea?08:28
zbenjamindavidcalle: but since QML has no way to read/write/open files it does not make much sense i'd say08:29
DanChapmanAFAIK there is no qml api for QStandardPaths.08:29
DanChapmanor XDG08:29
dubstar_04Is there a QML way of opening files?08:29
zbenjaminno08:29
zbenjaminnot that i know of08:30
davidcallezbenjamin, thanks for looking :)08:30
zbenjamindavidcalle: np08:30
dubstar_04so i need some c++ to open the file and pass the contents to QML/Javascript?08:31
zbenjamindavidcalle: dubstar_04: QML is mostly a UI language and the Qt guys did write it with that in their mind.08:31
DanChapmandubstar_04: take a look at https://github.com/bobweaver/QtPlugins/tree/master/qtdeclarative5-mango-files-0.0.1 for some inspiration. Or you could even just include that in your project08:31
davidcalledubstar_04, also, steal things from https://code.launchpad.net/~pawstr/edit/trunk08:32
dubstar_04zbenjamin: seems odd that there is database abstraction but you can't open a file.08:32
zbenjamindubstar_04: database abstraction?08:32
zbenjamindubstar_04: well think about it, javascript has no way of processing binary data. How would you read a file? Also in a browser you can not open a file with JS08:33
dubstar_04zbenjamin: you can use localstorage to read/write a database?08:33
zbenjamindubstar_04: ok that comes with javascript, same in the browser08:34
zbenjamindubstar_04: that basically the "replacement" for files in javascript08:34
zbenjamindubstar_04: you could of course write a File extension but that requires C++ as well ;)08:34
dubstar_04could a QMLPlugin be included in the SDK for file access?08:37
t1mpzbenjamin, dubstar_04, davidcalle: I don't know. Maybe there is something useful in the filemanager code? https://developer.ubuntu.com/en/community/core-apps/file-manager/08:38
dubstar_04Thank you for all the information. Looks like this part of my app might require some more thought.08:43
dubstar_04Anyone know if there is a UITK hangout today?09:13
akiva-thinkpaddubstar_04: whats that?09:19
akiva-thinkpadui toolkit?09:19
=== chriadam is now known as chriadam|away
dubstar_04yes, apparently they normally have a hangout on friday afternoon. I am keen to talk about desktop features and my options for dockable toolbars.09:26
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
snizzoakiva-thinkpad: many months ago (in 2014) you asked me to post on reddit about my app, today I did it ;)09:50
akiva-thinkpadsnizzo: ha!09:51
* akiva-thinkpad checks09:51
snizzoit's just an announce, I'm waiting for an hardware device to test (mx4)09:52
=== JMulholland_ is now known as JMulholland
SturmFlutUbuContest is going live! Give us ten minutes to update all the websites :)10:56
SturmFluthttp://ubucon.de/2015/contest10:58
justCarakas\o\11:42
justCarakas\o/11:42
justCarakas /o/11:43
rickspencer3does anyone know where I can find the reference documentation for popoverutils?12:31
rickspencer3I'm having a problem with .open() but  can't find the reference for the function :/12:31
SturmFlutBy the way, Canonical employees cannot submit apps or scopes for UbuContest, but you can nominate community members for prizes...12:51
davmor2rickspencer3: if you highlight and hit F1 what does that show?12:51
rickspencer3hmmm12:51
rickspencer3hadn't thought of that12:51
* rickspencer3 tries12:51
rickspencer3lol12:52
rickspencer3davmor2, "No documentation available."12:52
rickspencer3oh well ;)12:52
rickspencer3anyway, I picked up what I needed to do from a sample12:52
rickspencer3however, reference would be nice :)12:53
davmor2rickspencer3: https://developer.ubuntu.com/api/devel/ubuntu-12.04/qml/ui-toolkit/qml-ubuntu-components-popups0-popover.html found this12:53
davmor2rickspencer3: and then there is https://developer.ubuntu.com/api/apps/qml/sdk-15.04/Ubuntu.Components.Popups.Popover/ not sure if that is what you are after or not12:55
rickspencer3davmore12:55
rickspencer3davmor2, just looking for the reference for the specific function open()12:56
=== tedg is now known as ted
=== _salem is now known as salem_
=== ted is now known as tedg
kalikianarickspencer3: davmor2 it won't be in there, currently pure javascript isn't included in the docs13:17
rickspencer3ah13:17
rickspencer3too bad13:17
kalikianalemme copy the docs for you, though13:17
rickspencer3kalikiana, nah, it's not worth it, I already solved my problem13:19
kalikianaah you did13:19
kalikianaI would've grabbed the dcos from the source otherwise. there is actually an extensive paragraph13:19
kalikianawhich is a bit sad considering it's not been visible to anyone ever :-D13:19
davmor2kalikiana: is there a plan to add those docs to developer.ubuntu.com might be worth a bug for it if not as it seems to be the most asked question I've come across :)13:20
kalikianadavmor2: yes absolutely, I was looking into it actually https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/jsDocs/+merge/263853 but for me locally qdoc is currently completely broken so I can only trial and error by pushing commits and wait for the build results.. which is a slow way of doing things13:21
davmor2kalikiana: ouch13:22
kalikianaqdoc kinda goes 100% cpu and then stays there til I kill it13:23
kalikianano idea why..13:23
davmor2kalikiana: it hates you, hate it back it works for me ;)13:28
kalikianalol13:30
t1mphttps://blog.qt.io/blog/2015/07/16/qt-world-summit-2015-whats-better-than-a-speaker-announcement/13:36
t1mphttp://www.qtworldsummit.com/schedule/ looks more interesting than the QtCS13:38
kalikianadavmor2: seems somehow you were right, now it does work...13:38
t1mpwow, a lot of automotive sessions13:38
davmor2kalikiana: Hatred always works...just look at starwa......wait bad example...Punisher ;)13:39
kalikianahaha13:39
zsombit1mp: kalikiana: do we go there?13:43
t1mpzsombi: that seems like a good idea :)13:43
kalikianadavmor2: t1mp zsombi managed to fix the docs http://geraldfield.org/html/qml-ubuntu-components-popups-popuputils.html13:48
t1mpkalikiana: cool!13:49
t1mpkalikiana: the text could use an update though. For example say that it returns the popup object13:49
kalikianat1mp: yeah. I'm also thinking I would expect an example there13:50
t1mpI guess the examples are in Popover, but it makes sense to have them here too13:50
kalikianafun fact: popupUtils never was in qmldir13:51
kalikianalack of error checking plus magic fallback = awesome13:51
kalikianaoh wait, there are more qmldir fioles13:52
jhodappAnyone know if it's possible to read key presses from the connected terminal shell in a QML app? If that's not possible, how about how to bring up the mobile keyboard and read from that without needing a text area in the app?13:53
kalikianalove our directory structure sometimes :-]13:53
kalikianajhodapp: what do you mean by connected terminal shell?13:55
jhodappkalikiana, a development machine's keyboard for when the device is connected to the dev machine via USB13:55
t1mpkalikiana: I think for 2.0 we can flatten it13:57
t1mpkalikiana: it made sense when we had lots of types of ListItems13:57
t1mpalso we had more types of popups13:57
kalikianajhodapp: the only way there would be a connection here would be if you run an app from the command line in ssh; in which case typing into the shell might go towards its standard input. but there's no QML API for that13:58
jhodappkalikiana, right that's what I was testing13:58
jhodappkalikiana, how about bringing up the mobile keyboard on the device and reading any keypress from it?13:59
kalikianajhodapp: hmm if accessibility is enabled you would have dbus api, you could have a wrapper that returns the value from a script running on the phone14:00
kalikianamaliit needs to be restarted to enable it, we do that in tests14:01
kalikianaand then maybe using autopilot python api would be asiest14:02
jhodappkalikiana, hmm, sounds like more effort than I want...this is just for a very simple test app14:02
kalikianayou could probably use osk without a text field in qml. but then there's no obvious way of feeding the data back to the development machine, unless you implementing something like a restful service or use a pastebin14:04
kalikianat1mp: http://geraldfield.org/html/qml-ubuntu-components-popups-popuputils.html14:27
t1mpkalikiana: the description is slightly confusing15:13
t1mpkalikiana: it is true that open() returns a popup object15:13
t1mpkalikiana: but the first sentence of the description starts with "The function opens a popup object which can be either a Component or URL of a QML document."15:13
t1mpthat is not true. It creates and opens a popup object from the Component or URL. The Component/URL itself not the popup object that is returned15:14
t1mpkalikiana: maybe you can put it in an MR? Comments there are easier to find than something in an IRC backbuffer15:15
kalikianat1mp: there is already an MR. I was just showing you the html here since J can't offer that15:19
kalikianat1mp: I updated the wording in the MR https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/jsDocs/+merge/26385315:21
tim`hrmmmm  the mx4 is an A17 but gcc and g++ isntalled by apt-get do not support -mtune=cortex-a1715:24
tim`:-{15:24
t1mpkalikiana: the MR is marked as superseded15:41
kalikianat1mp: one click more and you arrive here ;-) https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/jsDocs/+merge/26405015:44
kalikianaunfortunately merges only get arbitrary numbers so I can't tell the difference if I copy from autocompletion15:44
ogra_karni, hmm, any known issues with telegram ? i only get a white screen on both of my phones (both on latest rc-proposed image from today)17:54
kenvandineogra_, yeah, something about the thumbnailer c++ api getting dropped18:02
ogra_in vivid ?18:02
ogra_bah18:02
kenvandinethey're trying to figure out what to do18:02
kenvandineyeah18:02
kenvandinethey didn't realize it was used by telegram18:02
ogra_ah18:02
kenvandinei didn't follow it closely, but i think karni said they hope to have a plan by monday18:03
kenvandinewhich sucks, but i guess it isn't trivial18:03
kenvandinekarni, correct me if i'm wrong :)18:04
ogra_and they couldnt just seed it back in temporaray ?18:04
ogra_-ra18:04
kenvandinei doubt it, i don't think it's just a package getting dropped18:04
kenvandineit's a new thumbnailer version that dropped the API18:04
karniogra: old thumbnailer has been removed18:04
karnithat broke telegram, which was dynamically linked18:04
kenvandineso we'd need the whole old thumbnailer18:04
karnitelegram is broken inrc proposed18:05
kenvandinehey karni18:05
ogra_http://people.canonical.com/~ogra/touch-image-stats/vivid/20150717.changes18:05
karni(sry I'm on my phone)18:05
karnihi Ken18:05
ogra_looks like it is only that package18:05
karniso yes, know issue. we should know more on Monday. sorry about that. I didnt know the library binary would move/change API.18:06
kenvandine  * Switch to unversioned Conflicts/Replaces on libthumbnailer0 to force18:06
kenvandine    removal of the obsolete package on upgrade from the previous version.18:06
kenvandine  * Remove the libthumbnailer0 and libthumbnailer-dev binary packages.18:07
ogra_ouch !18:07
kenvandineright18:07
karniyes18:07
ogra_thats really evil18:07
karniright..18:07
kenvandinei guess it wasn't part of the platform, so in theory safe to use18:07
kenvandinethis is where the "supported APIs" gets fuzzy18:07
karniwell, it was there, so we simply used it. right, ezactly Ken.18:08
kenvandinesame with libcontent-hub018:08
karniregarsless whether that was supported or not, we'll fix it one way or the other18:08
kenvandinenothing stopping it from being used18:08
kenvandinebut we have been told it isn't a supported API in the platform18:08
karnimost probably talk over dbus, cose we're not using the QML apu of the thumbnailer18:08
kenvandinekarni, that's tricky too though18:09
kenvandineis the DBus API a guaranteed API?18:09
karniI can only say we simply thought it was not documented18:09
kenvandinewhat if it changes?18:09
karniwell, thats what guys suggested, talk over sbus18:09
karnidbus18:09
kenvandineit's certainly a fix18:09
kenvandinebut it's no better than using the old unsuppported libthumbnailer018:10
karnior, they make a simple lib that exposes that api. they wanted to avoid it. I said, we need an Api for c/c++ anyway18:10
kenvandineyou could end up broken again18:10
karnitrue. thus, we should know more on Monday. :)18:10
kenvandineso if we need click packages to be able to use the thumbnailer18:10
kenvandinewe need an API that is part of the platform18:10
karnitheres qml api. but we want it from c++18:11
kenvandineor we'll end up in this same place in 6 months18:11
karniyes18:11
karnii agree18:11
kenvandinegood18:11
karnisorry Ken, hard to type fast on the phone18:11
kenvandineno worry :)18:11
karnihopefully we'll have a plan early next week18:11
kenvandinei just wanted to make my opinion known :)18:11
karniyes :)18:11
kenvandineusing the dbus API isn't a fix... it's a bandaid :)18:11
karnitrue, I agree.18:12
kenvandineunless the dbus API becomes a supported part of the platform18:12
kenvandinethen it's cool18:12
karniwe need solid Api. which, if you ask me, could have been done as part of the new thumbnailer in the first place :) (I think ita jist a good idea)18:12
karniright18:12
karnik, gotta go18:13
kenvandineit's easiest as a proper lib18:13
kenvandineok, later!18:13
karni:)18:13
Jordy_Hi! Just thinking about buying some Smartphone for playing around with Ubuntu Phone. It should be a more powerful model. The official model in that case is MeizuMX4. However I wonder if there is some other current model that can be used with Ubuntu Phone in a useful and complete way (by programming it by my own). Any suggestions?19:20
tathhuNexus 4/5?19:24
Jordy_Those arn't current models, are they? They are available second hand only, aren't they?19:26
tathhuAh, sorry. :D19:26
tathhuMy bad. Yeah, afaik N5 isn't produced anymore19:26
Jordy_No problem :-) So the current models are not supported well?19:27
tathhuI don't know, all I know that Nexus 4/5 are officially(?) supported and you can jsut do a ubuntu-device-flash. :D19:28
Isotop7how do i place two columns mext to each other with and can apply their width based on percentages?19:58
Isotop7btw: is there a good ebook for qml/c++/ubuntu touch apps?19:58
ahoneybunIsotop7: http://qmlbook.github.io/19:59
Isotop7ahoneybun: wow...thanks! seems awesome :)20:01
ahoneybunIsotop7: the concept here with Rectangle should work with Columns: http://qmlbook.github.io/en/ch04/index.html#rectangle-element20:01
ahoneybunworth a try20:01
Isotop7ahoneybun: ty20:06
=== salem_ is now known as _salem

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