关闭

[置顶] 博客迁移至GitHub:www.bo-yang.net

本人博客已经正式迁移至GitHuhttp://bo-yang.github.io/...
阅读(767) 评论(0)

Shared-memory Based Ring Buffer

This post explains how to implement a ring buffer that can be shared between multiple processes. For the simplicity and efficiency, shared memory is used to store the ring buffer. A read/write lock ...
阅读(864) 评论(0)

Coredump Decode

This is a summary of decoding Linux userspace process corefiles using GDB. PreparationDecodeExamples Example 1 - Buffer overflowExample 2 - Busybox crashExample 3 - String race condition Pr...
阅读(687) 评论(0)

Retrieve Last Log After Crash

In Linux, there are two kinds of crashes - kernel panic/oom and user space core dump. For kernel panic, the standard config is rebooting the system. Unfortunately, the panic log can only be printed ...
阅读(979) 评论(0)

Linux System Log

Overviewprintkklogdsyslogdmesgsyslog-ngConvert Timestamp 1. Overview Linux adopts a ring buffer in kernel with a size of __LOG_BUF_LEN bytes to store system logs, where __LOG_BUF_LEN equals (1...
阅读(1706) 评论(0)

Click Notes II - Click Script Language

The Click programming language was developed to configure Click routers, but nowadays you also can use it to write test cases for Click elements. Basic SyntaxElement GroupCompound ElementScriptTe...
阅读(1101) 评论(0)

Click Notes I - Overview

Click is a modular router toolkit written mainly in C++, which can be run in both user space and OS kernel space. Since its invention in late 1990s by Eddie Kohler, Click is has gained great success...
阅读(1118) 评论(0)

Building Remote+Local *nix Develop Environment(II)

This is the second article(collection) on how to build a *nix development environment by integrating remote servers and local Linux/Mac clients. For the previous article on this topic, please re...
阅读(1507) 评论(0)

pthread_exit() in main()

Most threads call pthread_exit() implicitly on return from the thread start routine. Besides, pthread_exit() also can be used to terminate the initial process thread in main(), leaving other threa...
阅读(1665) 评论(0)

Building Remote+Local *nix Develop Environment

1. .bashrc vs .bash_profile 2. sshfs 3. vim/gvim/mvim 4. ctags+vim+Tagbar 5. vnc...
阅读(1200) 评论(0)

Binary Tree Operations(IV) - Determine if a Binary Tree is a Binary Search Tree

This is the fourth article on binary tree operations. For other topics on binary tree, please refer to: Binary Tree Operations(I)Binary Tree Operations(II)Binary Tree Operations(III) - Conver...
阅读(1214) 评论(0)

Find The Shortest Path In Triangle Numbers

Problem An example of triangle of numbers is: 1 / \ 2 5 / \ / \ 9 4 33 / \ / \/ \ 11 6 99 0 In each row (except for the last), the numbers are adjacent to two numbers...
阅读(1174) 评论(0)

String Permutation

The string permutation problem aims to find all the permutations of a string(re-arrangement of characters in this string). A string of length n has n! permutations. - See more at: http://bo-yang.git...
阅读(1324) 评论(0)

Retrieve String From Sampled Slices

Given a string, such as 01001010101001101011, we can randomly sliced multiple substrings. Assume that during the slicing, due to some unexpected noises, some characters may flip(0->1 or 1->0). For exa...
阅读(1220) 评论(0)

Merge K Sorted Lists

Merge K Sorted Lists: http://bo-yang.github.io/2014/07/21/merge-k-sorted-lists...
阅读(1624) 评论(0)

Insertion Sort List

Insertion Sort List: http://bo-yang.github.io/2014/07/14/insertion-sort-list...
阅读(1089) 评论(0)
378条 共26页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:448833次
    • 积分:8518
    • 等级:
    • 排名:第2547名
    • 原创:283篇
    • 转载:89篇
    • 译文:6篇
    • 评论:56条
    最新评论