2017-01-01から1年間の記事一覧

スパコンDGXでTruffleセットアップ

DGXへ接続: 1:アカウント作成 2:パソコンで同じwifiに接続した上で、 ssh haru@ポート番号 --- Mac OSでは.bash_profileというファイルである、パスを記載するファイルを編集。 vim .bashrc vim使い方: i でinsert modeになるので編集 escでinsert modeから…

スマートコントラクトのデプロイから実行まで /Solidity Smart Contracts in Truffle

LIST OF LINKS------ Truffle Site: http://truffleframework.com/ List of Official Tutorials: http://truffleframework.com/tutorials/ Basic: https://qiita.com/toshikase/items/d313b7c28bf16b940b12 http://truffleframework.com/tutorials/debugging…

Applescript/Terminal 複数タブからコマンドを打つ

複数タブからコマンドを打ちたいとき: Applescriptを用いる。 参考: applescript - How can I write a script to open multiple terminal tabs and execute code in them? - Ask Different Writing external scripts | Truffle Suite 結果: tell application…

applescript "Expected end of line but found identifier"

AppleScript: "Expected end of line but found identifier" https://www.iterm2.com/documentation-scripting.html MacのScript Editorでのエラー: tell application "iTerm 2" create window with default profile command "echo "Hello World"" end tell …

RSK: error: peers do not connect in a private net

RSK

2017-12-10-23:00:45.0077 WARN [net] Can't decrypt AuthInitiateMessage from /192.168.0.4:49892. Most likely the remote peer used wrong public key (NodeID) to encrypt message.2017-12-10-23:00:53.0861 TRACE [sync] Node list obtained from disc…

RSK: multiple nodes setup in private network + send transactions from different nodes

Thanks to ajlopez · GitHub from RSKJ gitter, 2017/12/10. ----------- 2 ways: use genconf, a tool to set up automatically and to set up manually. GENCONF: Automatic setup tool: RskUtils/genconf at master · ajlopez/RskUtils · GitHub Git clon…

Truffle compile: "Invalid input source specified." の解決法

問題: ➜ truffle-webpack git:(addmarketplacesolc) truffle compile --verboseCompiling ./contracts/marketplace.sol...Compiling ./contracts/networkmanager.sol...Compiling networkmanager.sol... Invalid input source specified.Compiliation failed…

Python CSV セットアップメモ

pandasでのcsv読み込みについてのチュートリアル: Pythonでpandasを使う - 計算物理屋の研究備忘録 pandas でメモリに乗らない 大容量ファイルを上手に扱う - StatsFragments 長い包括的なチュートリアル(read csvから簡単な統計分析まで): Part 1, Section …

RSK privatenetwork +Truffle + solidity

[versions] EthereumJS TestRPC v4.0.1 (ganache-core: 1.0.1)Truffle v3.4.3gradle 4.2.1RSKJ Ginger 0.2.5web3 0.18.4 (https://github.com/ethereum/web3.js/) 目次ページ https://github.com/rsksmart/rskj/wiki/Starting-with-RSK-Smart (テストネット…

geth 1.6.7 と Solidity 0.4.18 でスマートコントラクトを走らせる方法リスト

バージョン geth: 1.6.7 solc: 0.4.18-develop.2017.10.12+commit.81f9f86c.Darwin.appleclang 状況: Solidityのスマートコントラクトをコンパイル後、 gethクライアントでEthereumへスマートコントラクトを送ることができなかった。 使えたチュートリアル: …

gethでのSolidityセットアップ

全ての場合についてのチュートリアル: http://solidity.readthedocs.io/en/develop/installing-solidity.html [解決]ソースからbuildする場合: http://block-chain.jp/tech/install-solidity-solc-on-mac/ インストールされていることを確認する方法: $ whic…

Parityセットアップ

参考: https://github.com/paritytech/parity Install from bashができなかった: ➜ ~ bash <(curl -kL -s -k -v --tlsv1.2 https://get.parity.io)* Rebuilt URL to: https://get.parity.io/* Trying 2400:cb00:2048:1::681b:840a...* TCP_NODELAY set* Conn…

久々のRailsメモ: devise、scaffold、scaffoldによるviewエラー

ユーザー認証: deviseを用いてメールによる認証を行う qiita.com 他: ログイン認証も簡単!Railsでのdeviseの使い方 | TechAcademyマガジン Scaffold tanibkk.hatenablog.com Scaffoldによるviewでのエラー対応: qiita.com

Library not loaded: libmysqlclient.18.dylib (LoadError) の対処

環境 mysql 5.7 homebrew 1.3.2 mac Sierra 10.12.4 まとめ記事: 未解決だった問題: 新たに入れた、ダウングレードしたバージョンのmysqlは確かにlibmysqlclient.18.dylibをパソコンに入れていたが、 RailsのMysql2が探すパスではなかった。 解決策: 1: $ wh…

用語集

目次: ディレクトリ パス ターミナル/コマンドプロンプト コマンド ターミナルで「~~の場所にとどまる」 geth gethコンソール ブロックチェーンネットワークが立ち上がっている時 /いない時 一覧: ディレクトリ =ファイル *厳密には機能によって言い換えてい…

Ethereum Wallet: no data is deployed on this contract

エラーのでたプログラム: Wallet内のリンクから参照できる公式チュートリアルサイト Create a cryptocurrency contract in Ethereum エラー: コントラクトがConfirmされてもエラー文面が出る。 no data is deployed on this contract 解明: プログラム内容の…

Windowsでのgethセットアップ

【はじめに】 Ethereumは開発者向けに作られた代表的なブロックチェーンネットワークであり、また現在におけるビットコインの次の総計価値を誇る仮想通貨の基盤技術です。このマニュアルでは、その代表的なクライアントであるGeth(go-ethereum)を用いて、パ…

Ethereum Walletがgethで立ち上げたプライベートネットを認識しない

github.com 参考 1: stackoverflow.com 2: What worked for me was opening the ethereum wallet from the console specifying the ipcpathwith --rpc like this (from the ethereum wallet location) Ethereum\ Wallet.app/Contents/MacOS/Ethereum\ Wallet…

ストレージ確認

qiita.com

elements blockchain harucoin

➜ src git:(elements-bc2) ./elements-cli issueasset 1000 10 true harucoin{ "txid": "cef1d6ee4b4c36ee7185d2178949a645802ce56102131b9b17127aa426b348e8", "vin": 0, "entropy": "c91481ac65fafca292aa023b19e85660ad5fed9da3f1e73ccfa46487329d572f", …

bitcoind立ち上げ方

Bitcoind側の立ち上げ方 Bitcoindを入れたファイルにある、srcというファイルに入ってから、 cd $HOME/bc2/bc2/src ターミナルで以下。./bitcoind -printtoconsole 立ち上がったら、ターミナルで(他のタブで) ./bitcoin-cli getnewaddress などのコマンドを…

GethとMeteorのセットアップメモ

gethのセットアップ 参考となるリンク: 1:Ethereum(geth)でプライベート・ネットワークを作る手順 - Qiita 2: Creating a Private Chain/Testnet | Ethereum Tutorials and Tips by Hudson 3: Private network · ethereum/go-ethereum Wiki · GitHub エラー:…

IBM Watson Speech to Text API セットアップ + 日本語対応

音声を文字におこすWatsonのAPIを使うためにIBMのサイトとパソコンからの通信環境をセットアップする方法 API: Speech to Text | IBM Watson Developer Cloud 公式チュートリアル:Speech to Text | Getting started | IBM Watson Developer Cloud 0:利用の…

グラフがプロットされず ウィンドウが出てこない

問題:グラフがプロットされず ウィンドウが出てこない 解決: import pylab pylab.show() python - No plot window in matplotlib - Stack Overflow Python モジュールの 「matplotlib」 と 「pylab」 との関係性 ~「pylab」って何だっけ? - Qiita

Mysql rails s ができない

rails s ができない エラー: /Users/HO/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/mysql2-0.4.4/lib/mysql2.rb:31:in `require': dlopen(/Users/HO/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/mysql2-0.4.4/lib/mysql2/mysql2.bundle, 9): Lib…

MySQL:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

* "mysql.server start"をしないで mysql と打った場合も同じエラーが出ます。 <エラー状態> $ mysql startERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) $ mysql.server stop ERROR! MySQL server PID fi…

Unityで3Dモデルを小さくする方法

1:一度に 縮小・拡大する Unity - Scripting API: Transform.localScale transform.localScale += new Vector3(0.1F, 0, 0); How to make a script enlarge a character. - Unity Answers Answer by qJake · Apr 08, 2010 at 02:00 AM // C# transform.loc…