`
wooce
  • 浏览: 180700 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
Q: 在 64位linux 系统下载装 apache , 在 make 的时候出现如下错误 /usr/lib/libexpat.so: could not read symbols: File in wrong format A by wooce:  在64位的系统上编译时需要链接64位的库文件,而/usr/lib/libexpat.so是32位的ELF格式,所以格式不对。在configure的时候添加LDFLAGS="-L/usr/lib64 -L/lib64" 选项即可
一台Redhat 7.3 Server上在目录下ls找不到当前目录下的*.sh文件, 但ls单个文件例如ls httpd.sh则可以知道httpd.sh还是存在的。 用chkrootkit检查是中了Suckit rootkit ,    搜索sk, 找到在/usr/local/games/sk/ 下面。 cd /usr/local/games/sk/ ./sk u 然后下载SysVinit-2.84-2.i386.rpm (在这里找到下载:http://redhat.dulug.duke.edu/pub/redhat/linux/7.3/en/os/i386/RedHat/RPMS ...
Q:  你知道makefile里面@XX@和$XX的变量的区别么? # Top level hierarchy prefix = @prefix@ # Pathname of directory to install the binary BINDEST = @prefix@/bin # Pathname of directory to install the man page MANDEST = @prefix@/man A by Wooce:  你那个makefile应该不是最终的,  而是一个Makefile.in ,  很多开源软件都是这样,运行./configure之后@vari ...
[2001-7-18 5:07:19] A: hi, something about adstorge server.... in adstoragesvr.cpp, the .Get() function of adcache, and the lock of the cache has some problems i think..... [2001-7-18 5:08:59] B: ok, please give more info. [2001-7-18 5:11:58] A: I think u can lock the cache between get and store th ...
Q: 假如某大型邮件服务提供商要开发一个帮助用户自动收HOTMAIL上的邮件的功能, 但怕HOTMAIL认为是恶意攻击封禁IP,你认为有什么好办法可以避免? 我的Answer:  可以另外找一堆ADSL方式上网的机器,在这些机器上跑抓取HOTMAIL信件下来的服务,并且做负载平衡和冗余容错,每天可以自动把其中的一部分机器断开ADSL链接并重新链接一下,这样因为ADSL每次重新链接时电信都会重新给个动态变化的IP,就会减少了HOTMAIL把我们认作恶意攻击而封禁的可能性。 coremail的cyt的回答: 没什么办法吧,多找些proxy、控制收取的间隔、跟hotmail谈判 某j的 ...
原作者是kaman, 我作了一点改进。 #ifndef _IHASHCACHE_H #define _IHASHCACHE_H #include "icache.h" #include "imutexlock.h" #include "ierror.h" #include "iexception.h" template <class IObject, class IKey> class IHashCache; // A class derived from 'ICacheNod ...
wooce: 我仔细思考了一下: 1)  如果不能把Server端和Client端的程序放在一起编译,  或者是由程序员定义一个include某AttributeSet中 会出现的所有键值的enum放在某头文件里,  在server端和client端所有用到某attributeset的地方都引用这个头文件,  总之必 须让所有用到attributeset的地方都知道这个attributeset里所有可能的键值, 要在编译时就完全决定 Get("abc")是Get  AttributeSet中的第几项, 是难以做到的.  不论编译器(或发明/下载的特殊的程序预处理器)如何地 ...
上http://www.bouncycastle.org/ 下载那个bouncy castle crypto API, 把 它的jar包加进来以后, 用以下一段很短的代码就可以实现IDEA加密了, good luck! import org.bouncycastle.crypto.BufferedBlockCipher; import org.bouncycastle.crypto.CipherParameters; import org.bouncycastle.crypto.params.KeyParameter; import org.bouncycastle.crypto.engine ...
import javax.servlet.http.HttpServletRequest; import java.util.Map; import java.util.StringTokenizer; import java.util.HashMap; import java.net.URLDecoder; /** * Copyright (c) 2008 * Author: Wooce Yang * Date: 2008-1-29 * Time: 10:12:47 * Description: 解决resin服务器上取不到urlencode后的中文参数 ...
Global site tag (gtag.js) - Google Analytics