/srv/irclogs.ubuntu.com/2016/05/09/#ubuntu-app-devel.txt

=== chihchun_afk is now known as chihchun
om26erbzoltan, Hi! which ppa contains the armhf chroot for click ?09:23
bzoltanom26er: the SDK PPA09:23
om26erbzoltan, https://launchpad.net/~ubuntu-sdk-team/+archive/ubuntu/ppa ? whats the package name09:24
bzoltanom26er:  ubuntu-sdk-api-15.04-armhf09:35
=== chihchun is now known as chihchun_afk
zzarrhello! 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 error09:40
zzarrI found this https://bugs.launchpad.net/developer-ubuntu-com/+bug/157537809:41
ubot5Ubuntu bug 1575378 in Ubuntu Developer Portal "Ubuntu SDK, fail to create a click armhf target" [Undecided,New]09:41
zzarrand this https://bugs.launchpad.net/ubuntu/+source/click/+bug/157204109:42
ubot5Ubuntu bug 1572041 in click (Ubuntu) "Can't create click target for armhf" [Undecided,Confirmed]09:42
bzoltanzzarr: would you please tell me what version of the click package do you have installed ( apt-cache policy click)09:49
=== chihchun_afk is now known as chihchun
zzarrI got 0.4.43+16.04.20160203-0ubuntu209:49
zzarrare there any dependency that are not installed when installing ubuntu-sdk?09:50
zzarrit's the latest one09:52
zzarrbzoltan, do you have any idea?09:55
bzoltanzzarr: hmm... I have asked for the apt-cache policy :)09:57
bzoltanzzarr:  but from the version number i can tell that you do not have tha latest version installed from the SDK PPA09:57
zzarrbzoltan, I responded "I got 0.4.43+16.04.20160203-0ubuntu2"09:57
zzarrlatest version none ppa09:58
bzoltanzzarr:  try to type in $ apt-cache policy click09:58
bzoltanzzarr:  that  tells  not only the version but also where the installed package and the candidates are from09:58
zzarrclick:09:58
zzarr  Installerad: 0.4.43+16.04.20160203-0ubuntu209:58
zzarr  Kandidat:    0.4.43+16.04.20160203-0ubuntu209:58
zzarr  Versionstabell:09:58
zzarr *** 0.4.43+16.04.20160203-0ubuntu2 50009:58
zzarr        500 http://se.archive.ubuntu.com/ubuntu xenial/main amd64 Packages09:58
zzarr        100 /var/lib/dpkg/status09:58
bzoltanzzarr: 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
zzarr"installerad == installed", "kandidat == candidate", "versionstabell == version table"09:59
zzarrI don't recall enabling any ppa10:00
bzoltan$ sudo add-apt-repository ppa:ubuntu-sdk-team/ppa &&  sudo apt update && sudo apt install ubuntu-sdk && sudo apt dist-upgrade10:00
bzoltanzzarr: for the SDK you need the SDK PPA - https://developer.ubuntu.com/en/phone/platform/sdk/installing-the-sdk/10:01
zzarrthank you bzoltan, it will take a while to install, I'll tell you about the result once it is10:04
bzoltanzzarr: good luck :) please ping me if you have any problem10:05
* ahoneybun uses no PPA 10:19
bzoltanahoneybun: in that case you do not use the Ubuntu SDK :)10:29
ahoneybunyep10:34
ahoneybuninstalled from the repos10:34
ahoneybunmm why does developer.ubuntu.com keep taking me to the zh-cn version?10:37
bzoltanahoneybun: 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
ahoneybunbzoltan I'v had it installed for 2 months now10:37
ahoneybunI've installed it on afew new image machines with no PPA10:38
bzoltanahoneybun: 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:38
ahoneybunI'm telling you it is in the repos10:39
bzoltanahoneybun:  here is the instructions - https://developer.ubuntu.com/en/phone/platform/sdk/installing-the-sdk/10:39
ahoneybunI've seen them10:39
ahoneybunthat ppa was for before 14.04 or so10:39
davidcalleahoneybun: try visiting https://developer.staging.ubuntu.com/en/ and see if it keeps taking you to the chinese version (cookies)10:39
ahoneybunhttp://packages.ubuntu.com/xenial/ubuntu-sdk10:39
bzoltanahoneybun: 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:39
ahoneybundavidcalle that works davidcalle10:40
ahoneybunbzoltan works fine for me10:40
ahoneybunmm now it works fine davidcalle10:42
ahoneybunkinda10:42
bzoltanahoneybun: 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
ahoneybunevents are still chinese10:42
ahoneybunmm10:42
* ahoneybun has to pull out his laptop to test 10:43
zzarrbzoltan, do you know if there is a arm64 (aarch64) schroot and qmake?11:02
zzarrI 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:04
bzoltanzzarr:  We do not have arm64 chroot. Do you need one?11:22
zzarrI wish to make applications for my dragonboard 410c11:23
zzarrI have snappy core on it now (on an sd)11:24
zzarrI have some questions about that too, but I'll ask them in #snappy11:25
bzoltanzzarr: We will have LXD image for that with the next big IDE release11:35
zzarrokey, bzoltan, when will that be?11:39
bzoltanzzarr:  in few weeks... we are doing the pre-release tests already11:41
zzarrnice, thanks bzoltan11:41
zzarrwill there be a qmake for aarch64? (or instructions how to compile it?)11:43
zzarrthe installation of the armhf 15.04 click worked like a charm :) thanks bzoltan11:44
zzarran alternative to qmake for aarch64 is if it's possible to run armhf applications11:45
zzarr(in the same way x86/x86_64 can coexist)11:46
t1mpmardy: hello12:05
t1mpmardy: I was checking out this bug https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/157861912:05
ubot5Ubuntu bug 1578619 in ubuntu-ui-toolkit (Ubuntu) "[regression] Extra flickable margin added when using PullToRefresh" [Critical,In progress]12:05
mardyt1mp: hi!12:05
t1mpis that one visible in an app?12:05
mardyt1mp: yes, it happens to be the same app in which I found the other issue :-)12:06
t1mpwhy do you push a new page inside onRefresh?12:06
t1mpah, ok12:06
t1mpthat's a naughty app ;)12:06
mardyt1mp: well, that's only the test case12:06
mardyt1mp: the problem generally appears then the user starts the refresh, and then clicks on a list item before the refresh has completed12:07
t1mpsee 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 pushed12:07
t1mpmardy: ah, okay. That makes sense :)12:07
mardyt1mp: yes, even in OTA10 it's not perfect, I happen to see some issues occasionally12:07
t1mpmardy: 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 velocity12:08
t1mpI'm not sure the bug is "Critical", but I'll dive deeper into the PullToRefresh code to see why it is broken12:10
mardyt1mp: now that I test my app, I notice other nasty issues:12:10
mardyt1mp: 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
mardyt1mp: I'll see if I can make a test case for this12:11
t1mpthat is weird12:12
t1mpok, thanks12:12
t1mpsee if you can also reproduce it when there is no PullToRefresh component, to see if it is related to that component12:12
mardyt1mp: it's related to that component, now I think understood what it is:12:14
mardyt1mp: basically, if the PullToRefresh status changes while navigating through the page stack, the topMargin gets messed up:12:15
mardyt1mp: it can be increased or decreased, depending on the PullToRefresh state before and after12:15
t1mpright12:15
t1mpstill I managed to reproduce the increased topMargin without a PageStack, so more is wrong12:16
mhall119popey: is there any plan to add thumbnailing to the file manager app's icon view?13:30
mhall119or, at the very least, a preview of selected items when it's used to pick files for content-hub transfers?13:30
=== _salem is now known as salem_
mhall119popey: I also miss being able to click links in the terminal, I wonder of KTerminal might give us that feature somehow14:03
t1mpzsombi: maybe we should put the PullToRefresh in the Header.extension ;)14:30
t1mpzsombi: is there no maximum how far I can pull down the flickable with PullToRefresh?14:33
zsombit1mp: bahh... We have it in the UbuntuListView :/14:33
zsombit1mp: yes, there's no such a value14:33
t1mpok14:33
t1mpthere are a bunch of bindings, connections, propertychanges, ... maybe those get updated in the wrong order in certain circumstances14:34
t1mpbut I haven't been able to track down where it goes wrong yet14:34
t1mpzsombi: I tested with UbuntuListView and it has the same issue as a regular ListView with a PullToRefresh added14:34
zsombit1mp: because UbuntuListView is after all a ListView witha  PullToRefresh :)14:35
t1mpzsombi: right :)14:35
t1mphmm14:35
t1mpI cannot reproduce the bug if there is a delay between refreshing = true and refreshing = false14:36
t1mponly if the refresh finishes really fast14:36
t1mpok, with an interval < 100, it is broken, with > 200 it always behaves as expected14:37
t1mpon my machine, that is14:37
t1mpzsombi: do you know if, when a Page becomes invisible, all the Transitions inside it, just stop? Even when alwaysRunToEnd is true?15:20
t1mpif 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 pushed15:20
t1mpI can add a                     control.target.returnToBounds();15:23
t1mpin 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 executed15:23
=== chihchun is now known as chihchun_afk
cyraxjoemcphail: thanks16:19
ahoneybunmhall119 have sometime for API lessons? lol20:15
mcphailpopey: 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 220:20
popey:)20:21
* popey gets wine and joins in20:21
mhall119ahoneybun: depends on what you need20:31
ahoneybunopenweathermap mostly20:31
ahoneybunbut API's in general work work20:31
ahoneybun*would work20:31
ahoneybunmhall119 ^20:37
popeymcphail: anything in particular I am looking for?20:39
mcphailpopey: 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 process20:39
popeywell, step 1, it installed!20:40
mcphailpopey: cool! If you already have a config file, can you delete it before launching?20:40
popeysure, it launches fine with the one I currently have, will re-launch clean20:40
mcphailTa20:41
popeyjust ./.config/bg1.njmcphail/bg1.cfg ?20:41
mcphailyep20:41
popeykk20:41
mhall119ahoneybun: well, if you have questions, start asking them :)20:41
popeylaunches fine20:41
mcphailpopey: brilliant. Ta!20:41
popeynp20:41
ahoneybunmhall119 https://github.com/Maledictus/Meteor/blob/master/Meteor.qml20:42
* mcphail pours popey a glass20:42
ahoneybunthis uses the API20:42
popey\o/20:42
popeyshhh,wife will hear20:42
ahoneybunbut it sets the Location as undefined20:42
popeyforgot how long the titles were20:42
ahoneybunall I need is know how to request the current weather in a zip code20:42
mcphailpopey: yeah. You can edit config file to skip them20:42
ahoneybunthe rest I can kinda get20:42
ahoneybunonce I get the concept of calling the api20:42
mhall119ahoneybun: what line is failing?20:45
ahoneybunproperty string location: typeof (Location) == "undefined" ? "undefined" : Location20:45
ahoneybunas Location is not defined20:45
ahoneybunI don't need to use GPS and stuff... yet20:45
ahoneybunjust a zip code20:45
ahoneybunthat's not my code though20:46
mhall119ok, trying to use QtLocation?20:46
ahoneybunis that the right way to use an API?20:47
ahoneybunI don't need to use GPS at the moment20:47
ahoneybunjust a set zip code20:47
ahoneybunmm20:47
* ahoneybun wished for a hangout but understands why not 20:48
mhall119ahoneybun: yeah, I'mcurrently a a community college hanging out in the lobby20:49
ahoneybunoh20:49
ahoneybunthat example refers to rootRect20:50
ahoneybunwould that be the iteam?20:50
ahoneybunitem20:50
mhall119rootRect is the id for the top-level item in that QML file20:51
ahoneybunright20:51
mhall119I'm not sure what Location object is20:51
mhall119it might be from org.LC.common20:52
ahoneybunyea thats the problem with using this code20:52
mhall119let's use something else then, maybe the weather core app?20:52
ahoneybunyea I have the code for that but its alien to me lol20:53
ahoneybunI also need to get ListItemsActions to work for me XD20:54
ahoneybunI want to do like the weather app does with the little weather icon in the ListItem20:54
ahoneybunbut that is for another day20:55
mhall119ahoneybun: sorry, I don't know how to convert zipcodes to weather data20:56
ahoneybunhttp://api.openweathermap.org/data/2.5/weather?zip=94040,us&appid=b1b15e88fa797225412429c1c50c122a20:57
ahoneybun:)20:57
mhall119ahoneybun: ah, ok then, so you just need to call that?20:57
ahoneybunI mean if we can use the GPS even better but not a top issue now20:57
ahoneybunyea20:57
mhall119ahoneybun: so what you want is from line 35 to 50 of https://github.com/Maledictus/Meteor/blob/master/Meteor.qml20:58
mhall119but on line 49, use the URL you just gave20:59
ahoneybunall in function {} ?20:59
ahoneybunplace that where in the code of my app thouhg?20:59
ahoneybunout of the Page {} ?21:00
mhall119inside any function21:00
ahoneybunI don't have any function lol21:00
ahoneybunhe/she put it in an item21:00
mhall119you'll need to replace lines 41-42 with code that sends the data the API call returns to the right variables in your app21:00
mhall119ahoneybun: well somehow the user has to give you a zipcode and request data for it, have a function that is called then21:01
mhall119the basic steps for calling APIs are:21:01
mhall1191) create an XMLHttpRequest object21:01
mhall1192) Attach a state change listener to it21:01
mhall1192.1) check that a state change puts it in XMLHttpRequest.DONE state, meaning it's finished making the call21:02
mhall1192.2) check that the http response status is 200 (otherwise you got an error you need to handle)21:03
mhall1193) open the request object to your target URL (with parameters if you have them)21:03
mhall1194) send the request, which will return immediately, and your state change listener will be called asynchronously later21:04
ahoneybunhow do I put the request into text?21:04
mhall119what do you mean "into text"?21:04
ahoneybunmm21:04
ahoneybunthe result21:05
ahoneybunlike mostly cloudy21:05
mhall119that depends on what openweathermap sends you21:05
mhall119on line 41 of Meteor.qml they expect to get JSON in the response, so they parse it and save it to the weatherData variable21:06
mhall119then they pick individual data out of that object21:06
ahoneybunoh ok21:07
mhall119that's line 41 and 4221:07
ahoneybunweather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}]21:07
mhall119so, let's say you use JSON.parse to store that into a variable 'foo'21:08
mhall119foo["weather"][0]["main"] == "Clear"21:09
ahoneybunmm21:12
ahoneybuncopying for this example is not working21:12
ahoneybunI want "text: "Sun" + weatherData" or something that works lol21:12
ahoneybunit says weatherData is not defined21:14
mhall119yes, weatherData is a variable defined by Meteor.qml21:15
ahoneybunby the file?21:15
mhall119on line 25, it's just a variant21:16
mhall119it's just a place that dev chose to store the response data from their API calls21:16
ahoneybunhell I could be putting the function in the wrng place too21:16
ahoneybunI guess it is not calling it then21:16
mhall119if you didn't define a variable called weatherData in your app, then you can't use that variable name21:16
ahoneybunI did21:16
mhall119are you using Metor.qml?21:16
mhall119ok, show me *your* code21:17
ahoneybunI copied it and edited it21:17
mhall119put it in an etherpad or something21:17
ahoneybun3302321:17
ahoneybunhttp://api.openweathermap.org/data/2.5/weather?zip=33023,us&appid=753a953085551461ddf5555c772c06c221:17
mhall119ahoneybun: I need to see *your* code21:17
ahoneybunI saw zip code lol21:18
mhall119no no, your QML21:18
ahoneybunk21:19
mhall119popey: I likey the new PDF Viewer :)21:19
ahoneybunpastebin.ubuntu.com/1632465321:19
mhall119is that a custom page header?21:19
ahoneybunmhall119 ^21:19
ahoneybunthe Doc viewer?21:20
* ahoneybun misses his Nexus 4 21:20
ahoneybunthis damn IRC does not let me copy and paste21:21
mhall119ahoneybun: ok, so your code looks alright (though I hate that you left our the {} on some of your if/else blocks)21:22
mhall119but requestWeaZip isn't called anywhere that I can see21:22
ahoneybunthat's how the meteor code it21:22
ahoneybunnot sure how it is called21:23
ahoneybunoh21:23
mhall119no, Meteor.qml called it on a timer down on line 8321:23
ahoneybunyea I see that21:24
mhall119ahoneybun: also, line 68 in your code won't work21:24
mhall119what data do you want there?21:24
ahoneybunjust that a icon21:24
ahoneybunopenweathermap provides some temp graphics21:24
ahoneybuntill I make my own21:24
mhall119then use weatherData["weather"][0]["icon"]21:25
ahoneybunno () ?21:25
mhall119the () isn't needed in that context21:25
ahoneybunit gets rid of my Sun though21:26
mhall119you can also just use your iconID variable, since that's being set to weatherData["weather"][0]["icon"] too21:26
mhall119it shouldn't, but whatever, leave the () in then21:26
ahoneybunI set the requestWeaZip for onClicked and it gives me21:26
ahoneybunrequestWeaZip is not defined21:26
mhall119onClicked where? Put this code in an etherpad so I can see the changes you're making21:27
ahoneybunon the Mon ListItem21:27
popeyheh mhall11921:28
ahoneybunpastebin.ubuntu.com/1632470221:28
ahoneybunmhall119 ^21:28
ahoneybunoh21:28
mhall119do you hate etherpad?21:28
ahoneybundid not read that one right21:29
ahoneybunnot sure how to get that to work21:29
mhall119etherpad love you, it's your friend, it just wants you to be happy ;)21:29
ahoneybunthe site says to demo or download21:29
mhall119ahoneybun: go to pad.ubuntu.com, log in, click "Create new pad" and then share that new link with me21:30
mhall119embrace the etherpad, become one with the etherpad21:30
ahoneybunyea yea lol21:31
ahoneybunrifmBrv3bd21:31
mhall119the whole URL please21:31
ahoneybunpad.ubuntu.com/rifmBrv3bd21:31
* ahoneybun thinks he should use the Timer thing 21:32
=== javiercrowsoft1 is now known as javiercrowsoft
mhall119ahoneybun: I need to head out soon, son's class is almost over21:54
ahoneybunoh ok21:54
ahoneybunI think I was using a key from that example not mine21:54
mhall119you were, and it's not working21:55
mhall119sorry ahoneybun, time for me to bail, I'll be around tomorrow to help22:02
ahoneybunalright thanks big time22:03
* ahoneybun should upload to LP now 22:03
ahoneybundamn it22:07
ahoneybunbranches have diverged?22:07
ahoneybunthis is why I don't like bzr22:07
ahoneybunit is pulling in data mhall11922:17
ahoneybungot it to show the main and a few other info22:17

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