/srv/irclogs.ubuntu.com/2012/10/28/#juju-gui.txt

Makyogary_poster, ping11:56
gary_posterHey Makyo.  I just realized that I was changing the card you had just changed--sorrt about that11:57
Makyogary_poster, That's okay!11:57
MakyoJust trying to distill it down to a sentence: be more efficient and keep forward momentum in exchanges.11:57
gary_posterMakyo, cool.  From my perspective, positive/encouraging attitude/atmosphere is an element as well, but that's more fuzzy11:58
Makyogary_poster, yeah, I couldn't figure out how to fit that in and still sound pithy11:59
gary_poster:-)11:59
Makyogary_poster, I think I'm fighting the lp2kanban bot on one of my cards because I missed 'in progress' and hit 'fix committed'.  Even though I changed it back, the bot seems to think it belongs in UX Review.  I'm trying again today, hopefully it'll stay12:00
hazmatgary_poster, how you feeling today?12:00
MakyoNope12:00
gary_posterMakyo, :-/ bring it up with bac12:01
gary_posterhazmat, fever broke sometime last night, but I think I feel it coming back12:01
gary_poster:-(12:01
Makyogary_poster, Alright.  Well, for now, that card still needs a review.  Should be quick.12:01
gary_posterMakyo, ok can look12:02
gary_posterMakyo, link so I can be lazy :-D12:02
hazmatgary_poster, i've got multi-vitamins and advil if its of use12:02
Makyogary_poster, https://codereview.appspot.com/677605212:02
gary_posterthanks hazmat.  I've got advil if I need it12:02
gary_posterack Makyo on it12:02
MakyoI have emergen-C, too, should it be needed.12:02
gary_posterI dunno if that helps fever.  This seems like what my older son had about two or three weeks ago.  It lasted a long time and we finally took him to the dr simply because he wsn't getting better and dr said that there was a weird virus going around.  Doesn't produce scary temperatures, but takes a while to leave.12:04
MakyoAhh, boo12:04
gary_posterthe school policy is 24 hours without a fever of 100.6 or something before you come back12:05
gary_posterI'll probably try to follow that12:05
gary_posterdon't want to get other people sick12:05
gary_posterbenji is getting me a thermometer this afternoon on his adventures12:06
gary_posterok reviewing...12:06
gary_posterMakyo, I had to read up on appcache.  What you did looks good.  Did you consider using touch rather than putting the timestamp explicitly in the file?  I think that would be simpler but maybe it is insufficient or less attractive for some reason12:20
gary_posterI'll approve with that as a question.  Either way is ok by me.12:21
Makyogary_poster, I suppose it also gives us an indicator in the file we can see from the browser if need be, but now that I think about it, that's kind of a weird case :)12:25
gary_poster:-) Up to you Makyo.  I've sent the appspot review and approving in the MP...12:25
Makyogary_poster, Thank you :)12:25
MakyoMoving over to more comfortable area, back in af ew.12:26
gary_posternp, thank you for the change.12:26
gary_postercool12:26
gary_posterMakyo, just realized downside of this approach: every branch/commit will have the appcache included13:16
gary_posterbecause file always changes on install13:16
gary_posterDon't know if touch would solve this, but it might.  Maybe it is broken in other ways though13:17
Makyogary_poster, This is true.  Research suggests that some servers will not send the manifest unless the file contents are modified, so it's a trade-off.  Its up to you all if it's one that we're willing to make, but I feel that, given that we already ignore the [revision details] entry in the code review, also ignoring the manifest should be alright.13:18
gary_posterMakyo, I see :-/13:18
gary_posterI figured it was something like that :-)13:19
gary_posterMakyo, does the appcache change mean I need to clear the cache explicitly now in dev?  I did in order to see a change to index.html13:20
MakyoNo, only if changes are made to cached files (currently only svgs)13:20
gary_posterok cool13:20
MakyoEverything else is explicitly not cached.13:20
gary_posterI wonder why I had to clear the cache to get index.html up.  Maybe it is not handled the same as our js in the server13:21
gary_poster...doesn't look like it13:21
gary_posterthat is, I don't see special casing13:21
* Makyo tests13:22
gary_posterhm, restarting server and then reloading works13:26
MakyoMake server will update the appcache.13:32
* Makyo finds: Regardless of whether you include the address of the current page in the manifest, it will be cached.13:32
MakyoSo index.html is automatically cached.13:33
MakyoBut all resources such as scripts are not.13:33
gary_posterah right13:35
gary_posterI saw that too13:36
gary_posterbut did not make the connection13:36
gary_posterMakyo, might be worth an email to group or something about the two issues: why the appcache will be part of all of our commits (unlike the revision details, this will be an annoying source of conflicts unless we can figure out a way to tell bzr to just be quiet and use the newest version...), and how to make index.html reload13:38
MakyoI know we can do  bzr resolve --take-other app/assets/manifest.appcache though that is an extra step.  I'll read up on it.13:40
MakyoOr shelve before commit.13:45
MakyoOr the appcache target could do the shelve.13:46
Makyogary_poster, ^^^13:46
gary_posterMakyo, interesting.  The last option wouldn't help though, would it?  Seems like that would update the file and then immediately hide the change, which isn't what you want.  shelving before a commit would work but for this bzr revert would seem more appropriate...  Makyo, here's another idea.  Instead of modifying in place, we have a manifest.appcache.in.  the makefile adds the timestamp to that file and puts copies it to the expected place.  We bzr ig13:52
gary_posternore that generated file13:52
gary_posterwhat do you think of that one?13:52
gary_poster(so, IOW, manifest.appcache.in never has a timestamp and is only modified by devs; and manifest.appcache is only generated, and ignored by bzr)13:53
gary_poster(and has a timestamp)13:53
Makyogary_poster, I see.   Then if we make a change, just copy the .appcache.in to the .appcache, and make will add the timestamp13:54
Makyo?13:55
gary_posterMakyo, or just rerun make appcache: if the Makefile says that .appcache depends on .appcache.in, then it will know to regenerate the .appcache when .appcache.in changes13:55
* Makyo nod, tests.13:56
gary_posterMakyo, actually now that I am in Makefile frame of mind, I suggest that you make a change like this one also, just to be more proper and to help with this kind of thing...one second, making changes for a pastebin13:57
gary_posterMakyo, https://pastebin.canonical.com/77359/ .  I have no idea if the actual cp/sed approach I sketched there works.  My main point is that appcache should be a phony target, pointing to the real file as a target, which points to the .in file.  With the changes I gave in that pastebin, the assumption is that the .in file would live in the same directory as the Makefile.  Don't have to do that, but it was the easiest thing to do for a sketch14:01
gary_posternotice I put appcache in .PHONY14:01
gary_posterThat is 100% untested :-)14:01
Makyogary_poster, That's basically what I was working on, just using $(APPCACHE).in 14:03
gary_posteroh, yeah, that's nicer14:03
gary_posterwell, as long as it is ok to serve the .in :-)14:04
gary_posterI'm sure it is, just slightly messy14:04
gary_posterI'd lean towards not serving the .in myself14:04
MakyoThat's fine, then14:04
MakyoSeems to work pretty well.14:06
gary_postercool14:06
MakyoSo then bzr add manifest.appcache.in; bzr rm app/assets/manifest.appcache; add 'app/assets/manifest.appcache' to .bzrignore ?14:07
gary_posteryes, and you can spell the last step as bzr ignore app/assets/manifest.appcach if you want to14:08
gary_posterbut they are equivalent14:08
MakyoAh, cool.14:08
Makyogary_poster, Thanks for the help!14:10
gary_posterMakyo, cool, thank you.  Another topic: I made a change that is just slightly too big for a self-review, in my own estimation, but maybe if you approve it I can squeeze it in. :-)  Pastebin is here: https://pastebin.canonical.com/77360/ .  Main question for you is how offended you are by the "required"/"valid" hack I used to get what I wanted without JS14:12
MakyoI don't know how I made it so long before having to do anything with make14:12
gary_posterheh14:12
gary_posterMaybe I'll still put it in for review, but I'd still like to know what you think14:12
gary_posterMy make-fu is a lot higher since I joined Canonical.  It's a finicky program, but within a certain class of usage I think I can treat it as "simple" :-)14:14
Makyogary_poster, I think it looks good, personally.  I think all of the browsers we're aiming to support will take :valid14:16
gary_posterok cool Makyo thx14:16
Makyogary_poster, reproposing to get another look.  Added an appcache-force so that if someone updates the index.html file but not the manifest, they can just run that and it will do the update14:30
MakyoGonna grab a walk around the open space before it gets dark.  Will resubmit/email after a +114:38
* Makyo returns, colder.15:10
gary_posterMakyo, sorry was away from computer.  Just approved with two trivial suggestions.15:57
gary_posterWhere "away" == about three feet away, granted15:57
gary_posterBut I have the computer muted :-)15:57
Makyogary_poster, Thanks :)  Will do those and submit before we get a bunch of manifest.appcache things.15:57
gary_postergood idea15:58

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