Archive for August, 2007

Get Apache Serving Static Files With Prefixed Mongrel

Wednesday, August 22nd, 2007

I decided to run AltLaw.org under a “/v1″ URL prefix. It’s still beta, and the URL structure will likely change in the future. I don’t want to break 160,000 links when that day comes. Fortunately, Mongrel makes this pretty easy with the –prefix option to mongrel_rails.
I added –prefix ‘/v1′ to my mongrel_rails [...]

Darcs with Capistrano for Rails

Wednesday, August 22nd, 2007

I’ve used Darcs as my only version-control system for a while now. When I got into Rails, I naturally wanted to use Capistrano. Unfortunately, Darcs and Capistrano don’t get along too well. Darcs’ file-based repositories don’t mesh well with Capistrano’s assumption that the repository is accessed through a server, a la Subversion.
I [...]

The Price of Fame

Tuesday, August 21st, 2007

After the New York Times’ premature announcement of AltLaw.org — I don’t mind, publicity is good — I discovered the downside of getting linked, even indirectly, from a major site. I woke this morning to find 632 bounced spam messages in my inbox sent from spoofed “@stuartsierra.com” addresses. Gotta update my catch-all email [...]

Apache Proxy for Rails Returns 403 Forbidden

Monday, August 20th, 2007

Trying to set up Apache2 as a proxy for mongrel on my new Ruby on Rails server, following the instructions on the mongrel site. I kept getting “403 Forbidden” errors on every request. I found a comment that seemed to describe the same situation. Sure enough, editing /etc/apache2/mods-enabled/proxy.conf to change “Deny” to [...]

Rails Sucks, Long Live Rails

Friday, August 17th, 2007

Wowsers. I just spent two nail-biting, hair-pulling days getting Ruby on Rails running on a new dedicated server. What’s the deal here? I spent the first six hours trying to get Capistrano to work with darcs. Then I gave up on Capistrano.
I didn’t know anything about Mongrel, nginx, Lighttpd, or any [...]

Stretching LaTeX

Saturday, August 11th, 2007

I recently picked up The LaTeX Companion, 2nd Edition. It’s… dense. It shows a lot of amazing things LaTeX can do, but also highlights its weaknesses.
Most of these weaknesses have to do with the legacy of TeX itself. For example, it’s difficult to flow text around objects, because TeX determines line widths [...]

Beyond Syntax

Wednesday, August 1st, 2007

From a 1995 paper on intentional programming: “Present day syntax had [sic] been predicated on a character stream that could have been input from punch cards, or teletypes.” Exactly! Why are we still working in a punch-card manner on million-pixel displays? Why are we still arguing about curly brackets versus parentheses when [...]