I recently installed Trac to replace a crawling WebSVN install, and wanted to keep the modified files diff links generated on the CCNet build report.

To enable this I changed the webUrlBuilder Url to…

<project name="MyProject.Trunk.Continuous">
  ...
  <sourcecontrol type="svn">
    ...
    <webUrlBuilder type="websvn">
      <url>http://trac.myserver.com/MyProject/changeset/{1}{0}</url>
    </webUrlBuilder>
  </sourcecontrol>
  ...
</project>

…which now matches the url required to show file differences in Trac.

I’d never heard this until I listened to John Mayer’s Where The Light Is album on Spotify. Loving the tuning and the harmonics!

Smile!

06 March 2009

smiliesSpotted these in John Lewis last weekend :D

How the hell…?

I’ve just stumbled across a problem with using the AJAX $.post() wrapper in jQuery 1.2.6 and Firefox 3.

If you call…
$.post('/do/something.handler');
…jQuery doesn’t seem to generate a Content-Length header and causes IIS to return a HTTP/1.x 411 Length Required error.

To fix this, I’m adding an empty data array…
$.post('/do/something.handler', {});
…which now generates a Content-Length: 0 header and returns the correct response from IIS.

Not sure if this is fixed in jQuery 1.3+ or occurs in other versions of Firefox, but the above seems to fudge it in this scenario.