浏览模式: 普通 | 列表
ps.如果是老的11M的网卡可能本身是不支持wpa加密模式,只支持wep。如果是较新的网卡应该是操作系统或者驱动问题。

winxpsp3以前的操作系统版本需要安装以下补丁

Windows XP 更新程序 (KB893357)
快速描述
此 Windows XP 更新程序提供对 Wi-Fi 保护访问 2 (WPA2) 的支持。WPA2 是基于标准的最新无线安全解决方案,它是在 IEEE 802.11i 标准的基础上派生的。


http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=662BB74D-E7C1-48D6-95EE-1459234F4483

Windows XP 更新程序 (KB917021)
快速描述
安装此更新程序,以增强“无线组策略(WGP)”中 ...

阅读全文…

asp.net中sql过滤和xss过滤函数参考

[ 2011-01-13 09:49:09 | 作者: admin ]


    /// <summary>
    ///sql和xss脚本过滤
    /// </summary>
    /// <param name="input">传入字符串</param>
    /// <returns>过滤后的字符串</returns>
    public static string FilterSqlXss(string objStr)
    {
      return FilterXSS(FilterSql(objStr));
    }




    
    /// <summary>
    /// 过滤sql攻击脚本
    /// </summary>
    /// <param name="input">传入字符串</param>
    /// <returns>过滤后的字符串</returns>
...

阅读全文…
p.s. 如果cookie的值需要修改,则需要再次设定该key的Expires 和Path ,否则将会被自动设为默认值。

Response.Cookies("voteNum") = "0"
Response.Cookies("voteNum").Expires = dateadd("n",600,now()) 'cookie设置保存180分钟
'Response.Cookies("voteNum").Path = "/" ‘默认根目录

mysql 二进制日志功能及维护

[ 2011-01-04 20:23:55 | 作者: admin ]
  vi /etc/my.cnf

  [mysqld]

  datadir=/var/lib/mysql

  socket=/var/lib/mysql/mysql.sock

  # Default to using old password format for compatibility with mysql 3.x

  # clients (those using the mysqlclient10 compatibility package).

  # old_passwords=1

  table_cache = 300

  default-character-set = utf8

  log = /var/lib/mysqllog/mysql.loglog-bin = /var/lib/mysqllog/log-binlog-slow-queries ...

阅读全文…
如果导出大数据的数据库,则需要增加 --quick或--opt选项 ,不然默认是先全部读到内存再写入备份文件。
内存不是足够大的话就会出错了。对于大论坛需要先后台关闭论坛(不用关闭nginx)再备份,避免备份时候前台没有提示,不够友好,当然如果用脚步自动备份就关不了,基本在2点以后也无所谓。

案例:务必使用
--skip-lock-tables #对MYISAM有效
--default-character-set=gbk #表非默认字符集都需要这个参数,不然乱码
--opt #不然默认是先全部读到内存再写入备份文件

备份数据库:
mysqldump --skip-lock-tables --default-character-set=gbk --opt -uroot -p1234 db1 > /home/db1_back.sql
...

阅读全文…

ASP缓存类

[ 2010-12-31 14:46:21 | 作者: admin ]
缓存类的使用
dim content,myCache
Set myCache = new cls_Cache
myCache.name="sofoisndoffo" '定义缓存名称
if myCache.valid then '如果缓存有效
   content=myCache.value '读取缓存内容
else
   content="测试测试测试" '大量内容,可以是非常耗时大量数据库查询记录集
   myCache.add content,dateadd("n",1000,now) '将内容赋值给缓存,并设置缓存有效期是当前时间+1000分钟
end if
Response.Write(content)
'myCache.makeEmpty()
set myCache=nothing '释放对象


缓存类原代码
...

阅读全文…
lbs被遗弃之后,一直都想把博客转到wordpress,但是wp的速度实在是不敢恭维啊,延迟太厉害了,后台干脆我都不想进去。
php用户量那么大,程序量也最为庞大,咋就没有合适我的博客程序呢

open_basedir造成文件上传失败

[ 2010-12-27 14:23:07 | 作者: admin ]
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/home/ftp/512j.com/d/u/c/duchun66/:/tmp/)

于是我在网上搜索一下,发现是open-basedir设置的问题,搜索到文章如下:

******************文章1*********************************************************************************

open_basedir: 将用户可操作的文件限制在某目录下;
-----------------------------------------------...

阅读全文…