Rich is currently certified at Master level.

Name: Rich Bowen
Member since: 2000-11-05 02:32:14
Last Login: N/A

FOAF RDF Share This

Homepage: http://www.CooperMcGregor.com/

Notes: http://www.reefknot.org/ http://httpd.apache.org/ http://dates.rcbowen.com/ http://www.rcbowen.com/

Projects

Articles Posted by Rich

Recent blog entries by Rich

Syndication: RSS 2.0

29 Nov 2002 »

As part of my resolution to write something in a journal on a regular basis, I've installed Movable Type on my own server, and will continue this little experiment there. The software works better, and, besides, I'd rather run stuff on my own server. So, go there instead. http://www.drbacchus.com/journal/

29 Nov 2002 »

Folks on #apache (irc.openprojects.net) have frequently asked a question that goes something like this:

I know how to make the url http://foo.com/~user go to the user's home directory, but how do I make that happen without the ~, which looks unprofessional?

There are two standard answers to this. One, you tell them that it can't be done without creating an Alias for every user, which is technically correct. The other answer is to tell them to write some sort of magic handler that knows what users are out there, and maps requests to the correct directory. Perhaps in mod_perl?

Well, over the last few weeks, I have been doing a number of the things that I have been telling folks on #apache to do, or things that I have long claimed were trivial, and I just had not gotten around to them yet. For example, I keep saying that you can write an Apache access control thingy that would restrict access based on the phase of the moon. So last week I wrote one.

So, anyways, here is the mod_perl thing that creates magic user alises for users so that http://foo.com/user/ goes to that user's home directory. It was depressingly easy.

<Perl>
# Folks you don't want to have this privelege
my %forbid = map { $_ => 1 } qw(root postgres bob);
opendir H, '/home/';
my @dir = readdir(H);
closedir H;
foreach my $u (@dir) {
    next if $u =~ m/^\./;
    next if $forbid{$u};
    warn "$u/public_html";
    if (-e "/home/$u/public_html") {
        push @Alias, "/$u/", "/home/$u/public_html/";
    }
}
</Perl>

Yeah, that's all there is to it.

29 Nov 2002 »

Due to screwing up the training schedule (I scheduled a training class for the week containing Thanksgiving) I have a total of one person coming to training next week. Three people signed up for the Thanksgiving week training. I, being a moron, did not realize that it was Thanksgiving week. The gentlemen that signed up for the class, not being US citizens (or at least so I suspect, given their names, and, in one case, the fact that the return address was Canada) did not know that it was Thanksgiving week. They, at least, had an excuse.

So, after asking them to reschedule, I ended up with just one of them coming next week. At a discount. Because I'm an idiot.

With any luck, I won't ever do that again. It's about time to schedule another month or two of classes, so that the training schedule does not abruptly end at the end of January. Of course, not knowing for sure when ApacheCon Europe is going to be, it is a little hard to schedule March and April with any degree of certainty. I don't think I will end up going to YAPC this year (yes, I know, it is sad, but I've got to have my priorities) so that is not going to be an issue.

Please, folks, sign up for my training classes, so that I don't have to spend my days grinding out boring web applications. You know, every person that wants to put dynamic stuff on their web sites *thinks* that they are having a unique idea, but (sssshhhh, this will be our little secret) every one of them is *exactly the same thing* with different window dressing. And while it really is fun the first 18 times, after then it sort of goes downhill. Yes, code reuse and all that. And they are *just* enough different that you end up tinkering for days on the picky details.

OK, I'm done complaining. I have a good job, and I can pay the bills most months. I'd just like the 80/20 to be 80% training, rather than the other way around. Shameless self-promotion is ok here, right? http://www.coopermcgregor.com/training/ Come one, come all. OK, so it was tacky. Bah.

27 Nov 2002 »

DAV is everything I hoped, and more. In addition to being really easy to install and enable, it is really really easy to use. I'm using the 'cadaver' client, which acts like a command-line ftp program, except that it launches $EDITOR when you 'edit foo.html'.

DreamWeaver, on the other hand, lets you edit files, and appears to keep some kind of local copy of the modified files, only putting them up when you are satisfied with them.

This will, it seems, let me ditch FTP once and for all. And it fixes all the annoying permission problems that I always have with multi-developer web sites. Using some form of http auth, rather than user logins, allows me to create "logins" very easily, withouth having to create system accounts and hand *those* out like candy.

So, I sent out a company-wide email telling folks that they need to experiment with this, and that we'll be moving off FTP RSN. Yay.

27 Nov 2002 »

Having attended Greg Stein's tutorial on Dav, I came back determined to get FTP turned off on my servers for good, and replace it with DAV. Yes, I still have FTP enabled, although I suppose I should not tell you that in such a public forum. Why do I? Well, because I host web sites, and people like to create content in Dreamweaver, and then get it to the server somehow. And they are Windows and Mac users. And getting them to use ssh/scp has proved to be impossible. I've tried, for going on 3 years now, and just gotten nowhere.

But it seems to me that DAV will actually solve this problem. They can continue to use Dreamweaver, and then then can upload the content via DAV. I think that this will make me happy. I think that I will feel better about my servers, as well as the simple fact that I'll be using very cool technology.

So far I've gotten DAV running on a couple test servers, and I'm tinkering with cadaver as a client. This seems to be working remarkably well, and I should have this stuff happily in place before the end of the week.

14 older entries...

 

Rich certified others as follows:

  • Rich certified RoUS as Master
  • Rich certified wrowe as Master
  • Rich certified srl as Journeyer
  • Rich certified slive as Journeyer
  • Rich certified thom as Journeyer
  • Rich certified davidw as Master

Others have certified Rich as follows:

  • wrowe certified Rich as Master
  • RoUS certified Rich as Journeyer
  • slive certified Rich as Journeyer
  • ask certified Rich as Journeyer
  • highgeek certified Rich as Journeyer
  • srl certified Rich as Journeyer
  • cwinters certified Rich as Master
  • technik certified Rich as Journeyer
  • fxn certified Rich as Journeyer
  • davidw certified Rich as Master
  • sdodji certified Rich as Master
  • lsdrocha certified Rich as Master
  • grape certified Rich as Journeyer
  • thom certified Rich as Master
  • lars certified Rich as Master
  • petdance certified Rich as Journeyer
  • elbustancoltd certified Rich as Master
  • wsanchez certified Rich as Master

[ Certification disabled because you're not logged in. ]

New Advogato Features

FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!

X
Share this page