=== salem_ is now known as _salem === _salem is now known as salem_ === salem_ is now known as _salem === _salem is now known as salem_ [02:32] mcphail: cool. didn't realise you hadn't played it before. [02:32] wanna play a game? [02:34] yay uBegginer is at 3.0 now on the Store. === salem_ is now known as _salem === chihchun_afk is now known as chihchun === sturmflut_ is now known as sturmflut [06:35] good morning [07:14] i have a problem with my qml/c++ app. when the onscreen keyboard is active it hides part of the ui, how to avoid this? [08:13] how can i make the ui scroll to bottom in a textarea? [08:13] on desktop my code works on phone not -.- [08:17] are there actually any devs in here or why no anwers? [08:38] mr-tt: Half of the world is not awake yet, and I don't know the answer :/ [08:38] mr-tt, maybe the one here don't the answer to this specific question :) You might want to also ask it on askubuntu.com [08:38] know* [09:25] !ping [09:25] pong! [09:25] balloons: ping [09:26] presuming you are the one handling jenkins; any idea when it is going to be updated? [09:26] to vivid? [09:31] nemo: ping [09:38] sturmflut: yesterday i also didn't receive any answers :( [09:39] t1mp: zsombi are you able to help mr-tt ? [09:40] i worked around my problem now [09:40] didn't solve it though [09:41] took 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 that [09:48] mr-tt: what was your problem? [09:49] mr-tt: ah, you want to scroll to the end of the text area content? [09:52] zsombi: yep [09:53] mr-tt: cursorPosition shoudl do the job 4 U [09:54] but i went ahead and prepend text now, then i also don't have the problem of the osd keyboard hiding stuff [09:55] zsombi: or is there a solution to not hide stuff when osd keyboard is active? [09:56] mr-tt: prepend? how does that solve your prob? [09:57] zsombi: well the last text is not hidden anymore [09:57] mr-tt: you mean hidden by OSK? then maybe append not prepend... [09:59] zsombi: i have a large textarea. the last added text should be visible even when the osk hides bottom part of screen === chriadam is now known as chriadam|away [10:01] zsombi: i'd have to move/scale up the textarea so osk doesn't hide it anymore, but how? [10:02] mr-tt: do you have the content of the view in a Flickable? [10:03] zsombi: don't think so [10:05] mr-tt: if not, put it inside one, then you have to watch the Qt.inputMethod.keyboardRectangle & Qt.inputMethod.visible [10:05] mr-tt: when the IM is visible, then you have to set the Flicakble's bottomMargin to IM.keyboardRectangle.height [10:06] mr-tt: and also set the Flickable's contentY [10:06] zsombi: i can put everything in a flickable right? so nothing gets hidden [10:06] mr-tt: these will push your view content up [10:06] zsombi: do you have a code example? and how can i test this on a desktop? [10:07] mr-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.3 [10:07] mr-tt: you cannot really test this on desktop, only on phone [10:07] as desktop doesn;t have OSK [10:07] heard there are osk for desktop too [10:08] mr-tt: but that OSK is not per app... [10:08] so it's not gonna appear in your app's window [10:08] afaik [10:08] dunno, someone used osk together with xmir+x apps [10:09] ok, 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 phone [10:10] zsombi: how do i watch the inputmethods in code? [10:11] mr-tt: Qt.inputMethod is a QInputMethod object, so you can do binding, connect its signals, etc [10:11] mr-tt: http://doc.qt.io/qt-5/qinputmethod.html [10:12] zsombi: do i do that from c++ or can i do it all in qml? not sure [10:13] mr-tt: all its properties/signals/slots/invokables are visible in QML :) [10:13] ok [10:13] zsombi: do you also know how to define platform specific #imports in qml? [10:13] mr-tt: no way [10:13] hum that sucks a bit [10:14] mr-tt: well, can you do that in JS? [10:14] zsombi: no idea how to [10:14] mr-tt: you cannot :) [10:14] zsombi: i read on the web it's possible in the meantime, but it didn't work [10:15] mr-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 layer [10:15] zsombi: https://forum.qt.io/topic/5739/platform-specific-part-of-qml-file/14 [10:16] last answer [10:16] mr-tt: aaah, but that is not an import [10:16] zsombi: code example on how to do that? [10:16] mr-tt: that si a runtime check, and it shoudl work [10:16] mr-tt: http://doc.qt.io/qt-5/qml-qtqml-qt.html [10:17] mr-tt: I guess you copied the @ stuff too :) [10:17] yes [10:17] mr-tt: wel, that's the problem :) [10:17] http://doc.qt.io/qt-5/qml-qtqml-qt.html#platform-prop [10:17] mr-tt: try this if (Qt.platform.os === "linux" || Qt.platform.os === "windows" || Qt.platform.os === "osx" || Qt.platform.os === "unix") { [10:17] /.. [10:17] } [10:18] mr-tt: the @ is causing syntax error [10:18] i tried wihtout the @ too,neither works [10:19] mr-tt: have you tried to print the Qt.platform.os before the statement? [10:19] mr-tt: maybe the string is none of yours you check [10:19] zsombi: no, how to do that? [10:19] mr-tt: either print(Qt.platform.os) or console.log() [10:20] zsombi: Unexpected token `if' [10:20] mr-tt: could you pastebin your code pls? [10:21] mr-tt: pastebin.ubuntu.com [10:22] zsombi: http://pastebin.com/gdcUikq7 [10:22] guess i have to put that if function elsewhere? [10:23] mr-tt: ok, how much you know about Qt/QML? :) [10:23] zsombi: heh not so much :) [10:23] mr-tt: I guessed :D [10:23] mr-tt: so, first, in order a QML document to work properly, you need an Item [10:24] zsombi: oh that's not my whole code [10:24] mr-tt: you can put property declarations, do property bindings there [10:24] just the header of the file [10:24] with the imports [10:24] of course there are items etc later on [10:24] mr-tt: ok, np, but as the if() statement si not a declaration statement, you have to put it into a functoin or a JS code [10:25] mr-tt: as said, you cannot do platform specific imports [10:25] ok then it's no use doing this in a function [10:25] mr-tt: the sequence you pasted from a link is a runtime statement, does runtime OS check [10:26] mr-tt: it doesn't do OS specific imports [10:26] mr-tt: but it can solve OS specific code execution [10:26] zsombi: how can i make sure it imports ubuntu components then instead of qml controls? [10:26] mr-tt: you need to use named import [10:26] zsombi: how is that done? [10:26] mr-tt: and then use that namespace in all QtQuick Controls (or UITK controls) used [10:27] mr-tt: import Ubuntu.Components 1.2 as Toolkit [10:27] zsombi: but that would duplicate my qml code? [10:27] mr-tt: the "as Toolkit" can be anything [10:28] mr-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 this [10:28] mr-tt: the named import is only needed when you use components from the two modules with the same name [10:28] mr-tt: otherwise not [10:29] well i just want to write +test on a nonubuntu machine with qtquick controls and then compile with components instead on a ubuntu machine [10:29] i simply replaced controls import with components and it pretty much worked [10:30] zsombi: because utouch doesnt have controls [10:31] uhm [10:32] I don't get you [10:33] zsombi: import QtQuick.Controls 1.3 doesn't work on utouch, because it can't find it [10:33] import Ubuntu.Components 1.2 works [10:33] mr-tt: 1.3 is not yet released, so you will get them only with dev-proposed images [10:34] lol so import QtQuick.Controls 1.3 would work? alright then :) [10:34] import QtQuick.Controls 1.2 * [10:34] mr-tt: ahh, sorry, I got mixed [10:34] mr-tt: QtQuick.Controls is NOT supported on the device [10:35] at least we do not support that [10:35] zsombi: why not? :/ [10:35] mr-tt: I wanted to say Ubuntu.Components 1.3 :D [10:35] mr-tt: because there are plenty of things don not work yet with QtQuick.Controls in utouch [10:36] zsombi: how come? utouch components seems to be pretty much the same like qt controls? [10:36] mr-tt: so, Ubuntu.Components 1.2 is stable release, Ubuntu.Components 1.3 is dev release [10:36] mr-tt: yes, but those are only few swhich are the same [10:36] i was talking about QT controls 1.3 not utouch components 1.§ [10:36] 3* [10:36] mr-tt: modal windows, such as Dialog, Menu don;t work, they segfault [10:37] mr-tt: Mir doesn't support those yet [10:37] so we cannot support Qt controls then [10:37] zsombi: ah ok but in the future, any idea when that'll be? [10:38] mr-tt: I had not seen any plans to support Qt controls, especially that they are moving to QtQuick.Controls2 [10:41] zsombi: but 2 will be supported? [10:51] zsombi: do you use qtcreator/ubuntusdk? [11:01] mr-tt: he works on it [11:06] anyone knows how to hide the debugger view after one brought it up? [11:11] mr-tt: in QtCreator, do you see the Debug button on the left vertical bar highlighted_ [11:11] ? [11:12] zsombi: aah thanks, i couldn't figure that one out [11:12] mr-tt: :) [11:12] zsombi: is it planned to release the usdk for other distros or even platforms? [11:12] mr-tt: yes [11:12] ok very good :) [11:15] mr-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 possible [11:42] mcphail: goood mornin [11:43] nemo: 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:44] hm [11:44] wellllll [11:44] the interesting part was getting it packaged up [11:44] and seems you just have to fix some SDL link error at this point [11:44] nemo: np - I'll have another look at it when I get back [11:44] was figuring I'd just get someone here who is an ubuntu developer to maybe get it to that point === _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_ [13:32] Hmpf, 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:34] ogra_: ^^ [13:36] you mean they didnt answer or did they actively decline ? [13:37] ogra_: The answer was "Thanks, but if we find there is a need for it, our experts surely can build it themselves." [13:37] I thought there already is one in the store? [13:38] lol [13:38] unofficial [13:38] arrogante arschloecher :P [13:38] JanC: Yeah, mine, but it's just a pimped-up container around some websites. The most important features are missing. [13:39] do they offer a public api ? [13:39] ah, right, I remembered seeing something while scrolling through the store [13:39] ogra_: No. I've reverse-engineered most of it though. [13:40] * ogra_ would just go ahead and write it anyway (with its own logo and name perhaps) [13:42] ogra_: 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:43] Well, at least sync the tickets I've already bought and display them [13:43] well, you could screen-scrape ... ugly but would surely work ... in the end you only get a qr code anyway [13:45] Oh, 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] But that's the point where it gets ugly. [13:46] i assume all the payment stuff is ugly ... [13:47] If 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] At that point DB *will* go after me, regardless if I use their name/logo or not. [13:47] well, that would at least get ther attention :P [13:48] for the demand :) [13:48] Hehe [13:48] but yeah, you might get sued [13:50] I 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] But this is germany, there's no chance I can win this. [13:57] mcphail: FWIW [13:57] 09:54 <@koda> he should really use make VERBOSE=1 [13:57] 09:54 <@koda> anyway not sure, he probably didn't change the linker names [13:57] 09:54 <@koda> in sdlh [13:57] decent chance that might be the last *build* error ☺ [14:09] ogra_: 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? :P [14:16] sturmflut: querying sounds less risky than making payments [14:16] maybe they are being paranoid [14:16] which is always safe stance if you ask a manager or lawyer anything [14:16] easier to say no [14:20] nemo: 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] You usually book tickets beforehand from your desktop, and you should be able to use the full website from a phone, so all uses are covered [14:23] sturmflut: well... take for example Android [14:23] sturmflut: if I use my older phone, and I browse to a ticket site in Firefox - perfectly safe [14:23] if I use basically any web app, I now suffer from the XSS injection that Google refuses to backport the fix for [14:23] I mean... app that uses a web view [14:24] but, I bet their reason is entirely about control and how easy it is to say no. [14:24] sturmflut: "Easier to ask forgiveness than permission" 😝 [14:24] I think they have two concerns [14:25] The first is that the payment API could he hacked [14:26] The 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 cheaper [14:28] heh [14:28] sturmflut: hm. those kinds of querying scrapers are already legal no? [14:28] also, I thought you were doing transactions, not just querying [14:29] sturmflut: in Belgium (most?) banks only allow one (or maybe a couple) very expensive business bridges outside of their own website/apps... :-( [14:30] so you're lucky in Germany [14:34] FTR, telegram may be experiencing temporary problems. [14:34] Result: {"_":"rpc_error","error_code":-503,"error_message":"Timeout"} [14:39] nemo: cheers - I'll look at that when I get a chance [14:41] nemo: 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:42] JanC: No HCBI? [14:43] sturmflut: I guess if they wanted to legally ban scraping they'd just add a robots.txt line [14:46] nemo: A robots.txt has never been legally binding. [14:48] depends on the country I think [14:48] since it communicates intention [14:49] hm [14:49] http://stackoverflow.com/questions/999056/ethics-of-robots-txt [14:52] http://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 factor [14:52] the stack overflow discussion using analogy of a no tresspassing sign [14:52] or at least a no automated tresspassing I guess [14:53] wait is there a new sound for notifications? [14:53] sturmflut: HCBI ? [14:53] JanC: That's a standard interface for banking [14:54] sturmflut: maybe some banks support that for businesses, certainly not for regular people... [14:55] or maybe the bridge software supports it [14:56] and even Wikipedia doesn't know it ;) [14:59] Errr, HBCI [14:59] Oh, it exists only in germany [14:59] I always thought it was an european thing [15:00] hey all how would I list these in my app: http://fullcirclemagazine.org/downloads/ [15:00] ? [15:03] sturmflut: 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 communication [15:04] they were like 300 baud or something [15:04] s/many/several/ [15:04] ahoneybun: 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:05] sturmflut: I've got the feed working, I just want to make it possible to view what issues there are and offer to download them [15:05] sturmflut: for Hedgewars we serve http://hedgewars.org/content.html inside the game by doing a basic chopping of the page HTML [15:05] then use document viewer to see the pdf [15:06] ahoneybun: Yep [15:07] sturmflut: 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] sturmflut: seems like exactly one small Belgian bank supports it [15:08] probably accidentally because of the on-line banking software they use ;) [15:09] sturmflut: oh. and QTextBrowser - is a lot more lightweight than WebView [15:09] sturmflut: fewer deps too [15:09] and that works [15:09] ahoneybun: 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 Viewer [15:09] cool [15:09] I'll look into that [15:10] \o/ [15:10] can I hook that into a List? [15:10] To download more than one file at once? [15:10] https://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.h [15:10] well if you click the one list item (ex. issue 3) it would download and offer to open document viewer [15:10] ahoneybun: Yep [15:11] sweet [15:11] thanks sturmflut [15:11] ahoneybun: See if it works first ;) [15:11] there is a full circle app but it is a webapp, and this well be a full Native app [15:11] I would have never thought of it anyway [15:12] sturmflut: https://developer.ubuntu.com/api/apps/qml/sdk-15.04/Ubuntu.DownloadManager.SingleDownload/ ? [15:12] ahoneybun: Should be it, yes [15:13] * sturmflut goes to find something for dinner [15:29] using the sample from there crashes the app when I push download [16:26] mhall119: any exp with Ubuntu.DownloadManager? [16:50] t1mp: ping [16:50] ahoneybun: hi [16:50] any exp with Ubuntu.DownloadManager? [21:23] popey, https://bugs.launchpad.net/developer-ubuntu-com/+bug/1473545 [21:23] Launchpad bug 1473545 in Ubuntu Developer Portal "Broken link on Dekko portal page" [Undecided,New] [21:24] popey, 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:33] ah [21:34] thanks davidcalle [21:35] popey, np, btw are you going somewhere next week? [21:36] outside :) [21:36] fixed the link [21:36] :) [21:40] computer -> off [21:40] o/ [21:56] so, with whom do I liaise in order to get icons into apps? popey? [22:01] snwh, hey, yes but he is on holidays next week, which apps? [22:02] snwh, propose a mp :-) and yeah which apps in particular ? [22:03] davidcalle, are you working on that community site on the dev portal ? [22:03] ahayzen, yes, I've been working quite a lot on it recently [22:04] davidcalle, its looking good :-) just noticed this phrasing on the meetings page "Not current scheduled" ... shouldn't it be "Not currently scheduled" [22:07] ahayzen, indeed, fixed [22:07] davidcalle, thanks :-) [22:07] ty :) [22:07] davidcalle, is this site in django as well? [22:08] ahayzen, it is [22:08] interesting i'm doing django at my internship :-) [22:11] ahayzen, that's nice, I'm discovering django with this site, it can get really fun once you are in the right mindset [22:11] yeah its initially quite confusing but i'm liking it now :-) [22:12] :) [22:12] ahayzen, where are you doing the internship? [22:12] davidcalle, https://torchbox.com/ [22:13] davidcalle, they write http://wagtail.io/ https://github.com/torchbox/wagtail/ which is a django cms [22:15] ahayzen, looks very cool, do you know if it can take over a django CMS db? [22:17] davidcalle, not sure, i was talking to popey about it, but the problem is you guys need translation support https://github.com/torchbox/wagtail/issues/96 [22:18] davidcalle, 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 made [22:18] i 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:19] ahayzen, we do, that's what motivated going with django CMS [22:19] davidcalle, unless you want to help the guy in the issue writing the third-party mixin ;-) [22:20] it will definitely come, its just a matter of when [22:20] ahayzen, hah :) === salem_ is now known as _salem [22:23] davidcalle, ahayzen, will do. thanks [22:25] snwh, which apps do you have icons for ? [22:29] ahayzen: I’m redoing ones I did in the past for core apps [22:29] they look out of place with the newer style [22:30] snwh, oh cool :-) [22:37] * popey retusn [22:37] also [22:37] * popey returns [22:37] hey snwh [22:37] your holiness [22:38] lulz [22:38] * popey fixes the errors nik90 mentioned to him on telegram :) [22:40] snwh: which ones were you looking to update? [22:40] terminal, sudoku, files [22:42] for starters ;) [22:42] ooh, nice. [22:42] file manager does look dated now. [22:42] oi. i know [22:42] nice thought they all are of course :) [22:43] * popey tries to be kind :) [22:43] I’m self-critical. the files icon is cringe worthy for me haha [22:44] :) [22:45] now that they kind of have some sort of guidelines/style in place I’m returning to the idea of doign icons [22:52] *\o/* [22:52] there's icon guidelines on the site now I think [22:52] or is that what you were referring to? [23:06] popey, snwh, current icon guidelines are here ( https://design.ubuntu.com/apps/style/iconography ), maybe slightly outdated with the update [23:10] * popey fires a mail at those responsible to make sure they keep it up to date [23:15] \o/ sent