原创 Getting grub into a disk image

 dd if=/dev/zero of=disk.img bs=1024k count=500  parted disk.img mklabel msdos  parted disk.img mkpart primary ext2 0 5

原创 how to setup svn repos

how to setup svn repos:1. svnadmin create /home/ted/backup/svn/repos2. /home/ted/backup/svn/repos/conf裏面是配置文件     修改好配置

原创 typeof operator

http://gcc.gnu.org/onlinedocs/gcc/Typeof.html   typeof is a way to refer to the type of an expression, supported by gcc

原创 const at the end of function and passing const object in a function call

#include <ostream.h> Class B {  public:         virtual void print() const        {                cout << "printB" <<

原创 use glib-genmarshal to create marshalers

When splitting widget iconview( the one modified by us) out of gtk, we have to face a problem that certain marshalers t

原创 gobject instantiation

MamanBar *bar = g_object_new (MAMAN_TYPE_BAR, NULL); first instantiation of an object,         (1) maman_b_class_ini

原创 C++中extern “C”含義深層探索

引用自:http://blog.csdn.net/yydrewdrew/archive/2007/04/03/1550409.aspx1.引言       C++語言的創建初衷是“a better C”,但是這並不意味着C++中類似C語

原创 gobject reference count summary

Goal: provide a flexible model based on reference counting which can be integrated in applications which use or require

原创 android graphics related modules

  frameworks/base/opengl/libs/        ==>                                                               libEGL.SO     

原创 Declare and Definition

聲明”向計算機介紹名字,它說,“這個名字是什麼意思”。而“定義”爲這個名字分配 存儲空間。無論涉及到變量時還是函數時含義都一樣。無論在哪種情況下,編譯器都在“定義” 處分配存儲空間。對於變量,編譯器確定這個變量佔多少存儲單元,並在內存中

原创 a useful bash script, making use of IFS

IFS=$',/r/n' for i in `adb shell ls /proc/ |grep [1-9].*` do echo /proc/$i/maps:-------- adb shell cat /proc/$i/maps do

原创 gdk pixbuf collections

(1) Creating slides base = gdk_pixbuf_new_from_file (argv[1], NULL); result = create_slide (base, atoi (argv[2])); gd

原创 about user time in X domain

_NET_WM_USER_TIME property:  this property stores an Xserver time which rep

原创 基於GTK+和X-window的GUI在嵌入式Linux中的應用

        嵌入式 Linux 下 GUI 的選擇,對大多數開發人員來說是一個需要權衡對比的過程。選擇 GTK+ 運行在 X 系統上,然後 X 系統運行在嵌入系統的 framebuffer 上,這會是一個很好的選擇。      

原创 delete event和destroy信號

0. 有關g_signal和gtk_signal     GtkObject中, gobject_class->dispose = gtk_object_dispose static void gtk_object_dispose(GO