<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>hinoki-bouのブログ</title>
<link>https://ameblo.jp/hinoki-bou/</link>
<atom:link href="https://rssblog.ameba.jp/hinoki-bou/rss20.xml" rel="self" type="application/rss+xml" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
<description>ブログの説明を入力します。</description>
<language>ja</language>
<item>
<title>合同会社について</title>
<description>
<![CDATA[ <p>合同会社を作るには、なにはともあれ法務局のページを読むべき。</p><p>&nbsp;</p><div class="ogpCard_root"><article class="ogpCard_wrap" contenteditable="false" style="display:inline-block;max-width:100%"><a class="ogpCard_link" data-ogp-card-log="" href="https://houmukyoku.moj.go.jp/homu/houjin2.html" rel="noopener noreferrer" style="display:flex;justify-content:space-between;overflow:hidden;box-sizing:border-box;width:620px;max-width:100%;height:120px;border:1px solid #e2e2e2;border-radius:4px;background-color:#fff;text-decoration:none" target="_blank"><span class="ogpCard_content" style="display:flex;flex-direction:column;overflow:hidden;width:100%;padding:16px"><span class="ogpCard_title" style="-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;max-height:48px;line-height:1.4;font-size:16px;color:#333;text-align:left;font-weight:bold;overflow:hidden">持分会社（合同会社・合名会社・合資会社）：法務局</span><span class="ogpCard_url" style="display:flex;align-items:center;margin-top:auto"><span class="ogpCard_iconWrap" style="position:relative;width:20px;height:20px;flex-shrink:0"><img alt="リンク" class="ogpCard_icon" height="20" loading="lazy" src="https://c.stat100.ameba.jp/ameblo/symbols/v3.20.0/svg/gray/editor_link.svg" style="position:absolute;top:0;bottom:0;right:0;left:0;height:100%;max-height:100%" width="20"></span><span class="ogpCard_urlText" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#757575;font-size:12px;text-align:left">houmukyoku.moj.go.jp</span></span></span></a></article></div><p>&nbsp;</p><p>ようするに下記サイトでオンラインで申請登録をして手順通りに申請を進めればよいということ。</p><p>登録できる時間が限られているようなので注意。</p><p>&nbsp;</p><div class="ogpCard_root"><article class="ogpCard_wrap" contenteditable="false" style="display:inline-block;max-width:100%"><a class="ogpCard_link" data-ogp-card-log="" href="https://www.touki-kyoutaku-online.moj.go.jp/" rel="noopener noreferrer" style="display:flex;justify-content:space-between;overflow:hidden;box-sizing:border-box;width:620px;max-width:100%;height:120px;border:1px solid #e2e2e2;border-radius:4px;background-color:#fff;text-decoration:none" target="_blank"><span class="ogpCard_content" style="display:flex;flex-direction:column;overflow:hidden;width:100%;padding:16px"><span class="ogpCard_title" style="-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;max-height:48px;line-height:1.4;font-size:16px;color:#333;text-align:left;font-weight:bold;overflow:hidden">登記・供託オンライン申請システム 登記ねっと 供託ねっと</span><span class="ogpCard_description" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.6;margin-top:4px;color:#757575;text-align:left;font-size:12px">登記・供託オンライン申請システムは，不動産登記，商業・法人登記，動産譲渡登記，債権譲渡登記，供託，成年後見登記及び電子公証に関する手続をオンラインにより申請するシステムです。</span><span class="ogpCard_url" style="display:flex;align-items:center;margin-top:auto"><span class="ogpCard_iconWrap" style="position:relative;width:20px;height:20px;flex-shrink:0"><img alt="リンク" class="ogpCard_icon" height="20" loading="lazy" src="https://c.stat100.ameba.jp/ameblo/symbols/v3.20.0/svg/gray/editor_link.svg" style="position:absolute;top:0;bottom:0;right:0;left:0;height:100%;max-height:100%" width="20"></span><span class="ogpCard_urlText" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#757575;font-size:12px;text-align:left">www.touki-kyoutaku-online.moj.go.jp</span></span></span></a></article></div><p>&nbsp;</p><p>&nbsp;</p><p>そして合同会社を作成するにあたって、定款等を作成しなければならない。</p><p>&nbsp;</p><div class="ogpCard_root"><article class="ogpCard_wrap" contenteditable="false" style="display:inline-block;max-width:100%"><a class="ogpCard_link" data-ogp-card-log="" href="https://e-llc.cc/Godo-Kaisha-Setsuritsu-Shorui-Jido-Sakusei-Program/Goudou-Kaisha-Setsuritsu-Shorui-Nyuryoku-Gamen.php" rel="noopener noreferrer" style="display:flex;justify-content:space-between;overflow:hidden;box-sizing:border-box;width:620px;max-width:100%;height:120px;border:1px solid #e2e2e2;border-radius:4px;background-color:#fff;text-decoration:none" target="_blank"><span class="ogpCard_content" style="display:flex;flex-direction:column;overflow:hidden;width:100%;padding:16px"><span class="ogpCard_title" style="-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;max-height:48px;line-height:1.4;font-size:16px;color:#333;text-align:left;font-weight:bold;overflow:hidden">合同会社設立クラウド；無料です：合同会社の設立登記申請手続書類の自動作成プログラム</span><span class="ogpCard_description" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.6;margin-top:4px;color:#757575;text-align:left;font-size:12px">合同会社設立クラウド；無料です：合同会社の設立登記申請手続書類の自動作成プログラム電子定款作成電子署名代行1,500円即日可</span><span class="ogpCard_url" style="display:flex;align-items:center;margin-top:auto"><span class="ogpCard_iconWrap" style="position:relative;width:20px;height:20px;flex-shrink:0"><img alt="リンク" class="ogpCard_icon" height="20" loading="lazy" src="https://c.stat100.ameba.jp/ameblo/symbols/v3.20.0/svg/gray/editor_link.svg" style="position:absolute;top:0;bottom:0;right:0;left:0;height:100%;max-height:100%" width="20"></span><span class="ogpCard_urlText" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#757575;font-size:12px;text-align:left">e-llc.cc</span></span></span></a></article></div><p>&nbsp;</p><p>ここを使うとある程度自動で作成してくれる。</p><p>同様の事業の書き方は同サイトの検索によって例を調べることができる。</p><p>&nbsp;</p><p>今回はここまで</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><div class="ogpCard_root">&nbsp;</div>
]]>
</description>
<link>https://ameblo.jp/hinoki-bou/entry-12707983966.html</link>
<pubDate>Wed, 03 Nov 2021 21:30:23 +0900</pubDate>
</item>
<item>
<title>websocketに接続する方法とpostman</title>
<description>
<![CDATA[ <p>webページからwebsocketの情報がとりたい時がある</p><p>&nbsp;</p><p>ブラウザのf12の拡張機能でネットワークを見て、wsのタブを押せばwss://~で始まるURLが出てくるので、</p><p>コピーしてget メソッドで送信すればよい。</p><p>&nbsp;</p><p>試したければ、postmanというアプリケーションをいれてwebsocket requestを使うと良い。</p><p>接続後、jsonで必要な情報をsendしないと情報が取れないことがあるので注意。</p><p>定期的にpingを送っておかないと接続が切られるので注意。</p>
]]>
</description>
<link>https://ameblo.jp/hinoki-bou/entry-12700927280.html</link>
<pubDate>Wed, 29 Sep 2021 20:50:19 +0900</pubDate>
</item>
<item>
<title>solanaのbonfidaのapiを叩いてみたらエラーがでた</title>
<description>
<![CDATA[ <p>solanaの交換所として、bonfidaにapiがあったのでたたいてみた</p><p>&nbsp;</p><div class="ogpCard_root"><article class="ogpCard_wrap" contenteditable="false" style="display:inline-block;max-width:100%"><a class="ogpCard_link" data-ogp-card-log="" href="https://docs.bonfida.com/#websocket" rel="noopener noreferrer" style="display:flex;justify-content:space-between;overflow:hidden;box-sizing:border-box;width:620px;max-width:100%;height:120px;border:1px solid #e2e2e2;border-radius:4px;background-color:#fff;text-decoration:none" target="_blank"><span class="ogpCard_content" style="display:flex;flex-direction:column;overflow:hidden;width:100%;padding:16px"><span class="ogpCard_title" style="-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;max-height:48px;line-height:1.4;font-size:16px;color:#333;text-align:left;font-weight:bold;overflow:hidden">Bonfida API</span><span class="ogpCard_url" style="display:flex;align-items:center;margin-top:auto"><span class="ogpCard_iconWrap" style="position:relative;width:20px;height:20px;flex-shrink:0"><img alt="リンク" class="ogpCard_icon" height="20" loading="lazy" src="https://c.stat100.ameba.jp/ameblo/symbols/v3.20.0/svg/gray/editor_link.svg" style="position:absolute;top:0;bottom:0;right:0;left:0;height:100%;max-height:100%" width="20"></span><span class="ogpCard_urlText" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#757575;font-size:12px;text-align:left">docs.bonfida.com</span></span></span></a></article></div><p>&nbsp;</p><p><a href="https://docs.bonfida.com" rel="noopener noreferrer" target="_blank">https://docs.bonfida.com</a></p><p>&nbsp;</p><p>オーダーブックのAPIだけ1020というエラーがでた</p><p>どうやら<a href="https://www.cloudflare.com/5xx-error-landing" id="brand_link" rel="noopener noreferrer" target="_blank">Cloudflare</a>というセキュリティが働いているようで、IPか国単位あたりでブロックされているらしく、</p><p>VPNで接続してもだめだった。</p><p>アクセス過多すぎてbonfida公式とは別のところでブロックされているのかもしれない。</p><p>&nbsp;</p><p>とりあえず今のところ取得する方法はなさそう。</p><p>&nbsp;</p><p>websocketを試してみる予定。</p>
]]>
</description>
<link>https://ameblo.jp/hinoki-bou/entry-12699211849.html</link>
<pubDate>Tue, 21 Sep 2021 10:11:28 +0900</pubDate>
</item>
<item>
<title>gitの除外ファイルの設定</title>
<description>
<![CDATA[ <p>gitの除外ファイルの設定を時々使うので記録</p><p>&nbsp;</p><p>&nbsp;</p><p>gitのプロジェクトの部分で</p><p>.gitignore</p><p>を作成</p><p>&nbsp;</p><p>特定ディレクトリごと弾く場合</p><p>/name/&nbsp;</p><p>&nbsp;</p><p>ワイルドカード</p><p>*.py</p><p>&nbsp;</p><p>&nbsp;</p><p>一度addしたindexを戻す場合は</p><p>git reset</p><p>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/hinoki-bou/entry-12696251992.html</link>
<pubDate>Sun, 05 Sep 2021 19:09:18 +0900</pubDate>
</item>
<item>
<title>goのクロスコンパイルについて</title>
<description>
<![CDATA[ <p>goのビルドで、自分はmac環境で作業しているけど、Linuxのパソコンで実行したいと言う時があったのでメモ</p><p>&nbsp;</p><p>GOOS=linux GOARCH=amd64 go build .</p>
]]>
</description>
<link>https://ameblo.jp/hinoki-bou/entry-12696059482.html</link>
<pubDate>Sat, 04 Sep 2021 18:44:06 +0900</pubDate>
</item>
<item>
<title>ubuntsuのgoインストール</title>
<description>
<![CDATA[ <p>ubuntsu 20 のgoのインストール手順のメモ</p><p>1.リポジトリを更新して</p><p>2.aptを更新して</p><p>3.インストールする</p><pre data-lang="shell" data-unlink="">sudo add-apt-repository ppa:longsleep/golang-backports</pre><pre data-lang="shell" data-unlink="">sudo apt update</pre><pre data-lang="shell" data-unlink="">sudo apt install golang</pre>
]]>
</description>
<link>https://ameblo.jp/hinoki-bou/entry-12696054741.html</link>
<pubDate>Sat, 04 Sep 2021 18:16:02 +0900</pubDate>
</item>
<item>
<title>chromedriver-binaryのinstall方法</title>
<description>
<![CDATA[ <pre>pythonのchromedriver_binaryをインストールしようとして詰まったのでメモ</pre><pre>コマンド自体は</pre><pre><code>pip3 install chromedriver_binary==</code>93.0.4577.15.0</pre><pre><code>でいいのだが、</code></pre><pre>[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed</pre><pre>が出て困っていた。</pre><pre><code>homebrew経由でpythonをインストールしている場合、証明書がないらしい。</code></pre><pre><code>(Install Certificates.command&nbsp;というのがpythonの場所に本来はいっているらしい)</code></pre><pre>ので、代わりにインストールするために下のpyを走らせれば良いようだ。</pre><pre></pre><pre><code># install_certifi.py## sample script to install or update a set of default Root Certificates# for the ssl module.  Uses the certificates provided by the certifi package:#       https://pypi.python.org/pypi/certifiimport osimport os.pathimport sslimport statimport subprocessimport sysSTAT_0o775 = ( stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR             | stat.S_IRGRP | stat.S_IWGRP | stat.S_IXGRP             | stat.S_IROTH |                stat.S_IXOTH )def main():    openssl_dir, openssl_cafile = os.path.split(        ssl.get_default_verify_paths().openssl_cafile)    print(" -- pip install --upgrade certifi")    subprocess.check_call([sys.executable,        "-E", "-s", "-m", "pip", "install", "--upgrade", "certifi"])    import certifi    # change working directory to the default SSL directory    os.chdir(openssl_dir)    relpath_to_certifi_cafile = os.path.relpath(certifi.where())    print(" -- removing any existing file or link")    try:        os.remove(openssl_cafile)    except FileNotFoundError:        pass    print(" -- creating symlink to certifi certificate bundle")    os.symlink(relpath_to_certifi_cafile, openssl_cafile)    print(" -- setting permissions")    os.chmod(openssl_cafile, STAT_0o775)    print(" -- update complete")if __name__ == '__main__':    main()</code></pre>
]]>
</description>
<link>https://ameblo.jp/hinoki-bou/entry-12695484746.html</link>
<pubDate>Wed, 01 Sep 2021 17:22:09 +0900</pubDate>
</item>
<item>
<title>ブロックチェーン</title>
<description>
<![CDATA[ <p>ブロックチェーンとは分散して記録することで、改竄が困難なデータを作成する仕組みである。</p><p>仕組みごとに名前があり、Binance smart chain やsolanaなどがある。</p><p>&nbsp;</p><p>チェーン間の取り引きは当然記録されないので、取引所などが代わりに担当している。</p><p>他には２種類のウォレットを接続してanyswapなどを行って、交換することができる。</p><div class="ogpCard_root"><article class="ogpCard_wrap" contenteditable="false" style="display:inline-block;max-width:100%"><a class="ogpCard_link" data-ogp-card-log="" href="https://anyswap.exchange/swap" rel="noopener noreferrer" style="display:flex;justify-content:space-between;overflow:hidden;box-sizing:border-box;width:620px;max-width:100%;height:120px;border:1px solid #e2e2e2;border-radius:4px;background-color:#fff;text-decoration:none" target="_blank"><span class="ogpCard_content" style="display:flex;flex-direction:column;overflow:hidden;width:100%;padding:16px"><span class="ogpCard_title" style="-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;max-height:48px;line-height:1.4;font-size:16px;color:#333;text-align:left;font-weight:bold;overflow:hidden">AnySwap - Cross Chain DEX</span><span class="ogpCard_url" style="display:flex;align-items:center;margin-top:auto"><span class="ogpCard_iconWrap" style="position:relative;width:20px;height:20px;flex-shrink:0"><img alt="リンク" class="ogpCard_icon" height="20" loading="lazy" src="https://c.stat100.ameba.jp/ameblo/symbols/v3.20.0/svg/gray/editor_link.svg" style="position:absolute;top:0;bottom:0;right:0;left:0;height:100%;max-height:100%" width="20"></span><span class="ogpCard_urlText" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#757575;font-size:12px;text-align:left">anyswap.exchange</span></span></span></a></article></div><p>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/hinoki-bou/entry-12693402753.html</link>
<pubDate>Sat, 21 Aug 2021 11:45:13 +0900</pubDate>
</item>
<item>
<title>Solanaについて</title>
<description>
<![CDATA[ <p>solanaとは</p><p>&nbsp;</p><p>トランザクション処理数やブロック生成頻度が光速で、他のブロックチェーンの1000倍ぐらい早い。</p><p>結果、トランザクション手数料も1/1000以下になっている。</p><p>&nbsp;</p><p>solanaの取引をしたかったら、serumが有名です。</p><div class="ogpCard_root"><article class="ogpCard_wrap" contenteditable="false" style="display:inline-block;max-width:100%"><a class="ogpCard_link" data-ogp-card-log="" href="https://dex.projectserum.com/#/market/AtNnsY1AyRERWJ8xCskfz38YdvruWVJQUVXgScC1iPb" rel="noopener noreferrer" style="display:flex;justify-content:space-between;overflow:hidden;box-sizing:border-box;width:620px;max-width:100%;height:120px;border:1px solid #e2e2e2;border-radius:4px;background-color:#fff;text-decoration:none" target="_blank"><span class="ogpCard_content" style="display:flex;flex-direction:column;overflow:hidden;width:100%;padding:16px"><span class="ogpCard_title" style="-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;max-height:48px;line-height:1.4;font-size:16px;color:#333;text-align:left;font-weight:bold;overflow:hidden">Serum</span><span class="ogpCard_description" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.6;margin-top:4px;color:#757575;text-align:left;font-size:12px">Serum - The world's first completely decentralized derivatives exchange with trustless cross-chain trading</span><span class="ogpCard_url" style="display:flex;align-items:center;margin-top:auto"><span class="ogpCard_iconWrap" style="position:relative;width:20px;height:20px;flex-shrink:0"><img alt="リンク" class="ogpCard_icon" height="20" loading="lazy" src="https://c.stat100.ameba.jp/ameblo/symbols/v3.20.0/svg/gray/editor_link.svg" style="position:absolute;top:0;bottom:0;right:0;left:0;height:100%;max-height:100%" width="20"></span><span class="ogpCard_urlText" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#757575;font-size:12px;text-align:left">dex.projectserum.com</span></span></span></a></article></div><p>&nbsp;</p><p>serumの取引情報を自動で取得するためにはおそらく下記の方法があるとおもいます。</p><p>&nbsp;</p><p>今後検証予定</p><p>&nbsp;</p><p>1.API</p><p>2.ブラウザ</p><p>3.直接チェーン上のブロックを読む</p>
]]>
</description>
<link>https://ameblo.jp/hinoki-bou/entry-12693399535.html</link>
<pubDate>Sat, 21 Aug 2021 11:24:03 +0900</pubDate>
</item>
<item>
<title>dfの整理手順</title>
<description>
<![CDATA[ <p>coingeckoのchartをjsonで引っ張ってきたデータをpdのdf形式に落とすのに困ったのでメモ</p><p>&nbsp;</p><p>①timestampが正しく変換できない問題</p><p>pd.to_datetimeを使っても</p><p>timestampが正しいdatetimeに変換できなかった。</p><p>どうやらunixtimeは10桁(second)と13桁(millisecond)があり、</p><p>pdの標準は10桁なので引数に、unit='ms'をつけると、すべての正しい日付が表示された。</p><p>&nbsp;</p><p>間違い</p><p>prices['datetime'] = pd.to_datetime(prices['unixtime'])</p><p>unixtime prices datetime</p><p>0 1367107200000 135.30 1970-01-01 00:22:47.107200</p><p>1 1367193600000 141.96 1970-01-01 00:22:47.193600</p><p>2 1367280000000 135.30 1970-01-01 00:22:47.280000</p><p>3 1367366400000 117.00 1970-01-01 00:22:47.366400</p><p>4 1367452800000 103.43 1970-01-01 00:22:47.452800</p><p>&nbsp;</p><p>正解</p><p>prices['datetime'] = pd.to_datetime(prices['unixtime'], unit='ms')</p><p>unixtime prices datetime</p><p>0 1367107200000 135.30 2013-04-28</p><p>1 1367193600000 141.96 2013-04-29</p><p>2 1367280000000 135.30 2013-04-30</p><p>3 1367366400000 117.00 2013-05-01</p><p>4 1367452800000 103.43 2013-05-02</p><p>&nbsp;</p><p>&nbsp;</p><p>全体ソース(途中)</p><p>&nbsp;</p><p>&nbsp;</p><p>import numpy as np</p><p>import pandas as pd</p><p>&nbsp;</p><p>&nbsp;</p><p># URLの設定</p><p>endpoint = "https://api.coingecko.com/api/v3"</p><p>path = "/coins/bitcoin/market_chart/range"</p><p>query = "?vs_currency=usd&amp;from=1592577232&amp;to=1692577232"</p><p>url = endpoint + path + query</p><p>&nbsp;</p><p># requestを送信</p><p>response = requests.request("GET",url)</p><p>return_json = response.json()</p><p>"""</p><p>ここまで前回まで</p><p>"""</p><p>&nbsp;</p><p>from datetime import datetime</p><p>&nbsp;</p><p>df_main = pd.DataFrame([])</p><p>for i,kv in enumerate(return_json.items()):</p><p>df = pd.DataFrame(np.array(kv[1]))</p><p>df = df.set_axis((["time",kv[0]]), axis=1)</p><p>df_main = pd.concat([df_main,df],axis=1)</p><p>&nbsp;</p><p>df_main = pd.DataFrame.drop_duplicates(df_main.T).T</p><p>df_main['time'] = pd.to_datetime(df_main['time'],unit='ms')</p><p>display(df_main)</p>
]]>
</description>
<link>https://ameblo.jp/hinoki-bou/entry-12692969277.html</link>
<pubDate>Wed, 18 Aug 2021 23:22:14 +0900</pubDate>
</item>
</channel>
</rss>
