Load Time Weaving with Spring, AspectJ, and Tomcat

I’m currently working on a project that has given me the lovely opportunity to revisit the holy hell that is Tomcat. It’s fine and all, but it can be a real bitch to you. So I have a fine mix of JPA 2 (via EclipseLink 2.0.0), Spring 3.0.0, and AspectJ 1.6.6 running on Tomcat 6.0.20. I have been trying to get persisted HttpSessions to autowire with AspectJ injecting Spring beans back into the JSF beans (also managed by Spring) when the sessions were deserialized. Things look kind of like this…

[Read the rest of this entry...]

AOL Can’t Get Anything Right

I saw some retarded shit in my access log that looked like another spam bot that needed to be blocked, but after a little research, it seems to be a semi-legit piece of garbage called Surphace. After a very brief bit of research, it appears as though AOL is responsible.

I was initially worried about what kind of atrocity they would subject us to when my wife said that AOL renamed themselves again. Relief soon settled in. Learning that they had lived up to their reputation, I was told the new name was a word that sounds like a-hole.

I had thought that all of the stupid VCs were done chasing stupid ideas with stupid names, but I guess they’re still at it. Oh! Wait! Maybe they were on to something! Surphace has a URL shortener! … and surphing! I wonder if it’s too late to sell a flaming bag of shit to some VC firm (or AOL). It would be better than this thing.

[Read the rest of this entry...]

More Amazon Showcase Antics

The Amazon Showcase widget inlines the randomized selection from your showcase, so that’s basically incompatible with a “super cache” if you still want the random behavior. This little patch makes the selection asynchronously so you still get the expected behavior. Included is an .htaccess to allow requests to the php script for those of you who have your wp-content and/or plugins locked down.

[Read the rest of this entry...]

W3 Total Cache + eAccelerator

I was toying around with the W3 Total Cache for its minification and supposed ability to combine CSS and JavaScript and decided to smoosh eAccelerator user cache support into it since the authors have been postponing it for a while. eAccelerator is common enough that it should be supported, at least until the project dies or PHP 6 comes out with integrated APC. It was pretty simple work and it only took about 20 minutes. I borrowed a snippet or two of code from WP Super Cache Plus, what I currently use and am mostly satisfied with.

[Read the rest of this entry...]

CDN Rewrites Plugin for WordPress

I had been using Apache mod_rewrite to do redirects to CoralCDN, but all of the extra requests seemed to have been destroying page load performance. I have opted for rewriting the static content references with the CDN Rewrites WordPress plugin. It almost got the job done. I didn’t want it rewriting anything for requests local to the server, so I had to make some changes…

[Read the rest of this entry...]