首页

  • 2014
  • Use emacs & Graphviz to plot data structure

    今天下午用了些时间写了个小的函数,该函数配合 autoinsert + graphviz-dot-mode ,可以很方便的将 C 语言中指定的 struct 结构画出来。这样,画了多个数据结构之后,再手动添加几条线, 数据结构之间的关系就一目了然了。 Table of Contents 1 Graphviz & graphviz-dot-mode 1.1 What is Graphviz? 1.2 Graphviz 的安装 1.3 Graphviz 的使用 1.4 graphviz-dot-mode 2 小函数登场 2.1 elisp 代码 2.2 使用方法 3 autoinert 配置 4 用法示例 5 后记 1 Graphviz & graphviz-dot-mode   ... » read more...

  • Use aria2c in portage

    aria2c is a ultra fast, multi-thread download tool which supoorts multi-protocols. Portage (emerge) use wget as defualt download tool. Wget is greate, but aria2c is faster in my experience. We can set aria2c as download tool in portage by modifying FETCHCOMMAND and RESUMECOMMAND variables. Here is some introduction about these two variables: (Manual of make)This variable contains the command used for fetching package sources from the internet. It must contain the full path to the executab... » read more...

  • Ubuntu Touch On Nexus4 Manual Install (手动安装) under Gentoo

    Table of Contents 1. 准备工作: 2. Saucy Salamander 3. 刷入 最新 版Touch 最近手里的 Nexus 4 手机一直闲置,它的配置要比我六年前买的笔记本还好,于是就动起了向里面刷个 Ubuntu Touch 的想法。 1 准备工作: 安装 Adb tools, google 一下即可。 开启开发者模式。 终端执行 "adb reboot bootloader" 进入 fastboot 终端执行 "fastboot oem unlock" 解锁。 刷入第三方的 recovery: "fastboot flash recovery recovery-clockwork-touch-6.0.4.3-mako.img" recovery-clockwork-touch-6.0.4.3-mako.img 可以从网上搜索得到。 之后重启进入 Android 系统,就可以下载 Image 并准备刷机了。 2 Saucy Salamander Saucy Salamander 基于 Ubuntu 13.0 , 相对稳定,... » read more...

  • Tutorial - Reverse debugging with GDB 7 (转载)

      Tutorial: Reverse debugging with GDB 7 Tutorial: Reverse debugging with GDB 7 by Jay Conrod posted on 2009-12-01 GDB 7 came out a few weeks ago, and one of the major new features is reverse debugging. This allows you to record the execution of a process, then play it backward and forward. This is incredibly useful for fixing those mysterious bugs that are so common in C/C++ programs. In this post, I'll give a motivating example of why reverse debugging is so useful, then ... » read more...

  • Top Ten One-Liners from CommandLineFu Explained - good coders code, great reuse

    简介: 转载的文章,里面介绍的技巧用的好的话可以提高工作效率,而且有几条很实用,比如 record screen, ssh-copy-id 等等。 转载请注明出处。#1. Run the last command as root $ sudo !! We all know what the sudo command does - it runs the command as another user, in this case, it runs the command as superuser because no other user was specified. But what's really interesting is the bang-bang !! part of the command. It's called the event designator. An event designator references a command in shell's history. In this case the event designator ... » read more...

  • The Linux Staging Tree, what it is and is not.

    It's been many months since the Linux Kernel developers conference, where the linux-staging tree was discussed and role changed. It turns out that people are still a bit confused as to what the staging tree is for, and how it works. So here's a short summary, I'm not going into the history or background here, that's a much longer writeup that I'd be glad to do if people are interested. The Linux Staging Tree, what it is and is not. What the Linux Staging tree is The Linux Stag... » read more...

  • The Art Of Computer Programming 1.1

    » read more...

  • Struct assignment (Just a tip)

    http://www.devx.com/tips/Tip/5788     Both standard C and Standard C++ support struct assignment using = . In fact, C++ programmers are often surprised to discover that assignment operator applies also to plain structs, and not just to objects, and C programmers are even more puzzled to discover they don’t have to assign structs tediously, field-by-field when they have a much better alternative: http://www.lysator.liu.se/c/c-faq/c-9.html         9.2: I heard that struc... » read more...

  • Search from the Address Bar in Firefox

    (from http://www.firefoxfacts.com/2008/09/10/search-from-the-address-bar-in-firefox/) The other day, when we were talking about bringing Chrome features into Firefox, the topic “searching from the address bar” was mentioned.  By default, when you type a word into the address bar by itself, it gives you Google’s “I’m Feeling Lucky” number one result.  What if you just want to do a regular Google search?  There is an easy way to turn you... » read more...

  • Porting of cURL to Android OS using NDK (from The Software Rogue)

    Porting of cURL to Android OS using NDK   In continuing my journey into Android territory, I decided it would be useful to understand the NDK development kit.  Given I want to transfer some files and possibly do a couple of other projects requiring low level work, I selected the cURL kit to port.  I've used cURL for a number of projects and it is my hope it runs well under Android.  The project, curltest, was run under Android 2.1 but it should work for other ve... » read more...

  • Mget is available.