Slashdot Mirror


User: Melvin

Melvin's activity in the archive.

Stories
0
Comments
7
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 7

  1. Re:Quick stats. (Try two) on Hotmail about to collapse under load · · Score: 1

    Shoot. The code didn't copy correctly. Try this.

    #!/usr/bin/perl -w
    # Written by Greg Flanders
    # Usage check.pl http://host.to.check.com

    require LWP::UserAgent;

    use strict;

    my $ATTEMPTS = 1000;

    my ($count, $ua, $request, $response, $serv);

    for (my $i=1; $i<=$ATTEMPTS; $i++) {
    $ua = new LWP::UserAgent;
    $request = new HTTP::Request('HEAD', $ARGV[0]);
    $response = $ua->request($request);
    $serv = $response->headers->server;
    if($serv =~ /unix/i){
    $count++;
    }
    }
    printf("Percentage of apache boxes is %f\n", ($count / $ATTEMPTS) * 100);

  2. Quick stats. on Hotmail about to collapse under load · · Score: 1

    Here's a little program I whipped up (with some help from mud99 at #perlmonks) to check the load balancing.

    After 1000 attempts, I got the following results.

    bash$ check.pl http://lw7fd.law7.hotmail.msn.com
    Percentage of unix boxes is 19.700000

    bash$ check.pl http://www.hotmail.com
    Percentage of apache boxes is 90.000000

    Go ahead and try this at home. (Warning! Quick hack!)
    #!/usr/bin/perl
    # Written by Greg Flanders
    # Usage check.pl http://host.to.check.com

    require LWP::UserAgent;

    my $ATTEMPTS = 1000;

    my ($count, $ua, $request, $response, $p, $serv);

    for (my $i=1; $irequest($request);
    $serv = $response->headers->server;
    if($serv =~ /unix/i){
    $count++;
    }
    }
    printf("Percentage of apache boxes is %f\n", ($count / $ATTEMPTS) * 100);

  3. Re:Give Emacs a Chance! on Why Develop On Linux? · · Score: 1

    I'm VIMmer myself, yet I seem to be more and more compelled towards starting on the long leaning curve to start figuring emacs out. I just keep hearing about all the features, and I want to try it. (How come no one complains about feature creep in Emacs?)

    Anyway, how do you do compiling/debugging windows with vim, like you can do with emacs? Or do you just use different xterms?

  4. How many people use paper docs w/ Linux? on Are Printed Manuals Dead? · · Score: 1

    I'm curious to see how many people here use a lot of documentation when using Linux/[insert your favorite open source operating system here]. It seems to me that we've been slowly weened on man pages and online documentation, especially since most distributions include most of their documentation on the cd's they ship with.

    If we expect so much printed documentation from big software houses, why don't we get good manuals with our distributions?

    I'm not really complaining since I do mostly net installs of most linux boxen, I have just noticed that I very rarely have any paper books in front of me for any of my software packages, primarily because I use open source packages. The books I do use are third party books, like Advanced Perl programming etc.

  5. Samples? on World Wide Web "Shrinking" · · Score: 1

    This article begs the question of how this polling was done. I've always held such surveys in low opinion. How can something as eclectic and democratic as the web be polled without a great degree of error.

    I'm sure a great deal of people visit the same sites, but I'm curious how big of a pool would need to be sampled before this could be reasonably measured.

  6. Still can't get in. on IBM Releases VisualAge for Linux Preview · · Score: 1

    Are there *still* a ton of people trying to get at this? I've been trying for the last half hour or so, (it's now 4:30 CST) and I'm just waiting.

    You'd think IBM's site would be better than this. I can't believe it!

  7. okay, I'll type some more... on Everyone and Their Brother Opens a Linux Site · · Score: 1

    I'd imagine most linux users have switched quite a few win users from the dark side. It kinda comes with the territory. I've probably done 8 or 9 people.


    greg