首页

  • 2014
  • Ditaa Source Code Blocks in Org Mode

    Table of Contents Introduction Requirements and Setup Org Mode Features for ditaa Source Code Blocks Header Arguments Sessions Result Types Examples of Use Org Mode support for ditaa » read more...

  • CPP Info Memo Part 5 -- Diagnostics

    #error and #warning are used for diagnostics. » read more...

  • emacs 无法使用 ibus 中文输入法

       用的gentoo,前两天用 emerge --update --newuse --deep world » read more...

  • Mget!

    Table of Contents 1. Introduction 2. Use mget in gentoo 3. About MTU 4. SSL Support 5. TODO: 5.1. Reschedule connections if some connections are ide…. 1 Introduction MulityGet to speed up downloading from server. » read more...

  • 迁移 Blog

    将以前陆陆续续写的和收集的一些东西迁移到了 github 上来。Blog 主题 Copy 了 https://github.com/Linusp/Linusp.github.io 。 » read more...

  • Convert enumerator names to string in C/C++

    pre { padding: 5px; font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; margin-bottom: 10px; background-color: #eee; overflow: auto; width: auto; width: 650px !ie7; padding-bottom: 20px !ie7; max-height: 600px; } » read more...

  • Git 基础 - 打标签

    打标签 同大多数 VCS 一样,Git 也可以对某一时间点上的版本打上标签。人们在发布某个软件版本(比如 v1.0 等等)的时候,经常这么做。本节我们一起来学习如何列出所有可用的标签,如何新建标签,以及各种不同类型标签之间的差别。 列显已有的标签 列出现有标签的命令非常简单,直接运行 git tag 即可: $ git tag v0.1 v1.3 显示的标签按字母顺序排列,所以标签的先后并不表示重要程度的轻重。 我们可以用特定的搜索模式列出符合条件的标签。在 Git 自身项目仓库中,有着超过 240 个标签,如果你只对 1.4.2 系列的版本感兴趣,可以运行下面的命令: $ git tag -l 'v1.4.2.*' v1.4.2.1 v1.4.2.2 v1.4.2.3 v1.4.2.4 新建标签 Git 使用的标签有两种类型:轻量级的(lightweight)和含附注的(annotated)。轻量级标签就像是个不会变化的分支,实际上它就是个指向特定... » read more...

  • Build Native Android Programs with CMake and android-cmake

    Using CMake to organize the source code is pretty cool, because you can quickly generate from it Visual Studio solution files on Windows and make files on Linux, and therefore build and test the code on different platforms without maintaining two separate build scripts. However, CMake does not officially support Android yet. You cannot specify an Android target and ask CMake to generate from your CMakeLists.txt the make files for Android. Luckily some folks have already started to em... » read more...

  • Speed Up Git (5x to 50x)

    Note: Results may vary, depending on distance from your Git servers. In my completely unscientific benchmarks using time, after the following steps, git pull went from ~5s, using GitHub, to ~0.1s, using EC2 on AWS Singapore. Why? 1 2 3 4 $ time git pull Already up-to-date. real 0m5.075s ... » read more...

  • Designated Initializer and C++

    Sadly, C++ does not support designated initializer which is a C99 standard…. Two Core C99 Features that C++11 Lacks Last updated Jan 1, 2003. It's too late now to make changes to the C++11 FDIS, and yet it's still worth looking at two core-language features that were added to C99 and never made it into C++.   restrict Pointers The C99 keyword restrict is a pointer qualifier. It means that for the lifetime of the qualified pointer, only it or... » read more...

  • Cpp Memo part 5 -- Conditionals

    Cpp Memo part 5 – Conditionals