logo
Jun
27

Cuteness with Commons-Http: proxies and user-agents

I’ve been wanting to add a custom User-Agent to groovyblogs.org for a while, so you know from your logs when I’m coming by to poll. It’s not easy to find sample code on this one, but the API does cover it just fine: def client = new HttpClient() def clientParams = client.getParams() clientParams.setParameter( org.apache.commons.httpclient.params.HttpClientParams.USER_AGENT, ...
Jun
25

Transparently Feedburning Pebble with UrlRewriteFilter

I’ve been looking for a chance to play with UrlRewriteFilter for a while.. and I’ve finally found my opportunity. A colleague has been talking up FeedBurner as a very swish feed stats crunching and decoration site, so I was keen to take it for a spin. I was asking how to handle the fact that you would need all your clients to add the new feed address? He mentioned that WordPress can do this...
Jun
20

Less is More: Migrating from Grails 0.2 to 0.5.6

My very first grails app was a simple SMS gateway called CyaThen.com. It was mostly developed on Grails 0.1 and then later migrated to 0.2 beta before the go live in August 2006 . It’s proved very useful for SMSing workmates to remember their squash gear. Anyways, I did a rebuild on the app with Grails 0.4.2 so I could deploy it to Glassfish, but it was pretty unchanged from it’s 0.1 Grails...
Jun
15

Upgrade to Glassfish 2, slash your bandwidth usage by half

I’m a couple of days into making the switch from Glassfish v1 UR1 to Glassfish v2 beta-2 and I’ve gotta say that, even at beta level, this is a compelling upgrade. There are tons of improvements in v2 (including first class clustering support), but there were two compelling features for me personally in v2 to make me move over to the new beta: Http Compression Support Much improved Virtual...
Jun
4

Setting up a WebDAV Server on Glassfish

I’ve always wanted to have a tinker with WebDAV, but never really had a good excuse to have a look at it. Since I’ve had to get up to speed with Maven, I’ve finally had a reason to get a WebDAV server happening locally for a few developers to share a repository. Turns out that running a WebDAV server on Glassfish (or whatever app server you like) is a snack thanks to the good folk at the...

logo
Powered by WordPress | Designed by Elegant Themes