Slashdot Mirror


User: mgrimes

mgrimes's activity in the archive.

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

Comments · 4

  1. Encode your email addresses on Where Does Spam Come From? No, Really? · · Score: 1

    I'm certain most slashdot readers can wipped up there own (and there is probably a better way), but here is a quick script which will HTML encode all the email addresses in a file.

    #!/usr/local/bin/perl -pi.bak

    while( m/(\@|\&\#0?64;)([\w-\.]+)(\.|\&\#0?46;)(com|org|n et|gov)/ ){
    my $x = encode($2);
    my $y = encode($4);
    s/(\@|\&\#0?64;)([\w-\.]+)(\.|\&\#0?46;)(com|org|n et|gov)/\&\#064;$x\&\#046;$y /;
    }

    sub encode {
    my $str = shift;
    my @str = split( //, $str );

    foreach my $c (@str){
    $c = sprintf( "\&\#%03d\;", ord($c));
    }

    return join('', @str);
    }

  2. Multiple Handsets on VoIP for the Masses! · · Score: 1

    Anyone know how you would use multiple handsets with this? Do you have to rewire your house phone lines with this as the central device? Sounds like a bit of a pain.

  3. Re:One problem, and a quote... on Would You Pay A Penny Per Page? · · Score: 1

    Oops. I missed the digit. Nevermind.

  4. Re:One problem, and a quote... on Would You Pay A Penny Per Page? · · Score: 1

    Missed a digit in the math:

    8 hours/day * 60 min/hour * 20 days/month = 9,600 min/month
    1 page view every 2 minutes => 4,800 pages/month
    At a penny a page that's $480 per month!