Posted on 2008-05-06
解决了部分问题,还是有php-cgi 在 xcache 下产生 segfault 的问题. 好难解决。
看来要放弃xcache了。xcache导致php segfault
http://night9.cn/2007/05/21/54.html
原来Zend Optimizer会捕捉segfault
http://blog.sina.com.cn/s/blog_482f10a4010005av.html
Posted on 2008-05-01 作者: amao
http://www.createtorrent.com/ 提供了在linux命令行下面制作bt种子的程序
Create BitTorrent files from the command line
在命令行下面下载bt,推荐使用rtorrent。
Posted on 2008-04-26
<script type="text/javascript">
function Amao(){}
Amao.prototype.SetAnchor = function(){
var uri = location.href;
if(uri.search(/^(http)/i) != "-1" ){// 有http://
var pattern = new RegExp("http:\/\/([^/]+?)\/");
var result = uri.match(pattern);
if (result != null) {
var host = result[0]; // Contains "http://www.example.com"
}
var parttern2 = new RegExp(host,"i");
var anchors = document.getElementsByTagName("a");
for(var i = 0; i < anchors.length; i++){
var a = anchors[i];
if(a.href.search(parttern2) == "-1" ){
a.target = "_black";
}
}
}
}
var amao = new Amao();
amao.SetAnchor();
</script>
放在页面的最后面,或者在body的onload 调用amao.SetAnchor();
Posted on 2008-04-25
private void MeasureText1(PaintEventArgs e)
{
String text1 = "Measure this text";
Font arialBold = new Font("Arial", 12.0F);
Size textSize = TextRenderer.MeasureText(text1, arialBold);
TextRenderer.DrawText(e.Graphics, text1, arialBold,
new Rectangle(new Point(10, 10), textSize), Color.Red);
}
Posted on 2008-04-24 →阅读全文
因为依赖于 GraphicsMagick
先要下载GraphicsMagick来安装。http://sourceforge.net/project/showfiles.php?group_id=73485
下载里面的 GraphicsMagick-1.1.11-Q16-windows-dll.exe
安装后把 C:\Program Files\GraphicsMagick-1.1.11-Q16 下面的dll文件复制到 C:\WINDOWS\system32
Posted on 2008-04-23 →阅读全文
大家都知道php手册有一个格式的离线包,叫做CHM格式,在windows下面我们phper都习惯使用这个手册。
在其他系统呢,php.net 提供了下列链接!
- On Linux, *BSD and Solaris:
- Chmox caters to Mac OS X users.
Posted on 2008-04-23 →阅读全文
转载ITmanagement的一个文章;全文的部分翻译。个人以为这个文章的把网管的开源工具做了一个小结,英文好的同志请直接访问原文地址:click Here
我推荐Cacti zenoss OpenNMS
不过一般还是建议:
服务器访问记录 ntop+rrd
apche或IIS网站访问信息管理 awstats
Posted on 2008-04-22 →阅读全文
Network Usage
| Device | Received | Sent | Err/Drop |
| lo | 3.21 GB | 3.21 GB | 0/0 |
| eth1 | 3.34 GB | 2.36 GB | 0/0 |
Posted on 2008-04-22
解决在64位操作系统下面
*) Bugfix: an alert "sendmsg() failed (9: Bad file descriptor)" on some
64-bit platforms while reconfiguration.
郁闷的是配置文件的相对路径错了。
原来默认是 include conf/mime.types;
现在编程了 include mime.types;
害我不能平滑过渡,停止了web服务,才升级完成。
Posted on 2008-04-21 →阅读全文
ntpdate north-america.pool.ntp.org
这个依赖 yum install ntp
写到硬件使用 hwclock --systohc
可以通过tzselect来设置时区,获取直接修改/etc/sysconfig/clock
Posted on 2008-04-17
| Server | Total |
|---|---|
| Apache (unknown version) | 31 |
| Apache 1.3.* | 8 |
| Apache 2.0.* | 5 |
| Apache Coyote 1.1 | 5 |
| Microsoft IIS 5.0 | 3 |
| Microsoft IIS 6.0 | 16 |
| Microsoft IIS 7.0 | 1 |
| Lighttpd | 4 |
| LiteSpeed | 2 |
| nginx | 2 |
| Sun ONE Web Server | 2 |
| Other | 10 |
| Unknown | 11 |
共34页: [1] 2 3 4 5 6 » ... 最后页