Why is Apache SO annoying?

Posted by Sam

I guess I've been getting spoiled by LiteSpeed's excellent web server lately because after working with Apache for about an hour I'm thoroughly annoyed. Why do you need to tell Apache that you are going to use it for virtual hosting? Seriously? Every web server I've seen in the last seven or eight years has been configured for virtual hosting. Does Apache still need a directive for that? And why on earth does the entire web server fail to start when you forget to create a directory for the log files? At most I could see not starting that site. And that's at most. I didn't realize how annoying Apache is until I switched to something else. IIS is just as annoying, just in different ways. LiteSpeed on the other hand is outstanding. For those of you jumping through Mongrel and Apache hoops for your Rails deployments I strong recommend you look at LiteSpeed. It's much nicer and a LOT faster than Apache.

Tags: litespeed apache

MySQL Replication Adapter for Rails

Posted by Sam

A few weeks ago Rapleaf released an adapter to handle MySQL replication inside Rails. Many Ruby on Rails users will remember a while back Dr Nic released Magic Multi-Connections that allowed Rails applications to talk to more than one database at a time.

I have to say that I much prefer the syntax of the Rapleaf adapter. In my mind it's a better way to handle MySQL slaves. Although I do have a couple of complaints. For starters, MySQL Replication Adapter is just that. A MySQL Replication Adapter. I'd like to see the same code available for all databases. Dr Nic's Magic Multi-Connections gem does it and it seems like something that should be database agnostic. My other nit pick is that you must use the syntax below to send queries to your slaves. MyModel.find(:all, :use_slave => true) I like that using the slaves for all reads isn't an all or nothing affair, but it seems to me that most of the time this is the behavior that you would want when you have this type of environment. So my suggestion is to turn, :use_slave => true, into the default behavior and override it as necessary. Just my two cents. But overall I'm very happy to see that Rapleaf is making an excellent contribution to the scalability of Rails apps.

Tags: rubyonrails

Very impressive snowflake

Posted by Sam

Perhaps the most visible part of my job is keeping dozens of web sites up and running. Some of them are very high profile sites and some of them are very obscure. One of the most surprising sites is a site that my company (Barkley) did several years ago. It's called Make-a-Flake. Year after year it continues to get millions of hits with no marketing of any kind.

The basic idea behind the site is that it tries to replicate the paper snowflakes we all made as kids in grade school. If you've used the site you know how difficult it can be to make a very coo flake and even more difficult if you are trying to recreate a particular design or image. And that brings us to a flake I came across today. The flake is below and if you've ever watched South Park you know exactly what the creator of the flake was making. I count no less than five distinct images carved into this snowflake and the main image is that of Kyle from South Park. Go try and make a snowflake and you will really being to appreciate how difficult this snowflake truly is. Have other great snowflakes? Leave them in the comments.

Kyle Broflovski snowflake

Tags: web

Microsoft's answer to the iPhone

Posted by Sam

Below is a video of Microsoft's answer to the iPhone. It's called the zunePhone. Microsoft hasn't had great success copying Apple but maybe this one will be different. Yeah, probably not.

Tags: humor

Pictures from Vienna and Paris

Posted by Sam

I finally got pictures up from our trip to Vienna and Paris. You can find pictures the Paris pictures here and the Vienna pictures are here or you can just click through to the pictures section.

Tags: travel photos