3ds max 8 注册机错误解决
Jan 24th, 2009 by song

3d max 注册机出现 INVALID REQUEST CODE!

是因为直接复制的 申请码 里面有换行回车符 所以有错!

解决方案就是复制到文本文档或 editplus 等文本工具中把回车去掉 即可


附3d max 8 注册机:
[file]attachment/1232770973_0.rar[/file]

g1 设置任意音乐为铃声
Jan 20th, 2009 by song

g1 设置任意音乐为铃声

market安装  Rings Extended

NIGNX 限制并发一例
Jan 9th, 2009 by song

本文摘抄自 http://wiki.codemongers.com/NginxChsHttpLimit_zoneModule?highlight=(limit)
limit_zone   limit  $binary_remote_addr  10m;
server {
location /download/ {
limit_conn   limit  1;
}
limit_zone   limit  $binary_remote_addr  10m;
定义一个叫“limit”的记录区,总容量为 10M,以变量 $binary_remote_addr 作为会话的判断基准(即一个地址一个会话)。
您可以注意到了,在这里使用的是 $binary_remote_addr 而不是 $remote_addr。
$remote_addr 的长度为 7 至 15 bytes,会话信息的长度为 32 或 64 bytes。 而 $binary_remote_addr 的长度为 4 bytes,会话信息的长度为 32 bytes。
当区的大小为 1M 的时候,大约可以记录 32000 个会话信息(一个会话占用 32 bytes)。
limit_conn   limit  1;
指定一个会话最大的并发连接数。 当超过指定的最发并发连接数时,服务器将返回 “Service unavailable” (503)

php-fpm+nginx配置问题
Jan 9th, 2009 by song

原作者:http://hi.baidu.com/dugu2008/blog/item/0d9e9bf8e8c13b08d8f9fd14.html

一、启动php-fpm问题,查看日志文件,此日志文件是在php-fpm.conf中所定义的

1、Dec 01 11:01:07.339056 [WARNING] fpm_stdio_child_said(), line 158: child 25237 (pool default) said into stderr: “Dec 01 11:01:07.336368 [ERROR] fpm_unix_init_child(), line 168: setrlimit(RLIMIT_NOFILE) failed: Invalid argument (22)”

A:修改配置文件:

vi /etc/sysctl.conf

输入以下内容:

kernel.shmmax = 134217728

然后执行以下命令使配置生效:

sbin/sysctl –p

2、启动仍然失败,可是在日志中并没有详细记录出错信息,只有:

Dec 01 11:03:07.930313 [NOTICE] fpm_children_make(), line 352: child 25345 (pool default) started
Dec 01 11:03:07.934274 [NOTICE] fpm_children_make(), line 352: child 25346 (pool default) started
Dec 01 11:03:07.937472 [NOTICE] fpm_children_make(), line 352: child 25347 (pool default) started
Dec 01 11:03:07.942833 [NOTICE] fpm_children_make(), line 352: child 25348 (pool default) started
Dec 01 11:03:07.943068 [NOTICE] fpm_event_loop(), line 105: libevent: entering main loop
Read the rest of this entry »

接触android 第 6天 编译android操作系统
Jan 7th, 2009 by song

今天编译Android
按照 说明上提示操作

弄了个QQ开发群(非开发者勿入):78582218
非开发者可入此QQ交流群:47799321 (容纳500人)

Ubuntu Linux (i386)
To set up your Linux development environment, make sure you have the following:

   * Git 1.5.4 or newer and the GNU Privacy Guard.

   $ sudo apt-get install git-core gnupg

   * JDK 5.0, update 12 or higher.

   $ sudo apt-get install sun-java6-jdk

   * The following packages: flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev (optional), build-essential, zip, curl.  

   $ sudo apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev

   * You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc.

   $ sudo apt-get install valgrind

   * Intrepid (8.10) users may need a newer version of libreadline:

$ sudo apt-get install lib32readline5-dev
Ubuntu Linux (amd64)
This has not been as well tested. Please send success or failure reports to repo-discuss@googlegroups.com.

The Android build requires a 32-bit build environment as well as some other tools:

   * Git, JDK, flex, and the other packages as listed above in the i386 instructions:  

   $ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl

   * Get a 32-bit version of the JVM:

     $ sudo apt-get install sun-java6-jdk       # JDK tools (javac, etc)
     $ sudo apt-get install ia32-sun-java6-bin  # JRE (java itself)
     $ sudo update-java-alternatives -s ia32-java-6-sun

   * Pieces from the 32-bit cross-building environment:

   $ sudo apt-get install lib32z1-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs

   * Intrepid (8.10) users may need a newer version of libreadline:

$ sudo apt-get install lib32readline5-dev

   * X11:
         o Ubuntu doesn’t have packages for the X11 libraries, but that can be worked around with the following command:

           $ sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so

         o If the build fails because of missing X11/Xlib.h and X11/Xatom.h, install the X11 devel packages.  (This problem exists when building on Ubuntu 8.10 x86_64)

           sudo apt-get install x11proto-core-dev  # provides Xatom.h
           sudo apt-get install libx11-dev  # provides Xlib.h Read the rest of this entry »

ubuntu source from china
Jan 6th, 2009 by song

ubuntu source

[code]
deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-backports main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-proposed main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-security main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-proposed main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-security main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-updates main restricted universe multiverse


deb http://ubuntu.dormforce.net/ubuntu/ intrepid main multiverse restricted universe
deb http://ubuntu.dormforce.net/ubuntu/ intrepid-backports main multiverse restricted universe
deb http://ubuntu.dormforce.net/ubuntu/ intrepid-proposed main multiverse restricted universe
deb http://ubuntu.dormforce.net/ubuntu/ intrepid-security main multiverse restricted universe
deb http://ubuntu.dormforce.net/ubuntu/ intrepid-updates main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid-backports main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid-proposed main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid-security main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid-updates main multiverse restricted universe
[/code]

SIDEBAR
»
S
I
D
E
B
A
R
«
»  Substance:WordPress   »