Monthly Archives: January 2008

Squid and Rails caching

At Vquence our Rails setup looks something like this. ———— ——— ———— | Internet |—->| Squid |—->| Mongrels | ———— ——— ———— (Who needs Inkscape when you have ASCII art) This infrastructure is hosted in the US and up until recently squid hadn’t been doing much of anything except really sitting there. Now a few [...]

Google Analytics new tracking code

As I was setting up a new site in Google Analytics today I discovered that there is now new tracking code you are supposed to use. The old code is now unsupported. Your javascript snippet should now look something like. var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”); document.write(unescape(“%3Cscript src=’” + gaJsHost + [...]

Rails, ActiveRecord, MySQL, GUIDs and the rename_column bug

Since I wasted over 4 hours of my life today working my way through this problem I feel the need to share. Since it seems to be the in thing in the Web 2.0 space, just to be cool, we use GUIDs to identify different objects in our URLs at Vquence. For example my randomly [...]

Elastix and VMware

Took the plunge today to update my asterisk server. I’ve been using asterisk for about 5 years now and am pretty adept and manipulating its cryptic configuration files but I wanted to move to more of an appliance. I decided to give Elastix a try. These days I virtualise all my boxes on a VMware [...]