[11:31] <ogi> Merry Christmas
[11:31] <ogi> to all
[11:32] <ogi> WIll someone tell me can i add ubuntu touch to my old model nexus 7 tablet
[11:42] <lotuspsychje> !devices | ogi
[11:47] <ogi> its the old model .. i think 720p
[11:48] <ogi> its with 3g modem .. https://wiki.ubuntu.com/Touch/Devices says wifi only :|
[11:54] <lotuspsychje> you got the 2012 nexus7?
[11:59] <ogi> y
[11:59] <lotuspsychje> then you cant run ubuntu-touch sorry
[11:59] <lotuspsychje> only 2013 wifi model
[12:25] <saidinesh5> hey w00t
[12:25] <saidinesh5> lol
[12:26] <whitesn> excuse me, i have never done any porting before, I would like to ask whether or not it is possible to port ubuntu touch to an android device without kernel being released officially?
[12:46] <ogi> !devices
[12:52] <aquarius> daker, can I override the user agent in a webapp? or do I need to create a tiny qml wrapper?
[12:55] <aquarius> aha, this is an alex-abreu question, actually
[12:55] <aquarius> alex-abreu, how do I override the user agent in a webapp? https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1245465 seems relevant here but even after looking at the merge proposal I can't see how to do it :(
[13:05] <popey> aquarius: i used a wrapper...
[13:05] <popey> for my shonky apps
[13:05] <aquarius> popey, yeah, daker's post describes how to do that. But that's a hack -- it looks like there was that bug filed to allow overriding in a pure webapp and the bug's been closed as fixed, but I can't see how to actually *do* it :)
[13:06] <aquarius> and the documentation is, er, short :)
[13:08] <popey> i dont see it from that patch
[13:08] <popey> https://code.launchpad.net/~abreu-alexandre/webbrowser-app/enable-per-app-ua-override/+merge/216749
[13:17] <julienrbt> hi
[13:21] <aquarius> popey, nor me, hence asking alex-abreu :)
[13:21] <julienrbt> (I ask many questions because I haven't bought a devices supported by Ubuntu Touch) but, the best device is the nexus 4, how long will be supported by canonical? Should I wait or buy this? (sorry for my english)
[13:22] <aquarius> ok, now spun up a tiny qml file, and stupid Amazon CLoud Reader is pretending to not work still. Next step: work out how to turn on the devtools inspector in an oxide qml app
[13:22] <aquarius> this is a chrisccoulson question but he's not around.
[13:23]  * aquarius pings coulson on twitter :)
[13:24] <popey> julienrbt: I'd wait and get the BQ device which launches in just over a month
[13:25] <julienrbt> ok, february, it is a good device? it will be supported by Canonical or Bq?
[13:28] <popey> define "supported"?
[13:28] <julienrbt> update by canonical
[13:28] <julienrbt> (like nexus by google)
[13:28] <popey> both really.
[13:29] <popey> part of it is updated by us, part by bq AIUI
[13:29] <julienrbt> :(
[13:29] <popey> why ☹ ?
[13:30] <julienrbt> so when bq don't want to update we don't have update?
[13:30] <julienrbt> (so sorry for my english)
[13:31] <popey> thats not how it works
[13:31] <julienrbt> and the Bq is less powerful than the nexus
[13:31] <popey> canonical do the updates to the base, bq only have a layer on top
[13:31] <popey> there's not a lot in the performance between the two in my experience
[13:32] <popey> I benchmarked them both with a couple of HTML5 games and got the same FPS on both
[13:32] <popey> also, the BQ has an sd card slot which is handy
[13:32] <julienrbt> ok
[13:32] <julienrbt> and 1gb is ok?
[13:32] <popey> yeah, would prefer more of course ☻
[13:33] <julienrbt> it will be released in France?
[13:35] <aquarius> ahahaa! WebContext.devtoolsEnabled ftw.
[13:35] <popey> julienrbt: it will be available to buy online from BQ in spain
[13:36] <julienrbt> ok
[13:38] <daker> aquarius: i think you can now, http://paste.ubuntu.com/8642612/ (i didn't test it)
[13:38] <julienrbt> you know how long the nexus 4 will be supported by canonical compared to the Bq?
[13:39] <popey> julienrbt: i dont
[13:39] <popey> daker: nice find!
[13:39] <julienrbt> because with android, if we don't take a Nexus, updates come later..
[13:41] <aquarius> daker, I have just written a little blog post explaining how, and linking to yours :)
[13:42] <daker> aquarius: wow more backlinks :D
[13:43] <aquarius> http://www.kryogenix.org/days/2014/12/30/enabling-the-devtools-inspector-when-using-oxide-in-an-ubuntu-sdk-qml-app/
[13:44] <daker> aquarius: true it wasn't possible that time
[13:44] <aquarius> it is now, hooray!
[13:44] <aquarius> and a tiny little bit more documentation now exists
[13:45] <aquarius> oxide is viciously underdocumented :P
[13:54] <daker> well yes
[14:00] <ssddkkaall> can ubuntu be made to run on galaxy s7580 w\o CM
[14:12] <Mulklouv> http://pastebin.ubuntu.com/9645583/
[14:12] <aquarius> woo, progress; amazon cloud reader needs localStorage enabled, which I now have done.
[14:13] <aquarius> daker, I get about a zillion warnings like this; do you know what it means? [1230/141241:WARNING:quota_manager.cc(196)] Create directory failed for path
[14:16] <daker> maybe it's related to localStorage that you have enabled ?
[14:17] <daker> or you don't have enough space in you device ?
[14:18] <aquarius> not likely to be space -- I'm running this on my desktop, which has lots of space :)
[14:18] <aquarius> would be useful if it told me *which* path it was failing on :(
[14:19] <aquarius> this does rather suggest that the localStorage stuff just flat doesn't work, though.
[14:19] <daker> https://gitorious.org/blink/chromium/source/b95b1e69e27511760af4bba6a7326734980392fe:webkit/browser/quota/quota_manager.cc#L192
[14:19] <aquarius> aah, maybe I need to set cachePath on the webcontext?
[14:20] <aquarius> huh, I need a profile path.
[14:21] <daker> https://bugs.launchpad.net/webbrowser-app/+bug/1405844
[14:21] <aquarius> ha!
[14:22] <aquarius> yeah!
[14:22] <aquarius> set datapath, that helps :)
[14:23] <daker> yes i was going to say that https://bazaar.launchpad.net/~phablet-team/webbrowser-app/trunk/view/head:/src/app/webcontainer/WebApp.qml#L43
[14:24]  * aquarius affects-me's the bug
[14:27] <ssddkkaall> how do you build ubuntu for galaxy 7580
[14:32] <aquarius> almost perfect... just that Cloud Reader doesn't work in narrow screens :(
[14:33] <rickspencer3> o/ all
[14:33]  * rickspencer3 sips coffee
[14:33] <aquarius> hm, I think that might be a showstopping limitation. How annoying.
[14:34] <rickspencer3> aquarius, so, after your comments on my g+ post, I went back and added tests for qmltestrunner for my u1db
[14:34] <aquarius> ooh, you hero
[14:34] <aquarius> well played.
[14:34] <rickspencer3> and realized how aweful terrible and smelly my api was
[14:34] <popey> aquarius: you working on kindle cloud reader?
[14:34] <aquarius> I can't work out for the life of me how to test push notifications.
[14:34] <aquarius> popey, yep!
[14:34] <popey> I know Elleo has had that working on devices in the past
[14:35] <popey> with some significant hacks
[14:35] <aquarius> popey, really? Elleo, ping :)
[14:35] <aquarius> I have cloud reader working fine, it's just that cloud reader itself assumes your screen is wider than a phone
[14:35] <rickspencer3> I really wish I wrote the tests first :/
[14:35]  * rickspencer3 updates app for the store than refactors 
[14:35] <aquarius> this is probably why you get the "use the app" thing and they don't support cloud reader on phones...
[14:36] <aquarius> rickspencer3, yeah. This is, indeed, why to write the tests first. I get burned by this every time that I don't do that...
[14:38] <aquarius> Elleo, is there source available for erudite?
[14:40] <aquarius> Elleo, or, failing that (because it's a paid app, so no problem) how did you deal with screen width? in particular that cloud reader assumes you have a screen wider than a phone
[14:40] <rickspencer3> wow, click package build at 9:38am, update approved at 9:39am
[14:41] <popey> \o/ Robots!
[14:42] <popey> number of clicks is climbing... http://popey.mooo.com/mirror/clicks/graph.png
[14:43] <popey> bah
[14:43]  * popey stabs btrfs
[14:44] <aquarius> Elleo, aha, gitorious.org/erudite, winn0r
[14:44] <aquarius> daker, what's the best way to add custom override styles to a page opened in a QML Oxide widget? Add a user script?
[14:58] <alex-abreu> aquarius, yes you can w/ --user-agent-string= as a command line arg
[14:58] <alex-abreu> (for the custom ua)
[14:58] <aquarius> alex-abreu, ah, cool. that seems undocumented?
[14:58] <aquarius> (even in the help...)
[14:59] <alex-abreu> aquarius, you are running V?
[15:00] <aquarius> alex-abreu, hell no. 14.04 :)
[15:00] <alex-abreu> aquarius, it has not bee backported to 14.04, yet
[15:01] <aquarius> alex-abreu, ah, OK, that explains it then...
[15:11] <ssddkkaall> have a samsumg 7580 lying around; looks like a souped up rbpi can buntu be installed on this thimg
[15:29] <aquarius> yeahhhhhh! cloud reader success!
[15:49] <aquarius> huh, daker, that bug Elleo filed about dataPath is more serious than it looks, because the correct path doesn't even get *created* and so you can't save anything in it
[15:59] <Elleo> aquarius: I have a vaguely working version of erudite for UT I can send you later if you like
[15:59] <aquarius> Elleo, heya!
[15:59] <aquarius> Elleo, I've got things working here, except that the stupid datapath bug breaks things
[16:00] <Elleo> aquarius: not all of the CSS hacks from webkit work in the same way on oxide, so there's still some stuff that needs fixing after applying the scaling stuff to it (mostly dialogs go in the wrong place)
[16:00] <aquarius> Elleo, I've done the scaling slightly differently from you
[16:00] <aquarius> Elleo, but the principle is still sound, I think.
[16:00] <Elleo> aquarius: ah cool, for my app that was having those issues I just ended up manually setting the dataPath and cachePath from in the webcontext by addign a function as a C++ extension that reads the QStandardPaths stuff
[16:01] <ssddkkaall> bump
[16:01] <aquarius> Elleo, irritatingly, as far as I can tell, the correct path (/home/phablet/.cache/org.kryogenix.Seshat) doesn't even get created, so even if I explicitly point to it, things stull don't work :(
[16:02] <Elleo> aquarius: http://bazaar.launchpad.net/~michael-sheldon/cachemere/trunk/view/head:/app/ui/BrowserTab.qml#L83 and http://bazaar.launchpad.net/~michael-sheldon/cachemere/trunk/view/head:/backend/modules/Cachemere/cachemodel.cpp#L129
[16:02] <Elleo> aquarius: ah yeah, I create those paths if they don't exist elsewhere in my code
[16:02] <aquarius> I can't do that from qml :(
[16:03] <aquarius> call me Mr Irritable
[16:03] <aquarius> I wonder if it works if I do a pure web app?
[16:03] <aquarius> all I need is my custom script to fix up the styles, and a user agent override, and I believe they're both doable with a pure web app
[16:03] <Elleo> aquarius: I'm also wondering if it works if the app id is set from C++ prior to enabling the QmlEngine, you'd still need a tiny C++ wrapper for that though
[16:04] <aquarius> no C++ for me. :)
[16:04] <Elleo> aquarius: oh yeah, and friendly warning; Amazon's lawyers may pester you a bit ;)
[16:05] <Elleo> aquarius: but don't worry, they've been all bluster and no bite so far ;)
[16:05] <aquarius> Elleo, that's why it's called Seshat. :P
[16:06] <Elleo> aquarius: yeah, on my first release their IP lawyers complained about the name (Firestarter) which is why it got changed to Erudite, and then shut up when I explained it was basically just a special web browser
[16:06] <Elleo> aquarius: but on the Symbian release the head of Kindle dev stuff moaned at me too, regardless of the name
[16:06] <aquarius> orly?
[16:06] <Elleo> aquarius: and then eventually also stopped talking to me
[16:06] <aquarius> hrm.
[16:07] <aquarius> that's a bit annoying.
[16:07] <Elleo> yeah, I think part of their complaint was that I was charging for it though
[16:08] <Elleo> I asked them if they'd stop hassling me if I made it free
[16:08] <Elleo> and they just stopped responding, so I left it as it was and stopped caring
[16:13] <aquarius> Elleo, ah, right, I'm not gonna do that for this, it's too simple
[16:13] <aquarius> although I can't actually build a webapp, unusefully
[16:14] <aquarius> :-1: error: security_policy_groups_webapp (Seshat.apparmor): found unusual policy groups: debug
[16:14] <aquarius> but I do not have debug in Seshat.apparmor!
[16:14] <aquarius> grrrrrrr
[16:14] <Elleo> aquarius: that's normal
[16:14] <Elleo> aquarius: QtCreator adds that automatically when you deploy via QtCreator
[16:14] <aquarius> it's an exclamation-mark build error :(
[16:14] <Elleo> aquarius: if you go to the "Publish" page and then "Create click package" it'll make one without debug enabled
[16:15] <aquarius> and my user agent override isn't being used :(
[16:15] <aquarius> alex-abreu, is http://bazaar.launchpad.net/~webapps/unity-webapps-qml/trunk/view/head:/tests/autopilot/data/all-in-same-folder/webapp-properties.json still correct?
[16:15] <Elleo> aquarius: are you able to do CSS overrides with webapp-container? I didn't think that was possible?
[16:16] <aquarius> Elleo, according to daker and alex-abreu, yep -- I can add a user script
[16:16] <Elleo> ah, okay; cool
[16:16] <aquarius> Elleo, see http://paste.ubuntu.com/8642612/
[16:16] <aquarius> it is undocumented afaict :P
[16:16] <Elleo> aquarius: I have a feeling unity-webapps are different to webapps-container stuff
[16:16] <Elleo> aquarius: but I could easily be wrong
[16:17] <aquarius> it works, though; it's injecting my user script (yay!)
[16:17] <Elleo> ah, cool
[16:17] <aquarius> but it is *not* overriding the user agent
[16:17] <aquarius> so cloud reader barfs
[16:17] <Elleo> aquarius: I thought there was a commandline switch for the useragent with webapps-container?
[16:18] <aquarius> so did I think that
[16:18] <aquarius> there is, afaict, not.
[16:18] <Elleo> oh
[16:18] <aquarius> hence using the webapp-properties.json
[16:18] <aquarius> I might be wrong
[16:18] <aquarius> it is hard to know because there is no bleedin' documentation for this stuff :)
[16:21] <alex-abreu> aquarius, Elleo I cannot answer right (kids), but I'll get back to you a bit later (also on the datacache "bug")
[16:21] <alex-abreu> aquarius, for devtools you can override & use the oxide context devtoolsEnabled (and optionally devtoolsPort & devtoolsIp)
[16:22] <Elleo> aquarius: based on the code I think you should be able to use "--user-agent-string="
[16:22] <aquarius> alex-abreu, yep, I worked that one out abou the devtools (and wrote a little blog post about it :))
[16:22] <Elleo> http://bazaar.launchpad.net/~phablet-team/webbrowser-app/trunk/view/head:/src/app/webcontainer/webapp-container.cpp#L320
[16:22] <alex-abreu> aquarius, in the webbrtowser-app there is a flag, and the ubuntu webview  plugin uses an env var to gather the values (easier for AP) http://bazaar.launchpad.net/~phablet-team/webbrowser-app/trunk/view/head:/src/Ubuntu/Web/UbuntuWebContext.qml#L86
[16:23] <alex-abreu> Elleo, aquarius yes you can (--user-agent...), but the trick is that when you use the webapp-properties you then have to switch exclusively to it (even for ua override defs)
[16:23] <alex-abreu> which is something inconvenient I plan to fix
[16:23] <Elleo> alex-abreu: ah, didn't realise that
[16:24] <aquarius> alex-abreu, I don't think that my user agent is being set by webapp-properties.json
[16:24] <aquarius> alex-abreu, should the key be "user-agent-override" ? I think that isn't working...
[16:25] <Elleo> aquarius: I have to head out for the evening now, good luck :) it'll be very cool to have the reader stuff working nicely on UT
[16:25] <aquarius> Elleo, more news as it happens, and cheers for the pointers :)
[16:25] <Elleo> I'll be following with interest :)
[16:28] <aquarius> blimeym, I can't even find where th webapp model search path stuff even gets read
[16:40] <aquarius> alex-abreu, when you're back (no problem if you're dealing with kids, they're more important) I'd like to try and work out why my user-agent-override in webapp-properties.json is being ignored :(
[18:15] <aquarius> alex-abreu, ah. https://bugs.launchpad.net/webbrowser-app/+bug/1379497 is the problem. The user agent override just plain doesn't work :(
[18:36] <aquarius> alex-abreu, ah. Also, a web app script is not loaded into every page that loads (including iframes); it's only loaded and inserted *once*, on the first page. Is that the way it's meant to work?
[20:16] <aquarius> alex-abreu, sadly, that makes web apps which need an injected script and a ua override unpublishable, I think, because the click reviewers tools say "should not specify --webappUrlPatterns when using --webappModelSearchPath".
[20:16] <aquarius> it feels a bit like nobody's testing this stuff end-to-end. :(
[20:17] <aquarius> I know that's an unfair criticism, of course.
[20:21] <popey> perhaps that's why it's not documented?
[20:21] <aquarius> https://bugs.launchpad.net/webbrowser-app/+bug/1406643 filed anyway.
[20:22] <aquarius> popey, if that's the case, if webapps with UA overrides are just not supported yet, then OK; I'd just like someone to say "don't bother writing these for a few months". :(
[20:24] <aquarius> my amazon cloud reader app works now fine, but the click reviewers tools reject it in favour of insisting I take an approach which doesn't actually work :(
[20:30] <popey> ☹
[20:30] <popey> does it reject in the store?
[20:31] <aquarius> I don't know. I am loath to upload something to the dtore which is explicitly disallowed by the review tools, even if the review tools are wrong.
[20:31] <aquarius> I can try it, I suppose, but I'm worried it might break things.
[20:31] <popey> well the same tools run on the store to be fair so it should reject
[20:31] <aquarius> and in theory it *ought* to bin it.
[20:31] <popey> the click works though?
[20:32] <popey> you dont have to publish it
[20:33] <aquarius> hrm. The publish pane in Ubuntu SDK complains because the review tools fail. I didn't try actually building the click by hand and installing it
[20:33] <aquarius> I shall try that.
[20:35] <aquarius> ok, the click works, afaict
[20:35] <aquarius> want to try it?
[20:35] <popey> sure
[20:36] <aquarius> http://kryogenix.org/random/org.kryogenix.seshat_0.1_all.click
[20:36] <aquarius> it is possible that it doesn't work if you have to log in first, and I can't find a way of clearing a webapp's stored data :(
[20:38] <popey> aquarius: https://imgur.com/BpXCqfD
[20:38] <aquarius> what?
[20:38] <aquarius> dammit.
[20:39] <aquarius> it works for me in the emulator :(
[20:39] <aquarius> that means that the user agent override isn't being applied.
[20:40] <aquarius> and I try to apply it *twice*, once in the desktop file (which should work) and once in the json overrides file (which ought to work and doesn't because of bug #1379497)
[20:40] <aquarius> popey, can you see the console output from it, somehow?
[20:41] <popey> sure
[20:41] <aquarius> can you pastebin that?
[20:41] <popey> aquarius: http://paste.ubuntu.com/9647457/
[20:42] <aquarius> ok, so overriding in the json file doesn't work because of the bug, and overriding in the desktop file is being ignored.
[20:42] <aquarius> so, it is just flat not possible to build a webapp with an overridden user agent right now.
[20:43] <popey> bummer
[20:43] <aquarius> and it's not possible to embed oxide in a pure qml app and do it that way either because of bug #1405844
[20:44] <aquarius> so, nothin' works. Oh well. There's a day I'm not gonna get back, then. :(
[20:44] <popey> ☹
[23:40] <daker> aquarius: why ? you can set the useragent manually
[23:40] <aquarius> daker, how? not in a web app, as far as I'm aware
[23:42] <daker> aquarius: http://daker.me/2014/05/how-to-use-oxide-in-your-ubuntu-qml-application.html
[23:42] <daker> UserAgent section
[23:42] <aquarius> daker, https://bugs.launchpad.net/webbrowser-app/+bug/1405844 means that I can't use Oxide in a QML app.
[23:42] <aquarius> hence me trying to use a web app
[23:43] <aquarius> (also, this is clearly a webapp job; I don't need a qml wrapper here)
[23:43] <daker> ah yes :/
[23:51] <aquarius> daker, hence I am blocked from progress. Hence sad face. :(
[23:52] <daker> i see
[23:53] <nhaines> This is also why I can't use the Amazon Cloud Reader on Ubuntu.
[23:53] <aquarius> nhaines, that's precisely what I've been trying to fix.
[23:54] <aquarius> and I can make the cloud reader work perfectly
[23:54] <aquarius> right here
[23:54] <aquarius> it works
[23:54] <aquarius> hooray
[23:54] <aquarius> I just can't build the app which uses it because the user agent override, which works in my development version, is broken on the actual system.
[23:54] <aquarius> otherwise, it works :(
[23:55] <nhaines> aquarius: \o/
[23:55] <aquarius> http://screencloud.net/v/5GJF and http://screencloud.net/v/5GJF
[23:55] <aquarius> you are welcome to the code if you want it :)
[23:58] <aquarius> but (a) user agent overrides don't work in a webapp-properties.json file (bug #1379497), (b) you can specify a user agent override on the .desktop file Exec line but (i) that gets rejected by the click review tools (bug #1406643) and (ii) works on my 14.04 machine and in my emulator but doesn't work on popey's more up-to-date device, and (c) I can't just make my own QML wrapper because Oxide can't save any data b
[23:58] <aquarius> ecause it gets the data path wrong (bug #1405844).
[23:59] <aquarius> all paths to success are blocked.
[23:59] <aquarius> Elleo got around problem (c) by writing a small C++ thing to get the paths correctly, but I'm not doing that.