Category Archives: Code
do {} until is not a loop block
I just learned something… It’s very frustrating to have two very similar blocks of code where one works and the other doesn’t. The gist of my problem was this – two blocks almost exactly like the block below. do { if ($some_external_condition) { $result = subroutine(); last if !defined $result; [...]
VMUNIX Blues » FastCGI, SCGI, and Apache: Background and Future
This article came up on the TextDrive Weblog last week and I just got around to reading it. I learned some stuff from it and it really makes you think about how exactly your code gets executed when you hit a URL and some of the things going on to make that happen. Just a [...]
Testing Rails – Posting to another controller
I’ve spent a fair chunk of time this morning trying to get my functional tests on my rails app working with the login component. Here’s the result of my time, presented in the hopes that it will help someone else who’s stuck on the same thing. I’m using ModelSecurity for the user login component because [...]