Google AdSense 網域廣告非常重視商標所有人的權利。我們希望所有廣告客戶、使用者和商標所有人都瞭解 Google 審查 AdSense 網域廣告聯播網中商標侵權案件的程序。如果 Google 發現任何包含商標 (或類似拼字) 的網域名稱,便會將該網域從 AdSense 網域廣告聯播網中移除。
所以如果想要用與知名網站類似的網域名稱來使用 AdSense for Domains,也許會被移除吧
The incoming mail will be posted to a Mantis project named ‘PROJECT’ on behave of user ‘REPORTER’. The mail subject will become the bug summary and the mail content will become the bug description.
Note that this script does not understand MIME multipart encoding and may have problems on mail contents besides plain-ASCII encoding.
#!/usr/bin/perl# mantis-mail-gateway.pl# Mantis Mail Gateway# Shen Cheng-Da (cdsheen AT gmail.com)# require DBI to connect MySQL database# http://blog.urdada.net/2008/11/11/95/use DBI;use POSIX qw(strftime);my$db_host='localhost';my$db_name='mantis';my$db_user='monitor';my$db_pass='monitorpass';my$debug=0;my$db="dbi:mysql:dbname=${db_name};host=${db_host}";die"Usage: $0 [project-name] [reporter]\n"unless@ARGV>1;my$project_name=$ARGV[0];my$reporter_name=$ARGV[1];my$dbh;my$sql;my$sth;my$project=-1;my$reporter=-1;$dbh= DBI->connect($db,$db_user,$db_pass)||die'ERROR: '.$dbh->errstr;$sql="SELECT id,name FROM mantis_project_table
WHERE name LIKE '$project_name'";$sth=$dbh->prepare($sql)||die'ERROR: '.$dbh->errstr;$sth->execute()||die'ERROR: '.$dbh->errstr;while(@data=$sth->fetchrow_array()){$project=$data[0];}$sth->finish;die"ERROR: project \`$project_name' does not exist\n"unless$project>0;print"project: $project_name ($project)\n"if$debug;$sql="SELECT id,username FROM mantis_user_table
WHERE username = '$reporter_name'";$sth=$dbh->prepare($sql)||die'ERROR: '.$dbh->errstr;$sth->execute()||die'ERROR: '.$dbh->errstr;while(@data=$sth->fetchrow_array()){$reporter=$data[0];}$sth->finish;die"ERROR: user \`$reporter_name' does not exist\n"unless$reporter>0;print"reporter: $reporter_name ($reporter)\n"if$debug;my$subject='';my$content='';while(<STDIN>){s/\s+$//;lastif$_eq'';$subject=$1if/^Subject: (.+)$/;}while(<STDIN>){$content.=$_;}$sql='INSERT INTO mantis_bug_text_table (description) VALUES (?)';$sth=$dbh->prepare($sql)||die'ERROR: '.$dbh->errstr;$sth->execute($content)||die'ERROR: '.$dbh->errstr;$sth->finish;my$textid=$dbh->{q{mysql_insertid}};print"bug text id: $textid\n"if$debug;$sql='INSERT INTO mantis_bug_table
( project_id, reporter_id,
date_submitted, last_updated,
bug_text_id, summary )
VALUES (?,?,?,?,?,?)';my$now= strftime('%Y-%m-%d %H:%M:%S',localtime(time));$sth=$dbh->prepare($sql)||die'ERROR: '.$dbh->errstr;$sth->execute($project,$reporter,$now,$now,$textid,$subject)||die'ERROR: '.$dbh->errstr;$sth->finish;$dbh->disconnect;
#!/usr/bin/perl
# mantis-mail-gateway.pl
# Mantis Mail Gateway
# Shen Cheng-Da (cdsheen AT gmail.com)
# require DBI to connect MySQL database
# http://blog.urdada.net/2008/11/11/95/
use DBI;
use POSIX qw(strftime);
my $db_host = 'localhost';
my $db_name = 'mantis';
my $db_user = 'monitor';
my $db_pass = 'monitorpass';
my $debug = 0;
my $db = "dbi:mysql:dbname=${db_name};host=${db_host}";
die "Usage: $0 [project-name] [reporter]\n" unless @ARGV > 1;
my $project_name = $ARGV[0];
my $reporter_name = $ARGV[1];
my $dbh;
my $sql;
my $sth;
my $project = -1;
my $reporter = -1;
$dbh = DBI->connect($db, $db_user, $db_pass)
|| die 'ERROR: '.$dbh->errstr;
$sql = "SELECT id,name FROM mantis_project_table
WHERE name LIKE '$project_name'";
$sth = $dbh->prepare($sql) || die 'ERROR: '.$dbh->errstr;
$sth->execute() || die 'ERROR: '.$dbh->errstr;
while( @data = $sth->fetchrow_array() ) {
$project = $data[0];
}
$sth->finish;
die "ERROR: project \`$project_name' does not exist\n" unless $project > 0;
print "project: $project_name ($project)\n" if $debug;
$sql = "SELECT id,username FROM mantis_user_table
WHERE username = '$reporter_name'";
$sth = $dbh->prepare($sql) || die 'ERROR: '.$dbh->errstr;
$sth->execute() || die 'ERROR: '.$dbh->errstr;
while( @data = $sth->fetchrow_array() ) {
$reporter = $data[0];
}
$sth->finish;
die "ERROR: user \`$reporter_name' does not exist\n" unless $reporter > 0;
print "reporter: $reporter_name ($reporter)\n" if $debug;
my $subject = '';
my $content = '';
while(<STDIN>) {
s/\s+$//;
last if $_ eq '';
$subject = $1 if /^Subject: (.+)$/;
}
while(<STDIN>) {
$content .= $_;
}
$sql = 'INSERT INTO mantis_bug_text_table (description) VALUES (?)';
$sth = $dbh->prepare($sql) || die 'ERROR: '.$dbh->errstr;
$sth->execute($content) || die 'ERROR: '.$dbh->errstr;
$sth->finish;
my $textid = $dbh->{ q{mysql_insertid} };
print "bug text id: $textid\n" if $debug;
$sql = 'INSERT INTO mantis_bug_table
( project_id, reporter_id,
date_submitted, last_updated,
bug_text_id, summary )
VALUES (?,?,?,?,?,?)';
my $now = strftime('%Y-%m-%d %H:%M:%S', localtime(time));
$sth = $dbh->prepare($sql) || die 'ERROR: '.$dbh->errstr;
$sth->execute($project, $reporter, $now, $now, $textid, $subject)
|| die 'ERROR: '.$dbh->errstr;
$sth->finish;
$dbh->disconnect;
大約是2007年11月底抱著好玩的心裡加入 BloggerAds 的,主要使用的位置是放在我的 Blog 右方側欄的廣告,我的 Blog 流量並不多,但根據報表,平均每天還是約有200~300次的廣告曝光,大約是新台幣5~6元的收入。經過9個月的累積之後,收益終於到達 BloggerAds 訂的收益匯款門檻1000元了 🙂