Prefixing The Mongrel

Posted on September 27th, 2006 in Technology by minter

I’ve got three different blogs on lunenburg.org (mine, Holly’s, and the kids’), all running the Typo Rails-based blog package.

I had traditionally been running them under the Apache FastCGI environment, which I’d had some “random crash” problems with. FastCGI also appears to be running out of favor with the Rails community in favor of Mongrel, a native Ruby web server written specifically for Rails. I’m using Mongrel, with Apache mod_proxy’ing requests back to it, on the Mr. Voice website.

But when I tried to use it on my blogs back in July, I ran into a problem. My blogs are in subdirectories off of the lunenburg.org URL space, but Mongrel was assuming that they were running in a top-level URL space. Throw Apache’s proxying on top of that, and things just flat didn’t work. If I had changed the URL to “wade.lunenburg.org” it would have worked, but “www.lunenburg.org/wade/” didn’t. I asked about it on the Typo list and Scott Laird, one of the lead Typo developers, confirmed that it wouldn’t work, but said that he had sent in a patch to Mongrel to allow a —prefix flag that might solve the problem.

I saw the other day that a new Mongrel had been released, so I installed the gem and checked it out. Lo and behold, there was the —prefix flag. I set up the mod_proxy rules, started Mongrel with —prefix /wade, and it worked! Looks like I can kiss FastCGI goodbye!

For reference, I start Mongrel in my blog directory like this:

mongrel_rails start -e production -d -p 4002 -a localhost --prefix /wade

(that starts Mongrel in production mode, daemon form, port 4002, bound to localhost (so you can’t get to it from teh intarwebs directly), and with a /wade URL prefix.

Then, in Apache, I have these three rules:

  ProxyPass /wade http://localhost:4002/wade
  ProxyPassReverse /wade http://localhost:4002/wade
  ProxyPreserveHost On

And that’s it! Now when you hit this blog, you’re actually going against the Mongrel webserver, instead of FastCGI.

Stanley And Me

Posted on September 18th, 2006 in Sports by minter

Ok, this ruled. Carolina Hurricanes season ticket membership (or at least splitting a seat) has its privileges. Seriously, one of the coolest things I’ve done. It’s The Cup. What more needs to be said?

North Carolina, C’Mon And CVSup

Posted on September 8th, 2006 in Technology by minter

Like FreeBSD? Love CVSup? Hate the fact that it’s written in Modula-3, a language that nobody in their right minds would use, and a half-hour compile for one package?

Well, there’s a new port in town. Install the “net/csup” port and get a cvsup client written in C. Same great functionality, .001% of the bloat of net/cvsup. I just ran it on my supfile and it worked fine.

Thanks to Mark for finding it.

Knowing Your Target Audience

Posted on September 7th, 2006 in Politics by minter

Somehow, and I’m not sure if it was random or David has been up to his practical jokes again, but I’ve been subscribed to the Republican National Committee email list (under Holly’s name, in fact) for a while, so I get to see the missives they send out to the loyal right-wing faithful. They sent this scare piece out today:

Dear Holly ,

Impeachment. Cutting and running from the War on Terror. Key defense systems dismantled. Tax cuts repealed. Speaker Pelosi.

That’s what America could look like one year from now if Democrats take the majority.

Seriously? Do you promise? Because that’s sounding a lot better than cold-war-Soviet-esque secret prisons.

I don’t think they’re getting the expected reaction from me.

Comedy Goons

Posted on September 7th, 2006 in Improv by minter

Going for the Gordie Howe Hat Trick.

31

Posted on September 6th, 2006 in General by minter

The odometer clicked over another digit today, and I had the day off to celebrate! I worked on Monday doing some system upgrades that were better handled with nobody in the office, and in return got my birthday off.

I got to sleep late (waking up for good at 9:31), and then got my cards and presents from Holly and Hayley. There was a T-shirt that referenced an improv joke, the News & Observer’s Hurricanes Stanley Cup book, and (finally) the NHL Hurricanes Stanley Cup DVD. After that, we went out and got a small secondary desk for my office, allowing me to get some crap off the floor. Holly had gotten me some fixings, so lunch involved me making sushi (tuna rolls) for the first time in ages. The island in the kitchen was quite nice for this – I had the rice cooker on one end, the rolling mat on the other, and the intermediate steps in between.

We headed out again after lunch to get a couple more office organizers, and while we were up north of town, we took the opportunity to walk and drive through the Wake Forest “historic downtown” area. Very pretty, though not a lot there.

We came home and Holly started fixing my dinner (corned beef and cabbage) and dessert (homeade lemon meringue pie). While that was cooking, I took Hayley out to see if any of the neighborhood kids were playing. One of our neighbors, 4-year-old Madison, her older sister, and some other older kids were playing, so Hayley joined in. Then another girl, three-year-old Claire, came by on her bike, so Hayley got me to get her bike and they rode together for a while.

After dinner, I finished putting together the furniture (with Holly’s help), and then watched the Canes DVD’s primary feature. We still won, which was good.

With a couple of birthday threads, calls and emails from the family, and the traditional rendition of “Happy Birthday” from my Mom, it’s been a great day!

Back to the real world tomorrow.

Year Of The Round

Posted on September 5th, 2006 in Politics by minter

Here in Wake County, the latest brouhaha dominating the news, now that Duke Lacrosse has gone away, is the Wake County School Board’s plan to gain more student seats without building more schools by converting a number of elementary (and a smaller number of middle) schools from the traditional (aka “We all work on the farm during the summer”) calendar to the year-round (aka “We live in the 20th Century”) calendar.

As with any plan, there are pros and cons involved, but in this case, there’s a small but vocal group of parents who are, quite frankly, completely losing their shit. I’m talking Jerry Springer style. I’m amazed we haven’t seen chairs thrown at a school board meeting yet.

It all started when people noticed that Wake County, which is experiencing explosive population growth, didn’t really have enough space for all the kids who were moving in. So the school board did their calculating and came up with a number. A large number, but a number nonetheless. They figured that in order to build enough traditional-calendar schools to keep up with the growth just in the near term, they’d need a, say, $1.1 billion bond. So they ran some polls and tests with the voters, and found that voters would not support a school bond that large, and would vote it down in November. They didn’t poll me, but hey, sampling methods and all that. And voters seemed equally unwilling to put up with a more direct tax hike to finance the school building. The school board slashed a few hundred million off of the bond until they got down to a number that studies showed might pass.

So given that information, the school board still needed a few thousand more seats in order for children to have, y’know, a place to sit. So they had two choices – sprinkle magic pixie dust over the existing schools to have them magically grow more seats overnight, or convert schools to the year-round calendar.

For those who aren’t familiar with the year-round school concept, it’s pretty simple. The traditional school year (September-June-ish, with three months off in the middle of the summer) is a relic of a century ago, where the strong-backed young’uns had to go home to the fields to work the crops, and couldn’t be bothered with fancy-pants “book learning” during those months. But now, especially in urban areas like Raleigh, it just means that school buildings sit empty for 1/4 of the year, and kids have this massive break to forget everything they learned in the previous grade.

The year-round school concept, though, divides kids into four “tracks.” At any given time (barring holidays), three tracks are in the school and one track is on break. The school year runs roughly in four 12-week blocks, so a kid on a given track is in class for nine weeks of the 12, with a three-week break at some point during that time. So the kids go the same number of days, except they get more frequent, smaller breaks, and the school is in operation all year (thus the clever name). It boils down to a building running a year-round calendar can get ballpark 33% more students educated than the same building on a standard calendar.

So, great, right? Year round schools. Everybody wins. The school system can manage more students with the same number of buildings. The financial tightwads can avoid building schools. And the kids can work in an environment more conducive to learning than to picking tobacco. How can you go wrong?

Well, you can go wrong by having rabid parents screaming in school board meetings that “Help! Help! I’m being oppressed!” They loudly state that their lives will be unable to recover if little Johnny has to go to a year-round school. They wave studies “proving” that adding more year-round schools will somehow send the Wake County economy into a tailspin. They say that the school board is removing “school choice” from them by forcing their child to go year-round (of course, in my old house, I was zoned to a traditional-calendar school, and if I wanted Hayley to go year-round, I’d have to apply to one of the few year-round schools in the area, with a slim chance that I’d get picked). They rail about child care problems, as if they live in a world where child care options wouldn’t adapt to the new schedule, instead saying “No, I don’t think I’ll make money any more. This whole calendar thing is too tough. Sorry.”

There’s no hard data, but I’m willing to bet that this same vocal group shares quite a bit of overlap with the voters who wouldn’t pay the bond price to build enough traditional-calendar schools. So that’s a credibility hit right there. So as someone who has been following the issue for a while now, I’m seeing a substantial amount of vitrol from the anti-year-round side, but no workable solutions.

The school board voted today to turn 19 elementary schools into year-round. Good on them. Barring the inevitable lawsuit from a disgruntled parent, that should put the matter to rest. The anti-year-round faction is promising consequences and reprocussions at the ballot box in November, but I’m thinking that come Election Day, they’ll find out how small their vocal minority really is. Until then, though, expect regular news reports about the sky, and the rate at which it’s falling.

Simple Pleasures

Posted on September 5th, 2006 in General by minter

Man, I’d forgotten just how good a seared rare tuna steak was. Grilled one of those up last night as a pre-birthday dinner. I’m still thinking about it today.

I need to cook those more often.