自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (7)
  • 收藏
  • 关注

原创 linux下tomcat作为daemon运行

<br />在linux下如果想让tomcat在开机时自启动,可以将启动代码写到/etc/rc.local里面。但是,这样的话,tomcat将以root权限运行,这是不安全的。因此,要想办法让tomcat以非特权身份作为daemon运行。<br />要将tomcat作为linux的daemon运行,需要commons-daemon工程的jsvc工具,tomcat的bin目录里已经自带了这个工具的源码。<br />解压commons-daemon-native.tar.gz,进入unix子目录,然后confi

2010-08-02 11:33:00 11719

原创 为已编译的apache2添加mod_proxy模块

查看apache支持的模块:        httpd -l     查看apache载入的模块:        httpd -t -D DUMP_MODULES    使用apache扩展工具apxs可以为apache编译和安装扩展模块。新安装的模块将作为动态共享对象提供给apache,因此,apache运行的平台必须支持DSO特性,并且httpd必须内建mod_so模块。这样才能使用mod_so提供的LoadModule指令在运行时将模块加载到apache服务器中。    要为已运行的apach

2010-08-01 19:28:00 12842

原创 Linux Buffers和Cached的区别

<br />在linux下使用free命令查看内存使用情况,有buffers和cached两项,以下是它们的区别:<br />    buffers是为块设备设计的缓冲。比如磁盘读写,把分散的写操作集中进行,减少磁盘I/O,从而提高系统性能。比如入U盘里cp一个文件,但是U盘读写指示灯未闪动,过了一会儿才闪动。卸载时会清空缓冲,所以有时卸载一个设备需要等待几秒。<br />    cached是缓存读取过的内容,下次再读时,如果在缓存中命中,则直接从缓存读取,否则读取磁盘。由于缓存空间有限,过一段时间以后没

2010-07-19 20:20:00 2306

原创 mysql 5 编译安装

安装环境Debain5.configure时出错:    /bin/rm: cannot remove `libtoolT': No such file or directory解决方法,在执行./configure 之前,先执行:    # autoreconf --force --install    # libtoolize --automake --force    # automake --force --add-missing

2010-07-14 03:45:00 572

原创 apache2 + WebDAV + svn 1.6安装配置

一、安装apache21. 从apache的源码目录里面找到apr和apr-util单独安装,以便subversion安装时使用  进入apr目录:    ./configure --prefix=/usr/local/apr    make    make test    make install  进入apr-util目录:    ./configure --prefix=/usr/local/apr-util    make    make test    make install2. 安装apach

2010-07-14 02:14:00 1885

原创 Java常量池——Integer

Java的8种基本类型(Byte, Short, Integer, Long, Character, Boolean, Float, Double), 除Float和Double以外, 其它六种都实现了常量池, 但是它们只在大于等于-128并且小于等于127时才使用常量池。由如下例子可以看出: public static void main(String[] args) { Integer a = 127; Integer b = 127; System.out.println("等于12

2010-06-18 17:10:00 8769 3

原创 Debian5静态IP设置

<br />配置文件 /etc/network/interfaces<br />auto loiface lo inet loopback #lo 是本地回环地址:127.1auto eth0 iface eth0 inet static address 192.168.1.152 gateway 192.168.1.1 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255

2010-06-07 14:14:00 747

原创 mysql中文编码与默认InnoDB引擎

<br />配置文件 /etc/mysql/my.cnf <br /><br />在[client]和[mysqld]里面加上<br />default-character-set=utf8 <br />重启mysql <br />sudo /etc/init.d/mysql restart (start, stop) <br />用mysql命令连接到mysql server, 用下面的命令查看当前字符集:<br />show variables like "%char%"; <br />要设置

2010-06-07 14:06:00 704

原创 Duration, Scope, Linkage in C

首先,declaration分为两种:external declaration(在函数外的声明) 和internal declaration(在函数内的声明)。由于不能在函数内定义函数,因此函数定义总是external declaration。     接下来明确storage class specifier,有4种storage class specifier:auto, extern, register, static。其中只有register可以用在function prototype和fun

2010-06-07 13:25:00 700

原创 Problems About Rearrangement for Expressions in C

<br />一些数学法则(如:结合律,分配律等)在C语言表达式中通常是不适用的。 <br />比如下面的代码段:<br />double x, y, z;/* ... */x = (x * y) * z; // not equivalent to x *= y * z;z = (x - y) + y ; // not equivalent to z = x;z = x + x * y;

2010-06-07 13:03:00 433

原创 C语言自动变量的潜在问题

<br />关于C语言自动变量的一个基本规则是:声明自动变量的函数已经返回后,不能再引用这些自动变量。 <br /><br />下面就此问题进行测试。 <br />测试环境: <br />    编译器:GCC 4.2.4 <br />    OS:Ubuntu 8.04 LTS <br /><br />首先编写一个简单的C程序,暂且命名为test_auto_val.c。 <br />#include <stdio.h>int*func1 (){ int *ptr; int va

2010-06-07 12:56:00 1804

Google云计算经典论文 GFS BigTable MapReduce

We have designed and implemented the Google File Sys- tem, a scalable distributed file system for large distributed data-intensive applications. It provides fault tolerance while running on inexpensive commodity hardware, and it delivers high aggregate performance to a large number of clients. While sharing many of the same goals as previous dis- tributed file systems, our design has been driven by obser- vations of our application workloads and technological envi- ronment, both current and anticipated, that reflect a marked departure from some earlier file system assumptions. This has led us to reexamine traditional choices and explore rad- ically different design points. The file system has successfully met our storage needs. It is widely deployed within Google as the storage platform for the generation and processing of data used by our ser- vice as well as research and development efforts that require large data sets. The largest cluster to date provides hun- dreds of terabytes of storage across thousands of disks on over a thousand machines, and it is concurrently accessed by hundreds of clients. In this paper, we present file system interface extensions designed to support distributed applications, discuss many aspects of our design, and report measurements from both micro-benchmarks and real world use.

2010-06-26

《Java Servlet编程(第二版)》英文版 chm (含源码)

Since I wrote the first edition of this book, servlets and the server-side Java platform have grown in popularity beyond everyone's wildest expectations. Adoption is pervasive. Web server vendors now offer servlet support as a standard feature. The Java 2, Enterprise Edition (J2EE), specification has included servlets as a core component, and application server vendors wouldn't be caught dead without a scalable servlet implementation. It's more than just vendor-driven hype too. Servlets have become the basis for JavaServer Pages (JSP) and other frameworks, and servlet technology now supports such high-traffic sites as ESPN.com and AltaVista.com. Not surprisingly, the servlet landscape looks somewhat different today than it did when the first edition went to print. The Servlet API has undergone two revisions, with a third revision on the way. The familiar startup companies Live Software and New Atlanta that once made money selling the JRun and ServletExec servlet engines (now called servlet containers) have gotten themselves noticed and were purchased by larger web-focused companies, Allaire and Unify, respectively. They now offer features above and beyond basic servlet support in an effort to differentiate themselves. Amazingly, the official javax.servlet and javax.servlet.http packages have been the first Java classes to be officially released as open source. They were transferred to the Apache Software Foundation (ASF) and now reside at http://jakarta.apache.org. The packages continue to follow the Servlet API specification, but bug fixes and specification updates can now be handled by a set of trusted open source developers—including yours truly, who recently had the chance to fix a bug to improve conditional GET request handling in HttpServlet. In addition, the server that acts as the Servlet API reference implementation was also transferred to the ASF and made available as open source under the name Apache Tomcat. Tomcat has since become one of the most popular servlet containers. For more information, see http://opensource.org. The servlet world has changed, and this book brings you up-to-date. It explains everything you need to know about Java servlet programming, from start to finish. The first five chapters cover the basics: what servlets are, what they do, and how they work. The following 15 chapters are where the true meat is—they explore the things you are likely to do with servlets and the tools you're likely to use. You'll find numerous examples, several suggestions, a few warnings, and even a couple of true hacks that somehow made it past technical review.

2010-06-26

搜索引擎——原理、技术与系统

搜 索 引 擎 — 原理、技术与系统 Search Engine: Principle, Technology and Systems 李晓明 闫宏飞 王继民 著 by Li Xiaoming, Yan Hongfei and Wang Jimin 本书比较系统地介绍了互联网搜索引擎的工作原理、实现技术及其系统构建 方案。全书分三篇共13章内容,从基本工作原理概述开始,到一个小型简单搜索 引擎实现的具体细节,进而详细讨论了大规模分布式搜索引擎系统的设计要点及 其关键技术;最后面向主题和个性化的Web信息服务,阐述了中文网页自动分类 等技术及其应用。本书层次分明,由浅入深;既有深入的理论分析,也有大量的 实验数据,具有学习和实用双重意义。 本书可作为高等院校计算机科学与技术、信息管理与信息系统、电子商务等 专业的研究生或高年级本科生的教学参考书和技术资料,对广大从事网络技术、 Web站点的管理、数字图书馆、Web挖掘等研究和应用开发的科技人员也有很大 的参考价值。

2010-06-26

C++程序设计语言(特别版)

内容简介回到顶部↑本书介绍了标准C++以及由C++所支持的关键性编程技术和设计技术。标准C++较以前的版本功能更强大,其中许多新的语言特性,如名字空间、异常、模板、运行时类型声明等使得新技术得以直接应用。本书围绕语言及库功能来组织,内容涉及C++的主要特征及标准库,并通过系统软件领域中的实例解释说明一些关键性的概念与技术。   本书的目的就是帮助读者了解C++是如何支持编程技术的,使读者能从中获得新的理解,从而成为一名优秀的编程人员和设计人员。适合做高校面向对象编程课程的教科书,也可作为C++爱好者的参考书。 [center] [a href=http://www.china-pub.com/main/sale/c%2B%2Btb.htm target=_blank]C++之父Bjarne Stroustrup博士专访[/a] [a href="http://www.is.pku.edu.cn/%7Eqzy/cpp.htm" target="_blank"]《C++程序设计语言》程序的更正和更新[/a] [a href="http://www.china-pub.com/temporary/list/cooperate/zipdownload/zg.zip" target="_blank"]本书忠告[/a] [/center]

2010-06-15

Emacs_User's_Guide_ 中文版

GNU EMACS 是 GNU 计划下的第一个产品 EMACS 为 Editor MACros 的缩写 Richard Stallman 於 1975 年在 MIT 首次 撰写 EMACS editor 目前 GNU EMACS 已发展到 19.28 版 本文所讨论的 GNU EMACS 也以 19.28 版为主 GNU EMACS 秉持著 GNU 的精神 它依然是 free 的 任何人都可以 “anonymous ftp” 的方式至 prep.ai.mit.edu 这个 site 取得 GNU EMACS 的 原始码 GNU EMACS 不是 public domain 的产物 它有版权也有使用上的限制 那就是任何得 到它的人都不可以将其视为私有的财产 修改过的 GNU EMACS 也不可以作为商品来牟利 金钱 交易的行为是绝对被禁止

2010-04-13

ISO_IEC 9899:1999(E)--Programming Languages--C.pdf

c99标准 ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies that are member of ISO or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other international organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work.

2009-06-12

GNU Coding Standards

GNU 的编程标准 The GNU Coding Standards were written by Richard Stallman and other GNU Project volunteers. Their purpose is to make the GNU system clean, consistent, and easy to install. This document can also be read as a guide to writing portable, robust and reliable programs. It focuses on programs written in C, but many of the rules and principles are useful even if you write in another programming language. The rules often state reasons for writing in a certain way

2009-05-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除