自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 使用gdb调试多线程程序总结

References: http://hi.baidu.com/hcq11/blog/item/9f5bfc6e696209d680cb4a25.html

2012-05-11 17:17:08 1869

转载 关于gcc、glibc和binutils模块之间的关系,以及在现有系统上如何升级的总结

References: http://blog.csai.cn/user1/265/archives/2005/2465.html

2012-05-11 09:18:36 1988

转载 解读Python内存管理机制

Reference:http://developer.51cto.com/art/201007/213585.htm

2012-03-29 21:19:04 2687 1

原创 解决Emacs里面的Python mode下跑UnitTest的异常问题

References: http://airekans.sinaapp.com/?p=25PS: 从今天开始,博客会陆陆续续往SAE上面的博客迁移。

2012-03-26 18:20:42 2016

转载 Install driver for TP-LINK wifi card TL-WN722N on Ubuntu

Referenceshttp://blog.csdn.net/echo7l/article/details/6195617http://dwiel.net/blog/tp-link-tl-wn722n-on-ubuntu-10-04/ (***)The installation steps are specified in (2). Please note

2012-03-25 13:58:51 2746

转载 Linux中几个用来trace程序调用的工具

Referenceshttp://en.wikipedia.org/wiki/Stracehttp://en.wikipedia.org/wiki/SystemTapstrace cmd: 执行命令,并trace调用的system call和signal。ltrace cmd: 类似于strace,但是ltrace会截获library call调用(

2012-03-22 14:53:00 3861

转载 深入浅出Node.js(五):初探Node.js的异步I/O实现

References: http://www.infoq.com/cn/articles/nodejs-asynchronous-io

2012-03-22 13:32:31 1913

转载 Function Reference in Elisp/Emacs

References:http://xahlee.org/emacs/elisp.htmlhttp://stackoverflow.com/questions/559634/emacs-lisp-function-guidehttp://xahlee.org/emacs/elisp_function_eval_and_doc_lookup.html  这篇教怎么查找elisp函

2012-03-21 09:20:52 2210

转载 Coroutine in C/C++

References:http://www.crystalclearsoftware.com/soc/coroutine/  no sourcehttps://github.com/mozy/mordorhttps://github.com/okws/sfslite/wiki/tamehttp://www.chiark.greenend.org.uk/~sgtatham/cor

2012-03-15 17:45:16 3309 2

转载 C/C++ programming in Emacs

References:http://forum.ubuntu.org.cn/viewtopic.php?f=68&t=40522&sid=f64a0451bb4fb59a2172557c35fbf6d1http://www.caole.net/diary/emacs_write_cpp.htmlhttp://blog.csdn.net/meteor1113/article/de

2012-03-15 11:16:44 2168

转载 在Emacs中使用gdb调试程序

原文地址:http://emacser.com/emacs-gdb.htmEmacs果然是神器~~

2012-03-14 17:18:43 1935

转载 Compile Clang on Fedora15

References: http://superuser.com/questions/321380/getting-clang-to-work-on-fedora-15主要注意的是,如果你的C++版本没有32和64这些子目录,那就不要加 --with-cxx-include-32bit-dir=32这一行,因为这样会导致你的C++头文件寻找错误。这个比clang官方G

2012-03-13 09:45:14 1719

转载 Shell小技巧

原文链接:http://www.cnblogs.com/weidagang2046/archive/2011/04/05/2005731.html1. 用&& ||简化if elsegzip -t a.tar.gz if [[ 0 == $? ]]; then echo "good zip" else echo "bad zip" fi

2012-03-13 08:58:21 2011

原创 在Cygwin terminal中使用Windows Python

References: http://duhctaep.blogspot.com/2011/01/windows-python-in-cygwin.html

2012-03-12 13:10:27 3178

原创 PyUnit学习笔记

blah blah

2012-03-09 14:55:44 2034

转载 Install IPython on Windows

References: http://liangwenxiao.iteye.com/blog/892016http://pyvideo.org/video/605/ipython-in-depth-high-productivity-interactive-a IPython的介绍视频,需要翻墙。因为我电脑上安装的是Python 2.5,而IPython是0.10系

2012-03-08 15:09:38 2116

原创 C++ 11几个值得注意的特性 —— 从Techparty新语言回来有感(1)

Referenceshttp://www.slideshare.net/Xorcerer/c11-11742077http://blog.csdn.net/zwvista/article/details/5450759 变长参数解析http://www.cnblogs.com/hujian/archive/2012/02/14/2350306.html lambda解析

2012-03-01 23:17:20 2027

转载 C++ 11中的右值引用

References:http://thbecker.net/articles/rvalue_references/section_01.html 看过的最好的一篇讲解Rvalue refenrence的文章。http://blog.csdn.net/csdnji/article/details/169200http://www.cnblogs.com/hujian/archi

2012-03-01 16:28:10 1856

转载 C#中的异步编程模型(APM)

asynchronous programming model(APM),在google上面找了一下,貌似暂时只有C#有实现,不知道是不是C#首创?APM也就是老赵最近一直在说的Jscex和C# 5.0背后的原理了。在C# 5.0里面新增的async和await关键字主要就是实现了这个模型里面的模式。References:http://www.codeproject.com/Ar

2012-02-28 11:01:15 2092

原创 Temporary Variable in C++

#include "TestTempVar.h"#include using namespace std;namespace { struct TempClass { TempClass() : privateCount(count) { ++count; cout << "TempClass " << privateCount <<" ctor" << endl; } ~

2012-02-23 11:47:07 1764

转载 两个用于谷歌输入法的颜文字拓展

References:http://www.douban.com/note/70879070/https://sites.google.com/site/moses/Home/downloads/smiley.lua  (需要翻墙)

2012-02-22 12:20:22 2904

原创 A macro for looping map

References: http://herbert.the-little-red-haired-girl.org/html/gcc/cpp_1.htmlhttp://stackoverflow.com/questions/1597007/creating-c-macro-with-and-line-token-concatenation-with-positioning-macr

2012-02-21 19:09:19 621

转载 Some interesting Softwares

http://gearman.org/ : 类似于RPC的中间件http://twitter.github.com/finagle/ 也是RPChttp://func.et.redhat.com/ : 一个SSH的替代品。

2012-02-17 12:21:30 451

原创 在Python中模拟C中的?:运算符

References: http://www.secnetix.de/olli/Python/tricks.hawk#trinary首先我们需要在Python里面用一个语句达到下面的效果:if a: return belse: return cList Version用List,我们可以这么表示:[c, b][bool(a)]这个是什么意思呢?

2012-02-08 18:38:33 576

转载 GTK+主循环(main loop)的工作原理

References: http://blog.csdn.net/absurd作者联系方式:Li XianJing 更新时间:2007-3-17

2012-02-03 09:20:12 537

原创 wxWidget里面的Event Loop

blah blah

2012-02-02 16:25:53 483

转载 一年成为Emacs高手(像神一样使用编辑器)

References: http://blog.csdn.net/redguardtoo/article/details/7222501

2012-02-02 12:21:44 634

转载 About 异步编程

References: http://krondo.com/?p=1209http://en.wikipedia.org/wiki/Asynchronous_I/O 异步IOReactor Pattern在Twisted中3个关键的概念:TransportsThe Transport abstr

2012-02-01 21:38:31 381

原创 关于C++模板

blah blah blah

2012-01-19 10:07:20 321

转载 C++ Template and Inheritance

References: http://www.hackcraft.net/cpp/templateInheritance/

2012-01-19 10:00:54 658

转载 How Browsers Work

References: http://www.html5rocks.com/en/tutorials/internals/howbrowserswork/少少读书笔记。最重要的一个结构图如下:其中提到了Chrome的特别之处,Chrome对于每个tab都是一个process,而每个Process都有一个Rendering engine。其中最关键

2012-01-16 15:52:28 413

原创 深圳NodeParty 2012-01-08小记

应该是第一次参加这种纯技术性的Party,技术气氛很浓。废话不多说,用图说事!!这个是来自淘宝的一个很牛的工程师,现在是在解释node.js的基本内容和阐述了一下淘宝的数据产品中有哪些是用node.js来做的。可以看到glider和MyFox现在都已经用node.js来替换了。现在淘宝貌似是打算用node.js来作为中间层的统一标准。这位工程师昨晚还为一个node.js的has

2012-01-09 09:19:49 1039

原创 STL中的list::sort算法解析

References《STL源码剖析》http://www.ecjtu.org/thread-30140-1-1.html《算法导论》http://blog.yangzhe1991.org/2011/01/stl-sort%E6%BA%90%E7%A0%81%E5%89%96%E6%9E%90/ : sort解析,使用的是RandomAccessIterator。

2011-12-30 08:52:59 770

原创 C++中的函数重载(overloading)

Reference:《C++ Primer. 4th ed》What's overloading?函数的重载也就是用一个函数名代表多个不同的函数。这些不同的函数之间需要用不同的参数列表来区分。单单是返回值类型的不同不能够构成重载,而只是一个编译错误。而如果两个函数声明完全一样的话,则称为Redeclaration(重声明)。所以Record lookup(const

2011-12-28 13:37:16 1039

转载 Concepts in Programming Languages

References: http://www.cl.cam.ac.uk/teaching/1011/ConceptsPL/

2011-12-27 14:10:10 539

原创 Scheme Interpreter in Scheme

这里用来记录学习SICP里面的第四章的学习笔记。

2011-12-26 09:37:46 691

转载 C++中什么成员函数可以称之为Trivial

References: http://stackoverflow.com/questions/3899223/what-is-a-non-trivial-constructor-in-c

2011-12-23 09:38:21 405

原创 STL学习笔记:Iterator和Traits编程技巧

References:《STL源码剖析》Overview在STL中,在访问容器的元素的时候,一般我们会用Iterator来访问。使用Iterator访问,可以使得函数或者算法本身独立于容器本身的类型,也就是做到某种程度上的泛型。而在STL中,原生指针本身也是一种iterator,那么对于泛型函数的设计就会带来复杂度,比如在定义一个针对iterator的swap函数的时候

2011-12-22 12:16:56 757

转载 Windows下截获程序的异常并进行处理

References:http://win32assembly.online.fr/tut28.htmlhttp://stackoverflow.com/questions/78048/best-way-to-detect-an-application-crash-and-restart-it一般情况下,如果Windows下面的程序蹦了,那么Windows会跳出一个er

2011-12-20 17:53:08 710

转载 在Fedora 15下安装Oracle Java JDK以及对于alternatives的一些感受

References: http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux首先安装了Oracle JAVA,然后就是让firefox能够跑这个新装的java和javaws,最后是通过alternatives这套环境管理套件完成的。在使用过程中,用alternatives对于刚刚上手的时候可能有点不适应,但是在完成整个流程

2011-12-17 14:40:54 529

Programming Ruby

Programming Ruby - HTML version

2010-09-30

How to Design Programs

How to Design Programs

2010-07-14

The Scheme Programming Language

The Scheme Programming Language

2010-07-14

Structure and Interpretation of Computer Programs

Structure and Interpretation of Computer Programs

2010-07-14

Win32汇编的扫雷(不完全版本)

用Win32汇编写的扫雷,功能还不完善,不能调难度,没有笑脸、计雷器和计时器。 里面包含了Asm,rs文件,还有一个Makefile。 汇编之前请确保已经安装了masm32包,并且要把环境变量设好。 下面是环境变量的批处理文件(默认masm32安装在D:\masm32): @echo off set include=d:\masm32\Include;D:\Microsoft Visual Studio 8\VC\include set lib=d:\masm32\lib echo on

2009-10-05

16位MASM汇编的压缩程序(字典和霍夫曼两种算法)

用汇编写的压缩程序,只支持单文件压缩。 使用了LZ77和Huffman两种算法。 文件的压缩格式写的比较乱,想了解的人就仔细看看代码了…… 压缩的主要算法我是先用C写好,然后再手工翻译成汇编的 文件说明: LZ77.c:C写成的LZ77压缩算法,里面包含了很多调试用的输出,我就懒得删了,觉得麻烦可以删掉printf的输出。 huffman.c:C写成的Huffman压缩算法,也是有很多调试输出。 header.asm:汇编的主要头文件,包含了一些通用的宏和变量声明,其中有调试用的宏DEBUG_INFO,这个需要有Irvine16.inc,此文件包含在Intel汇编语言程序设计里。要用调试的话,在汇编的时候加上DEBUG的宏定义就可以。 compress_v14.asm:程序的框架,里面包含了整个程序的流程和一些非压缩算法的函数。 file_pr.asm:文件操作函数,主要是做了一些封装。 lz77.asm:LZ77算法的16位汇编实现,实际上是对应着lzalong.c的。 huffman.asm:Huffman算法的16位汇编实现,对应着huffman.c。 汇编命令: masm compress_v14.asm, comp.obj masm file_pr.asm masm lz77.asm masm huffman.asm 链接命令: link comp.obj file_pr.obj lz77.obj huffman.obj 程序的具体使用方法可以在汇编出来的程序加-h参数查看使用说明。

2009-10-05

Linux下NASM的通用函数库Along32库V1.0(已过时)

Linux的NASM函数库,改编自《Intel汇编语言程序设计(第五版)》里Kip R.Irvine写的Irvine32库。里面的注释大多数都还没有改过来。 这个库的2.0版已经上传,新增详细的注释和使用说明,请下V2.0版,此1.0版就可以不用下了。

2009-05-23

CC2005

Computer curricula 2005的PDF

2008-05-31

计算机程序的构造和解释

MIT的计算机系入门课程的教材~~<br>经典书之一。

2008-05-31

空空如也

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

TA关注的人

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