/srv/irclogs.ubuntu.com/2015/04/03/#ubuntu-app-devel.txt

=== chihchun_afk is now known as chihchun
davidcalleMorning all o/07:57
DanChapmanmorning all09:59
rpadovanipopey, o/ Did you have any chanche to test https://code.launchpad.net/~rpadovani/ubuntu-calculator-app/waitUntilOskIsHidden/+merge/254875 ?10:33
=== dkessel_ is now known as dkessel
themelesI get the following error when trying to create a list: Error: Element with selector "lst_laptimes" does not exist or not declared as a "list" <section>11:49
themelesthe selector is correct but there seems to be a problem with the list.js class. Does anybody have experience with that error?11:49
themelesfinally: calling it with "UI.list('[id="lst_laptimes"]');" it worked "UI.list('laptimes'); " didn't with lists but with all the others. Here comes my next question: is that a bug or does it have a reason?12:14
popeyrpadovani: testing now12:49
popeyrpadovani: still seems to be a problem with the icon - i branched that osk hidden and then made a click and pushed to phone, and the icon is blank12:53
rpadovanipopey, yap, I know, there isn't still the icon, because I use a custom icon when I push under my name, I'll replace it with the original one when we're ready to land12:53
popeyah okay12:53
popeyhttp://people.canonical.com/~alan/screenshots/device-2015-04-03-135409.png12:54
popeystill get the wide keyboard, then ^ then it drops down12:54
popeyhttp://people.canonical.com/~alan/screenshots/device-2015-04-03-135433.png12:54
rpadovanipopey, ok, now I have no idea what's going on12:56
rpadovanipfff12:56
rpadovanithat's annoying12:56
themelesHow do I include vibrations in a HTML5 app for Ubuntu-touch?13:34
justCarakasthemeles: https://developer.ubuntu.com/api/html5/sdk-14.10/org.apache.cordova.vibration/13:38
themelesjustCarakas: and how do i create the navigator object?13:39
themelesjustCarakas: and another thing: where would i use this "cordova plugin add org.apache.cordova.vibration". I developing with the Ubuntu SDK.13:42
justCarakashave you tried to launch your app and than in the debugger do a console.log on the navigator, I think it should be there, I can't try it myself atm13:44
justCarakasthemeles: you can open the debugger in chrome by going to your ip and than this port:3240013:45
justCarakasif you are running your app from the sdk13:46
justCarakasow, never mind, wrong port :)13:46
justCarakasthats the plex port :p13:46
justCarakaslet me look up the port for you13:46
justCarakasthemeles:  the port is 922113:47
justCarakashttp://daker.me/2013/11/web-apps-remote-debugging-on-ubuntu-touch.html13:48
themelesjustCarakas: ok thanks, i m trying it13:53
themelesjustCarakas: cant get the connection running. "upstart-app-launch webbrowser-app --inspector" fails when executed on the phone.14:06
themelesjustCarakas: on the phone there is no open port except 2214:06
charlespopey, happy birthday tomorrow! :-)14:32
justCarakasthemeles: when you start your app from the SDK the debugger should already run14:57
justCarakasyou don't need to do that manual step14:58
=== chihchun is now known as chihchun_afk
LeousSamahello please take a look http://paste.ubuntu.com/10731136/15:23
LeousSamaanyone can help ?15:25
LeousSamahello15:29
=== ahayzen is now known as ahayzen_
=== ahayzen_ is now known as ahayzen__
=== ahayzen__ is now known as ahayzen
nik90ahayzen: Hey congrats on your ubuntu membership!15:52
ahayzennik90, thanks mate :)15:53
nik90ahayzen: hey, quick question, Have you used a popover inside a listitem delegate? I don't know how to pass variables like model.name etc, to the popover since it is a separate component15:55
ahayzennik90, hmmm we may have done at some point but i don't think we do anymore ... you tried making another property in the listitem which copies the model.name or something?15:55
ahayzenmost of ours come from header actions now15:56
nik90ahayzen: well I could do that, but if that property values changes, it is not reflected in the popover. My usecase is to show some button icons which changed depending on the model property. But I noticed that when the model property changes, the popover doesnt seem to recognize that15:57
nik90ahayzen: I suppose there isn't a way to transfer the property while opening the popover15:57
ahayzendialog = PopupUtils.open(path) ... then do dialog.myVar = model.name ?15:58
ahayzendoes that work?15:58
nik90that works..but when model.name changes, dialog.myVar still points at the old value15:58
ahayzenah damn15:58
ahayzenQt.binding?15:58
nik90yeah I might end up using that...I guess I finally found a use case for Qt.Binding.15:59
ahayzendialog.myVar = Qt.binding(function() { return model.name; })15:59
ahayzeni had to use it somewhere in the music-app for a similar sortof thing IIRC15:59
nik90ah thnx16:00
ahayzendoes it work?16:00
nik90I haven't tried it yet16:01
nik90ahayzen: that worked! Thnx16:11
ahayzennik90, awesome :)16:11
om26ernik90, Hi!16:36
om26ernik90, while building clock-app some tests are failing. How can I disable them ? http://paste.ubuntu.com/10731597/16:37
nik90om26er: erm what did it crash during the crash?16:37
om26ernik90, nothing crashed16:38
nik90Segmentation fault (core dumped)16:38
nik90either way, if you comment add_subdirectory(unit) in the CMakeList.txt file in the tests directory, that should disable the qml test suite16:38
nik90although I havent seen the qml test suite fail before16:39
om26ernik90, if I build and install the deb, whats the binary name to start the app ?16:56
nik90om26er: erm I am not sure since I have never done that..the desktop file itself has the Exec= qmlscene ubuntu-clock-app.qml line16:58
om26ernik90, it says:16:58
om26erfile:///usr/share/ubuntu-clock-app/ubuntu-clock-app.qml:20 module "DateTime" is not installed16:58
om26erdarn what am I missing ?16:58
nik90om26er: you're missing the c++ binary plugin16:58
nik90om26er: Can I walk you through building it from source using cmake?16:59
om26ernik90, yes, please16:59
nik90om26er: from inside the source it is quite simple,16:59
nik90mkdir builddir && cd builddir16:59
nik90cmake ..16:59
nik90make16:59
nik90qmlscene ../app/ubuntu-clockapp.qml -I backend/17:00
nik90om26er: that should get it running on the desktop ^^17:00
nik90om26er: It is explained in https://bazaar.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/utopic-3.0/view/head:/README.developers17:00
om26ernik90, http://paste.ubuntu.com/10731768/17:01
nik90om26er: yeah that's what I saw in the test logs you linked and thought it was crashing17:02
nik90om26er: are you running this on vivid desktop?17:02
om26ernik90, yes17:02
nik90om26er: give me 5 mins, I am updating my vivid install and testing this since it works on a few days old vivid machine perfectly fine17:03
om26ernik90, ok17:04
* nik90 still updating vivid17:12
ahayzennik90, what was the status of https://code.launchpad.net/~nik90/ubuntu-weather-app/improved-settings-page/+merge/253619 ... i think Victor was waiting for you to make some changes?17:23
nik90ahayzen: oh wow I totally forgot about that MP. He just wanted me to add some translator comments..I will get that done today17:24
ahayzennik90, cool thanks :)17:24
nik90thnx for the reminder17:24
nik90om26er: hey, just finished updating and on building and running it, I dont see any crashes or any other issue. it works fine.17:26
om26ernik90, uh, I might have broke something, but not really sure what :/17:27
nik90om26er: in fact I just tried running some AP tests and they run properly and pass17:27
nik90om26er: yeah something to do with Loading module: 'libubuntu_application_api_test.so.2.9.0'17:28
nik90om26er: not sure where in the stack that is17:28
om26ernik90, how do you run tests on the device ?17:55
* aquarius releases Caxton, finally, yay17:55
aquariushttp://www.kryogenix.org/days/2015/04/03/send-a-url-to-your-ubuntu-phone-with-caxton/17:55
nik90om26er: I dont..or rather I haven't been successful since the move autopkgtests17:56
ogra_aquarius, whee !17:59
aquariusogra_, yep! finally :)18:04
ogra_grrr ... i dont get it :/18:10
aquariuscaxton? yeah, I worry I haven't explained it right18:10
ogra_lol18:10
ogra_no18:10
aquariusoh. good then :)18:10
ogra_why my webview doesnt have the right timezone18:10
aquariuswhat?18:11
aquariusit doesn't have the timezone your phone is in?18:11
ogra_in my G+ app, when i open the app, the timestamps are correct ...18:11
aquariuswhy would it be set differently?18:11
ogra_as soon as i reload the webview it goes to UT18:11
ogra_C18:11
aquariusthat's... hm18:11
ogra_yeah18:11
ogra_i really dont get it18:11
aquariusdoes it happen for all pages? or just g+? it might be g+ itself doing something weird; they dn't support our browser for the new UI, remember :)18:12
ogra_i use a nexus UA18:12
ogra_so the new UI works fine18:12
aquariusya, but that doesn't mean that our browser is *actually* the nexus browser :)18:12
ogra_heh, indeed18:12
aquariusit is possible that we actually do something wrong in the browser here, but since we're forcing it to think we're something different, that trips the bug18:13
ogra_hmm, interesting18:13
aquariuspossibly18:13
ogra_seems the G+ page also doesnt "go to the article" if you tap some article in it18:13
aquariusI mean, it's unlikely, but it woldn't surprise me if g+ does something weird with timezones; it is a very, very complex app :)18:13
ogra_it jus hides everythig else via css18:14
ogra_it seems if it only hides the other stuff the TZ is right ... only a proper reload turns it to UTC18:16
ogra_(or back/forward actions)18:16
ogra_smells a bit like oxide does give the proper TZ info on first load, but not on any subsequent ones18:17
aquariusdoes a bit, doesn't it?18:18
aquariusthis is where you make this problem part of coulson's life :)18:18
ogra_haha18:19
ogra_but i want my fix *NOW* !18:19
ogra_*foot stomp*18:19
Se7aquarius, waiting apps for paring after press get a code app..nothing happen :( with caxton18:20
ogra_i actually wanted to work on direct photo and video sharing today ... now i'm poking at timezones :/18:20
nik90aquarius: Looking at the official caxton, am I reading this correctly other 3rd party apps can use this to push notifications to the device?18:22
aquariusnik90, correct.18:22
aquariushelp your user get a Caxton token, then use it to push yourapp://whatever/you/like to the phone, and have your app on the phone register as the url handler for yourapp:// urls.18:22
aquariusno server required for you!18:23
nik90aquarius: well for podbird for instance, I would need a server to check for new episodes and then send push notifications to the user?18:24
aquariusnik90, well, yeah; I won't do the checking for you :)18:24
aquariusyou could have ifttt do that, though, if you wanted18:24
nik90yes ( though one has the right to dream for such features :P)18:24
aquariusbut it means you can avoid the hassle of pairing the phone app with the server, etc, and have caxton do it; your server can use the api, etc18:25
aquariusif you're doing something that integrated then you could obviously just do the pairing yourself, etc18:25
nik90aquarius: yeah yeah caxton will make things easier. thnx18:25
aquariusbut caxton might be a useful way to *prototype* this idea :)18:25
nik90Elleo: we could use this ^^18:26
ogra_aquarius, so where is the caxton .snap package so i can run the server in my snappy cloud instance ?18:27
ogra_:)18:27
aquariusheh :)18:27
aquariusif you want to run your own server, you don't need caxton; just snd messages from it ;)18:27
aquariusit is there precisely for people who don't want to run their own server but want push messages anyway :P18:28
ogra_well, i want integrated projects, where the SDK automatically spits out a .snap for me if there are server components in my click package project :)18:28
ogra_*that* would actually make me use the SDK :)18:29
aquariusthat'd be nice, indeed18:29
aquariusnot useful for me, though, until someone sets up a heroku-like service that'll deploy snaps and give me basic usage for free for ever18:30
aquariusthat'd be pretty sweet, though: PaaS where you just upload a list of snap URLs and it deploys for you. Pow, done18:30
ogra_well, snapy are deployd from the appstore18:30
ogra_*snaps18:30
ogra_5-10% of the "apps" in the store are actually snaps18:31
ogra_and snappy knows oem snaps ... so yu can just bundle your snap selection and deploy them as oem snap with a single click in snappys webdm UI18:31
Se7aquarius, waiting app to pair.....why no apps pairing maybe i not understand well how to use caxton18:32
aquariusSe7, did you install the browser extension?18:33
Se7on the phone or desktop?18:33
aquariuson the desktop18:33
aquariuscaxton on your phone doesn't pair with the server -- it pairs with the extension in your desktop Chrome/FF. So you hit the button in Chrome, it says "enter the code from the caxton app", you hit the button in the phone app, it gives you a code, you type the code into desktop chrome, and they pair18:34
aquariusI may need to do a little video of this; it is a bit complicated18:34
Se7thank you18:34
Se7for a simple user like me it s a bit complicated :)18:35
aquariusSe7, I don't think I've explained it brilliantly, I admit18:35
aquariusbut I released it exactly so I can get this helpful feedback :)18:35
Se7of course :P18:36
justCarakasdoes anyone know if ubuntu will keep suporting WebSQL and what the data limits are (database size)18:52
nik90ah man http://icons.mivoligo.com/ is a god sent thnx mivilogio!18:52
aquariushow do I take a screenshot on the bq?18:57
Se7volume + and - together19:02
ogra_aquarius, any chance you could make caxton work full duplex ?19:12
ogra_:)19:12
kenvandine+119:13
ogra_so i can send urls to my desktop too19:13
ogra_preferably via the share button in various apps :)19:13
kenvandineoh yeah... a share handler :)19:13
ogra_aquarius, hmm, and i cant seem to be able to makethe IFTTT password generator button do anything19:16
ogra_same with the bookmarklet button19:16
aquariusogra_, full duplex, no. Because it depends on which desktop and browser you're using19:18
aquariusubuntu desktops don't have push notifications yet19:18
aquariusChrome does, so you could push to desktop chrome via google's notifications19:18
aquariusand I'm sure that'd be a useful app if someone else were to write it ;)19:19
ogra_heh19:19
aquariusogra_, the generator buttons require javascript... do you have it turned on?19:20
ogra_sure19:20
aquariusand when you type in a code it doesn't pair?19:21
aquariuslet me try it, maybe I've screwed it up :)19:21
ogra_i can use the FF extension19:21
ogra_but neither bookmarklet nor notifications do anything when i click the anchor button19:21
aquariusok, works fine in chrome19:22
* aquarius tests firefox19:22
ogra_hmm, now the app says "server error" after i restarted it and hit the generate code button19:23
aquariusaaaaaaaaaaaaaaaaah19:23
ogra_second time worked19:23
aquariusfirefox is doing a correct thing19:23
aquariusbut I didn't realise it was :)19:23
aquariusfixed, I think19:26
aquariusworks in FF and Chrome for me19:26
* ogra_ tries19:26
aquariusifttt may be fixed now as well?19:26
aquariusit works for me in chrome at least19:27
ogra_something happens ... not sure what though :)19:27
ogra_oh19:28
ogra_scrolling helps ... seems there happened a lot offscreen :P19:28
ogra_that wasnt really obvious :)19:29
aquariusah19:29
aquariusyes.19:29
aquarius:)19:30
ogra_you should scroll it down or some such when the password stuff expands19:30
ogra_i was just madly generating codes and clicking th button :)19:30
aquariuschanging it now :)19:31
ogra_is the app integrated with the push service ?19:31
ogra_or does it only work when in foreground19:32
kenvandineaquarius, my g+ feed is full of pictures of you, a new form of a DOS attack19:36
akiva-thinkpadhey all19:36
akiva-thinkpadzbenjamin, i'll try again. Ping19:36
akiva-thinkpadhas anyone seen this new intel ssd? 2400 mbps read o_o19:37
aquariusogra_, it is push notifications. app does not beed to be running.19:37
aquariusalso, we now scroll things into view :)19:37
ogra_awesome19:37
akiva-thinkpadthats 12x faster than what I got now19:37
aquariuskenvandine, haha! sweet :)19:37
ogra_aquarius, looks good now19:40
aquariusglad to hear it ;)19:40
ogra_and this time the password is also not thre pages long :)19:40
aquariusit will always be long. Live with it :)19:48
ogra_hmm, the curl example seems to not work19:50
ogra_i get a token ... but when i want to use it i only get "invalid token" back19:50
aquariusrly?19:52
aquariusdocs might be out of date19:52
aquariuschecking19:52
aquariushuh19:54
aquariusfails for me too19:54
aquariusaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaah19:55
aquariusI remember this19:55
aquariusthe issue is + symbols in the token19:56
aquariuscurl treats them as being a url escape for a space19:56
aquariusI'll update the docs with the newer curl command19:57
aquariusogra_, docs updated to use --data-urlencode19:59
ogra_ok, i got two notifications ... no vibration or sound though20:01
aquariusyeah, sound stuff doesn't work yet20:01
ogra_ah, k20:01
aquariusI *think* I explicitly don't send vibrations20:01
aquariusI'd like to open that up to the api at some point20:02
ogra_+120:02
aquariusbut I want to be sure that the thing works in general first :)20:02
aquariussounds I don't do because I'll have to ship them with the app ;)20:02
aquariusbbl -- cheers ogra_! ping me on g+ if there are more issues!20:03
=== ahoneybun__ is now known as ahoneybun
foo-scripthi guys22:25
foo-scripta newbie in Ubuntu development needs some advise. I do not know where can I find the sources for apps which are already within default apps set for Ubuntu phone. I am not a big fan of contacts app, so where can I pull the sources from?22:27
Elleonik90: yeah, I considered doing something with Caxton and possibly also IFTTT, but I think for the range of things I want to do it's better to just do it ourselves23:19
Elleonik90: as I think I want people to be able to have an actual account on podbird.org, that allows them to manage stuff, import/export subscriptions online, sync between multiple devices and offer suggestions; a bit like gpodder.net does for gpodder but with the addition of recommendations and ubuntu push stuff23:21
nik90Elleo: ack.23:22
ahoneybunwow almost 600 downloads23:51

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