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

=== salem_ is now known as _salem
=== _salem is now known as salem_
=== salem_ is now known as _salem
=== _salem is now known as salem_
nemomcphail: cool. didn't realise you hadn't played it before.02:32
nemowanna play a game?02:32
ahoneybunyay uBegginer is at 3.0 now on the Store.02:34
=== salem_ is now known as _salem
=== chihchun_afk is now known as chihchun
=== sturmflut_ is now known as sturmflut
dholbachgood morning06:35
mr-tti have a problem with my qml/c++ app. when the onscreen keyboard is active it hides part of the ui, how to avoid this?07:14
mr-tthow can i make the ui scroll to bottom in a textarea?08:13
mr-tton desktop my code works on phone not -.-08:13
mr-ttare there actually any devs in here or why no anwers?08:17
sturmflutmr-tt: Half of the world is not awake yet, and I don't know the answer :/08:38
davidcallemr-tt, maybe the one here don't the answer to this specific question :) You might want to also ask it on askubuntu.com08:38
davidcalleknow*08:38
akiva-thinkpad!ping09:25
ubot5pong!09:25
akiva-thinkpadballoons: ping09:25
akiva-thinkpadpresuming you are the one handling jenkins; any idea when it is going to be updated?09:26
akiva-thinkpadto vivid?09:26
mcphailnemo: ping09:31
mr-ttsturmflut: yesterday i also didn't receive any answers :(09:38
popeyt1mp: zsombi are you able to help mr-tt ?09:39
mr-tti worked around my problem now09:40
mr-ttdidn't solve it though09:40
mr-tttook a look at some qml code of the terminal app, but it seems like it's using something ubuntuspecific, and i'd like to avoid that09:41
zsombimr-tt: what was your problem?09:48
zsombimr-tt: ah, you want to scroll to the end of the text area content?09:49
mr-ttzsombi: yep09:52
zsombimr-tt: cursorPosition shoudl do the job 4 U09:53
mr-ttbut i went ahead and prepend text now, then i also don't have the problem of the osd keyboard hiding stuff09:54
mr-ttzsombi: or is there a solution to not hide stuff when osd keyboard is active?09:55
zsombimr-tt: prepend? how does that solve your prob?09:56
mr-ttzsombi: well the last text is not hidden anymore09:57
zsombimr-tt: you mean hidden by OSK? then maybe append not prepend...09:57
mr-ttzsombi: i have a large textarea. the last added text should be visible even when the osk hides bottom part of screen09:59
=== chriadam is now known as chriadam|away
mr-ttzsombi: i'd have to move/scale up the textarea so osk doesn't hide it anymore, but how?10:01
zsombimr-tt: do you have the content of the view in a Flickable?10:02
mr-ttzsombi: don't think so10:03
zsombimr-tt: if not, put it inside one, then you have to watch the Qt.inputMethod.keyboardRectangle & Qt.inputMethod.visible10:05
zsombimr-tt: when the IM is visible, then you have to set the Flicakble's bottomMargin to IM.keyboardRectangle.height10:05
zsombimr-tt: and also set the Flickable's contentY10:06
mr-ttzsombi: i can put everything in a flickable right? so nothing gets hidden10:06
zsombimr-tt: these will push your view content up10:06
mr-ttzsombi: do you have a code example? and how can i test this on a desktop?10:06
zsombimr-tt: we are also trying to have this behavior in a component that you can use to do these automatically, its just gonna take some time and will (hopefully) land in uitk 1.310:07
zsombimr-tt: you cannot really test this on desktop, only on phone10:07
zsombias desktop doesn;t have OSK10:07
mr-ttheard there are osk for desktop too10:07
zsombimr-tt: but that OSK is not per app...10:08
zsombiso it's not gonna appear in your app's window10:08
zsombiafaik10:08
mr-ttdunno, someone used osk together with xmir+x apps10:08
zsombiok, I had not seen that, but if it comes in your app's window (which I doubth) then you can test them both on your desktp and phone10:09
mr-ttzsombi: how do i watch the inputmethods in code?10:10
zsombimr-tt: Qt.inputMethod is a QInputMethod object, so you can do binding, connect its signals, etc10:11
zsombimr-tt: http://doc.qt.io/qt-5/qinputmethod.html10:11
mr-ttzsombi: do i do that from c++ or can i do it all in qml? not sure10:12
zsombimr-tt: all its properties/signals/slots/invokables are visible in QML :)10:13
mr-ttok10:13
mr-ttzsombi: do you also know how to define platform specific #imports in qml?10:13
zsombimr-tt: no way10:13
mr-tthum that sucks a bit10:13
zsombimr-tt: well, can you do that in JS?10:14
mr-ttzsombi: no idea how to10:14
zsombimr-tt: you cannot :)10:14
mr-ttzsombi: i read on the web it's possible in the meantime, but it didn't work10:14
zsombimr-tt: but it depends on what do you want to do, you can do these platform specific things in C++ and expose to QML only a common layer10:15
mr-ttzsombi: https://forum.qt.io/topic/5739/platform-specific-part-of-qml-file/1410:15
mr-ttlast answer10:16
zsombimr-tt: aaah, but that is not an import10:16
mr-ttzsombi: code example on how to do that?10:16
zsombimr-tt: that si a runtime check, and it shoudl work10:16
zsombimr-tt: http://doc.qt.io/qt-5/qml-qtqml-qt.html10:16
zsombimr-tt: I guess you copied the @ stuff too :)10:17
mr-ttyes10:17
zsombimr-tt: wel, that's the problem :)10:17
zsombihttp://doc.qt.io/qt-5/qml-qtqml-qt.html#platform-prop10:17
zsombimr-tt: try this if (Qt.platform.os === "linux" || Qt.platform.os === "windows" || Qt.platform.os === "osx" || Qt.platform.os === "unix") {10:17
zsombi/..10:17
zsombi}10:17
zsombimr-tt: the @ is causing syntax error10:18
mr-tti tried wihtout the @ too,neither works10:18
zsombimr-tt: have you tried to print the Qt.platform.os before the statement?10:19
zsombimr-tt: maybe the string is none of yours you check10:19
mr-ttzsombi: no, how to do that?10:19
zsombimr-tt: either print(Qt.platform.os) or console.log()10:19
mr-ttzsombi: Unexpected token `if'10:20
zsombimr-tt: could you pastebin your code pls?10:20
zsombimr-tt: pastebin.ubuntu.com10:21
mr-ttzsombi: http://pastebin.com/gdcUikq710:22
mr-ttguess i have to put that if function elsewhere?10:22
zsombimr-tt: ok, how much you know about Qt/QML? :)10:23
mr-ttzsombi: heh not so much :)10:23
zsombimr-tt: I guessed :D10:23
zsombimr-tt: so, first, in order a QML document to work properly, you need an Item10:23
mr-ttzsombi: oh that's not my whole code10:24
zsombimr-tt: you can put property declarations, do property bindings there10:24
mr-ttjust the header of the file10:24
mr-ttwith the imports10:24
mr-ttof course there are items etc later on10:24
zsombimr-tt: ok, np, but as the if() statement si not a declaration statement, you have to put it into a functoin or a JS code10:24
zsombimr-tt: as said, you cannot do platform specific imports10:25
mr-ttok then it's no use doing this in a function10:25
zsombimr-tt: the sequence you pasted from a link is a runtime statement, does runtime OS check10:25
zsombimr-tt: it doesn't do OS specific imports10:26
zsombimr-tt: but it can solve OS specific code execution10:26
mr-ttzsombi: how can i make sure it imports ubuntu components then instead of qml controls?10:26
zsombimr-tt: you need to use named import10:26
mr-ttzsombi: how is that done?10:26
zsombimr-tt: and then use that namespace in all QtQuick Controls  (or UITK controls) used10:26
zsombimr-tt: import Ubuntu.Components 1.2 as Toolkit10:27
mr-ttzsombi: but that would duplicate my qml code?10:27
zsombimr-tt: the "as Toolkit" can be anything10:27
zsombimr-tt: well, it depends what you want to do... it won't duplicate, but if you want to mix the QtQuick controls Button with UITK Button, then you have to do this10:28
zsombimr-tt: the named import is only needed when you use components from the two modules with the same name10:28
zsombimr-tt: otherwise not10:28
mr-ttwell i just want to write +test on a nonubuntu machine with qtquick controls and then compile with components instead on a ubuntu machine10:29
mr-tti simply replaced controls import with components and it pretty much worked10:29
mr-ttzsombi: because utouch doesnt have controls10:30
zsombiuhm10:31
zsombiI don't get you10:32
mr-ttzsombi: import QtQuick.Controls 1.3 doesn't work on utouch, because it can't find it10:33
mr-ttimport Ubuntu.Components 1.2 works10:33
zsombimr-tt: 1.3 is not yet released, so you will get them only with dev-proposed images10:33
mr-ttlol so import QtQuick.Controls 1.3 would work? alright then :)10:34
mr-ttimport QtQuick.Controls 1.2 *10:34
zsombimr-tt: ahh, sorry, I got mixed10:34
zsombimr-tt: QtQuick.Controls is NOT supported on the device10:34
zsombiat least we do not support that10:35
mr-ttzsombi: why not? :/10:35
zsombimr-tt: I wanted to say Ubuntu.Components 1.3 :D10:35
zsombimr-tt: because there are plenty of things don not work yet with QtQuick.Controls in utouch10:35
mr-ttzsombi: how come? utouch components seems to be pretty much the same like qt controls?10:36
zsombimr-tt: so, Ubuntu.Components 1.2 is stable release, Ubuntu.Components 1.3 is dev release10:36
zsombimr-tt: yes, but those are only few swhich are the same10:36
mr-tti was talking about QT controls 1.3 not utouch components 1.§10:36
mr-tt3*10:36
zsombimr-tt: modal windows, such as Dialog, Menu don;t work, they segfault10:36
zsombimr-tt: Mir doesn't support those yet10:37
zsombiso we cannot support Qt controls then10:37
mr-ttzsombi: ah ok but in the future, any idea when that'll be?10:37
zsombimr-tt: I had not seen any plans to support Qt controls, especially that they are moving to QtQuick.Controls210:38
mr-ttzsombi: but 2 will be supported?10:41
mr-ttzsombi: do you use qtcreator/ubuntusdk?10:51
popeymr-tt: he works on it11:01
mr-ttanyone knows how to hide the debugger view after one brought it up?11:06
zsombimr-tt: in QtCreator, do you see the Debug button on the left vertical bar highlighted_11:11
zsombi?11:11
mr-ttzsombi: aah thanks, i couldn't figure that one out11:12
zsombimr-tt: :)11:12
mr-ttzsombi: is it planned to release the usdk for other distros or even platforms?11:12
zsombimr-tt: yes11:12
mr-ttok very good :)11:12
zsombimr-tt: some things may not work on platfirms, which are d-bus based, but we are going to find a way to get a symulation on those if possible11:15
nemomcphail: goood mornin11:42
mcphailnemo: Hi. I'm going to be afk (on and off) for the next couple of weeks. Wondered if you wanted a copy of the development chroot for your game, so you can work on it?11:43
nemohm11:44
nemowellllll11:44
nemothe interesting part was getting it packaged up11:44
nemoand seems you just have to fix some SDL link error at this point11:44
mcphailnemo: np - I'll have another look at it when I get back11:44
nemowas figuring I'd just get someone here who is an ubuntu developer to maybe get it to that point11:44
=== _salem is now known as salem_
=== chihchun is now known as chihchun_afk
=== salem_ is now known as _salem
=== _salem is now known as salem_
sturmflutHmpf, I offered Deutsche Bahn to build and maintain a clone of their "DB Navigator" app for Ubuntu, until they decide to offer an official one. They declined to even talk to me about that.13:32
sturmflutogra_: ^^13:34
ogra_you mean they didnt answer or did they actively decline ?13:36
sturmflutogra_: The answer was "Thanks, but if we find there is a need for it, our experts surely can build it themselves."13:37
JanCI thought there already is one in the store?13:37
ogra_lol13:38
JanCunofficial13:38
ogra_arrogante arschloecher :P13:38
sturmflutJanC: Yeah, mine, but it's just a pimped-up container around some websites. The most important features are missing.13:38
ogra_do they offer a public api ?13:39
JanCah, right, I remembered seeing something while scrolling through the store13:39
sturmflutogra_: No. I've reverse-engineered most of it though.13:39
* ogra_ would just go ahead and write it anyway (with its own logo and name perhaps)13:40
sturmflutogra_: Yeah, that's what Fahrplan does, and it will probably not be an issue as long as you just use the search API to display connections. But we are all after the ticketing API. I want to buy a ticket and show it to the conductor, on my Ubuntu phone.13:42
sturmflutWell, at least sync the tickets I've already bought and display them13:43
ogra_well, you could screen-scrape ... ugly but would surely work ... in the end you only get a qr code anyway13:43
sturmflutOh, I've already reverse-engineered most of the ticket API as well ;) In the end you authenticate and download a couple of PNGs and some text, the QR code being one of the PNGs.13:45
sturmflutBut that's the point where it gets ugly.13:45
ogra_i assume all the payment stuff is ugly ...13:46
sturmflutIf the connection search doesn't work, everybody will blame your app and that's it. It's not a business critical feature. But buying things and "authenticating" to a conductor touches the core business of Deutsche Bahn. And if there's an error, people may start calling the DB hotline and ask what's the problem.13:47
sturmflutAt that point DB *will* go after me, regardless if I use their name/logo or not.13:47
ogra_well, that would at least get ther attention :P13:47
ogra_for the demand :)13:48
sturmflutHehe13:48
ogra_but yeah, you might get sued13:48
sturmflutI wouldn't even really mind the lawsuit, sometimes you have to step up against such nonsense. Even banks allow you to do all your banking using third-party applications, so why shouldn't I be able to give DB my money using a third-party app?13:50
sturmflutBut this is germany, there's no chance I can win this.13:50
nemomcphail: FWIW13:57
nemo09:54 <@koda> he should really use make VERBOSE=113:57
nemo09:54 <@koda> anyway not sure, he probably didn't change the linker names13:57
nemo09:54 <@koda> in sdlh13:57
nemodecent chance that might be the last *build* error ☺13:57
sturmflutogra_: I'll answer DB with a more explicit question. They "officially" tolerate an iPhone app called "nextr", which queries their connection database through their API. So they surely can "tolerate" me too? :P14:09
nemosturmflut: querying sounds less risky than making payments14:16
nemomaybe they are being paranoid14:16
nemowhich is always safe stance if you ask a manager or lawyer anything14:16
nemoeasier to say no14:16
sturmflutnemo: I think I might be able to go into some kind of "grey area" if I do everything except the payment process. Then you have to book a ticket using the website, but can sync it to your phone and show it to the conductor later. Still not as nice as the original, but at least it works.14:20
sturmflutYou usually book tickets beforehand from your desktop, and you should be able to use the full website from a phone, so all uses are covered14:20
nemosturmflut: well... take for example Android14:23
nemosturmflut: if I use my older phone, and I browse to a ticket site in Firefox - perfectly safe14:23
nemoif I use basically any web app, I now suffer from the XSS injection that Google refuses to backport the fix for14:23
nemoI mean... app that uses a web view14:23
nemobut, I bet their reason is entirely about control and how easy it is to say no.14:24
nemosturmflut: "Easier to ask forgiveness than permission" 😝14:24
sturmflutI think they have two concerns14:24
sturmflutThe first is that the payment API could he hacked14:25
sturmflutThe second is that if they allow everybody to query their data, including ticket prices, people could easily build price comparison websites, and would often notice that some other operator or means of transportation is cheaper14:26
nemoheh14:28
nemosturmflut: hm. those kinds of querying scrapers are already legal no?14:28
nemoalso, I thought you were doing transactions, not just querying14:28
JanCsturmflut: in Belgium (most?) banks only allow one (or maybe a couple) very expensive business bridges outside of their own website/apps...  :-(14:29
JanCso you're lucky in Germany14:30
karniFTR, telegram may be experiencing temporary problems.14:34
karniResult: {"_":"rpc_error","error_code":-503,"error_message":"Timeout"}14:34
mcphailnemo: cheers - I'll look at that when I get a chance14:39
sturmflutnemo: It's legal to scrape the website up to some "degree", and the "degree" has never really been defined. There are some search engines by now that can compare all means of transportation, including trains, but they all have official cooperations with DB.14:41
sturmflutJanC: No HCBI?14:42
nemosturmflut: I guess if they wanted to legally ban scraping they'd just add a robots.txt line14:43
sturmflutnemo: A robots.txt has never been legally binding.14:46
nemodepends on the country I think14:48
nemosince it communicates intention14:48
nemohm14:49
nemohttp://stackoverflow.com/questions/999056/ethics-of-robots-txt14:49
nemohttp://www.bna.com/legal-issues-raised-by-the-use-of-web-crawling-and-scraping-tools-for-analytics-purposes/  this one notes courts have considered robots.txt as a factor14:52
nemothe stack overflow discussion using analogy of a no tresspassing sign14:52
nemoor at least a no automated tresspassing I guess14:52
ahoneybunwait is there a new sound for notifications?14:53
JanCsturmflut: HCBI ?14:53
sturmflutJanC: That's a standard interface for banking14:53
JanCsturmflut: maybe some banks support that for businesses, certainly not for regular people...14:54
JanCor maybe the bridge software supports it14:55
JanCand even Wikipedia doesn't know it  ;)14:56
sturmflutErrr, HBCI14:59
sturmflutOh, it exists only in germany14:59
sturmflutI always thought it was an european thing14:59
ahoneybunhey all how would I list these in my app: http://fullcirclemagazine.org/downloads/15:00
ahoneybun?15:00
nemosturmflut: my vague recollection from many decades ago, when people were more trusting  was that you'd (totally generic you 😝)  occasionally stumble across these thingies when wardialing that appeared to be wide open bank interfaces for interbank communication15:03
nemothey were like 300 baud or something15:04
nemos/many/several/15:04
sturmflutahoneybun: The easiest thing is a QML WebView. The more complex thing is a C++ QML component that parses the HTML site, but parsing HTML usually sucks. So I would suggest that you use http://fullcirclemagazine.org/feed/ instead and use a QML XmlListModel to parse it.15:04
ahoneybunsturmflut: I've got the feed working, I just want to make it possible to view what issues there are and offer to download them15:05
nemosturmflut: for Hedgewars we serve http://hedgewars.org/content.html inside the game by doing a basic chopping of the page HTML15:05
ahoneybunthen use document viewer to see the pdf15:05
sturmflutahoneybun: Yep15:06
ahoneybunsturmflut: seems i could just have a list with urls like this: http://dl.fullcirclemagazine.org/issue1_en.pdf and then it will open the browser but then it asks if you want to use Document Viewer :)15:07
JanCsturmflut: seems like exactly one small Belgian bank supports it15:07
JanCprobably accidentally because of the on-line banking software they use  ;)15:08
nemosturmflut: oh. and QTextBrowser - is a lot more lightweight than WebView15:09
nemosturmflut: fewer deps too15:09
ahoneybunand that works15:09
sturmflutahoneybun: You could probably use the QML Ubuntu.SingleDownload component to download an issue and then open it with the Content Hub, which will offer to open it with the Document Viewer15:09
ahoneybuncool15:09
ahoneybunI'll look into that15:09
sturmflut\o/15:10
ahoneybuncan I hook that into a List?15:10
sturmflutTo download more than one file at once?15:10
nemohttps://code.google.com/p/hedgewars/source/browse/QTfrontend/ui/page/pagedata.cpp and https://code.google.com/p/hedgewars/source/browse/QTfrontend/ui/widget/databrowser.h15:10
ahoneybunwell if you click the one list item (ex. issue 3) it would download and offer to open document viewer15:10
sturmflutahoneybun: Yep15:10
ahoneybunsweet15:11
ahoneybunthanks sturmflut15:11
sturmflutahoneybun: See if it works first ;)15:11
ahoneybunthere is a full circle app but it is a webapp, and this well be a full Native app15:11
ahoneybunI would have never thought of it anyway15:11
ahoneybunsturmflut: https://developer.ubuntu.com/api/apps/qml/sdk-15.04/Ubuntu.DownloadManager.SingleDownload/ ?15:12
sturmflutahoneybun: Should be it, yes15:12
* sturmflut goes to find something for dinner15:13
ahoneybunusing the sample from there crashes the app when I push download15:29
ahoneybunmhall119: any exp with Ubuntu.DownloadManager?16:26
ahoneybunt1mp: ping16:50
t1mpahoneybun: hi16:50
ahoneybunany exp with Ubuntu.DownloadManager?16:50
davidcallepopey, https://bugs.launchpad.net/developer-ubuntu-com/+bug/147354521:23
ubot5Launchpad bug 1473545 in Ubuntu Developer Portal "Broken link on Dekko portal page" [Undecided,New]21:23
davidcallepopey, I've found a convergence doc for dekko, but since it has "private and confidential" all over, I wasn't sure, so I haven't fixed it :)21:24
popeyah21:33
popeythanks davidcalle21:34
davidcallepopey, np, btw are you going somewhere next week?21:35
popeyoutside :)21:36
popeyfixed the link21:36
davidcalle:)21:36
popeycomputer -> off21:40
popeyo/21:40
snwhso, with whom do I liaise in order to get icons into apps? popey?21:56
davidcallesnwh, hey, yes but he is on holidays next week, which apps?22:01
ahayzensnwh, propose a mp :-) and yeah which apps in particular ?22:02
ahayzendavidcalle, are you working on that community site on the dev portal ?22:03
davidcalleahayzen, yes, I've been working quite a lot on it recently22:03
ahayzendavidcalle, its looking good :-) just noticed this phrasing on the meetings page "Not current scheduled" ... shouldn't it be "Not currently scheduled"22:04
davidcalleahayzen, indeed, fixed22:07
ahayzendavidcalle, thanks :-)22:07
davidcallety :)22:07
ahayzendavidcalle, is this site in django as well?22:07
davidcalleahayzen, it is22:08
ahayzeninteresting i'm doing django at my internship :-)22:08
davidcalleahayzen, that's nice, I'm discovering django with this site, it can get really fun once you are in the right mindset22:11
ahayzenyeah its initially quite confusing but i'm liking it now :-)22:11
davidcalle:)22:12
davidcalleahayzen, where are you doing the internship?22:12
ahayzendavidcalle, https://torchbox.com/22:12
ahayzendavidcalle, they write http://wagtail.io/ https://github.com/torchbox/wagtail/ which is a django cms22:13
davidcalleahayzen, looks very cool, do you know if it can take over a django CMS db?22:15
ahayzendavidcalle, not sure, i was talking to popey about it, but the problem is you guys need translation support https://github.com/torchbox/wagtail/issues/9622:17
ahayzendavidcalle, a few client sites do actually have translated content at the moment, but the implementation is fuggerly, so it would be better for something 'proper' to be made22:18
ahayzeni talked with a few devs yesterday about it and they said its high on their priority list but will probably be v1.1+ (1.0 is about to be released)22:18
davidcalleahayzen, we do, that's what motivated going with django CMS22:19
ahayzendavidcalle, unless you want to help the guy in the issue writing the third-party mixin ;-)22:19
ahayzenit will definitely come, its just a matter of when22:20
davidcalleahayzen, hah :)22:20
=== salem_ is now known as _salem
snwhdavidcalle, ahayzen, will do. thanks22:23
ahayzensnwh, which apps do you have icons for ?22:25
snwhahayzen: I’m redoing ones I did in the past for core apps22:29
snwhthey look out of place with the newer style22:29
ahayzensnwh, oh cool :-)22:30
* popey retusn22:37
popeyalso22:37
* popey returns22:37
popeyhey snwh22:37
snwhyour holiness22:37
popeylulz22:38
* popey fixes the errors nik90 mentioned to him on telegram :)22:38
popeysnwh: which ones were you looking to update?22:40
snwhterminal, sudoku, files22:40
snwhfor starters ;)22:42
popeyooh, nice.22:42
popeyfile manager does look dated now.22:42
snwhoi. i know22:42
popeynice thought they all are of course :)22:42
* popey tries to be kind :)22:43
snwhI’m self-critical. the files icon is cringe worthy for me haha22:43
popey:)22:44
snwhnow that they kind of have some sort of guidelines/style in place I’m returning to the idea of doign icons22:45
popey*\o/*22:52
popeythere's icon guidelines on the site now I think22:52
popeyor is that what you were referring to?22:52
davidcallepopey, snwh, current icon guidelines are here ( https://design.ubuntu.com/apps/style/iconography ), maybe slightly outdated with the update23:06
* popey fires a mail at those responsible to make sure they keep it up to date23:10
popey\o/ sent23:15

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