Archive for May, 2010

Apache Config for reduced bandwidth usage

Sunday, May 30th, 2010

This snippet of an Apache config (httpd.conf) attempts to implement an intelligent caching policy in order to reduce the amount of files needlessly served. Obviously you would only want to do this once your site has moved into test or production environment. Basic tests using YSlow firefox plugin show bandwidth usage reduced by almost 90%.
(more...)

Tags:
Posted in Development | No Comments »

Reset Gnome desktop the easy way

Sunday, May 16th, 2010

I recently upgraded Ubuntu on one of machines from 9.10 (Karmic Koala) to 10.04 (Lucid Lynx). In the old version I had installed a lot of widgets, messed up the fonts, buttons – loads of things. I needed an easy way to restore/reset the Gnome desktop back to the default look and feel.

I could of course have used the gui’s to undo all the changes I made but why bother? This is Linux after all!

# cd
# [sudo] rm -rf .gnome .gnome2 .gconf .gconfd .metacity

Tags: , ,
Posted in quick tips | No Comments »

Use Quartz to schedule tasks in Spring

Friday, May 7th, 2010

Quartz is a full-featured, open source job scheduling service that can be integrated with, or used along side virtually any Java EE or Java SE application.

In this simple example (notionally checking Twitter for updates) we integrate it with Spring.
(more...)

Tags: , ,
Posted in Development, How to's | No Comments »