原创 Check Current OS ,Is support POSIX-Thread?

#include <stdio.h> #include<unistd.h> #include<stdlib.h> int main() {     int support_level = 0; #ifdef _POSIX_VERSION

原创 Daemon Program Step!

Example: _POSIX_C_SOURCE; #include <stdio.h> #include <stdlib.h> #include <string.h> #include<fcntl.h> #include <sys/ty

原创 R 高級數據管理

student<-c("John Davis","Angela williams","Bullwinkle Moose","David Jones","Janice Markhammer","Cheryl Cushing","Reuven

原创 Interactive input on c-languge

#include<stdio.h> void startTips() { char ch; //int intN; do{ printf("do you want continue ?");

原创 QTCreator-android 自定義 AndroidManifest.xml

projece.pro 增加配置 contains(ANDROID_TARGET_ARCH,x86) { ANDROID_PACKAGE_SOURCE_DIR = $$PWD/x86 } x86爲項目目錄中的子目錄 將你的An

原创 XManage --- set tag

Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfi

原创 Linux 驅動開發環境構建

1、查看當前系統內核代碼版本 caojiaju@caojiaju-iMac:~$ sudo apt-cache search linux-source [sudo] password for caojiaju:  linux-source

原创 VBS計算漢字筆畫

dim word,key word=inputbox("請輸入文字") if word="" then Wscript.Quit end if key=char_wordnum(word) msgbox key Function char

原创 linux掛載NAS

在linux客戶端掛接(mount)NFS磁盤共享之前,必須先配置好NFS服務端。   1、Solaris系統NFS服務端配置方法如下:    (1)修改 /etc/dfs/dfstab, 增加共享目錄       share -F>li

原创 PyQt 圖標問題 ,cx_Freeze 打包後圖標無法顯示

將C盤的:C:\Python26\Lib\site-packages\PyQt4\plugins\PyQt4\plugins 下面imageformats 文件夾,整個拷貝到打包好的文件夾目錄 executables = [      

原创 PIL Image模塊 show函數不能正常顯示圖片

     在win7下面使用PIL中Image的show()函數時,執行下列代碼:        from PIL import Image        img = Image.open("G:\\1.png")   

原创 NFS常見故障解決方法

1、The rpcbind failure error 故障現象: nfs mount: server1:: RPC: Rpcbind failure RPC: Timed Out nfs mount: retrying: /

原创 linux內核版本號說明

linux內核版本號格式如major.minor.patch-build.desc,其中各部分說明如下:major:表示主版本號,有結構性變化時才變更。minor:表示次版本號,新增功能時才發生變化;一般奇數表示測試版,偶數表示生產版。p

原创 halt,shutdown,reboot,init的差異

在linux下一些常用的關機/重啓命令有shutdown、halt、reboot、及init 1.shutdown   shutdown命令安全地將系統關機。有些用戶會使用直接斷掉電源的方式來關閉linux,這是十分危險的。因爲lin

原创 設置開機自動運行vncserver

a. 在/etc/rc.d/rc.local文件中加入下面行    /etc/init.d/vncserver start b. 編輯/etc/sysconfig/vncservers    VNCSERVERS="1:root"