python 抓取代理[转]
Posted on 3月 3, 2009
Filed Under Python学习日志 | Leave a Comment
# -*- coding: cp936 -*-
import urllib2,re,thread,time
import socket
socket.setdefaulttimeout(10)
#———————–定义抓取代理的函数—...
用shell分析网站的访问情况[转]
Posted on 3月 3, 2009
Filed Under php | Leave a Comment
随着网站正式运行,我们可以通过通用的免费日志分析工具比如awstats获得一些实际访问网站的信息,例如每天ip量,pv量,用户所用的的浏览器,用户所用的操作系统等,但是有时候希望通过...
常用shell命令之二
Posted on 3月 3, 2009
Filed Under php | Leave a Comment
1.删除0字节文件
find -type f -size 0 -exec rm -rf {} \;
2.查看进程
按内存从大到小排列
ps -e -o “%C : %p : %z : %a”|sort -k5 -nr
3.按cpu利用率从大到小排列
ps -e -o “%...
常用的shell命令之一[顶]
Posted on 3月 3, 2009
Filed Under linux, shell | Leave a Comment
netstat -n | awk ‘/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}’
CLOSED:无连接是活动的或正在进行
LISTEN:服务器在等待进入呼叫
SYN_RECV:一个连接请求已经到达,...
51.COM PHP笔试题
Posted on 3月 3, 2009
Filed Under php笔试题 | Leave a Comment
2008-10-7 上海51.COM公司PHP笔试题
1. 禁用COOKIE 后 SEESION 还能用吗?
2. 抓取远程图片到本地,你会用什么函数?
3. 已知姓名A,姓名B,给一个求他们缘份的算法
4. 你觉得在PV10W的时候, ...
酷讯PHP工程师笔试题
Posted on 3月 3, 2009
Filed Under php笔试题 | 1 Comment
PHP&HTML 基础操作题
● 有三个php文件位于同一目录下,内容为
a.php:——-
b.php:——-
c.php:——-
使用浏览器访问 c.php,请问是否存在问题。
...
常用的firefox插件[收藏]
Posted on 3月 3, 2009
Filed Under firefox | Leave a Comment
firefox强大的插件功能是firefox占领市场的有力武器,今天要介绍的就是常用的firefox插件。
* Colorzilla:取网页颜色
* Firebug:做网页必备工具,为xhtml+css+js实时调试提供一个绝佳...
搭建svn服务[转]
Posted on 3月 3, 2009
Filed Under svn | Leave a Comment
一、准备工作
1、获取 Subversion 服务器程序
到官方网站(http://subversion.tigris.org/)下载最新的服务器安装程序。目前最新的是1.5版本,具体下载地址在:http://subversion.tigris.org/servlets/P...
prado相关备忘
Posted on 3月 2, 2009
Filed Under mysql, php | Leave a Comment
这两天在跟个朋友学习php prado框架,
总结这个框架比起别的php框架相对难学,本文为部分代码备忘,仅供自己使用,文件:datalist.php
<?php
class datalist extends TPage{
&nbs...
php — opcodes swf ibm
Posted on 3月 1, 2009
Filed Under php | Leave a Comment
这是本站的一个php opcodes flash教程,希望给感兴趣的朋友提供一些帮助。php — opcodes swf ibm
...