Thursday, July 26, 2007

Ping Pong Comes to Revolution


Yesterday after work we moved Ben's ping pong table into the office.







Tuesday, July 24, 2007

Mongrel ESI

Thought it would be a good time to share this. Mongrel ESI, is a little project I've been working on for a few months now. It provides a simple means of caching views. You can include cachable fragments in a page by using the <esi:include tag.


<esi:include src="/some/action_fragment"/>


You can invalidate fragments by using the <esi:invalidate tag


<esi:invalidate output="no">
<?xml version="1.0"?>
<!DOCTYPE INVALIDATION SYSTEM "internal:///WCSinvalidation.dtd">
<INVALIDATION VERSION="WCS-1.1">
<OBJECT>
<BASICSELECTOR URI="#{invalidate_url}"/>
<ACTION REMOVALTTL="0"/>
<INFO VALUE="invalidating action"/>
</OBJECT>
</INVALIDATION>
</esi:invalidate>



The cache server works as a proxy server. To configure how it proxies, modify the config/routes.yml


insurance:
host: 127.0.0.1
port: 3001
match_url: ^\/(special_app).*
default:
host: 127.0.0.1
port: 3000



The command line interface is a clone of mongrel_rails. To start


mongrel_esi start


It only implements a small subset of the ESI spec, but it's a pretty useful subset IMO...

Sunday, July 01, 2007

Amazing Whale and Dolphin!

I've seen dolphins while out in the ocean, but this is incredible!

Reading list