Protein Production
293FT, 293E, CHO

Truly Functional Protein
95% Purity
1-10 mg in 2 weeks

GeneExpressoMax™
293Expresso™

Transfection Reagents
* 90% Efficiency
* 95% Viability
* No sera interference
* Simple protocol
* High-throughput
* Only $98/ml

Baculovirus
Functional Protein
95% Purity
Fast turnaround
1-10 mg from Sf9 cells

Adenovirus, AAV
& Lentivirus

ORF or shRNA
* High Titer
* Cre, FLP, ΦC31
* Protein Kinases
* Transcription Factors
* Luciferases, GFP, RFP
* Protein Production
* Stable Cell Line


Excellgen

Perl http log file parser

This is my http log file parse. It will tell you who is crawling your site. Hope you like it

#!/usr/local/perl
use strict;
my @files=<*_access.log*>;

my %address=();
my %agents=();
foreach my $file (@files)

{
    my $ggl=0;
    my $yahoo=0;
    my $cuil=0;
    my $twiceler=0;
    my $Jeeves=0;
    my $Yandex=0;
    my $legs=0;
    my $Baiduspider=0;
    my $dotnetdotcom=0;
    my $msn=0;
    my $seoprofiler=0;

    open (IN, “$file”);
    my $outfile=”$file.txt”;
    open (OUT, “>$outfile”);
    while (<IN>)
    {   
        my $orig_line=$_;
        my ($line) = $orig_line;
        #$line=~ s/\///g;
            my @arr= split (/\”/, $line);
            my $ip=shift(@arr);
            my $agent=pop(@arr);
            $agent=pop(@arr);
            @arr=split(/ /,$ip);
            $ip=shift(@arr);
            if  (exists $address{$ip})
            {
                 my $count= $address { $ip } ;
               
                $count++;
            #    print $ip .” “.$count.”\n”;
                 $address{$ip}=$count;
            }
            else
            {
                $address{$ip}=1;
                $agents{$ip}=$agent;
            }

        if ($line =~ /twiceler/ or $line =~ /cuil\.com/ or $line =~ /Yahoo\! Slurp/ or $line =~ /Googlebot/ or $line =~ /Ask Jeeves/ or
        $line =~ /Yandex/ or $line =~ /80legs/ or  $line =~ /Baiduspider/ or $line =~ /dotnetdotcom/ or $line=~ /seoprofiler/
        or $line=~ /msn.com/

)
        {

        #    print $line .”\n”;
            if ($line =~ /msn\.com/)
            {
                  $msn++;
            }
            if ($line =~ /twiceler/)
            {
                 $twiceler++;
            }
            if ($line =~ /cuil\.com/)
            {
                 $cuil++;
            }
            if ($line =~ /Yahoo\! Slurp/)
            {
                 $yahoo++;
            }
            if ($line =~ /Googlebot/)
            {
                  $ggl++;
            }
            if ($line =~ /Ask Jeeves/)
            {
                  $Jeeves++;
            }   
            if ($line =~ /Ask Jeeves/)
            {
                $Yandex++;
            }   
            if ($line =~ /80legs/)
            {
                $legs++;
            }   
            if ($line =~ /Baiduspider/)
            {
                $Baiduspider++;
            }           
            if ($line =~ /dotnetdotcom/)
            {
                $dotnetdotcom++;   
            }
            if ($line =~ /seoprofiler/)
            {
                $seoprofiler++;   
            }
        }
        else
        {
            print OUT $orig_line;
        }
    }
#    unlink ($file);
#    rename ($outfile, $file);
    print “google: $ggl, Yahoo: $yahoo, Cuil: $cuil, twiceler: $twiceler, Jeeves: $Jeeves, Yandex: $Yandex, legs: $legs\n”;
   print “Baiduspider: $Baiduspider, dotnetdotcom: $dotnetdotcom,   msn: $msn, seoprofiler: $seoprofiler \n”;
}

open (OUT, “>grant.txt”);
foreach my $key (sort hashValueDescendingNum  (keys(%address)))
{

        print OUT “$address{$key} \t $key\t $agents{$key}\n”;

}
close(OUT);

sub hashValueAscendingNum {
   $address{$a} <=> $address{$b};
}

sub hashValueDescendingNum {
   $address{$b} <=> $address{$a};
}

Tags:

March 10, 2010 at 11:49 am

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word


Sponsored Links Excellgen http://www.labsupplymall.com

Transient Protein Expression in CHO and HEK293 Cells
Transient Expression, Truly Functional Protein, 95% purity, 1~20 mg, fast turnaround. $5500, $3950
Baculovirus Protein Expression
Fast turn around, >95% purity functional protein. No outsourcing to China or India. $5500, $3950
Recombinant Lentivirus & Adenovirus
High Yield and High Titer up to 1010 (lentivirus) and 1013 (adenovirus) for Guaranteed Expression of GOI. $3000, $2500