博客园 - 英超uuid:6cbd1ba2-f883-4c34-aed1-30dde64a3a3e;id=7134362015-01-15T23:57:52Z英超https://www.cnblogs.com/yangyingchao/feed.cnblogs.comhttps://www.cnblogs.com/yangyingchao/p/3941653.htmlThe Art Of Computer Programming: 1.1 - 英超The Art Of Computer Programming: 1.1Table of Contents1. Algorithm1 Algorithm1.1 算法的特性算法除了是一套有限的规则 (Being a finite set of rules) 之外,还有如下的五个特性:有限性 (Finiteness) :需要在有限的步骤内收敛结束。可定义性 (Definieness) :算法中的每一步...2014-08-28T07:13:00Z2014-08-28T07:13:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】The Art Of Computer Programming: 1.1Table of Contents1. Algorithm1 Algorithm1.1 算法的特性算法除了是一套有限的规则 (Being a finite set of rules) 之外,还有如下的五个特性:有限性 (Finiteness) :需要在有限的步骤内收敛结束。可定义性 (Definieness) :算法中的每一步... <a href="https://www.cnblogs.com/yangyingchao/p/3941653.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3909667.htmlHow to tell your iPhone application that location services are required | The Agile Warrior - 英超Below is a snapshot of the Web page as it appeared on 8/12/2014. This is the version of the page that was used for ranking your search results. The pa...2014-08-13T03:45:00Z2014-08-13T03:45:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】Below is a snapshot of the Web page as it appeared on 8/12/2014. This is the version of the page that was used for ranking your search results. The pa... <a href="https://www.cnblogs.com/yangyingchao/p/3909667.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3855547.htmlHow to detect whether socket is still connected... - 英超How to detect whether socket is still connected…From wget source code…booltest_socket_open (int sock){ fd_set check_set; struct timeval to; int ret = 0; /* Check if we still have a valid (non-EOF)...2014-07-19T14:07:00Z2014-07-19T14:07:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】How to detect whether socket is still connected…From wget source code…booltest_socket_open (int sock){ fd_set check_set; struct timeval to; int ret = 0; /* Check if we still have a valid (non-EOF)... <a href="https://www.cnblogs.com/yangyingchao/p/3855547.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3842018.htmlUbuntu Touch On Nexus4 Manual Install (手动安装) under Gentoo - 英超Table of Contents1. 准备工作:2. Saucy Salamander3. 刷入 最新 版Touch最近手里的 Nexus 4 手机一直闲置,它的配置要比我六年前买的笔记本还好,于是就动起了向里面刷个 Ubuntu Touch 的想法。1 准备工作:安装 Adb tools, go...2014-07-14T00:19:00Z2014-07-14T00:19:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】Table of Contents1. 准备工作:2. Saucy Salamander3. 刷入 最新 版Touch最近手里的 Nexus 4 手机一直闲置,它的配置要比我六年前买的笔记本还好,于是就动起了向里面刷个 Ubuntu Touch 的想法。1 准备工作:安装 Adb tools, go... <a href="https://www.cnblogs.com/yangyingchao/p/3842018.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3794436.htmlLanguageTag - 英超LanguageTagTable of Contents1. The Language TagThis is a memo of RFC 5646, ie BCP-47.1 The Language TagLanguage tags are used to help identify languages, whether spoken,written, signed, or otherwise s...2014-06-18T05:29:00Z2014-06-18T05:29:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】LanguageTagTable of Contents1. The Language TagThis is a memo of RFC 5646, ie BCP-47.1 The Language TagLanguage tags are used to help identify languages, whether spoken,written, signed, or otherwise s... <a href="https://www.cnblogs.com/yangyingchao/p/3794436.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3527353.html » Working Around JNI UTF-8 Strings Deprogramming - 英超private static native void printString(String text); ... void examplePrintString() { String str = "A" + "\u00ea" + "\u00f1" + "\u00fc" + "C"; System.out.println("String = " + str); p...2014-01-20T10:10:00Z2014-01-20T10:10:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】private static native void printString(String text); ... void examplePrintString() { String str = "A" + "\u00ea" + "\u00f1" + "\u00fc" + "C"; System.out.println("String = " + str); p... <a href="https://www.cnblogs.com/yangyingchao/p/3527353.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3493155.htmlMget is available. - 英超Table of Contents1. Introduction2. Use tmget in gentoo3. About MTU1 IntroductionMulityGet to speed up downloading from server.It provides a library named libmget and a sample app named tmget.You can download it from: here .2 Use tmget in gentooYou can set tmget to be used to fetch resources from int2013-12-26T13:57:00Z2013-12-26T13:57:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】Table of Contents1. Introduction2. Use tmget in gentoo3. About MTU1 IntroductionMulityGet to speed up downloading from server.It provides a library named libmget and a sample app named tmget.You can download it from: here .2 Use tmget in gentooYou can set tmget to be used to fetch resources from int <a href="https://www.cnblogs.com/yangyingchao/p/3493155.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3483712.htmlFix Valgrind's must-be-redirected error in Gentoo - 英超Last week, I tried to use Valgrind to identify potential memory related bugs, since segmentation faults occured randomly in a Python C library. However...2013-12-20T05:24:00Z2013-12-20T05:24:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】Last week, I tried to use Valgrind to identify potential memory related bugs, since segmentation faults occured randomly in a Python C library. However... <a href="https://www.cnblogs.com/yangyingchao/p/3483712.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3473774.htmlvector 测试 - 英超vector 测试 写个简单的东西来测试一下数据很多时候几种创建 vector 的方法,结果有点意思: #include #include #include using namespace std;
typedef unsigned int uint32; struct Obj
{ Obj(int a1, int b1, int c1) ...2013-12-13T12:24:00Z2013-12-13T12:24:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】vector 测试 写个简单的东西来测试一下数据很多时候几种创建 vector 的方法,结果有点意思: #include #include #include using namespace std;
typedef unsigned int uint32; struct Obj
{ Obj(int a1, int b1, int c1) ... <a href="https://www.cnblogs.com/yangyingchao/p/3473774.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3467291.htmlabc - 英超abc (转载请注明出处,使用许可:署名-非商业性使用-相同方式共享 3.0 中国大陆许可协议 。)2013-12-10T05:39:00Z2013-12-10T05:39:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】abc (转载请注明出处,使用许可:署名-非商业性使用-相同方式共享 3.0 中国大陆许可协议 。) <a href="https://www.cnblogs.com/yangyingchao/p/3467291.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3442213.htmlEffective STL 43: Prefer algorithm calls to hand-written loops - 英超Effective STL 43: Prefer algorithm calls to hand-written loops Suppose you have a Widget class that supports redrawing: class Widget
{
public: Widget(); virtual ~Widget()...2013-11-25T13:07:00Z2013-11-25T13:07:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】Effective STL 43: Prefer algorithm calls to hand-written loops Suppose you have a Widget class that supports redrawing: class Widget
{
public: Widget(); virtual ~Widget()... <a href="https://www.cnblogs.com/yangyingchao/p/3442213.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3438356.htmltest.c - 英超test.c #include #include #include #include #include #include #include void dump_line(const unsigned char* buf, int w, int l)
{
#define YYYGET(X) ( X >= 32 && X 1 ? ...2013-11-22T14:37:00Z2013-11-22T14:37:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】test.c #include #include #include #include #include #include #include void dump_line(const unsigned char* buf, int w, int l)
{
#define YYYGET(X) ( X >= 32 && X 1 ? ... <a href="https://www.cnblogs.com/yangyingchao/p/3438356.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3438354.htmlHex Dump In Many Programming Languages - 英超Hex Dump In Many Programming Languages See also: ArraySumInManyProgrammingLanguages, CounterInManyProgrammingLanguages, DotProductInManyProgrammingLanguages, WardNumberInManyProgrammingLanguages, ...2013-11-22T14:35:00Z2013-11-22T14:35:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】Hex Dump In Many Programming Languages See also: ArraySumInManyProgrammingLanguages, CounterInManyProgrammingLanguages, DotProductInManyProgrammingLanguages, WardNumberInManyProgrammingLanguages, ... <a href="https://www.cnblogs.com/yangyingchao/p/3438354.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3435328.htmlEffective STL 学习笔记 39 ~ 41 - 英超Effective STL 学习笔记 39 ~ 41 Table of Contents Make Predicate pure Function
Make Functor classes adaptable
ptr_fun, mem_fun and mem_fun_ref 1 Make Predicate pure Function 纯函数...2013-11-21T04:45:00Z2013-11-21T04:45:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】Effective STL 学习笔记 39 ~ 41 Table of Contents Make Predicate pure Function
Make Functor classes adaptable
ptr_fun, mem_fun and mem_fun_ref 1 Make Predicate pure Function 纯函数... <a href="https://www.cnblogs.com/yangyingchao/p/3435328.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3433258.htmlHttp PipeLining - 英超Http PipeLining Table of Contents Pipeline and Persistent Connection — From rfc2616
Http Pipeline and libCurl 1 Pipeline and Persistent Connection — From rfc2616 1.1 Pipeli...2013-11-20T04:16:00Z2013-11-20T04:16:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】Http PipeLining Table of Contents Pipeline and Persistent Connection — From rfc2616
Http Pipeline and libCurl 1 Pipeline and Persistent Connection — From rfc2616 1.1 Pipeli... <a href="https://www.cnblogs.com/yangyingchao/p/3433258.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3432210.htmlEffective STL 学习笔记 Item 38 : Design functor classes for pass-by-value - 英超Effective STL 学习笔记 Item 38 : Design functor classes for pass-by-value 严格来讲, C 和 C++ 都不支持将函数作为参数,真正作为参数的,实际上是
pass-by-value 的函数指针, 作为函数指针的模拟, Functor 作为参数时候也是按值传递的,有些 STL 的实现中,将 Funct...2013-11-19T12:50:00Z2013-11-19T12:50:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】Effective STL 学习笔记 Item 38 : Design functor classes for pass-by-value 严格来讲, C 和 C++ 都不支持将函数作为参数,真正作为参数的,实际上是
pass-by-value 的函数指针, 作为函数指针的模拟, Functor 作为参数时候也是按值传递的,有些 STL 的实现中,将 Funct... <a href="https://www.cnblogs.com/yangyingchao/p/3432210.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3426151.htmlEffective STL 学习笔记 Item 34: 了解哪些算法希望输入有序数据 - 英超Effective STL 学习笔记 Item 34: 了解哪些算法希望输入有序数据 有些个算法对有序的和无序的数据都能应用,但多数情况下,他们在输入数据有序时才最有用。 下列算法要求输入数据必须有序: binary_search, upper_bound, lower_bound, equal_range 这些算法均使用了二分查找 (binar...2013-11-15T14:10:00Z2013-11-15T14:10:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】Effective STL 学习笔记 Item 34: 了解哪些算法希望输入有序数据 有些个算法对有序的和无序的数据都能应用,但多数情况下,他们在输入数据有序时才最有用。 下列算法要求输入数据必须有序: binary_search, upper_bound, lower_bound, equal_range 这些算法均使用了二分查找 (binar... <a href="https://www.cnblogs.com/yangyingchao/p/3426151.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3426099.htmlEffective STL 学习笔记 32 ~ 33 - 英超Effective STL 学习笔记 32 ~ 33 Table of Contents 记得 Remove 后要 Erase
remove, container, pointer 1 记得 Remove 后要 Erase Item 9 中已经提到过,如果真的想要用 remove 从容器中删除元素,必须要在 remove 之后使用 erase...2013-11-15T13:24:00Z2013-11-15T13:24:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】Effective STL 学习笔记 32 ~ 33 Table of Contents 记得 Remove 后要 Erase
remove, container, pointer 1 记得 Remove 后要 Erase Item 9 中已经提到过,如果真的想要用 remove 从容器中删除元素,必须要在 remove 之后使用 erase... <a href="https://www.cnblogs.com/yangyingchao/p/3426099.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3426091.htmlEffective STL 学习笔记 31:排序算法 - 英超Effective STL 学习笔记 31:排序算法 Table of Contents partial_sort
nth_element
stability
partition
总结 1 partial_sort partial sort 可以进行部分排序,例如,仅 按顺序排出 某个容器中的前 20 名: bool quality...2013-11-15T13:16:00Z2013-11-15T13:16:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】Effective STL 学习笔记 31:排序算法 Table of Contents partial_sort
nth_element
stability
partition
总结 1 partial_sort partial sort 可以进行部分排序,例如,仅 按顺序排出 某个容器中的前 20 名: bool quality... <a href="https://www.cnblogs.com/yangyingchao/p/3426091.html" target="_blank">阅读全文</a>https://www.cnblogs.com/yangyingchao/p/3418916.html 编程六月定律 | 外刊IT评论网 - 英超编程六月定律 ...2013-11-12T01:31:00Z2013-11-12T01:31:00Z英超https://www.cnblogs.com/yangyingchao/【摘要】编程六月定律 ... <a href="https://www.cnblogs.com/yangyingchao/p/3418916.html" target="_blank">阅读全文</a>