5 Oct 2010

Groovy Cross-Domain AJAX functionality

On my current project we have a couple instances of Tomcat running various bits and pieces of our code. If there is a difference in port or protocol between your two controllers, you're going to have issues with cross-domain ajax requests. In order to alleviate the problems, simply add to each function you're testing:

response.setHeader("Access-Control-Allow-Origin", "*")
response.setHeader("Access-Control-Allow-Methods", "GET")
response.setHeader("Access-Control-Allow-Headers", "Content-Type")
response.setHeader("Access-Control-Max-Age", "86400")

13 Jul 2010

Todo.txt and Dropbox Sync Issues

I was having some problems with Todo.txt and Dropbox syncing on my Mac. Mainly, Geektool and editing tasks or modifying the file created a temp file, which was being sync'd over and over, everytime either Geektool would refresh the file or I would add or edit tasks. To alleviate this, instead of keeping the four text files in my actual Dropbox folder, I threw them in ~/todo/ and created symbolic links inside ~/Dropbox/Documents/todo/. Tada, no more sync problems.
24 Jun 2010

A-B Testing

Just read a nice little article on A-B testing;

I'd never thought of applying it to such simple little web development changes. 
21 Jun 2010

Google Command Line

I'll have to remember to check out the new google command line tool when you can use it to search, I'm feeling lucky or send quick emails...until then it seems kind of useless to me.
14 Jun 2010

SHRINKING