/srv/irclogs.ubuntu.com/2014/03/06/#ubuntu-app-devel.txt

=== chriadam|away is now known as chriadam
=== _salem is now known as salem_
oweewhat is the website..?02:17
sarnoldowee: http://developer.ubuntu.com ?02:17
oweethanks..02:19
=== salem_ is now known as _salem
=== _salem is now known as salem_
oweeis possible the layout create into other layout, with some event...?02:39
pahellwo finde ich den die UX Guidlines für Ubuntu Mobile?:)05:09
=== hyperair is now known as minefield
=== minefield is now known as hyperair
dholbachgood morning07:30
JamesTaitGood morning all; happy White Chocolate Cheesecake Day! :-D09:13
=== JamesTai1 is now known as JamesTait
achianghello, i'm a n00b when it comes to IDEs. how can i do something like have 2 projects open in qtcreator and copy files from one project to another?10:37
achiangdrag and drop doesn't work, nor does control-click present anything useful10:37
achianggoogle is failing me also10:39
* achiang randomly pokes oSoMoN 10:40
* achiang reverts back to $UMPTEEN years of caveman programming and just uses 'cp'10:49
nik90achiang: I haven't had much luck copying files from one project to the other10:55
nik90achiang: why dont you just use the File Manager for that?10:55
achiangjust seems like a pretty basic function that an IDE should provide, no?10:55
nik90I agree :)10:55
achiangnik90: well, cp is pretty easy to use too ;)10:55
nik90but you can have two projects open at the same time10:55
achiangnik90: exactly. i have 2 projects open, my project and one that i'm learning from by reading source. i wanted to just copy files from one to the other and it was... hard10:56
achianganyway. cp did the trick10:56
nik90achiang: what I do in that situation is I create a new file *using* qtcreator and then copy the contents directly10:57
Laneyis it possible to have the toolbar expanded all the time?10:57
nik90Laney: yes..set opened: true10:57
achiangnik90: i did that too, but that is super tedious when wanting to import say, 5+ files10:57
nik90with locked: true as well10:57
achiangnik90: in my case, i'm copying from the UITK, and wanted to import the Template*.qml files, of which there are 6 or so10:58
nik90achiang: the reason I do it using qtcreator is so that it automatically adds the new file to the revision control like bzr, git etc10:58
Laneynik90: aha10:58
achiangnik90: yeah, i don't mind doing that step manually too.10:58
nik90fair enough10:59
Laneynik90: seems you need locked: true otherwise it auto closes11:06
seb128Laney, opened: true and locked: true11:06
Laneyya11:06
Laneyyou can't say 'keep it open but let the user close it#11:07
Laney'11:07
seb128Laney, are you looking at the background report? I discussed that with Ken yesterday, had it on my todolist11:07
Laneyyeah, seemed simple11:07
seb128k, same reasoning here :p11:07
seb128speaking of simple, did you see my one liner to replace Text by Label?11:07
Laneyoh yeah I'll look at that in a bit11:08
seb128thanks11:08
chihchunquestion on click app, I tried to load a component (qml file) via Loader.  it works if I run it with qmlscene from /opt/click.ubuntu.com/*/current11:17
chihchunbut if I run it from unity8/launcher, it seems can not find the file11:17
chihchunwhat's the path when unity launch the program? where I can find the error output from the app?11:18
chihchunthere is not much info from ./.cache/upstart/unity8.log or ./.cache/unity-scope-click.log11:18
t1mpLaney: if you lock the toolbar, it doesn't auto-hide, and the user cannot close it11:19
Laneyyeah11:19
LaneyI was wondering if there's a way to not auto hide but also not lock it11:20
Laneybut it's not necessary in this case anyway11:20
t1mpLaney: no, we wanted the auto-hiding to be consistent among apps. So we figured if auto-hide doesn't work we would disable it in UITK for all apps11:20
t1mpand if it does work, it works like that in all apps11:20
seb128isn't the toolbar going away anyway with the new designs?11:21
t1mpseb128: yes, true11:21
t1mpseb128: the tools that are now in the toolbar will move to the header. There is still quite some work in the UITK to do to get that done, but hopefully it will all be automatic without changes in the app code11:22
seb128good11:22
t1mpseb128: yeah11:22
mihirnik90: ping11:33
mihirnik90: any idea of copying text from the label ??11:33
achiangchihchun: if all else fails, i say try a mailing list :-/11:34
achiangchihchun: i am struggling with app development too right now11:34
kalikiananik90: can we do the hangout 12:30 utc? ie. half an hour later. otherwise it clashes with my daily standup11:47
=== chriadam is now known as chriadam|away
nik90kalikiana: no problem12:00
kalikiananik90: so hangout now? if so I'll start one12:36
nik90kalikiana: go ahead12:36
=== boiko_ is now known as boiko
nik90dholbach, popey: Would it be either of you who will be hosting the u1db session?13:50
* popey checks the schedule13:51
popeydholbach: are you taking david's session today?13:51
* popey re-reads his email, yeah, dholbach is running it13:52
dholbachnik90, setting it up now13:53
nik90dholbach: ok13:54
t1mpdpm / mhall119 who will be in tomorrow's session about the new header?13:54
AlanOI may be.13:55
jcwhat?13:55
mhall119t1mp: popey I think13:58
popeyme13:58
t1mpah, I was expecting someone from the design team to show new ideas13:58
popeyyes, someone from design will be there13:58
nik90can you confirm we are live pls14:00
ahayzennik90, ur live :)14:00
nik90ahayzen: thnx14:00
KHendrikanyone else experiencing lag between audio and video?14:06
KHendrikok fixed itself14:06
=== chihchun is now known as chihchun_afk
KHendrikQUESTION: Maybe a bit early to ask but can you use U1DB from C++ or only on the qml side.14:10
KHendrikahh ok your back just leave the question for later14:10
dholbachkalikiana, maybe when you rejoin just use audio (and no video)?14:15
dholbachkalikiana, did you try another browser?14:15
kalikianadholbach: google killed my entire wlan twice now… there's usually a rare chance it happens. today it was twice in a row. and you see how long it takes to restart everything :-(…14:22
dholbachkalikiana, do you have the issue as well if you upload huge files?14:23
kalikianano, exclusively with hangouts14:23
kalikianawhich makes it rather hard to debug → propriatery blob…14:23
kalikianaI'll try to join from Firefox14:24
dholbachyeah, and maybe just use audio :/14:24
dholbach(I just asked because I had issues with constant uploads in the past, which brought down the connection)14:24
dholbachnik90, are you rejoining as well?14:25
kalikianayay firefox mixes up my accounts, need to log out of everytinhg…14:25
KHendrikuhh whats that14:25
kalikianaI'm truly sorry :-/14:26
KHendrikno problem14:26
t1mpkalikiana: you look a bit pale14:31
kalikiana:-D14:31
KHendrikthx14:31
mingError while converting /home/ming/.local/share/ubuntu-emulator/ubuntu-emulator-one/system.img: Unknown option 'compat' qemu-img: Invalid options for file format 'qcow2'.14:32
dholbachming, maybe you ask on #ubuntu-touch?14:32
mingdholbach,thanks.14:33
t1mpQUESTION: will the example app discussed be added to http://developer.ubuntu.com/apps/qml/tutorial/ ?14:34
dholbacht1mp, we absolutely should! :)14:35
KHendrikQUESTION: You mentioned at the start of the session that U1DB can use different databases in the background. How do I specify which one it uses.14:36
ahayzenQUESTION: Does U1DB use a background threads to load the models? What is the performance of U1DB like with large databases?14:46
KHendrikdholbach, as i understood it u1db might use mongodb in the background or was that a misunderstanding14:47
dholbachKHendrik, that'd surprise me to be honest14:48
KHendrikok I probably misunderstood than14:48
dholbachkalikiana can maybe clarify here, if the actual local database backend can be specified14:48
dholbachok, I was wrong then :-)14:49
dholbachthanks KHendrik for the question14:50
dholbachI missed the part on the slide :)14:50
KHendrikthank you really helpful14:50
dholbachsergiusens, are you giving the next session?14:53
sergiusensdholbach, yeah; but I am not as prepared as others; was asked to talk about this while I was on holidays and just got back today14:54
dholbachsergiusens, ok :)14:54
dholbachany last question for nik90 and kalikiana?14:57
KHendrikThank you nice session :)14:58
dholbachawesome - great you stayed with us through the technical issues :)14:58
AlanOThank you, very good session.14:59
ahayzenthanks guys :)14:59
kalikianao/14:59
kalikiana← Christian14:59
dholbachsergiusens, one sec15:00
dholbachhttp://summit.ubuntu.com/appdevweek-1403/meeting/22143/compiled-code-and-plugins-into-your-click-packages/ is updated15:00
KHendrikyou're live15:02
dholbachperfect15:04
dholbachSergio is one of the heroes of making Ubuntu on phones work, so get your questions in :)15:06
* mhall119 accepts full blame15:06
* dholbach hugs mhall11915:06
mhall119QUESTION: what "specific directories" does upstart-app-launch look in?15:07
mhall119if he can paste them in the etherpad15:09
mhall119that would help15:09
dholbachhe'll screen-share15:09
* mhall119 has good timing15:09
mhall119germans always complicating things15:10
dholbachmhall119, hippie15:11
dholbachdo we have any more questions?15:12
mhall119QUESTION: How does the click chroot know what build dependencies your app needs?15:16
elopiorenato_: I suppose you are extremely busy right now.15:18
elopioI just wanted to let you know that I replied to your message here: https://code.launchpad.net/~elopio/address-book-app/fill_form/+merge/20683015:18
elopioso please review my branches whenever you have some time.15:18
mhall119TIL: bzr clean-tree exists15:19
dholbachany more questions for Sergio?15:21
mhall119QUESTION: is click on the phone smart enough to discard the binaries for unneeded architectures15:24
renato_elopio, can we replace my function " def add_contact("  to this new stuff?15:26
renato_I want to avoid to have replicated code15:27
mhall119trojita's binary is 25M, it seems back to have a 75+MB package installed with i386, amd64 and armhf binaries15:28
mhall119s/back/bad/15:28
dholbachsergiusens, good job!15:42
mhall119thanks sergiusens15:42
ahayzenballoons, ping15:43
balloonsahayzen, pong15:43
ahayzenballoons, we were going through our active reviews and saw tht this MP is still active https://code.launchpad.net/~vthompson/music-app/artists-tab-ap-test/+merge/20198615:44
ahayzenballoons, Victor said tht he thinks it is ready but couldn't remember whether all the flakyness u had stated before had been resolved?15:44
t1mpahayzen: https://code.launchpad.net/~andrew-hayzen/ubuntu-ui-toolkit/fix-swipe-delete-002/+merge/202171 looks good for the tests that I performed15:44
ahayzent1mp, awesome :)15:45
balloonsahayzen, ohh, why lookey there. We can give it a run through and merge15:45
t1mpahayzen: can you run the autopilot tests for music-app?15:45
t1mpahayzen: or which app(s) use the swipe-to-delete?15:45
ahayzent1mp, erm we currently use a custom swipeDelete15:46
ahayzent1mp, i guess if u run them from this it'll use ur swipeDelete https://code.launchpad.net/~andrew-hayzen/music-app/reorder-support-001/+merge/20217215:46
t1mpahayzen: is there no music-app-autopilot package?15:47
ahayzenballoons, also this is still failing, i guess the fix hasn't landed in autopilot yet? or have am i doing it wrong/found another issue? https://code.launchpad.net/~andrew-hayzen/music-app/mediaplayer-simplify/+merge/20126515:47
ahayzent1mp, yes there is15:48
balloonsahayzen, indeed -- follow https://code.launchpad.net/~veebers/autopilot-qt/reintroduce-exporting-qobject-children-of-qml-items/+merge/20758115:48
ahayzenballoons, so tht has been merged does tht mean jenkins is using it?15:48
t1mpahayzen: root@ubuntu-phablet:/# apt-cache search music-app-autopilot15:48
t1mproot@ubuntu-phablet:/#15:48
t1mpahayzen: IS THE NAME CORRECT?15:48
t1mpoops. caps lock15:49
ahayzenapt-cache policy music-app-autopilot15:49
ahayzenCandidate: 1.1bzr335saucy015:49
t1mpahayzen: also on my laptop I don't see that package :s15:49
t1mpon trusty15:49
ahayzenbut i don't have it installed which is strange...oh it needs autopilot 1.415:49
* sergiusens comments that if ou use the autopilot package, it doesn't get tested as click and it would not be an indication that it would work in ci15:49
ahayzenhmm not sure wht is going on there then15:49
=== Ursinha is now known as Ursinha-afk
ahayzenballoons, Jenkins approves of the branch so is it good to go? https://code.launchpad.net/~vthompson/music-app/artists-tab-ap-test/+merge/201986/comments/49342815:53
balloonsahayzen, maybe it did merge?15:54
ahayzenballoons, if we are talking about the autopilot branch... then yes it did merge but my tests are still failing so either i'm doing something wrong or i've found another issue :/15:55
balloonsahayzen, too many branches :-) Ok so victor's old branch passed, I agree then it should be ready15:58
ahayzenballoons, ok Victor's branch i'll land...15:58
balloonsI need to just verify it still works on the device15:59
balloonsI'll do it now15:59
ahayzenok :)15:59
* ahayzen has way to many tabs open15:59
balloonsHTML5 App Debugging session is live now16:02
balloonsIf you have a question, prefix it with QUESTION: and we'll address it :-)16:03
balloonshttp://summit.ubuntu.com/appdevweek-1403/meeting/22149/html5-app-debugging/16:03
balloonshttp://youtu.be/R-9M-O2g5J816:03
=== Ursinha-afk is now known as Ursinha
aquariussergiusens, ping about your fat packages discussion earlier, which I am catching up on: http://pad.ubuntu.com/appdevweek-1403-compiled-code-and-plugins-into-your-click-packages shows that ./lib/arm-linux-gnuabihf/bin/ is added to $PATH for binaries. Is ./lib/arm-linux-gnuabihf/ added to the QML module import path?16:09
sergiusensaquarius, correct16:10
sergiusensaquarius, if you can read c, here you go http://bazaar.launchpad.net/~indicator-applet-developers/upstart-app-launch/trunk.14.04/revision/10516:12
aquariussergiusens, OK, cool: if I ship a fat package with a binary QML module for x86_64, i386, and armhf in ./lib, what do I put in "architecture" in manifest.json? Do I put "architecture":"multi" ?16:12
mhall119aquarius: I also noted that down in the pad, but I was going by the screensharing so I might be missing syntax16:13
aquariusmhall119, ya, that's why I'm asking, so I can clarify the pad :)16:13
mhall119it's not "multi" though, you list each arch16:13
mhall119but you probably need them  in [] to make it a json list16:13
aquariusah. then it might be "architecture": ["armhf", "i386", "x86_64"]16:14
mhall119though I don't recall seeing that16:14
aquariusthat's exactly why I'm asking ;)16:14
aquariussergiusens will know, and I don't want that info to be lost16:14
=== Ursinha is now known as Ursinha-afk
balloonsany questions for kyle? just prefix with QUESTION: :-)16:17
sergiusensmhall119, if you give me the link to the pad I can fix16:17
aquariusit worked when it shouldn't, kyleN, because you said --wwww not --www16:18
aquariusheh, you've just worked it out :)16:18
drodriguezpadillQUESTION: I'm setting up an authentication page that users will see when they first open my app. How would I go about setting that up in my code?16:19
=== Ursinha-afk is now known as Ursinha
balloonsdrodriguezpadill, feel free ask a follow-up questoin16:21
aquariusQUESTION: you seem to be defining a difference between an "HTML5 app" and  a "Cordova app". But the "Ubuntu SDK" IDE only lets me create an "HTML5 app". Is a "Cordova app" just an "HTML5 app" which I've added the Cordova stuff to with the menu item?16:21
ahayzent1mp, did u need any more info on the music-app autopilot?16:21
aquariussergiusens, pad is at http://pad.ubuntu.com/appdevweek-1403-compiled-code-and-plugins-into-your-click-packages16:22
drodriguezpadillQUESTION: @balloons, I'm writing my app in QML and I already have two text boxes set up (for email and password) and a button for login. 1) How can I get the Email textbox to only accept an email address as an acceptable input? 2) I want to be able to switch to a different page, but only once the users authentication credentials are correct, for example, like if one were to login to the Facebook or Gmail app. Ho16:27
drodriguezpadillw would I be able to implement that into the code?16:27
balloonsaquarius, I'll ask your question in a bit16:29
aquariusdrodriguezpadill, an example of a QML TextField which works for email addresses is http://bazaar.launchpad.net/~sil/+junk/u1files-touch/view/head:/U1Files.qml#L17916:29
aquariusballoons, no worries. :)16:29
aquariusQUESTION: how can I run an HTML5 app on the device with the --inspector argument so I can debug it on the device?16:31
drodriguezpadill@aquarius, thanks.16:32
aquariusthank you, kyleN. Being able to debug on the device is pretty critical for things like sensors, because my desktop doesn't have them :)16:34
aquariusQUESTION: is there any way of making ubuntu-html5-app-launcher do "live reload", so when I change the code in the IDE the app is reloaded automatically? This is quite common in modern web development and it's really useful.16:37
balloonsaquarius, I think Kyle is answering your question now by showing you how it works within the browser. let me know if that's not the case ;)16:41
balloonsdrodriguezpadill, it looks aquarius gave you a nice example16:42
=== bfiller_afk is now known as bfiller
aquariusballoons, sadly not. The way to do live reload is to have ubuntu-html5-app-runner patch an extra JS line into your code, and run a server which uses inotify on the files. That needs code in ubuntu-html5-app-launcher to do it, hence my suggestion that it would be helpful :)16:44
aquariusballoons, but no problem - it's probably something for me to talk to kyleN about afterwards, not during the presentation :)16:45
balloonsaquarius, k :-)16:45
balloonsahayzen, I'm still working on https://code.launchpad.net/~vthompson/music-app/artists-tab-ap-test/+merge/201986. building took a bit16:48
ahayzenballoons, no problem16:48
drodriguezpadillballoons or aquarius, maybe either of you can answer this for me, but is it possible to use an API from another website and implement it into my code?16:48
aquariusdrodriguezpadill, certainly it is. You can make HTTP requests from JavaScript with XMLHttpRequest, and so you can make connections to the website's HTTP API with that.16:49
aquariusdrodriguezpadill, note that if the website provides a JavaScript wrapper for its API then that wrapper may not work in QML, because QML is not quite a browser and has a slightly different environment.16:50
aquariusHm, I can't think of a reason why I can't poke my .desktop file to have the Exec line contain the --inspector argument, run the app on the device with Ctrl+F12 and then adb forward the port so I can use my desktop browser to debug an on-device app. It would be nice, kyleN, if the Ubuntu SDK editor did this for me though :)16:52
kyleNhttp://developer.ubuntu.com/apps/html-5/tutorials/meanings-app-html5-tutorial/16:53
elopiorenato_: I'm doing it slowly in separate branches, because every branch makes a 300+ line diff:16:54
elopiohttps://code.launchpad.net/~elopio/address-book-app/fill_form-profesional-update/+merge/20893016:54
elopiorenato_: I16:54
elopiorenato_: I'll make sure there is no duplication left. But I think it's better to keep the MPs short.16:54
aquariusThank you for the talk, kyleN!16:55
balloonsaquarius, I didn't forget your last question :-) Almost, but :-)16:56
aquariusballoons, :)16:56
kyleNaquarius, you're welcome - thanks for coming16:57
aquariuskyleN, see various musings in the scrollback as you went through the talk :)16:58
kyleNcool16:58
dakerkyleN: more http://daker.me/2013/11/web-apps-remote-debugging-on-ubuntu-touch.html16:59
aquariusQtCreator question: how does a project know what its command is to run the project? Does it read the Exec line from the .desktop file?16:59
kyleNdaker, nice. that seems to show a way to do what aquarius wanted: run on phone, debug on desktop17:00
kyleNaquarius, yes17:00
kyleNthe Exec line17:00
kyleNaquarius, actually, you are referring to running on desktop from QtC17:00
kyleNi *think* it does not use the desktop file in that case17:01
aquariuskyleN, right, that's what I'm trying to work out, to see how I might patch live-reload-ness into the project17:01
aquariusbut to do that I have to change how QtC runs the project17:01
aquariusand I don't know how QtC knows how to run a project on the desktop17:02
kyleNaquarius, you can modify how the project is run with the Run Kit support built into AtC17:02
kyleNQtC17:02
aquarius(on "debug on-device", yeah, what daker's post does is what I suggested above, which is nice, although it'd be a lot nicer if it were done as part of the run, which I'll also look at)17:02
drodriguezpadillQUESTION: Oh, I almost forgot to ask, does it matter what kit I use when developing my app, because the only kit I have installed is the Desktop kit.  Is there a Mobile kit or some sort available for the SDK?17:03
aquariuskyleN, what's a Run Kit? I looked in Tools > Options and there's something about Build & Run in there, but i can't see anything specifying the command to run a project.17:03
mhall119drodriguezpadill: sorry, that's not really on topic for this session17:03
mhall119drodriguezpadill: but maybe somebody here on IRC can answer you instead17:04
kyleNaquarius, click the Projects tab on the left. then Desktop Run. And you maybe able to create some advanced run kit settings there17:08
aquariusgnargh, I don't get it. If I click "Run" in the Ubuntu SDK, how does it know to run my app with ubuntu-html5-app-launcher? It doesn't read the .desktop file, because I've just changed that and it made no difference, and the desktop file is the only place in my project where ubuntu-html5-app-launcher is mentioned. I don't get it.17:08
aquariuskyleN, I can't even see where the *current* settings are. Projects > Build & Run > Run has an empty dropdown list under "run configuration" and "deploy locally" under "deployment" and that's it17:09
balloonsahayzen, +1 on https://code.launchpad.net/~vthompson/music-app/artists-tab-ap-test/+merge/201986 fro me17:10
balloonsmerge away17:10
aquariusnothing there mentions ubuntu-html5-app-launcher at all17:10
* aquarius is baffled17:10
kyleNaquarius, what you are trying to do is not really a supported use case.17:10
kyleNat any rate, the question would be for the sdk team.17:10
ahayzenballoons, thanks :) regarding https://code.launchpad.net/~andrew-hayzen/music-app/mediaplayer-simplify/+merge/201265 do i need to do anything or are we still waiting?17:11
balloonsahayzen, follow the MP I left in a comment. it was approved and should have landed, then veebers did more work. He'll be around in 3 hours and we can ask then17:12
ahayzenballoons, ok :) hope i haven't found another issue lol17:13
gatox_lp:~diegosarmentero/+junk/udm-plugin-examples17:14
aquariuskyleN, sure. However, what I'd like to do is work out how to change how a project is run and then work with you and the sdk team to *make* it be a supported use case :)17:15
aquariusso, on that note, bzoltan or an sdk team person, ping17:15
mhall119if anybody on IRC has a question, ask it now starting with "QUESTION:"17:25
kyleNaquarius, i think you can create a default run kit that specifies the launcher in the sdk. check out answer 2 here: http://askubuntu.com/questions/319493/debugging-html5-with-ubuntu-sdk17:30
t1mpahayzen: I approved your MR. So it should go into UITK the next time we land a new version17:31
ahayzent1mp, \o/ awesome thank you :)17:32
t1mpahayzen: thank you for the fix :)17:32
ahayzent1mp, now the music-app can remove its custom swipe delete :)17:32
aquariusQUESTION: you support http and https, right?17:33
aquariusQUESTION: (and you check the certificates?)17:33
t1mpahayzen: good :)17:34
aquariusaha! I was just about to ask how I test things with unsigned certs ;)17:36
aquariusQUESTION: if I start a SingleDownload and then my app gets suspended or killed and I restart it, does the SingleDownload progress get "reconnected"?17:38
aquariusQUESTION: if I use a SingleDownload and call .download(url1) on it, and then before that finishes I call .download(url2), does the progress show the progress of url2's download or both combined?17:41
aquariusaha! SingleDownload blocks calls to .download if it's already doing one. Cool.17:43
aquariusI can use a SingleDownload again once it's finished downloading, yes?17:43
mandelaquarius, yes17:43
aquariuscool.17:43
aquariusjust trying to understand the detail :)17:43
aquariusmhall119, ya, I meant "it refuses it" not "it hangs until it's ready" ;)17:44
aquariusI may have missed this earlier, but... is this stuff all landed? in the saucy ppa? I assume it's not on the device yet until we promote a release :)17:45
mandelaquarius, blocked by CI train17:45
mandelaquarius, landing of qt 5.2 is blocking all landings of qt code :-/17:45
aquariusmhall119, totalDownloadPercent = sum([dl.percent for dl in downloadmanager]) / downloadmanager.count :-)17:48
gatox_aquarius: yes.... that would do it :P17:48
aquariusQUESTION: if I ask to download a URL that I've already downloaded, does the DLM use ETags or conditional GET to know whether it needs to do it again, or will it always redownload it without caching?17:50
aquariusQUESTION: can I *make* it use etags? :)17:52
aquariusof course different apps would have to download17:52
aquariusbut if *my* app downloads stuff, I'd liek to be able to use ETags to not download it again if I already have it.17:52
mandellp:ubuntu-download-manager17:53
aquariusmandel, if I add, for example, an If-Modified-Since header to the request, the DLM will get back a 304 response (file is not updated) -- it would be great if the DLM understands that and just returns the previous file path!17:54
kenvandinemandel, not as bad as tedg17:54
kenvandine:-D17:54
aquariusyeah, I could do it all myself17:55
aquariusand every single app that ever downloads anything could also implement it17:55
aquariusbut it'd be nice if the DLM did it ;)17:56
kenvandineaquarius, you always want others to do it for you :)17:56
aquariusyeah, yeah, podcast widget :)17:56
aquariuskenvandine, yes, yes I do :)17:56
kenvandine:-D17:56
aquariusit is the platform's *job* to do things for me ;)17:56
kenvandineaquarius, we added a ContentType::All to ContentPeerModel... just for you :)17:56
mandelaquarius, but that means I'd have to check if the file is present in the system and is the same!17:56
mandelaquarius, ant there is no guarantee that you did not modify it17:56
aquariusmandel, sort of.17:57
mandelaquarius, so there is a security problem there17:57
mandel"kind of"17:57
mandelaquarius, sine, if you do not provide a hash of the download I cannot ensure that it was not modified and in that case you can be evil17:57
aquariusmandel, I pass you an ETag and Last-Modified. It is my job to promise that that ETAg and Last-Modified represent the file on disk, if there is one.17:57
aquariusif I lie about that then the DLM may refuse to download a new version of the file, but that's my problem ;)17:58
mandelaquarius, I have learned not to trust you ;)17:58
mandelaquarius, I think we can find a compromise, first thing, request headers and reply headers17:59
aquariusmandel, seriously, what's the failure case here? My app wants a new version of the file if one exists; I lie about the ETag; the DLM refuses to download it because it thinks it's already got it; I don't get the new version of the file,17:59
aquariusthat's it. I can only screw myself here!17:59
kenvandineas long as you aren't telling the download manager to read from your file, i don't see an issue18:00
mandelaquarius, kenvandine I will never agree to read data, so we are save in that regard18:00
kenvandineyeah...18:00
aquariusexactly18:00
kenvandineso sounds good18:00
mandelaquarius, ok, file a bug, you'll get that feature18:01
kenvandinesomeday aquarius will suggest a feature that's a bad idea18:01
kenvandinei just keep waiting :)18:01
* kenvandine is buttering aquarius up... with hopes for help solving el paso18:01
mandelaquarius, got a bug number?18:03
=== Ursinha is now known as Ursinha-afk
aquariusmandel, https://bugs.launchpad.net/ubuntu-download-manager/+bug/128890518:08
ubot2`Launchpad bug 1288905 in ubuntu-download-manager "Support Conditional GET" [Undecided,New]18:08
mandelaquarius, sweet, thx, I'll try to get that done asap18:08
aquariuskenvandine, no hints for you ;)18:09
aquariuskenvandine, some people on reddit solved it though18:09
kenvandineaquarius, is that a hint that i should go to reddit?18:10
aquariusno. :)18:10
aquariusdon't cheat. research ;)18:10
aquariusanyway I now have to head out the door!18:10
aquariusttfn all18:10
kenvandinealways a pleasure aquarius18:11
mandelaquarius, laters!18:13
=== Ursinha-afk is now known as Ursinha
=== nik|muffin-shopp is now known as nik90
=== mrgoodcat is now known as redacted
=== bfiller is now known as bfiller_afk
nik90popey: http://imgur.com/1gJcXAP23:36
nik90popey: looks like we got the design team getting ready for a blog post :P23:36
dakerhhh23:37

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