自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(288)
  • 资源 (14)
  • 收藏
  • 关注

转载 Distributed Hash Tables

from: Oct 01, 2003  By Brandon Wiley inSoftwareDistributed hash tables are an essential component of robust peer-to-peer networks. Learn to write applications that let everyone's cop

2012-07-05 22:31:54 921

转载 Distributed Systems Topologies

Distributed Systems Topologies: Part 1from: http://openp2p.com/pub/a/p2p/2001/12/14/topologies_one.htmlby Nelson Minar12/14/2001The peer-to-peer explosion has reminded people of the power of

2012-07-02 22:18:40 1131

转载 Distributed Caching with Memcached

from: http://www.linuxjournal.com/article/7451Aug 01, 2004  By Brad Fitzpatrick inSoftwareCut the load on your Web site's database by adding a scalable object caching layer to your a

2012-07-02 22:16:22 1274

转载 英文符号读法

英文符号读法http://chinese.g.hatena.ne.jp/toraneko285/20080205. period 句号 ≈ is approximately equal to 约等于号 , comma 逗号 < is less than 小于号 : colon 冒号 > is more than 大于号 ; semicolon 分

2012-05-30 18:07:26 740

转载 Brief Introduction to Suffix Array

Brief Introduction to Suffix ArrayLast Modified: 2000-11-14 (Since: 2000-11-14)Suffix array is a data structure designed for efficient searching of a large text. The data structure is simply an

2012-05-28 18:45:28 614

转载 org tutorial

org tutorialhttp://dto.github.com/notebook/orgtutorial.htmlIntroduction Org-mode is a personal information management and outlining tool forEmacs. This document is intended to give the rea

2012-05-22 01:15:18 657

转载 Emacs: How to Define Templates in YASnippet

Emacs: How to Define Templates in YASnippetby Xah Lee, 2009-02-18, …, 2012-03-25This page shows you how to define your own templates for emacs's YASnippet template system. If you don't know wh

2012-05-21 18:04:46 816

原创 emacs Bookmark Plus 代码浏览/导航

1. 内置命令pop-global-mark, 一般绑定在C-x C-@ 或者 C-x C-SPC;pop-tag-mark, M-*, 返回到调用M-.的地方;C-u C-SPC,返回到前面mark的位置,最多16个,参考:Mark Ring2. Bookmark plus参考:http://emacswiki.org/emacs/Bookma

2012-05-21 00:56:24 5565

转载 Advanced Memory Allocation

May 01, 2003  By Gianluca Insolvibile inEmbeddedSoftwareCall some useful fuctions of the GNU C library to save precious memory and to find nasty bugs.Dealing with dynamic memory

2012-05-15 16:01:31 1200

转载 判断单链表是否存在环,判断两个链表是否相交问题详解

判断单链表是否存在环,判断两个链表是否相交问题详解有一个单链表,其中可能有一个环,也就是某个节点的next指向的是链表中在它之前的节点,这样在链表的尾部形成一环。问题:1、如何判断一个链表是不是这类链表?2、如果链表为存在环,如何找到环的入口点?解答:一、判断链表是否存在环,办法为:设置两个指针(fast, slow),初始值都指向头,slow每

2012-05-11 20:57:02 464

原创 UNP vol1 笔记 Socket选项

1.SO_REUSEADDR 和 SO_REUSEPORTSO_REUSEADDR 这个名词取得有点问题的,这一选项的目的是重用端口,不重用地址,完全重用地址和端口是针对多播的这种特殊情况的,于是为了支持多播,又加入了SO_REUSEPORT,这个选项是可以重用地址和端口的,结果这两个选项字面上的意思和实际的意思刚好相反;没办法用就用吧,知道意思就行了;(UNP,vol1,p210)

2012-05-04 15:02:40 957

转载 Can You Top This? 15 Practical Linux Top Command Examples

摘自:http://www.thegeekstuff.com/2010/01/15-practical-unix-linux-top-command-examples/by Ramesh Natarajan on January 4, 2010This article is part of the on-going 15 example series where 15 exampl

2012-05-03 13:12:25 1359

转载 GNU GDB Debugger Command Cheat Sheet

GDB Command Line Arguments: Starting GDB: gdb name-of-executable gdb -e name-of-executable -c name-of-core-filegdb name-of-executable -pid process-id(Use ps -auxw to list process id's.)

2012-04-20 21:51:13 639

转载 How to use epoll? A complete example in C

How to use epoll? A complete example in CThursday, 2 June 2011 @ 1238 GMT by Mukund SivaramanNetwork servers are traditionally implemented using a separate process or threadper connection. For hig

2012-04-15 00:43:51 844

原创 TCP/IP Illustrated Vol1&2 笔记:数据流 和 内核数据结构

1. IP层会通过IP Header中的协议字段,把处理后的IP包传递给不同的传输层协议去处理,所以UDP端口是独立于TCP端口的;(TCP/IP vol1 11.2) 参考:TCP/IP vol1 Figure 1.8,IP层会根据协议来分流(demultiplexing)数据;更多内核中的信息流动细节参考,vol2,1.9,1.10 这两节;a). UDP 输出的时候(se

2012-04-13 20:45:29 999

转载 Emacs: How to Define Keyboard Shortcuts

Emacs: How to Define Keyboard Shortcuts标记一下该网站:http://xahlee.org/emacs/emacs.html,Xah Emacs TutorialBy Xah Lee, 2005, …, 2012-04-05In emacs, you can create any keyboard shortcut to any com

2012-04-13 01:33:42 1350

转载 Emacs Keybinding Syntax Examples

Emacs Keybinding Syntax ExamplesHere are sample code you need to place in your emacs init file for defining various key press combinations.In the following, the beep is a example command. Replace

2012-04-13 01:30:50 985

原创 GDB Session Restore 保存、恢复会话

GDB中如何保存当前会话?GDB没有直接的命令,但是,GDB可以保存当前会话的命令历史,然后加载的时候,导入命令文件,执行完命令文件中的命令,就可以恢复会话。保存一个会话,假设调试test,执行 gdb test 进入gdb:1. set history filename ~/.gdb_history  # 设置~/.gdb_history为保存历史命令的文件2. set hist

2012-04-07 22:15:32 2143

原创 Linux Run Levels

1. 查看当前 run levelwho -rrunlevel2. 改变当前 run level#init 33. 改变默认启动级别修改/etc/inittabid:5:initdefault:4. grub 指定内核启动级别启动grub选择系统画面的时候,按e进入命令行编辑状态,修改内核选项:kernel /boot

2012-03-23 20:58:14 473

原创 TASK_STOPPED Ctrl-Z

1. 举例从终端shell命令行启动一个图形界面的程序(用xlogo来举例)然后在再切换到该终端,可以按Ctrl-Z(信号为:SIG,信号编号:19,名称为:CONT)暂停该图形程序,可以看到该图形程序窗口内部没有正常显示了,表示该进程处于暂停状态,进程内核状态为:TASK_STOPPED(TASK_STOPPED:  process stopped by a debugger

2012-03-23 17:47:21 1506

原创 LFS 笔记

使用的版本是6.3,下面摘录构建的时候的注意事项和问题,前后用了5天时间1. livecd启动的时候,从lfs用户切换会root,用命令exit;2. lfs 预先的设定:把源码包从/lfs-sources复制到/mnt/lfs/sources目录,然后你会解压文件源码包,然后进入需要源码包的目录,然后就是文档第5章中的操作了;3. 5.4编译gcc的时候,不要先打补丁;4.

2012-03-23 15:05:55 788

转载 C++ 11

The Biggest Changes in C++11 (and Why You Should Care)转自:http://www.softwarequalityconnection.com/2011/06/the-biggest-changes-in-c11-and-why-you-should-care/It’s been 13 years since the first it

2012-03-15 01:05:20 1101

转载 Process Tracing Using Ptrace

Process Tracing Using PtraceBy Sandeep SThe ptrace system call is crucial to the working of debugger programs like gdb - yet its behaviour is not very well documented - unless you believe

2012-03-14 22:25:18 754

转载 7 Strace Examples to Debug the Execution of a Program in Linux

7 Strace Examples to Debug the Execution of a Program in Linuxby Balakrishnan Mariyappan onNovember 23, 2011Strace is a debugging tool that will help you troubleshoot issues.Strace monitor

2012-03-14 01:05:27 704

转载 Using Top More Efficiently

摘自:http://www.linuxforums.org/articles/using-top-more-efficiently_89.htmlFor desktop users, monitoring resource usage is an important task. By doing this, we can locate system bottleneck, planning

2012-03-13 23:15:40 699

原创 emacs TAGS etags

1. 创建TAGSetags file-listfind . -name "*.[chCH]" -print | etags -find . -print -name "*.[chCH]" -o -name "*.cpp" | etags -   #-print需要提前,否则没有输出# find参数-maxdepth n 可以指定搜索层数2. 相对路径、绝对路径

2012-03-06 23:28:00 1721

原创 find 命令

1. 查找#查找.cpp文件和.c文件find . -name "*.cpp" -o -name "*.c" #通配符查找find . -regex ".*\.\(c\|cpp\)" #正则表达式查找#查找并统计源文件行数find . -regex ".*\.\(c\|cpp\|h\)" | xargs wc -l2. 相对/绝对 路径

2012-03-06 22:59:40 1088

转载 Detection of Half-Open (Dropped) TCP/IP Socket Connections

By Stephen Cleary | 20 Jun 2009 摘自:http://www.codeproject.com/Articles/37490/Detection-of-Half-Open-Dropped-TCP-IP-Socket-Conne/?fid=1542585&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Quick&

2012-02-28 00:43:24 869

原创 UTLK Signal 笔记

1. Signals sent to a process that is not currently executing must be saved by the kernel until that process resumes execution. 2. 信号的两个概念:内核或者一个进程向另一个进程发送信号(send a signal to),包括两个过程:

2012-02-27 02:20:18 8623

转载 Impact of Signals on Unix/Linux System Calls

By poornaMokshaOn 8th October, 2011Suppose a system call was blocked due to some reason (like waiting for a read of some data on terminal) and during this time a signal occurs. Do you know what

2012-02-25 01:41:00 814

原创 压缩/解压/打包 命令 笔记

1. rar/unrar:(.rar)压缩目录:$ rar a archive.rar dir_path #压缩一个目录到archive.rar,a选项是添加,也可以添加文件加密:$ rar a -p123 archive.rar file1 file2 # 加密,密码是123解压到当前目录:$ unrar e archive.rar查看压缩文件内容:$ unrar

2012-02-23 19:07:02 928

原创 GNU GLOBAL 笔记

1. 安装配置:1. 先安装global,yum或者apt源里面有,也可以源码安装;2. 要用再emacs上,需要下载源码包:http://tamacom.com/global/global-6.2.tar.gz,解压,复制源码包根目录下面的gtags.el到emacs的load-path的一个目录下,再.emacs中加入:(autoload 'gtags-mode "gtags"

2012-02-23 12:54:50 3434

原创 Linux服务器需要登录之后才能连接无线问题?

1. 问题:配置了一个Ubuntu 10.10 作为ssh服务器,每次重启后,远程无法链接,因为服务器的是通过无线连接的,只有从本机登录后无线才会连接,所以这样每次服务器重启后,需要到本机再登录一次,才能再远程登录,非常不便?2. 问题原因,Ubuntu现在由NetworkManager管理连接,这个软件方便了管理多个连接,但是却需要登录后才能得到连接;3. 解决方法:1. 一个简

2012-02-15 19:31:22 951

原创 GNU Info System 使用笔记

0. info的manualstand-alone info,在shell下面,$info info,进入后按大写的H,可以查看info的简单帮助,还有info搜索的路径;在emacs下面的info,C-h r进入emacs帮助文档后,按h进入;两者的manual内容是一样的。1.浏览 SPC:向前翻一屏:向后翻一屏[:上一节点,认为所有节点都是同一级的

2012-02-11 00:16:09 573

原创 ECB 笔记

0. tree-buffer:ecb每个窗口对应一个buffer,因为窗口元素都是按照树形组织的,所以叫 tree-buffer配置配置ECB帮助(setq Info-default-directory-list             (append  Info-default-directory-list                     '("~/.emac

2012-02-02 23:46:29 1300

原创 Swap分区太小 无法休眠 解决方法

1. 现象:pm-hibernate无法休眠,出现 pm, not enough swap;2. 系统Fedora 16,内存3G,swap分区只有1G,想办法增加swap,重新创建swap分区比较麻烦,于是先增加swap文件试试:#dd if=/dev/zero of=/root/swap bs=512M count=8#chmod 777 /root/swap ;改变权限

2012-01-31 19:32:21 3120

原创 shell 变量 & 环境变量 (bash)

1. 在bash中,shell变量可以直接通过通过如下形式创建:$name=value2. shell变量不能被子进程(字shell) 继承,通过export,可以令shell变量成为环境变量(此时会出现在env的输出中),环境变量可以被子进程继承;3. shell中查看当前所有环境变量用命令 env或者printenv(不带参),查看包括环境变量在内的所有shell变量用 set (

2012-01-28 00:38:37 705

原创 Firefox 使用笔记

插件:zoomming: noSquint下载: DownThemAll代理:fireproxy标签浏览:Tab Mix PlusFlash:Shockwave关联电驴 (ed2k协议):http://kb.mozillazine.org/Register_protocol

2012-01-25 16:22:08 657

原创 linux initrd

1. 查看initrd (Fedora 16)使用mount命令(mount -t ramfs -o loop/boot/initrd-plymouth.img /media/TEMP)挂载不了;找到另外的方法,成功:cd /tmpcp /boot/initrd-plymouth.img initrd.gz  #从FC3开始initrd文件作为gzip压缩的CPIO文件存在gu

2012-01-23 22:57:39 1493

原创 VirtualBox 使用 笔记

1. 安装VirtualBox 4.0之后拆分成了两个包,主虚拟机是VirtualBox platform packages,扩展功能放到了VM VirtualBox Extension Pack中,按照VirtualBox Personal Use and Evaluation License (PUEL)发布。现在的版本是4.1.8,两个包版本需要一致。4.1.8虚拟机依赖qt4.4和

2012-01-18 15:38:47 662

dynamic bayesian

Dynamic Bayesian Networks: Representation, Inference and Learning by Kevin Patrick Murphy

2009-08-25

C++之父Bjarne谈C++中的STL模板

C++之父Bjarne谈C++中的STL模板 有些历史和想法只有他知道,看看也好。

2008-10-22

C++之父Bjarne Stroustrup的专访记录

几年前的, 主要关于STL的。

2008-10-22

OLE COM ActiveX历史渊源及关系

从历史渊源上分析几个技术之间的关系, 这样能让人明白的更加系统。是我见过的分析的比较好的文章。

2008-10-22

WinCE内存管理报告

讲解的比较透彻, 明白许多内存方面的概念。

2008-10-22

Thinking in C++ Volume2

Thinking in C++ 第二版 第二卷

2008-09-25

Thinking in C++ volum 1

Thinking in C++ 英文版第一卷

2008-09-25

Prentice-Hall - Core C++ - A Software Engineering Approach (1280 pages).pdf

以C++的工程应用为主,适合有一定开发经验的人阅读。 机械工业出版社有这本书的翻译版《C++精髓:软件工程方法》,还不错。

2008-09-25

VC文件类型解释.docx

罗列了常见的VC文件类型的含义。 就简单介绍一下,就一页,不要下了后悔。

2008-09-25

几种文件操作编程方发.doc

主要介绍了C、C++和Windows API文件操作的方法。

2008-09-25

Linux系统管道和有名管道的通信机制.doc

Linux系统管道和有名管道的通信机制,简要介绍了IPC通信的一种方式。

2008-09-25

图像文件格式、结构.doc

图像文件格式、结构,几种常见的图像结构的介绍。

2008-09-25

十年MFC经历认识的Microsoft技术

十年MFC经历认识的Microsoft技术,体会别人的经验与技术,来自csdn。

2008-09-25

Linux系统调用列表.doc

常用Linux系统调用列表,附有简单的中文介绍。

2008-09-25

空空如也

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

TA关注的人

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