=== chihchun_afk is now known as chihchun [09:23] bzoltan, Hi! which ppa contains the armhf chroot for click ? [09:23] om26er: the SDK PPA [09:24] bzoltan, https://launchpad.net/~ubuntu-sdk-team/+archive/ubuntu/ppa ? whats the package name [09:35] om26er: ubuntu-sdk-api-15.04-armhf === chihchun is now known as chihchun_afk [09:40] hello! when installing a 15.04 armhf schroot on a x86_64 host I get this error line 68, in create return chroot.create(args.keep_broken_chroot) File "/usr/lib/python3/dist-packages/click/chroot.py", line 599, in create self.full_name, ret_code)) It's a short bit of the error [09:41] I found this https://bugs.launchpad.net/developer-ubuntu-com/+bug/1575378 [09:41] Ubuntu bug 1575378 in Ubuntu Developer Portal "Ubuntu SDK, fail to create a click armhf target" [Undecided,New] [09:42] and this https://bugs.launchpad.net/ubuntu/+source/click/+bug/1572041 [09:42] Ubuntu bug 1572041 in click (Ubuntu) "Can't create click target for armhf" [Undecided,Confirmed] [09:49] zzarr: would you please tell me what version of the click package do you have installed ( apt-cache policy click) === chihchun_afk is now known as chihchun [09:49] I got 0.4.43+16.04.20160203-0ubuntu2 [09:50] are there any dependency that are not installed when installing ubuntu-sdk? [09:52] it's the latest one [09:55] bzoltan, do you have any idea? [09:57] zzarr: hmm... I have asked for the apt-cache policy :) [09:57] zzarr: but from the version number i can tell that you do not have tha latest version installed from the SDK PPA [09:57] bzoltan, I responded "I got 0.4.43+16.04.20160203-0ubuntu2" [09:58] latest version none ppa [09:58] zzarr: try to type in $ apt-cache policy click [09:58] zzarr: that tells not only the version but also where the installed package and the candidates are from [09:58] click: [09:58] Installerad: 0.4.43+16.04.20160203-0ubuntu2 [09:58] Kandidat: 0.4.43+16.04.20160203-0ubuntu2 [09:58] Versionstabell: [09:58] *** 0.4.43+16.04.20160203-0ubuntu2 500 [09:58] 500 http://se.archive.ubuntu.com/ubuntu xenial/main amd64 Packages [09:58] 100 /var/lib/dpkg/status [09:59] zzarr: Yeps.. that shows the real problem. You do not have the SDK PPA enabled. https://developer.ubuntu.com/en/phone/platform/sdk/installing-the-sdk/ [09:59] "installerad == installed", "kandidat == candidate", "versionstabell == version table" [10:00] I don't recall enabling any ppa [10:00] $ sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt update && sudo apt install ubuntu-sdk && sudo apt dist-upgrade [10:01] zzarr: for the SDK you need the SDK PPA - https://developer.ubuntu.com/en/phone/platform/sdk/installing-the-sdk/ [10:04] thank you bzoltan, it will take a while to install, I'll tell you about the result once it is [10:05] zzarr: good luck :) please ping me if you have any problem [10:19] * ahoneybun uses no PPA [10:29] ahoneybun: in that case you do not use the Ubuntu SDK :) [10:34] yep [10:34] installed from the repos [10:37] mm why does developer.ubuntu.com keep taking me to the zh-cn version? [10:37] ahoneybun: The Ubuntu SDK IDE is not released to the archive, neither the Dev Kit or the static API packages. Also the click in the archives are bogus. The best way is to enable the SDK PPA as the instructions guide. You do save lots of time using the the official release. [10:37] bzoltan I'v had it installed for 2 months now [10:38] I've installed it on afew new image machines with no PPA [10:38] ahoneybun: I do not know what you have installed :) and from where... but the SDK is released _ONLY_ to the SDK PPA. For real :) I am not kidding. [10:39] I'm telling you it is in the repos [10:39] ahoneybun: here is the instructions - https://developer.ubuntu.com/en/phone/platform/sdk/installing-the-sdk/ [10:39] I've seen them [10:39] that ppa was for before 14.04 or so [10:39] ahoneybun: try visiting https://developer.staging.ubuntu.com/en/ and see if it keeps taking you to the chinese version (cookies) [10:39] http://packages.ubuntu.com/xenial/ubuntu-sdk [10:39] ahoneybun: I am telling you :) I am the one who released the SDK. Believe me, the archive repositories do _NOT_ have the latest releases for long time. What you have there is an old and buggy one. [10:40] davidcalle that works davidcalle [10:40] bzoltan works fine for me [10:42] mm now it works fine davidcalle [10:42] kinda [10:42] ahoneybun: of course it does work... we have not release broken SDK back then :) but that edition will not receive updates, bugfixes and new feature. If you want to use the Ubuntu SDK and want to enjoy the support we provide for that, then please install the latest official release. [10:42] events are still chinese [10:42] mm [10:43] * ahoneybun has to pull out his laptop to test [11:02] bzoltan, do you know if there is a arm64 (aarch64) schroot and qmake? [11:04] I had some problems with colliding packages, but it's fixed now... so I'm installing the 15.04 armhf schroot (hopefully it works now) [11:22] zzarr: We do not have arm64 chroot. Do you need one? [11:23] I wish to make applications for my dragonboard 410c [11:24] I have snappy core on it now (on an sd) [11:25] I have some questions about that too, but I'll ask them in #snappy [11:35] zzarr: We will have LXD image for that with the next big IDE release [11:39] okey, bzoltan, when will that be? [11:41] zzarr: in few weeks... we are doing the pre-release tests already [11:41] nice, thanks bzoltan [11:43] will there be a qmake for aarch64? (or instructions how to compile it?) [11:44] the installation of the armhf 15.04 click worked like a charm :) thanks bzoltan [11:45] an alternative to qmake for aarch64 is if it's possible to run armhf applications [11:46] (in the same way x86/x86_64 can coexist) [12:05] mardy: hello [12:05] mardy: I was checking out this bug https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1578619 [12:05] Ubuntu bug 1578619 in ubuntu-ui-toolkit (Ubuntu) "[regression] Extra flickable margin added when using PullToRefresh" [Critical,In progress] [12:05] t1mp: hi! [12:05] is that one visible in an app? [12:06] t1mp: yes, it happens to be the same app in which I found the other issue :-) [12:06] why do you push a new page inside onRefresh? [12:06] ah, ok [12:06] that's a naughty app ;) [12:06] t1mp: well, that's only the test case [12:07] t1mp: the problem generally appears then the user starts the refresh, and then clicks on a list item before the refresh has completed [12:07] see my comments on the bug report, the actual bug in this case seems to be in PullToRefresh. It always messed up the topMargin, but that was hidden previously by resetting the topMargin when the page was pushed [12:07] mardy: ah, okay. That makes sense :) [12:07] t1mp: yes, even in OTA10 it's not perfect, I happen to see some issues occasionally [12:08] mardy: yes, I can reproduce it on my laptop with a single page (without a pagestack) if I release the mouse button while the listview has a velocity [12:10] I'm not sure the bug is "Critical", but I'll dive deeper into the PullToRefresh code to see why it is broken [12:10] t1mp: now that I test my app, I notice other nasty issues: [12:11] t1mp: I don't pull the pull-to-refresh item, and open a list item; then I navigate back, and the topMargin is *decreased* [12:11] t1mp: I'll see if I can make a test case for this [12:12] that is weird [12:12] ok, thanks [12:12] see if you can also reproduce it when there is no PullToRefresh component, to see if it is related to that component [12:14] t1mp: it's related to that component, now I think understood what it is: [12:15] t1mp: basically, if the PullToRefresh status changes while navigating through the page stack, the topMargin gets messed up: [12:15] t1mp: it can be increased or decreased, depending on the PullToRefresh state before and after [12:15] right [12:16] still I managed to reproduce the increased topMargin without a PageStack, so more is wrong [13:30] popey: is there any plan to add thumbnailing to the file manager app's icon view? [13:30] or, at the very least, a preview of selected items when it's used to pick files for content-hub transfers? === _salem is now known as salem_ [14:03] popey: I also miss being able to click links in the terminal, I wonder of KTerminal might give us that feature somehow [14:30] zsombi: maybe we should put the PullToRefresh in the Header.extension ;) [14:33] zsombi: is there no maximum how far I can pull down the flickable with PullToRefresh? [14:33] t1mp: bahh... We have it in the UbuntuListView :/ [14:33] t1mp: yes, there's no such a value [14:33] ok [14:34] there are a bunch of bindings, connections, propertychanges, ... maybe those get updated in the wrong order in certain circumstances [14:34] but I haven't been able to track down where it goes wrong yet [14:34] zsombi: I tested with UbuntuListView and it has the same issue as a regular ListView with a PullToRefresh added [14:35] t1mp: because UbuntuListView is after all a ListView witha PullToRefresh :) [14:35] zsombi: right :) [14:35] hmm [14:36] I cannot reproduce the bug if there is a delay between refreshing = true and refreshing = false [14:36] only if the refresh finishes really fast [14:37] ok, with an interval < 100, it is broken, with > 200 it always behaves as expected [14:37] on my machine, that is [15:20] zsombi: do you know if, when a Page becomes invisible, all the Transitions inside it, just stop? Even when alwaysRunToEnd is true? [15:20] if that is the case, I don't see how we can make the PullToRefresh return the flickable to its bounds, when in onRefresh a new Page is pushed [15:23] I can add a control.target.returnToBounds(); [15:23] in the end of the transition to idle. That fixes the bug, but only if the Page does not become invisible, in which case the ScriptAction is not executed === chihchun is now known as chihchun_afk [16:19] mcphail: thanks [20:15] mhall119 have sometime for API lessons? lol [20:20] popey: I'd appreciate it if you could look at http://themcphails.uk/bg1.njmcphail_0.25.1_armhf.click and see if it still works. No hurry: not in a rush to update in store. Currently under influence of moderate wineage, so there may be a typo or 2 [20:21] :) [20:21] * popey gets wine and joins in [20:31] ahoneybun: depends on what you need [20:31] openweathermap mostly [20:31] but API's in general work work [20:31] *would work [20:37] mhall119 ^ [20:39] mcphail: anything in particular I am looking for? [20:39] popey: just to see if it works. I made some tweaks for case sensitivity and want to make sure I haven't trashed things in the process [20:40] well, step 1, it installed! [20:40] popey: cool! If you already have a config file, can you delete it before launching? [20:40] sure, it launches fine with the one I currently have, will re-launch clean [20:41] Ta [20:41] just ./.config/bg1.njmcphail/bg1.cfg ? [20:41] yep [20:41] kk [20:41] ahoneybun: well, if you have questions, start asking them :) [20:41] launches fine [20:41] popey: brilliant. Ta! [20:41] np [20:42] mhall119 https://github.com/Maledictus/Meteor/blob/master/Meteor.qml [20:42] * mcphail pours popey a glass [20:42] this uses the API [20:42] \o/ [20:42] shhh,wife will hear [20:42] but it sets the Location as undefined [20:42] forgot how long the titles were [20:42] all I need is know how to request the current weather in a zip code [20:42] popey: yeah. You can edit config file to skip them [20:42] the rest I can kinda get [20:42] once I get the concept of calling the api [20:45] ahoneybun: what line is failing? [20:45] property string location: typeof (Location) == "undefined" ? "undefined" : Location [20:45] as Location is not defined [20:45] I don't need to use GPS and stuff... yet [20:45] just a zip code [20:46] that's not my code though [20:46] ok, trying to use QtLocation? [20:47] is that the right way to use an API? [20:47] I don't need to use GPS at the moment [20:47] just a set zip code [20:47] mm [20:48] * ahoneybun wished for a hangout but understands why not [20:49] ahoneybun: yeah, I'mcurrently a a community college hanging out in the lobby [20:49] oh [20:50] that example refers to rootRect [20:50] would that be the iteam? [20:50] item [20:51] rootRect is the id for the top-level item in that QML file [20:51] right [20:51] I'm not sure what Location object is [20:52] it might be from org.LC.common [20:52] yea thats the problem with using this code [20:52] let's use something else then, maybe the weather core app? [20:53] yea I have the code for that but its alien to me lol [20:54] I also need to get ListItemsActions to work for me XD [20:54] I want to do like the weather app does with the little weather icon in the ListItem [20:55] but that is for another day [20:56] ahoneybun: sorry, I don't know how to convert zipcodes to weather data [20:57] http://api.openweathermap.org/data/2.5/weather?zip=94040,us&appid=b1b15e88fa797225412429c1c50c122a [20:57] :) [20:57] ahoneybun: ah, ok then, so you just need to call that? [20:57] I mean if we can use the GPS even better but not a top issue now [20:57] yea [20:58] ahoneybun: so what you want is from line 35 to 50 of https://github.com/Maledictus/Meteor/blob/master/Meteor.qml [20:59] but on line 49, use the URL you just gave [20:59] all in function {} ? [20:59] place that where in the code of my app thouhg? [21:00] out of the Page {} ? [21:00] inside any function [21:00] I don't have any function lol [21:00] he/she put it in an item [21:00] you'll need to replace lines 41-42 with code that sends the data the API call returns to the right variables in your app [21:01] ahoneybun: well somehow the user has to give you a zipcode and request data for it, have a function that is called then [21:01] the basic steps for calling APIs are: [21:01] 1) create an XMLHttpRequest object [21:01] 2) Attach a state change listener to it [21:02] 2.1) check that a state change puts it in XMLHttpRequest.DONE state, meaning it's finished making the call [21:03] 2.2) check that the http response status is 200 (otherwise you got an error you need to handle) [21:03] 3) open the request object to your target URL (with parameters if you have them) [21:04] 4) send the request, which will return immediately, and your state change listener will be called asynchronously later [21:04] how do I put the request into text? [21:04] what do you mean "into text"? [21:04] mm [21:05] the result [21:05] like mostly cloudy [21:05] that depends on what openweathermap sends you [21:06] on line 41 of Meteor.qml they expect to get JSON in the response, so they parse it and save it to the weatherData variable [21:06] then they pick individual data out of that object [21:07] oh ok [21:07] that's line 41 and 42 [21:07] weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}] [21:08] so, let's say you use JSON.parse to store that into a variable 'foo' [21:09] foo["weather"][0]["main"] == "Clear" [21:12] mm [21:12] copying for this example is not working [21:12] I want "text: "Sun" + weatherData" or something that works lol [21:14] it says weatherData is not defined [21:15] yes, weatherData is a variable defined by Meteor.qml [21:15] by the file? [21:16] on line 25, it's just a variant [21:16] it's just a place that dev chose to store the response data from their API calls [21:16] hell I could be putting the function in the wrng place too [21:16] I guess it is not calling it then [21:16] if you didn't define a variable called weatherData in your app, then you can't use that variable name [21:16] I did [21:16] are you using Metor.qml? [21:17] ok, show me *your* code [21:17] I copied it and edited it [21:17] put it in an etherpad or something [21:17] 33023 [21:17] http://api.openweathermap.org/data/2.5/weather?zip=33023,us&appid=753a953085551461ddf5555c772c06c2 [21:17] ahoneybun: I need to see *your* code [21:18] I saw zip code lol [21:18] no no, your QML [21:19] k [21:19] popey: I likey the new PDF Viewer :) [21:19] pastebin.ubuntu.com/16324653 [21:19] is that a custom page header? [21:19] mhall119 ^ [21:20] the Doc viewer? [21:20] * ahoneybun misses his Nexus 4 [21:21] this damn IRC does not let me copy and paste [21:22] ahoneybun: ok, so your code looks alright (though I hate that you left our the {} on some of your if/else blocks) [21:22] but requestWeaZip isn't called anywhere that I can see [21:22] that's how the meteor code it [21:23] not sure how it is called [21:23] oh [21:23] no, Meteor.qml called it on a timer down on line 83 [21:24] yea I see that [21:24] ahoneybun: also, line 68 in your code won't work [21:24] what data do you want there? [21:24] just that a icon [21:24] openweathermap provides some temp graphics [21:24] till I make my own [21:25] then use weatherData["weather"][0]["icon"] [21:25] no () ? [21:25] the () isn't needed in that context [21:26] it gets rid of my Sun though [21:26] you can also just use your iconID variable, since that's being set to weatherData["weather"][0]["icon"] too [21:26] it shouldn't, but whatever, leave the () in then [21:26] I set the requestWeaZip for onClicked and it gives me [21:26] requestWeaZip is not defined [21:27] onClicked where? Put this code in an etherpad so I can see the changes you're making [21:27] on the Mon ListItem [21:28] heh mhall119 [21:28] pastebin.ubuntu.com/16324702 [21:28] mhall119 ^ [21:28] oh [21:28] do you hate etherpad? [21:29] did not read that one right [21:29] not sure how to get that to work [21:29] etherpad love you, it's your friend, it just wants you to be happy ;) [21:29] the site says to demo or download [21:30] ahoneybun: go to pad.ubuntu.com, log in, click "Create new pad" and then share that new link with me [21:30] embrace the etherpad, become one with the etherpad [21:31] yea yea lol [21:31] rifmBrv3bd [21:31] the whole URL please [21:31] pad.ubuntu.com/rifmBrv3bd [21:32] * ahoneybun thinks he should use the Timer thing === javiercrowsoft1 is now known as javiercrowsoft [21:54] ahoneybun: I need to head out soon, son's class is almost over [21:54] oh ok [21:54] I think I was using a key from that example not mine [21:55] you were, and it's not working [22:02] sorry ahoneybun, time for me to bail, I'll be around tomorrow to help [22:03] alright thanks big time [22:03] * ahoneybun should upload to LP now [22:07] damn it [22:07] branches have diverged? [22:07] this is why I don't like bzr [22:17] it is pulling in data mhall119 [22:17] got it to show the main and a few other info