原创 比特幣區塊裏的各個字段含義(先寫了個nonce)
https://www.jianshu.com/p/4ffdd8872fa7 nonce是個啥意思?根據bitcoin wiki The "nonce" in a bitcoin block is a 32-bit (4-byte) f
原创 nonce問題 ETH ETC
問題 通過web3.js 發送一筆交易(web3.eth.sendRawTransaction)未被確認,如該from再發送全新交易時,會返回錯誤提示,增加nonce 或者提高gas 解決思路:(手續費足夠大才能保證連續發送交
原创 js 自定義監聽事件及觸發
<html> <body> <input id="input" > <button onclick="myEvent()">myEvent</button> </body> </html> <script type="text/ja
原创 js 導圖
http://amierhan.blog.51cto.com/10854779/1904084 一、JavaScript思維導圖之<變量>的學習 二、 JavaScript思維導圖之<函數基礎> 三、JavaScript思維導
原创 nodejs auth 模擬發送
auth var request = require("request"); request.post( { url:'http://user:[email protected]:8441', json: true, headers:
原创 uint8array 轉buffer
let u8a=new Uint8Array(10); u8a.set([0x3d],0) console.log(Buffer.from(u8a,'hex')); const buffer = require('b
原创 webpackjs 引入自己js
https://www.webpackjs.com https://www.webpackjs.com/guides/getting-started/ 結合官網例子 在 index.js 中 加入 import async from
原创 nodejs dependencies自己本地的包
dependencies自己的包 "dependencies": { "my-lib": "file:/home/xxx/mylib" } 相對路徑,絕對路徑都可以。 比如相對路徑就是file:../mylib
原创 JAVA http 要求用戶名密碼驗證
marven <!-- https://mvnrepository.com/artifact/commons-httpclient/commons-httpclient --><dependency><groupId>commons-ht
原创 web3.js增加eth.getRawTransactionByHash(txhash)方法步驟
eth_getRawTransactionByHash https://ethereum.stackexchange.com/questions/7473/get-raw-transaction-from-hash There i
原创 RocketMQ(一) 服務搭建win7(RocketMQ4.2)
僅支持64位Windows,請安裝64位JDK,最好用jdk7的。 2.1 下載編譯好的RocketMQ 下載編譯好的RocketMQ的發佈版,也可以自行編譯:https://github.com/alibaba/RocketMQ/
原创 nodejs 模擬https post 的form 請求
var request = require('request'); request.post( { url:'https://XXXXXXXXXXXXXXXXXXXXXXXXXX', form:{ rawtx:rawtx
原创 mysql master-slave
系統win7 mysql 5.0 原來已經安裝過直接將mysql 目錄的對應文件複製到另一個目錄 停掉mysql 服務 將master 數據庫 中my.ini 文件innodb_data_home_dir對應的文件拷貝到從數據庫對應的文
原创 阻斷top.layer.open確認
父親頁面 top.layer.open({ type: 2, area: ['800px','480px'], title: title, maxmin: true, //