2010年节假日安排

工作学习, 生活娱乐 No Comments »

让Centos 5.x支持4G+的内存

Linux&Unix No Comments »

问题解决办法:

yum install kernel-PAE

安装好后 还需要手工修改 引导

vi /boot/grub/grub.conf

如果看到如下代码 代表PAE内核已经安装好了
title CentOS (2.6.18-8.1.4.el5PAE)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.1.4.el5PAE ro root=LABEL=/
initrd /initrd-2.6.18-8.1.4.el5PAE.img
修改设置为默认启动
CODE:default=0

init 6
重启服务器
再执行top 内存已经是4.1G了

以上全部在Centos 5.0系统下执行

尝试用yum安装

当您通过有压缩筛选器已启用 Web 筛选器的 ISA Server 2004 中访问 Web 站点时收到错误消息

微软产品 No Comments »

症状请考虑以下情形: 您访问 Microsoft Internet Security and Acceleration (ISA) Server 2004 中发布网…请考虑以下情形:

  • 您访问 Microsoft Internet Security and Acceleration (ISA) Server 2004 中发布网站。 或者,您在通过将作为 Web 代理的 ISA Server 2004 访问网站。
  • 在 ISA Server 2004 中启用压缩筛选器 Web 筛选器。
  • 网站发送到客户端 HTTP / 0.9 响应。

Read the rest of this entry »

urlscan.ini中文示意

微软产品 No Comments »

;此文件仅供学习,不要复制到%windir%\system32\inetsrv\urlscan下直接用,可能会出问题,因为ini文件内好像不支持中文字符!
Read the rest of this entry »

访问.aspx不能显示,应该怎么配置iis

微软产品 No Comments »

: 1。aspnet_regiis -ga Users
这是指那个用户?是我自己的帐号吗?
: 2.aspnet_regiis -i

Windows 2003 虚拟主机的安全配置

微软产品 No Comments »

下面我用的例子.将是一台标准的虚拟主机.
系统:windows2003
服务:[IIS] [SERV-U] [SQL SERVER 2000]
Read the rest of this entry »

如何:使用 URLScan

微软产品 No Comments »

本页内容
目标
适用范围
如何使用本模块
摘要
安装 URLScan
日志文件
删除 URLScan
配置 URLScan
使用 URLScan 限制请求大小
在安装了 URLScan 的情况下调试 VS .NET
屏蔽内容头信息(标题)
陷阱
参考
Read the rest of this entry »

给IIS Web虚拟主机服务器装上一把锁

微软产品 No Comments »

  为了提高IIS的安全性,微软提供了两个工具:IIS Lockdown和URLScan,其中IIS Lockdown 2.1包含了URLScan。
Read the rest of this entry »

vmware-config

Linux&Unix No Comments »

需要:kernel-devel kernel-headers gcc-c++ xinetd libXtst-devel libXrender-devel
Read the rest of this entry »

php代码实现.Text密码加密方式

程序开发 1 Comment »

今日在转换.Text数据到php平台,需要用到用户密码的问题。
1234
.Text里是:0F-03-75-84-C9-9E-7F-D4-F4-F8-C5-95-50-F8-F5-07
php里md5是:81dc9bdb52d04dc20036dbd8313ed055
差的还够远的,.Text里面在md5前还Unicode一把。
注:我不得不承认M$在多字节编码中做的是在是好,从98以后开始,统一平台,应用程序都不存在编码问题,MSSQL用的一点问题都没,反看Php、MySQL编码问题都头大了。

网上都没有现成的代码,还是在php手册里看到一句话:

If you are trying to emulate the UnicodeEncoding.Unicode.GetBytes() function in .NET, the encoding you want to use is: UCS-2LE

URL:http://cn2.php.net/manual/en/ref.mbstring.php#70294
莫大的启发啊。php要支持:Multibyte String,mbstring哦。
.Text密码加密方式:

password = password.ToLower();
Byte[] clearBytes = new UnicodeEncoding().GetBytes(password);
Byte[] hashedBytes = ((HashAlgorithm)CryptoConfig.CreateFromName("MD5")).ComputeHash(clearBytes);

php代码实现:

strtoupper(substr(chunk_split(md5(mb_convert_encoding(strtolower($password), 'UCS-2LE')), 2, '-'), 0, -1));