uPortal IRC Logs-2009-12-03

[05:57:14 EST(-0500)] * philosophia (n=rjm@dsl081-138-013.chi1.dsl.speakeasy.net) has joined ##uportal
[08:11:59 EST(-0500)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined ##uportal
[08:16:42 EST(-0500)] * athena (n=athena@adsl-75-58-127-15.dsl.wlfrct.sbcglobal.net) has joined ##uportal
[08:33:42 EST(-0500)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined ##uportal
[08:48:12 EST(-0500)] * philosophia (n=rjm@dsl081-138-013.chi1.dsl.speakeasy.net) has joined ##uportal
[09:07:49 EST(-0500)] * philosophia (n=rjm@dsl081-138-013.chi1.dsl.speakeasy.net) has joined ##uportal
[09:29:13 EST(-0500)] * jessm (n=Jess@c-71-232-1-65.hsd1.ma.comcast.net) has joined ##uportal
[09:33:54 EST(-0500)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined ##uportal
[09:58:48 EST(-0500)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined ##uportal
[10:06:09 EST(-0500)] * lennard1 (n=sparhk@wsip-72-215-204-133.ph.ph.cox.net) has joined ##uportal
[10:06:14 EST(-0500)] * holdorph (n=holdorph@wsip-72-215-204-133.ph.ph.cox.net) has joined ##uportal
[11:32:08 EST(-0500)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined ##uportal
[11:42:41 EST(-0500)] * Sememmon (n=Sememmon@unaffiliated/sememmon) has joined ##uportal
[11:51:24 EST(-0500)] * colinclark (n=colin@142.150.154.101) has joined ##uportal
[12:00:32 EST(-0500)] * colinclark_ (n=colin@142.150.154.130) has joined ##uportal
[13:06:55 EST(-0500)] <athena> EricDalquist: does this sound like a reasonable caching rule for css/js files?
[13:07:06 EST(-0500)] <athena> *.aggr.min.js: long-term
[13:07:17 EST(-0500)] <athena> *.min.js: short-term (5 min, whatever)
[13:07:27 EST(-0500)] <athena> *.js: not cached, since this probably corresponds to dev-mode
[13:07:37 EST(-0500)] <athena> (for uPortal, not for the resource server)
[13:07:40 EST(-0500)] <EricDalquist> yeah
[13:07:43 EST(-0500)] <EricDalquist> I think so
[13:07:44 EST(-0500)] <athena> ok
[13:07:55 EST(-0500)] <EricDalquist> you can probably do 30 min for *.min.js
[13:08:02 EST(-0500)] <athena> thinking maybe i'll just write something that uses delegating filter to talk to something that has a spring configuration like that?
[13:08:05 EST(-0500)] <athena> that sounds reasonable
[13:08:16 EST(-0500)] <EricDalquist> yeah
[13:08:27 EST(-0500)] <EricDalquist> I just talked about the same thing with Nick yesterday
[13:08:38 EST(-0500)] <EricDalquist> spring delegating filter in web.xml on .js/.css
[13:09:00 EST(-0500)] <EricDalquist> then the real filter in the app context to do the more complex rules
[13:10:35 EST(-0500)] <EricDalquist> I think I might update the weather portlet to version its images dir
[13:10:38 EST(-0500)] <EricDalquist> and set caching
[13:10:52 EST(-0500)] <EricDalquist> the weather images are kind of big and there can be a lot of them
[13:11:11 EST(-0500)] <athena> that sounds like a really good idea
[13:11:24 EST(-0500)] <athena> i really wish we had less CSS images in the default theme
[13:11:39 EST(-0500)] <athena> especially since they're not really cached longterm
[13:11:39 EST(-0500)] <EricDalquist> need sprites (big grin)
[13:11:43 EST(-0500)] <athena> yeah, i know (smile)
[13:11:46 EST(-0500)] <athena> would be really nice!
[13:11:49 EST(-0500)] <EricDalquist> aren't they from silk?
[13:11:55 EST(-0500)] <EricDalquist> via the RS?
[13:11:56 EST(-0500)] <athena> no, just the little icons
[13:11:59 EST(-0500)] <EricDalquist> oh
[13:12:04 EST(-0500)] <athena> the backgrounds and such are all custom
[13:12:21 EST(-0500)] <athena> the mobile theme uses all the cool webkit directives, so no images there really
[13:13:04 EST(-0500)] <EricDalquist> ah
[13:13:46 EST(-0500)] <EricDalquist> yeah CSS image sprites really aren't that difficult
[13:13:54 EST(-0500)] <athena> yeah
[13:14:06 EST(-0500)] <athena> wish i understood some of that better
[13:22:07 EST(-0500)] <athena> so EricDalquist do you want me to go ahead and write that filter, or is nick already doing something similar?
[13:22:19 EST(-0500)] <EricDalquist> you can
[13:22:25 EST(-0500)] <athena> ok
[13:22:25 EST(-0500)] <EricDalquist> I don't think Nick has plans to do it
[13:22:32 EST(-0500)] <athena> ok, sounds good
[13:22:38 EST(-0500)] <athena> wanted to make sure we're not duplicating work
[13:22:45 EST(-0500)] <athena> plenty of work to go around, no need to do stuff twice (wink)
[13:23:29 EST(-0500)] <athena> i imagine this filter should probably be in the resource server project?
[13:23:36 EST(-0500)] <EricDalquist> yeah
[13:33:27 EST(-0500)] <athena> hmm
[13:33:43 EST(-0500)] <athena> do we need to do something similar to what you did w/ the CacheExpirationFilter's cached headers?
[13:34:12 EST(-0500)] <EricDalquist> what was that?
[13:34:43 EST(-0500)] <athena> it generates the long-term cache header, then sets it to an instance variable
[13:34:48 EST(-0500)] <athena> and periodically re-generates it
[13:34:56 EST(-0500)] <athena> so that every request doesn't re-calculate the header
[13:35:00 EST(-0500)] <EricDalquist> ah yeah
[13:35:38 EST(-0500)] <athena> maybe we could have something like that and only use the cached value if the cache age is set to something reasonably long?
[13:35:39 EST(-0500)] <EricDalquist> its really too bad that SimpleDateFormat is so expensive to create AND not threadsafe
[13:35:43 EST(-0500)] <athena> no kidding
[13:36:00 EST(-0500)] <EricDalquist> it should work for any case
[13:36:04 EST(-0500)] <athena> i mean, it'd be bad if we only generated the headers every 5 min and the cache time was set to 5 min, or whatever
[13:36:14 EST(-0500)] <EricDalquist> it updates the header 1/second
[13:36:18 EST(-0500)] <athena> oh!
[13:36:26 EST(-0500)] <athena> ok, then i guess it really doesn't matter
[13:36:29 EST(-0500)] <EricDalquist> private long regenerateHeadersInterval = 1000;
[13:36:30 EST(-0500)] <EricDalquist> yeah
[13:36:35 EST(-0500)] <athena> we just need to save a header for each path, i guess
[13:36:51 EST(-0500)] <EricDalquist> right
[13:36:54 EST(-0500)] <athena> or for each age, really
[13:37:04 EST(-0500)] <athena> since multiple paths might have the same cache timeout value
[13:37:12 EST(-0500)] <EricDalquist> just use a ConcurrentHashMap<Integer, String>
[13:37:31 EST(-0500)] <athena> sounds good
[14:14:36 EST(-0500)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined ##uportal
[14:28:28 EST(-0500)] * athena (n=athena@adsl-75-58-127-15.dsl.wlfrct.sbcglobal.net) has joined ##uportal
[15:16:37 EST(-0500)] <EricDalquist> athena: any insight on http://www.ja-sig.org/issues/browse/UP-2457
[15:17:43 EST(-0500)] <athena> hm, that looks like a duplicate of another issue i marked as can't duplicate
[15:18:58 EST(-0500)] <athena> here we go - http://www.ja-sig.org/issues/browse/UP-2524
[15:19:16 EST(-0500)] <athena> i dont' think i have IE8 installed though
[15:19:45 EST(-0500)] <EricDalquist> ok
[15:19:50 EST(-0500)] <EricDalquist> I'll see if I can give it a try
[15:20:00 EST(-0500)] <athena> thanks!
[15:20:06 EST(-0500)] <athena> let me know if it really is broken
[15:20:24 EST(-0500)] * colinclark (n=colin@142.150.154.130) has joined ##uportal
[15:23:46 EST(-0500)] * colinclark_ (n=colin@142.150.154.101) has joined ##uportal
[15:57:31 EST(-0500)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined ##uportal
[16:24:34 EST(-0500)] <EricDalquist> athena: I see the add content issue in IE8 on 3.0
[16:24:46 EST(-0500)] <EricDalquist> do you know the name of the servlet that generates the XML?
[16:24:54 EST(-0500)] <athena> oh, ick.
[16:24:56 EST(-0500)] <athena> yes
[16:25:00 EST(-0500)] <athena> it's a spring controller
[16:25:26 EST(-0500)] <athena> ChannelListController
[16:25:35 EST(-0500)] <athena> wonder if we just need to tell the js it's looking at xml
[16:25:41 EST(-0500)] <athena> can you tell what the problem is?
[16:25:54 EST(-0500)] <EricDalquist> I don't see a ChannelListController in 3.0 ...
[16:26:45 EST(-0500)] <EricDalquist> ok ... tracked it down RetrieveChannelListServlet
[16:27:28 EST(-0500)] <EricDalquist> looks like the content type is getting set ...
[16:28:32 EST(-0500)] <athena> oh, sorry, i didn't realize this was 3.0
[16:28:36 EST(-0500)] <athena> then yeah, that's probably the problem
[16:28:46 EST(-0500)] <EricDalquist> well it is getting set
[16:28:53 EST(-0500)] <EricDalquist> response.setContentType("text/xml; charset=UTF-8");
[16:29:01 EST(-0500)] <EricDalquist> and firebug shows that too
[16:29:19 EST(-0500)] <EricDalquist> IE just gives me a generic "Invalid argument." error
[16:29:39 EST(-0500)] <athena> hm
[16:29:49 EST(-0500)] <athena> try adding an "xml" parameter to the end of the ajax request
[16:30:02 EST(-0500)] <EricDalquist> ok
[16:30:07 EST(-0500)] <athena> to explicitly tell it to parse the result as xml
[16:43:12 EST(-0500)] <EricDalquist> huh
[16:43:13 EST(-0500)] <EricDalquist> $("#contentAddingDialog").parent().parent().css("z-index", 12);
[16:43:17 EST(-0500)] <EricDalquist> that appears to be the culprit
[16:43:48 EST(-0500)] <athena> oh, hm.
[16:44:12 EST(-0500)] <athena> but it's only causing problems in IE8??
[16:44:35 EST(-0500)] <EricDalquist> trying replacing z-index with zIndex
[16:56:04 EST(-0500)] <EricDalquist> hrm
[16:56:04 EST(-0500)] <EricDalquist> that's not it
[16:56:13 EST(-0500)] <EricDalquist> I think it might be a jquery-ui bug now ...
[17:07:38 EST(-0500)] <EricDalquist> athena: what version of jquery ui does 3.0 use?
[17:07:57 EST(-0500)] <athena> probably 1.6?
[17:08:04 EST(-0500)] <athena> it's a few versions back
[17:08:14 EST(-0500)] <athena> it's definitely the z-index that's the issue?
[17:08:19 EST(-0500)] <athena> if you set some other css prop is it ok?
[17:09:04 EST(-0500)] <EricDalquist> so it actually looks like when it calls $("#contentAddingDialog").dialog('open')
[17:09:27 EST(-0500)] <EricDalquist> I see in the debugger in jquery dialog js "uidialog.css(z-index,++maxz)"
[17:09:37 EST(-0500)] <EricDalquist> and maxz appears to be NAN
[17:17:09 EST(-0500)] <EricDalquist> :/
[17:22:34 EST(-0500)] * athena (n=athena@adsl-75-58-127-15.dsl.wlfrct.sbcglobal.net) has joined ##uportal
[18:03:28 EST(-0500)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined ##uportal
[19:04:11 EST(-0500)] * lennard1 (n=sparhk@wsip-72-215-204-133.ph.ph.cox.net) has left ##uportal
[21:42:10 EST(-0500)] * colinclark (n=colin@bas2-toronto09-1176131079.dsl.bell.ca) has joined ##uportal