Latest Entry
谷歌,收录更新真快!
六 30, 2009 PHP Leave a comment
刚刚写了一篇日志,关键字收集,无意搜索谷歌,竟然发现刚写的文章就被收录,在第二页第5,才几分钟而已,说明我一发布,谷歌就更新到数据库了。也可能是巧合。
要是都这样收录我的站,那非天天过年!!
看下图!!

经过测试,谷歌的收录速度不到一分钟。
2:16发布的本条信息。2:25我查看的收录,操作截图花了2分钟,以下是刚才的截图!!

Latest Entry六 30, 2009 PHP Leave a comment
刚刚写了一篇日志,关键字收集,无意搜索谷歌,竟然发现刚写的文章就被收录,在第二页第5,才几分钟而已,说明我一发布,谷歌就更新到数据库了。也可能是巧合。
要是都这样收录我的站,那非天天过年!!
看下图!!

经过测试,谷歌的收录速度不到一分钟。
2:16发布的本条信息。2:25我查看的收录,操作截图花了2分钟,以下是刚才的截图!!

六 30, 2009 随便写写 Leave a comment
最近要收集点关键字,做下SEO测试,主要确定,主关键字,长尾关键字及周边关键
目前已经收集了娱乐类一小部分次,以乱序方式插入到采集的文章中,以让文章成为原创。
等待有效果,再跟大家汇报!
五 17, 2009 JS/Css, PHP Leave a comment
采集了一个图片站,修改时每次都点编辑,然后返回,其实也就是改改标题。。
见过discuz快速编辑标题的东西,懒的拆他代码,自己改个!!!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | <script LANGUAGE="JavaScript"> <!-- function htmlspecialchars(str, transtype) { var f = new Array( new RegExp('&', 'g'), new RegExp('<', 'g'), new RegExp('>', 'g'), new RegExp('"', 'g') ); var r = new Array( '&', '<', '>', '"' ); for(var i = 0; i < f.length; i++) { str = str.replace(f[i], r[i]); } return str; } function newsubject(obj,edittid) { if(document.getElementById('subject_' + edittid) == null) { //$('tid_'+edittid).innerHTML = ''; //sendsubject(edittid, 'getsubject'); obj.innerHTML = "<input id='subject_"+ edittid +"' type='text' class='text' style='width:80%;' value='" + obj.title +"' onkeypress ='if(event.keyCode==13){ sendsubject(\"" + obj.title +"\","+edittid+"); return false;}' onblur='sendsubject(\"" + obj.title +"\","+edittid+");'><a href='javascript:baitus(\"" + obj.title +"\")'>百度标题</a>"; //document.getElementById('subject_'+edittid).focus(); } } function baitus(title) { window.open('http://www.baidu.com/baidu?word='+title); } function sendsubject(oldtext,edittid) { var newtext = document.getElementById('subject_'+edittid).value; if(htmlspecialchars(newtext) == oldtext || newtext =='' || newtext.length > 80 ) { //$('tid_'+edittid).innerHTML = newtext; //$('input_'+edittid).innerHTML = ''; showmessage('内容不变'); return false; } document.subjectajaxform.tid.value = edittid; document.subjectajaxform.title.value = newtext; document.subjectajaxform.submit(); } function showmessage(message) { alert(message); } document.write('<div><iframe name="subjectajaxframe" id="subjectajaxframe" width="0" height="0" frameborder="0"></iframe>' +'<form name="subjectajaxform" id="subjectajaxform" action="quick_save.php" method="post" target="subjectajaxframe">' +'<input type="hidden" name="tid" id="tid"/><input type="hidden" name="do" value="save_title"/><input type="hidden" name="title" id="title"/></form></div>'); //--> </script> <td ondblClick="newsubject(this,'{id}')" title="{name}"><a href="{link}" target="_blank">{name}</a></td> |
这下修改起来方便多了。加了一个标题百度,不用拖了,直接看标题的百度情况!!
五 12, 2009 随便写写 Leave a comment
今天是5·12汶川地震一周年,这一年里灾区的人们,过得怎么样?送上我们的祝福,献上我们的爱心!
有钱出钱,有力出力。站长们请将网页变灰一天,加上网页变灰代码
1 2 3 | <style> body {filter:gray;} </style> |
四 22, 2009 软件使用 Leave a comment
今天升级vs2008 sp1,需要近5G空间,还不能装其他盘。
清理下C盘,发现根目录下2G多的hiberfil.sys,试着删除,不能删!
百度之,以管理员身份运行cms,在cmd模式下输入命令
powercfg -h off
回车
C盘多了2个G。嘎嘎,已经删除了!
四 18, 2009 服务器 Leave a comment
写一个php脚本
< ?php
define('MAX_SLEEP_TIME', 120);
$hostname = "localhost";
$username = "root";
$password = "password";
$connect = mysql_connect($hostname, $username, $password);
$result = mysql_query("SHOW PROCESSLIST", $connect);
while ($proc = mysql_fetch_assoc($result)) {
if ($proc["Command"] == "Sleep" && $proc["Time"] > MAX_SLEEP_TIME) {
@mysql_query("KILL " . $proc["Id"], $connect);
}
}
mysql_close($connect);
?>
加入到计划任务crontab -e
10 * * * * php /usr/local/sbin/kill-mysql-sleep.php
四 13, 2009 随便写写 Leave a comment
首先说明本人比较懒,不愿意蛮天拔翻一些同类型的网站,就算找到,看别人脸色也不一定跟你交换!
上次和一个做Q站的朋友闲聊,问他咋把流量做到这么高,首先可以肯定,他勤快,天天更新20-50篇文章(注:人肉更新)
死缠烂打一番后,终于告诉我经常去买友情链接,这样的连接好,单向,不过不能太频繁!真佩服他,一个连HTML代码都看不懂的,现在做到10Wip,自叹不如。
广告下先:原先建立一个友情链接交换平台,上面都是网站自主登记,提供QQ联系方式,他们愿意咋操作就咋操作,放那里一年多,没管了,可能每天都有不少人来登记,百度权重嗷嗷的高。
还别说,友情链接交易这块还真有市场,admin5那里还真不少人交易,但是怎么操作?这块的方向在哪里?只是发个帖子登记?买了连接后如何监测对方连接?款项怎么支付?中介担保性质手续费该收多少?如何把这个东西做成站长工具?
太多疑问,有待解决。去年这时候,qqcms建立时,这些问题也搞出了一些方案,由于其他时间和项目问题,这块一直没抓起。
目前还不知道百度,谷歌对友情链接的算法是什么。
以后有空研究!!大家有什么想法可以给我留言,或者加本人Q一起探讨:QQ:27647737
三 28, 2009 服务器 Leave a comment
wget -t 1 -w 2 -c -i file.txt -o down.log &
开着机器下载,真爽,,file.txt为连接地址集合,一行一个地址
t为重试次数,0为无限
w为等待秒数
c为续传
i 后面加文件
o为输出日志
&就是传说中后台运行
哈哈,exit,睡觉了。。
三 21, 2009 服务器 Leave a comment
更新源的用法:
首先看清源的版本,intrepid代表8.10,hardy代表8.04。
修改更新源:
sudo nano /etc/apt/sources.list
更新命令:
sudo apt-get update sudo apt-get dist-upgrade
Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用):
deb http://archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ intrepid-proposed main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ intrepid-proposed main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse