原创 Annotation分類

 Annotation 分類 1 標準 Annotation,Override, Deprecated, SuppressWarnings 標準 Annotation 是指 Java 自帶的幾個 Annotation,上面三個分別

原创 The source attachment does not contain the source for the file xxx class

   (1)在Eclipse中點擊"Change Attached Source…”下面的按鈕  (2)彈出SOURCE ATTACHENT Courageouration,選擇External Floder…按鈕,添加文件夾所在路徑

原创 android 補間動畫TranslateAnimation

做項目的時候遇見了隨着按鍵的移動,Imageview 直線的移動。第一次寫,寫的不好,忘見諒。 TranslateAnimation只是水平上下移動。 imageview設置設置matrix,然後圖片開啓動畫。 這是MainActivi

原创 Linux下面爲Android Studio創建快捷方式即起動器

文本編輯器創建一個Android Studio.desktop。可以用gedit創建一個。 [Desktop Entry] Version=13.1 Name=Android Studio Exec=/local1/android-stu

原创 Go調用以太坊合約和在測試用例中調用合約

首先使用npm下載solc npm install -g solc 這個主要是編譯solidity文件生成對應的ABI和ABI BIN。如果使用這個需要到remix上面生成。 pragma solidity ^0.6.0; lib

原创 Git筆記

第一階段筆記 CVS及SVN都是集中式的版本控制系統,而Git是分佈式版本控制系統,集中式和分佈式版本控制系統有什麼區別呢 集中式版本控制系統最大的毛病就是必須聯網才能工作,如果在局域網內還好,帶寬夠大,速度夠快,可如果在互聯網上,遇到網

原创 DDMS files not found: *\sdk\platform-tools\hprof-conv.exe

先出現DDMS files not found: *\sdk\platform-tools\hprof-conv.exe 等待5s [2014-07-30 17:09:11 - QtActivity] The connection

原创 編譯安卓2.3錯誤遇見的錯誤及解決辦法

Error: frameworks/base/include/utils/KeyedVector.h:193:31: note: declarati

原创 以太坊p2p和輕節點light

https://github.com/fjl  以太坊p2p核心開發者Felix Lange https://github.com/fjl/p2p-drafts   p2p設計草稿 discv4.md      Node Discover

原创 以太坊fast sync時,currentBlock跟不上highestBlock

來自issue https://github.com/ethereum/go-ethereum/issues/16875 對很多人來說,同步以太坊是一個痛點,所以我會試着詳細描述發生在幕後的事情,這樣可能會少一些困惑。 Geth的當前默認

原创 EIP155Block 防重放攻擊

// ChainConfig is the core config which determines the blockchain settings. // // ChainConfig is stored in the databas

原创 golang timer使用

package main import ( "time" "fmt" ) func main() { //創建3s的 timer timer := time.NewTimer(3 * time.Second) ear

原创 geth搭建私有鏈,remix連接出現的問題

首先使用單引號geth --datadir ./data/00 --networkid 314590  --port 61910 --rpc --rpcapi 'web3,eth,debug' --rpccorsdomain '* --r

原创 讀 數據的呈現和組織,緩存和更新 筆記

能理解的簡單記了一下 若以Block作切割,那麼Transaction和Contract就是更小的粒度;所有交易或操作的結果,將以各個個體賬戶的狀態(state)存在,賬戶的呈現形式是stateObject,所有賬戶的集合受StateDB

原创 zygote筆記

新的android應用程序A並非通過fork來重新裝載已有進程的代碼區,而是被動的加載到複製出的Dalvik虛擬機上,Zygote進程將執行流程交給應用程序A類的方法.  Zygote子進程動態加載並運行