加载中
Linux下配置object-c开发环境

本篇博客讲述如何在里linux上配置object-c的开发环境,并且给出简单的代码和Makefile示例。

Linux中的Pipe和FIFO的原理浅析

之前从编程角度写过Linux的Pipe和FIFO,主要侧重于使用,附带了简单的原理介绍。(链接如下) http://my.oschina.net/u/158589/blog/54705 http://my.oschina.net/u/158589/blog/55051 今天在...

杂谈Linux编程(三)

1. The Cancellation state of a thread => asynchronous cancelable => synchronous cancelable => uncancelable During normal operation, it is a good idea not to use thread cancellat...

2012/05/03 14:08
41
c语言中的面向对象(1)----kobject 和 container_of

最近看驱动开发,看linux的device model,有一些感触。暂记于下。 我之前一直把OO(object oriented)这个概念和特定的语言联系在一起。比如,认为c++,java,python等是面向对象的语言,C语...

python built-in decorators

Built-in Decorators Python has two built-in decorators. @staticmethod The staticmethod decorator modifies a method function so that it does not use the self variable. The method...

The Virtual Filesystem (Linux)

The Virtual Filesystem Linux manages to support multiple filesystem types through a concept called virtual filesystem. The key idea behind the virtual filesystem is to put a wid...

2012/06/04 12:04
137
list of most-frequently-used design patterns

FROM HEAD FIRST DESIGN PATTERNS strategy pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independ...

2011/12/19 15:29
80
overlayfs may be merged into 3.10 kernel

目前kernel中没有支持overlay filesystem (或者union filesystem),overlayfs目前的状态是,有可能会被merge进kernel。unionfs或者aufs显然是没有可能了。 OverlayFS File-System Proposed F...

Random Walk Simulation (Python)

问题:平面内一个物体Object的初始坐标(0,0),此后,每秒进行一个移动,每次移动1,方向是上下左右。即,newLocation = oldLocation + (x, y),其中(x,y) = (0,1) or (0, -1) or (1, 0) or (...

2012/06/03 23:00
967
IPC机制学习---D-BUS

以下内容大部分是笔记。以后如果有机会接触D-BUS,这篇文章需要改写和完善。目前仅作一个整理吧,算是个自己一个提醒。 Basics a full-featured IPC and object system First, D-BUS can pe...

2012/05/23 18:04
330
Memory Management

Page Frame Management Page Descriptors The kernel must keep track of the status of each page frame. /* * Each physical page in the system has a struct page associated with * it ...

2012/05/24 10:19
112
Basic Principles in Writing Object-C codes

This blog describes the basics principle for writing Object-C codes.

2014/07/30 11:23
24
emacs使用 -- 默认配置,不断更新中

设置默认c文件缩进风格 ;;define my c mode hook (defun mychook() (c-set-style "linux")) (add-hook 'c-mode-hook 'mychook) M-x hs-minor-mode For Emacs 21: •C-c @ C-M-s show all •C...

2012/04/24 16:32
478
Intro-to-algo (counting sort, radix sort, decis...

======================================== Lecture 5 How fast can we sort? comparison sorts e.g. quicksort, insertion sort, merge sort, heapsort No comparison sorting algorithm co...

2012/04/25 00:04
52
Coding Style

总体来说就是C/C++采用相同的coding style,但是如果是编写Linux内核模块,编写完之后,用Lindent来进行标准的Linux内核代码风格的缩进。如果是java代码,则进行标准java代码的缩进。 命名风...

2012/04/17 17:51
165
The Yocto Project

http://www.aosabook.org/en/yocto.html <="" img=""> The Yocto Project Elizabeth Flanagan The Yocto Project is an open source project that provides a common starting point for dev...

systemd coding style

CODING_SYTLE file from the systemd project.

2014/08/28 09:51
18
readv && writev --- how to use

#include <sys/uio.h> #include <stdio.h> #include <fcntl.h> #include <stdlib.h> /**open file with checking*/ static inline int open_c(const char *filepath, int mode) { int ret = ...

2012/04/25 18:56
62
Access MySQL from C (用C访问MySQL数据库)

This blog is mainly a collection of study notes and some simple tryout examples. For more details, refer to "Beginning Linux Programming", Chapter 8. Most Commonly Used APIs for...

2012/06/24 18:30
122
The Tower of Hanoi(汉诺塔)问题深入研究

汉诺塔问题是一个经典的“重复问题“(recurrent problem),解法也中所周知,最少移动步骤是2^n - 1。 然而,我发现,对这个问题进行进一步的研究也是挺有意思的。 本篇博客目前阐述三个Han...

2012/05/05 12:28
1K

没有更多内容

加载失败,请刷新页面

返回顶部
顶部