Thursday, 2010-02-25

paroneayeanathany, nkinkade, JED3: okay, I got it to work!00:00
nkinkadeWhat did you do different?00:00
paroneayeaWell for one thing I set it so that it wrote index.html instead of __index.html, which was silly to do in the first place00:01
paroneayeasecond, I set the apache conf up like this:00:01
paroneayeaRewriteCond %{REQUEST_URI} ^/licenses00:01
paroneayeaRewriteCond /cc.engine-cache/%{REQUEST_FILENAME} -f00:01
paroneayeaRewriteRule ^/licenses/(.*) /cc.engine-cache/\1 [L,P]00:01
paroneayeaRewriteRule ^/licenses/(.*)$1 [L,P]00:01
paroneayeaand that seems to work great.00:01
paroneayeaproof that it is using the cached-on-disk version when possible, because I abused this one's cached copy:
paroneayeathx for your help everyone.00:02
nkinkadeI'm still a little confused as to why rewrite rules are necessary at all.  I thought nathany's cache shim was be more or less transparent.00:03
paroneayeait is, if you want to allow it to drop to python00:03
paroneayeaso, if the request *does* hit python, it will serve the cached-on-disk file from python instead of going through the logic00:03
paroneayeathe idea is though that it shouldn't even have to if the file is there00:03
paroneayeabecause apache can serve it directly, and apache is faster at that kind of thing.00:04
paroneayeathis was nathany's plan from the start btw, I am not just tacking on extra complexity because I think it is a good idea.  Though I do think it is a good idea. :)00:05
nkinkadeAh, now I see what you mean.  Thanks for the explanation.00:05
nkinkadeIf it hits python, then cc.engine will write the file.00:06
paroneayeaand if it hits python and the file is there, python will do the same thing that apache is doing currently, but the thing is why bother when apache can do that kind of thing faster00:07
paroneayeaoh :<00:08
nkinkadeMakes good sense.00:08
paroneayeaI may be wrong.  It might be being served by cc.engine atm.  Damn.00:08
nkinkadeLet's just be sure that Varnish is caching all those files ... cookie stuff, etc.00:08
paroneayeaRewriteCond %{REQUEST_URI} ^/licenses00:08
paroneayeaRewriteCond /cc.engine-cache/%{REQUEST_FILENAME} -f00:08
paroneayeaRewriteRule ^/licenses/(.*) /cc.engine-cache/\1 [L,P]00:08
paroneayeaI think that second rule doesn't work maybe?00:08
nkinkadeNot \100:09
paroneayeayes that is one thing00:09
paroneayeaalthough that still doesn't fix it00:09
paroneayea <- works this second00:10
paroneayeabut if I kill the server...00:10
paroneayea no longer loads00:10
paroneayeait should load because apache should be serving the cached file right now even though paster is down00:10
paroneayeaoh... duh.00:11
paroneayeaokay, closer:00:11
paroneayeamissed the ! in front of the -f00:12
paroneayeanow it works but has a permission error.00:12
paroneayeathat's probably easily fixed.00:12
paroneayeacwebber@a7:/var/www/$ ls by-sa/3.0/ -l00:14
paroneayeatotal 2400:14
paroneayea-rw-r--r-- 1 cwebber cwebber 21358 2010-02-25 00:03 deed.ko00:14
paroneayeait *should* have permission I think..00:14
paroneayeain fact it opens when loaded like so:
*** nathany has quit IRC00:16
paroneayeankinkade: any thoughts on that permission error?00:18
nkinkadeparoneayea: One sec.00:22
*** luisv has quit IRC00:24
nkinkadeparoneayea: Where are you getting the perm error?00:38
nkinkadeFrom your Apache via your browser?00:38
nkinkadeparoneayea: Example URL?00:40
paroneayeawhich should route the same as above actually00:41
akozaknkinkade, around?00:44
nkinkadeakozak: Yes.00:44
akozakcould I get you to add one line into the cc wiki LocalSettings? $egMapsDefaultGeoService = 'geonames';00:44
akozakI'd do it but I don't think I have access00:44
akozakmaybe that should be google...00:45
akozakno let's not rely on them00:45
mralexgeonames' data is CC licensed00:45
akozakah excellent00:46
nkinkadeakozak: Added.00:47
akozakthanks nkinkade00:47
nkinkadeparoneayea: Can we look at this tomorrow?  It's nearly 8PM here and I'm thinking about getting some dinner.00:50
nkinkadestaging:/choose is down, too.00:50
nkinkadeRelated to this stuff?00:50
paroneayeankinkade: yeah, I took it down to see if caching would work without cc.engine up00:50
paroneayeaI'll put it back up for now then00:50
akozaknkinkade, man I keep forgetting about est :/00:50
paroneayeabrought it back up00:50
nkinkadeparoneayea: Thanks.  I look more into first thing tomorrow.00:51
paroneayeacool, talk to you then00:51
paroneayeaI'm gonna head out too00:51
*** JED3 has quit IRC01:03
*** JoiIto has quit IRC01:32
*** mralex has quit IRC01:35
*** pyrak has quit IRC01:38
*** pyrak_ has quit IRC01:39
*** akozak has quit IRC02:12
*** jgay has quit IRC02:23
*** augustinas has quit IRC02:25
*** Odemia has joined #cc02:41
*** pyrak has joined #cc02:57
*** pyrak has quit IRC03:11
*** pyrak_ has joined #cc03:14
*** pyrak_ is now known as pyrak03:22
*** pyrak_ has joined #cc04:35
*** pyrak_ has quit IRC04:37
*** luisv has joined #cc04:41
*** pyrak has quit IRC04:48
*** JoiIto has joined #cc05:19
*** luisv has quit IRC05:35
*** JoiIto has quit IRC06:02
*** wormsxulla has quit IRC06:39
*** Odemia has quit IRC06:47
*** Odemia has joined #cc06:49
*** wormsxulla has joined #cc06:58
*** JED3 has joined #cc07:02
*** Kaetemi has joined #cc07:09
*** Kaetemi has joined #cc07:09
*** JoiIto has joined #cc08:08
*** JoiIto has quit IRC08:14
*** JoiIto has joined #cc08:16
*** JoiIto has quit IRC08:21
*** sama has joined #cc08:32
*** JED3 has quit IRC09:08
*** Kaetemi has quit IRC09:28
*** shellac has joined #cc09:46
*** Anotia50 has joined #cc10:01
*** Anotia50 has left #cc10:09
*** shellac has quit IRC10:27
*** shellac has joined #cc10:29
*** TDJACR has quit IRC10:57
*** TDJACR has joined #cc10:58
*** TDJACR has quit IRC11:05
*** TDJACR has joined #cc11:08
*** TDJACR has quit IRC11:15
*** TDJACR has joined #cc11:21
*** TDJACR has quit IRC11:27
*** TDJACR has joined #cc11:28
*** TDJACR has quit IRC11:35
*** TDJACR has joined #cc11:36
*** shellac has quit IRC11:42
*** TDJACR has quit IRC11:42
*** shellac has joined #cc11:43
*** TDJACR has joined #cc11:51
*** BjornW has joined #cc12:09
*** terraces has quit IRC12:10
*** lotia has quit IRC12:10
*** terraces has joined #cc12:15
*** lotia has joined #cc12:15
*** Kaetemi has joined #cc12:29
*** Kaetemi has joined #cc12:29
*** k1k0 has joined #cc12:58
*** k1k0 has left #cc12:59
*** shellac has quit IRC13:01
*** anttil has quit IRC13:56
*** shellac has joined #cc14:26
*** tvol has joined #cc14:33
*** shellac has quit IRC14:59
*** shellac has joined #cc15:00
*** paroneayea has quit IRC15:03
*** anttil has joined #cc15:25
*** Kaetemi has quit IRC15:33
*** paroneayea has joined #cc15:34
*** shellac has quit IRC15:51
*** shellac has joined #cc16:00
*** wormsxulla has quit IRC16:17
*** wormsxulla has joined #cc16:37
*** nathany has joined #cc16:45
*** oshani has joined #cc16:46
paroneayeankinkade: ping16:49
*** oshani has joined #cc16:49
*** JED3 has joined #cc17:23
nkinkadeparoneayea: Hi.17:25
nathanynkinkade, thanks for double checking that validation thing17:26
nkinkadenathany: No problem.  At first I assumed it would validate and that he was doing something wrong, but his wording made me sense that perhaps he knew what he was doing, so I did that test to be sure.17:27
nathanyi'm pushing a fix to production now, going to test and reply17:27
*** Kaetemi has joined #cc17:27
nkinkadeparoneayea: Were you pinging about the rewrite stuff?17:27
nkinkadeI'll look at that now, unless you've already fixed it?17:27
nathanyparoneayea, nkinkade, do you still need my eyes on that?17:28
nkinkadenathany: I don't believe so.17:28
nathanyok, great :)17:28
JED3so i guess this is why style="border:none" is used in the standard licenses?17:29
nathanyJED3, probably17:30
*** Kaetemi has quit IRC17:32
*** Kaetemi has joined #cc17:34
nathanyparoneayea, I think you'll get an email, but I just created a ticket for you in roundup re: CC0 metadatra17:51
nathanyparoneayea, also, can you make sure that roundup has your email address as an alternate? I'm assuming it doesn't right now, which is why you weren't auto-assigned17:52
nathany(er, auto-nosied)17:52
*** mralex has joined #cc17:54
*** shellac has quit IRC17:54
*** oshani has quit IRC17:57
*** oshani has joined #cc17:59
paroneayeahey (was at lunch)18:16
paroneayeanathany: ok, looking18:16
paroneayeankinkade: so yeah, that's what I was pinging you about earlier18:17
paroneayeaI've marked the specific part in creativecommons.conf with # nkinkade, look here18:18
paroneayeaRewriteCond %{REQUEST_URI} ^/licenses18:20
paroneayeaRewriteCond /var/www/{REQUEST_FILENAME} !-f18:20
paroneayeaRewriteRule ^/licenses/(.*) /cc.engine-cache/licenses/$1 [L,P]18:20
paroneayeaRewriteRule ^/licenses/(.*)$1 [L,P]18:20
paroneayeaso if you see, that first block should be catching files that have been cached18:21
paroneayeaand the second should direct it to cc.engine's process if not18:21
paroneayeahowever, currently the first *always* catches18:21
paroneayeaunless you comment it out18:21
paroneayeathen the second does pick it up at least18:21
paroneayeaso I'm not sure why it catches when there's a case where there's no file, like so:18:21
nkinkadeparoneayea: I'll look now.18:22
paroneayeankinkade: thx18:23
*** sama has quit IRC18:24
nkinkadeparoneayea: Did you uncomment the RewriteLog rules?18:25
paroneayeaoh, they look uncommented, though I didn't do it myself18:26
paroneayeaI didn't know those were there18:26
nkinkadeparoneayea: Ugh.  They were uncommented, and a RewriteLogLevel of 7 is pretty intensive.  I wonder how long it's been uncommented. :-/18:28
nkinkadeparoneayea: In any case, !-f matches in this case, but you send it to fetch the static file anyway.18:29
nkinkadeI think you need to remove the negation for this to work the way you want.18:29
nkinkadeYou only want to fetch the cached file if ^/licenses && exists($file)18:30
paroneayea! negates it then?18:30
nkinkadeYes, ! is a negation operator.18:30
nkinkadeI'll remove it now since I've already go the file open.18:30
nkinkadeparoneayea: ^^18:30
paroneayeaI just did18:30
nkinkadeWhat are you using to edit?  Emacs?18:31
nkinkadeAh no wonder we aren't getting errors that someone has the file open.18:31
nkinkadeIt fetches the file now.18:31
nkinkadeCan you verify now that the cached file is actually be fetched and not being retrieved from cc.engine?18:32
paroneayealooks like actually it's failing in the opposite way now18:35
paroneayeaokay, yes, when you see it, that's because it's hitting cc.engine18:35
paroneayeaonce it writes the file and caches it18:35
paroneayeait won't open the file18:35
paroneayea <- note that this won't open, but the file is there18:35
paroneayeaoops, I think you may have just removed it then I refreshed18:37
nkinkadeparoneayea: Try it now.18:53
paroneayeankinkade: :)18:54
paroneayealooks good18:54
paroneayeaI need to fix the encoding it looks like, but other than that looks great18:54
nkinkadeparoneayea: Check the [PT] directive here:18:54
nkinkadeThey specifically mention using mod_rewrite in conjunction with mod_alias and other such aliasing modules.18:55
paroneayeathanks so much for your help nkinkade :)18:56
nkinkadeNo problem.  mod_rewrite problems can be really difficult to solve.18:57
paroneayeait has been a learning experience for sure :)18:57
nkinkadenathany: The path-based auth for subversion seem that it will carry along with it the need for us to update the auth file every time we add a new svn user.  Not a huge deal, but one more thing to do and keep track of.  Does that bother you at all?19:06
nathanynkinkade, is that the auth file just for that branch, or for the whole repo?19:07
nkinkadenathany: It can be for pretty much anything.19:07
nkinkadeBut once you decide to use path-based auth, you are locked into it, from what I can tell.19:07
nathanynkinkade, got it19:08
nathanynkinkade, you know, that sounds annoying19:08
nathanyi think we should just give him write access19:08
nathanyit's version control, after all -- we can always roll back19:08
nkinkadeThat means we'll need to create a group called something like 'full-access' then add all of us to that group, then dole out other perms to others.19:08
nathany(and we get commit emails)19:08
nathanynkinkade, I say let's not create another layer to deal with19:08
nkinkadeDo we get commit emails for all subversion commits?19:09
nathanynkinkade, yes19:09
nathanycc-commits list19:09
nkinkadeThe top of that page has a large section on why not to use path-based auth.19:09
nkinkadeThey also point out that spurious or malicious commits are easy to roll back.19:09
nkinkadeI'll just give Leo full access.19:10
nathanynkinkade, thanks19:10
nkinkadeWe'll go from there.19:10
nathanysounds good19:10
*** greg-g has quit IRC19:15
*** paulproteus has quit IRC19:16
*** oshani has quit IRC19:27
*** greg-g has joined #cc19:58
*** oshani has joined #cc20:00
*** paulproteus has joined #cc20:06
*** paulproteus has quit IRC20:11
*** paulproteus has joined #cc20:11
*** tvol has quit IRC20:12
paroneayeaa package is down, and it is preventing me from running buildout20:13
paroneayeatime to switch to virtualenv mode20:15
*** cB- is now known as CharelB20:26
*** Kaetemi__ has joined #cc20:33
*** Kaetemi has quit IRC20:34
*** Kaetemi__ has quit IRC20:36
nkinkadenathany: What are the dates you will be gone in last April, again?20:46
nkinkadeI'm looking at booking my travel for CiviCon.20:46
nkinkadeNevermind, I just looked at your calendar and referred back to the thread with Dave Greenberg.20:50
*** Kaetemi__ has joined #cc21:00
*** Kaetemi__ is now known as Kaetemi21:03
nathanynkinkade, great; basically right up to CiviCon21:08
nkinkadenathany: So I'm thinking that in that case it's less important that I try to be in the office for longer since you won't be there anyway, right?21:08
nathanynkinkade, civicon is on a thursday iirc, right?21:09
nkinkadenathany: Yeah.21:09
nathanyyeah, so if you're able to be in the office friday, that'd be great21:09
nkinkadeIs there anything we need to cover on Friday, for example?21:09
nkinkadeI can do that.21:09
nathanynot that i know of now, but i'm sure it'd be good to check in f2f21:09
*** pyrak has joined #cc21:21
*** Kaetemi__ has joined #cc21:55
*** Kaetemi has quit IRC21:56
*** oshani has quit IRC21:58
*** BjornW has quit IRC22:29
nkinkadeIn the CiviCRM bug tracker:  CRM-5866    WON'T FIX    Google Maps broken in IE622:39
nkinkadenathany: Did something change in the config of code/issues?  When I reply via email to an issues, I myself get my own reply sent back to me.  Do you know offhand if there is a config to not mail a nosy person if they were the ones who sent/submitted the message?22:43
nathanynkinkade, i don't know of any config change; i noticed that as well...22:44
nkinkadeNot a big deal, and sometimes it's useful when I submit the comment directly through issues.22:44
nathanyi thought there was a config flag, and that we had it set to not send the submitter an email... now i'm not certain22:44
nkinkadeI guess I want it when I submit a comment via the interface, but don't when I submit one via email.22:45
nkinkadeI want it all how I want it when I want it!  Dammit.22:45
*** TDJACR has quit IRC23:16
*** TDJACR has joined #cc23:16
paroneayeaJED3: I uploaded a new cc.license with get_valid_jurisdictions23:28
JED3awesome, thx23:28
*** gbraad has joined #cc23:30

Generated by 2.6 by Marius Gedminas - find it at!