原创 Porting snappy/libspicec.so onto Android-ARM

   This is my instructions and patches for porting snappy/libspicec-glib.so extracted from spicec-gtk-0.5 onto Android-

原创 Releas androidSpice-0.1.3

Hi,all!    I'm happy to release the experimental androidSpice under LGPL,welcome to improve!    The source and wiki now

原创 編程解決智力題之統計正方形

以下爲統計正方形個數的程序,圖如下: 1. 統計頂點 設最左下座標爲(0,0),右上爲(4,4), 將所有的頂點(vertex)保存起來, 則大正方形四等分邊會獲得vertice.size()==25個vertice. 而小正方形二等分

原创 編程解決智力題之砝碼分配

問題如下: 若有四個砝碼稱出1~30g間所有整數克,則四個砝碼各重多少? 結果是 (1)+(2)+(7)+(20)。 程序如下: #include <stdio.h> bool can_get(const int sum, const

原创 Some troblshootings in DC/AD

Some troblshootings in DC/AD to save some life time... 1. Cannot set aduser password "The password does not meet the pa

原创 patches for android-snappy porting

glib-android.patch --- glib-2.28.1/glib/gstrfuncs.c 2011-02-16 10:55:33.000000000 +0800 +++ aglib-2.28.1/glib/gstrfuncs

原创 Android開發基礎(2.1)--NDK 的搭建和基本用法

I.NDK配置和基本使用    NDK簡介見前篇。較新的NDK都無需配置,下載解壓後即可使用。關鍵是不同版本的NDK開放的API不同,常用的是 r4和r5,後者面向Android 2.2+, 支持UI/圖形/聲音的部分C接口,還有

原创 Android開發基礎(2.3)--Android交叉工具鏈的使用

接上篇,Android中提取的工具鏈搭建好之後: I.使用工具鏈移植c/c++程序或庫   這類的程序的標準生成流程都是 :./configure -->make;make install 。想往Android上移植該怎麼辦?1.(若

原创 Android開發基礎(1)--SDK

    剛聽說Android的時候,只知道是個Google開發的,有Linux內核的系統,等我想往上面移植Linux程序的時候,我傻眼了,我錯了。。。I.Android的基本構造和運行過程     簡單地說,Android運行在一個修

原创 MOTO XT800刷機和ROOT破解指南

windows下,想虐MOTO XT800或者被虐的可以參考一下(所需文件update.zip和.sbf請見 http://epis.me/621): 1.安裝MOTO的官方驅動USB_Drivers_bit_4.7.1.zip 2.將M

原创 volatile 與詭異事件

  下面是我遇到的一個多線程程序中詭異事件的解決過程:主線程main啓動 thread1 和 thread2,thread2保持阻塞,接到thread1發出的信號後工作,完畢後發出終了信號通知thread1,再次阻塞...直到thread

原创 agcc

CSDN搞什麼阿,連個附件都發不出來!只有新開帖子,貼出這個腳本(還竟然沒有perl的代碼編輯器???!!)   This is  the perl script modified from Andrew Ross's agcc to e

原创 Android開發基礎(2.2)--利用NDK搭建自己的Android交叉工具鏈

   上篇提到的都是使用現有的ndk-build建立共享庫。如何建立可執行的C/C++文件?將jni/Android.mk內的 include $(BUILD_SHARED_LIBRARY) 改成include $(BUILD_EXEC

原创 Release androidSpice-0.1.4 發佈可用版androidSpice-0.1.4

Release androidSpice-0.1.4  發佈可用版androidSpice-0.1.4     With the androidSpice-0.1.3 bug fixed and button-double-click

原创 常見Linux/Unix開發輔助命令什錦

許多零碎命令集錦: 1. 如何通過命令下載ftp文件 read -s -p "Your passwd: " Passwd; wget --user=YourUserName --password=$Passwd ftp://IP/dir/