原创 通過python獲取微秒時間

import datetimeimport time print time.time()hello = datetime.datetime.now()print hello s=datetime.datetime(hello.year,h

原创 Android automation test without target application src

src code:   package com.june.test;   import com.jayway.android.robotium.solo.Solo; import android.app.Instrumentation;i

原创 間接得到按鈕的ID

Linux真是太深奧了,怪不得Linux的牛人是真正的牛人,因爲可用的文檔太少了。 目前在GTK裏面我找不到可以直接得到Button ID的方法,用work around的方法可以做一下 在for循環裏面添加按鈕,將這些按鈕存在一個Gtk

原创 [記在小本上] android 1.5 創建新的avd, 和使用此avd launch emulator

1. 查看當前版本支持的android target * android list targets [打印出來的信息]Available Android targets:id: 1     Name: Android 1.1     Ty

原创 Shell script

========================================================== Shell script 定義函數以及傳遞參數EXEC(){  echo $1} #-------------#   B

原创 eclipse 啓動問題

報錯兒: JVM terminated.Exit code=-1-Dosgi.requiredJavaVersion=1.5-Xms40m-Xmx512m-XX:MaxPermSize=256M-Djava.class.path=D:/e

原创 設置GtkEntry的背景顏色

GtkWidget* myEntry = gtk_entry_new(); // Set the red color.GdkColor myColor;myColor.red = 0xffff;myColor.green = 0;myCo

原创 GtkEntry接受key_press事件

在callback函數裏面加上返回值來避免,key_press事件對其他key事件的影響 過濾出來有用的key_val, 返回true 其他的key_val 返回false 我的code裏面全部返回false用於所有key 的其他key

原创 著名的HelloWorld

This greeting is much newer than most people think. The use of hello as a greeting is only as old as the telephone. The

原创 Linux的一些小事兒

設置,修改root密碼:sudo passwd     點贊 收藏 分享 文章舉報 不賴呆 發佈了26 篇原創文章 · 獲贊 14 · 訪問量 5萬+ 私信

原创 解決Error generating final archive: Debug certificate expired on XXX問題

Error generating final archive: Debug certificate expired on ****   問題原因:由於Debug證書過期所致。 Android的應用程序必須經過開發者自己的自簽名證書進行數字

原创 wait for Process

如果僅僅是用process.waitFor()的話,如果進程掛起這個將永遠得不到返回值,是用捕捉getExitValue異常的辦法可以work around  private int myWaitProcessFinish(Process

原创 Ubuntu中使用framebuffer的方法

打開/etc/initramfs-tools/modules文件,在末尾加上:fbconvesafb打開/etc/modprobe.d/blacklist-framebuffer,找到“blacklist vesafb”一行,在這一行前面

原创 java 基礎問題的一些處理,記錄一下,持續更新唄

1. 返回值要返回兩個相互對應的數組,可以用HashMap     HashMap<String, Point> points = new HashMap<String, Point>();     使用的時候通過循環來獲取       

原创 修改Tomcat服務器Server Locations

在Eclipse裏面安裝了Tomcat插件會發現在Eclipse裏面啓動和在外部瀏覽器啓動頁面有問題,這需要修改Server Location 1. 第一個去掉Tomcat關聯的所有工程 2. 鼠標右鍵菜單Clean清除Tomcat